Offline · exact source
Exact Lean source

TensorFlatProjectorRankLaw

formalization/Cloning/TensorFlatProjectorRankLaw.lean

Source hash: e5841bfcf22c0aeb4a5d3413de5094a97be10503bb18b004272e9f74b6ddcead

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.TensorFlatProjectorPadding
2 
3/-! The actual ambient rank-flat Young law is exactly the padded smaller-rank law. -/
4noncomputable section
5open scoped BigOperators
6namespace Cloning.TensorLie
7open Cloning.YoungGeneral
8set_option maxHeartbeats 1500000
9set_option backward.isDefEq.respectTransparency false
10variable {n r k : ℕ}
11 
12theorem rankFlatSpectrum_antitone (r k : ℕ) : Antitone (rankFlatSpectrum r k) := by
13  intro a b hab
14  unfold rankFlatSpectrum
15  split_ifs with hb ha
16  · exact le_rfl
17  · have hv : a.val ≤ b.val := hab
18    omega
19  · positivity
20  · exact le_rfl
21 
22theorem rankFlatSpectrum_sum (hr : 0 < r) : ∑ a, rankFlatSpectrum r k a = 1 := by
23  rw [Fin.sum_univ_add]
24  have hl (a : Fin r) : rankFlatSpectrum r k (Fin.castAdd k a) = 1/(r:ℝ) := by
25    simp [rankFlatSpectrum, a.isLt]
26  have ht (a : Fin k) : rankFlatSpectrum r k (Fin.natAdd r a) = 0 := by
27    simp [rankFlatSpectrum, Fin.val_natAdd]
28  simp only [hl, ht, Finset.sum_const, Finset.card_univ, Fintype.card_fin,
29    nsmul_eq_mul, Finset.sum_const_zero, mul_zero, add_zero]
30  simpa only [div_eq_mul_inv, one_mul] using div_self (Nat.cast_ne_zero.mpr hr.ne' : (r:ℝ)≠0)
31 
32def padShape (mu : Shape r n) (k : ℕ) : Shape (r+k) n :=
33  Fin.append mu (fun _ => 0)
34 
35theorem padShape_val (mu : Shape r n) (k : ℕ) :
36    (fun a => (padShape mu k a).val) = padPartition (fun a => (mu a).val) k := by
37  funext a
38  induction a using Fin.addCases <;> simp [padShape, padPartition]
39 
40theorem padShape_injective (k : ℕ) : Function.Injective (fun mu : Shape r n => padShape mu k) := by
41  intro mu nu he
42  funext a
43  have hh := congrFun he (Fin.castAdd k a)
44  simpa only [padShape, Fin.append_left] using hh
45 
46def tensorRankFlatYoungPMF (n r k : ℕ) (hr : 0 < r) : PMF (Shape (r+k) n) :=
47  tensorYoungPMF n (r+k) (rankFlatSpectrum r k) (rankFlatSpectrum_nonneg r k) (rankFlatSpectrum_sum hr)
48 
49theorem physicalSectorCharacter_rankFlat_zero (mu : Fin (r+k) → ℕ)
50    (a : Fin (r+k)) (ha : r ≤ a.val) (hmu : mu a ≠ 0) :
51    physicalSectorCharacter mu (rankFlatSpectrum r k) = 0 := by
52  have hb := physicalSectorCharacter_le_polynomial_highest mu (rankFlatSpectrum r k)
53    (rankFlatSpectrum_nonneg r k) (rankFlatSpectrum_antitone r k)
54  have hp : (∏ b, rankFlatSpectrum r k b ^ mu b) = 0 := by
55    apply Finset.prod_eq_zero (Finset.mem_univ a)
56    simp [rankFlatSpectrum, not_lt.mpr ha, hmu]
57  rw [hp, mul_zero] at hb
58  exact le_antisymm hb (physicalSectorCharacter_nonneg _ _)
59 
60theorem physicalSectorCharacter_pad_rankFlat (mu : Fin r → ℕ) (k : ℕ) :
61    physicalSectorCharacter (padPartition mu k) (rankFlatSpectrum r k) =
62      physicalSectorCharacter mu (flatSpectrum r) := by
63  classical
64  by_cases hmu : Antitone mu
65  · rw [physicalSectorCharacter_rankFlat mu hmu k]
66    rw [physicalSectorCharacter, dif_pos hmu]
67    change _ = sectorPartitionFunction _ _ _ _ (fun _ => 1/(r:ℝ))
68    rw [sectorPartitionFunction_const _ _ _ _ _ (by positivity)]
69    change _ = (1/(r:ℝ))^(∑a,mu a) * (partitionDimension mu hmu : ℝ)
70    rw [one_div_pow]
71    ring
72  · have hpad : ¬ Antitone (padPartition mu k) := by
73      intro h
74      exact hmu (fun a b hab => by
75        simpa only [padPartition_left] using h (show Fin.castAdd k a ≤ Fin.castAdd k b from hab))
76    simp only [physicalSectorCharacter, dif_neg hmu, dif_neg hpad]
77 
78theorem tensorRankFlatYoungPMF_pad (hr : 0 < r) (mu : Shape r n) :
79    tensorRankFlatYoungPMF n r k hr (padShape mu k) = tensorFlatYoungPMF n r hr mu := by
80  apply (ENNReal.toReal_eq_toReal (PMF.apply_ne_top _ _) (PMF.apply_ne_top _ _)).mp
81  rw [tensorRankFlatYoungPMF, tensorFlatYoungPMF, tensorYoungPMF_formula, tensorYoungPMF_formula,
82    padShape_val, standardCount_padPartition, physicalSectorCharacter_pad_rankFlat]
83 
84theorem tensorRankFlatYoungPMF_outside (hr : 0 < r) (mu : Shape (r+k) n)
85    (hmu : mu ∉ Set.range (fun nu : Shape r n => padShape nu k)) :
86    tensorRankFlatYoungPMF n r k hr mu = 0 := by
87  classical
88  have hex : ∃ a : Fin k, (mu (Fin.natAdd r a)).val ≠ 0 := by
89    by_contra! hn
90    apply hmu
91    refine ⟨(fun a => mu (Fin.castAdd k a)), ?_⟩
92    funext a
93    induction a using Fin.addCases with
94    | left a => simp [padShape]
95    | right a =>
96      apply Fin.ext
97      simpa only [padShape, Fin.append_right, Fin.val_zero] using (hn a).symm
98  obtain ⟨a,ha⟩ := hex
99  have hc := physicalSectorCharacter_rankFlat_zero (fun a => (mu a).val)
100    (Fin.natAdd r a) (by simp [Fin.val_natAdd]) ha
101  apply (ENNReal.toReal_eq_toReal (PMF.apply_ne_top _ _) ENNReal.zero_ne_top).mp
102  rw [ENNReal.toReal_zero]
103  rw [tensorRankFlatYoungPMF, tensorYoungPMF_formula, hc, mul_zero]
104 
105/-- Exact equality of the physical PMFs, including labels outside the support. -/
106theorem tensorRankFlatYoungPMF_eq_map (hr : 0 < r) :
107    tensorRankFlatYoungPMF n r k hr = (tensorFlatYoungPMF n r hr).map (fun mu => padShape mu k) := by
108  classical
109  apply PMF.ext
110  intro mu
111  rw [PMF.map_apply, tsum_fintype]
112  by_cases hm : mu ∈ Set.range (fun nu : Shape r n => padShape nu k)
113  · obtain ⟨nu,rfl⟩ := hm
114    rw [tensorRankFlatYoungPMF_pad]
115    simp only [(padShape_injective k).eq_iff]
116    simp
117  · rw [tensorRankFlatYoungPMF_outside hr mu hm]
118    symm
119    apply Finset.sum_eq_zero
120    intro nu _
121    exact if_neg (fun he => hm ⟨nu,he.symm⟩)
122 
123end Cloning.TensorLie