Symmetry group action (#24)

This commit is contained in:
Patrick Stevens
2019-02-19 08:06:19 +00:00
committed by GitHub
parent 0650021db1
commit d2192c72d9
3 changed files with 59 additions and 11 deletions

View File

@@ -151,3 +151,7 @@ module Lists.Lists where
head : {a : _} {A : Set a} (l : List A) (pr : 0 <N length l) A
head [] (le x ())
head (x :: l) pr = x
lengthRev : {a : _} {A : Set a} (l : List A) length (rev l) length l
lengthRev [] = refl
lengthRev (x :: l) rewrite lengthConcat (rev l) (x :: []) | lengthRev l | additionNIsCommutative (length l) 1 = refl