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.MultipleContact.Detector |
| 2 | import YM.MultipleContact.Direct |
| 3 | import Mathlib.MeasureTheory.SpecificCodomains.Pi |
| 4 | |
| 5 | set_option autoImplicit false |
| 6 | noncomputable section |
| 7 | namespace YM.MultipleContact.Power |
| 8 | open Function Filter MeasureTheory Set TopologicalSpace Metric Table Direct Analysis Extraction |
| 9 | open scoped Topology BigOperators ContDiff Classical |
| 10 | variable {E : Type*} [NormedAddCommGroup E][InnerProductSpace ℝ E] |
| 11 | [MeasureSpace E] [BorelSpace E] [FiniteDimensional ℝ E] [(volume : Measure E).IsAddHaarMeasure] |
| 12 | variable {G : Gauge}{L:Register G}{S T:Table L}{P:DiffPlan S} |
| 13 | |
| 14 | abbrev Target (L:Register G):= Table L × Exterior L |
| 15 | variable (D:∀ h,Detector S h) |
| 16 | variable {Y Z : Target L→E→ℂ} {R:ℝ} {σ Hmax h k:ℕ} {A:Set (Target L)} |
| 17 | |
| 18 | def readField (Y : Target L→E→ℂ) (h:ℕ) (y:E): S.Field h:= (D h).decode (fun e:(D h).probes=>Y ⟨S,(e:Exterior L)⟩ y) |
| 19 | def centerRead (h:ℕ) (v:E→ S.Field h): Target L→ E→ℂ:=fun t y=>response t.1 _ t.2 (v y) |
| 20 | def miss (h:ℕ) (Y : Target L→E→ℂ): Target L→ E→ℂ := Y - centerRead h (readField D Y h) |
| 21 | |
| 22 | def FilteredAt (P:DiffPlan S) (t: Target L):Prop:=∀ h k, ∀ he:h≤k,∀ x:S.Field h,response t.1 k t.2 (P.rise he x)=response t.1 h t.2 x |
| 23 | lemma response_use (t:Target L) (h:t.1.Symmetric)(he:t.1.respects S) (k:ℕ)(v:S.Field k): |
| 24 | response t.1 k t.2 v= S.useAt t.1 t.2.point (Fin.cons ⟨k,v⟩ (S.classTokens∘t.2.letter)):=by |
| 25 | let w:= Fin.cons (α:=fun _=> S.Tag) ⟨k,v⟩ (S.classTokens∘t.2.letter) |
| 26 | let q:= Fin.cons (α:=fun _=> L.Token) ⟨k,S.representative _ v⟩ t.2.letter |
| 27 | have hh:w=S.classTokens∘q:=funext fun i=> Fin.cases (by |
| 28 | simp only [w,q,Fin.cons_zero,comp_apply]; change (⟨k,v⟩:S.Tag)= ⟨k,S.project k (_)⟩; rw [S.rep]) (fun j=> by simp [w,q]) i |
| 29 | change _=S.useAt t.1 _ w; rw [hh,S.at_project t.1 h he t.2.clear] |
| 30 | rfl |
| 31 | lemma filtered (t:Target L)(h:t.1.Symmetric)(he:t.1.respects S) (hr:P.Inclusions t.1) : FilteredAt P t:= fun k e he' x=>by |
| 32 | simpa only [response_use t h he] using hr.kernels he' x t.2.clear (S.classTokens∘t.2.letter) |
| 33 | |
| 34 | structure Estimates (P:DiffPlan S) (D:∀ h,Detector S h)(σ Hmax:ℕ)(R:ℝ)(Y:Target L→E→ℂ) (A:Set (Target L)): Prop where |
| 35 | radius_pos : 0<R |
| 36 | radius_le : R≤1 |
| 37 | symmetric : S.Symmetric |
| 38 | respects : P.Inclusions S |
| 39 | inherit (t) : t∈A → FilteredAt P t |
| 40 | active k : k≤ Hmax → ∀ e:(D k).probes, ⟨S,e.val⟩∈A |
| 41 | output k : k≤Hmax→∃ c:ℝ, 0<c ∧ ∀t∈A,∀v:S.Field k,‖response t.1 k t.2 v‖≤ c*‖v‖ |
| 42 | grow (ε:ℝ): 0<ε → ∃ c:ℝ, ∀ t∈A, Kas R (-(σ:ℝ)-ε) c (Y t) |
| 43 | signed k: k≤ Hmax → ∃ c γ:ℝ, 0<γ ∧ ∀ t∈A, Kas R ((k:ℝ)-σ+γ) c (miss D k Y t) |
| 44 | |
| 45 | local notation "ρ" => volume.restrict (ball 0 R) |
| 46 | variable {D} |
| 47 | omit [InnerProductSpace ℝ E] [BorelSpace E] [FiniteDimensional ℝ E] [(volume : Measure E).IsAddHaarMeasure] in |
| 48 | lemma read_kas (_hk:k≤Hmax)(hA:∀ e:(D k).probes, ⟨S,e.val⟩∈A){Z : Target L→E→ℂ} {p c:ℝ} (hv:∀t∈A, Kas R p c (Z t)): |
| 49 | ∃ c',Kas R p c' (readField D Z k):=by |
| 50 | let r := readField D Z k |
| 51 | let F:= LinearMap.toContinuousLinearMap (D k).decode |
| 52 | have he y: r y = F fun e=> Z (S,(e:Exterior L)) y := rfl |
| 53 | have h' (e:(D k).probes) : Kas R p c (Z ⟨S,e⟩):=hv _ (hA e) |
| 54 | have ha : AEStronglyMeasurable r (volume.restrict (ball 0 R)):=by |
| 55 | simp_rw [show r=_ from funext he] |
| 56 | exact F.continuous.comp_aestronglyMeasurable ((aemeasurable_pi_iff.mpr fun e=>(h' e).measurable.aemeasurable).aestronglyMeasurable) |
| 57 | let t:= max 1 c; have ht : 0<t := lt_of_lt_of_le zero_lt_one (le_max_left ..) |
| 58 | refine ⟨‖F‖*t+1,by positivity,ha,fun x hx hW=>?_⟩ |
| 59 | change ‖r x‖ ≤ _; rw [he] |
| 60 | have hp : 0 ≤ t*‖x‖^p := by positivity |
| 61 | apply le_trans (F.le_opNorm ..) |
| 62 | calc _ ≤ ‖F‖*(t*‖x‖^p) := mul_le_mul_of_nonneg_left ((pi_norm_le_iff_of_nonneg hp).mpr (fun e=>(h' e).grow x hx hW |>.trans (mul_le_mul_of_nonneg_right (le_max_right ..) (by positivity)))) (show 0≤‖F‖ from by positivity) |
| 63 | _ ≤ _ := by nlinarith [Real.rpow_nonneg (norm_nonneg x) p] |
| 64 | |
| 65 | section Algebra |
| 66 | variable (H:Estimates P D σ Hmax R Y A) |
| 67 | include H |
| 68 | |
| 69 | omit [InnerProductSpace ℝ E] [BorelSpace E] [FiniteDimensional ℝ E] [(volume : Measure E).IsAddHaarMeasure] in |
| 70 | lemma miss_read (hh:h≤k)(hK:k≤Hmax)(y:E):readField D (miss D h Y) k y=readField D Y k y-P.rise hh (readField D Y h y):=by |
| 71 | have he(e:(D k).probes):response S k e (P.rise hh (readField D Y h y))=response S h e (readField D Y h y) := H.inherit _ (H.active _ hK _) h k hh _ |
| 72 | change (D k).decode ((fun e:(D k).probes=>Y ⟨S,e⟩ y)-(fun e:(D k).probes=>response S h e (readField D Y h y)))=_ |
| 73 | simp_rw [map_sub,← he,Detector.fixes]; rfl |
| 74 | |
| 75 | omit [InnerProductSpace ℝ E] [BorelSpace E] [FiniteDimensional ℝ E] [(volume : Measure E).IsAddHaarMeasure] in |
| 76 | lemma piece_miss (B:Splitting P)(w:ℕ)(hw:w≤k)(hK:k≤Hmax)(hh:0<w) (y:E): B.part w k (readField D Y k y)= B.part w k (readField D (miss D (w-1) Y) k y):=by |
| 77 | rw [miss_read H (by omega) hK,map_sub,B.part_rise H.symmetric H.respects,B.beyondZero (by omega : w-1 < w),LinearMap.zero_apply,sub_zero] |
| 78 | |
| 79 | omit [InnerProductSpace ℝ E] [BorelSpace E] [FiniteDimensional ℝ E] [(volume : Measure E).IsAddHaarMeasure] H in |
| 80 | lemma lower_kas {F:Type*}[NormedAddCommGroup F]{R:ℝ} (hR:R≤1){p p' c:ℝ}(hp:p≤p') {K:E→F}(hv:Kas R p' c K): Kas R p c K:=by |
| 81 | refine ⟨hv.pos,hv.measurable,fun x hx hW=> (hv.grow x hx hW).trans ?_⟩ |
| 82 | have hx:=Metric.mem_ball.mp hx; rw [dist_zero_right] at hx; exact mul_le_mul_of_nonneg_left (Real.rpow_le_rpow_of_exponent_ge (norm_pos_iff.mpr hW) (hx.le.trans hR) hp) hv.pos.le |
| 83 | |
| 84 | |
| 85 | lemma piecePrice (B:Splitting P)(w:ℕ)(hw:w≤k)(hK:k≤Hmax):∃ c γ:ℝ,0<γ ∧ γ≤1/2 ∧ Kas R ((w:ℝ)-1-σ+γ) c (fun y=> B.part w k (readField D Y k y)) := by |
| 86 | let v := B.part w k; let F:= LinearMap.toContinuousLinearMap v |
| 87 | suffices h:∃c γ:ℝ,0<γ∧γ≤1/2∧∃g:E→S.Field k,Kas R ((w:ℝ)-1-σ+γ) c g ∧ ∀ y:E,F (g y)= v (readField D Y k y) by |
| 88 | obtain ⟨c,gamma,hg,hg',g,Hg,hg''⟩:=h |
| 89 | have hh:= Hg.pos |
| 90 | refine ⟨‖F‖*c+1,gamma,hg,hg',?_,?_,?_⟩ |
| 91 | · positivity |
| 92 | · change AEStronglyMeasurable (fun y=>v (readField _ _ _ _)) (volume.restrict _); simp only [← hg'' ]; exact F.continuous.comp_aestronglyMeasurable Hg.measurable |
| 93 | intro x hx hW; set p:=((w:ℝ)-1-σ+gamma) |
| 94 | change ‖v (_)‖ ≤ _; rw [← hg''] |
| 95 | exact (F.le_opNorm ..).trans ((mul_le_mul_of_nonneg_left (Hg.grow x hx hW) (norm_nonneg F)).trans (by nlinarith [Real.rpow_nonneg (norm_nonneg x) p])) |
| 96 | by_cases hz:w=0 |
| 97 | · obtain ⟨c,hc⟩:=H.grow (1/2) one_half_pos |
| 98 | obtain ⟨C,hC⟩:=read_kas hK (H.active k hK) hc |
| 99 | exact ⟨C,(1/2),one_half_pos,le_rfl,_,by convert hC using 1; rw [hz]; push_cast; ring,fun y=>rfl⟩ |
| 100 | have hh:w-1≤Hmax:=by omega |
| 101 | obtain ⟨c,γ,hγ,hc⟩:=H.signed (w-1) hh |
| 102 | obtain ⟨C,hC⟩:=read_kas hK (H.active k hK) hc |
| 103 | refine ⟨C,min γ (1/2),lt_min hγ one_half_pos,min_le_right ..,_,lower_kas H.radius_le (?_) hC,fun y=>(piece_miss H B w hw hK (by omega) y).symm⟩ |
| 104 | rw [Nat.cast_sub (by omega : 1≤w)]; linarith only [min_le_left γ (1/2), Nat.cast_one (R:=ℝ)] |
| 105 | lemma centerPrice {v:E→S.Field k}{p c:ℝ}(hk:k≤Hmax)(hv:Kas R p c v):∃c'>0,∀ t∈A,Kas R p c' (centerRead k v t):=by |
| 106 | obtain ⟨t,ht,hq⟩:= H.output k hk |
| 107 | refine ⟨t*c,mul_pos ht hv.pos,fun x hx=>⟨mul_pos ht hv.pos, ?_,fun y hy hz=> ?_⟩⟩ |
| 108 | · exact (response (S:=S) x.1 k x.2).continuous_of_finiteDimensional.comp_aestronglyMeasurable hv.measurable |
| 109 | exact (hq _ hx _).trans ((mul_le_mul_of_nonneg_left (hv.grow y hy hz) ht.le).trans_eq ((mul_assoc ..).symm)) |
| 110 | |
| 111 | omit [InnerProductSpace ℝ E] [BorelSpace E] [FiniteDimensional ℝ E] [(volume : Measure E).IsAddHaarMeasure] H in |
| 112 | lemma subPrice {F:Type*}[NormedAddCommGroup F] {V W:Target L→E→F}{p c b:ℝ}(hv:∀t∈A,Kas R p c (V t))(hW:∀t∈A,Kas R p b (W t)): ∀t∈A, Kas R p (c+b) (V t-W t):=by |
| 113 | intro t ht;let hx:=hv t ht;let hy:=hW t ht |
| 114 | refine ⟨add_pos hx.pos hy.pos,hx.measurable.sub hy.measurable,fun y h h'=>?_⟩ |
| 115 | rw [add_mul]; exact (norm_sub_le ..).trans (add_le_add (hx.grow y h h') (hy.grow y h h')) |
| 116 | lemma readPrice (h:k≤Hmax){Z : Target L→E→ℂ}{p c:ℝ}(hz:∀t∈A,Kas R p c (Z t)): |
| 117 | ∃c',Kas R p c' (readField D Z k):=read_kas h (H.active k h) hz |
| 118 | lemma missPrice (h':h≤Hmax){Z : Target L→E→ℂ}{p c:ℝ}(hz:∀t∈A,Kas R p c (Z t)): ∃c',∀t∈A,Kas R p c' (miss D h Z t):=by |
| 119 | obtain ⟨b,_,hb⟩:= centerPrice H h' ((readPrice H h' hz).choose_spec) |
| 120 | exact ⟨c+b,subPrice (A:=A) hz hb⟩ |
| 121 | end Algebra |
| 122 | end YM.MultipleContact.Power |