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.Algebra.DualNumber |
| 2 | import Mathlib.Analysis.Complex.ExponentialBounds |
| 3 | import Mathlib.Analysis.Complex.Schwarz |
| 4 | import Mathlib.Analysis.Fourier.Convolution |
| 5 | import Mathlib.Analysis.PSeries |
| 6 | import YM.MultiNext.VACUUM_STABILITY.Holding.Offers |
| 7 | import YM.Next.ROTATIONS.Response |
| 8 | import YM.Next.SCHEDULE.Dues |
| 9 | import YM.Next.UV_STRESS.Across |
| 10 | import YM.Push.BETA_TRANSPORT.Comparisons |
| 11 | import YM.Push.COMMON_WITNESSES.Fields |
| 12 | import YM.Push.CUTOFF_PROJECTORS.Along |
| 13 | import YM.Push.PRICE_COMPILER.Suppression |
| 14 | import YM.Push.RELAY_DIFFERENCE.Attaching |
| 15 | import YM.Push.RELAY_DIFFERENCE.TwoSided |
| 16 | import YM.SectorNext.GAUSSIAN_SECTOR_CHANGE.Counting |
| 17 | |
| 18 | /-! |
| 19 | Even on the selected non-diagonal covariance/mean, partially release |
| 20 | z into real Haar variables so hard indicators, tags etc can use those group |
| 21 | inputs. The return after deriving uses EXACTLY the original Gaussian at the |
| 22 | evaluation point. No derivative of the window through a branch claimed. The |
| 23 | held chart log is only used inside an actual bijective patch; elsewhere it |
| 24 | has no intended meaning. No independence needed between the two subsets. |
| 25 | -/ |
| 26 | set_option autoImplicit false |
| 27 | noncomputable section |
| 28 | namespace YM.ProofPorts.CommonComplexProduction |
| 29 | open Set Function Filter Matrix Lattice RG Wilson Precision Multi.Vacuum Next.SectorChange |
| 30 | open MeasureTheory Gaussian |
| 31 | open scoped Topology BigOperators Classical MatrixOrder |
| 32 | variable {G : Gauge} {I : Type} |
| 33 | |
| 34 | structure Pin (G : Gauge) (I : Type) where |
| 35 | held : Finset I |
| 36 | chart : ChartRatio G |
| 37 | g : ℝ |
| 38 | |
| 39 | namespace Pin |
| 40 | variable (P : Pin G I) |
| 41 | |
| 42 | abbrev Stays := ↥P.held |
| 43 | abbrev Floats := {i : I // i∉P.held} |
| 44 | abbrev Group := LinkArray G P.Stays |
| 45 | abbrev State := Prices G P.Floats × P.Group |
| 46 | abbrev Shift := Prices G P.Stays |
| 47 | |
| 48 | variable [Fintype I] [DecidableEq I] |
| 49 | |
| 50 | def switch : Prices G I ≃ᵐ Prices G P.Floats × P.Shift := tape.trans <| |
| 51 | (MeasurableEquiv.piEquivPiSubtypeProd _ (·∈P.held)).trans |
| 52 | ((MeasurableEquiv.prodCongr tape.symm tape.symm).trans MeasurableEquiv.prodComm) |
| 53 | |
| 54 | lemma units : MeasurePreserving P.switch volume volume := by |
| 55 | have h := measurePreserving_piEquivPiSubtypeProd (α:=fun _ : I => G.Color) (fun _ => volume) (·∈P.held) |
| 56 | have hd : MeasurePreserving (MeasurableEquiv.piEquivPiSubtypeProd (fun _ : I => G.Color) (·∈P.held)) volume |
| 57 | ((volume : Measure (LogArray G P.Stays)).prod (volume : Measure (LogArray G P.Floats))) := by |
| 58 | convert! h using 2 |
| 59 | show Measure.pi (fun _ : P.Stays => (volume : Measure G.Color)) = _ |
| 60 | congr 1 |
| 61 | exact Subsingleton.elim _ _ |
| 62 | exact Measure.measurePreserving_swap.comp ((tape_volume.symm.prod tape_volume.symm).comp (hd.comp tape_volume)) |
| 63 | |
| 64 | def basis := volume.prod (piHaar G P.Stays) (α:=Prices G P.Floats) |
| 65 | instance : SFinite P.basis := by unfold basis piHaar; infer_instance |
| 66 | |
| 67 | def zone (m : P.Shift) := displaced m P.g |
| 68 | |
| 69 | def fetch (m : P.Shift) (v : P.Group) (z : Prices G I) : P.State := |
| 70 | ((P.switch z).1, release v (P.zone m (P.switch z).2)) |
| 71 | |
| 72 | def scan (v : P.Group) : Set P.State := Prod.snd ⁻¹' covered P.chart v |
| 73 | |
| 74 | def trace (m : P.Shift) : Set (Prices G I) := {z | P.zone m (P.switch z).2 ∈ mouth P.chart} |
| 75 | |
| 76 | def branch (v : P.Group) (y : P.Group) : LogArray G P.Stays := Function.invFunOn (release v) (mouth P.chart) y |
| 77 | |
| 78 | def rewind (m : P.Shift) (v : P.Group) (r : P.State) : Prices G I := P.switch.symm |
| 79 | (r.1,P.g⁻¹ • (tape.symm (P.branch v r.2)-m)) |
| 80 | |
| 81 | def faceFee (C : Gaussian.Table (I × G.ColorIndex)) (m : P.Shift) (z : Prices G I) : ℝ := |
| 82 | if z∈P.trace m then (Gaussian.coat C * Real.exp (force C z/2)) * |
| 83 | (P.g ^ Fintype.card (P.Stays × G.ColorIndex) * pay P.chart (P.zone m (P.switch z).2)) else 0 |
| 84 | |
| 85 | def logKernel (C : Gaussian.Table (I × G.ColorIndex)) (m : P.Shift) (v : P.Group) (r : P.State) := |
| 86 | -(force C (P.rewind m v r) / 2) - Real.log (Gaussian.coat C) - (∑ j,Real.log (P.chart.J (P.branch v r.2 j))) |
| 87 | |
| 88 | def exchangeRate := (P.g ^ Fintype.card (P.Stays × G.ColorIndex) * P.chart.scale ^ Fintype.card P.Stays)⁻¹ |
| 89 | |
| 90 | def kernel (C : Gaussian.Table (I × G.ColorIndex)) (m : P.Shift) (v : P.Group) (r : P.State) := |
| 91 | P.exchangeRate * Real.exp (P.logKernel C m v r) |
| 92 | |
| 93 | def pinned (C : Gaussian.Table (I × G.ColorIndex)) (m : P.Shift) (v : P.Group) (f : Prices G I → ℂ) : P.State → ℂ := |
| 94 | (P.scan v).indicator fun r => P.kernel C m v r • f (P.rewind m v r) |
| 95 | |
| 96 | structure Clean : Prop where |
| 97 | legal : LocalRatio P.chart |
| 98 | pos : 0<P.g |
| 99 | |
| 100 | omit [Fintype I] [DecidableEq I] in |
| 101 | @[fun_prop] lemma zone_meas (m : P.Shift) : Measurable (P.zone m) := by |
| 102 | apply tape.measurable.comp (by fun_prop : Measurable (fun z => m + P.g • z)) |
| 103 | lemma trace_meas (m : P.Shift) : MeasurableSet (P.trace m) := ((P.zone_meas m).comp (measurable_snd.comp P.switch.measurable)) (mouth_meas _) |
| 104 | lemma fetch_meas (m : P.Shift) (v : P.Group) : Measurable (P.fetch m v) := (measurable_fst.comp P.switch.measurable).prodMk |
| 105 | ((release_continuous v).measurable.comp ((P.zone_meas m).comp (measurable_snd.comp P.switch.measurable))) |
| 106 | |
| 107 | namespace Clean |
| 108 | variable {P} {C : Gaussian.Table (I × G.ColorIndex)} (h : P.Clean) (hC : C.PosDef) {m : P.Shift} {v : P.Group} {z : Prices G I} |
| 109 | |
| 110 | include h in |
| 111 | omit [Fintype I] [DecidableEq I] in |
| 112 | lemma chart_pos {a : LogArray G P.Stays} (h' : a ∈ mouth P.chart) : 0 < pay P.chart a := |
| 113 | Finset.prod_pos fun i _ => mul_pos h.legal.scale (h.legal.pos _ (h' i (Set.mem_univ _))) |
| 114 | include hC h in |
| 115 | lemma coins_pos (m : P.Shift) (z : Prices G I) : 0 ≤ P.faceFee C m z := by |
| 116 | unfold faceFee; split; rename_i he |
| 117 | · have hp := h.pos |
| 118 | exact mul_nonneg (mul_nonneg (coat_pos hC).le (Real.exp_pos _).le) (by have hh := h.chart_pos he; positivity) |
| 119 | rfl |
| 120 | |
| 121 | include h in |
| 122 | lemma kernel_pos (m : P.Shift) (v : P.Group) (r : P.State) : 0 < P.kernel C m v r := by |
| 123 | have hp := h.pos; have hh := h.legal.scale; unfold kernel exchangeRate; positivity |
| 124 | |
| 125 | lemma seen_inside (v : P.Group) (he : z∈P.trace m) : P.fetch m v z ∈ P.scan v := by |
| 126 | intro i _ |
| 127 | let y := P.zone m (P.switch z).2 |
| 128 | exact ⟨G.lieExp (y i),⟨y i,he i (Set.mem_univ i),rfl⟩,rfl⟩ |
| 129 | |
| 130 | include h in |
| 131 | lemma scanned (v : P.Group) (he : z∈P.trace m) : P.branch v (P.fetch m v z).2 = P.zone m (P.switch z).2 := |
| 132 | (release_injOn h.legal v).leftInvOn_invFunOn he |
| 133 | |
| 134 | include h in |
| 135 | lemma unwinds (v : P.Group) (he : z∈P.trace m) : P.rewind m v (P.fetch m v z) = z := by |
| 136 | unfold rewind; rw [h.scanned v he]; simp [zone,displaced,h.pos.ne',fetch] |
| 137 | |
| 138 | include hC h in |
| 139 | lemma reimbursed (v : P.Group) (he : z∈P.trace m) : P.faceFee C m z * P.kernel C m v (P.fetch m v z)=1 := by |
| 140 | let y := P.zone m (P.switch z).2 |
| 141 | have hh (i : P.Stays) : 0<P.chart.J (y i) := h.legal.pos _ (he i (Set.mem_univ i)) |
| 142 | rw [kernel,faceFee,logKernel, if_pos he,h.scanned v he, h.unwinds v he,Real.exp_sub,Real.exp_sub,Real.exp_neg, |
| 143 | Real.exp_log (Gaussian.coat_pos hC),Real.exp_sum]; unfold exchangeRate |
| 144 | change Gaussian.coat C * Real.exp _ * (_ * pay P.chart y) * (_ * (_ / (∏ i,Real.exp (Real.log (P.chart.J (y i))))))=1 |
| 145 | simp_rw [Real.exp_log (hh _),pay,Finset.prod_mul_distrib,Finset.prod_const,Finset.card_univ] |
| 146 | have hp := h.pos; have hv := h.legal.scale; have hi := Gaussian.coat_pos hC |
| 147 | have hj := Finset.prod_pos (s:=Finset.univ) fun i _=>hh i |
| 148 | field_simp |
| 149 | |
| 150 | include h in |
| 151 | lemma fee_meas (m : P.Shift) : Measurable (P.faceFee C m) := by |
| 152 | have hf : Measurable (fun z : Prices G I => force C z) := by unfold force mulVec dotProduct; fun_prop |
| 153 | have hw:= (pay_meas h.legal (ι:=P.Stays)).comp ((P.zone_meas m).comp (measurable_snd.comp P.switch.measurable)) |
| 154 | exact Measurable.ite (P.trace_meas m) ((measurable_const.mul ((hf.div_const _).exp)).mul (measurable_const.mul hw)) measurable_const |
| 155 | end Clean |
| 156 | end Pin |
| 157 | end YM.ProofPorts.CommonComplexProduction |