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.AnalyticBridge.GAUSSIAN_FIELD_ALIGNMENT.Gauges |
| 2 | import YM.AnalyticBridge.GAUSSIAN_FIELD_ALIGNMENT.Locations |
| 3 | |
| 4 | |
| 5 | set_option warningAsError false |
| 6 | |
| 7 | /-! |
| 8 | # Signed permutations and step translations of the two covariance prescriptions |
| 9 | |
| 10 | Compare channel by channel only AFTER permuting the whole stack, |
| 11 | never making the generally wrong identification of the reversal basis on Q |
| 12 | term with reversal on V. Pay attention even to nonzero-bar background and to |
| 13 | those fixed cut transports in the frozen affine terms. This is not symmetry |
| 14 | of a varying path-choice procedure, Allocation, extents of every prerequisite |
| 15 | or labeling scheme under which these values occur. Uses the SAME numerical |
| 16 | path/horizon witnesses at every turn. No argument from symmetry to selection |
| 17 | of a compatible physical family across steps. |
| 18 | -/ |
| 19 | set_option autoImplicit false |
| 20 | noncomputable section |
| 21 | namespace YM.AnalyticBridge.GaussianFieldAlignment.Channels |
| 22 | open Function Filter Set Lattice RG Wilson Precision Exterior Tree Pressure Pressure.Stores Pressure.Tube Bloch Matrix |
| 23 | open Next.SectorChange Rows Push.SectorMeasure Oriented Orthogonal Tensor Locations |
| 24 | open scoped Topology BigOperators Classical Matrix.Norms.Frobenius ContDiff |
| 25 | variable {α β : Type} {G : Gauge} {c f n : Side} {S : StepData c f} |
| 26 | |
| 27 | def shift (b : Site n) (α : Type*) : Equiv.Perm (Site n × α) := (Equiv.addRight b).prodCongr (Equiv.refl _) |
| 28 | def twin (b : Site n) : Equiv.Perm (Twin n) := (shift b PlaqAxes).prodCongr (Equiv.refl Bool) |
| 29 | lemma translated_travel (b : Site n) (U : Config G n) (i : Site n) (w : Walk) : travel (translate b U) i w = travel U (i+b) w := by rw [← pull_one,travel_pull]; simp [affine] |
| 30 | lemma translated_face (b : Site n) (U : Config G n) (i : Cell n) : faceValue (translate b U) i = faceValue U (shift b _ i) := translated_travel .. |
| 31 | lemma slot_shift (b : Site n) (i : Site n) (s : RG.Slot) : shift b _ (Work.F03.slotFace s i) = Work.F03.slotFace s (i+b) := by unfold shift Work.F03.slotFace; simp [add_assoc] |
| 32 | lemma translated_barrel (b : Site n) (P : PathData G) (r : ℕ) (U : Config G n) (z : Cell n → G.Color) (i : Cell n) : barrel P r (translate b U) (fun j => z (shift b _ j)) i = barrel P r U z (shift b _ i) := by unfold barrel; simp_rw [translated_travel,slot_shift]; rfl |
| 33 | lemma translated_shoot (b : Site n) (p : Clip) (U : Config G n) (i : Cell n) : shoot p (translate b U) i = shoot p U (shift b _ i) := by unfold shoot; rw [translated_face] |
| 34 | lemma translated_shorten (b : Site n) (P : PathData G) (r d : ℕ) (U : Config G n) (i : Cell n) : shorten P r d (translate b U) i = shorten P r d U (shift b _ i) := by unfold shorten shortenTerm PathData.ellTerms; simp_rw [Work.F03.atSite_path, translated_travel, translated_face,slot_shift]; rfl |
| 35 | lemma translated_plot (b : Site n) (P : PathData G) (p : Clip) (r d : ℕ) (U : Config G n) (i : Twin n) : plotted P p r d (translate b U) i = plotted P p r d U (twin b i) := by unfold plotted; rw [translated_shoot,translated_shorten]; rfl |
| 36 | lemma translated_thinned (b : Site n) (P : PathData G) (p : Clip) (t : ℝ) (r d : ℕ) (U : Config G n) (i : Twin n) : thinned P p t d r (translate b U) i = thinned P p t d r U (twin b i) := by |
| 37 | have h : PathData.kept p t i.1.1 (translate b U) ↔ PathData.kept p t (twin b i).1.1 U := by |
| 38 | unfold PathData.kept; conv_rhs => rw [← (shift b PlaqAxes).forall_congr_right] |
| 39 | simp_rw [translated_face]; simp [shift,twin,separation_translate] |
| 40 | unfold thinned; rw [show (twin b i).2=i.2 from rfl,toll, translated_face, if_congr h rfl rfl, translated_shorten, translated_shoot]; rfl |
| 41 | lemma translated_Z (b : Site c) (U V : Config G c) (i : Bond c) : Tube.Z S (translate b U) (translate b V) i = Tube.Z S U V (shift b _ i) := rfl |
| 42 | |
| 43 | lemma translated_lane {α β : Type*} (A : Row α β) (r d : ℕ) (b : Site n) (U : Config G n) (i j) : |
| 44 | lane r d (translate b U) A i j = lane r d U A (shift b _ i) (shift b _ j) := by |
| 45 | unfold lane priced rated; simp_rw [translated_travel]; simp only [shift,Equiv.prodCongr_apply,Prod.map,Equiv.coe_addRight,Equiv.refl_apply] |
| 46 | apply tsum_congr; intro z; split <;> (next h => split <;> first | rfl | simp_all [add_right_comm _ b _]) |
| 47 | |
| 48 | lemma translated_leap (M : Towers S.patch.L) (b : Site c) (V : Config G c) (r : ℕ) (i j) : |
| 49 | leap S M r (translate b V) i j = leap S M r V (twin (S.ratio.embed b) i) (twin b j) := by |
| 50 | unfold leap casted; apply tsum_congr; intro z |
| 51 | let g := S.ratio |
| 52 | have hp : replica g (translate b V)=translate (g.embed b) (replica g V) := by simp_rw [← pull_one]; exact replica_move .. |
| 53 | have he (i : Site f) : g.parent (i+g.embed b) = g.parent i + b := by simpa only [affine,Signed.act_one] using! parent_map (S:=S) 1 b i |
| 54 | have h₁ : mesh (twin (g.embed b) i) = shift (g.embed b) _ (mesh i) := rfl |
| 55 | have h₂ : mesh (twin b j)= shift b _ (mesh j) := rfl |
| 56 | rw [hp,h₁,h₂]; simp only [shift,Equiv.prodCongr_apply,Prod.map,Equiv.refl_apply,Equiv.coe_addRight,map_add] |
| 57 | rw [rated,rated,translated_travel]; -- conditions |
| 58 | simp [g,he (mesh i).1,add_right_comm _ b _] |
| 59 | lemma translated_Mv (b : Site c) (T : Tube G S) (r : ℕ) (t : ℝ) (V : Config G c) (i : Twin f) : T.Mv r t (translate b V) i = T.Mv r t V (twin (S.ratio.embed b) i) := by |
| 60 | unfold Mv vision zip; simp_rw [translated_thinned, Φ,translated_leap]; exact Equiv.sum_comp (twin b) (fun j : Twin c => (T.Φ r V (twin (S.ratio.embed b) i) j) (T.vision r t V j)) |
| 61 | lemma translated_Mw (b : Site c) (T : Tube G S) (r : ℕ) (t : ℝ) (V : Config G c) (i : Bond c) : T.Mw r t (translate b V) i = T.Mw r t V (shift b _ i) := by |
| 62 | unfold Mw vision Φ' kick zip; simp_rw [translated_thinned,translated_lane]; exact Equiv.sum_comp (twin b) (fun j : Twin c => (T.Φ' r V (shift b _ i) j) (T.vision r t V j)) |
| 63 | |
| 64 | section edges |
| 65 | variable (s : Signed) (t : Site n) (U : Config G n) |
| 66 | def flip (i : Bond n) : G.Color →ₗᵢ[ℝ] G.Color := { -G.adjoint (U (sendEdge s t i))⁻¹ with norm_map' := fun _ => by simp } |
| 67 | def scatter : ColorOrtho G (Bond n) := fun i => if s.flip i.2 then flip s t U i else LinearIsometry.id |
| 68 | lemma read_back (i : Bond n) : pull s t U i = if s.flip i.2 then (U (sendEdge s t i))⁻¹ else U (sendEdge s t i) := by unfold pull Step.read sendEdge; simp [posDir,Step.rotate] |
| 69 | lemma insert_turn (a : Directions G n) : increment (pull s t U) (lifting (scatter s t U) (StepData.sendBonds s t) a)=pull s t (increment U a) := by |
| 70 | funext i; rw [read_back]; unfold increment; rw [read_back,lifting_apply]; unfold scatter; split |
| 71 | next he => change G.lieExp (-G.adjoint _ _) * _ = _; rw [exp_negative,exp_adjoint]; change ((U _)⁻¹ * G.lieExp (a (sendEdge s t i)) * ((U _)⁻¹)⁻¹)⁻¹ * _ = _; group |
| 72 | rfl |
| 73 | end edges |
| 74 | |
| 75 | variable (s : Signed) (b : Site c) (q : Signed) (V : Config G c) (k : S.Choices) (T : Tube G S) (x : ℝ) |
| 76 | def offset := (s*q)⁻¹.act b |
| 77 | lemma offset_fine (g : Ratio c f) : offset s (g.embed b) q = g.embed (offset s b q) := by rw [offset,offset,g.signed] |
| 78 | lemma channel_turn (V : Config G c) : pull q 0 (pull s b V) = translate (offset s b q) (pull (s*q) 0 V) := by rw [pull_pull,← pull_one, pull_pull, mul_one]; simp only [offset,affine,Signed.act_inv,add_zero,Signed.act_zero,zero_add] |
| 79 | def ticket := (S.withinChoice s b).symm k |
| 80 | def diagram (S : StepData c f) := StepData.sendBonds s (S.ratio.embed b) |
| 81 | def fiber (S : StepData c f) := scatter s (S.ratio.embed b) (replica S.ratio V) |
| 82 | |
| 83 | lemma lift_turn (a : Directions G f) : increment (replica S.ratio (pull s b V)) (lifting (fiber s b V S) (diagram s b S) a) = pull s (S.ratio.embed b) (increment (replica S.ratio V) a) := by rw [replica_move]; exact insert_turn .. |
| 84 | lemma facade_move (a : Directions G f) : facade S q (pull s b V) (lifting (fiber s b V S) (diagram s b S) a) = translate (S.ratio.embed (offset s b q)) (facade S (s*q) V a) := by unfold facade; rw [lift_turn,channel_turn,offset_fine] |
| 85 | lemma facade_zero : facade S q (pull s b V) 0 = translate (S.ratio.embed (offset s b q)) (facade S (s*q) V 0) := by simpa only [map_zero] using facade_move (S:=S) s b q V 0 |
| 86 | |
| 87 | variable (h : S.patch.Branches S.kernel G) |
| 88 | include h |
| 89 | lemma prediction_move (a : Directions G f) : |
| 90 | S.prediction (facade S q (pull s b V) (lifting (fiber s b V S) (diagram s b S) a)) (choice q (ticket s b k)) = |
| 91 | translate (offset s b q) (S.prediction (facade S (s*q) V a) (choice (s*q) k)) := by |
| 92 | unfold facade; rw [(carry q h (ticket s b k) _).2,(carry (s*q) h k _).2, lift_turn,S.prediction_channel h,ticket,Equiv.apply_symm_apply, channel_turn] |
| 93 | lemma prediction_zero : S.prediction (facade S q (pull s b V) 0) (choice q (ticket s b k)) = translate (offset s b q) (S.prediction (facade S (s*q) V 0) (choice (s*q) k)) := by simpa only [map_zero] using prediction_move s b q V k h 0 |
| 94 | lemma predicts_turn (a : Directions G f) (i : Bond c) : predictorTurn (pull s b V) (ticket s b k) q i (lifting (fiber s b V S) (diagram s b S) a) = predictorTurn V k (s*q) (shift (offset s b q) _ i) a := by unfold predictorTurn predictGroup; rw [prediction_move s b q V k h, prediction_zero s b q V k h]; rfl |
| 95 | |
| 96 | omit h in |
| 97 | lemma faceJet_turn (a : Directions G f) (p : Cell f) : |
| 98 | plaquetteJet S (pull s b V) q p (lifting (fiber s b V S) (diagram s b S) a) = plaquetteJet S V (s*q) (shift (S.ratio.embed (offset s b q)) _ p) a := by |
| 99 | unfold plaquetteJet; refine derives _ (ContinuousLinearEquiv.refl ℝ G.Color) (fun a => ?_) a; rw [facade_move,translated_face]; rfl |
| 100 | lemma blockJet_turn (a : Directions G f) (i : Bond c) : blockJet (pull s b V) (ticket s b k) q i (lifting (fiber s b V S) (diagram s b S) a) = blockJet V k (s*q) (shift (offset s b q) _ i) a := by |
| 101 | unfold blockJet; refine derives _ (ContinuousLinearEquiv.refl ℝ G.Color) (fun a => ?_) a; rw [predicts_turn s b q V k h]; rfl |
| 102 | |
| 103 | omit h in |
| 104 | def shiftSlot (g : Ratio c f) : Equiv.Perm (Twin f ⊕ Bond c) := Equiv.sumCongr (twin (g.embed (offset s b q))) (shift (offset s b q) _) |
| 105 | def perChannel (S : StepData c f) : Equiv.Perm (Slots S) where |
| 106 | toFun i := (s*i.1,shiftSlot s b i.1 S.ratio i.2) |
| 107 | invFun i := (s⁻¹*i.1,(shiftSlot s b (s⁻¹*i.1) S.ratio).symm i.2) |
| 108 | left_inv i := by simp |
| 109 | right_inv i := by simp |
| 110 | |
| 111 | def unchanged (G : Gauge) (S : StepData c f) : ColorOrtho G (Slots S) := fun _ => LinearIsometry.id |
| 112 | lemma rotated_bump (a : Directions G f) (i : Slots S) : bump T x (pull s b V) (ticket s b k) (lifting (fiber s b V S) (diagram s b S) a) i = unchanged G S i (bump T x V k a (perChannel s b S i)) := by |
| 113 | obtain ⟨q,p|i⟩ := i |
| 114 | · change faceKick T x (pull s b V) (lifting (fiber s b V S) (diagram s b S) a) q p = faceKick T x V a (s*q) (twin _ p) |
| 115 | unfold faceKick; rw [show (twin _ p).2=p.2 from rfl]; split |
| 116 | next he => simp_rw [facade_zero,faceJet_turn]; exact translated_barrel (S.ratio.embed (offset s b q)) T.up _ _ (fun i => plaquetteJet S V (s*q) i a) _ |
| 117 | next he => rw [faceJet_turn]; rfl |
| 118 | change -(Real.sqrt S.kernel.penalty • blockJet (pull s b V) (ticket s b k) q i _) = noiseKick .. |
| 119 | rw [noiseKick,blockJet_turn s b q V k h]; rfl |
| 120 | lemma rotated_base (i : Slots S) : base T x (pull s b V) (ticket s b k) i = unchanged G S i (base T x V k (perChannel s b S i)) := by |
| 121 | obtain ⟨q,i|i⟩ := i |
| 122 | · change faceFixed T _ q _ i=faceFixed T _ (s*q) _ (twin _ i); rw [faceFixed,facade_zero,channel_turn,Tube.Xf,translated_plot, translated_Mv]; rfl |
| 123 | change noiseFixed T _ _ _ q i=noiseFixed T _ _ _ (s*q) _; rw [noiseFixed,prediction_zero s b q V k h,channel_turn,translated_Z,translated_Mw]; rfl |
| 124 | |
| 125 | variable (A : Stores S) (F : Forest S.ratio) |
| 126 | |
| 127 | theorem turned_cov {σ E Λ : ℝ} (hT : T.up.Bounds T.high σ E Λ) : Equivalent T V (pull s b V) k (ticket s b k) (Locations.active s b A F x) (onBond (fiber s b V S)) := gram_motion (diagram s b S) _ _ _ _ h hT (fun _ => rfl) (rotated_bump s b V k T x h) (geometry _ s b (fun _ => rfl)) |
| 128 | |
| 129 | def rollY (Y : LinkArray G (Frozen A x F)) : LinkArray G (Frozen (book s b A) x (Locations.forest s b F)) := fun i => if s.flip i.val.val.2 then (Y (frozen s b A F x i))⁻¹ else Y (frozen s b A F x i) |
| 130 | omit h in |
| 131 | lemma rollY_shell (Y : LinkArray G (Frozen A x F)) (q : Chi) (d : ℝ) (i) : autoShell q d (pull s b V) (rollY s b x A F Y) i = fiber s b V S i.val.val (autoShell q d V Y (frozen s b A F x i)) := by |
| 132 | unfold autoShell rollY; rw [replica_move, read_back]; unfold fiber scatter; split |
| 133 | next he => |
| 134 | let v := replica S.ratio V (sendEdge s (S.ratio.embed b) i.val.val) |
| 135 | let u := Y (frozen s b A F x i) |
| 136 | change patched q d (u⁻¹*v⁻¹⁻¹)= -G.adjoint v⁻¹ (patched q d (u*v⁻¹)) |
| 137 | rw [show u⁻¹*v⁻¹⁻¹ = (v⁻¹*(u*v⁻¹)*v⁻¹⁻¹)⁻¹ by group,patched_inv,patched_covary] |
| 138 | rfl |
| 139 | |
| 140 | theorem turned_mean {σ E Λ : ℝ} (hT : T.up.Bounds T.high σ E Λ) (q : Chi) (d : ℝ) (Y : LinkArray G (Frozen A x F)) : |
| 141 | Means (V:=V) (V':=pull s b V) (k:=k) (k':=ticket s b k) (T:=T) (Locations.active s b A F x) q d (onBond (fiber s b V S)) Y (rollY s b x A F Y) := by |
| 142 | refine means _ q d _ _ _ (turned_cov s b V k T x h A F hT) ?_ |
| 143 | exact blame_motion (diagram s b S) _ _ (frozen s b A F x) _ _ h hT (fun _ => rfl) (rotated_bump s b V k T x h) _ _ _ _ (fun _ => rfl) (rollY_shell s b V x A F Y q d) (rotated_base s b V k T x h) |
| 144 | end YM.AnalyticBridge.GaussianFieldAlignment.Channels |