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