Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pour Cubical.Categories.Constructions into Instances #765 #1162

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cubical/Categories/Additive/Quotient.agda
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ open import Cubical.Algebra.AbGroup.Base
open import Cubical.Categories.Additive.Base
open import Cubical.Categories.Additive.Properties
open import Cubical.Categories.Category.Base
open import Cubical.Categories.Constructions.Quotient
open import Cubical.Categories.Instances.Quotient
open import Cubical.Categories.Limits.Terminal
open import Cubical.Foundations.Prelude
open import Cubical.HITs.SetQuotients renaming ([_] to ⟦_⟧)
Expand Down
5 changes: 0 additions & 5 deletions Cubical/Categories/Constructions/Free/Category.agda

This file was deleted.

5 changes: 0 additions & 5 deletions Cubical/Categories/Constructions/TotalCategory.agda

This file was deleted.

2 changes: 1 addition & 1 deletion Cubical/Categories/Displayed/BinProduct.agda
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ open import Cubical.Foundations.Prelude
open import Cubical.Foundations.HLevels
open import Cubical.Data.Sigma
open import Cubical.Categories.Category.Base
open import Cubical.Categories.Constructions.BinProduct
open import Cubical.Categories.Instances.BinProduct
open import Cubical.Categories.Displayed.Base

private
Expand Down
2 changes: 1 addition & 1 deletion Cubical/Categories/Displayed/Cartesian.agda
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import Cubical.Categories.Displayed.Reasoning as HomᴰReasoning
open import Cubical.Categories.Functor
open import Cubical.Categories.Instances.Sets
open import Cubical.Categories.NaturalTransformation
open import Cubical.Categories.Constructions.Vertical
open import Cubical.Categories.Instances.Vertical

module Cubical.Categories.Displayed.Cartesian where

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ open import Cubical.Categories.Functor

open import Cubical.Categories.Displayed.Base
open import Cubical.Categories.Displayed.Constructions.Weaken.Base
open import Cubical.Categories.Constructions.TotalCategory
open import Cubical.Categories.Instances.TotalCategory

private
variable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ open import Cubical.Categories.Displayed.Base
open import Cubical.Categories.Displayed.Functor
import Cubical.Categories.Displayed.Reasoning as HomᴰReasoning
open import Cubical.Categories.Displayed.Section.Base
open import Cubical.Categories.Constructions.TotalCategory as TotalCat
open import Cubical.Categories.Instances.TotalCategory as TotalCat
open import Cubical.Categories.Functor
open import Cubical.Categories.Instances.Terminal

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ open import Cubical.Categories.Displayed.Base
open import Cubical.Categories.Displayed.Functor
open import Cubical.Categories.Displayed.HLevels
open import Cubical.Categories.Displayed.Constructions.StructureOver.Base
open import Cubical.Categories.Constructions.TotalCategory
open import Cubical.Categories.Instances.TotalCategory

private
variable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ open import Cubical.Categories.Displayed.Functor
open import Cubical.Categories.Displayed.HLevels
open import Cubical.Categories.Displayed.Section.Base
open import Cubical.Categories.Displayed.Instances.Terminal hiding (introF)
open import Cubical.Categories.Constructions.TotalCategory as TC hiding (intro)
open import Cubical.Categories.Instances.TotalCategory as TC hiding (intro)

private
variable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ open import Cubical.Categories.Functor
open import Cubical.Categories.Displayed.Base
open import Cubical.Categories.Displayed.Section.Base
open import Cubical.Categories.Displayed.Functor
open import Cubical.Categories.Constructions.TotalCategory as TC
open import Cubical.Categories.Instances.TotalCategory as TC
hiding (intro)

private
Expand Down
2 changes: 1 addition & 1 deletion Cubical/Categories/Displayed/Instances/Path.agda
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ open import Cubical.Data.Unit

