Finite products and sums against Pi.single #
A product ∏ j, f j ^ e j whose exponent vector e is Pi.single i a is the single power
f i ^ a. For exponent vectors α : ι → ℕ over a finite type, this file records how the total
degree ∑ j, α j controls the decomposition of α into unit vectors Pi.single i 1, and proves
an induction principle over the exponent vectors of a fixed degree d: starting from the pure
power Pi.single i d, every such vector is reached by moving one unit at a time from the
coordinate i to another coordinate.
Main results #
Finset.univ_prod_mulSingle_mulSingle,Finset.univ_sum_single_single: double dependent product or sum ofPi.mulSingle i (Pi.mulSingle j (f i j))/Pi.single i (Pi.single j (f i j))equalsf.Fintype.prod_pow_pi_single:∏ j, f j ^ Pi.single i a j = f i ^ a.Pi.exists_eq_add_single_one: an exponent vector with a positivei-th entry isγ + e_i.Pi.eq_single_of_apply_eq_sum: an exponent vector of degreedwithi-th entrydisPi.single i d.Fintype.exists_ne_pos_of_apply_lt_sum: an exponent vector whosei-th entry is less than its degree has another positive entry.Pi.induction_on_single_of_sum_eq: induction over the exponent vectors of degreed, starting fromPi.single i dand moving one unit at a time from the coordinateito another coordinate.
Decomposing a dependent two-argument function f : ∀ i j, M i j as the iterated product of
pointwise Pi.mulSingle factors.
Decomposing a dependent two-argument function f : ∀ i j, M i j as the iterated
sum of pointwise Pi.single terms.
Summing one-hot vectors counts the occurrences of each label in the finite sample.
The monomial with exponent vector Pi.single i a is the power f i ^ a.
An exponent vector with a positive i-th entry is of the form γ + e_i.
Induction over the exponent vectors of degree d, starting from the pure power d e_i and
moving one unit at a time from the coordinate i to another coordinate j: a property of d e_i
which transfers from β + e_i to β + e_j holds for every exponent vector of degree d.