English
Let M be a commutative monoid. For f : Fin (n + 1) → M and a,b : Fin n, the product over i ∈ Ioo a.castSucc b.castSucc equals the product over i ∈ Ioo a b of f i.castSucc.
Русский
Пусть M — коммутативный моноид. Пусть f : Fin(n+1) → M и a,b : Fin n, тогда произведение по i ∈ Ioo(a.castSucc)(b.castSucc) равно произведению по i ∈ Ioo a b от f i.castSucc.
LaTeX
$$$$ \\displaystyle \\prod_{i \\in \\mathrm{Ioo}(a^{\\mathrm{castSucc}}, b^{\\mathrm{castSucc}})} f(i) = \\prod_{i \\in \\mathrm{Ioo} a b} f(i^{\\mathrm{castSucc}}) $$$$
Lean4
@[to_additive]
theorem prod_Ioo_castSucc (f : Fin (n + 1) → M) (a b : Fin n) :
∏ i ∈ Ioo a.castSucc b.castSucc, f i = ∏ i ∈ Ioo a b, f i.castSucc := by simp [← map_castSuccEmb_Ioo]