open import Cubical.Categories.Category
open import Cubical.Categories.Functor
open import Cubical.Categories.Constructions.BinProduct
open import Cubical.Categories.Instances.BinProduct
open import Cubical.Categories.Displayed.Base
open import Cubical.Categories.Displayed.HLevels
open import Cubical.Categories.Displayed.Functor
Expand Down
2 changes: 1 addition & 1 deletion Cubical/Categories/Displayed/Reasoning.agda
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ open import Cubical.Foundations.Transport
open import Cubical.Data.Sigma

open import Cubical.Categories.Category.Base
open import Cubical.Categories.Constructions.TotalCategory.Base
open import Cubical.Categories.Instances.TotalCategory.Base
open import Cubical.Categories.Displayed.Base

module Cubical.Categories.Displayed.Reasoning
Expand Down
2 changes: 1 addition & 1 deletion Cubical/Categories/Displayed/Weaken.agda
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ open import Cubical.Foundations.Prelude

open import Cubical.Categories.Category.Base
open import Cubical.Categories.Displayed.Base
open import Cubical.Categories.Constructions.TotalCategory
open import Cubical.Categories.Instances.TotalCategory

private
variable
Expand Down
2 changes: 1 addition & 1 deletion Cubical/Categories/Functors/HomFunctor.agda
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ open import Cubical.Foundations.Prelude
open import Cubical.Categories.Category
open import Cubical.Categories.Functor.Base
open import Cubical.Categories.Instances.Sets
open import Cubical.Categories.Constructions.BinProduct
open import Cubical.Categories.Instances.BinProduct

private
variable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- Product of two categories
{-# OPTIONS --safe #-}

module Cubical.Categories.Constructions.BinProduct where
module Cubical.Categories.Instances.BinProduct where

open import Cubical.Foundations.HLevels
open import Cubical.Foundations.Prelude
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
-}

