Exact Lean source
WeylCharacterAlternantPolynomial
formalization/Cloning/WeylCharacterAlternantPolynomial.lean
Source hash: f3dccc52f852766f8149a5eba4491cc0b0ac0a07d20e0286e756e7b35ba80312
Full source copied without mathematical changes from the snapshot whose input hash matches the passing audit. Select a line number for a stable source pointer.
The declarations belong to the compiled inventory covered by the project’s shared axiom audit. That audit records an aggregate union, without attributing axioms to individual declarations.
Declarations in this module
definition
Cloning.WeylCharacter.eulertheorem Cloning.WeylCharacter.euler_applytheorem Cloning.WeylCharacter.euler_monomialtheorem Cloning.WeylCharacter.coeff_eulerdefinition Cloning.WeylCharacter.eulerSquarestheorem Cloning.WeylCharacter.eulerSquares_applytheorem Cloning.WeylCharacter.coeff_eulerSquarestheorem Cloning.WeylCharacter.support_eulerSquares_eigenvaluedefinition Cloning.WeylCharacter.exponentOftheorem Cloning.WeylCharacter.exponentOf_applytheorem Cloning.WeylCharacter.prod_X_pow_eqdefinition Cloning.WeylCharacter.alternanttheorem Cloning.WeylCharacter.alternant_expansiontheorem Cloning.WeylCharacter.eulerSquares_alternanttheorem Cloning.WeylCharacter.eulerSquares_vandermonde1import Cloning.WeylCharacterAlternantSubsets
2import Mathlib.Algebra.MvPolynomial.PDeriv
3import Mathlib.Algebra.MvPolynomial.Rename
4import Mathlib.LinearAlgebra.Vandermonde
5
6/-! Exact Euler spectral calculus for finite alternants. -/
7noncomputable section
8open scoped BigOperators Classical
9open MvPolynomial
10namespace Cloning.WeylCharacter
11set_option backward.isDefEq.respectTransparency false
12
13def euler {d : ℕ} (i : Fin d) : MvPolynomial (Fin d) ℂ →ₗ[ℂ] MvPolynomial (Fin d) ℂ :=
14 (LinearMap.mulLeft ℂ (X i)).comp (pderiv i).toLinearMap
15
16@[simp] theorem euler_apply {d : ℕ} (i : Fin d) (P : MvPolynomial (Fin d) ℂ) :
17 euler i P = X i * pderiv i P := rfl
18
19@[simp] theorem euler_monomial {d : ℕ} (i : Fin d) (m : Fin d →₀ ℕ) (c : ℂ) :
20 euler i (monomial m c) = monomial m ((m i : ℂ) * c) := by
21 rw [euler_apply, X_mul_pderiv_monomial, ← Nat.cast_smul_eq_nsmul ℂ, smul_monomial]
22 rfl
23
24theorem coeff_euler {d : ℕ} (i : Fin d) (P : MvPolynomial (Fin d) ℂ) (m : Fin d →₀ ℕ) :
25 coeff m (euler i P) = (m i : ℂ) * coeff m P := by
26 induction P using MvPolynomial.induction_on' with
27 | add P Q hP hQ => simp only [map_add, coeff_add, hP, hQ, mul_add]
28 | monomial n c =>
29 rw [euler_monomial]
30 by_cases h : n = m
31 · subst n; simp
32 · simp [coeff_monomial, h]
33
34def eulerSquares {d : ℕ} : MvPolynomial (Fin d) ℂ →ₗ[ℂ] MvPolynomial (Fin d) ℂ :=
35 ∑ i : Fin d, (euler i).comp (euler i)
36
37@[simp] theorem eulerSquares_apply {d : ℕ} (P : MvPolynomial (Fin d) ℂ) :
38 eulerSquares P = ∑ i : Fin d, X i * pderiv i (X i * pderiv i P) := by
39 simp [eulerSquares]
40
41theorem coeff_eulerSquares {d : ℕ} (P : MvPolynomial (Fin d) ℂ) (m : Fin d →₀ ℕ) :
42 coeff m (eulerSquares P) = (∑ i, (m i : ℂ)^2) * coeff m P := by
43 simp only [eulerSquares, LinearMap.sum_apply, LinearMap.comp_apply, coeff_sum, coeff_euler]
44 rw [Finset.sum_mul]
45 apply Finset.sum_congr rfl
46 intro i hi
47 ring
48
49theorem support_eulerSquares_eigenvalue {d : ℕ} (P : MvPolynomial (Fin d) ℂ) (c : ℂ)
50 (h : eulerSquares P = c • P) (m : Fin d →₀ ℕ) (hm : coeff m P ≠ 0) :
51 ∑ i, (m i : ℂ)^2 = c := by
52 have he := congrArg (coeff m) h
53 rw [coeff_eulerSquares, coeff_smul, smul_eq_mul] at he
54 exact mul_right_cancel₀ hm he
55
56def exponentOf {d : ℕ} (a : Fin d → ℕ) : Fin d →₀ ℕ := Finsupp.equivFunOnFinite.symm a
57
58@[simp] theorem exponentOf_apply {d : ℕ} (a : Fin d → ℕ) (i : Fin d) :
59 exponentOf a i = a i := rfl
60
61theorem prod_X_pow_eq {d : ℕ} (a : Fin d → ℕ) :
62 (∏ i, (X i : MvPolynomial (Fin d) ℂ) ^ a i) = monomial (exponentOf a) 1 := by
63 rw [monomial_eq, C_1, one_mul, Finsupp.prod_fintype _ _ (fun _ ↦ pow_zero _)]
64 rfl
65
66def alternant {d : ℕ} (a : Fin d → ℕ) : MvPolynomial (Fin d) ℂ :=
67 Matrix.det (fun i j : Fin d ↦ X i ^ a j)
68
69theorem alternant_expansion {d : ℕ} (a : Fin d → ℕ) :
70 alternant a = ∑ σ : Equiv.Perm (Fin d),
71 ((Equiv.Perm.sign σ : ℤ) : ℂ) • monomial (exponentOf (a ∘ σ.symm)) 1 := by
72 rw [alternant, Matrix.det_apply]
73 apply Finset.sum_congr rfl
74 intro σ hσ
75 have hprod : (∏ i : Fin d, (X (σ i) : MvPolynomial (Fin d) ℂ) ^ a i) =
76 ∏ i : Fin d, X i ^ a (σ.symm i) := by
77 simpa using (Equiv.prod_comp σ (fun i ↦ (X i : MvPolynomial (Fin d) ℂ) ^ a (σ.symm i)))
78 rw [hprod, prod_X_pow_eq]
79 simp only [Units.smul_def, Int.cast_smul_eq_zsmul]
80 rfl
81
82theorem eulerSquares_alternant {d : ℕ} (a : Fin d → ℕ) :
83 eulerSquares (alternant a) = (∑ i, (a i : ℂ)^2) • alternant a := by
84 apply MvPolynomial.ext
85 intro m
86 rw [coeff_eulerSquares, coeff_smul, smul_eq_mul]
87 by_cases hm : coeff m (alternant a) = 0
88 · simp [hm]
89 have hex : ∃ σ : Equiv.Perm (Fin d), m = exponentOf (a ∘ σ.symm) := by
90 by_contra! hh
91 apply hm
92 rw [alternant_expansion, coeff_sum]
93 apply Finset.sum_eq_zero
94 intro σ hσ
95 simp [coeff_smul, coeff_monomial, Ne.symm (hh σ)]
96 obtain ⟨σ, rfl⟩ := hex
97 simp only [exponentOf_apply, Function.comp_apply]
98 rw [Equiv.sum_comp σ.symm (fun i ↦ (a i : ℂ)^2)]
99
100/-- The usual Vandermonde, with increasing columns, is an exact Euler-square
101 eigenvector. Multiplying by a scalar sign gives the reversed denominator. -/
102theorem eulerSquares_vandermonde (d : ℕ) :
103 eulerSquares ((Matrix.vandermonde (fun i : Fin d ↦ (X i : MvPolynomial (Fin d) ℂ))).det) =
104 (∑ i : Fin d, (i.val : ℂ)^2) •
105 (Matrix.vandermonde (fun i : Fin d ↦ (X i : MvPolynomial (Fin d) ℂ))).det :=
106 eulerSquares_alternant (fun i : Fin d ↦ i.val)
107
108end Cloning.WeylCharacter