This file contains hidden or 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
| {-# OPTIONS --prop --rewriting #-} | |
| variable | |
| A A' : Set _ | |
| B B' : A → Set _ | |
| x y z : A | |
| infix 4 _≡_ | |
| data _≡_ {ℓ} {A : Set ℓ} (x : A) : A → Prop ℓ where | |
| refl : x ≡ x |
This file contains hidden or 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
| {-# OPTIONS --erasure #-} | |
| module Reconstruct where | |
| open import Data.Unit | |
| open import Data.Product | |
| data Ty : Set where | |
| Π : Ty → Ty → Ty |
This file contains hidden or 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
| open import Data.Nat | |
| open import Data.Product | |
| open import Relation.Binary.PropositionalEquality | |
| -- Limits of ω-chains E 0 <- E 1 <- ... | |
| record Limit {ℓ} (E : ℕ → Set ℓ) (prev : ∀ n → E (suc n) → E n) : Set ℓ where | |
| field | |
| seq : ∀ n → E n | |
| coh : ∀ n → prev n (seq (suc n)) ≡ seq n |
This file contains hidden or 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
| {-# OPTIONS --prop --rewriting --erasure #-} | |
| module Unsized-2 where | |
| open import Agda.Builtin.Nat using (Nat; suc; zero) | |
| open import Data.Fin.Base using (Fin; suc; zero) | |
| open import Relation.Binary.PropositionalEquality.Core using (_≡_; refl) | |
| -- Bytes | |
| postulate |
This file contains hidden or 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
| open import Agda.Builtin.Equality | |
| {-# BUILTIN REWRITE _≡_ #-} | |
| data Stage : Set where `0 `1 : Stage | |
| postulate | |
| Ty : Stage → Set | |
| Tm : ∀ {s} → Ty s → Set |
This file contains hidden or 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
| import Data.Fin | |
| import Data.Vect | |
| import Data.Vect.Quantifiers | |
| -- No telescopes, no indexing (parameters still possible), no displayed | |
| -- algebras, just paramorphisms. | |
| -- This is the type of descriptions/signatures for constructor data. | |
| -- Each operation (constructor) is a sequence of arguments, either data or | |
| -- recursive calls. |
This file contains hidden or 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
| %default total | |
| -- A set is an index type, and a set for each index, inductively. | |
| record Set where | |
| constructor MkSet | |
| i : Type | |
| f : i -> Set | |
| -- Set `a` is contained in set `b` if there is an index in `b` at which we find | |
| -- a set equal to `a` |
This file contains hidden or 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
| import Data.DPair | |
| import Decidable.Equality | |
| interface IsProp a where | |
| prop : (0 x : a) -> (0 y : a) -> x = y | |
| 0 IsPropD : {a : Type} -> (p : a -> Type) -> Type | |
| IsPropD {a} p = (0 m : a) -> IsProp (p m) | |
| -- POSTULATES |
This file contains hidden or 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
| -- Definition of a CWF with irrelevant binders in Agda, in the style of QTT. | |
| ---------------------------------------------------------------------------- | |
| -- The CWF formulation of quantitative type theory (Atkey 2018) is basically a | |
| -- base CWF B, a resourced CWF-like thing E, and a functor U : E → B that | |
| -- preserves everything. | |
| -- | |
| -- It is really annoying to define this directly as two syntaxes and a functor | |
| -- between them. Instead, we can define a base CWF B, and a displayed CWF E over B. | |
| -- We can recover the usual functorial formulation by taking the total space of E. |
This file contains hidden or 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
| module FakeSOGAT where | |
| open import Relation.Binary.PropositionalEquality | |
| infixr 3 _⇒_ | |
| _⇒_ : ∀ {I : Set} → (A : I → Set) → (I → Set) → (I → Set) | |
| (A ⇒ B) j = A j → B j | |
| ∀[_] : ∀ {I : Set} → (I → Set) → Set | |
| ∀[_] {I} P = {Γ : I} → P Γ |
NewerOlder