@@ -13,7 +13,7 @@ import Prelude.Maybe
1313--------------------------------------------------------------------------------
1414
1515||| 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)
1717negEqSym p h = p (sym h)
1818
1919
@@ -36,7 +36,7 @@ instance DecEq () where
3636--------------------------------------------------------------------------------
3737-- Booleans
3838--------------------------------------------------------------------------------
39−total trueNotFalse : True = False -> _|_
39+total trueNotFalse : True = False -> Void
4040trueNotFalse Refl impossible
4141
4242instance DecEq Bool where
@@ -49,7 +49,7 @@ instance DecEq Bool where
4949-- Nat
5050--------------------------------------------------------------------------------
5151
52−total OnotS : Z = S n -> _|_
52+total OnotS : Z = S n -> Void
5353OnotS Refl impossible
5454
5555instance DecEq Nat where
@@ -64,7 +64,7 @@ instance DecEq Nat where
6464-- Maybe
6565--------------------------------------------------------------------------------
6666
67−total nothingNotJust : {x : t} -> (Nothing {a = t} = Just x) -> _|_
67+total nothingNotJust : {x : t} -> (Nothing {a = t} = Just x) -> Void
6868nothingNotJust Refl impossible
6969
7070instance (DecEq t) => DecEq (Maybe t) where
@@ -79,7 +79,7 @@ instance (DecEq t) => DecEq (Maybe t) where
7979-- Either
8080--------------------------------------------------------------------------------
8181
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
8383leftNotRight Refl impossible
8484
8585instance (DecEq a, DecEq b) => DecEq (Either a b) where
@@ -96,7 +96,7 @@ instance (DecEq a, DecEq b) => DecEq (Either a b) where
9696-- Fin
9797--------------------------------------------------------------------------------
9898
99−total FZNotFS : {f : Fin n} -> FZ {k = n} = FS f -> _|_
99+total FZNotFS : {f : Fin n} -> FZ {k = n} = FS f -> Void
100100FZNotFS Refl impossible
101101
102102instance DecEq (Fin n) where
@@ -111,16 +111,16 @@ instance DecEq (Fin n) where
111111-- Tuple
112112--------------------------------------------------------------------------------
113113
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)
115115lemma_both_neq p_x_not_x' p_y_not_y' Refl = p_x_not_x' Refl
116116
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)
118118lemma_snd_neq Refl p Refl = p Refl
119119
120120lemma_fst_neq_snd_eq : {x : a, x' : b, y : c, y' : d} ->
121− (x = x' -> _|_) ->
121+ (x = x' -> Void) ->
122122 (y = y') ->
123− ((x, y) = (x', y) -> _|_)
123+ ((x, y) = (x', y) -> Void)
124124lemma_fst_neq_snd_eq p_x_not_x' Refl Refl = p_x_not_x' Refl
125125
126126instance (DecEq a, DecEq b) => DecEq (a, b) where
@@ -137,16 +137,16 @@ instance (DecEq a, DecEq b) => DecEq (a, b) where
137137-- List
138138--------------------------------------------------------------------------------
139139
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)
141141lemma_val_not_nil Refl impossible
142142
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)
144144lemma_x_eq_xs_neq Refl p Refl = p Refl
145145
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)
147147lemma_x_neq_xs_eq p Refl Refl = p Refl
148148
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)
150150lemma_x_neq_xs_neq p p' Refl = p Refl
151151
152152instance DecEq a => DecEq (List a) where
@@ -203,7 +203,7 @@ instance DecEq Int where
203203 decEq x y = if x == y then Yes primitiveEq else No primitiveNotEq
204204 where primitiveEq : x = y
205205 primitiveEq = believe_me (Refl {x})
206− postulate primitiveNotEq : x = y -> _|_
206+ postulate primitiveNotEq : x = y -> Void
207207
208208--------------------------------------------------------------------------------
209209-- Char
@@ -213,7 +213,7 @@ instance DecEq Char where
213213 decEq x y = if x == y then Yes primitiveEq else No primitiveNotEq
214214 where primitiveEq : x = y
215215 primitiveEq = believe_me (Refl {x})
216− postulate primitiveNotEq : x = y -> _|_
216+ postulate primitiveNotEq : x = y -> Void
217217
218218--------------------------------------------------------------------------------
219219-- Integer
@@ -223,7 +223,7 @@ instance DecEq Integer where
223223 decEq x y = if x == y then Yes primitiveEq else No primitiveNotEq
224224 where primitiveEq : x = y
225225 primitiveEq = believe_me (Refl {x})
226− postulate primitiveNotEq : x = y -> _|_
226+ postulate primitiveNotEq : x = y -> Void
227227
228228--------------------------------------------------------------------------------
229229-- Float
@@ -233,7 +233,7 @@ instance DecEq Float where
233233 decEq x y = if x == y then Yes primitiveEq else No primitiveNotEq
234234 where primitiveEq : x = y
235235 primitiveEq = believe_me (Refl {x})
236− postulate primitiveNotEq : x = y -> _|_
236+ postulate primitiveNotEq : x = y -> Void
237237
238238--------------------------------------------------------------------------------
239239-- String
@@ -243,6 +243,6 @@ instance DecEq String where
243243 decEq x y = if x == y then Yes primitiveEq else No primitiveNotEq
244244 where primitiveEq : x = y
245245 primitiveEq = believe_me (Refl {x})
246− postulate primitiveNotEq : x = y -> _|_
246+ postulate primitiveNotEq : x = y -> Void
247247
248248