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 YM.Extra.ITERATION_NO_LOSS.Margins |
| 2 | import YM.Extra.ITERATION_NO_LOSS.PathHit |
| 3 | import YM.Extra.ITERATION_NO_LOSS.Radius |
| 4 | |
| 5 | /-! |
| 6 | # Regenerate the operating exponent, cover geometry and budgets after L |
| 7 | |
| 8 | Use in parallel with `Post.lean`'s path worksheet. `Census` can be chosen |
| 9 | once path numerics are known (otherwise anticipate them beforehand); its |
| 10 | values and the full support exponents/desired reserves **before** enlarging |
| 11 | floorL. Halo is in cover radii; not allowed to depend on L. Every finite |
| 12 | additional width/exponent request needs a sufficient receipt, not automatic |
| 13 | because larger floors are *allowed*. `Fuel` in this file means numeric |
| 14 | requests, not the root estimates in Overlay. No new density defined. |
| 15 | -/ |
| 16 | set_option autoImplicit false |
| 17 | noncomputable section |
| 18 | namespace YM.Extra.Iteration.Rebuild |
| 19 | open Filter Function Lattice Wilson RG RG.Supply Precision Pressure Scales |
| 20 | open scoped Topology BigOperators ContDiff Matrix.Norms.Frobenius |
| 21 | variable {G : Gauge} {S : Sheet G} {D : Rolls S} {Θ : Protection D} {W : Supply.Delays Θ} {Y : Bar W} {I : Wait Y} |
| 22 | |
| 23 | /-- halo/exponent reserves can depend on both possible transitions and other |
| 24 | pre-L requests. s=0 allowed. `leading` pays C_J on q, E' and reset. |
| 25 | Can enlarge inherited stationary thresholds *before* actual D is chosen. |
| 26 | -/ |
| 27 | structure Census where |
| 28 | halo : ℕ → ℕ → ℕ |
| 29 | reserve : ℕ → ℕ → ℝ |
| 30 | leading : ℕ → ℕ → ℝ |
| 31 | reserve_nonneg j k : 0 ≤ reserve j k |
| 32 | pos j k : 0 < leading j k |
| 33 | |
| 34 | structure Open (V : Census) (p : Sheet G) : Prop where |
| 35 | project (j k) : k ≤ j → j ≤ k+1 → |
| 36 | 20*(Shapes.pad (V.halo j k+9):ℝ)*((p.profile k).supportExponent+V.reserve j k) ≤ (p.profile j).supportExponent*p.floorL j |
| 37 | afford (j k) : k ≤ j → j ≤ k+1 → 8*(V.leading j k)^2 ≤ (p.floorL j:ℝ) |
| 38 | |
| 39 | theorem more (V : Census) (p : Sheet G) : ∃ v : ℕ → ℕ, ∀ n : ℕ → ℕ, (∀ i, v i ≤ n i) → p.floorL ≤ n ∧ |
| 40 | Open V {p with floorL := n} := by |
| 41 | let bill (j k : ℕ) : ℝ := max (20*(Shapes.pad (V.halo j k+9):ℝ)*((p.profile k).supportExponent+V.reserve j k)/(p.profile j).supportExponent) |
| 42 | (8*(V.leading j k)^2) |
| 43 | choose b hb using fun j k => exists_nat_gt (bill j k) |
| 44 | refine ⟨fun j => max (max (b j j) (b j (j-1))) (p.floorL j),fun n hn => ⟨fun j => (le_max_right ..).trans (hn j),?_⟩⟩ |
| 45 | have he (j k) (hk : k≤j) (hj : j≤k+1) : bill j k ≤ n j := by |
| 46 | apply (hb j k).le.trans; exact_mod_cast le_trans (le_max_of_le_left (by |
| 47 | rcases (show k=j ∨ k=j-1 by omega) with rfl|h; exact le_max_left ..; rw [h]; exact le_max_right ..)) (hn j) |
| 48 | refine ⟨fun j k hk hj => ?_, fun j k hk hj => (le_max_right ..).trans (he j k hk hj)⟩ |
| 49 | exact ((div_le_iff₀ (p.profile j).price_pos).mp ((le_max_left ..).trans (he j k hk hj))).trans_eq (mul_comm ..) |
| 50 | |
| 51 | /-- All before buying an |
| 52 | actual band/wait. e.g. leak a post-L `o_L(1)` uniform in period/couplings, |
| 53 | actual smallness required at each entrance. |
| 54 | |
| 55 | Does NOT compute such a rate for |
| 56 | the integral! -/ |
| 57 | structure Fuel {G : Gauge} {S : Sheet G} (D : Rolls S) where |
| 58 | cost : ℕ → ℕ → ℝ |
| 59 | rate : ℕ → ℕ → ℝ |
| 60 | power : ℕ → ℕ → ℕ |
| 61 | leak : ℕ → ℕ → ℝ → ℝ |
| 62 | nonnegative j k : 0 ≤ cost j k |
| 63 | positive j k : 0 < rate j k |
| 64 | fades j k : Tendsto (leak j k) atTop (𝓝 0) |
| 65 | |
| 66 | namespace Fuel |
| 67 | variable (F : Fuel D) |
| 68 | |
| 69 | def strength (j : ℕ) := min (F.rate j j) (F.rate j (j-1))/4 |
| 70 | lemma strength_pos (j : ℕ) : 0 < F.strength j := by unfold strength; have := lt_min (F.positive j j) (F.positive j (j-1)); positivity |
| 71 | lemma strength_le {j k} (hk : k ≤ j) (hj : j ≤ k+1) : F.strength j ≤ F.rate j k / 4 := by |
| 72 | unfold strength; gcongr; rcases (show k=j ∨ k=j-1 by omega) with rfl|rfl; exact min_le_left ..; exact min_le_right .. |
| 73 | |
| 74 | def output (j k : ℕ) (x θ : ℝ) := poly (F.cost j k) (F.power j k) x (betaF G x (D.L j)) θ |
| 75 | |
| 76 | def weak (S : Census) (j k : ℕ) (x θ b : ℝ) := |
| 77 | let y := betaF G x (D.L j) |
| 78 | let C := S.leading j k |
| 79 | C*((C/(D.L j).val + F.leak j k x) * unforced y + bill (F.cost j k) (F.rate j k) (F.power j k) x y θ b) |
| 80 | |
| 81 | def hard (j k : ℕ) (x b : ℝ) := marked (F.cost j k) (F.rate j k) (betaF G x (D.L j)) b |
| 82 | end Fuel |
| 83 | |
| 84 | structure Entrance (S' : Census) (F : Fuel D) (Θ : Protection D) (j k : ℕ) (x : ℝ) : Prop where |
| 85 | geometry : radiusB (betaF G x (D.L j)) ≤ 2*radiusB x ∧ radiusB x ≤ 2*radiusB (betaF G x (D.L j)) |
| 86 | small : temp (betaF G x (D.L j)) ≤ 2*temp x ∧ temp x ≤ 2*temp (betaF G x (D.L j)) |
| 87 | fine : Shapes.broad (S'.halo j k) (radiusB (betaF G x (D.L j))) ((S.profile j).supportExponent + S'.reserve j k) (S.profile j).width |
| 88 | coarse : Shapes.broad (S'.halo j k) (radiusB x) ((S.profile k).supportExponent + S'.reserve j k) (S.profile k).width |
| 89 | output : F.output j k x (Θ.theta j) * temp x^ (3:ℕ) ≤ unforced x/8 |
| 90 | weak (b : ℝ) : betaF G x (D.L j) / 2 ≤ b → b ≤ 2*betaF G x (D.L j) → F.weak S' j k x (Θ.theta j) b ≤ (3/8)*unforced x |
| 91 | hard (b : ℝ) : betaF G x (D.L j) / 2 ≤ b → F.hard j k x b ≤ Real.exp (-(F.strength j)*meter (betaF G x (D.L j))^(2:ℕ)) |
| 92 | time : Real.exp (-(F.strength j)*meter (betaF G x (D.L j))^ (2:ℕ)) ≤ forced x |
| 93 | |
| 94 | lemma geometry (a : ℝ) : ∀ᶠ x : ℝ in atTop, (radiusB (x+a) ≤ 2*radiusB x ∧ radiusB x ≤ 2*radiusB (x+a)) ∧ |
| 95 | (temp (x+a) ≤ 2*temp x ∧ temp x ≤ 2*temp (x+a)) := by |
| 96 | have h := Work.E09.temp_ratio a |
| 97 | have he : Tendsto (fun x : ℝ => x+a) atTop atTop := tendsto_atTop_add_const_right _ _ tendsto_id |
| 98 | filter_upwards [Stock.stepsize a, he.eventually (Stock.stepsize (-a)),eventually_gt_atTop (0:ℝ),h.eventually (ge_mem_nhds (show (1:ℝ)<2 by norm_num)), |
| 99 | h.eventually (le_mem_nhds (show (1/2:ℝ)<1 by norm_num))] with x h1 h2 hx hmax hmin |
| 100 | change Stock.scaleB (x+a+-a)^2≤_ at h2 |
| 101 | rw [add_neg_cancel_right] at h2 |
| 102 | have ht := Work.E09.temp_pos hx |
| 103 | refine ⟨?_, (div_le_iff₀ ht).mp hmax, by linarith only [(le_div_iff₀ ht).mp hmin]⟩ |
| 104 | change Stock.scaleB (x+a) ≤ 2*Stock.scaleB x ∧ Stock.scaleB x ≤ 2*Stock.scaleB (x+a) |
| 105 | constructor <;> nlinarith |
| 106 | |
| 107 | lemma cover_grows : Tendsto (fun x => (radiusB x:ℝ)) atTop atTop := tendsto_atTop_mono (fun x => Nat.le_ceil _) ((tendsto_pow_atTop (n:=2) |
| 108 | (by decide)).comp Real.tendsto_log_atTop) |
| 109 | lemma eventual_broad (s : ℕ) (A σ a : ℝ) (he : 0 < σ) : ∀ᶠ x in atTop, Shapes.broad s (radiusB (x+a)) A σ := |
| 110 | (((cover_grows.comp (tendsto_atTop_add_const_right _ _ tendsto_id)).atTop_mul_const he).eventually_ge_atTop _) |
| 111 | |
| 112 | lemma enters {V : Census} (F : Fuel D) (Θ : Protection D) (hG : G.Simple) (h : Open V S) (j k : ℕ) (hk : k ≤ j) (hj : j ≤ k+1) : |
| 113 | ∀ᶠ x in atTop, Entrance V F Θ j k x := by |
| 114 | let s := (D.L j).val; let a := G.slopeConstant*Real.log s; let c := F.cost j k; let r := F.rate j k; let C := V.leading j k |
| 115 | have hL : (1:ℝ) ≤ s := by exact_mod_cast (D.L j).pos |
| 116 | have ha : 0 ≤ a := mul_nonneg (Gauge.slopeConstant_pos hG).le (Real.log_nonneg hL) |
| 117 | have hC := V.pos j k; change 0<C at hC |
| 118 | have hs : 8*C^2 ≤ (s:ℝ) := (h.afford j k hk hj).trans (by exact_mod_cast (D.large j).need) |
| 119 | have hf := pay_forced a c r (F.strength j) (F.positive j k) (F.strength_pos j) (F.strength_le hk hj) |
| 120 | have he := pay_regular C c r a (Θ.theta j) (F.power j k) hC (F.nonnegative ..) (F.positive ..) |
| 121 | have hl : 0 < ((1/8:ℝ)/C) := by positivity |
| 122 | filter_upwards [he,hf,geometry a,eventually_gt_atTop (1:ℝ),(F.fades j k).eventually (ge_mem_nhds hl), |
| 123 | eventual_broad (V.halo j k) ((S.profile j).supportExponent+V.reserve j k) (S.profile j).width a (S.profile j).width_pos, |
| 124 | eventual_broad (V.halo j k) ((S.profile k).supportExponent+V.reserve j k) (S.profile k).width 0 (S.profile k).width_pos] |
| 125 | with x he hf hg hx hl hB hB' |
| 126 | rw [add_zero] at hB' |
| 127 | refine ⟨hg.1,hg.2,hB,hB', he.1, fun b hb hb' => ?_,fun b => hf.2 b,hf.1⟩ |
| 128 | change C*((C/s+F.leak j k x)*unforced (x+a)+ bill c r _ x (x+a) _ b) ≤ _ |
| 129 | have he := he.2 b hb hb' |
| 130 | have ht := unforced_mono (x:=x) (by linarith) (le_add_of_nonneg_right ha) |
| 131 | have hu : 0 ≤ unforced (x+a) := by unfold unforced Vac.Numbers.Hat; positivity |
| 132 | have hv : C*(C/s + F.leak j k x) ≤ 1/4 := by |
| 133 | rw [mul_add, ← mul_div_assoc]; have hp : C*C/(s:ℝ)≤1/8 := (div_le_iff₀ (by positivity)).mpr (by linarith) |
| 134 | linarith only [(le_div_iff₀ hC).mp hl,hp] |
| 135 | linarith only [mul_le_mul_of_nonneg_right hv hu, he,ht] |
| 136 | |
| 137 | structure Cool (V : Census) (F : Fuel D) (W : Supply.Delays Θ) : Prop where |
| 138 | pay (j k : ℕ) : k ≤ j → j ≤ k+1 → ∀ x : ℝ, W.betaEntry j ≤ x → Entrance V F Θ j k x |
| 139 | |
| 140 | lemma prices {V : Census} (F : Fuel D) (W : Supply.Delays Θ) (hG : G.Simple) (hv : Open V S) : ∃ W' : Supply.Delays Θ, |
| 141 | W'.shells = W.shells ∧ W'.growth=W.growth ∧ W'.scaleEntry=W.scaleEntry ∧ W.betaEntry ≤ W'.betaEntry ∧ Cool V F W' := by |
| 142 | have he j (k : ℕ) : ∃ x : ℝ,k ≤ j → j ≤ k+1 → ∀ t : ℝ,x ≤ t → Entrance V F Θ j k t := by |
| 143 | by_cases h : k ≤ j ∧ j ≤ k+1 |
| 144 | · exact (eventually_atTop.mp (enters F Θ hG hv j k h.1 h.2)).imp fun _ ht _ _ => ht |
| 145 | exact ⟨0,fun u v => False.elim (h ⟨u,v⟩)⟩ |
| 146 | choose e he using he |
| 147 | refine ⟨{W with betaEntry := fun j => max (W.betaEntry j) (max (e j j) (e j (j-1)))}, rfl,rfl,rfl,fun _ => le_max_left .., ⟨fun j k hk hj x hx => ?_⟩⟩ |
| 148 | refine he j k hk hj x (le_trans (le_max_of_le_right ?_) hx) |
| 149 | rcases (show k=j ∨ k=j-1 by omega) with rfl|rfl; exact le_max_left ..; exact le_max_right .. |
| 150 | lemma Cool.raise {V : Census} {F : Fuel D} (h : Cool V F W) {W' : Supply.Delays Θ} (ht : W.betaEntry ≤ W'.betaEntry) : Cool V F W' := |
| 151 | ⟨fun j k hk hj x hx => h.pay j k hk hj x ((ht j).trans hx)⟩ |
| 152 | end YM.Extra.Iteration.Rebuild |