module public import Mathlib.Algebra.BigOperators.Group.Finset.Basic public import Mathlib.Algebra.GroupWithZero.Defs import Mathlib.Algebra.GroupWithZero.Units.Basic import TauCeti.Algebra.BigOperators.ZPow /-! # Products of integer powers -/ @[expose] public section open scoped BigOperators /-- For a nonzero element `s` of a commutative group with zero, a power of `s` whose integer exponent is a finite sum is the product of the powers of `s`. -/ theorem New.DiscreteSeries.zpow_sum_of_ne_zero {ι K : Type*} [CommGroupWithZero K] {s : K} (hs : s ≠ 0) (t : Finset ι) (f : ι → ℤ) : s ^ ∑ i ∈ t, f i = ∏ i ∈ t, s ^ f i := (Finset.prod_zpow_eq_zpow_sum_of_isUnit t hs.isUnit f).symm