Rem extra args from identity (#49)

This commit is contained in:
Patrick Stevens
2019-10-03 07:21:30 +01:00
committed by GitHub
parent 7ed41b0c09
commit 5af4030361
14 changed files with 165 additions and 167 deletions

View File

@@ -54,7 +54,7 @@ module Lists.Lists where
s : rev (rev l ++ [ x ] ) [ x ] ++ rev (rev l)
s = revIsHom (rev l) [ x ]
t : rev (rev l ++ [ x ] ) [ x ] ++ l
t = identityOfIndiscernablesRight (rev (rev l ++ (x :: []))) ([ x ] ++ rev (rev l)) ([ x ] ++ l) _≡_ s (applyEquality (λ n [ x ] ++ n) (revRevIsId l))
t = identityOfIndiscernablesRight _≡_ s (applyEquality (λ n [ x ] ++ n) (revRevIsId l))
fold : {a b : _} {A : Set a} {B : Set b} (f : A B B) B List A B
fold f default [] = default