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.RG08.Camera.Invoice |
| 2 | |
| 3 | /-! |
| 4 | # Lift a real near-chart equivalence of slices (+external locations) to coupled algebra. |
| 5 | Use the SAME internal slot dimension after physical reindexing; input and output external |
| 6 | alphabets may differ to allow arbitrary coarse gauge directions. |
| 7 | -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | set_option autoImplicit false |
| 11 | namespace YM.RG08.Camera |
| 12 | open Glyph Cloud Room MvPolynomial Finset Filter Function Matrix |
| 13 | open scoped ContDiff Topology BigOperators PowerSeries Classical |
| 14 | variable {I J A B:Type}[Fintype I][Fintype A][Fintype B] |
| 15 | abbrev Raw (I A:Type):=I ⊕ A |
| 16 | |
| 17 | -- Gauze centering in Room & block geometry use `morn`. No Hermitian assumptions beyond price symmetry. |
| 18 | def morn (Γ:Matrix I I ℝ)(h:∀ i j,Γ i j=Γ j i)(A:Type)[Fintype A]: Haze (Raw I A) where |
| 19 | foam := univ.map (show I↪Raw I A from ⟨.inl,Sum.inl_injective⟩) |
| 20 | price := Sum.elim (fun i=>Sum.elim (Γ i) (fun _=>0)) (fun _ _=>0) |
| 21 | flipped i j:=by cases i <;> cases j <;> simp [h] |
| 22 | dryL i j hh:=by cases i with |
| 23 | | inl i=>exfalso; simp at hh |
| 24 | | inr j=>rfl |
| 25 | private lemma listA {Γ:Matrix I I ℝ}{h:∀ i j,Γ i j=Γ j i}{R:Type*}[AddCommMonoid R](f:Raw I A→R): (∑ j∈(morn Γ h A).foam,f j)=∑ j:I,f (.inl j):=by simp [morn] |
| 26 | |
| 27 | /-- h transforms unscaled centered coordinates. Last alphabet B purely external depends on A |
| 28 | inputs only (Pace and germ derivatives needed). Internal output has no linear external dependence |
| 29 | at the base point (working CENTERED, pay when proving Lifted). -/ |
| 30 | structure Rail (I A B:Type)[Fintype I][Fintype A][Fintype B] where |
| 31 | h:Strip (Raw I B) (Raw I A) |
| 32 | L:Matrix I I ℝ |
| 33 | unitL : IsUnit L |
| 34 | flat: roll h 0=0 |
| 35 | leading(i:I)(k:I):wedge (Sum.inl k) (h (.inl i)) 0=L i k |
| 36 | centered(i:I)(k:A):wedge (Sum.inr k) (h (.inl i)) 0=0 |
| 37 | ambient(i:B)(k:I):wedge (Sum.inl k) (h (.inr i))=ᶠ[𝓝 0] (0:Still (Raw I A)) |
| 38 | smooth (i):Pace (h i) |
| 39 | namespace Rail |
| 40 | variable (q:Rail I A B) |
| 41 | |
| 42 | def x : Raw I B→Port (Raw I A):=rescaleFields q.h |
| 43 | -- η (on AFTER / Domain of h), b (covariant), L inverse used for fees on each white leg |
| 44 | def b (i:Raw I B):Port (Raw I A):=Sum.elim (fun i:I=>∑ j:I,q.L i j • rod (.inl j)) (fun i:B=>q.x (.inr i)) i |
| 45 | def η (i:Raw I A):Port (Raw I A):=Sum.elim (fun i:I=>∑ j:I,(q.L⁻¹) i j • q.x (.inl j)) (fun a:A=> rod (.inr a)) i |
| 46 | lemma plip (i:Raw I B)(k:Raw I A):pin k (q.x i)=flask (wedge k (q.h i)):=pin_out k q.smooth i |
| 47 | lemma sit {Γ:Matrix I I ℝ}{h:∀ i j,Γ i j=Γ j i}(i:B):Abroad (morn Γ h A).foam (q.x (.inr i)):=by |
| 48 | intro j hj; rcases j with j|u |
| 49 | · rw [q.plip,flask_same (q.ambient i j),flask_zero] |
| 50 | simp [morn] at hj -- false |
| 51 | |
| 52 | private lemma seed (i:Raw I B) : tap 0 (q.x i) = ∑ k:Raw I A, wedge k (q.h i) 0 • X k:=by |
| 53 | rw [x,rescaleFields,look,flute]; unfold print; simp only [Nat.cast_zero,zero_add,inv_one,one_smul] |
| 54 | apply Finset.sum_congr rfl; intro k _; rw [Algebra.smul_def,mul_comm];rfl |
| 55 | lemma stem (i:I):tap 0 (q.x (.inl i))=∑ k:I,q.L i k • X (.inl k):=by |
| 56 | rw [seed,Fintype.sum_sum_type];simp_rw [q.leading,q.centered,zero_smul];simp |
| 57 | |
| 58 | theorem harbor : Near q.η:=by |
| 59 | rintro (u|a) |
| 60 | · change tap 0 (∑ j:I,(q.L⁻¹) u j • q.x (.inl j))=_;unfold tap;rw [map_sum];simp_rw [PowerSeries.coeff_smul,← show ∀ (p:Port (Raw I A)),tap 0 p=PowerSeries.coeff 0 p from fun _=>rfl,stem,Finset.smul_sum,smul_smul];rw [Finset.sum_comm];simp_rw [←Finset.sum_smul,← Matrix.mul_apply,q.L.nonsing_inv_mul (q.L.isUnit_iff_isUnit_det.mp q.unitL),Matrix.one_apply];simp [ite_smul] |
| 61 | simp [η,tap,rod,liftInn] |
| 62 | |
| 63 | theorem fixed {Γ:Matrix I I ℝ}{h:∀ i j,Γ i j=Γ j i}:anchored (morn Γ h A).foam q.η:=by |
| 64 | rintro (i|a) hi |
| 65 | · exfalso; simp [morn] at hi |
| 66 | rfl |
| 67 | |
| 68 | theorem assemble (i:Raw I B) : belt q.η (q.b i)=q.x i:=by |
| 69 | let Ω:=morn (0:Matrix I I ℝ) (by intros;rfl) A |
| 70 | cases i with |
| 71 | | inl i=> |
| 72 | change belt q.η (∑ j:I,q.L i j • rod (Sum.inl j))=_;rw [map_sum];simp_rw [_root_.map_smul,belt_x,η,Sum.elim_inl,Finset.smul_sum,smul_smul];rw [Finset.sum_comm];simp_rw [←Finset.sum_smul,←Matrix.mul_apply,q.L.mul_nonsing_inv (q.L.isUnit_iff_isUnit_det.mp q.unitL),Matrix.one_apply];simp [ite_smul] |
| 73 | | inr k=> change belt _ (q.x _)=_;rw [abroad_belt (show Abroad Ω.foam _ from q.sit k) (y:=rod) q.fixed,belt_id] |
| 74 | |
| 75 | theorem composed (p:Port (Raw I B)):belt q.η (belt q.b p)=belt q.x p:=by |
| 76 | change ((belt q.η).comp (belt q.b)) p=_; rw [switched,funext q.assemble] |
| 77 | |
| 78 | lemma patrol {Γ γ:Matrix I I ℝ}{h:∀ i j,Γ i j=Γ j i}{H:∀ i j,γ i j=γ j i}(hh:q.L*Γ*q.L.transpose=γ): |
| 79 | ∃ L,Haze.Scout (morn γ H B) (morn Γ h A) q.b L:=by |
| 80 | let L : Raw I B→Raw I A→ℝ:=Sum.elim (fun i:I=>Sum.elim (q.L i) (fun _=>0)) (fun _ _=>0) |
| 81 | refine ⟨L,⟨fun i hi=>?_,fun i hi=>?_,fun i k hi hk=>?_⟩⟩ |
| 82 | · rw [listA]; cases i |
| 83 | · rfl |
| 84 | exfalso;simp [morn] at hi |
| 85 | · cases i |
| 86 | · exfalso;simp [morn] at hi |
| 87 | apply q.sit |
| 88 | simp_rw [listA];rcases i with (i|i); rotate_left |
| 89 | · exfalso;simp [morn] at hi |
| 90 | rcases k with k|k;rotate_left |
| 91 | · exfalso;simp [morn] at hk |
| 92 | change ∑ a:I,∑ b:I,Γ a b*q.L i a*q.L k b=γ i k |
| 93 | conv_rhs=>rw [← hh,mul_apply] |
| 94 | simp_rw [mul_apply,transpose_apply,Finset.sum_mul] |
| 95 | rw [Finset.sum_comm];apply Finset.sum_congr rfl;intro i _;apply Finset.sum_congr rfl;intro j _;ring |
| 96 | |
| 97 | /- jacBlock h normalized by detL⁻¹ -/ |
| 98 | def jac (z:Cellar (Raw I A)):ℝ:=(q.L⁻¹ * Matrix.of (fun i j : I=> wedge (Sum.inl j) (q.h (.inl i)) z)).det |
| 99 | lemma jac_flat : q.jac 0=1:=by |
| 100 | unfold jac;simp_rw [q.leading];change (q.L⁻¹*q.L).det=_;rw [Matrix.nonsing_inv_mul _ (q.L.isUnit_iff_isUnit_det.mp q.unitL),Matrix.det_one] -- Matrix.of _ defeq |
| 101 | |
| 102 | lemma jac_pace : Pace q.jac:=by |
| 103 | unfold jac; simp_rw [Matrix.det_apply'] |
| 104 | apply ContDiffAt.sum;intro b _;apply ContDiffAt.mul contDiffAt_const |
| 105 | apply contDiffAt_prod; intro i _; simp only [Matrix.mul_apply,Matrix.of_apply] |
| 106 | exact ContDiffAt.sum (fun k _=> ContDiffAt.mul contDiffAt_const (Pace.wedge _ (q.smooth _))) |
| 107 | |
| 108 | def brush : Matrix I I (Port (Raw I A)):=Matrix.of fun (i j:I)=>∑ k:I,(q.L⁻¹) i k • flask (wedge (Sum.inl j) (q.h (.inl k))) |
| 109 | lemma jac_gloss : flask q.jac=q.brush.det:=by |
| 110 | let M (z:Cellar (Raw I A)):= q.L⁻¹*Matrix.of (fun i j:I=>wedge (Sum.inl j) (q.h (.inl i)) z) |
| 111 | have he(i j:I):(fun z=>M z i j)=∑ k:I,(q.L⁻¹) i k • wedge (Sum.inl j) (q.h (.inl k)):=by funext z;unfold M;rw [Matrix.mul_apply,Finset.sum_apply];rfl |
| 112 | have hp(i j k:I): Pace ((q.L⁻¹) i k • wedge (Sum.inl j) (q.h (.inl k))) := (Pace.wedge _ (q.smooth _)).const_smul ((q.L⁻¹) i k) |
| 113 | change flask (fun z=>Matrix.det (M z))=_;rw [flask_det (by intro i j; rw [he];simpa only [←Finset.sum_apply] using (ContDiffAt.sum (s:=univ) (f:=fun k:I=> (q.L⁻¹) i k • wedge (Sum.inl j) (q.h (.inl k))) (fun k _=>hp i j k)))]; congr 1;ext i j :1; simp only [Matrix.of_apply,he,brush,slurry _ _ (fun k _=>hp i j k),flask_scale (Pace.wedge _ (q.smooth _))] |
| 114 | -- named args etc. |
| 115 | theorem fees : flask q.jac=(gate q.η).det:=by |
| 116 | let D : Matrix I A (Port (Raw I A)):=Matrix.of (fun i j=>pin (Sum.inr j) (q.η (.inl i))) |
| 117 | let C : Matrix A A (Port (Raw I A)):=1 |
| 118 | -- align instances by applying real det_fromblocks & gate_eq rewriting at identified instances |
| 119 | have he: gate q.η= Matrix.fromBlocks q.brush D 0 C:=by |
| 120 | ext i j :1 |
| 121 | cases i <;> cases j |
| 122 | · rename_i i j;change pin (Sum.inl j) (∑ k:I,(q.L⁻¹) i k • q.x (.inl k))=_;rw [map_sum];simp_rw [Derivation.map_smul,q.plip];rfl |
| 123 | · rfl |
| 124 | · rename_i i j;change pin (.inl j) (rod (I:=Raw I A) (Sum.inr i))=0;simp [pins] |
| 125 | rename_i i j;change pin (Sum.inr j : Raw I A) (rod (Sum.inr i))=C i j;simp [C,pins,eq_comm,Matrix.one_apply] |
| 126 | rw [q.jac_gloss,he,Matrix.det_fromBlocks_zero₂₁,Matrix.det_one,mul_one] -- C |
| 127 | |
| 128 | end Rail |
| 129 | end YM.RG08.Camera |