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