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.Analysis.Complex.Schwarz |
| 2 | import Mathlib.Analysis.Fourier.Convolution |
| 3 | import Mathlib.Analysis.PSeries |
| 4 | import Mathlib.LinearAlgebra.Lagrange |
| 5 | import YM.AnalyticBridge.ANNULUS_GAUSSIAN_INTERFACE.Guards |
| 6 | import YM.Next.BOUNDARY.Coordinates |
| 7 | import YM.Next.SCHEDULE.Post |
| 8 | import YM.Push.CUTOFF_PROJECTORS.Along |
| 9 | import YM.Push.CUTOFF_PROJECTORS.Signed |
| 10 | import YM.SectorNext.GAUSSIAN_SECTOR_CHANGE.Stencils |
| 11 | import YM.SectorNext.LARGE_FIELD_REMAINDERS.Canonical |
| 12 | |
| 13 | set_option warningAsError false |
| 14 | |
| 15 | /-! |
| 16 | # A location ticket, pre-integration and at fixed F,A |
| 17 | |
| 18 | `Aperture` is bought after L and may require boosting |
| 19 | further BEFORE stages. Don't claim that all `Payment`-calendars |
| 20 | automatically admit it just from their type. No finite norm of the |
| 21 | unknown remaining integrands asserted. |
| 22 | -/ |
| 23 | set_option autoImplicit false |
| 24 | noncomputable section |
| 25 | namespace YM.AnalyticBridge.Annulus.Map |
| 26 | open Function Filter Lattice RG RG.Patch Precision Wilson Pressure Pressure.Stores Pressure.Tube Pressure.Teller Tree Finset |
| 27 | YM.Push.SectorMeasure Oriented Exterior Bloch Next.Fluctuations Next.SectorChange Bid |
| 28 | open YM.SectorNext.Remainder.Affine |
| 29 | open Work.E03 (sep_step parent_step sep_walk stop_route) |
| 30 | open scoped Topology InnerProductSpace Matrix.Norms.Frobenius BigOperators Classical YM.Push.SectorMeasure ContDiff |
| 31 | |
| 32 | variable {G : Gauge} {c f n m : Side} {S : StepData c f} |
| 33 | |
| 34 | /-- Locationwise k-neighbor equality. -/ |
| 35 | structure TagNe (S : StepData c f) (o : Site c) (r : ℕ) (k j : S.Choices) : Prop where |
| 36 | sites i : separation o i ≤ r → k.1 i=j.1 i |
| 37 | paths (i : Bond c) : separation o i.1 ≤ r → k.2 i=j.2 i |
| 38 | |
| 39 | section chain |
| 40 | variable (s : Signed) (o : Site c) (r : ℕ) (k j : S.Choices) |
| 41 | |
| 42 | lemma TagNe.close {u : Site c} {v : ℕ} (ht : TagNe S o r k j) (hr : separation o u+v ≤r) : TagNe S u v k j := by |
| 43 | have hl (q : Site c) (h : separation u q ≤ v) := (separation_triangle o u q).trans ((Nat.add_le_add_left h _).trans hr) |
| 44 | exact ⟨fun i hi => ht.sites i (hl _ hi),fun i hi => ht.paths i (hl _ hi)⟩ |
| 45 | |
| 46 | lemma spin_cost (e : Bond c) : separation (s.act o) (sendEdge s 0 e).1 ≤ separation o e.1 + 1 := by |
| 47 | cases ht : s.flip e.2 |
| 48 | · rw [edge_positive s e ht]; dsimp only; rw [separation_signed]; omega |
| 49 | rw [edge_negative s e ht,← step_negative s _ ht e.1]; dsimp only; rw [separation_signed] |
| 50 | exact (separation_triangle ..).trans (Nat.add_le_add_left (sep_step ..) _) |
| 51 | |
| 52 | lemma TagNe.pull (ht : TagNe S (s.act o) (r+1) k j) : TagNe S o r (choice s k) (choice s j) := by |
| 53 | constructor |
| 54 | · intro i hi |
| 55 | have he : StepData.sendSites s 0 i=s.act i := by change s.act i + 0=_; rw [add_zero] |
| 56 | have hh := ht.sites _ (show separation (s.act o) (s.act i) ≤ r+1 by rw [separation_signed]; omega) |
| 57 | apply (S.patch.orient s).injective |
| 58 | -- leg choice has one inverse, use port theorem |
| 59 | have hv b : S.patch.orient s ((choice s b).1 i) = (b:S.Choices).1 (s.act i) := by |
| 60 | rw [← S.port_site s 0, show (S.withinSites s 0 (choice s b).1)=b.1 from congr_arg Prod.fst ((S.withinChoice s 0).apply_symm_apply b)] |
| 61 | exact congr_arg _ he |
| 62 | rw [hv,hv,hh] |
| 63 | intro i hi |
| 64 | have hv b : S.patch.offset s ((choice s b).2 i) = (b:S.Choices).2 (sendEdge s 0 i) := by |
| 65 | rw [← S.port_bond s 0, show (S.withinBond s 0 (choice s b).2)=b.2 from congr_arg Prod.snd ((S.withinChoice s 0).apply_symm_apply b)] |
| 66 | have hy := ht.paths _ ((spin_cost s o i).trans (Nat.add_le_add_right hi _)) |
| 67 | apply (S.patch.offset s).injective; rw [hv,hv,hy] |
| 68 | |
| 69 | lemma read_turn (V V' : Config G c) (ht : AgreeNear id (s.act o) (r+1) V V') : |
| 70 | AgreeNear id o r (pull s 0 V) (pull s 0 V') := by |
| 71 | intro i hi; have he := ht _ ((spin_cost s o i).trans (Nat.add_le_add_right hi _)) |
| 72 | rw [Motion.turn_read,Motion.turn_read,he] |
| 73 | lemma same_tags (o : Bond c) (i : S.Choices) (V : Config G f) (hh : TagNe S o.1 1 k i) : S.prediction V k o=S.prediction V i o := by |
| 74 | have hp := hh.paths o (by simp) |
| 75 | unfold StepData.prediction; rw [hp] |
| 76 | have hj : S.connector V k.1 o=S.connector V i.1 o := by |
| 77 | funext p; unfold StepData.connector StepData.frames; rw [hh.sites _ (by simp),hh.sites _ (sep_step ..)] |
| 78 | rw [hj] |
| 79 | end chain |
| 80 | |
| 81 | section likelihood |
| 82 | -- cover queries here before choosing torus. Use also for any tagged fallback. |
| 83 | variable (P : Patch) |
| 84 | |
| 85 | def ratesPatch : Finset Lattice.Cover := univ.biUnion fun i : P.Points => |
| 86 | (((univ.biUnion fun j : P.Points => univ.biUnion fun l : Lattice.Order => (visits i.val (route i.val j.val l)).toFinset) ∪ |
| 87 | univ.biUnion fun j : PlaqAxes => (visits i.val (square j.val.1 j.val.2)).toFinset) ∪ |
| 88 | (univ.biUnion fun j : Axis => (visits i.val (List.replicate P.L.val (posDir j))).toFinset)) ∪ {i.val} |
| 89 | |
| 90 | def pitCost := (ratesPatch P).sup fun i => (route 0 i 1).length |
| 91 | |
| 92 | lemma admit_rate (o : Site c) (i : Lattice.Cover) (h : i∈ratesPatch S.patch) : |
| 93 | separation o (S.ratio.parent (wrap f i + S.ratio.embed o)) ≤ pitCost S.patch := by |
| 94 | have he : stop (S.ratio.embed o) (route 0 i 1) = wrap f i+S.ratio.embed o := by |
| 95 | simpa only [map_zero, add_zero, add_comm] using stop_route (S.ratio.embed o) 0 i |
| 96 | nth_rw 1 [← S.ratio.embed_parent o] |
| 97 | rw [← he] |
| 98 | exact (sep_walk _ (parent_step S) ..).trans (le_sup (f:=fun i=>(route 0 i 1).length) h) |
| 99 | |
| 100 | private lemma pit (Q : KernelChoices) (h : P.Branches Q G) (p : P.FrameTag) |
| 101 | (V W : CoverConfig G) (hl : ∀ i : Edge Lattice.Cover, i.1∈ratesPatch P → V i=W i) : |
| 102 | P.frameMass Q V p=P.frameMass Q W p ∧ P.frame Q V p=P.frame Q W p ∧ |
| 103 | ∀ (i : P.Points) (j : Axis), travel V i.val (List.replicate P.L.val (posDir j)) = |
| 104 | travel W i.val (List.replicate P.L.val (posDir j)) := by |
| 105 | have he {i : P.Points} (v : Lattice.Cover) (hp : v∈(fun i : P.Points => |
| 106 | (((univ.biUnion fun j : P.Points => univ.biUnion fun l : Lattice.Order => (visits i.val (route i.val j.val l)).toFinset) ∪ |
| 107 | univ.biUnion fun j : PlaqAxes => (visits i.val (square j.val.1 j.val.2)).toFinset) ∪ |
| 108 | (univ.biUnion fun j : Axis => (visits i.val (List.replicate P.L.val (posDir j))).toFinset)) ∪ {i.val}) i) : v∈ratesPatch P := |
| 109 | mem_biUnion.mpr ⟨_,mem_univ i,hp⟩ |
| 110 | have hR i j l : travel V (i:P.Points).val (route i.val (j:P.Points).val l)=travel W i.val (route i.val j.val l) := by |
| 111 | refine travel_local _ _ _ _ ?_; intro u hu _; apply hl u; apply he (i:=i) |
| 112 | simp only [mem_union,mem_biUnion,mem_univ,true_and,List.mem_toFinset]; exact Or.inl (Or.inl (Or.inl ⟨j,l,hu⟩)) |
| 113 | have hs (x : P.FrameTag) : P.axial V x=P.axial W x := funext fun _ => hR .. |
| 114 | have hv (f : P.Frame G) : P.via f V = P.via f W := by funext x y l; rw [via,via,hR] |
| 115 | have hc : P.score V = P.score W := by funext f; simp only [score,hv] |
| 116 | have hm : P.usesMin Q V ↔ P.usesMin Q W := by simp only [usesMin, hs, hv] |
| 117 | refine ⟨?_,?_,?_⟩ |
| 118 | · have ht : P.eligible Q V=P.eligible Q W := by |
| 119 | have hx (t : P.FrameTag) : P.axialCost V t=P.axialCost W t := by |
| 120 | have ht i j : V ((i:P.Points).val,j)=W (i.val,j) := hl (i.val,j) (he (i:=i) _ (mem_union_right _ (mem_singleton_self _))) |
| 121 | simp only [axialCost,hs,ht] |
| 122 | have hb i j : faceValue V ((i:P.Points).val,j) = faceValue W (i.val,j) := by |
| 123 | refine travel_local _ _ _ _ ?_; intro a ha _; apply hl; apply he (i:=i) |
| 124 | simp only [mem_union,mem_biUnion,mem_univ,true_and,List.mem_toFinset]; exact Or.inl (Or.inl (Or.inr ⟨j,ha⟩)) |
| 125 | simp only [eligible,hx,facesum,hb] |
| 126 | simp [frameMass,ht,hm] |
| 127 | · unfold Patch.frame; by_cases hh : P.usesMin Q W |
| 128 | · rw [if_pos hh, if_pos (hm.mpr hh)] |
| 129 | have he : P.minimizing W (P.selected V) := by simp only [minimizing, ← hc]; exact (P.min_exists V).choose_spec |
| 130 | exact (h.frame_unique W hh).unique he (P.min_exists W).choose_spec |
| 131 | rw [if_neg hh, if_neg (mt hm.mp hh)]; simp only [hs] |
| 132 | intro i j; refine travel_local _ _ _ _ ?_; intro u hu _; apply hl; apply he (i:=i) |
| 133 | simp only [mem_union,mem_biUnion,mem_univ,true_and,List.mem_toFinset]; exact Or.inl (Or.inr ⟨j,hu⟩) |
| 134 | |
| 135 | lemma rates_local (h : S.patch.Branches S.kernel G) (k j : S.Choices) (V W : Config G f) (p : Bond c) |
| 136 | (hp : TagNe S p.1 1 k j) |
| 137 | (hs : AgreeNear S.ratio.parent p.1 (pitCost S.patch+1) V W) : |
| 138 | frameRate S k V p.1=frameRate S j W p.1 ∧ bondRate S k V p=bondRate S j W p := by |
| 139 | have he (i : Site c) (hx : separation p.1 i ≤ 1) (b : Edge Lattice.Cover) (hb : b.1∈ratesPatch S.patch) : |
| 140 | expandAt (S.ratio.embed i) V b=expandAt (S.ratio.embed i) W b := by |
| 141 | refine hs _ ((separation_triangle p.1 i _).trans ?_) |
| 142 | exact le_trans (Nat.add_le_add hx (admit_rate (S:=S) i b.1 hb)) (Nat.add_comm 1 _).le |
| 143 | have hi (i : Site c) (hx : separation p.1 i≤1) := pit S.patch S.kernel h (j.1 i) _ _ (he i hx) |
| 144 | have ht : separation p.1 p.1 ≤ 1 := by simp |
| 145 | have hh := sep_step p.1 p.2 |
| 146 | have ha := hp.sites p.1 ht; have hh' := hp.sites _ hh |
| 147 | refine ⟨?_,?_⟩ |
| 148 | · unfold frameRate; rw [ha,(hi _ ht).1] |
| 149 | have hu : S.connector V k.1 p = S.connector W j.1 p := by |
| 150 | funext v; unfold StepData.connector StepData.frames |
| 151 | rw [ha, hh',(hi _ ht).2.1,(hi _ hh).2.1,(hi _ ht).2.2] |
| 152 | unfold bondRate; rw [hu,hp.paths p ht] |
| 153 | end likelihood |
| 154 | |
| 155 | /-- Includes even witness range for masks. Priced separately for this |
| 156 | exercise. -/ |
| 157 | structure Aperture (S : StepData c f) (T : Tube G S) (x : ℝ) : Prop where |
| 158 | visits : pitCost S.patch+10≤ radiusB x/50 |
| 159 | branched : S.patch.Branches S.kernel G |
| 160 | spans : span S.patch x ≤ radiusB x/50 |
| 161 | scale : 120≤radiusB x |
| 162 | fine : ∃ a, LaneCounts T.up x (fiery G x S.patch.L) T.high a 1 S.ratio.parent |
| 163 | coarse : ∃ a, LaneCounts T.down x (temp x) T.low a S.patch.L.val (id : Site c → Site c) |
| 164 | |
| 165 | lemma aperture (Q : Teller G) (P : Patch) : ∀ᶠ x : ℝ in atTop, ∀ {c f : Side} (S : StepData c f) (T : Tube G S), |
| 166 | S.patch=P → Q.Funds S T → Aperture S T x := by |
| 167 | let a := G.slopeConstant * Real.log P.L.val |
| 168 | filter_upwards [Work.E01.radiusB_tendsto.eventually_ge_atTop (50*(pitCost P+120)), |
| 169 | small_span P,Work.E04.eventually_room a Q.top.clip.relaxation Q.top.clip.radius_pos, |
| 170 | Work.E04.eventually_room 0 Q.below.clip.relaxation Q.below.clip.radius_pos] with x hx hv he hh |
| 171 | intro c f S T hq hp |
| 172 | obtain ⟨b,w,hb,h⟩ := hp.feeds |
| 173 | simp only [add_zero] at hh |
| 174 | refine ⟨by rw [hq]; omega, funds_branch hp,hq.symm ▸ hv,by omega,?_,?_⟩ |
| 175 | · rw [hp.high] |
| 176 | refine ⟨_,Work.E04.lanes hb le_rfl (Work.E04.temp_nonneg _) (by decide) (Work.E04.parent_separation _) ?_⟩ |
| 177 | rw [hq]; exact he |
| 178 | rw [hp.low]; exact ⟨_,Work.E04.lanes h le_rfl (Work.E04.temp_nonneg x) S.patch.L.property (fun i j => Nat.le_succ _) hh⟩ |
| 179 | end YM.AnalyticBridge.Annulus.Map |