mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-12-01 06:12:57 +03:00
411b8ccc07
Also added (necessarily) a rule for lambdas
17 lines
311 B
Plaintext
17 lines
311 B
Plaintext
data Nat : Type where
|
|
Z : Nat
|
|
S : Nat -> Nat
|
|
|
|
plus : Nat -> Nat -> Nat
|
|
plus Z $y = y
|
|
plus (S $k) $y = S (plus k y)
|
|
|
|
data Eq : $a -> $b -> Type where
|
|
Refl : Eq $x $x
|
|
|
|
data Test : Type where
|
|
MkTest : Integer -> Integer -> Test
|
|
|
|
etaBad : Eq MkTest (\x : Char => \y => MkTest ? ?)
|
|
etaBad = Refl
|