Idris-dev/test/reg056/reg056.idr

16 lines
279 B
Idris
Raw Normal View History

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
2015-05-08 23:17:30 +03:00
nonk : (trap = Refl {x = Z}) -> Void
nonk Refl impossible
false : Void
false = nonk (k Nat Z Z trap Refl)