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.Contacts.Layers.Ahead |
| 2 | |
| 3 | /-! # Matching within a T-layer |
| 4 | |
| 5 | Use the one-scale OPE to **arbitrarily large output horizon**, as needed by the geometry |
| 6 | after any further filter refinement. It controls all the reader placements used here, not |
| 7 | just a reader with fixed bounds on its clearance from the cluster. Testing exteriors at unit |
| 8 | (rough) layer in `Precision` does NOT mean paying this exponent in the final estimates. |
| 9 | -/ |
| 10 | set_option autoImplicit false |
| 11 | set_option maxHeartbeats 600000 |
| 12 | noncomputable section |
| 13 | namespace YM.Contacts.Layers |
| 14 | open Function Filter Set MeasureTheory Table Spec OPE |
| 15 | open scoped Topology BigOperators Classical ContDiff |
| 16 | variable {G : Gauge} {C : Family G} {S : Table C.book} {I J W : Type} [Fintype I] [Fintype J] |
| 17 | variable {F : Extraction.Order} {Z : Final C F S} {M : Devices Z.sector.derivatives} |
| 18 | variable {φ : Filter W} {T : W → ℝ} {c d r s u v : ℝ} |
| 19 | variable {x : W → E4} {A B : Set (W → E4)} |
| 20 | variable {X : W→ I→E4} {Y : W→ J→ E4} |
| 21 | local notation "D" => M.basis |
| 22 | local notation "TK" => C.book.Token |
| 23 | local notation "EP" => W → Expression Z.sector.derivatives |
| 24 | variable {e f : W → Expression Z.sector.derivatives} |
| 25 | |
| 26 | inductive Override (Z : Final C F S) (M : Devices Z.sector.derivatives) (φ : Filter W) (T : W→ℝ) |
| 27 | (x : W → E4) (s c : ℝ) : (W → Expression Z.sector.derivatives) → Prop |
| 28 | | atom {d : ℕ} {f : W → S.Field d} (h : RateLE φ T f (c-d*s)) : Override Z M φ T x s c |
| 29 | (fun i=> insertField M.basis (x i) d (f i)) |
| 30 | | zero : Override Z M φ T x s c 0 |
| 31 | | plus {e f : W → Expression Z.sector.derivatives} : Override Z M φ T x s c e → Override Z M φ T x s c f → Override Z M φ T x s c (e+f) |
| 32 | | germ {e f : W → Expression Z.sector.derivatives} : Override Z M φ T x s c e → e =ᶠ[φ] f → Override Z M φ T x s c f |
| 33 | namespace Override |
| 34 | omit [Fintype I] in |
| 35 | lemma sum {p : Finset I}{E : I→W→ Expression Z.sector.derivatives} (h : ∀ i∈p,Override Z M φ T x s c (E i)) : |
| 36 | Override Z M φ T x s c (∑ i∈p, E i) := by |
| 37 | induction p using Finset.induction_on with |
| 38 | | empty => rw [Finset.sum_empty]; exact .zero |
| 39 | | insert i p hi ih => rw [Finset.sum_insert hi]; exact (h i (by simp)).plus (ih fun j hj=> h _ (Finset.mem_insert_of_mem hj)) |
| 40 | lemma mono (h : Override Z M φ T x s c e) (hu : u ≤ s) (hd : c ≤ d) : Override Z M φ T x u d e:= by |
| 41 | induction h with |
| 42 | | @atom a f h => exact .atom (h.mono (by gcongr)) |
| 43 | | zero => exact .zero |
| 44 | | plus _ _ hx hy => exact hx.plus hy |
| 45 | | germ _ h hx=> exact hx.germ h |
| 46 | lemma coeff (h : Override Z M φ T x s c e) {g : W → ℂ} (hf : RateLE φ T g d) : Override Z M φ T x s (d+c) (fun i=>g i • e i) := by |
| 47 | induction h with |
| 48 | | @atom a f h => exact (.atom ((hf.smul h).mono (le_of_eq ((add_sub_assoc ..).symm))) : Override Z M φ T x s (d+c) _).germ (Eventually.of_forall fun i=> map_smul (insertField D (x i) a) (g i) (f i)) |
| 49 | | zero => simp only [Pi.zero_apply,smul_zero]; exact .zero |
| 50 | | @plus e f _ _ hx hy => exact (hx.plus hy).germ (Eventually.of_forall fun i=> (smul_add (g i) (e i) (f i)).symm) |
| 51 | | germ _ h hx=> exact hx.germ (h.mono fun i hi=> congr_arg (g i • ·) hi) |
| 52 | variable (hT : Tendsto T φ atTop) |
| 53 | include hT |
| 54 | lemma fine (h : Override Z M φ T x s c e) (hx : x∈ A) : Fine M φ T A s c e := by |
| 55 | induction h with |
| 56 | | atom h=> exact Fine.field hT hx h |
| 57 | | zero => exact .zero |
| 58 | | plus _ _ hx hy=> exact hx.plus hy |
| 59 | | germ _ h hx=> exact hx.germ h |
| 60 | -- everything in e.g. a projected output through the horizon has weight ≤ its horizon. |
| 61 | lemma row (h : Override Z M φ T x s c e)(hs : 0 ≤ s) (w : ℕ) : RateLE φ T (fun i=> M.row (x i) w (e i)) (c - w*s) := by |
| 62 | induction h with |
| 63 | | @atom d f h => |
| 64 | by_cases he:w ≤ d |
| 65 | · simp_rw [M.row_of_field]; exact (rate_linear (LinearMap.toContinuousLinearMap (M.splitting.part w d)) hT h).mono (by gcongr) |
| 66 | simp_rw [M.row_of_field, M.splitting.beyondZero (show d<w from not_le.mp he), LinearMap.zero_apply]; exact RateLE.zero φ T (X:=S.Field w) _ |
| 67 | | zero => simp only [Pi.zero_apply,map_zero]; exact RateLE.zero φ T (X:=S.Field w) _ |
| 68 | | plus _ _ hx hy=> simp_rw [Pi.add_apply,map_add]; exact hx.add hy hT |
| 69 | | germ _ h hx=> exact hx.congr (h.mono fun i hi=> congr_arg (M.row (x i) w) hi) |
| 70 | lemma residue (h : Override Z M φ T x s c e)(hs : 0 ≤ u)(hu : u ≤ s) (w : ℕ) (hx : x∈A) : Fine M φ T A u |
| 71 | (c - (w+1:ℝ)*(s-u)) (fun i=> M.residue (x i) w (e i)):= by |
| 72 | induction h with |
| 73 | | @atom d f h => |
| 74 | by_cases he : d ≤ w |
| 75 | · simp_rw [M.residue_low _ he]; exact .zero |
| 76 | -- every output of grade ≤w paid with price of same term of grade d |
| 77 | have he' : (w:ℝ)+1 ≤ d := by exact_mod_cast (Nat.add_one_le_of_lt (not_le.mp he)) |
| 78 | have hl : c-(d:ℝ)*s ≤ c-(w+1:ℝ)*(s-u)-d*u:= by linarith only [mul_le_mul_of_nonneg_right he' (sub_nonneg.mpr hu)] |
| 79 | let g(i):= M.project (x i) w (insertField D (x i) d (f i)); have hf : RateLE φ T g (c-(d:ℝ)*s):= by |
| 80 | unfold g; simp_rw [← M.project_through,M.row_of_field]; refine RateLE.sum hT fun j _=>?_ |
| 81 | exact rate_linear (LinearMap.toContinuousLinearMap (Z.sector.derivatives.rise (show j.val ≤ w from Nat.le_of_lt_succ j.isLt))) hT (rate_linear (LinearMap.toContinuousLinearMap (M.splitting.part j d)) hT h) |
| 82 | have hX:= Fine.field (M:=M) hT hx (hp:=h.mono hl) |
| 83 | exact hX.diff (Fine.field hT hx (hf.mono (hl.trans (by gcongr; omega)))) |
| 84 | | zero=> simp only [Pi.zero_apply,map_zero]; exact .zero |
| 85 | | plus _ _ hx hy=> simp_rw [Pi.add_apply,map_add]; exact hx.plus hy |
| 86 | | germ _ h hx=> exact hx.germ (h.mono fun i hi=> congr_arg (M.residue (x i) w) hi) |
| 87 | end Override |
| 88 | |
| 89 | -- Envelope condition at the current T-layer. No need that every detail of the cluster be in it, only the palette. |
| 90 | def Habitat (φ : Filter W) (T : W→ℝ) (s : ℝ) (x : W → E4) (A : Set (W → E4)) := ∀ y ∈ A, RateLE φ T (fun i => y i-x i) (-s) |
| 91 | lemma habitat_gives (hh : Habitat φ T s x A) (h : carries A X) : enveloped φ T s X x := by |
| 92 | intro b hb; filter_upwards [eventually_all.mpr fun i=> hh _ (h i) b hb] with i hi using (pi_norm_le_iff_of_nonneg (Real.exp_nonneg (b*T i))).mpr hi |
| 93 | |
| 94 | structure Matchable (Z : Final C F S) (M : Devices Z.sector.derivatives) (φ : Filter W) (T : W→ℝ) (A : Set (W → E4)) (x : W → E4) (s u c : ℝ) (e : W → Expression Z.sector.derivatives) : Prop where |
| 95 | replaces (q : ℝ) : ∃ z, Override Z M φ T x s c z ∧ Precision Z M φ T A u q (e-z) |
| 96 | namespace Matchable |
| 97 | variable [hnb : φ.NeBot] (hT : Tendsto T φ atTop) (H : Services C F S) |
| 98 | variable (p : I → C.book.Token) (ha : Habitat φ T s x A) (hs : u < s) (hu : 0 ≤ u) (hv : s ≤ 1) |
| 99 | variable (hx : x∈ A) (hk : Kept φ T s X)(hU : carries A X) |
| 100 | |
| 101 | -- for approximants only; not a new prescription changing fields or truncations each use |
| 102 | omit hnb |
| 103 | def internal (x : I→ E4) (p : I→ C.book.Token) (t : E4) (M : Devices Z.sector.derivatives) (n : ℕ) : Expression Z.sector.derivatives := ∑ i∈bands Z.sector.derivatives n, M.basis.ope i x p t • insertToken M.basis t (M.basis.letter i) |
| 104 | include hT ha hs hu H hx hk hv hU |
| 105 | include hnb -- invalid syntax? |
| 106 | lemma from_word : Matchable Z M φ T A x s u ((sigma p:ℝ)*s) (fun t=> tokenWord M.basis (X t) p) := by |
| 107 | have hx' := habitat_gives ha hU; have hs' := lt_of_le_of_lt hu hs |
| 108 | refine ⟨fun r=>?_⟩; obtain ⟨n,hn⟩:= exists_nat_gt (((sigma p:ℝ)*s-r)/(s-u)); let E(t):= internal (X t) p (x t) M n |
| 109 | refine ⟨E,(Override.sum (p:=bands Z.sector.derivatives n) (E:= fun j t=> M.basis.ope j (X t) p (x t) • insertToken D (x t) (M.basis.letter j)) (fun i hi=> ?_)).germ (Eventually.of_forall fun i=> Finset.sum_apply ..),?_⟩ |
| 110 | · have h: Override Z M φ T x s (i.1*s) (fun t=>insertToken D (x t) (M.basis.letter i)):= by |
| 111 | unfold insertToken; refine .atom (RateLE.mono (RateLE.const (S.project i.1 (M.basis.letter i).2) hT) (by change 0 ≤ (i.1:ℝ)*s-i.1*s; linarith only)) |
| 112 | exact Override.mono (h.coeff (available_cost Z D p hT H M.coherent hx' hk hs' i)) le_rfl (by apply le_of_eq; ring) |
| 113 | refine Against.of_words hT (fun J _ Y q hh he l=>?_) |
| 114 | have hs:= he.windows hU pack_carries; have hf:= he.left hx pack_carries |
| 115 | -- read the signed approximation before taking the bound; every allowed exterior |
| 116 | have hZ := arrangement_cost Z D n p q hT H M.coherent hx' hk hs' hh hf hu (le_trans (le_of_lt ‹u<s›) hv) ‹u<s› |
| 117 | apply RateLE.transfer (RateLE.mono hZ (by linarith only [div_lt_iff₀ (sub_pos.mpr ‹u<s›) |>.mp hn, sub_pos.mpr ‹u<s›])) |
| 118 | filter_upwards [(hk.mono hv|>.chorus hh (hs.mono ((le_of_lt ‹u<s›).trans hv))).inject,(Kept.sole φ T x 1|>.chorus hh (hf.mono ((le_of_lt ‹u<s›).trans hv))).inject] with i hP hC |
| 119 | apply le_trans (le_of_eq (congr_arg norm (?_ : _= glance Z (l i) _))) (glance_bound Z (l i) _) |
| 120 | rw [glance_terms Z D n _ p _ _ q (l i) hP hC] |
| 121 | let S':=spectator Z (l i); let m:= readExpr D S'; let K:= tokenWord D (Y i) q; change m ((tokenWord D (X i) p - E i)*K)=_ |
| 122 | rw [sub_mul,map_sub, show m (tokenWord D (X i) p*K) = observe S' (beside (X i) (Y i)) (beside p q) by unfold m K; rw [← token_beside, read_word D M.coherent S' (spectate Z (l i)).laws.toSymmetric (spectate_respects Z _) (spectate_ready Z _),totalObserve,if_pos hP] ] |
| 123 | congr 1; unfold E internal Prescription.truncated; rw [Finset.sum_mul,map_sum]; refine Finset.sum_congr rfl fun j _=>?_ |
| 124 | rw [smul_mul_assoc,map_smul]; unfold Prescription.termRead K m; rw [← token_sole,← token_beside, read_word D M.coherent S' (spectate Z (l i)).laws.toSymmetric (spectate_respects Z _) (spectate_ready Z _),totalObserve,if_pos hC]; rfl |
| 125 | omit ha hs hu H hx hk hv hU hnb -- trim |
| 126 | lemma plus (h : Matchable Z M φ T A x s u c e) (k : Matchable Z M φ T A x s u c f) : Matchable Z M φ T A x s u c (e+f):= by |
| 127 | refine ⟨fun q=>?_⟩; obtain ⟨X,h,hp⟩:= h.replaces q; obtain ⟨Y,k,hq⟩:= k.replaces q; refine ⟨X+Y,h.plus k,?_⟩; rw [show e+f-(X+Y)=e-X+(f-Y) from by abel]; exact Against.plus hp hq hT |
| 128 | omit hT in |
| 129 | lemma coeff (h : Matchable Z M φ T A x s u c e){g : W→ℂ}(hh : RateLE φ T g d) : Matchable Z M φ T A x s u (d+c) (fun i=>g i • e i):= by |
| 130 | refine ⟨fun q=>?_⟩; obtain ⟨f,h,hp⟩:=h.replaces (q-d); have hu:= Against.coeff hp hh; rw [add_sub_cancel ..] at hu; refine ⟨_,h.coeff hh,Against.ident hu ?_⟩; filter_upwards with i; exact smul_sub (g i) (e i) (f i) |
| 131 | include ha hs hu H hx hv hnb |
| 132 | lemma input (h : Fine M φ T A s c e) : Matchable Z M φ T A x s u c e := by |
| 133 | induction h with |
| 134 | | zero => exact ⟨fun _=>⟨0,.zero, sub_zero (0:EP) ▸ Against.zero⟩⟩ |
| 135 | | @atom I _ X p f hk hA hf=> exact sub_add_cancel c _ ▸ (from_word hT H p ha hs hu hv hx hk hA).coeff hf |
| 136 | | plus _ _ h k=> exact h.plus hT k -- dot order? |
| 137 | | germ _ h hx=> exact ⟨fun q=> by obtain ⟨f,hx,h'⟩:= hx.replaces q; exact ⟨_,hx,Against.ident h' (h.sub (Eventually.of_forall fun i=>rfl))⟩⟩ |
| 138 | |
| 139 | lemma layer (h : Funds Z M φ T A s c e) : Matchable Z M φ T A x s u c e := by |
| 140 | refine ⟨fun q=>?_⟩; obtain ⟨f,h,hp⟩:= h.enter q; obtain ⟨g,hh,hq⟩:= (input hT H ha hs hu hv hx h).replaces q |
| 141 | refine ⟨g,hh,?_⟩; rw [show e-g=e-f+(f-g) from by abel]; exact Against.plus (Against.mono hp hs.le le_rfl (by rfl)) hq hT |
| 142 | lemma fall (h : Funds Z M φ T A s c e) : Funds Z M φ T A u c e:= ⟨h.loose, fun q=> by |
| 143 | obtain ⟨f,hh,hL⟩:=(layer hT H ha hs hu hv hx h).replaces q; exact ⟨_, (hh.mono hs.le le_rfl).fine hT hx,hL⟩⟩ |
| 144 | end Matchable |
| 145 | end YM.Contacts.Layers |