@@ -1080,12 +1080,14 @@ Deprecated names
10801080 ``` agda
10811081 map-identity ↦ map-id
10821082 map-fusion ↦ map-∘
1083+ drop-fusion ↦ drop-drop
10831084 ```
10841085
10851086* In ` Codata.Sized.Colist.Properties ` :
10861087 ``` agda
1087- map-identity ↦ map-id
1088- map-map-fusion ↦ map-∘
1088+ map-identity ↦ map-id
1089+ map-map-fusion ↦ map-∘
1090+ drop-drop-fusion ↦ drop-drop
10891091 ```
10901092
10911093* In ` Codata.Sized.Covec.Properties ` :
@@ -2216,24 +2218,26 @@ Other minor changes
22162218 concatMap-map : concatMap g (map f xs) ≡ concatMap (g ∘′ f) xs
22172219 map-concatMap : map f ∘′ concatMap g ≗ concatMap (map f ∘′ g)
22182220
2219- length-isMagmaHomomorphism : (A : Set a) → IsMagmaHomomorphism (++-rawMagma A) +-rawMagma length
2221+ length-isMagmaHomomorphism : (A : Set a) → IsMagmaHomomorphism (++-rawMagma A) +-rawMagma length
22202222 length-isMonoidHomomorphism : (A : Set a) → IsMonoidHomomorphism (++-[]-rawMonoid A) +-0-rawMonoid length
22212223
22222224 take-map : take n (map f xs) ≡ map f (take n xs)
22232225 drop-map : drop n (map f xs) ≡ map f (drop n xs)
22242226 head-map : head (map f xs) ≡ Maybe.map f (head xs)
22252227
2226- take-suc : (o : Fin (length xs)) → let m = toℕ o in take (suc m) xs ≡ take m xs ∷ʳ lookup xs o
2227- take-suc-tabulate : (f : Fin n → A) (o : Fin n) → let m = toℕ o in take (suc m) (tabulate f) ≡ take m (tabulate f) ∷ʳ f o
2228- drop-take-suc : (o : Fin (length xs)) → let m = toℕ o in drop m (take (suc m) xs) ≡ [ lookup xs o ]
2229- drop-take-suc-tabulate : (f : Fin n → A) (o : Fin n) → let m = toℕ o in drop m (take (suc m) (tabulate f)) ≡ [ f o ]
2228+ take-suc : take (suc m) xs ≡ take m xs ∷ʳ lookup xs i
2229+ take-suc-tabulate : take (suc m) (tabulate f) ≡ take m (tabulate f) ∷ʳ f i
2230+ drop-take-suc : drop m (take (suc m) xs) ≡ [ lookup xs i ]
2231+ drop-take-suc-tabulate : drop m (take (suc m) (tabulate f)) ≡ [ f i ]
22302232
22312233 take-all : n ≥ length xs → take n xs ≡ xs
22322234
2233- take-[] : ∀ m → take m [] ≡ []
2234- drop-[] : ∀ m → drop m [] ≡ []
2235+ take-[] : take m [] ≡ []
2236+ drop-[] : drop m [] ≡ []
22352237
22362238 map-replicate : map f (replicate n x) ≡ replicate n (f x)
2239+
2240+ drop-drop : drop n (drop m xs) ≡ drop (m + n) xs
22372241 ```
22382242
22392243* Added new patterns and definitions to ` Data.Nat.Base ` :
0 commit comments