Offline · exact source
Exact Lean source

YoungHookVandermonde

formalization/Cloning/YoungHookVandermonde.lean

Source hash: 9192b3dd4f624138e73d6080f2f5e5597ad0631c616a4523711c50b035defeca

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
1import Cloning.YoungHookCount
2import Mathlib.LinearAlgebra.Vandermonde
3import Mathlib.Data.Fin.Rev
4 
5/-! Evaluation of the proved standard-tableau factorial determinant by the
6falling-factorial Vandermonde determinant. -/
7 
8noncomputable section
9open scoped BigOperators Classical
10open Polynomial
11 
12namespace Cloning.YoungGeneral
13 
14theorem inverseFactorial_sub_nat (n k : ℕ) :
15    inverseFactorial ((n : ℤ) - (k : ℤ)) =
16      (n.descFactorial k : ℝ) * (n.factorial : ℝ)⁻¹ := by
17  by_cases hkn : k ≤ n
18  · rw [← Nat.cast_sub hkn, inverseFactorial_nat]
19    have hn : (n.factorial : ℝ) ≠ 0 := by exact_mod_cast n.factorial_ne_zero
20    have hnk : ((n-k).factorial : ℝ) ≠ 0 := by exact_mod_cast (n-k).factorial_ne_zero
21    have heq : ((n-k).factorial : ℝ) * (n.descFactorial k : ℝ) = n.factorial := by
22      exact_mod_cast Nat.factorial_mul_descFactorial hkn
23    field_simp
24    nlinarith
25  · rw [inverseFactorial_of_neg (by omega), Nat.descFactorial_of_lt (by omega)]
26    simp
27 
28def shiftedRow {d : ℕ} (μ : Fin d → ℕ) (i : Fin d) : ℕ :=
29  μ i + (d - 1 - i.val)
30 
31theorem shiftedRow_strictAnti {d : ℕ} (μ : Fin d → ℕ) (hμ : Antitone μ) :
32    StrictAnti (shiftedRow μ) := by
33  intro i j hij
34  have h := hμ (le_of_lt hij)
35  have hi := i.isLt
36  have hj := j.isLt
37  simp only [shiftedRow, Fin.lt_def] at *
38  omega
39 
40def fallingEvaluation {d : ℕ} (v : Fin d → ℕ) : Matrix (Fin d) (Fin d) ℝ :=
41  fun i j ↦ (descPochhammer ℝ j.val).eval (v i : ℝ)
42 
43theorem fallingEvaluation_det {d : ℕ} (v : Fin d → ℕ) :
44    (fallingEvaluation v).det =
45      ∏ i : Fin d, ∏ j ∈ Finset.Ioi i, ((v j : ℝ) - (v i : ℝ)) := by
46  rw [← Matrix.det_vandermonde]
47  exact (Matrix.det_eval_matrixOfPolynomials_eq_det_vandermonde
48    (fun i ↦ (v i : ℝ)) (fun i ↦ descPochhammer ℝ i.val)
49    (fun i ↦ descPochhammer_natDegree ℝ i.val)
50    (fun i ↦ monic_descPochhammer ℝ i.val)).symm
51 
52theorem factorialMatrix_eq_fallingEvaluation {d : ℕ} (μ : Fin d → ℕ) :
53    factorialMatrix (fun i ↦ (μ i : ℤ)) =
54      ((fallingEvaluation (shiftedRow μ)).transpose.submatrix Fin.revPerm
55        (Equiv.refl (Fin d))) *
56        Matrix.diagonal (fun j ↦ ((shiftedRow μ j).factorial : ℝ)⁻¹) := by
57  ext i j
58  rw [Matrix.mul_diagonal]
59  simp only [Matrix.submatrix_apply, Matrix.transpose_apply, Equiv.refl_apply,
60    fallingEvaluation, descPochhammer_eval_eq_descFactorial]
61  rw [← inverseFactorial_sub_nat]
62  unfold factorialMatrix
63  congr 1
64  have hi := i.isLt
65  have hj := j.isLt
66  simp only [shiftedRow, Fin.revPerm_apply, Fin.val_rev]
67  omega
68 
69theorem abs_factorialDeterminant {d : ℕ} (μ : Fin d → ℕ) :
70    |factorialDeterminant (fun i ↦ (μ i : ℤ))| =
71      (∏ i : Fin d, ∏ j ∈ Finset.Ioi i,
72        |((shiftedRow μ j : ℕ) : ℝ) - ((shiftedRow μ i : ℕ) : ℝ)|) *
73      ∏ i, ((shiftedRow μ i).factorial : ℝ)⁻¹ := by
74  rw [factorialDeterminant, factorialMatrix_eq_fallingEvaluation,
75    Matrix.det_mul, abs_mul, Matrix.abs_det_submatrix_equiv_equiv,
76    Matrix.det_transpose, fallingEvaluation_det, Matrix.det_diagonal]
77  simp only [Finset.abs_prod]
78  congr 1
79  apply Finset.prod_congr rfl
80  intro i _
81  exact abs_of_nonneg (by positivity)
82 
83/-- The exact Vandermonde/factorial dimension formula for standard tableaux.
84The shifted rows are strictly decreasing even when the original partition has
85equal parts. -/
86theorem standardCount_eq_vandermonde {d N : ℕ} (μ : Fin d → ℕ)
87    (hμ : Antitone μ) (hN : ∑ i, μ i = N) :
88    (standardCount N μ : ℝ) =
89      (N.factorial : ℝ) *
90        (∏ i : Fin d, ∏ j ∈ Finset.Ioi i,
91          (((shiftedRow μ i : ℕ) : ℝ) - ((shiftedRow μ j : ℕ) : ℝ))) *
92        ∏ i, ((shiftedRow μ i).factorial : ℝ)⁻¹ := by
93  have h := congrArg abs (standardCount_eq_factorial_determinant μ hμ hN)
94  rw [abs_mul, abs_of_nonneg (Nat.cast_nonneg _), abs_of_nonneg (Nat.cast_nonneg _),
95    abs_factorialDeterminant] at h
96  rw [h, mul_assoc]
97  congr 1
98  congr 1
99  apply Finset.prod_congr rfl
100  intro i _
101  apply Finset.prod_congr rfl
102  intro j hj
103  rw [abs_sub_comm, abs_of_nonneg]
104  exact sub_nonneg.mpr (by exact_mod_cast (shiftedRow_strictAnti μ hμ (Finset.mem_Ioi.mp hj)).le)
105 
106end Cloning.YoungGeneral