@@ -13,7 +13,7 @@ import Prelude.Maybe
13--------------------------------------------------------------------------------
13--------------------------------------------------------------------------------
15||| The negation of equality is symmetric (follows from symmetry of equality)
15||| The negation of equality is symmetric (follows from symmetry of equality)
16−total negEqSym : {a : t} -> {b : t} -> (a = b -> _|_) -> (b = a -> _|_)
16+total negEqSym : {a : t} -> {b : t} -> (a = b -> Void) -> (b = a -> Void)
17negEqSym p h = p (sym h)
17negEqSym p h = p (sym h)
@@ -36,7 +36,7 @@ instance DecEq () where
36--------------------------------------------------------------------------------
36--------------------------------------------------------------------------------
37-- Booleans
37-- Booleans
38--------------------------------------------------------------------------------
38--------------------------------------------------------------------------------
39−total trueNotFalse : True = False -> _|_
39+total trueNotFalse : True = False -> Void
40trueNotFalse Refl impossible
40trueNotFalse Refl impossible
42instance DecEq Bool where
42instance DecEq Bool where
@@ -49,7 +49,7 @@ instance DecEq Bool where
50--------------------------------------------------------------------------------
50--------------------------------------------------------------------------------
52−total OnotS : Z = S n -> _|_
52+total OnotS : Z = S n -> Void
53OnotS Refl impossible
53OnotS Refl impossible
55instance DecEq Nat where
55instance DecEq Nat where
@@ -64,7 +64,7 @@ instance DecEq Nat where
65--------------------------------------------------------------------------------
65--------------------------------------------------------------------------------
67−total nothingNotJust : {x : t} -> (Nothing {a = t} = Just x) -> _|_
67+total nothingNotJust : {x : t} -> (Nothing {a = t} = Just x) -> Void
68nothingNotJust Refl impossible
68nothingNotJust Refl impossible
70instance (DecEq t) => DecEq (Maybe t) where
70instance (DecEq t) => DecEq (Maybe t) where
@@ -79,7 +79,7 @@ instance (DecEq t) => DecEq (Maybe t) where
80--------------------------------------------------------------------------------
80--------------------------------------------------------------------------------
82−total leftNotRight : {x : a} -> {y : b} -> Left {b = b} x = Right {a = a} y -> _|_
82+total leftNotRight : {x : a} -> {y : b} -> Left {b = b} x = Right {a = a} y -> Void
83leftNotRight Refl impossible
83leftNotRight Refl impossible
85instance (DecEq a, DecEq b) => DecEq (Either a b) where
85instance (DecEq a, DecEq b) => DecEq (Either a b) where
@@ -96,7 +96,7 @@ instance (DecEq a, DecEq b) => DecEq (Either a b) where
97--------------------------------------------------------------------------------
97--------------------------------------------------------------------------------
99−total FZNotFS : {f : Fin n} -> FZ {k = n} = FS f -> _|_
99+total FZNotFS : {f : Fin n} -> FZ {k = n} = FS f -> Void
100FZNotFS Refl impossible
100FZNotFS Refl impossible
102instance DecEq (Fin n) where
102instance DecEq (Fin n) where
@@ -111,16 +111,16 @@ instance DecEq (Fin n) where
112--------------------------------------------------------------------------------
112--------------------------------------------------------------------------------
114−lemma_both_neq : {x : a, y : b, x' : c, y' : d} -> (x = x' -> _|_) -> (y = y' -> _|_) -> ((x, y) = (x', y') -> _|_)
114+lemma_both_neq : {x : a, y : b, x' : c, y' : d} -> (x = x' -> Void) -> (y = y' -> Void) -> ((x, y) = (x', y') -> Void)
115lemma_both_neq p_x_not_x' p_y_not_y' Refl = p_x_not_x' Refl
115lemma_both_neq p_x_not_x' p_y_not_y' Refl = p_x_not_x' Refl
117−lemma_snd_neq : {x : a, y : b, y' : d} -> (x = x) -> (y = y' -> _|_) -> ((x, y) = (x, y') -> _|_)
117+lemma_snd_neq : {x : a, y : b, y' : d} -> (x = x) -> (y = y' -> Void) -> ((x, y) = (x, y') -> Void)
118lemma_snd_neq Refl p Refl = p Refl
118lemma_snd_neq Refl p Refl = p Refl
120lemma_fst_neq_snd_eq : {x : a, x' : b, y : c, y' : d} ->
120lemma_fst_neq_snd_eq : {x : a, x' : b, y : c, y' : d} ->
121− (x = x' -> _|_) ->
121+ (x = x' -> Void) ->
122 (y = y') ->
122 (y = y') ->
123− ((x, y) = (x', y) -> _|_)
123+ ((x, y) = (x', y) -> Void)
124lemma_fst_neq_snd_eq p_x_not_x' Refl Refl = p_x_not_x' Refl
124lemma_fst_neq_snd_eq p_x_not_x' Refl Refl = p_x_not_x' Refl
126instance (DecEq a, DecEq b) => DecEq (a, b) where
126instance (DecEq a, DecEq b) => DecEq (a, b) where
@@ -137,16 +137,16 @@ instance (DecEq a, DecEq b) => DecEq (a, b) where
138--------------------------------------------------------------------------------
138--------------------------------------------------------------------------------
140−lemma_val_not_nil : {x : t, xs : List t} -> ((x :: xs) = Prelude.List.Nil {a = t} -> _|_)
140+lemma_val_not_nil : {x : t, xs : List t} -> ((x :: xs) = Prelude.List.Nil {a = t} -> Void)
141lemma_val_not_nil Refl impossible
141lemma_val_not_nil Refl impossible
143−lemma_x_eq_xs_neq : {x : t, xs : List t, y : t, ys : List t} -> (x = y) -> (xs = ys -> _|_) -> ((x :: xs) = (y :: ys) -> _|_)
143+lemma_x_eq_xs_neq : {x : t, xs : List t, y : t, ys : List t} -> (x = y) -> (xs = ys -> Void) -> ((x :: xs) = (y :: ys) -> Void)
144lemma_x_eq_xs_neq Refl p Refl = p Refl
144lemma_x_eq_xs_neq Refl p Refl = p Refl
146−lemma_x_neq_xs_eq : {x : t, xs : List t, y : t, ys : List t} -> (x = y -> _|_) -> (xs = ys) -> ((x :: xs) = (y :: ys) -> _|_)
146+lemma_x_neq_xs_eq : {x : t, xs : List t, y : t, ys : List t} -> (x = y -> Void) -> (xs = ys) -> ((x :: xs) = (y :: ys) -> Void)
147lemma_x_neq_xs_eq p Refl Refl = p Refl
147lemma_x_neq_xs_eq p Refl Refl = p Refl
149−lemma_x_neq_xs_neq : {x : t, xs : List t, y : t, ys : List t} -> (x = y -> _|_) -> (xs = ys -> _|_) -> ((x :: xs) = (y :: ys) -> _|_)
149+lemma_x_neq_xs_neq : {x : t, xs : List t, y : t, ys : List t} -> (x = y -> Void) -> (xs = ys -> Void) -> ((x :: xs) = (y :: ys) -> Void)
150lemma_x_neq_xs_neq p p' Refl = p Refl
150lemma_x_neq_xs_neq p p' Refl = p Refl
152instance DecEq a => DecEq (List a) where
152instance DecEq a => DecEq (List a) where
@@ -203,7 +203,7 @@ instance DecEq Int where
203 decEq x y = if x == y then Yes primitiveEq else No primitiveNotEq
203 decEq x y = if x == y then Yes primitiveEq else No primitiveNotEq
204 where primitiveEq : x = y
204 where primitiveEq : x = y
205 primitiveEq = believe_me (Refl {x})
205 primitiveEq = believe_me (Refl {x})
206− postulate primitiveNotEq : x = y -> _|_
206+ postulate primitiveNotEq : x = y -> Void
208--------------------------------------------------------------------------------
208--------------------------------------------------------------------------------
@@ -213,7 +213,7 @@ instance DecEq Char where
213 decEq x y = if x == y then Yes primitiveEq else No primitiveNotEq
213 decEq x y = if x == y then Yes primitiveEq else No primitiveNotEq
214 where primitiveEq : x = y
214 where primitiveEq : x = y
215 primitiveEq = believe_me (Refl {x})
215 primitiveEq = believe_me (Refl {x})
216− postulate primitiveNotEq : x = y -> _|_
216+ postulate primitiveNotEq : x = y -> Void
218--------------------------------------------------------------------------------
218--------------------------------------------------------------------------------
219-- Integer
219-- Integer
@@ -223,7 +223,7 @@ instance DecEq Integer where
223 decEq x y = if x == y then Yes primitiveEq else No primitiveNotEq
223 decEq x y = if x == y then Yes primitiveEq else No primitiveNotEq
224 where primitiveEq : x = y
224 where primitiveEq : x = y
225 primitiveEq = believe_me (Refl {x})
225 primitiveEq = believe_me (Refl {x})
226− postulate primitiveNotEq : x = y -> _|_
226+ postulate primitiveNotEq : x = y -> Void
228--------------------------------------------------------------------------------
228--------------------------------------------------------------------------------
@@ -233,7 +233,7 @@ instance DecEq Float where
233 decEq x y = if x == y then Yes primitiveEq else No primitiveNotEq
233 decEq x y = if x == y then Yes primitiveEq else No primitiveNotEq
234 where primitiveEq : x = y
234 where primitiveEq : x = y
235 primitiveEq = believe_me (Refl {x})
235 primitiveEq = believe_me (Refl {x})
236− postulate primitiveNotEq : x = y -> _|_
236+ postulate primitiveNotEq : x = y -> Void
238--------------------------------------------------------------------------------
238--------------------------------------------------------------------------------
@@ -243,6 +243,6 @@ instance DecEq String where
243 decEq x y = if x == y then Yes primitiveEq else No primitiveNotEq
243 decEq x y = if x == y then Yes primitiveEq else No primitiveNotEq
244 where primitiveEq : x = y
244 where primitiveEq : x = y
245 primitiveEq = believe_me (Refl {x})
245 primitiveEq = believe_me (Refl {x})
246− postulate primitiveNotEq : x = y -> _|_
246+ postulate primitiveNotEq : x = y -> Void