Improvements to erasure checking, fix to codegen issue

This commit is contained in:
2024-11-29 10:02:45 -08:00
parent 052bab81cb
commit 18e44cb7d3
18 changed files with 581 additions and 233 deletions

View File

@@ -44,11 +44,11 @@ data _≡_ : ∀ A . A -> A -> U where
Refl : A . {a : A} -> a a
-- If a ≡ b then b ≡ a
sym : {A} {a b : A} -> a b -> b a
sym : A. {0 a b : A} -> a b -> b a
sym Refl = Refl
-- if a ≡ b and b ≡ c then a ≡ c
trans : {A : U} {a b c : A} -> a b -> b c -> a c
trans : A. {0 a b c : A} -> a b -> b c -> a c
trans Refl x = x
-- This lets us replace a with b inside an expression if a ≡ b