Exact Lean source
YoungHookRatio
formalization/Cloning/YoungHookRatio.lean
Source hash: c7d060102dfffa5555328a2e2a0dcb04e2030b2ceb3862085aa6d6a5a8abec88
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
theorem
Cloning.YoungGeneral.prod_row_offsetstheorem Cloning.YoungGeneral.factorial_shiftedRowdefinition Cloning.YoungGeneral.tableauCorrectiontheorem Cloning.YoungGeneral.standardCount_eq_multinomial_correctiontheorem Cloning.YoungGeneral.shiftedRow_sub_realtheorem Cloning.YoungGeneral.tableauCorrection_eq_pair_ratios1import Cloning.YoungHookVandermonde
2import Mathlib.Data.Nat.Factorial.BigOperators
3import Mathlib.Algebra.BigOperators.Fin
4
5/-! The standard-tableau count as a multinomial count times a finite product
6of pair ratios. This exact form separates the local-limit correction from
7the multinomial Gaussian approximation. -/
8noncomputable section
9open scoped BigOperators Classical
10
11namespace Cloning.YoungGeneral
12
13theorem prod_row_offsets {d : ℕ} (i : Fin d) (m : ℕ) :
14 (∏ j ∈ Finset.Ioi i, (m + (j.val - i.val))) =
15 (m + 1).ascFactorial (d - 1 - i.val) := by
16 classical
17 calc
18 _ = ∏ k : Fin (d - 1 - i.val), (m + 1 + k.val) := by
19 apply Finset.prod_bij (fun j hj ↦
20 (⟨j.val - i.val - 1, by
21 have := j.isLt
22 have := Finset.mem_Ioi.mp hj
23 simp only [Fin.lt_def] at *
24 omega⟩ : Fin (d - 1 - i.val)))
25 · intro j hj; exact Finset.mem_univ _
26 · intro a ha b hb heq
27 have ha' := Finset.mem_Ioi.mp ha
28 have hb' := Finset.mem_Ioi.mp hb
29 have heq' := congrArg Fin.val heq
30 apply Fin.ext
31 simp only [Fin.lt_def] at *
32 omega
33 · intro k _
34 have hk := k.isLt
35 let j : Fin d := ⟨i.val + 1 + k.val, by omega⟩
36 have hj : j ∈ Finset.Ioi i := by simp only [Finset.mem_Ioi, Fin.lt_def, j]; omega
37 refine ⟨j, hj, ?_⟩
38 apply Fin.ext
39 dsimp [j]
40 omega
41 · intro j hj
42 have := Finset.mem_Ioi.mp hj
43 simp only [Fin.lt_def] at this
44 dsimp
45 omega
46 _ = _ := by rw [Fin.prod_univ_eq_prod_range, Nat.ascFactorial_eq_prod_range]
47
48theorem factorial_shiftedRow {d : ℕ} (μ : Fin d → ℕ) (i : Fin d) :
49 (μ i).factorial * (∏ j ∈ Finset.Ioi i, (μ i + (j.val - i.val))) =
50 (shiftedRow μ i).factorial := by
51 rw [prod_row_offsets]
52 exact Nat.factorial_mul_ascFactorial _ _
53
54def tableauCorrection {d : ℕ} (μ : Fin d → ℕ) : ℝ :=
55 ∏ i : Fin d, ∏ j ∈ Finset.Ioi i,
56 (((shiftedRow μ i : ℕ) : ℝ) - ((shiftedRow μ j : ℕ) : ℝ)) /
57 ((μ i : ℝ) + (j.val - i.val : ℕ))
58
59theorem standardCount_eq_multinomial_correction {d N : ℕ} (μ : Fin d → ℕ)
60 (hμ : Antitone μ) (hN : ∑ i, μ i = N) :
61 (standardCount N μ : ℝ) =
62 (N.factorial : ℝ) * (∏ i, ((μ i).factorial : ℝ)⁻¹) * tableauCorrection μ := by
63 rw [standardCount_eq_vandermonde μ hμ hN]
64 have hi (i : Fin d) : ((shiftedRow μ i).factorial : ℝ)⁻¹ =
65 ((μ i).factorial : ℝ)⁻¹ *
66 ∏ j ∈ Finset.Ioi i, ((μ i : ℝ) + (j.val - i.val : ℕ))⁻¹ := by
67 have h : ((μ i).factorial : ℝ) *
68 (∏ j ∈ Finset.Ioi i, ((μ i : ℝ) + (j.val - i.val : ℕ))) =
69 (shiftedRow μ i).factorial := by
70 exact_mod_cast factorial_shiftedRow μ i
71 rw [← h, mul_inv_rev, Finset.prod_inv_distrib]
72 ring
73 simp_rw [hi]
74 simp only [tableauCorrection, div_eq_mul_inv, Finset.prod_mul_distrib]
75 ring
76
77theorem shiftedRow_sub_real {d : ℕ} (μ : Fin d → ℕ) (i j : Fin d) :
78 ((shiftedRow μ i : ℕ) : ℝ) - ((shiftedRow μ j : ℕ) : ℝ) =
79 (μ i : ℝ) - (μ j : ℝ) + (j.val : ℝ) - (i.val : ℝ) := by
80 have hi : i.val ≤ d - 1 := by have := i.isLt; omega
81 have hj : j.val ≤ d - 1 := by have := j.isLt; omega
82 simp only [shiftedRow, Nat.cast_add, Nat.cast_sub hi, Nat.cast_sub hj]
83 ring
84
85theorem tableauCorrection_eq_pair_ratios {d : ℕ} (μ : Fin d → ℕ) :
86 tableauCorrection μ =
87 ∏ i : Fin d, ∏ j ∈ Finset.Ioi i,
88 (((μ i : ℝ) - (μ j : ℝ) + (j.val : ℝ) - (i.val : ℝ)) /
89 ((μ i : ℝ) + (j.val : ℝ) - (i.val : ℝ))) := by
90 apply Finset.prod_congr rfl
91 intro i _
92 apply Finset.prod_congr rfl
93 intro j hj
94 have hij : i.val ≤ j.val := Fin.le_def.mp (le_of_lt (Finset.mem_Ioi.mp hj))
95 rw [shiftedRow_sub_real, Nat.cast_sub hij]
96 ring
97
98end Cloning.YoungGeneral