File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -229,17 +229,16 @@ namespace Equality
229
229
230
230
||| The actual proof used by cast is irrelevant
231
231
export
232
- congCast : {n, q : Nat } -> {k : Fin m} -> {l : Fin p} ->
232
+ congCast : {0 n, q : Nat } -> {k : Fin m} -> {l : Fin p} ->
233
233
{0 eq1 : m = n} -> {0 eq2 : p = q} ->
234
234
k ~~~ l ->
235
235
cast eq1 k ~~~ cast eq2 l
236
236
congCast eq = transitive (castEq _ ) (transitive eq $ symmetric $ castEq _ )
237
237
238
238
||| Last is congruent wrt index equality
239
239
export
240
- congLast : {m, n : Nat } -> (0 _ : m = n) -> last {n=m} ~~~ last {n}
241
- congLast {m = Z } {n = Z } eq = reflexive
242
- congLast {m = S _ } {n = S _ } eq = FS (congLast (succInjective _ _ eq))
240
+ congLast : {m : Nat } -> (0 _ : m = n) -> last {n=m} ~~~ last {n}
241
+ congLast Refl = reflexive
243
242
244
243
export
245
244
congShift : (m : Nat ) -> k ~~~ l -> shift m k ~~~ shift m l
@@ -263,7 +262,7 @@ namespace Equality
263
262
export
264
263
hetPointwiseIsTransport :
265
264
{0 k : Fin m} -> {0 l : Fin n} ->
266
- (eq : m === n) -> k ~~~ l -> k === rewrite eq in l
265
+ (0 eq : m === n) -> k ~~~ l -> k === rewrite eq in l
267
266
hetPointwiseIsTransport Refl = homoPointwiseIsEqual
268
267
269
268
export
Original file line number Diff line number Diff line change @@ -213,7 +213,7 @@ finToNatMultHomo {m = S _} (FS x) y = Calc $
213
213
~~ finToNat (y + x * y) ... ( Refl )
214
214
~~ finToNat y + finToNat (x * y) ... ( finToNatPlusHomo y (x * y) )
215
215
~~ finToNat y + finToNat x * finToNat y ... ( cong (finToNat y + ) (finToNatMultHomo x y) )
216
- ~~ finToNat (FS x) * finToNat y ... ( Refl )
216
+ ~~ finToNat (FS x) * finToNat y ... ( Refl )
217
217
218
218
-- Relations to `Fin`'s `last`
219
219
@@ -292,7 +292,7 @@ plusZeroRightNeutral (FS k) = FS (plusZeroRightNeutral k)
292
292
293
293
export
294
294
congPlusRight : {m, n, p : Nat } -> {k : Fin (S n)} -> {l : Fin (S p)} ->
295
- (c : Fin m) -> k ~~~ l -> c + k ~~~ c + l
295
+ (c : Fin m) -> k ~~~ l -> c + k ~~~ c + l
296
296
congPlusRight c FZ
297
297
= transitive (plusZeroRightNeutral c)
298
298
(symmetric $ plusZeroRightNeutral c)
You can’t perform that action at this time.
0 commit comments