{-# OPTIONS --safe #-}
module Cubical.Categories.Constructions.DisplayOverTerminal where
module Cubical.Categories.Instances.DisplayOverTerminal where

open import Cubical.Foundations.Prelude
open import Cubical.Data.Unit
Expand Down
2 changes: 1 addition & 1 deletion Cubical/Categories/Instances/EilenbergMoore.agda
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ open import Cubical.Categories.Functor renaming (𝟙⟨_⟩ to funcId)
open import Cubical.Categories.NaturalTransformation.Base
open import Cubical.Categories.Monad.Base
open import Cubical.Categories.Instances.FunctorAlgebras
open import Cubical.Categories.Constructions.FullSubcategory
open import Cubical.Categories.Instances.FullSubcategory
open import Cubical.Categories.Adjoint

private
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ open import Cubical.Foundations.Prelude
open import Cubical.Data.Sigma

open import Cubical.Categories.Category
import Cubical.Categories.Constructions.Slice.Base as Slice
import Cubical.Categories.Instances.Slice.Base as Slice
open import Cubical.Categories.Functor
open import Cubical.Categories.Instances.Sets
open import Cubical.Categories.Isomorphism
import Cubical.Categories.Morphism as Morphism


module Cubical.Categories.Constructions.Elements where
module Cubical.Categories.Instances.Elements where

-- some issues
-- * always need to specify objects during composition because can't infer isSet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ open import Cubical.Categories.NaturalTransformation
open NatTrans
open import Cubical.Categories.Instances.Functors
open import Cubical.Categories.Instances.Sets
open import Cubical.Categories.Constructions.Elements
open import Cubical.Categories.Instances.Elements
open Covariant

open import Cubical.WildCat.Functor
open import Cubical.WildCat.Instances.Categories
open import Cubical.WildCat.Instances.NonWild

module Cubical.Categories.Constructions.Elements.Properties where
module Cubical.Categories.Instances.Elements.Properties where

variable
ℓC ℓC' ℓD ℓD' ℓS : Level
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ The Essential Image of Functor

-}
{-# OPTIONS --safe #-}
module Cubical.Categories.Constructions.EssentialImage where
module Cubical.Categories.Instances.EssentialImage where

open import Cubical.Foundations.Prelude
open import Cubical.Data.Sigma
open import Cubical.HITs.PropositionalTruncation as PropTrunc

open import Cubical.Categories.Category
open import Cubical.Categories.Functor
open import Cubical.Categories.Constructions.FullSubcategory
open import Cubical.Categories.Instances.FullSubcategory

private
variable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- Free category over a directed graph/quiver
{-# OPTIONS --safe #-}

module Cubical.Categories.Constructions.Free where
module Cubical.Categories.Instances.Free where

open import Cubical.Categories.Category.Base
open import Cubical.Data.Graph.Base
Expand Down
5 changes: 5 additions & 0 deletions Cubical/Categories/Instances/Free/Category.agda
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{-# OPTIONS --safe #-}

module Cubical.Categories.Instances.Free.Category where

open import Cubical.Categories.Instances.Free.Category.Base public
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
-- assumes the vertices of the input graph form a Set.
{-# OPTIONS --safe #-}

module Cubical.Categories.Constructions.Free.Category.Base where
module Cubical.Categories.Instances.Free.Category.Base where

open import Cubical.Foundations.Prelude
open import Cubical.Foundations.HLevels
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
-- which is better in some applications
{-# OPTIONS --safe #-}

module Cubical.Categories.Constructions.Free.Category.Quiver where
module Cubical.Categories.Instances.Free.Category.Quiver where

open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Path
Expand All @@ -19,7 +19,7 @@ open import Cubical.Data.Graph.Displayed as Graph hiding (Section)
open import Cubical.Categories.Category.Base
open import Cubical.Categories.Functor.Base
open import Cubical.Categories.NaturalTransformation
open import Cubical.Categories.Constructions.BinProduct as BP
open import Cubical.Categories.Instances.BinProduct as BP
open import Cubical.Categories.UnderlyingGraph hiding (Interp)
open import Cubical.Categories.Displayed.Base
open import Cubical.Categories.Displayed.Instances.Path
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- Free functor between categories generated from two graphs and a
-- function on nodes between them
{-# OPTIONS --safe --lossy-unification #-}
module Cubical.Categories.Constructions.Free.Functor where
module Cubical.Categories.Instances.Free.Functor where

open import Cubical.Foundations.Prelude hiding (J)
open import Cubical.Foundations.Function renaming (_∘_ to _∘f_)
Expand All @@ -18,7 +18,7 @@ open import Cubical.Data.Graph.Base
open import Cubical.Data.Sigma

open import Cubical.Categories.Category.Base
open import Cubical.Categories.Constructions.Free.Category
open import Cubical.Categories.Instances.Free.Category
open import Cubical.Categories.Functor.Base
open import Cubical.Categories.NaturalTransformation.Base
open import Cubical.Categories.UnderlyingGraph
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{-# OPTIONS --safe #-}
module Cubical.Categories.Constructions.FullSubcategory where
module Cubical.Categories.Instances.FullSubcategory where
-- Full subcategory (not necessarily injective on objects)

open import Cubical.Foundations.Prelude
Expand Down
2 changes: 1 addition & 1 deletion Cubical/Categories/Instances/Functors.agda
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ open import Cubical.Foundations.HLevels
open import Cubical.Foundations.Isomorphism

open import Cubical.Categories.Category renaming (isIso to isIsoC)
open import Cubical.Categories.Constructions.BinProduct
open import Cubical.Categories.Instances.BinProduct
open import Cubical.Categories.Functor.Base
open import Cubical.Categories.Morphism
open import Cubical.Categories.NaturalTransformation.Base
Expand Down
2 changes: 1 addition & 1 deletion Cubical/Categories/Instances/Functors/Currying.agda
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ open import Cubical.Foundations.Isomorphism
open import Cubical.Foundations.Transport

open import Cubical.Categories.Category renaming (isIso to isIsoC)
open import Cubical.Categories.Constructions.BinProduct
open import Cubical.Categories.Instances.BinProduct
open import Cubical.Categories.Functor.Base
open import Cubical.Categories.NaturalTransformation.Base
open import Cubical.Foundations.Function renaming (_∘_ to _∘→_)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{-# OPTIONS --safe #-}
module Cubical.Categories.Constructions.Lift where
module Cubical.Categories.Instances.Lift where

open import Cubical.Foundations.Prelude
open import Cubical.Foundations.HLevels
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{-# OPTIONS --safe #-}
module Cubical.Categories.Constructions.Opposite where
module Cubical.Categories.Instances.Opposite where

open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Equiv
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{-# OPTIONS --safe #-}
module Cubical.Categories.Constructions.Power where
module Cubical.Categories.Instances.Power where

open import Cubical.Foundations.Prelude

open import Cubical.Categories.Category
open import Cubical.Categories.Constructions.Product
open import Cubical.Categories.Instances.Product
open import Cubical.Categories.Functor
open import Cubical.Categories.Instances.Sets

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- Product of type-many categories
{-# OPTIONS --safe #-}

module Cubical.Categories.Constructions.Product where
module Cubical.Categories.Instances.Product where

open import Cubical.Foundations.Prelude
open import Cubical.Foundations.HLevels
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-- Quotient category
{-# OPTIONS --safe #-}

module Cubical.Categories.Constructions.Quotient where
module Cubical.Categories.Instances.Quotient where

open import Cubical.Categories.Category.Base
open import Cubical.Categories.Functor.Base
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ open import Cubical.Categories.Category

open Category

module Cubical.Categories.Constructions.Slice
module Cubical.Categories.Instances.Slice
{ℓ ℓ' : Level}
(C : Category ℓ ℓ')
(c : C .ob)
where

open import Cubical.Categories.Constructions.Slice.Base C c public
open import Cubical.Categories.Constructions.Slice.Properties C c public
open import Cubical.Categories.Instances.Slice.Base C c public
open import Cubical.Categories.Instances.Slice.Properties C c public
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ open Category
open isUnivalent
open Iso

module Cubical.Categories.Constructions.Slice.Base {ℓ ℓ' : Level} (C : Category ℓ ℓ') (c : C .ob) where
module Cubical.Categories.Instances.Slice.Base {ℓ ℓ' : Level} (C : Category ℓ ℓ') (c : C .ob) where

-- just a helper to prevent redundency
TypeC : Type (ℓ-suc (ℓ-max ℓ ℓ'))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{-# OPTIONS --safe #-}

module Cubical.Categories.Constructions.Slice.Functor where
module Cubical.Categories.Instances.Slice.Functor where

open import Cubical.Foundations.Prelude
open import Cubical.Foundations.Function
Expand All @@ -9,7 +9,7 @@ open import Cubical.Foundations.Isomorphism
open import Cubical.Categories.Category
open import Cubical.Categories.Category.Properties

open import Cubical.Categories.Constructions.Slice.Base
open import Cubical.Categories.Instances.Slice.Base

open import Cubical.Categories.Limits.Pullback
open import Cubical.Categories.Functor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ open import Cubical.Data.Sigma
open import Cubical.HITs.PropositionalTruncation using (∣_∣₁)

open import Cubical.Categories.Category
open import Cubical.Categories.Constructions.Slice.Base
import Cubical.Categories.Constructions.Elements as Elements
open import Cubical.Categories.Instances.Slice.Base
import Cubical.Categories.Instances.Elements as Elements
open import Cubical.Categories.Equivalence
open import Cubical.Categories.Functor
open import Cubical.Categories.Instances.Sets
open import Cubical.Categories.NaturalTransformation

open Category

module Cubical.Categories.Constructions.Slice.Properties
module Cubical.Categories.Instances.Slice.Properties
{ℓC ℓ'C : Level}
(C : Category ℓC ℓ'C)
(c : C .ob)
Expand Down
Loading
Loading