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.Data.Set.Finite.List |
| 2 | import YM.AnalyticNext.CONNECTED_ACTIVITY_JETS_E6.Assignment |
| 3 | import YM.AnalyticNext.CONNECTED_ACTIVITY_JETS_E6.Brush |
| 4 | |
| 5 | /-! |
| 6 | # Unmasked branch read for V. Values when its `Healthy` predicate holds |
| 7 | |
| 8 | Drop the coarse m and clamp. Keep oriented U prediction. Bills at |
| 9 | actual tilted sectors use lemma by comparison under V stencil; away may |
| 10 | carry extension. Include hard U held branch variant (needed for steam core; |
| 11 | don't remove its thresholds, which vary even when V counts unchanged). -/ |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.ConnectedActivityE6.Blaze |
| 15 | open Filter Function Lattice RG Pressure Pressure.Tube Pressure.Stores Work.E03 Work.F03 Exterior Wilson Push Push.AbsoluteSums Finset |
| 16 | open Precision Shell Channel Next.Fluctuations Bloch Laurent SliceRows Coat SliceRows.DataKernel |
| 17 | open scoped Topology ContDiff BigOperators Matrix.Norms.Frobenius Classical InnerProductSpace |
| 18 | variable {G : Gauge} {c f : Side} {S : StepData c f} {T : Tube G S} |
| 19 | variable {V W Q Q' : Config G c} {U U' : Config G f} {k : S.Choices} {R : ℕ} {s : ℝ} |
| 20 | variable {P : Teller G} {o : Site c} |
| 21 | open Brush |
| 22 | |
| 23 | namespace Scroll |
| 24 | def canopyF (T : Tube G S) R (V : Config G c) := zip (T.Φ R V) (T.Xn R V) |
| 25 | def canopyI (T : Tube G S) R (V : Config G c) := zip (T.Φ' R V) (T.Xn R V) |
| 26 | def canopyN (T : Tube G S) R (V : Config G c) := zip (T.N R V) (T.Xn R V) |
| 27 | def visual (T : Tube G S) (R : ℕ) (V : Config G c) : Rod c f→G.Color := Sum.elim (canopyF T R V) (canopyI T R V) |
| 28 | def freely (T : Tube G S) (x : ℝ) (V : Config G c) (k : S.Choices) (i : Rod c f) := baseStroke T x k V i-visual T (till x) V i |
| 29 | |
| 30 | def effective (T : Tube G S) (R : ℕ) (U : Config G f) (Q V : Config G c) (p : Rod c f) := Sum.elim (T.Xf R U) (Tube.Z S Q V) p -visual T R V p |
| 31 | -- `cost` verify |
| 32 | |
| 33 | def flora (T : Tube G S) (R : ℕ) (U : Config G f) (Q V : Config G c) (b : Cell f) := T.high.direct*flaw (faceValue U b)+ |
| 34 | ∑ i : Bool, ‖effective T R U Q V (.inl (b,i))‖^2/2 |
| 35 | def nora (T : Tube G S) R (U : Config G f) (Q V : Config G c) (i : Bond c) := S.kernel.penalty*flaw (V i*(Q i)⁻¹)+ |
| 36 | ‖effective T R U Q V (.inr i)‖^2/2 |
| 37 | |
| 38 | def stormL (T : Tube G S) R (U : Config G f) (Q V : Config G c) (i : Cell c) := ∑ j : Bool, |
| 39 | inner ℝ (T.Xn R V (i,j)) (unzip (T.Φ R V) (T.Xf R U) (i,j)+unzip (T.Φ' R V) (Tube.Z S Q V) (i,j)-T.Xn R V (i,j)) |
| 40 | def stormD (T : Tube G S) R (V : Config G c) (i : Cell c) := ∑ j : Bool, |
| 41 | inner ℝ (T.Xn R V (i,j)) (T.Xn R V (i,j)-(unzip (T.Φ R V) (canopyF T R V) (i,j)+ |
| 42 | unzip (T.Φ' R V) (canopyI T R V) (i,j)+unzip (T.N R V) (canopyN T R V) (i,j)))/2 |
| 43 | -- division parse as whole inner! copy grammar |
| 44 | |
| 45 | def stormC (T : Tube G S) (V : Config G c) (i : Cell c) := -T.low.direct*flaw (faceValue V i) |
| 46 | def stormN (T : Tube G S) R (V : Config G c) (i : Co c Gain) := ‖canopyN T R V i‖^2/2 |
| 47 | |
| 48 | def finest (T : Tube G S) (R : ℕ) (U : Config G f) (t : ℝ) (V : Config G c) (p : Cell f) := |
| 49 | crown T.up T.high R 1 t U p + ∑ i : Bool, (‖canopyF T R V (p,i)‖^2/2-inner ℝ (canopyF T R V (p,i)) (T.Xf R U (p,i))) |
| 50 | |
| 51 | def loft (T : Tube G S) (x : ℝ) (U : Config G f) (k : S.Choices) (V : Config G c) (paint : Bool) : Spot c f → ℝ := |
| 52 | let R:= till x; let Q:= S.prediction U k |
| 53 | Sum.elim (if paint then flora T R U Q V else finest T R U (Pressure.fiery G x S.patch.L) V) |
| 54 | (Sum.elim (nora T R U Q V) (Sum.elim (fun i=> stormC T V i+(stormL T R U Q V i+stormD T R V i)) (stormN T R V))) |
| 55 | |
| 56 | lemma canopy {a : Type} [Fintype a] (K : Config G c→ a→ Twin c→ Pay G) (f : a→ Site c) |
| 57 | (p : Room P S T s) (h : Rule (till s) K f (fun i=> i.1.1)) (i : a) |
| 58 | (he : Clean V s (f i) (radiusB s/4)) : zip (K V) (T.vision (till s) (Pressure.temp s) V) i=zip (K V) (T.Xn (till s) V) i := by |
| 59 | unfold zip; apply sum_congr rfl; intro j _ |
| 60 | by_cases hi : K V i j=0 |
| 61 | · rw [hi,_root_.zero_apply,_root_.zero_apply] |
| 62 | rw [complete_vision p V (f i) V (fun _ _=> rfl) he j (h.reach _ _ _ hi)] |
| 63 | |
| 64 | lemma frameCost (p : Room P S T s) (i : Rod c f) (h : Clean V s (focus S i) (radiusB s/4)) : guide T s V i=visual T (till s) V i := by |
| 65 | rcases i with i|i |
| 66 | · exact canopy _ _ p (crosses _ _ P p.accepted) i h |
| 67 | exact canopy _ _ p (sameLevel _ _ S.patch.L.property T.R.mn (Row.rights _ _ p.accepted.crosses.1 P.width.le) pole mesh) i h |
| 68 | |
| 69 | lemma lodge {α : Type} [Fintype α] (K : Config G c→ α→ Twin c→ Pay G) (q : α→ Site c) |
| 70 | (p : Room P S T s) (h : Rule (till s) K q (fun i=> i.1.1)) (i : Twin c) |
| 71 | (he : Clean V s i.1.1 (radiusB s/2)) : unzip (K V) (zip (K V) (T.vision (till s) (Pressure.temp s) V)) i = |
| 72 | unzip (K V) (zip (K V) (T.Xn (till s) V)) i := by |
| 73 | unfold unzip; apply sum_congr rfl; intro j _ |
| 74 | by_cases hi : K V j i=0 |
| 75 | · simp_rw [hi,map_zero,_root_.zero_apply] |
| 76 | rw [canopy _ _ p h j (he.shrink (by rw [separation_comm]; have hh:= h.reach _ _ _ hi; unfold till at hh; have hx:=p.sight; omega))] |
| 77 | |
| 78 | lemma nims (p : Room P S T s) (i : Cell c) (h : Clean V s i.1 (radiusB s/2)) : |
| 79 | T.workC (till s) V (Pressure.temp s) i=stormC T V i ∧ |
| 80 | T.workL (till s) U Q V (Pressure.temp s) i = stormL T (till s) U Q V i ∧ |
| 81 | T.workD (till s) V (Pressure.temp s) i=stormD T (till s) V i := by |
| 82 | let R:=till s; let x:= Pressure.temp s; let o:=i.1 |
| 83 | have hu : Clean V s o (radiusB s/4) := h.shrink (by unfold o; rw [separation_self]; omega) |
| 84 | have hv (j : Bool) : T.vision R x V (i,j) = T.Xn R V (i,j) := complete_vision p _ o _ (fun _ _=> rfl) hu (i,j) |
| 85 | (by change separation o o≤_; rw [separation_self]; omega) |
| 86 | have hk := hu.kept p i.1 (by have he:=p.sight; change separation o o+_ ≤ _; rw [separation_self]; omega) |
| 87 | have hd := hu.toll (b:=i) (by change separation o o≤_; rw [separation_self]; omega) |
| 88 | constructor |
| 89 | · change T.workC R V x i=_; unfold Tube.workC; simp_rw [hv] |
| 90 | rw [Fintype.sum_bool]; simp only [real_inner_self_eq_norm_sq]; unfold Tube.Xn crown trunk PathData.clipped plotted |
| 91 | rw [if_pos hk,if_pos (show G.chord _ ≤ x from hd)] |
| 92 | simp only [Bool.false_eq_true, ↓reduceIte] |
| 93 | unfold shoot stormC flaw; rw [norm_smul,Real.norm_of_nonneg (Real.sqrt_nonneg _), mul_pow,Real.sq_sqrt T.low.quadratic_pos.le]; ring |
| 94 | constructor |
| 95 | · change T.workL R U Q V x i=_; unfold Tube.workL; simp_rw [hv]; rfl |
| 96 | change T.workD R V x i=_; unfold Tube.workD stormD; apply sum_congr rfl; intro j _ |
| 97 | rw [hv]; unfold canopyF canopyI canopyN Tube.Mv Tube.Mw |
| 98 | rw [lodge _ _ p (crosses _ T P p.accepted) (i,j) h,lodge (T.Φ' R) _ p (sameLevel _ _ S.patch.L.property T.R.mn |
| 99 | (Row.rights _ _ p.accepted.crosses.1 P.width.le) pole mesh) (i,j) h, lodge (T.N R) _ p (sameLevel _ _ S.patch.L.property T.R.o |
| 100 | (Row.rights _ _ p.accepted.crosses.2.1 P.width.le) id mesh) (i,j) h] |
| 101 | |
| 102 | lemma yields (p : Room P S T s) (i : Spot c f) (h : Clean V s (lead S i) (radiusB s/2)) (U k) : |
| 103 | yielding T s U V k i=loft T s U k V true i ∧ principal T s U V (S.prediction U k) i=loft T s U k V false i := by |
| 104 | have he : Clean V s (lead S i) (radiusB s/4) := h.shrink (by rw [separation_self]; omega) |
| 105 | let R:=till s; let x:= Pressure.temp s; let Q:=S.prediction U k |
| 106 | rcases i with i|i|i|i |
| 107 | · have hg j := frameCost p (.inl (i,j)) he |
| 108 | have hf j : T.Mv R x V (i,j)=canopyF T R V (i,j) := hg j |
| 109 | constructor |
| 110 | · change soft T s U V k i=flora T R U Q V i; unfold soft flora; simp only [SliceRows.bill,hg]; rfl |
| 111 | change T.workF R U V _ x i=finest T R U _ V i; unfold Tube.workF; simp_rw [hf]; rfl |
| 112 | · have hg := frameCost p (.inr i) he |
| 113 | suffices hh : T.workI R Q V x i=nora T R U Q V i from ⟨hh,hh⟩ |
| 114 | rw [show T.workI R Q V x i=softI T s U V k i from splitI ..]; unfold softI SliceRows.bill; rw [hg]; rfl |
| 115 | · obtain ⟨h1,h2,h3⟩ := nims (U:=U) (Q:=Q) p i h |
| 116 | have hh := congr_arg₂ (·+·) h1 (congr_arg₂ (·+·) h2 h3); exact ⟨hh,hh⟩ |
| 117 | have hh := canopy _ _ p (sameLevel _ _ S.patch.L.property T.R.o (Row.rights _ _ p.accepted.crosses.2.1 P.width.le) id mesh) i he |
| 118 | exact ⟨congr_arg (fun x : G.Color=> ‖x‖^2/2) hh,congr_arg (fun x : G.Color=>‖x‖^2/2) hh⟩ |
| 119 | end Scroll |
| 120 | end YM.ConnectedActivityE6.Blaze |