Idris-dev/test/reg056/reg056.idr
2015-05-11 00:41:09 +02:00

16 lines
279 B
Idris

k : (a : Type) -> (x, y : a) -> (p, q : x = y) -> p = q
k a x x Refl Refl = Refl
postulate trap : Z = Z
dodgy : (a, b : ()) -> a = b -> Void
dodgy n m Refl impossible
nonk : (trap = Refl {x = Z}) -> Void
nonk Refl impossible
false : Void
false = nonk (k Nat Z Z trap Refl)