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.WILSON_STARTUP.Reflect |
| 2 | import YM.Work.F08.Mixed |
| 3 | |
| 4 | /-! |
| 5 | # Matching the local boundary Bed by isometric change of mf on the first step |
| 6 | |
| 7 | One-time, widths re-quoted from pre-L prices and stage choices. NO accumulated |
| 8 | cost each depth. Arbitrary pre-existing top roots (can rotate the linear curl), |
| 9 | all S periods still exact on zero and nonzero modes. Not applied to fields in |
| 10 | the nonlinear sector! New mf will have to be used in any such estimates using |
| 11 | the Towers; this doesn't preserve mf-based step predicates automatically. |
| 12 | -/ |
| 13 | noncomputable section |
| 14 | set_option autoImplicit false |
| 15 | namespace YM.WilsonStartup.Change |
| 16 | open Matrix Function Filter RG Wilson Lattice Bid Precision Exterior Bloch Tree Work Design Polar F08 |
| 17 | open scoped BigOperators Matrix.Norms.Frobenius Classical |
| 18 | variable {G : Gauge} {a : Levels G} {M H : Horizon a} {K : MapPrices} |
| 19 | variable {n f L : Side} {S : StepData n f} {B C : Bed} {p q : Clip} {η Ω : ℝ} {U : Towers L} |
| 20 | |
| 21 | def spin (S : LiftRows) (U : Towers L) := { U with mf := fineCompose S U.mf } |
| 22 | |
| 23 | lemma trans_roll {S : StepData n f} {X : LiftRows} {U : Towers S.patch.L} (hU : Towers.Roll S B C U p q) |
| 24 | (hx : installed S.ratio (spin X U).mf = X.acts f * installed S.ratio U.mf) |
| 25 | (hg : (X.acts f)ᵀ * X.acts f = 1) |
| 26 | (h : X.acts f * (B.full p f * d 1 f) = (bed p).full p f * d 1 f) : Towers.Roll S (bed p) C (spin X U) p q := by |
| 27 | refine ⟨?_,hU.n,?_,hU.nPart,hU.oPart,?_⟩ |
| 28 | · rw [hx,Matrix.transpose_mul,← Matrix.mul_assoc,Matrix.mul_assoc ((installed _ _)ᵀ),hg,Matrix.mul_one]; exact hU.m |
| 29 | · rw [hx, Matrix.mul_assoc, Matrix.mul_assoc, ← Matrix.mul_assoc (installed _ _), hU.fPart, ← Matrix.mul_assoc,h]; rfl |
| 30 | rw [hx,← h,Matrix.transpose_mul,Matrix.mul_assoc,← Matrix.mul_assoc ((X.acts f)ᵀ),hg,Matrix.one_mul]; exact hU.orthogonal |
| 31 | |
| 32 | lemma isometry (p : Clip) {A η : ℝ} (hη : 0 < η) : ∃ τ C : ℝ, 0 < τ ∧ ∀ B : Bed, p.direct ≤ 1 → B.roots.strip η A → ∃ X : LiftRows, |
| 33 | X.strip τ C ∧ ∀ n : Side, (X.acts n)ᵀ*X.acts n=1 ∧ ∀ a v, Floor B p n a v → B.diagonal.acts n=1 → |
| 34 | X.acts n * (B.full p n*d 1 n) = (bed p).full p n*d 1 n := by |
| 35 | let D := max 1 A |
| 36 | have hD : 1 ≤ D := le_max_left .. |
| 37 | obtain ⟨τ,Z,ht,hZ,h⟩ := orient_uniform p (zero_le_one.trans hD) hη |
| 38 | refine ⟨τ,(Fintype.card Layers2:ℝ)*(Z*Z),ht,fun B hv hB => ?_⟩ |
| 39 | obtain ⟨X,hX,hx⟩ := h B (strip_mono hB le_rfl (le_max_right ..)) |
| 40 | obtain ⟨Y,hY,hy⟩ := h (bed p) ((Design.covered p hv hD).2.2.2.1) |
| 41 | refine ⟨composeRows (transRows Y) X, strip_compose ht.le (strip_trans hY) hX,fun n => ?_⟩ |
| 42 | rw [acts_compose ht.le (strip_trans hY) hX, acts_trans] |
| 43 | have hu := _root_.mul_eq_one_comm.mp (hy n).1 |
| 44 | refine ⟨?_,fun a v hf hh => ?_⟩ |
| 45 | · rw [transpose_mul,transpose_transpose,← Matrix.mul_assoc,Matrix.mul_assoc ((X.acts n)ᵀ),hu, Matrix.mul_one]; exact (hx n).1 |
| 46 | rw [Matrix.mul_assoc,(hx n).2 a v hf hh,← (hy n).2 1 1 (Design.level p hv n le_rfl le_rfl) (by simp [bed,spike_acts]), |
| 47 | ← Matrix.mul_assoc,(hy n).1,Matrix.one_mul] |
| 48 | |
| 49 | lemma deep_mono (U : Towers L) {η τ A Ω : ℝ} {k : ℕ} (h : U.Deep η A k) (hη : τ ≤ η) (hA : A ≤ Ω) : U.Deep τ Ω k := |
| 50 | ⟨strip_mono h.1 hη hA,strip_mono h.2.1 hη hA,strip_mono h.2.2.1 hη (by gcongr), fun a ha => |
| 51 | ⟨strip_mono ((h.2.2.2 a ha).1) hη (by gcongr),strip_mono ((h.2.2.2 a ha).2) hη (by gcongr)⟩⟩ |
| 52 | |
| 53 | lemma spin_cost (p : Clip) (η A : ℝ) (hη : 0 < η) : ∃ τ C : ℝ, 0 < τ ∧ |
| 54 | ∀ B : Bed, p.direct ≤ 1 → B.roots.strip η A → ∃ X : LiftRows, ∀ L k (U : Towers L), U.Deep η A k → |
| 55 | (spin X U).Deep τ C k ∧ ∀ c f h, |
| 56 | installed (Ratio.mk (c:=c) (f:=f) L h) (spin X U).mf = X.acts f * installed ⟨L,h⟩ U.mf ∧ |
| 57 | ((X.acts f)ᵀ*X.acts f=1 ∧ ∀ a v, Floor B p f a v → B.diagonal.acts f=1 → X.acts f*(B.full p f * d 1 f)=(bed p).full p f * d 1 f) := by |
| 58 | obtain ⟨t,C,ht,h⟩ := isometry p (A:=A) hη |
| 59 | let τ := min t η |
| 60 | have hτ : 0 < τ := lt_min ht hη |
| 61 | let b : ℝ := Fintype.card Layers2 * C * A |
| 62 | let Z := max b A |
| 63 | refine ⟨τ,Z,hτ,fun B hv hB => ?_⟩ |
| 64 | obtain ⟨X,hX,hx⟩ := h B hv hB |
| 65 | refine ⟨X,fun L k U hU => ?_⟩ |
| 66 | have he := deep_mono U hU (min_le_right .. : τ≤η) le_rfl |
| 67 | have hP := strip_mono hX (min_le_left .. : τ≤t) le_rfl |
| 68 | have hs := strip_fine hτ.le hP he.2.2.1 |
| 69 | have hm := deep_mono U he le_rfl (le_max_right .. : A ≤ Z) |
| 70 | refine ⟨⟨hm.1,hm.2.1,strip_mono hs le_rfl ?_,hm.2.2.2⟩,fun c f h' => ⟨installed_fine (g:=Ratio.mk ..) hτ.le hP he.2.2.1, hx _⟩⟩ |
| 71 | rw [show _ * (C * (A / (L.val:ℝ)^2)) = b/(L.val:ℝ)^2 by unfold b; ring] |
| 72 | exact div_le_div_of_nonneg_right (le_max_left ..) (by positivity) |
| 73 | |
| 74 | lemma floor_mono {a b c d : ℝ} (h : Floor B p n a b) (hc : c ≤ a) (hd : b ≤ d) : Floor B p n c d := by |
| 75 | have he (P : FormBlock n) (h : Numeric P a b) : Numeric P c d := fun v => |
| 76 | have ht : 0 ≤ v ⬝ᵥ v := Finset.sum_nonneg fun _ _ => mul_self_nonneg _ |
| 77 | ⟨(mul_le_mul_of_nonneg_right hc ht).trans (h v).1, (h v).2.trans (mul_le_mul_of_nonneg_right hd ht)⟩ |
| 78 | exact { h with uniform := ⟨he _ h.uniform.1,he _ h.uniform.2⟩ } |
| 79 | |
| 80 | lemma covered_mono {a b c d : ℝ} (h : B.covered a b) (hc : c ≤ a) (hd : b ≤ d) : B.covered c d := |
| 81 | ⟨strip_mono h.1 hc hd, strip_mono h.2.1 hc hd, strip_mono h.2.2.1 hc hd,strip_mono h.2.2.2.1 hc hd, strip_mono h.2.2.2.2 hc hd⟩ |
| 82 | |
| 83 | theorem retarget (C : Supply.Sheet G) (K : MapPrices) : ∃ K' : MapPrices, ∀ (a : Levels G), a.clock.stage=C.profile → |
| 84 | (∀ N,(a.params N).clip.direct ≤ 1) → ∀ M : Horizon a, M.Suffices K → ∃ H : Horizon a, H.Suffices K' ∧ Overlay H M := by |
| 85 | choose t v ht hf using fun i => spin_cost (C.profile i).clip (K.α i) (K.Ω i) (K.alpha_pos i) |
| 86 | let K' : MapPrices := { |
| 87 | α := fun i => min (K.α i) (t i) |
| 88 | alpha_pos := fun i => lt_min (K.alpha_pos i) (ht i) |
| 89 | Ω := fun i => max 1 (max (K.Ω i) (v i)) |
| 90 | η := fun i => min 1 (K.η i) |
| 91 | eta_pos := fun i => lt_min one_pos (K.eta_pos i) } |
| 92 | refine ⟨K', fun a ha hg M hM => ?_⟩ |
| 93 | let H := mapped M |
| 94 | have h := overlaid M |
| 95 | have ha' (N : ℕ) : C.profile (a.clock.J N) = a.params N := congr_fun ha.symm _ |
| 96 | choose X hX using fun N : ℕ => hf (a.clock.J N) (M.H N N) (by rw [ha']; exact hg N) ((hM.rows N N le_rfl).2.2.2.1) |
| 97 | let T := fun (N m : ℕ) => if m+1=N then spin (X (m+1)) (M.towers N m) else M.towers N m |
| 98 | have hT N m : (T N m).A0=(M.towers N m).A0 ∧ (T N m).T=(M.towers N m).T := by unfold T; split <;> exact ⟨rfl,rfl⟩ |
| 99 | have hm i : K.Ω i ≤ K'.Ω i := (le_max_left ..).trans (le_max_right ..) |
| 100 | have he i : v i ≤ K'.Ω i := (le_max_right ..).trans (le_max_right ..) |
| 101 | refine ⟨⟨H.H,T⟩,⟨fun N m hx => ?_,fun N m hx n => ?_,fun N m hx => ?_,fun N m p hx => ?_,fun N m p hx => ?_,fun N n => ?_⟩, |
| 102 | ⟨h.peak,h.other,fun N m _ => (hT N m).1⟩⟩ |
| 103 | · obtain hx|rfl := lt_or_eq_of_le hx |
| 104 | · dsimp only; rw [h.other N m hx]; exact covered_mono (hM.rows _ _ hx.le) (min_le_left ..) (hm _) |
| 105 | dsimp only; rw [h.peak]; exact Design.covered _ (hg m) (le_max_left ..) |
| 106 | · dsimp only; obtain hx|rfl := lt_or_eq_of_le hx |
| 107 | · rw [h.other N m hx]; exact floor_mono (hM.all _ _ hx.le n) (min_le_right ..) (hm _) |
| 108 | rw [h.peak]; exact Design.level _ (hg m) _ (min_le_left ..) (le_max_left ..) |
| 109 | · change (T N m).Deep _ _ _ |
| 110 | unfold T; obtain hq|rfl := lt_or_eq_of_le (a:=m+1) (b:=N) hx |
| 111 | · rw [if_neg hq.ne]; exact deep_mono _ (hM.costs N m hx) (min_le_left ..) (hm _) |
| 112 | rw [if_pos rfl]; exact deep_mono _ (hX (m+1) _ _ _ (hM.costs _ _ hx) |>.1) (min_le_right ..) (he _) |
| 113 | · dsimp only; rw [h.other _ _ hx] |
| 114 | have hu : Towers.Diagonal (a.clock.op m p) (M.H N (m+1)) (M.H N m) (T N m) := by |
| 115 | obtain ⟨e1,e2,e3⟩ := hM.crossings N m p hx |
| 116 | constructor <;> simpa only [(hT N m).1,(hT N m).2] |
| 117 | obtain hq|rfl := lt_or_eq_of_le (a:=m+1) (b:=N) hx |
| 118 | · rw [h.other _ _ hq]; exact hu |
| 119 | rw [h.peak]; exact top_diagonal hu (hM.all _ _ hx _) (hM.top _ _) |
| 120 | · dsimp only; rw [h.other _ _ hx]; unfold T; obtain hq|rfl := lt_or_eq_of_le (a:=m+1) (b:=N) hx |
| 121 | · rw [if_neg hq.ne,h.other _ _ hq]; exact hM.stack _ _ _ hx |
| 122 | rw [if_pos rfl,h.peak] |
| 123 | obtain ⟨hL,hR,h⟩ := (hX (m+1) _ _ _ (hM.costs _ _ hx)).2 _ _ (a.clock.op m p).sizes |
| 124 | rw [ha'] at h |
| 125 | exact trans_roll (hM.stack _ _ _ hx) hL hR (h _ _ (hM.all _ _ hx _) (hM.top _ _)) |
| 126 | change (H.H N N).diagonal.acts n = 1 |
| 127 | rw [overlaid M |>.peak]; simp only [bed,spike_acts,one_smul] |
| 128 | end YM.WilsonStartup.Change |