Fix issue in case eval

This commit is contained in:
2024-11-02 19:43:04 -08:00
parent 6baee23a73
commit d09afd89e0
4 changed files with 22 additions and 17 deletions

View File

@@ -19,3 +19,14 @@ three = Refl
addZero : {n : Nat} -> Eq (plus Z n) n
addZero {n} = Refl
infixr 1 _,_
data Pair : U -> U -> U where
_,_ : {A B : U} -> A -> B -> Pair A B
fst : {A B : U} -> Pair A B -> A
fst (a,b) = a
-- I had an ordering issue, but it didn't show up with only one constructor argument
test : Eq (fst (Z, S Z)) Z
test = Refl