Finite permutations (#23)

This commit is contained in:
Patrick Stevens
2019-02-18 08:30:26 +00:00
committed by GitHub
parent c35fa90951
commit 0650021db1
12 changed files with 454 additions and 109 deletions

View File

@@ -11,8 +11,10 @@ data _≡_ {a} {A : Set a} (x : A) : A → Set a where
{-# BUILTIN EQUALITY _≡_ #-}
data False : Set where
data False' {a : _} : Set a where
record True : Set where
record True' {a : _} : Set a where
record Unit : Set where
infix 10 _||_
@@ -85,6 +87,10 @@ not : Bool → Bool
not BoolTrue = BoolFalse
not BoolFalse = BoolTrue
boolAnd : Bool Bool Bool
boolAnd BoolTrue y = y
boolAnd BoolFalse y = BoolFalse
typeCast : {a : _} {A : Set a} {B : Set a} (el : A) (pr : A B) B
typeCast {a} {A} {.A} elt refl = elt