-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
succinct definition of a simple category with families
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
module NaturalModels.SimpleCwF where | ||
|
||
open import Cubical.Foundations.Prelude | ||
open import Cubical.Categories.Category | ||
open import Cubical.Categories.Functor | ||
open import Cubical.Data.Sigma | ||
open import Cubical.Categories.Constructions.BinProduct | ||
open import Cubical.Categories.Instances.Sets | ||
open import Cubical.Categories.Instances.Sets.More | ||
open import Cubical.Categories.Limits.Terminal | ||
open import Cubical.Categories.Presheaf | ||
open import Cubical.Categories.Presheaf.Representable | ||
|
||
open Category | ||
SCwF : (ℓ ℓ' ℓ'' ℓ''' : Level) | ||
→ Type (ℓ-max (ℓ-max (ℓ-max (ℓ-suc ℓ) (ℓ-suc ℓ')) (ℓ-suc ℓ'')) (ℓ-suc ℓ''')) | ||
SCwF ℓ ℓ' ℓ'' ℓ''' = | ||
-- The category of contexts and substitutions | ||
Σ[ C ∈ Category ℓ ℓ' ] | ||
-- With a terminal object (empty context) | ||
Terminal C × | ||
-- A type of syntactic types | ||
(Σ[ Ty ∈ Type ℓ'' ] | ||
-- A presheaf of terms for each type | ||
Σ[ Tm ∈ (∀ (A : Ty) → Presheaf C ℓ''') ] | ||
-- Such that the base category has products with terms (context extension) | ||
(∀ (Γ : C .ob) (A : Ty) | ||
→ UnivElt C (×Sets ∘F (LiftF {ℓ' = ℓ'''} ∘F ((C [-, Γ ])) ,F LiftF {ℓ' = ℓ'} ∘F Tm A)))) |