English
Dropping n elements from the sum of two sequences is pointwise: drop over cons yields the same as dropping n from the tail of each sequence.
Русский
Удаление n элементов из двух последовательностей, помещённых через конструктор, ведет к концу через соответствующее удаление из хвостов.
LaTeX
$$$$ \\mathrm{drop}_{n}(\\mathrm{zipWith}\\ f\\ (\\mathrm{cons}\\ x\\ s) (\\mathrm{cons}\\ x'\\ s')) = \\mathrm{zipWith}\\ f\\ s\\ s'. $$$$
Lean4
@[simp]
theorem zipWith_cons_cons {f : α → β → γ} {x s x' s'} :
zipWith f (cons x s) (cons x' s') = cons (f x x') (zipWith f s s') :=
by
ext1 n
cases n <;> simp