Offline · exact source
Exact Lean source

YoungFlatCompatibility

formalization/Cloning/YoungFlatCompatibility.lean

Source hash: ff1b9fa9f84e35950b63f57b501a082bdfbcad9a4d3359e287c2c3c768e2bff5

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.YoungFlatCells
2import Cloning.TensorCloningChannel
3 
4/-! Common-point quantization of the flat limit gives actual compatible partitions. -/
5noncomputable section
6open scoped BigOperators Topology Classical
7open Filter
8namespace Cloning.YoungFlat
9open Cloning.YoungHyperplane Cloning.YoungGeneral Cloning.TensorCloning Cloning.TensorLie
10set_option backward.isDefEq.respectTransparency false
11set_option maxHeartbeats 1400000
12 
13theorem sampleShape_flat_ratio_tendsto (d : ℕ) (n : ℕ → ℕ) (hn : Tendsto n atTop atTop)
14    (x : rootSpace d) (i : Fin (d+1)) :
15    Tendsto (fun k ↦ ((sampleShape d (n k) (flatSpectrum (d+1)) x i).val : ℝ)/(n k : ℝ))
16      atTop (𝓝 (1/((d+1 : ℕ) : ℝ))) := by
17  apply (sampleLabel_flat_moving_ratio d n hn (fun _ ↦ x) x (fun _ ↦ tendsto_const_nhds) i).congr'
18  filter_upwards [eventually_flat_sampleShape_valid d n hn (fun _ ↦ x) x
19    (fun _ ↦ tendsto_const_nhds)] with k hk
20  have he := shapeLattice_apply d (n k) (sampleShape d (n k) (flatSpectrum (d+1)) x) hk.1 i
21  rw [hk.2] at he
22  have hr : ((sampleLabel d (n k) (flatSpectrum (d+1)) x).1 i : ℝ) =
23      ((sampleShape d (n k) (flatSpectrum (d+1)) x i).val : ℝ) := by exact_mod_cast he
24  rw [hr]
25 
26theorem sampleShape_flat_gap_tendsto (d : ℕ) (n : ℕ → ℕ) (hn : Tendsto n atTop atTop)
27    (x : rootSpace d) (i j : Fin (d+1)) :
28    Tendsto (fun k ↦ (((sampleShape d (n k) (flatSpectrum (d+1)) x i).val : ℝ)-
29      ((sampleShape d (n k) (flatSpectrum (d+1)) x j).val : ℝ))/Real.sqrt (n k : ℝ))
30      atTop (𝓝 (x.1 i-x.1 j)) := by
31  have hc a := sampleLabel_center_tendsto d n hn (fun _ ↦ flatSpectrum (d+1))
32    (fun _ ↦ flatSpectrum_sum _ (by omega)) x a
33  apply ((hc i).sub (hc j)).congr'
34  filter_upwards [eventually_flat_sampleShape_valid d n hn (fun _ ↦ x) x
35    (fun _ ↦ tendsto_const_nhds)] with k hk
36  rw [← hk.2]
37  simp only [sampleCenter_apply d (n k) _ (flatSpectrum_sum _ (by omega)),
38    shapeLattice_apply d (n k) _ hk.1, Int.cast_natCast, flatSpectrum]
39  ring
40 
41theorem eventually_flat_sampleShape_antitone (d : ℕ) (n : ℕ → ℕ)
42    (hn : Tendsto n atTop atTop) (x : rootSpace d) (hx : StrictAnti (fun i ↦ x.1 i)) :
43    ∀ᶠ k in atTop, Antitone (fun i ↦ (sampleShape d (n k) (flatSpectrum (d+1)) x i).val) := by
44  have he : ∀ᶠ k in atTop, ∀ r : PositiveRoot (d+1),
45      0 < (((sampleShape d (n k) (flatSpectrum (d+1)) x r.val.1).val : ℝ)-
46        ((sampleShape d (n k) (flatSpectrum (d+1)) x r.val.2).val : ℝ))/Real.sqrt (n k : ℝ) :=
47    eventually_all.mpr fun r ↦ (sampleShape_flat_gap_tendsto d n hn x r.val.1 r.val.2).eventually
48      (eventually_gt_nhds (sub_pos.mpr (hx r.property)))
49  filter_upwards [he, hn.eventually (eventually_gt_atTop 0)] with k hk hn0
50  intro i j hij
51  rcases hij.eq_or_lt with rfl | hij
52  · exact le_rfl
53  have hh := hk ⟨(i,j),hij⟩
54  have hs : 0 < Real.sqrt (n k : ℝ) := by positivity
55  have hreal := (div_pos_iff_of_pos_right hs).mp hh
56  exact_mod_cast (sub_pos.mp hreal).le
57 
58theorem sampleShape_flat_cross_gap_tendsto (d : ℕ) (m : ℕ → ℕ)
59    (hm : Tendsto m atTop atTop) (γ : ℝ)
60    (hratio : Tendsto (fun N : ℕ ↦ (m N : ℝ)/(N : ℝ)) atTop (𝓝 γ))
61    (x : rootSpace d) (i j : Fin (d+1)) :
62    Tendsto (fun N : ℕ ↦
63      ((((sampleShape d (m N) (flatSpectrum (d+1)) x i).val : ℝ)-
64          ((sampleShape d (m N) (flatSpectrum (d+1)) x j).val : ℝ))-
65        (((sampleShape d N (flatSpectrum (d+1)) x i).val : ℝ)-
66          ((sampleShape d N (flatSpectrum (d+1)) x j).val : ℝ)))/Real.sqrt (N : ℝ))
67      atTop (𝓝 ((Real.sqrt γ-1)*(x.1 i-x.1 j))) := by
68  have hs : Tendsto (fun N : ℕ ↦ Real.sqrt (m N : ℝ)/Real.sqrt (N : ℝ)) atTop
69      (𝓝 (Real.sqrt γ)) := by
70    simpa only [Real.sqrt_div (Nat.cast_nonneg _)] using hratio.sqrt
71  have hh := (hs.mul (sampleShape_flat_gap_tendsto d m hm x i j)).sub
72    (sampleShape_flat_gap_tendsto d id tendsto_id x i j)
73  have he : Real.sqrt γ*(x.1 i-x.1 j)-(x.1 i-x.1 j) =
74      (Real.sqrt γ-1)*(x.1 i-x.1 j) := by ring
75  rw [he] at hh
76  apply hh.congr'
77  filter_upwards [eventually_gt_atTop 0, hm.eventually (eventually_gt_atTop 0)] with N hN hmN
78  have hmn : Real.sqrt (m N : ℝ) ≠ 0 := by positivity
79  have hn : Real.sqrt (N : ℝ) ≠ 0 := by positivity
80  dsimp only [id]
81  field_simp
82  <;> ring
83 
84theorem eventually_flat_sampleShape_dominates (d : ℕ) (m : ℕ → ℕ)
85    (hm : Tendsto m atTop atTop) (γ : ℝ) (hγ : 1<γ)
86    (hratio : Tendsto (fun N : ℕ ↦ (m N : ℝ)/(N : ℝ)) atTop (𝓝 γ))
87    (x : rootSpace d) :
88    ∀ᶠ N in atTop, ∀ i, (sampleShape d N (flatSpectrum (d+1)) x i).val ≤
89      (sampleShape d (m N) (flatSpectrum (d+1)) x i).val := by
90  have hi i : Tendsto (fun N : ℕ ↦
91      (((sampleShape d (m N) (flatSpectrum (d+1)) x i).val : ℝ)-
92        ((sampleShape d N (flatSpectrum (d+1)) x i).val : ℝ))/(N : ℝ))
93      atTop (𝓝 ((γ-1)/((d+1 : ℕ) : ℝ))) := by
94    have hh := ((sampleShape_flat_ratio_tendsto d m hm x i).mul hratio).sub
95      (sampleShape_flat_ratio_tendsto d id tendsto_id x i)
96    have he : 1/((d+1 : ℕ) : ℝ)*γ-1/((d+1 : ℕ) : ℝ) = (γ-1)/((d+1 : ℕ) : ℝ) := by ring
97    rw [he] at hh
98    apply hh.congr'
99    filter_upwards [eventually_gt_atTop 0, hm.eventually (eventually_gt_atTop 0)] with N hN hmN
100    have hm0 : (m N : ℝ) ≠ 0 := by positivity
101    have hn0 : (N : ℝ) ≠ 0 := by positivity
102    dsimp only [id]
103    field_simp
104    <;> ring
105  have he : ∀ᶠ N in atTop, ∀ i,
106      0 < (((sampleShape d (m N) (flatSpectrum (d+1)) x i).val : ℝ)-
107        ((sampleShape d N (flatSpectrum (d+1)) x i).val : ℝ))/(N : ℝ) :=
108    eventually_all.mpr fun i ↦ (hi i).eventually
109      (eventually_gt_nhds (div_pos (sub_pos.mpr hγ) (by positivity)))
110  filter_upwards [he, eventually_gt_atTop 0] with N hN hN0
111  intro i
112  have hn : (0 : ℝ)<N := by exact_mod_cast hN0
113  exact_mod_cast (sub_pos.mp ((div_pos_iff_of_pos_right hn).mp (hN i))).le
114 
115/-- At each strictly ordered limiting point, the literal rounded finite labels
116are eventually compatible for the actual Cartan channel. -/
117theorem eventually_flat_sampleShape_compatible (d : ℕ) (m : ℕ → ℕ)
118    (hm : Tendsto m atTop atTop) (γ : ℝ) (hγ : 1<γ)
119    (hratio : Tendsto (fun N : ℕ ↦ (m N : ℝ)/(N : ℝ)) atTop (𝓝 γ))
120    (x : rootSpace d) (hx : StrictAnti (fun i ↦ x.1 i)) :
121    ∀ᶠ N in atTop, PartitionCompatible
122      (fun i ↦ (sampleShape d N (flatSpectrum (d+1)) x i).val)
123      (fun i ↦ (sampleShape d (m N) (flatSpectrum (d+1)) x i).val) := by
124  have hsqrt : 1<Real.sqrt γ := by
125    simpa using Real.sqrt_lt_sqrt (by norm_num : (0 : ℝ)≤1) hγ
126  have he : ∀ᶠ N in atTop, ∀ r : PositiveRoot (d+1),
127      0 < ((((sampleShape d (m N) (flatSpectrum (d+1)) x r.val.1).val : ℝ)-
128          ((sampleShape d (m N) (flatSpectrum (d+1)) x r.val.2).val : ℝ))-
129        (((sampleShape d N (flatSpectrum (d+1)) x r.val.1).val : ℝ)-
130          ((sampleShape d N (flatSpectrum (d+1)) x r.val.2).val : ℝ)))/Real.sqrt (N : ℝ) :=
131    eventually_all.mpr fun r ↦ (sampleShape_flat_cross_gap_tendsto d m hm γ hratio x r.val.1 r.val.2).eventually
132      (eventually_gt_nhds (mul_pos (sub_pos.mpr hsqrt) (sub_pos.mpr (hx r.property))))
133  filter_upwards [he, eventually_flat_sampleShape_dominates d m hm γ hγ hratio x,
134    eventually_gt_atTop 0] with N hgap hdom hN
135  refine ⟨hdom, ?_⟩
136  intro i j hij
137  rcases hij.eq_or_lt with rfl | hij
138  · exact le_rfl
139  have hh := hgap ⟨(i,j),hij⟩
140  have hn : 0<Real.sqrt (N : ℝ) := by positivity
141  have hreal := (div_pos_iff_of_pos_right hn).mp hh
142  have ht :
143      (((sampleShape d (m N) (flatSpectrum (d+1)) x j).val-
144        (sampleShape d N (flatSpectrum (d+1)) x j).val : ℕ) : ℝ) ≤
145      (((sampleShape d (m N) (flatSpectrum (d+1)) x i).val-
146        (sampleShape d N (flatSpectrum (d+1)) x i).val : ℕ) : ℝ) := by
147    rw [Nat.cast_sub (hdom i), Nat.cast_sub (hdom j)]
148    linarith
149  exact_mod_cast ht
150 
151end Cloning.YoungFlat