@@ -2617,14 +2617,30 @@ Other minor changes
2617
2617
2618
2618
transpose-replicate : transpose (replicate xs) ≡ map replicate xs
2619
2619
2620
- toList-cast : toList (cast eq xs) ≡ toList xs
2621
2620
cast-is-id : cast eq xs ≡ xs
2622
2621
subst-is-cast : subst (Vec A) eq xs ≡ cast eq xs
2623
2622
cast-trans : cast eq₂ (cast eq₁ xs) ≡ cast (trans eq₁ eq₂) xs
2624
2623
map-cast : map f (cast eq xs) ≡ cast eq (map f xs)
2625
2624
lookup-cast : lookup (cast eq xs) (Fin.cast eq i) ≡ lookup xs i
2626
2625
lookup-cast₁ : lookup (cast eq xs) i ≡ lookup xs (Fin.cast (sym eq) i)
2627
2626
lookup-cast₂ : lookup xs (Fin.cast eq i) ≡ lookup (cast (sym eq) xs) i
2627
+ cast-reverse : cast eq ∘ reverse ≗ reverse ∘ cast eq
2628
+
2629
+ head-singleton : head ≗ last {n = zero}
2630
+ head-init : head ∘ init ≗ head
2631
+ last-tail : last ∘ tail ≗ last
2632
+ init-tail : init ∘ tail ≗ tail ∘ init
2633
+
2634
+ ++-assoc : cast eq ((xs ++ ys) ++ zs) ≡ xs ++ (ys ++ zs)
2635
+ ++-identityʳ : cast eq xs ≡ xs ++ []
2636
+ init-reverse : init ∘ reverse ≗ reverse ∘ tail
2637
+ last-reverse : last ∘ reverse ≗ head
2638
+ reverse-++ : cast eq (reverse (xs ++ ys)) ≡ reverse ys ++ reverse xs
2639
+
2640
+ toList-cast : toList (cast eq xs) ≡ toList xs
2641
+ cast-fromList : cast _ (fromList xs) ≡ fromList ys
2642
+ fromList-map : cast _ (fromList (List.map f xs)) ≡ map f (fromList xs)
2643
+ fromList-++ : cast _ (fromList (xs List.++ ys)) ≡ fromList xs ++ fromList ys
2628
2644
```
2629
2645
2630
2646
* Added new proofs in ` Data.Vec.Functional.Properties ` :
0 commit comments