Yang–Mills: the 2026 Lean construction, rerun and read; the mass gap still open
OpenAI's 2026 Lean construction of 4D Yang–Mills as the expert group keeps it: settle what it proves, rerun it, read it; uniqueness and the mass gap are open, and Clay's problem unsolved

| 1 | import Mathlib.MeasureTheory.Measure.Lebesgue.VolumeOfBalls |
| 2 | import YM.Next.STATIONARY.OneLoop.Bubbles |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | set_option autoImplicit false |
| 10 | /-! |
| 11 | # Normalized rate at Earth's angular coordinate, hand to influence. |
| 12 | Uses unit-period torus parameterization, half-open cube with full product |
| 13 | volume. All ∫ use Bochner. -/ |
| 14 | noncomputable section |
| 15 | namespace YM.Stationary |
| 16 | open Function Filter Lattice RG Exterior Precision Wilson Bloch Laurent Matrix Finset Tree Asymptotics Audience Metric MeasureTheory |
| 17 | open scoped Topology ContDiff BigOperators InnerProductSpace ComplexConjugate _root_.Pointwise NNReal ENNReal |
| 18 | variable {G : Gauge} {σ C : ℝ} |
| 19 | |
| 20 | section volume |
| 21 | abbrev Gaia := EuclideanSpace ℝ Axis |
| 22 | abbrev exileE : Gaia ≃ᵐ Track := (MeasurableEquiv.toLp 2 (Track)).symm |
| 23 | def cradle : Set Track := {x | ∀ i, x i∈ Set.Ioc (-Real.pi) Real.pi} |
| 24 | def boundsEarth := exileE ⁻¹' cradle |
| 25 | lemma cradle_meas : MeasurableSet cradle := by exact MeasurableSet.univ_pi' fun i => measurableSet_Ioc |
| 26 | lemma earth_meas : MeasurableSet boundsEarth := cradle_meas.preimage exileE.measurable |
| 27 | lemma cradleFront (v) (h : v∈ cradle) : FrontBox v := fun i=> abs_le.mpr ⟨(h i).1.le,(h i).2⟩ |
| 28 | def cartWeight : ℝ := ((2*Real.pi)^4)⁻¹ |
| 29 | lemma cart_weight_pos : 0<cartWeight := by unfold cartWeight; positivity |
| 30 | lemma earth_bounded (p : Gaia) (h : p∈boundsEarth) : p∈ closedBall 0 (2*Real.pi) := by |
| 31 | rw [mem_closedBall,dist_zero_right]; exact orbit_boundary _ (cradleFront _ h) |
| 32 | lemma earth_oaks : volume boundsEarth ≠ ⊤ := ((measure_mono (fun _ hp=> earth_bounded _ hp : boundsEarth ⊆ _)).trans_lt (isCompact_closedBall (α:=Gaia) _ _).measure_lt_top).ne |
| 33 | lemma orbs {p : Gaia} (hp : ‖p‖≤1) : p∈boundsEarth := by |
| 34 | have hv : ∀ i,|exileE p i|≤1 := fun i=> (show |exileE p i|≤‖exileE p‖ from by simpa using norm_le_pi_norm (exileE p) i).trans ((orbit_at _).trans hp) |
| 35 | change ∀ i,_; intro i; have h := abs_le.mp (hv i); have he := Real.pi_gt_three; constructor <;> linarith [h.1,h.2] |
| 36 | |
| 37 | lemma guildDraw (f : Momentum→ℂ) (hp : Firm σ C f) : stock f = (cartWeight:ℂ)* ∫ p : Gaia in boundsEarth, f (axes (exileE p)) := by |
| 38 | let c := 2*Real.pi |
| 39 | have hc : 0<c := by unfold c; positivity |
| 40 | let g p := veils f 0 p |
| 41 | have hf : stock f = ∫ p,g p ∂globe Axis := by |
| 42 | have ht := adoption hp.1 (x:=0) (hp.in_range (p:=0) (by simp)) |
| 43 | rw [show Laurent.lens f 0=f by funext i; simp [Laurent.lens], neg_zero,mode_zero,one_mul] at ht; exact ht.symm |
| 44 | let a (_ : Axis) := - (1/2:ℝ) |
| 45 | let S : Set Track:= {x | ∀ i,x i∈Set.Ioc (a i) (a i+1)} |
| 46 | have he (x : Track) : g (Laurent.dress _ x)= f (axes (c • x)) := by |
| 47 | unfold g; rw [hp.1.steps (hp.in_range (p:=0) (by simp)),zero_add]; apply congr_arg f; ext1 i; simp [c,axes,walk] |
| 48 | have hS : c • S=cradle := by |
| 49 | ext p; rw [Set.mem_smul_set_iff_inv_smul_mem₀ hc.ne']; |
| 50 | have he i : p i/c ∈ Set.Ioc (a i) (a i+1) ↔ p i ∈ Set.Ioc (-Real.pi) Real.pi := by rw [Set.mem_Ioc,Set.mem_Ioc, lt_div_iff₀ hc,div_le_iff₀ hc]; unfold a c; constructor <;> intro h <;> constructor <;> linarith [h.1,h.2] |
| 51 | change (∀ i, (c⁻¹ • p) i∈ _)↔∀ i,_ |
| 52 | simp only [Pi.smul_apply,smul_eq_mul, inv_mul_eq_div,he] |
| 53 | rw [hf,show (∫ p,g p ∂globe Axis)= ∫ p in S,g (Laurent.dress _ p) from UnitAddTorus.integral_preimage g a] |
| 54 | simp_rw [he]; |
| 55 | change (∫ x : Track in S, (f ∘ axes) (c • x))= _ |
| 56 | rw [Measure.setIntegral_comp_smul_of_pos (f:= f ∘ axes) volume S hc] |
| 57 | rw [show Module.finrank ℝ Track=4 from Module.finrank_fin_fun ℝ, hS] |
| 58 | let T := EuclideanSpace.volume_preserving_symm_measurableEquiv_toLp Axis |
| 59 | have h : Measure.map exileE volume=volume := T.map_eq |
| 60 | rw [← h,setIntegral_map_equiv]; simp only [Complex.real_smul]; rfl |
| 61 | end volume |
| 62 | end YM.Stationary |
| 63 | end |
| 64 | |
| 65 | /-! |
| 66 | # Parametric tilt integrability. Raw exponent compact B, differentiate twice |
| 67 | on actual angular torus. Does not bound derivative in µ. -/ |
| 68 | noncomputable section |
| 69 | namespace YM.Stationary |
| 70 | open Function Filter Lattice RG Exterior Precision Wilson Bloch Laurent Matrix Finset Tree Asymptotics Audience Metric MeasureTheory |
| 71 | open scoped Topology ContDiff BigOperators InnerProductSpace ComplexConjugate NNReal ENNReal |
| 72 | variable {G : Gauge} {σ C : ℝ} |
| 73 | |
| 74 | section compact |
| 75 | variable (f : ℝ× Gaia →ℂ) |
| 76 | -- Transposes needed t on left. |
| 77 | def plunge (g : ℝ× Gaia →ℂ) (x : ℝ× Gaia) := deriv (fun t : ℝ=> g (t,x.2)) x.1 |
| 78 | lemma plunge_green (h : ContDiff ℝ ω f) : ContDiff ℝ ω (plunge f) := by |
| 79 | have ht (x : ℝ×Gaia) : plunge f x=fderiv ℝ f x (1,0) := by |
| 80 | unfold plunge; let T:=fun t:ℝ=> (t,x.2) |
| 81 | have hx : T x.1=x := rfl |
| 82 | apply HasDerivAt.deriv |
| 83 | have hu : HasFDerivAt f (fderiv ℝ f x) (T x.1) := by rw [hx]; exact h.differentiable (by simp) _ |>.hasFDerivAt |
| 84 | exact hu.comp_hasDerivAt x.1 ((hasDerivAt_id x.1).prodMk (hasDerivAt_const ..)) |
| 85 | rw [funext ht]; exact (h.fderiv_right (m:=ω) (by simp)|>.clm_apply (contDiff_const (c:=(1,0)))) |
| 86 | lemma astute (f : Gaia →ℂ) (he : Continuous f) : IntegrableOn f boundsEarth volume := (he.continuousOn.integrableOn_compact (isCompact_closedBall (0:Gaia) (2*Real.pi))).mono_set (fun _ h=> earth_bounded _ h) |
| 87 | lemma plunge_ride (h : ContDiff ℝ ω f) (t : ℝ) : deriv (fun t : ℝ=> ∫ x : Gaia in boundsEarth, f (t,x)) t=∫ x : Gaia in boundsEarth, plunge f (t,x) := by |
| 88 | let S := (closedBall t 1) ×ˢ (closedBall (0:Gaia) (2*Real.pi)) |
| 89 | have hs : IsCompact S := (isCompact_closedBall _ _).prod (isCompact_closedBall _ _) |
| 90 | have he := plunge_green f h |
| 91 | obtain ⟨A,hA⟩ := (hs.image he.continuous.norm).bddAbove |
| 92 | let ν : Measure Gaia := volume.restrict boundsEarth |
| 93 | let F t x := f (t,x); let V t x := plunge f (t,x) |
| 94 | have hI (x : Gaia) : ContDiff ℝ ω (fun v=> F v x) := h.comp (contDiff_id.prodMk contDiff_const) |
| 95 | have hp t : Continuous (F t) := h.continuous.comp (continuous_const.prodMk continuous_id) |
| 96 | have hz t : Continuous (V t) := he.continuous.comp (continuous_const.prodMk continuous_id) |
| 97 | haveI : IsFiniteMeasure ν := by unfold ν; exact ⟨by rw [Measure.restrict_apply_univ]; exact lt_top_iff_ne_top.2 earth_oaks⟩ |
| 98 | have hw (x y) : HasDerivAt (fun v => F v x) (V y x) y := ((hI x).differentiable (by simp) y).hasDerivAt |
| 99 | apply HasDerivAt.deriv |
| 100 | refine (hasDerivAt_integral_of_dominated_loc_of_deriv_le (F:=F) (F':=V) (μ:=ν) (Metric.ball_mem_nhds t zero_lt_one) (Eventually.of_forall (fun x=> (hp x).aestronglyMeasurable)) (astute (F t) (hp t)) (hz t |>.aestronglyMeasurable) ?_ (integrable_const A) (Eventually.of_forall (fun x y _ => hw x y))).2 |
| 101 | filter_upwards [ae_restrict_mem earth_meas] with x hx y hy |
| 102 | exact hA ⟨(y,x),⟨ball_subset_closedBall hy,earth_bounded _ hx⟩,rfl⟩ |
| 103 | lemma plunge_dive {x : ℝ→ℂ} : flareY 2 x=deriv (deriv x) 0 := by change iteratedFDeriv ℝ 2 x 0 (fun _=>1)=_; rw [← iteratedDeriv_eq_iteratedFDeriv,iteratedDeriv_succ]; simp |
| 104 | lemma plunge_fare (h : ContDiff ℝ ω f) : flareY 2 (fun t : ℝ=> ∫ x in boundsEarth,f (t,x))= ∫ x in boundsEarth, flareY 2 (fun t : ℝ=> f (t,x)) := by |
| 105 | simp_rw [plunge_dive]; rw [funext (plunge_ride f h),plunge_ride (plunge f) (plunge_green f h) 0]; rfl |
| 106 | end compact |
| 107 | |
| 108 | lemma stroll_size {f : Momentum → Momentum → ℂ} (hf : Firm σ C (starTrack f)) : ContDiff ℝ ω (fun z : ℝ× Gaia => f (axes (z.1 • (step (0:Axis) : Track))) (axes (exileE z.2))) := by |
| 109 | let L z : Corn (Album Axis) := Sum.elim ((z:ℝ× Gaia).1 • step (0:Axis)) (exileE z.2) |
| 110 | have he : ContDiff ℝ ω L := by |
| 111 | apply contDiff_pi.mpr; intro i; unfold L |
| 112 | rcases i with i|i |
| 113 | · simp only [Sum.elim_inl,Pi.smul_apply,smul_eq_mul]; fun_prop |
| 114 | change ContDiff ℝ ω (fun z : ℝ× Gaia => z.2 i); fun_prop |
| 115 | have hp : ContDiff ℝ ω ((starTrack f) ∘ axes) := contDiff_iff_contDiffAt.mpr fun x=> (hf.analytic_real x).contDiffAt |
| 116 | exact hp.comp he |
| 117 | lemma keel_hold {Y : Award G} (b : G.ColorIndex) (hf : ∀ i j,Firm σ C (starTrack (Y i j))) : Continuous (fun x : Gaia=> keelRay Y b (exileE x)) := by |
| 118 | let T : Fslot G:= (coord 1,b); let L := Y T T |
| 119 | let f : ℝ× Gaia→ℂ := fun z=> L (axes (z.1 • step (0:Axis))) (axes (exileE z.2)) |
| 120 | have hp : ContDiff ℝ ω f := stroll_size (hf _ _) |
| 121 | have hv x : keelRay Y b (exileE x)=(1/2:ℂ)*plunge (plunge f) (0,x) := by unfold keelRay strolls; rw [plunge_dive]; rfl |
| 122 | simp_rw [hv]; exact continuous_const.mul ((plunge_green _ (plunge_green _ hp)).continuous.comp (continuous_const.prodMk continuous_id)) |
| 123 | end YM.Stationary |
| 124 | end |
| 125 | |
| 126 | /-! |
| 127 | # Log-transverse fine energy. Momentum integral authorized by same Vane. |
| 128 | Whole, not annulus. |
| 129 | -/ |
| 130 | noncomputable section |
| 131 | namespace YM.Stationary |
| 132 | open Function Filter Lattice RG Exterior Precision Wilson Bloch Laurent Matrix Finset Tree Asymptotics Audience Metric MeasureTheory |
| 133 | open scoped Topology ContDiff BigOperators InnerProductSpace ComplexConjugate |
| 134 | variable {G : Gauge} {F : Award G} {σ C : ℝ} |
| 135 | |
| 136 | lemma polar_clock (h : ∀ i j,Firm σ C (starTrack (F i j))) (b : G.ColorIndex) : alphaPay b (profitable F)=cartWeight* ∫ x in boundsEarth,(keelRay F b (exileE x)).re := by |
| 137 | let k : Fslot G := (coord 1,b); let A:=F k k; let L:= pressLens (profitable F) ![b,b] 1 1 |
| 138 | let p : Track := step (0:Axis); let Y t x := A (axes ((t:ℝ) • p)) (axes (exileE x)) |
| 139 | let P := fun t : ℝ => (∫ x in boundsEarth,Y t x) |
| 140 | let K := fun t : ℝ => L (t • p) |
| 141 | have ht (t) : K t=(2:ℂ)⁻¹ * (cartWeight:ℂ)*P t := by |
| 142 | change (2:ℂ)⁻¹*stock (A (axes (t • p)))=_; have hu := h k k; rw [guildDraw (A (axes (t • p))) (stock_take A hu (p:=(axes _)) (Work.F07.realStrip σ hu.width_pos (axes_real (t • p)))),mul_assoc] |
| 143 | have hy : ContDiff ℝ ω (Function.uncurry Y) := stroll_size (h k k) |
| 144 | have hl := h k k |
| 145 | have hs := hl.width_pos |
| 146 | have he : AnalyticAt ℝ L 0 := priceL (profit F hs hl.budget_nonneg h).1 ![b,b] 1 1 |
| 147 | have hv := AnalyticAt.comp (x:=(0:ℝ)) (g:=L) (f:=fun t : ℝ=> t • p) (by rw [zero_smul]; exact he) (ContDiffAt.analyticAt (by fun_prop)) |
| 148 | let c := (2:ℂ)⁻¹*(cartWeight:ℂ) |
| 149 | have hc : c≠0 := mul_ne_zero (by norm_num) (by exact_mod_cast cart_weight_pos.ne') |
| 150 | have hP : AnalyticAt ℝ P 0 := by rw [show P=(fun t=> c⁻¹*K t) from funext (fun t=> by rw [ht]; change P t=c⁻¹*(c*P t); field_simp)]; exact analyticAt_const.mul hv |
| 151 | have hQ := plunge_fare (Function.uncurry Y) hy |
| 152 | have hx : (2:ℂ) * speedy L 2 p = (cartWeight:ℂ)*(∫ x in boundsEarth, keelRay F b (exileE x)) := by |
| 153 | change _= (cartWeight:ℂ)*(∫ x in boundsEarth, (1/2:ℂ)*flareY 2 (fun t=> Y t x)) |
| 154 | unfold speedy Tensor.diagonal Tensor.coeff; rw [_root_.smul_apply,← sipRay (u:=2) (0:Track) p he] |
| 155 | rw [show (fun t : ℝ=> L (0+t • p))=K from funext (fun _=> by rw [zero_add]), funext ht, show flareY 2 (fun t=> (2:ℂ)⁻¹ * (cartWeight:ℂ)*P t) =_ from flare_scale (n:=2) hP c, show flareY 2 P=∫ x in boundsEarth, flareY 2 (fun t=> Y t x) from hQ,integral_const_mul]; unfold c |
| 156 | simp only [Complex.real_smul,Complex.ofReal_inv,Complex.ofReal_natCast]; norm_num [Nat.factorial]; ring |
| 157 | unfold alphaPay leapTip; change 2 * (speedy L 2 p).re=_ |
| 158 | rw [show ∫ x in boundsEarth,(keelRay F b (exileE x)).re=_ from integral_re (astute _ (keel_hold b h))]; |
| 159 | have hc := congr_arg Complex.re hx; simpa [Complex.mul_re] using hc |
| 160 | end YM.Stationary |
| 161 | end |
| 162 | |
| 163 | /-! |
| 164 | # Euclidean annulus of the kinetic determinant. Half-open radial shell |
| 165 | `µ < norm p ≤ 1` (Full denominator estimates allowed on it and on edges). |
| 166 | dimension = finrank, measure = Haar volume, before per-period cost normal. |
| 167 | -/ |
| 168 | noncomputable section |
| 169 | namespace YM.Stationary |
| 170 | open Function Filter Lattice RG Exterior Precision Wilson Bloch Laurent Matrix Finset Tree Asymptotics Audience Metric MeasureTheory |
| 171 | open scoped Topology ContDiff BigOperators InnerProductSpace ComplexConjugate NNReal ENNReal |
| 172 | variable {G : Gauge} {σ μ C : ℝ} |
| 173 | |
| 174 | def orbShell (μ : ℝ) := {k : Gaia | ‖k‖∈Set.Ioc μ 1} |
| 175 | lemma shell_meas : MeasurableSet (orbShell μ) := measurableSet_Ioc.preimage continuous_norm.measurable |
| 176 | lemma shell_def : orbShell μ= closedBall (0:Gaia) 1 \ closedBall 0 μ := by ext; simp [orbShell]; tauto |
| 177 | lemma shell_on {x} (h : x∈orbShell μ) : x∈boundsEarth := orbs h.2 |
| 178 | lemma solidGaia {μ : ℝ} (h : 0≤μ) : volume.real (closedBall (0:Gaia) μ)= μ^4*(Real.pi^2/2) := by |
| 179 | unfold Measure.real; rw [InnerProductSpace.volume_closedBall_of_dim_even (k:=2) (by simp [Gaia])]; norm_num [h,Nat.factorial,ENNReal.toReal_ofReal, Real.pi_pos.le]; left; positivity |
| 180 | |
| 181 | -- Polar law constant. `⊆ ` positions |
| 182 | lemma shell_turn (μ : ℝ) (h : 0<μ) (he : μ≤1) (f : ℝ→ℝ) : ∫ x : Gaia in orbShell μ,f ‖x‖= 2*Real.pi^2 * ∫ y : ℝ in μ..(1:ℝ), y^3*f y := by |
| 183 | let I := Set.Ioc μ 1 |
| 184 | rw [← integral_indicator shell_meas] |
| 185 | have hp (x : Gaia) : (orbShell μ).indicator (fun x=>f ‖x‖) x= I.indicator f ‖x‖ := by |
| 186 | by_cases ht : ‖x‖∈I; · rw [Set.indicator_of_mem (show x∈orbShell μ from ht),Set.indicator_of_mem ht] |
| 187 | rw [Set.indicator_of_notMem (show x∉orbShell μ from ht),Set.indicator_of_notMem ht] |
| 188 | simp_rw [hp]; rw [MeasureTheory.integral_fun_norm_addHaar volume,intervalIntegral.integral_of_le he] |
| 189 | rw [show Module.finrank ℝ Gaia=4 from finrank_euclideanSpace_fin] |
| 190 | have ht : volume.real (ball (0:Gaia) 1)=Real.pi^2/2 := by rw [← Measure.addHaar_real_closedBall_eq_addHaar_real_ball,solidGaia zero_le_one]; ring |
| 191 | rw [ht] |
| 192 | have hx : I⊆Set.Ioi (0:ℝ) := fun i hi=> h.trans hi.1 |
| 193 | have hv : (∫ y in Set.Ioi (0:ℝ), y^(4-1) • I.indicator f y) = ∫ y in I, y^3*f y := by |
| 194 | let F y := (y:ℝ)^3*f y |
| 195 | rw [show (fun y : ℝ=> y^(4-1) • I.indicator f y)=I.indicator F from ?_,setIntegral_indicator measurableSet_Ioc,Set.inter_eq_self_of_subset_right hx] |
| 196 | funext y; by_cases hy : y∈I <;> simp [Set.indicator_of_mem, Set.indicator_of_notMem,hy,F] |
| 197 | rw [hv] |
| 198 | simp [I]; ring |
| 199 | |
| 200 | lemma polar_m (μ : ℝ) (h : 0<μ) (he : μ≤1) : (∫ x : Gaia in orbShell μ, (‖x‖^4)⁻¹)=2*Real.pi^2*Real.log μ⁻¹ := by |
| 201 | rw [shell_turn μ h he (fun x=> (x^4)⁻¹)]; apply congr_arg _ |
| 202 | rw [← one_div, ← integral_inv_of_pos h (a:=μ) (b:= (1:ℝ)) zero_lt_one]; refine intervalIntegral.integral_congr ?_; rw [Set.uIcc_of_le he]; intro x hx; field_simp [(h.trans_le hx.1).ne'] |
| 203 | |
| 204 | lemma peel_p (μ : ℝ) (h : 0<μ) (he : μ≤1) : |
| 205 | (∫ x : Gaia in orbShell μ,(‖x‖^3)⁻¹)=2*Real.pi^2*(1-μ) ∧ |
| 206 | (∫ x : Gaia in orbShell μ,(‖x‖^6)⁻¹)=2*Real.pi^2*((μ⁻¹^2-1)/2) := by |
| 207 | have hu : (0:ℝ) ∉ Set.uIcc μ 1 := by simp only [Set.uIcc_of_le he]; exact fun hc=> h.not_ge hc.1 |
| 208 | have hk (x : ℝ) (he : x∈ Set.uIcc μ 1) : x≠0 := fun h'=>hu (h' ▸ he) |
| 209 | constructor |
| 210 | · rw [shell_turn μ h he (fun x=> (x^3)⁻¹), intervalIntegral.integral_congr (g:=fun _=>1)]; norm_num |
| 211 | intro x he; field_simp [(hk x he)] |
| 212 | rw [shell_turn μ h he (fun x=>(x^6)⁻¹)]; apply congr_arg _ |
| 213 | rw [intervalIntegral.integral_congr (g:=fun x:ℝ=>x^(-3:ℤ)),integral_zpow (n:=(-3:ℤ)) (Or.inr ⟨by norm_num,hu⟩)]; norm_num; field_simp [h.ne']; ring |
| 214 | intro x he; field_simp [(hk x he)] |
| 215 | |
| 216 | lemma geoS (h : 0<μ) (f : Gaia→ℝ) (hf : Continuous f) (n : ℕ) : IntegrableOn (fun x:Gaia => f x/‖x‖^n) (orbShell μ) volume := by |
| 217 | let S := {x:Gaia| ‖x‖∈Set.Icc μ 1} |
| 218 | have he : IsClosed S := isClosed_Icc.preimage continuous_norm |
| 219 | have hv : S⊆closedBall 0 (1:ℝ) := fun i hi=> by simpa using hi.2 |
| 220 | have hk (x : Gaia) (hx : x∈S) : ‖x‖ ≠0 := (h.trans_le hx.1).ne' |
| 221 | exact ((hf.continuousOn.div (continuous_norm.pow n|>.continuousOn) (fun x hx => pow_ne_zero _ (hk x hx))).integrableOn_compact ((isCompact_closedBall (0:Gaia) (1:ℝ)).of_isClosed_subset he hv)).mono_set (fun _ he => ⟨he.1.le,he.2⟩) |
| 222 | end YM.Stationary |
| 223 | end |
| 224 | |
| 225 | /-! |
| 226 | # Orbital rotational moments. No sphere probability convention needed, |
| 227 | use actual Euclidean volume. -/ |
| 228 | noncomputable section |
| 229 | namespace YM.Stationary |
| 230 | open Function Filter Lattice RG Exterior Precision Wilson Bloch Laurent Matrix Finset Tree Asymptotics Audience Metric MeasureTheory |
| 231 | open scoped Topology ContDiff BigOperators InnerProductSpace ComplexConjugate NNReal ENNReal |
| 232 | variable {G : Gauge} {μ : ℝ} |
| 233 | |
| 234 | def springAx (i : Axis) := EuclideanSpace.single i (1:ℝ) |
| 235 | lemma spring_unit (i) : ‖springAx i‖=1 := by unfold springAx; simp |
| 236 | lemma springTouch (i) (x : Gaia) : inner ℝ (springAx i) x=x i := by rw [springAx,EuclideanSpace.inner_single_left]; simp |
| 237 | lemma geode_sum (x : Gaia) : ∑ i : Axis,(x i)^2=‖x‖^2 := by |
| 238 | have ht := orbit_sqr (exileE x); exact ht.symm |
| 239 | lemma alpine (S : Gaia≃ₗᵢ[ℝ] Gaia) (q : Gaia→ℝ) : ∫ x in orbShell μ,q (S x)=∫ x in orbShell μ,q x := by |
| 240 | let T : Gaia≃ᵐ Gaia:= S.toHomeomorph.toMeasurableEquiv |
| 241 | have ht : Measure.map T volume = volume := S.measurePreserving.map_eq |
| 242 | let U := orbShell μ |
| 243 | have hv : T ⁻¹' U = U := by ext x; change ‖S x‖∈Set.Ioc μ 1 ↔ _; rw [LinearIsometryEquiv.norm_map]; rfl |
| 244 | exact Eq.symm (by |
| 245 | |
| 246 | have hx : (∫ x in U,q x ∂Measure.map T volume)=(∫ x in U,q (T x)) := by rw [setIntegral_map_equiv,hv] |
| 247 | rw [ht] at hx; exact hx) |
| 248 | section ann |
| 249 | |
| 250 | def opJen (u x : Gaia) (n : ℕ) := (inner ℝ u x)^n /‖x‖^(4+n) |
| 251 | def joyAx (μ : ℝ) (u : Gaia) (n : ℕ) := ∫ x in orbShell μ, opJen u x n |
| 252 | lemma joy_rotate {u v : Gaia} (h : ‖(u:Gaia)‖= ‖(v:Gaia)‖) (n) : joyAx μ u n=joyAx μ v n := by |
| 253 | let V : Gaia≃ₗᵢ[ℝ] Gaia := Submodule.reflection (Submodule.span ℝ {u-v})ᗮ |
| 254 | have ht : V u=v := Submodule.reflection_sub h |
| 255 | unfold joyAx |
| 256 | refine Eq.trans ?_ (alpine V (fun x=>opJen v x n)); apply setIntegral_congr_fun shell_meas; intro x hx; unfold opJen; simp [← ht] |
| 257 | |
| 258 | |
| 259 | lemma joy_rate (u : Gaia) (a : ℝ) (n : ℕ) : joyAx μ (a • u) n=a^n * joyAx μ u n := by unfold joyAx opJen; simp_rw [real_inner_smul_left,mul_pow,mul_div_assoc,integral_const_mul] |
| 260 | lemma switchG (u : Gaia) (b : Axis) (n) : joyAx μ u n= ‖u‖^n*joyAx μ (springAx b) n := by rw [← joy_rate]; exact joy_rotate (by rw [norm_smul,Real.norm_of_nonneg (norm_nonneg _),spring_unit,mul_one]) _ |
| 261 | |
| 262 | def snowY (p : Gaia) := (‖p‖^4)⁻¹ |
| 263 | def landX (m : ℝ) := ∫ p in orbShell m,snowY p |
| 264 | def jetMix (p : Gaia) (i j : Axis) := (p i)^2*(p j)^2/‖p‖^8 |
| 265 | def joyMix (m : ℝ) (i j : Axis) := ∫ p in orbShell m, jetMix p i j |
| 266 | variable (h : 0<μ) |
| 267 | include h |
| 268 | lemma joy_paid (p : Gaia) (n) : IntegrableOn (fun x=>opJen p x n) (orbShell μ) volume := geoS h (fun x=> (inner ℝ p x)^n) (by fun_prop) _ |
| 269 | lemma joy_meal (i j : Axis) : IntegrableOn (fun x=> jetMix x i j) (orbShell μ) volume := geoS h _ (show Continuous fun x : Gaia=> (x i)^2*(x j)^2 from by fun_prop) 8 |
| 270 | lemma joy_two (i : Axis) : joyAx μ (springAx i) 2=landX μ/4 := by |
| 271 | have hp : (∑ j:Axis,joyAx μ (springAx j) 2)=landX μ := by |
| 272 | unfold joyAx landX; rw [← integral_finsetSum]; swap; · intro a _; exact joy_paid h _ _ |
| 273 | apply setIntegral_congr_fun shell_meas; intro a ha; unfold opJen snowY |
| 274 | simp_rw [springTouch,← sum_div,geode_sum a]; have hv : 0<‖a‖ := h.trans ha.1; field_simp |
| 275 | simp_rw [show ∀ a,joyAx μ (springAx a) 2= joyAx μ (springAx i) 2 from fun a=>joy_rotate ((spring_unit a).trans (spring_unit i).symm) 2] at hp; simp at hp; linarith |
| 276 | lemma prismAx (i j : Axis) (hp : i≠j) : ‖springAx i+springAx j‖^4=4 ∧ ‖springAx i-springAx j‖^4=4 := by |
| 277 | have hx : ⟪springAx i,springAx j⟫_ℝ=0 := by rw [springTouch]; simp [springAx,hp] |
| 278 | constructor |
| 279 | · rw [show ‖_+_‖^4=(‖springAx i+springAx j‖^2)^2 by ring,norm_add_sq_real,spring_unit,spring_unit,hx]; norm_num |
| 280 | rw [show ‖_-_‖^4=(‖springAx i-springAx j‖^2)^2 by ring,norm_sub_sq_real,spring_unit,spring_unit,hx]; norm_num |
| 281 | -- average j in each row to get mixed formula. braces corners. |
| 282 | lemma joy_knot (i j : Axis) (ht : i≠j) : joyAx μ (springAx i) 4 = 3*joyMix μ i j := by |
| 283 | let M := joyAx μ (springAx i) 4 |
| 284 | let P:=springAx i+springAx j; let Q:=springAx i-springAx j |
| 285 | have hh : joyAx μ P 4 + joyAx μ Q 4=2*M + 2* joyAx μ (springAx j) 4+12*joyMix μ i j := by |
| 286 | unfold M joyAx joyMix |
| 287 | rw [← integral_add (joy_paid h _ 4) (joy_paid h _ 4)]; simp_rw [← integral_const_mul]; rw [← integral_add (f:=fun v=>2*opJen (springAx i) v 4) (g:=fun v=>2*opJen (springAx j) v 4) ((joy_paid h _ 4).const_mul 2) ((joy_paid h _ 4).const_mul 2), ← integral_add ?_ ((joy_meal h i j).const_mul 12)] |
| 288 | · apply setIntegral_congr_fun shell_meas; intro x hx; unfold opJen jetMix P Q; simp only [inner_add_left,inner_sub_left,springTouch]; ring |
| 289 | exact Integrable.add ((joy_paid h _ 4).const_mul 2) ((joy_paid h _ 4).const_mul 2) |
| 290 | rw [switchG (μ:=μ) P i 4,switchG (μ:=μ) Q i 4,show ‖P‖^4=_ from (prismAx (μ:=μ) h i j ht).1,show ‖Q‖^4=_ from (prismAx (μ:=μ) h i j ht).2, joy_rotate (show ‖springAx j‖=‖springAx i‖ by rw [spring_unit,spring_unit]) 4] at hh |
| 291 | unfold M at hh; linarith |
| 292 | lemma joy_heights (i j : Axis) (ht : i ≠ j) : joyMix μ i j = landX μ/24 := by |
| 293 | let f i' := joyMix μ i i'; let A:= f i; let B:= f j |
| 294 | have hp : (∑ i : Axis, f i)= joyAx μ (springAx i) 2 := by |
| 295 | unfold joyAx f joyMix; rw [← integral_finsetSum]; swap; · exact fun k _ => joy_meal h i k |
| 296 | apply setIntegral_congr_fun shell_meas; intro k hk; unfold opJen jetMix; simp_rw [springTouch,← sum_div,← mul_sum,geode_sum]; field_simp [((h.trans hk.1).ne')] |
| 297 | have ha : A=joyAx μ (springAx i) 4 := by |
| 298 | unfold A f joyMix joyAx; apply setIntegral_congr_fun shell_meas; intro x hx; unfold jetMix opJen; simp only [springTouch]; ring |
| 299 | have he (a) (h' : a ≠ i) : f a=B := by |
| 300 | have hx := joy_knot h i a h'.symm; have hq := joy_knot h i j ht; unfold f B; linarith |
| 301 | rw [show ∑ i,f i = A + 3*B from ?_,joy_two h i] at hp |
| 302 | swap |
| 303 | · rw [← sum_erase_add _ _ (mem_univ i)]; simp_rw [sum_congr rfl (s₁:=_) (f:=f) (g:=fun _ => B) (fun k hk=> he k (ne_of_mem_erase hk))]; simp [Finset.card_erase_of_mem,A, Fintype.card_fin]; ring |
| 304 | rw [ha,joy_knot h i j ht] at hp; unfold B f at hp; linarith |
| 305 | end ann |
| 306 | end YM.Stationary |
| 307 | end |
| 308 | |
| 309 | /-! |
| 310 | # Lattice slope quantitative. Combining barriers not alter `μ`; error |
| 311 | estimates taken absolutely before any constrained radial pseudoscale. |
| 312 | -/ |
| 313 | noncomputable section |
| 314 | namespace YM.Stationary |
| 315 | open Function Filter Lattice RG Exterior Precision Wilson Bloch Laurent Matrix Finset Tree Asymptotics Audience Metric MeasureTheory |
| 316 | open scoped Topology ContDiff BigOperators InnerProductSpace ComplexConjugate NNReal ENNReal |
| 317 | variable {G : Gauge} {σ η μ C D : ℝ} {F : Award G} |
| 318 | |
| 319 | -- continuum log at that μ. shape Greek. |
| 320 | lemma poleBudget (h : 0<μ) : IntegrableOn (poleVec G ∘ exileE) (orbShell μ) volume := by |
| 321 | let V := fun x : Gaia=> ((exileE x) 1)^2; let U := fun x : Gaia=> 4*(x 1)^2*(x 0)^2 |
| 322 | have hL := geoS h V (show Continuous (fun x : Gaia=> (x 1)^2) by fun_prop) 6 |
| 323 | have hX := geoS h U (by unfold U; fun_prop) 8 |
| 324 | have ht : IntegrableOn (fun x:Gaia=> (‖x‖^4)⁻¹) (orbShell μ) volume := by simpa using geoS h (fun _=>1) continuous_const 4 |
| 325 | exact ((hL.sub hX).sub ht).const_mul _ |
| 326 | lemma poleSpin (h : 0<μ) (he : μ≤1) : cartWeight*(∫ x in orbShell μ,poleVec G (exileE x))= -G.slopeConstant*Real.log μ⁻¹ := by |
| 327 | let f := fun x : Gaia=> opJen (springAx 1) x 2 |
| 328 | let r := fun x : Gaia=> jetMix x 1 0 |
| 329 | have hr (x : Gaia) : poleVec G (exileE x)=4*G.casimir*(f x-4*r x-snowY x) := by |
| 330 | change 4*_*((x 1)^2 / ‖x‖^6-4*(x 1)^2*(x 0)^2/‖x‖^8 - (‖x‖^4)⁻¹)=_; unfold f opJen; rw [springTouch]; unfold r jetMix snowY; ring |
| 331 | simp_rw [hr] |
| 332 | have hy : IntegrableOn snowY (orbShell μ) volume := by |
| 333 | change IntegrableOn (fun x:Gaia=> (‖x‖^4)⁻¹) _ _; simpa using geoS h (fun _=>1) continuous_const 4 |
| 334 | rw [integral_const_mul,integral_sub (f:=fun x=>f x-4*r x) ((joy_paid h (springAx 1) 2).sub ((joy_meal h 1 0).const_mul 4)) hy, |
| 335 | integral_sub (f:=f) (joy_paid h _ _) ((joy_meal h 1 0).const_mul 4), integral_const_mul] |
| 336 | change cartWeight*(_*(joyAx μ (springAx 1) 2- _*joyMix μ 1 0- landX μ))=_ |
| 337 | rw [joy_two h 1,joy_heights h _ _ (by decide : (1:Axis) ≠0),show landX μ=_ from polar_m μ h he] |
| 338 | unfold Gauge.slopeConstant cartWeight; field_simp; ring |
| 339 | |
| 340 | section real |
| 341 | variable (b : G.ColorIndex) (h : ∀ i j,Firm σ C (starTrack (F i j))) |
| 342 | -- Outer(in Cube). Cost VolCube even including edge 0 if unit? |
| 343 | |
| 344 | def costZone (A D : ℝ) := A*(Real.pi^2/2)+A*volume.real boundsEarth + D*(2*Real.pi^2+Real.pi^2) |
| 345 | include h |
| 346 | lemma absoluteGeode {A : ℝ} (hA : 0≤A) (hD : 0≤D) (hμ : 0<μ) (hp : μ≤1) (hv : Waves1 A μ (keelRay F b)) (hk : Waves2 D μ (keelRay F b) G) : |
| 347 | |alphaPay b (profitable F)+ G.slopeConstant*Real.log μ⁻¹| ≤ cartWeight*costZone A D := by |
| 348 | let B : Set Gaia := closedBall 0 1 |
| 349 | let L : Set Gaia := closedBall 0 μ |
| 350 | let I := orbShell μ; let Q:=boundsEarth \ B |
| 351 | let g x := (keelRay F b (exileE x)).re; let H:=fun x : Gaia=>poleVec G (exileE x) |
| 352 | have hy : B⊆boundsEarth := fun _ hp=> orbs (by simpa [B] using hp) |
| 353 | have hl : L⊆B := closedBall_subset_closedBall hp |
| 354 | have hu : boundsEarth= (L∪I) ∪ Q := by rw [show I=B\L from shell_def,Set.union_sdiff_cancel hl]; exact (Set.union_sdiff_cancel hy).symm |
| 355 | have hs : MeasurableSet L := measurableSet_closedBall; have hI : MeasurableSet I := shell_meas |
| 356 | have hQ : MeasurableSet Q := earth_meas.diff measurableSet_closedBall |
| 357 | have ht := astute (fun x : Gaia => keelRay F b (exileE x)) (keel_hold b h) |
| 358 | have hg : IntegrableOn g boundsEarth volume := ht.re |
| 359 | have hd : IntegrableOn g I volume := hg.mono_set (fun _ hv=> shell_on hv) |
| 360 | have hE (x : Gaia) (hx : x∈boundsEarth) : ‖g x‖≤ A/(‖x‖+μ)^4 := by |
| 361 | rw [Real.norm_eq_abs]; exact (Complex.abs_re_le_norm _).trans (hv _ (cradleFront _ hx)) |
| 362 | have hB1 : ‖∫ x in L,g x‖≤A*(Real.pi^2/2) := by |
| 363 | have hx x (he : x∈L) : ‖g x‖≤ A/μ^4 := by |
| 364 | exact (hE x (hl.trans hy he)).trans (div_le_div_of_nonneg_left hA (pow_pos hμ 4) (pow_le_pow_left₀ hμ.le (le_add_of_nonneg_left (norm_nonneg _)) 4)) |
| 365 | refine (norm_setIntegral_le_of_norm_le_const ?_ hx).trans_eq ?_ |
| 366 | · exact (isCompact_closedBall ..).measure_lt_top |
| 367 | unfold L; rw [solidGaia hμ.le]; field_simp |
| 368 | have hB2 : ‖∫ x in Q,g x‖ ≤ A*volume.real boundsEarth := by |
| 369 | have hx x (he : x∈Q) : ‖g x‖≤ A := by |
| 370 | have hh : 1≤‖x‖ := le_of_lt (lt_of_not_ge (fun h=> he.2 (by simpa [B] using h))) |
| 371 | exact (hE x he.1).trans (div_le_self hA (one_le_pow₀ (by linarith))) |
| 372 | have hh : Q ⊆ boundsEarth := fun _ ht=> ht.1 |
| 373 | exact (norm_setIntegral_le_of_norm_le_const ((measure_mono hh).trans_lt (lt_top_iff_ne_top.2 earth_oaks)) hx).trans (mul_le_mul_of_nonneg_left (measureReal_mono hh earth_oaks) hA) |
| 374 | have ht' : ‖∫ x in I,(g x-H x)‖≤ D*(2*Real.pi^2+Real.pi^2) := by |
| 375 | let M x := D*(‖(x:Gaia)‖^3)⁻¹ |
| 376 | let P x := D*μ^2*(‖(x:Gaia)‖^6)⁻¹ |
| 377 | have hm v (hv : v∈I) : ‖g v-H v‖ ≤ M v+P v := by |
| 378 | rw [Real.norm_eq_abs,show g v-H v=_ from (Complex.sub_re (keelRay F b (exileE v)) (H v:ℂ)).symm] |
| 379 | exact (Complex.abs_re_le_norm _).trans ((hk _ (cradleFront _ (shell_on hv)) hv.1.le).trans_eq (by rw [div_eq_mul_inv,div_eq_mul_inv]; rfl)) |
| 380 | have hx (n : ℕ) : IntegrableOn (fun x:Gaia=> (‖x‖^n)⁻¹) I volume := by simpa using geoS hμ (fun _=>1) continuous_const n |
| 381 | have hM : IntegrableOn M I volume := (hx 3).const_mul _; have hP : IntegrableOn P I volume := (hx 6).const_mul _ |
| 382 | refine (norm_integral_le_of_norm_le (μ:=volume.restrict I) (g:=fun x=> M x+P x) (hM.add hP) ?_).trans ?_ |
| 383 | · exact (ae_restrict_mem hI).mono fun i hi => hm i hi |
| 384 | rw [integral_add hM hP]; unfold M P I |
| 385 | rw [integral_const_mul,integral_const_mul,(peel_p μ hμ hp).1,(peel_p μ hμ hp).2] |
| 386 | rw [mul_add]; apply add_le_add |
| 387 | · refine mul_le_mul_of_nonneg_left ?_ hD; exact mul_le_of_le_one_right (by positivity) (by linarith) |
| 388 | calc |
| 389 | _ = D*Real.pi^2*(1-μ^2) := by field_simp |
| 390 | _ ≤ _ := mul_le_of_le_one_right (by positivity) (by nlinarith) |
| 391 | have he : (∫ x in boundsEarth,g x) = ((∫ x in L,g x)+(∫ x in I,g x))+(∫ x in Q,g x) := by |
| 392 | have hy' : L∪I=B := by rw [show I=B\L from shell_def,Set.union_sdiff_cancel hl] |
| 393 | conv_lhs => rw [hu] |
| 394 | rw [setIntegral_union (s:=L∪I) (t:=Q) ?_ hQ ?_ ?_,setIntegral_union (s:=L) ?_ hI (hg.mono_set (hl.trans hy)) hd] |
| 395 | · rw [show I=B\L from shell_def]; exact Set.disjoint_sdiff_right |
| 396 | · rw [hy']; exact Set.disjoint_sdiff_right |
| 397 | · rw [hy']; exact hg.mono_set hy |
| 398 | exact hg.mono_set (fun _ (hh:_∈Q)=> hh.1) |
| 399 | have hH := poleSpin (G:=G) hμ hp |
| 400 | rw [polar_clock h b] |
| 401 | rw [neg_mul] at hH |
| 402 | change |cartWeight*(∫ x in boundsEarth,g x)+_|≤_ |
| 403 | rw [he, ← show -(cartWeight*(∫ v in I,H v))=G.slopeConstant*Real.log μ⁻¹ from neg_eq_iff_eq_neg.mpr hH]; |
| 404 | rw [← mul_neg,← mul_add, abs_mul, abs_of_pos cart_weight_pos] |
| 405 | refine mul_le_mul_of_nonneg_left ?_ cart_weight_pos.le |
| 406 | have h' : (∫ x in I,g x-H x)=(∫ x in I,g x)-(∫ x in I,H x) := integral_sub hd (poleBudget (G:=G) hμ) |
| 407 | rw [show _ + -(∫ x in I,H x)= (∫ x in L,g x)+(∫ x in Q,g x)+(∫ x in I,g x-H x) by rw [h']; abel, ← Real.norm_eq_abs] |
| 408 | exact (norm_add_le ..).trans (add_le_add ((norm_add_le ..).trans (add_le_add hB1 hB2)) ht') |
| 409 | end real |
| 410 | end YM.Stationary |
| 411 | end |