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 --guardedness #-} | |
| open import Agda.Primitive | |
| open import Agda.Builtin.Unit | |
| import Agda.Builtin.IO as Prim | |
| -- IO from https://agda.github.io/agda-stdlib/master/IO.Base.html | |
| -- but using coinductive records instead of musical coinduction | |
| module IO where |
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 --show-irrelevant --rewriting #-} | |
| open import Agda.Builtin.Equality | |
| open import Agda.Builtin.Equality.Rewrite | |
| open import Agda.Builtin.Bool | |
| -- Inspired by https://types.pl/deck/@mevenlennonbertrand@lipn.info/116300216566705883 | |
| -- Challenge: define the decision procedure for quotients with only the | |
| -- non-dependent and strict-propositional eliminators | |
| module QuotDec where |
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 --cubical -WnoUnsupportedIndexedMatch #-} | |
| open import Agda.Primitive.Cubical | |
| open import Agda.Builtin.Cubical.Path | |
| module EqPuzzle where | |
| data Eqs : Set | |
| data Var : Set | |
| data Tm : Eqs → 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
| {-# OPTIONS --rewriting #-} | |
| open import Agda.Builtin.Equality | |
| open import Agda.Builtin.Equality.Rewrite | |
| open import Agda.Builtin.Nat | |
| module LocalRewriteSubst where | |
| module Utils where | |
| infixr 4 _∙_ |
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 --without-K #-} | |
| open import Agda.Builtin.Equality | |
| -- Example due to Jesper Cockx | |
| module KFromSmartWith where | |
| data Unit : Set where ⟨⟩ : Unit | |
| variable |
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 --rewriting #-} | |
| open import Agda.Builtin.Equality | |
| open import Agda.Builtin.Equality.Rewrite | |
| open import Agda.Builtin.Sigma renaming (_,_ to _Σ,_) | |
| open import Agda.Builtin.Unit renaming (⊤ to 𝟙; tt to ⟨⟩) | |
| open import Agda.Primitive | |
| -- Sketch for how to prove soundness (specifically, consistency relative to | |
| -- Agda) of a type theory by constructing the standard model |
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 | |
| open import Agda.Builtin.Nat renaming (zero to ze; suc to su) | |
| open import Agda.Builtin.Sigma | |
| module Lego where | |
| infixr 6 _,-_ | |
| variable | |
| n m l : Nat |
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.Primitive | |
| open import Agda.Builtin.Equality | |
| -- Adapted from https://types.pl/deck/@jeanas@mathstodon.xyz/115855070991058388 | |
| -- See also https://github.com/agda/agda/issues/8312 | |
| -- Quite unfortunate that with-abstraction actually works here... | |
| -- I want examples where it fails! | |
| module Div where |
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.Primitive | |
| open import Agda.Builtin.Equality | |
| open import Agda.Builtin.Sigma | |
| module StreamFinal where | |
| -- Utils | |
| variable | |
| ℓ ℓ₁ ℓ₂ : Level | |
| A B : 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
| open import Agda.Primitive | |
| open import Agda.Builtin.Equality | |
| open import Agda.Builtin.Sigma | |
| module BoolInit where | |
| variable | |
| ℓ : Level | |
| A B : Set _ | |
| x y z : A |
NewerOlder