Sums and products over pairs #
A sum of F : l × l → M over all ordered pairs, for l a finite linear order, can be folded onto
the increasing pairs by adding each term to its transpose. When F vanishes on the diagonal the
diagonal contributes nothing and the fold is exact, which is
TauCeti.sum_univ_prod_eq_sum_lt_add_swap.
This is the shape a sum indexed by unordered pairs takes once the linear order is used to name each pair by its increasing representative. It is what lets an antisymmetric summand, for which the two terms of a transposed pair combine, be summed over pairs rather than over ordered pairs.
For a symmetric summand the increasing representative carries no information beyond the unordered
pair, so a product ∏_{i<j} f i j over the increasing pairs is unchanged when the indices are
permuted, which is TauCeti.prod_prod_Ioi_comp_perm. This is the symmetric counterpart of
Mathlib's Equiv.Perm.prod_Ioi_comp_eq_sign_mul_prod, where an antisymmetric summand picks up the
sign of the permutation.
Main results #
TauCeti.sum_univ_prod_eq_sum_lt_add_swap: a sum over all ordered pairs of a function vanishing on the diagonal, as a sum over the increasing pairs of the term plus its transpose.TauCeti.prod_prod_Ioi_comp_perm: a product of a symmetric function over the increasing pairs is invariant under permuting the indices.TauCeti.prod_prod_Ici_eq_prod_prod_Ioi_mul_prod_diag: a product over weakly increasing pairs separates into the strictly increasing pairs and the diagonal.TauCeti.prod_prod_Ioi_eq_of_two: separates the first pair and its cross terms from a product over the increasing pairs of a finite ordinal.TauCeti.prod_prod_Ioi_threeandTauCeti.prod_prod_Ioi_four: the products over the increasing pairs ofFin 3and ofFin 4, written out.TauCeti.prod_prod_Ioi_snoc: splits the pair product of a tuple with a final entry.TauCeti.prod_prod_Ioi_append: the pair product of appended tuples splits into the pair products of each tuple and their cross terms.TauCeti.prod_prod_Ioi_append_of_mul: the cross term for a bimultiplicative pairing is the pairing of the products.TauCeti.sum_sum_Ioi_append_of_mul: the same for a pairing turning products into sums.TauCeti.prod_prod_Ioi_scale: scaling all entries of a pair product for a symmetric bimultiplicative pairing.
A sum over bounded pairs of indices of total degree less than the bound equals the antidiagonal sum, provided the summands agree under the natural-index coercions.
A product over weakly increasing pairs splits into the strictly increasing pairs and the diagonal.
Peel the first two indices off a product over the increasing pairs of Fin (m + 2).
A pair product on a tuple extended by a final entry splits into the old pairs and the pairings with that entry.
The pair product of concatenated tuples is the product over pairs in each tuple and over all pairs with one entry in each tuple.
The pairwise product of a concatenation for a bimultiplicative pairing.
The pairwise sum of a concatenation for a pairing that turns products in either argument into sums.
Scaling every coefficient in a pairwise product for a symmetric bimultiplicative pairing. The self-pairing law supplies the correction for each coefficient pair.
A sum over all ordered pairs, folded onto the increasing ones. A function vanishing on the
diagonal sums over l × l to the sum over the increasing pairs of its value together with its
value at the transposed pair.
A product over the increasing pairs of a symmetric function is permutation invariant:
for symmetric f, ∏_{i<j} f (σ i) (σ j) = ∏_{i<j} f i j for every permutation σ.
A sum over the increasing pairs of a symmetric function is permutation
invariant: for symmetric f, ∑_{i<j} f (σ i) (σ j) = ∑_{i<j} f i j for every permutation
σ.