Content-grouped counting identity #
The identity
∑ f, (∏ j, (fibreCard f j)!) · ∏ i, x (f i) = n! · hVal x n
groups the sum over colourings f : Fin n → Fin N by content multiset
and uses an orbit-stabilizer argument. The stabiliser count enters as
a hypothesis, discharged as card_fixing_perms in StabCount.lean.
Basic helpers #
Transitivity of the content-class action #
Existence of colourings with prescribed content #
Coset counting #
The orbit-stabilizer identity #
Main theorem #
theorem
RS.sum_fibreFactorial_weight'
{n N : ℕ}
(x : Fin N → ℂ)
(hstab : ∀ (f : Fin n → Fin N), {π : Equiv.Perm (Fin n) | f ∘ ⇑π = f}.card = ∏ j : Fin N, (fibreCard f j).factorial)
:
The content-grouped count: weighting each colouring by its stabiliser size and its colour product sums to the factorial times the complete homogeneous value.