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.Combinatorics.SimpleGraph.Acyclic |
| 2 | import Mathlib.MeasureTheory.Measure.Lebesgue.VolumeOfBalls |
| 3 | import Mathlib.RingTheory.MvPolynomial.EulerIdentity |
| 4 | import Mathlib.RingTheory.RootsOfUnity.Complex |
| 5 | import YM.AnalyticBridge.RESET_INCOME_PORT.Plate |
| 6 | import YM.Extra.ITERATION_NO_LOSS.ComplexDerivs |
| 7 | import YM.Extra.MULTISOURCE_TRAJECTORIES.Deletion |
| 8 | import YM.Extra.SOURCE_HISTORIES.Accompany |
| 9 | import YM.Extra.WEAK_SCALING_ACTLAW.Divergence |
| 10 | import YM.Extra.WEAK_SCALING_ACTLAW.Five |
| 11 | import YM.Extra.WILSON_STARTUP.Builder |
| 12 | import YM.Further.GAUSSIAN_SCALAR_LEDGER.Balance |
| 13 | import YM.Next.MULTISOURCE.Curves |
| 14 | import YM.Next.WARD_BIN.Rays |
| 15 | import YM.Progress.DIRECTED_RECIPE.Economy |
| 16 | import YM.Progress.JOINT_CALENDAR.Branches |
| 17 | import YM.ProjectorNext.PROJECTOR_EQUIVARIANCE.Models |
| 18 | import YM.ProjectorNext.PROJECTOR_EQUIVARIANCE.Passage |
| 19 | import YM.Push.ABSOLUTE_SUMS.Breadth |
| 20 | import YM.Push.CORRECTED_COLUMNS.Assembly |
| 21 | import YM.Push.CORRECTED_COLUMNS.Funding |
| 22 | import YM.Push.FINITE_DETECTION.Crew |
| 23 | import YM.Push.GRID_APPROXIMATION.AttachDefs |
| 24 | import YM.Push.GRID_APPROXIMATION.Polynomial |
| 25 | import YM.Push.RELAY_DIFFERENCE.Attaching |
| 26 | import YM.Push.RELAY_DIFFERENCE.Shuffles |
| 27 | import YM.Push.RELAY_MARK.Span |
| 28 | import YM.Push.STRESS_FLUX.Low |
| 29 | import YM.Push.STRESS_FLUX.Matching |
| 30 | import YM.Push.STRESS_FLUX.Orbits |
| 31 | import YM.SectorNext.VACUUM_NORMALIZATION.Plaques |
| 32 | import YM.UVNext.COMMON_GRADE_ASSEMBLY.Current |
| 33 | |
| 34 | |
| 35 | set_option warningAsError false |
| 36 | set_option autoImplicit false |
| 37 | |
| 38 | /-! |
| 39 | # Freeze and open the exact physical sector at the Scanner interface |
| 40 | |
| 41 | Endpoint distance convention and positive common coordinates of SectorChange. The chart |
| 42 | requirement is only at *correct flags*, nonzero bill, living shared tag. But Opened must |
| 43 | hold for all fields, and for test functions of the whole actual slice. Frozen mass is |
| 44 | not replaced by a log or a background. Broad profiles used on the intact allocation. |
| 45 | -/ |
| 46 | noncomputable section |
| 47 | namespace YM.SectorTools.ActualScalar |
| 48 | open Function Filter Set MeasureTheory Matrix |
| 49 | open RG Wilson Lattice Pressure Pressure.Stores Bid Precision Tree Push.SectorMeasure |
| 50 | Next.SectorChange Further GaussianScalar AnalyticBridge.ResetIncome |
| 51 | open scoped Topology BigOperators Classical ContDiff Matrix.Norms.Frobenius |
| 52 | |
| 53 | variable {G : Gauge} {c f : Side} {S : StepData c f} (e : Plate G S) (A : Stores S) |
| 54 | |
| 55 | def held : Finset e.forest.Free := Finset.univ.filter (chill A e.x e.forest) |
| 56 | lemma held_iff (i : e.forest.Free) : i ∈ held e A ↔ chill A e.x e.forest i := Finset.mem_filter.trans (and_iff_right (Finset.mem_univ _)) |
| 57 | |
| 58 | def heldEquiv : (↥(held e A)) ≃ Next.SectorChange.Frozen A e.x e.forest := |
| 59 | Equiv.subtypeEquiv (Equiv.refl _) (held_iff e A) |
| 60 | |
| 61 | def going : GaussianScalar.Standing (held e A) ≃ Active A e.x e.forest := |
| 62 | Equiv.subtypeEquiv (Equiv.refl _) (fun i => not_congr (held_iff e A i)) |
| 63 | |
| 64 | def moving : Bits G (held e A) ≃ Rows.In e.x A e.forest (G:=G) := Equiv.prodCongr (going e A) (Equiv.refl _) |
| 65 | |
| 66 | def shellMap : GaussianScalar.Frozen (held e A) G ≃ᵐ LinkArray G (Next.SectorChange.Frozen A e.x e.forest) := |
| 67 | MeasurableEquiv.piCongrLeft (fun _ => G.El) (heldEquiv e A) |
| 68 | |
| 69 | def chartMap : VV (Bits G (held e A)) ≃ᵐ Prices G (Active A e.x e.forest) := |
| 70 | MeasurableEquiv.piCongrLeft (fun _ => ℝ) (moving e A) |
| 71 | |
| 72 | lemma shell_paid : MeasurePreserving (shellMap e A) (bins (held e A) G) (piHaar G (Next.SectorChange.Frozen A e.x e.forest)) := |
| 73 | measurePreserving_piCongrLeft (fun _ => G.probHaar) (heldEquiv e A) |
| 74 | |
| 75 | lemma chart_paid : MeasurePreserving (chartMap e A) volume volume := volume_measurePreserving_piCongrLeft (fun _ => ℝ) (moving e A) |
| 76 | |
| 77 | lemma shell_reads (Y : GaussianScalar.Frozen (held e A) G) (i : ↥(held e A)) : shellMap e A Y (heldEquiv e A i) = Y i := |
| 78 | MeasurableEquiv.piCongrLeft_apply_apply .. |
| 79 | lemma chart_reads (z : VV (Bits G (held e A))) (i : Bits G (held e A)) : chartMap e A z (moving e A i) = z i := |
| 80 | MeasurableEquiv.piCongrLeft_apply_apply .. |
| 81 | lemma chart_ap (z : VV (Bits G (held e A))) : chartMap e A z = z ∘ (moving e A).symm := by |
| 82 | funext i; obtain ⟨i,rfl⟩ := (moving e A).surjective i; rw [chart_reads]; simp |
| 83 | lemma chart_sym (a : Prices G (Active A e.x e.forest)) : (chartMap e A).symm a = a ∘ moving e A := by |
| 84 | apply (chartMap e A).injective; rw [chart_ap _ _ (a ∘ _), MeasurableEquiv.apply_symm_apply]; funext i; exact (congr_arg a ((moving e A).apply_symm_apply i)).symm |
| 85 | |
| 86 | |
| 87 | lemma tape_reads (z : VV (Bits G (held e A))) (i : GaussianScalar.Standing (held e A)) : |
| 88 | tape (chartMap e A z) (going e A i) = hue i z := by |
| 89 | ext j; exact chart_reads e A z (i,j) |
| 90 | |
| 91 | lemma included_eq (V : Config G c) (Y : GaussianScalar.Frozen (held e A) G) (z : VV (Bits G (held e A))) : |
| 92 | included V Y z = returned A e.forest V (shellMap e A Y) (tape (chartMap e A z)) := by |
| 93 | funext i; unfold included returned thaw |
| 94 | split |
| 95 | next hi => |
| 96 | change _ = freeze _ _ _ _ (heldEquiv e A ⟨i,hi⟩).val |
| 97 | rw [freeze_held,shell_reads] |
| 98 | next hi => |
| 99 | change _ = freeze _ _ _ _ (going e A ⟨i,hi⟩).val |
| 100 | rw [freeze_regular]; unfold release; rw [tape_reads]; rfl |
| 101 | |
| 102 | /-- Only the two radius facts needed to form a legit Curtain. -/ |
| 103 | structure Doors (e : Plate G S) : Prop where |
| 104 | pos : 0 < e.d |
| 105 | radius : 2*e.d < e.chart.radius |
| 106 | |
| 107 | def cover (h : Doors e) : Curtain e.chart (held e A) where |
| 108 | size := 2*e.d |
| 109 | pos := mul_nonneg (by norm_num) h.pos.le |
| 110 | small := h.radius |
| 111 | read _ := Next.SectorChange.broad e.chip e.d |
| 112 | borel _ := (broad_smooth e.chip e.d).continuous.measurable |
| 113 | nonneg _ a := (broad_range e.chip a e.d).1 |
| 114 | top _ a := (broad_range e.chip a e.d).2 |
| 115 | off _ a hx := not_not.mp (fun ha => (broad_span e.chip h.pos a ha).not_gt hx) |
| 116 | |
| 117 | lemma leaf_match (h : Doors e) (z : VV (Bits G (held e A))) : |
| 118 | leafPrice e.chart (cover e A h) z = let y := tape (chartMap e A z) |
| 119 | doors e.chip e.d y * pay e.chart y := by |
| 120 | rw [leafPrice,Finset.prod_mul_distrib]; unfold doors pay |
| 121 | simp_rw [← Equiv.prod_comp (going e A), tape_reads]; rfl |
| 122 | |
| 123 | |
| 124 | |
| 125 | private lemma strip_price (h : Doors e) (hZ : LocalRatio e.chart) |
| 126 | (k : S.Choices) (V : Config G c) (hA : Next.SectorChange.Standing (A:=A) (F:=e.forest) e.book e.chart e.d k V) |
| 127 | (L : e.forest.Slice G → ℝ) (Y : GaussianScalar.Frozen (held e A) G) (z : VV (Bits G (held e A))) : |
| 128 | let p := shellMap e A Y; let a := tape (chartMap e A z); let u := returned A e.forest V p |
| 129 | (mouth e.chart).indicator (fun a => pay e.chart a • (raw e.book A k V (u a)*L (u a))) a = |
| 130 | coupon e.chart (cover e A h) e.book A k V L Y z := by |
| 131 | intro p a u |
| 132 | rw [coupon,leaf_match,included_eq]; dsimp only |
| 133 | change _ = doors e.chip e.d a * pay e.chart a * (raw _ _ _ _ (u a)*L (u a)) |
| 134 | by_cases he : a ∈ mouth e.chart |
| 135 | swap |
| 136 | · rw [indicator_of_notMem he] |
| 137 | rw [show doors e.chip e.d a=0 from not_not.mp (fun hh => he (protected_pay _ hZ h.pos h.radius hh).1),zero_mul,zero_mul] |
| 138 | rw [indicator_of_mem he]; by_cases hx : raw e.book A k V (u a)=0 |
| 139 | · rw [hx,zero_mul,smul_zero,mul_zero] |
| 140 | have hb := left_ne_zero_of_mul hx |
| 141 | have ht : Alive S (e.forest.drape (u a)) k := by |
| 142 | by_contra hp; unfold raw SectorNext.Vacuum.broad at hx; rw [dead hp,mul_zero,mul_zero] at hx; contradiction |
| 143 | have hg (i : Active A e.x e.forest) : ‖a i‖ ≤ e.d := by |
| 144 | obtain ⟨w,hw,hs,hj⟩ := hA _ hb ht i |
| 145 | unfold u returned thaw at hj; rw [freeze_regular] at hj |
| 146 | exact hZ.inject hs (he _ (mem_univ _)) (mul_right_cancel hj) ▸ hw |
| 147 | rw [show doors e.chip e.d a=1 by unfold doors; simp_rw [broad_one _ h.pos (hg _),Finset.prod_const_one],one_mul, smul_eq_mul] |
| 148 | |
| 149 | /-- All configurations. Uses only correct-flag chart receipts but proves the (wrong) flag |
| 150 | branches zero by the actual bill predicate. Apply with e.g. `committed` / `purchased`. -/ |
| 151 | theorem opened (h : Doors e) (hZ : LocalRatio e.chart) (hm : S.patch.Branches S.kernel G) |
| 152 | (k : S.Choices) (V : Config G c) (H : e.matched A V → Next.SectorChange.Standing (A:=A) (F:=e.forest) e.book e.chart e.d k V) : |
| 153 | Opened e.chart (cover e A h) e.book A k V := by |
| 154 | intro L hL |
| 155 | let u (x : e.forest.Slice G) := raw e.book A k V x * L x |
| 156 | have hw : Next.SectorChange.Standing (A:=A) (F:=e.forest) e.book e.chart e.d k V := by |
| 157 | intro a ha hp; apply H _ a ha hp; exact (e.book.actual _ _ _ _ ha).exactFlags |
| 158 | have hb (x) (hx : u x≠0) : e.book.bill A k (e.forest.drape x) V ≠ 0 ∧ Alive S (e.forest.drape x) k := by |
| 159 | unfold u raw SectorNext.Vacuum.broad at hx |
| 160 | refine ⟨left_ne_zero_of_mul (left_ne_zero_of_mul hx),?_⟩ |
| 161 | by_contra h; simp [dead h] at hx |
| 162 | obtain ⟨hg,C,hC⟩ := (raw_env e.book A k V (F:=e.forest) hm).mul hL |
| 163 | have ht := thaw_integral e.forest (chill A e.x e.forest) hZ (replica S.ratio V) u hg.stronglyMeasurable C hC |
| 164 | (fun x hx i => by obtain ⟨w,-,he,hx⟩ := hw _ (hb x hx).1 (hb x hx).2 i; exact ⟨_,⟨_,he,rfl⟩,hx⟩) |>.2.2.2 |
| 165 | change (∫ x, u x ∂_) = _; rw [ht, ← (shell_paid e A).integral_comp'] |
| 166 | refine integral_congr_ae (Eventually.of_forall fun Y => ?_) |
| 167 | dsimp only |
| 168 | rw [← (tape_volume (G:=G) (ι:=Active A e.x e.forest)).integral_comp', ← (chart_paid e A).integral_comp'] |
| 169 | exact integral_congr_ae (Eventually.of_forall fun z => strip_price e A h hZ k V hw L Y z) |
| 170 | |
| 171 | end YM.SectorTools.ActualScalar |