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.Progress.DIRECTED_RECIPE.Batch |
| 2 | import YM.Progress.DIRECTED_RECIPE.Samples |
| 3 | import YM.Work.H04 |
| 4 | |
| 5 | /-! |
| 6 | # From this continuity test of pre-transfer data to Curve after assembly |
| 7 | |
| 8 | For use with effective estimates on the output regular/compulsory/soft |
| 9 | families before gathering. `Flow` needs convergence with FULL sup norms in |
| 10 | parameter neighborhoods (but per address at fixed period). `PreBound` is a |
| 11 | common summable majorant at that fixed period. No inference from per-address |
| 12 | alone or from essential bounds. Generalizes |
| 13 | the continuity gluing for fixed lists H04 (which suffices for RCake), consumes |
| 14 | Work.H04 proofs for products with common domination. Address and label |
| 15 | transport throughout `T`; uses full order. Does NOT assert the analytics |
| 16 | required on the pre-data. |
| 17 | -/ |
| 18 | set_option autoImplicit false |
| 19 | noncomputable section |
| 20 | namespace YM.Progress.DirectedRecipe |
| 21 | |
| 22 | open Function Set RG Wilson Lattice RG.Shoot Ovens Ovens.Pipes Filter |
| 23 | open scoped Topology BigOperators ContDiff Matrix.Norms.Frobenius Classical |
| 24 | |
| 25 | variable {G : Gauge} {n : Side} {P : BudgetPoint} |
| 26 | |
| 27 | namespace Samples |
| 28 | |
| 29 | /-- Only at THIS volume; the budgets for `Move` cost real egress mass, |
| 30 | and are not obtained by such a weakening. -/ |
| 31 | lemma mass_at_volume {X : ℕ → Support n} {f : ℕ → ℝ} |
| 32 | (P : BudgetPoint) (hf : ∀ i, 0 ≤ f i) (h : Summable f) : Summable fun i => P.mass (X i) (f i) := by |
| 33 | let D := (Finset.univ : Finset (Support n)).sup (coverNumber P.B) |
| 34 | let v := Real.exp (P.supportExponent * D) |
| 35 | have he i : 0 ≤ P.mass (X i) (f i) := (hf i).trans (P.loMass (X i) (f i) (hf i)) |
| 36 | refine Summable.of_nonneg_of_le he (fun i => ?_) (h.mul_left v) |
| 37 | have hu : coverNumber P.B (X i) ≤ D := Finset.le_sup (f:=coverNumber P.B) (Finset.mem_univ _) |
| 38 | exact mul_le_mul_of_nonneg_right (Real.exp_monotone |
| 39 | (mul_le_mul_of_nonneg_left (by exact_mod_cast hu) P.exponent_pos.le)) (hf i) |
| 40 | |
| 41 | /-- abstract passage across address sup tests. -/ |
| 42 | lemma accountant {T : Set ℝ} {x : ℝ} {payee : ℕ → Type*} {F : ℝ → (i : ℕ) → payee i → ℝ} |
| 43 | {A : ℕ → Support n} (P : BudgetPoint) {C : ℕ → ℝ} (hC : ∀ i, 0 ≤ C i) (hc : Summable C) |
| 44 | (hh : ∀ y∈T, ∀ i k, 0 ≤ F y i k ∧ F y i k ≤ C i) |
| 45 | (h : ∀ i, ∀ ε : ℝ, 0 < ε → ∀ᶠ y in 𝓝[T] x, ∀ j, F y i j ≤ ε) |
| 46 | (ε : ℝ) (hε : 0 < ε) : ∀ᶠ y in 𝓝[T] x, ∃ f : ℕ → ℝ, |
| 47 | (∀ i, 0 ≤ f i ∧ ∀ j, F y i j ≤ f i) ∧ SumBudget (fun i => P.mass (A i) (f i)) ε := by |
| 48 | let D y i := insert 0 (range (F y i)) |
| 49 | let g y i := sSup (D y i) |
| 50 | have hb {y} (hy : y ∈ T) (i) : 0 ≤ g y i ∧ (∀ j, F y i j ≤ g y i) ∧ g y i ≤ C i := by |
| 51 | have he : ∀ a∈D y i, a ≤ C i := by |
| 52 | rintro a (rfl|⟨j,rfl⟩) |
| 53 | · exact hC i |
| 54 | exact (hh _ hy i j).2 |
| 55 | have hw : BddAbove (D y i) := ⟨_,he⟩ |
| 56 | exact ⟨le_csSup hw (mem_insert ..),fun j => le_csSup hw (mem_insert_of_mem _ (mem_range_self j)), |
| 57 | csSup_le ⟨_,mem_insert ..⟩ he⟩ |
| 58 | let bill y i := P.mass (A i) (g y i) |
| 59 | let cap i := P.mass (A i) (C i) |
| 60 | have hp i : Tendsto (fun y => bill y i) (𝓝[T] x) (𝓝 0) := by |
| 61 | have he : Tendsto (fun y => g y i) (𝓝[T] x) (𝓝 0) := by |
| 62 | refine tendsto_order.mpr ⟨fun r hr => ?_,fun r hr => ?_⟩ |
| 63 | · filter_upwards [self_mem_nhdsWithin] with y hy |
| 64 | exact hr.trans_le (hb hy i).1 |
| 65 | filter_upwards [self_mem_nhdsWithin, h i (r/2) (by linarith)] with y hy hf |
| 66 | refine lt_of_le_of_lt (csSup_le ⟨_,mem_insert 0 (range (F y i))⟩ ?_) (half_lt_self hr) |
| 67 | rintro u (rfl|⟨k,rfl⟩) |
| 68 | · linarith |
| 69 | exact hf k |
| 70 | simpa [bill,BudgetPoint.mass] using (he.const_mul (Real.exp (P.supportExponent * (coverNumber P.B (A i) : ℝ)))) |
| 71 | have hs : Summable cap := mass_at_volume P hC hc |
| 72 | have H y (hy : y∈T) i : 0 ≤ bill y i ∧ bill y i ≤ cap i := |
| 73 | ⟨le_trans (hb hy i).1 (P.loMass _ _ (hb hy i).1), |
| 74 | mul_le_mul_of_nonneg_left (hb hy i).2.2 (Real.exp_pos _).le⟩ |
| 75 | have he : Tendsto (fun y => ∑' i, bill y i) (𝓝[T] x) (𝓝 0) := by |
| 76 | simpa using tendsto_tsum_of_dominated_convergence hs hp |
| 77 | (show ∀ᶠ y in 𝓝[T] x, ∀ i, ‖bill y i‖ ≤ cap i by |
| 78 | filter_upwards [self_mem_nhdsWithin] with y hy i |
| 79 | exact (Real.norm_of_nonneg (H y hy i).1).trans_le (H y hy i).2) |
| 80 | filter_upwards [self_mem_nhdsWithin,(tendsto_order.mp he).2 ε hε] with y hy hv |
| 81 | exact ⟨g y,fun i => ⟨(hb hy i).1,(hb hy i).2.1⟩, |
| 82 | fun i => (H y hy i).1,hs.of_nonneg_of_le (fun i => (H y hy i).1) (fun i => (H y hy i).2),hv.le⟩ |
| 83 | |
| 84 | -- unforced derivatives live on the original healthy/support domain including all orders required |
| 85 | private abbrev Read (G : Gauge) (P : BudgetPoint) (A : RegularAddress n) := |
| 86 | { p : Config G n × List (Directions G n) // Healthy P.threshold A.support p.1 ∧ |
| 87 | p.2.length ≤ P.order ∧ ∀ i∈p.2, P.dirBound A.site i } |
| 88 | |
| 89 | lemma e_samples {T : Set ℝ} {x : ℝ} (hx : x∈T) {E : ℝ → ℕ → Config G n → ℝ} {A : ℕ → RegularAddress n} |
| 90 | (hE : ∀ i, ∀ ε : ℝ, 0 < ε → ∀ᶠ y in 𝓝[T] x, variesRegular P (A i) (E x i) (E y i) ε) |
| 91 | {C : ℕ → ℝ} (hC : Summable C) (hg : ∀ y∈T, ∀ i, P.supBounds (A i).site (A i).support (E y i) (C i)) |
| 92 | (ε : ℝ) (hε : 0 < ε) : ∀ᶠ y in 𝓝[T] x, ∃ g : ℕ → ℝ, |
| 93 | (∀ i, variesRegular P (A i) (E x i) (E y i) (g i)) ∧ SumBudget (fun i => P.mass (A i).support (g i)) ε := by |
| 94 | let X (y) (i : ℕ) (p : Read G P (A i)) := leftDerivs (E y i) p.val.2 p.val.1 |
| 95 | let D y i p := ‖X x i p-X y i p‖ |
| 96 | have hh y (hy : y∈T) i p : ‖X y i p‖ ≤ C i := |
| 97 | (hg y hy i).2 _ p.property.1 _ p.property.2.1 p.property.2.2 |
| 98 | have he := accountant (A:=fun i => (A i).support) P (F:=D) (C:=fun i => C i + C i) |
| 99 | (fun i => add_nonneg (hg x hx i).1 (hg x hx i).1) (hC.add hC) (fun y hy i p => |
| 100 | ⟨norm_nonneg _,(norm_sub_le ..).trans (add_le_add (hh x hx i p) (hh y hy i p))⟩) (fun i r hr => |
| 101 | (hE i r hr).mono fun y hy p => hy.2 p.val.1 p.property.1 p.val.2 p.property.2.1 p.property.2.2) ε hε |
| 102 | filter_upwards [he] with y hy |
| 103 | obtain ⟨g,hg,H⟩ := hy |
| 104 | exact ⟨g,fun i => ⟨(hg i).1, fun U hU l hL hl => (hg i).2 ⟨(U,l),hU,hL,hl⟩⟩,H⟩ |
| 105 | end Samples |
| 106 | |
| 107 | open Samples |
| 108 | |
| 109 | /-- Pre-transfer continuity tests, at a fixed geometry and a single Pipes |
| 110 | population used throughout T. No continuity in field across hard tests. -/ |
| 111 | structure Flow (P : BudgetPoint) (d : ℝ → Tap G n) (X : Pipes G n) (T : Set ℝ) : Prop where |
| 112 | regular : ∀ x∈T, ∀ i ε, 0<ε → ∀ᶠ y in 𝓝[T] x, variesRegular P (X.reg i) ((d x).regular i) ((d y).regular i) ε |
| 113 | reaches : invariantJet P d T |
| 114 | |
| 115 | /-- At a fixed volume. Used on sampling sets (when using these |
| 116 | termwise/dominating-family arguments; no necessity for arbitrary full estimates |
| 117 | claimed). -/ |
| 118 | structure PreBound (P : BudgetPoint) (d : ℝ → Tap G n) (X : Pipes G n) (T : Set ℝ) : Prop where |
| 119 | E : ∃ c : ℕ → ℝ, Summable c ∧ ∀ x∈T, ∀ i, P.supBounds (X.reg i).site (X.reg i).support ((d x).regular i) (c i) |
| 120 | K : ∃ c : Label → ℝ, Summable c ∧ ∀ x∈T, ∀ i U, ‖reach (d x) i U‖ ≤ c i |
| 121 | |
| 122 | variable {d : ℝ → Tap G n} {X : Pipes G n} {T T' : Set ℝ} |
| 123 | lemma Flow.tighter (h : Flow P d X T) (hh : T' ⊆ T) : Flow P d X T' := |
| 124 | ⟨fun _ hx i ε he => (h.regular _ (hh hx) i ε he).filter_mono (nhdsWithin_mono _ hh), |
| 125 | fun _ hx i ε he => (h.reaches _ (hh hx) i ε he).filter_mono (nhdsWithin_mono _ hh)⟩ |
| 126 | |
| 127 | lemma Flow.measured (H : Flow P d X T) (he : PreBound P d X T) |
| 128 | (F : ℕ ≃ X.Pellet) {x} (hx : x∈T) (ε : ℝ) (hε : 0 < ε) : |
| 129 | ∀ᶠ y in 𝓝[T] x, deviation P (fused F P (d x)) (fused F P (d y)) ε := by |
| 130 | obtain ⟨C,hC,H1⟩ := he.K |
| 131 | obtain ⟨A,hA,H2⟩ := he.E |
| 132 | have hg (i) : 0 ≤ C i := (norm_nonneg _).trans (H1 x hx i 1) |
| 133 | let B := fun i => ∏ k∈(F i).val, C k |
| 134 | have hb i : 0 ≤ B i := Finset.prod_nonneg fun _ _ => hg _ |
| 135 | have hs : Summable B := (summable_finsetProd_of_summable_nonneg hg hC).comp_injective |
| 136 | (i:=fun i : ℕ => (F i).val) (Subtype.val_injective.comp F.injective) |
| 137 | have H' y (hy : y∈T) i U : ‖solid F P (d x) i U-solid F P (d y) i U‖ ≤ B i + B i := |
| 138 | (norm_sub_le ..).trans (add_le_add (Work.H04.solid_bound hg H1 _ hx i U) (Work.H04.solid_bound hg H1 _ hy i U)) |
| 139 | have h := accountant (A:=fun i => (addr F P i).support) P (F:=fun y i U => ‖solid F P (d x) i U - solid F P (d y) i U‖) |
| 140 | (C:=fun i=> B i + B i) (fun i => add_nonneg (hb i) (hb i)) (hs.add hs) (fun y hy i p => |
| 141 | ⟨norm_nonneg _,H' y hy i p⟩) (Work.H04.solid_varies hg H1 H.reaches F hx) ε hε |
| 142 | filter_upwards [h,e_samples hx (H.regular _ hx) hA H2 ε hε] with y hy hw |
| 143 | obtain ⟨f,hf,hs⟩ := hy; obtain ⟨g,hg,hg'⟩ := hw |
| 144 | exact ⟨g,f,hg,hf,hg',hs⟩ |
| 145 | |
| 146 | |
| 147 | /-- Optional gate on the test: shared domination need only be requested on the input BEFORE |
| 148 | requiring the operator to realize `PreBound`. One-step checks at an arbitrary |
| 149 | budget point M,f (fine) vs P,n (coarse). This is useful e.g. with reserve |
| 150 | slack in the majorants. `switched` will discharge that shared domination |
| 151 | from the actual input Curve when the implication is used. -/ |
| 152 | def Passage {f : Side} (M : BudgetPoint) (Q : ℝ → Rep G f) (δ w : ℝ) |
| 153 | (P : BudgetPoint) (d : ℝ → Tap G n) (X : Pipes G n) (T : Set ℝ) := |
| 154 | ∀ x∈T, ∃ z : ℝ, 0 < z ∧ ∀ s : ℕ → ℝ, (∀ j, s j∈T) → Tendsto s atTop (𝓝 x) → |
| 155 | Shared M (fun y => (Q y).activities) x (sample x s) (δ+z) (w+z) → |
| 156 | ∃ r : ℕ → ℕ, StrictMono r ∧ PreBound P d X (sample x (s ∘ r)) |
| 157 | |
| 158 | lemma switched {f : Side} {M : BudgetPoint} {Q : ℝ → Rep G f} {T : Set ℝ} (h : Curve M Q T) {δ w} |
| 159 | (hg : ∀ x∈T, (Q x).activities.Valid M δ w) {d : ℝ → Tap G n} (g : Flow P d X T) |
| 160 | (hf : Passage M Q δ w P d X T) {W : PathData G} {c : Clip} {β v : ℝ → ℝ} |
| 161 | (hβ : ContinuousOn β T) (hv : ContinuousOn v T) |
| 162 | (hp : ∀ y∈T, ∃ δ γ, Digests X (d y) P δ γ) : |
| 163 | Curve P (fun x => finish W c P X (d x) (β x) (v x)) T := by |
| 164 | refine ⟨hβ,hv,fun _ _ _ _ => rfl,fun _ _ _ _ => rfl,?_⟩ |
| 165 | intro ε he x hx |
| 166 | let A (y : ℝ) := fused (folio G n) P (Rack.widen X (d y)) |
| 167 | change ∀ᶠ y in 𝓝[T] x,deviation P (A x) (A y) ε |
| 168 | by_contra hn |
| 169 | obtain ⟨s, hs, hh⟩ := exists_seq_forall_of_frequently ((not_eventually.mp hn).and_eventually |
| 170 | (show ∀ᶠ y in 𝓝[T] x,y ∈ T from self_mem_nhdsWithin)) |
| 171 | have hi (i) : s i∈T := (hh i).2 |
| 172 | obtain ⟨z,hz,H⟩ := hf x hx |
| 173 | have he' := hs.mono_right nhdsWithin_le_nhds |
| 174 | obtain ⟨r,hr,hp'⟩ := along hx s hi he' h (hg x hx) hz |
| 175 | have ht := he'.comp hr.tendsto_atTop |
| 176 | obtain ⟨q,hq,hH⟩ := H (s ∘ r) (fun i => hi (r i)) ht hp' |
| 177 | let t := (s ∘ r) ∘ q |
| 178 | let B := sample x t |
| 179 | have hb : B ⊆ T := sample_sub hx fun i => hi _ |
| 180 | let J := X.encoding.some |
| 181 | have hc := (within (sample_map x t) (ht.comp hq.tendsto_atTop)).eventually |
| 182 | ((g.tighter hb).measured hH J (mem_insert ..) ε he) |
| 183 | obtain ⟨i,hi⟩ := hc.exists |
| 184 | obtain ⟨_,_,hx'⟩ := hp x hx |
| 185 | obtain ⟨_,_,hI⟩ := hp (t i) (hb (sample_map x t i)) |
| 186 | exact (hh _).1 ((lift_fused hx' J).compares (lift_fused hI J) hi) |
| 187 | end YM.Progress.DirectedRecipe |