Structured proof · Unit 144
lemma ClassMean.exists_invariant_diagonal_form
multinomial(\gamma)\cdot q(\gamma) in O, multinomial(\gamma) = |\gamma |!/\Pi_{b} \gamma_{b}!; and (ii) for every square matrix A \in Mat_{\sigma}(O) and all exponent vectors \alpha, \beta: (coefficient of x^{\alpha} in linSubst A (x^{\beta}))\cdot q(\alpha) = q(\beta)\cdot(coefficient of x^{\beta} in linSubst A^{\mathsf{T}} (x^{\alpha})).multinomial(\gamma) exists (0 in higher degree). The transposition identity follows from the Fock pairing \langle f, g\rangle = \sum \alpha!f_{\alpha}g_{\alpha}, for which linSubst A and linSubst A^{\mathsf{T}} are adjoint, multiplied through by |\alpha |!.Claim M: for every finite set s \subseteq \sigma and exponent \alpha with \sum_{b\in s} \alpha_{b} < k^{f}, the multinomial coefficient of \alpha on s divides k^{|s|\cdot f} in O.
Lean states
(@multinomial σ s α : O) ∣ k ^ (#s * f)Induction on s: for s = \varnothing the multinomial is 1; adding an element a multiplies it by a binomial coefficient C(\sum_{s\cup \{a\}} \alpha, \alpha_{a}), so it suffices that this binomial coefficient divides k^{f}.
Uses
Finset.,cons_induction Nat.multinomial_insert Compare the two factors (the induction hypothesis handles the multinomial of s).
Write C = k^{v_k(C)}\cdot C' with C' prime to k. C' is a unit of O: k is not a unit, so it lies in the maximal ideal of the local ring O, and C' coprime to k cannot lie there too. And v_k(C) \le \log_k(\sum \alpha) < f since \sum \alpha < k^{f} (h); so C divides k^{f}.
Uses
Nat.,ordProj_mul_ordCompl_eq_self Nat.,coprime_ordCompl Ideal.,IsPrime. notMem_of_isCoprime_of_mem Nat.,factorization_choose_le_log Nat.log_pow
q works.
(ii): multiply both sides by |\alpha |! \ne 0 (O has characteristic 0). The Fock pairing gives \alpha!\cdot \mathrm{coeff}_{\alpha}(
linSubstA x^{\beta}) = \beta!\cdot \mathrm{coeff}_{\beta}(linSubstA^{\mathsf{T}} x^{\alpha}) (fockPairing_linSubst); both coefficients vanish unless |\alpha | = |\beta | (linSubstpreserves degree); andmultinomial(\gamma)\cdot \Pi \gamma_{b}! = |\gamma |! together with \mathit{hq} gives the identity, both sides being 0 when |\alpha | \ge k^{f}.Usesstep 2,
fockPairingunit 57,fockPairing_linSubstunit 57,jet_eq_sumunit 57,Monomials.unit 57,isHomogeneous_linSubst nsmul_right_injective,Nat.multinomial_spec