Offline · exact source
Exact Lean source

SpectralGapThreshold

formalization/Cloning/SpectralGapThreshold.lean

Source hash: cc0f38928f302c55873f9563dfea56676d28375e1beceff851b84e10d3155b9d

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.

In the dependency map: Unknown spectrum

Declarations in this module
1import Cloning.SpectralGapCompact
2 
3/-! Sharp feasibility threshold for the compact spectral example. -/
4noncomputable section
5open scoped Topology BigOperators
6open Filter
7namespace Cloning.SpectralGap
8variable {d : ℕ}
9set_option autoImplicit false
10set_option maxHeartbeats 1200000
11 
12def threshold (d : ℕ) : ℝ := 2/(((d:ℝ)+1)*(d+2))
13 
14theorem threshold_pos (d : ℕ) : 0 < threshold d := by unfold threshold; positivity
15 
16theorem arithmeticVector_threshold (d : ℕ) (i : Fin (d+1)) :
17    arithmeticVector d (threshold d) i = ((d:ℝ)+1-i.val)*threshold d := by
18  unfold arithmeticVector threshold
19  have hd : (d:ℝ)+1 ≠ 0 := by positivity
20  have hd2 : (d:ℝ)+2 ≠ 0 := by positivity
21  field_simp
22  ring
23 
24def endpointSpectrum (d : ℕ) : SimpleSpectrum (d+1) where
25  eigenvalue := arithmeticVector d (threshold d)
26  positive := by
27    intro i
28    rw [arithmeticVector_threshold]
29    apply mul_pos _ (threshold_pos d)
30    have hi : (i.val:ℝ) < d+1 := by exact_mod_cast i.isLt
31    linarith
32  strictAnti := Fin.strictAnti_iff_succ_lt.mpr fun i => by
33    have h := arithmeticVector_gap d (threshold d) i
34    have ht := threshold_pos d
35    linarith
36  normalized := arithmeticVector_sum d (threshold d)
37 
38theorem endpointSpectrum_mem (d : ℕ) : endpointSpectrum d ∈ gapSet d (threshold d) := by
39  constructor
40  · change threshold d ≤ arithmeticVector d (threshold d) (Fin.last d)
41    rw [arithmeticVector_threshold]
42    simp
43  · intro i
44    exact (arithmeticVector_gap d (threshold d) i).ge
45 
46theorem gapSet_coordinate_lower {κ : ℝ} (p : SimpleSpectrum (d+1))
47    (hp : p∈gapSet d κ) (i : Fin (d+1)) :
48    ((d:ℝ)+1-i.val)*κ ≤ p.eigenvalue i := by
49  have ha : Antitone (fun i : Fin (d+1) => p.eigenvalue i+(i.val:ℝ)*κ) := by
50    apply Fin.antitone_iff_succ_le.mpr
51    intro j
52    have h := hp.2 j
53    simp only [Fin.val_succ,Fin.val_castSucc,Nat.cast_add,Nat.cast_one]
54    linarith
55  have h := ha (Fin.le_last i)
56  have hl := hp.1
57  simp only [Fin.val_last] at h hl
58  nlinarith
59 
60theorem gapSet_threshold_singleton (d : ℕ) :
61    gapSet d (threshold d) = {endpointSpectrum d} := by
62  ext p
63  constructor
64  · intro hp
65    have hle (i : Fin (d+1)) : (endpointSpectrum d).eigenvalue i ≤ p.eigenvalue i := by
66      change arithmeticVector d (threshold d) i ≤ p.eigenvalue i
67      rw [arithmeticVector_threshold]
68      exact gapSet_coordinate_lower p hp i
69    have he : ∀ i, (endpointSpectrum d).eigenvalue i = p.eigenvalue i := by
70      have hsum : (∑ i, (endpointSpectrum d).eigenvalue i) = ∑ i, p.eigenvalue i := by
71        rw [p.normalized,(endpointSpectrum d).normalized]
72      exact fun i => (Finset.sum_eq_sum_iff_of_le (s := Finset.univ) (fun i _ => hle i)).mp hsum i (Finset.mem_univ i)
73    exact SimpleSpectrum.eigenvalue_injective (funext (fun i => (he i).symm))
74  · rintro rfl
75    exact endpointSpectrum_mem d
76 
77theorem gapSet_empty_above_threshold (d : ℕ) {κ : ℝ} (hκ : threshold d < κ) :
78    gapSet d κ = ∅ := by
79  apply Set.eq_empty_iff_forall_notMem.mpr
80  intro p hp
81  have hp' : p∈gapSet d (threshold d) := ⟨hκ.le.trans hp.1,fun i => hκ.le.trans (hp.2 i)⟩
82  have he : p=endpointSpectrum d := by
83    simpa only [gapSet_threshold_singleton,Set.mem_singleton_iff] using hp'
84  subst p
85  have hlast := hp.1
86  change κ ≤ arithmeticVector d (threshold d) (Fin.last d) at hlast
87  rw [arithmeticVector_threshold] at hlast
88  simp only [Fin.val_last,add_sub_cancel_left,one_mul] at hlast
89  linarith
90 
91/-- In dimensions at least two the endpoint singleton has empty interior;
92it therefore fails the regular-closure hypothesis, as stated in the paper. -/
93theorem gapSet_threshold_interior_empty (hd : 1≤d) :
94    interior (gapSet d (threshold d)) = ∅ := by
95  rw [gapSet_threshold_singleton]
96  apply Set.eq_empty_iff_forall_notMem.mpr
97  intro p hp
98  have he : p=endpointSpectrum d := Set.mem_singleton_iff.mp (interior_subset hp)
99  subst p
100  have hκ := threshold_pos d
101  let q := arithmeticSpectrum d (threshold d/2) (by positivity) (by
102    change threshold d/2 < threshold d
103    linarith)
104  have hlast : (endpointSpectrum d).eigenvalue (Fin.last d) = threshold d := by
105    change arithmeticVector d (threshold d) (Fin.last d) = _
106    rw [arithmeticVector_threshold]
107    simp
108  have hq : (endpointSpectrum d).eigenvalue (Fin.last d) < q.eigenvalue (Fin.last d) := by
109    have hd' : (0:ℝ)<d := by exact_mod_cast (Nat.zero_lt_of_lt hd)
110    have hprod := mul_pos hd' hκ
111    have heq := hlast
112    change 1/((d:ℝ)+1)+((d:ℝ)/2-d)*threshold d = threshold d at heq
113    change (endpointSpectrum d).eigenvalue (Fin.last d) <
114      1/((d:ℝ)+1)+((d:ℝ)/2-d)*(threshold d/2)
115    rw [hlast]
116    nlinarith
117  have ht (n : ℕ) : 0 < 1/((n:ℝ)+1) := by positivity
118  have ht1 (n : ℕ) : 1/((n:ℝ)+1) ≤ 1 := (div_le_one (by positivity)).mpr (by
119    have hn : (0:ℝ)≤n := Nat.cast_nonneg n
120    linarith)
121  let u (n : ℕ) := mix (endpointSpectrum d) q (1/((n:ℝ)+1)) (ht n).le (ht1 n)
122  have hc : Tendsto u atTop (𝓝 (endpointSpectrum d)) := by
123    apply SimpleSpectrum.isEmbedding_eigenvalue.tendsto_nhds_iff.mpr
124    apply tendsto_pi_nhds.mpr
125    intro i
126    have hz := tendsto_one_div_add_atTop_nhds_zero_nat (𝕜 := ℝ)
127    simpa [u,mix] using (((tendsto_const_nhds (x := (1:ℝ))).sub hz).mul_const
128      ((endpointSpectrum d).eigenvalue i)).add (hz.mul_const (q.eigenvalue i))
129  obtain ⟨n,hn⟩ := (hc.eventually (isOpen_interior.mem_nhds hp)).exists
130  have hu : u n = endpointSpectrum d := Set.mem_singleton_iff.mp (interior_subset hn)
131  have hcoord := congrArg (fun p : SimpleSpectrum (d+1) => p.eigenvalue (Fin.last d)) hu
132  change (1-1/((n:ℝ)+1))*(endpointSpectrum d).eigenvalue (Fin.last d)+
133    (1/((n:ℝ)+1))*q.eigenvalue (Fin.last d) = (endpointSpectrum d).eigenvalue (Fin.last d) at hcoord
134  nlinarith [mul_pos (ht n) (sub_pos.mpr hq)]
135 
136theorem gapSet_threshold_not_regular (hd : 1≤d) :
137    closure (interior (SimpleSpectrum.toAffine '' gapSet d (threshold d))) ≠
138      SimpleSpectrum.toAffine '' gapSet d (threshold d) := by
139  intro h
140  have hreg := SimpleSpectrum.regularClosure_of_affine _ h
141  rw [gapSet_threshold_interior_empty hd,closure_empty] at hreg
142  have hp := endpointSpectrum_mem d
143  rw [← hreg] at hp
144  exact hp
145 
146theorem gapSet_minimax_tendsto (hd : 1≤d) {κ : ℝ} (hκ : 0<κ)
147    (hupper : κ<threshold d) (m : ℕ→ℕ) (γ : ℝ) (hγ : 1<γ)
148    (hgain : Tendsto (fun n => (m n:ℝ)/n) atTop (𝓝 γ)) :
149    Tendsto (fun n => TensorCloning.unknownSpectrumValue n (m n) (gapSet d κ)) atTop
150      (𝓝 (⨅ p : gapSet d κ, universalValue γ p.val)) := by
151  obtain ⟨hc,hne,hr⟩ := gapSet_hypotheses d hκ hupper
152  exact TensorCloning.unknownSpectrumValue_tendsto_affine hd _ hc hne hr m γ hγ hgain
153 
154end Cloning.SpectralGap