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.AnalyticNext.CONNECTED_ACTIVITY_JETS_E6.Geometry |
| 2 | import YM.Bid.Craft |
| 3 | import YM.Push.ABSOLUTE_SUMS.Path |
| 4 | |
| 5 | /-! |
| 6 | # Compulsory purchase on extendible stencils |
| 7 | |
| 8 | Energy E credit is per seed. Retain every mask and likelihood through |
| 9 | this (bigger) halo in all such products, also where some default |
| 10 | elsewhere has been dropped! Works *under the true tag likelihoods per |
| 11 | site/bond in probability units*. Do not pay those separately on every |
| 12 | path that visits a site. Uses the actual grant (no hypothesis of other |
| 13 | energy transfers on a product tree). |
| 14 | -/ |
| 15 | set_option autoImplicit false |
| 16 | noncomputable section |
| 17 | namespace YM.ConnectedActivityE6.Tags |
| 18 | open Filter Function Lattice RG Pressure Pressure.Stores Tree Wilson Finset MeasureTheory |
| 19 | open Push Push.AbsoluteSums Push.AbsoluteSums.Paths Push.AbsoluteSums.Footprint |
| 20 | open SectorMeasure Oriented Channel |
| 21 | open scoped Topology InnerProductSpace Matrix.Norms.Frobenius ContDiff BigOperators Classical |
| 22 | variable {G : Gauge} {c f : Side} {S : StepData c f} |
| 23 | |
| 24 | section probabilities |
| 25 | def siteMass (U : Config G f) (k : S.Choices) (x : Site c) := |
| 26 | (Fintype.card S.patch.FrameTag:ℝ) * S.patch.frameMass S.kernel (expandAt (S.ratio.embed x) U) (k.1 x) |
| 27 | |
| 28 | def pinMass (U : Config G f) (k : S.Choices) (i : Bond c) := |
| 29 | (Fintype.card S.patch.Points:ℝ) * S.patch.predictorMass S.kernel (S.connector U k.1 i) (k.2 i) |
| 30 | |
| 31 | lemma site_nn (U : Config G f) (k : S.Choices) (x : Site c) : 0 ≤ siteMass U k x := by |
| 32 | apply mul_nonneg (Nat.cast_nonneg _); unfold Patch.frameMass; split <;> positivity |
| 33 | |
| 34 | lemma pin_nn (U : Config G f) (k : S.Choices) (x : Bond c) : 0 ≤ pinMass U k x := by |
| 35 | apply mul_nonneg (Nat.cast_nonneg _); unfold Patch.predictorMass; split <;> first | positivity | exact S.patch.weight_nonneg _ |
| 36 | |
| 37 | lemma site_cap (U : Config G f) (k : S.Choices) (x : Site c) : siteMass U k x ≤ Fintype.card S.patch.FrameTag := by |
| 38 | refine mul_le_of_le_one_right (Nat.cast_nonneg _) ?_; unfold Patch.frameMass; split |
| 39 | · apply inv_le_one_of_one_le₀; exact_mod_cast Fintype.card_pos |
| 40 | split |
| 41 | next h => apply inv_le_one_of_one_le₀; exact_mod_cast Finset.card_pos.mpr ⟨_,h⟩ |
| 42 | next h => exact zero_le_one |
| 43 | |
| 44 | lemma pin_cap (U : Config G f) (k : S.Choices) (x : Bond c) : pinMass U k x ≤ Fintype.card S.patch.Points := by |
| 45 | refine mul_le_of_le_one_right (Nat.cast_nonneg _) ?_; unfold Patch.predictorMass; split |
| 46 | · apply inv_le_one_of_one_le₀; exact_mod_cast Fintype.card_pos |
| 47 | · rw [← S.patch.weight_sum]; exact single_le_sum (fun i _ => S.patch.weight_nonneg i) (mem_univ _) |
| 48 | |
| 49 | /-- All remaining k summations with UNIFORM AVERAGE (including cases |
| 50 | with no reference branching). -/ |
| 51 | lemma likelihood_all (U : Config G f) (k : S.Choices) : |
| 52 | S.likelihood U k = (Fintype.card S.Choices:ℝ)⁻¹ * ((∏ i, siteMass U k i) * ∏ b, pinMass U k b) := by |
| 53 | let A : ℝ := Fintype.card S.patch.FrameTag |
| 54 | let P : ℝ := Fintype.card S.patch.Points |
| 55 | have ha : 0 < A := by unfold A; exact_mod_cast Fintype.card_pos |
| 56 | have hp : 0 < P := by unfold P; exact_mod_cast Fintype.card_pos |
| 57 | have hf : (Fintype.card S.Choices:ℝ) = A^(Fintype.card (Site c)) * P^(Fintype.card (Bond c)) := by |
| 58 | unfold StepData.Choices A P StepData.BondChoice StepData.SitesChoice |
| 59 | simp [Bond] |
| 60 | rw [hf]; unfold StepData.likelihood siteMass pinMass |
| 61 | simp_rw [Finset.prod_mul_distrib, Finset.prod_const,card_univ] |
| 62 | change _ = _ * ( (A^_ * _) * (P^(Fintype.card (Bond c))*_)) |
| 63 | field_simp |
| 64 | |
| 65 | lemma turns_site {s : Signed} (x : Site c) (h : S.patch.Branches S.kernel G) (k : S.Choices) (U : Config G f) : |
| 66 | siteMass (pull s 0 U) (choice s k) x = siteMass U k (s.act x) := by |
| 67 | let m := choice s k |
| 68 | have hh : S.withinSites s 0 m.1 = k.1 := congr_arg Prod.fst ((S.withinChoice s 0).apply_symm_apply k) |
| 69 | have he : m.1 x = (choice s k).1 x := rfl |
| 70 | unfold siteMass |
| 71 | rw [← he,← hh,← affine0 s x,S.port_site, ← (S.ratio.root.map_zero)] |
| 72 | change _*S.patch.frameMass _ (expandAt _ (pull _ (S.ratio.embed _) U)) _ = _ |
| 73 | rw [expandAt_pull,S.port]; exact congr_arg _ (S.patch.frames_channel h s _ _).1 |
| 74 | end probabilities |
| 75 | |
| 76 | /-- Local hypotheses from factors kept together in a single |
| 77 | component, not testing fine realizability outside it. θ=1/4. -/ |
| 78 | structure Wide (A : Stores S) (d : ℕ) (U : Config G f) (k : S.Choices) (V : Config G c) (x W : ℝ) : Prop where |
| 79 | line (i : Site c) : i∈A.dome d → 0<siteMass U k i |
| 80 | s (p : Cell f) : ¬Disjoint (A.dome d) (startPos S p) → |
| 81 | ((p∈A.costs → fiery G x S.patch.L/4 ≤ toll U p) ∧ (p∉A.costs → toll U p ≤ fiery G x S.patch.L/2)) |
| 82 | n (b : Bond c) : ¬Disjoint (A.dome d) (pinPos b) → |
| 83 | ((b∈A.aisles → W*fiery G x S.patch.L ≤ wire (S.prediction U k) V b) ∧ |
| 84 | (b∉A.aisles → wire (S.prediction U k) V b ≤ 2*W*fiery G x S.patch.L)) |
| 85 | flags (i : Site c) : i∈A.dome d → (i∈A.flags ↔ i∈RG.flags (temp x) V) |
| 86 | |
| 87 | namespace Wide |
| 88 | variable {A : Stores S} {d : ℕ} {U : Config G f} {k : S.Choices} {V : Config G c} {x W : ℝ} |
| 89 | |
| 90 | lemma frame_active (h : Wide A d U k V x W) (i : Site c) (he : i∈A.dome d) : |
| 91 | 0<S.patch.frameMass S.kernel (expandAt (S.ratio.embed i) U) (k.1 i) := |
| 92 | pos_of_mul_pos_right (h.line i he) (Nat.cast_nonneg _) |
| 93 | |
| 94 | lemma shrink (h : Wide A d U k V x W) {d' : ℕ} (hd : d' ≤ d) : Wide A d' U k V x W := by |
| 95 | have he : A.dome d' ⊆ A.dome d := Lattice.Corona.halo_mono hd (Finset.Subset.refl _) |
| 96 | exact ⟨fun i hi => h.line i (he hi), fun p hh => h.s p fun hz => hh (hz.mono_left he), |
| 97 | fun p hh => h.n p fun hz => hh (hz.mono_left he), fun i hi => h.flags i (he hi)⟩ |
| 98 | |
| 99 | lemma plot (h : Wide A d U k V x W) (he : 5*radiusB x ≤ d) : Stores.Plot A U k V x W := by |
| 100 | have hv := h.shrink he |
| 101 | exact ⟨hv.s,hv.n,hv.flags,hv.frame_active⟩ |
| 102 | |
| 103 | lemma rotate (h : Wide A d U k V x W) (s : Signed) (he : S.patch.Branches S.kernel G) : |
| 104 | Wide (turnStore s A) d (pull s 0 U) (Oriented.choice s k) (pull s 0 V) x W := by |
| 105 | constructor |
| 106 | · intro i hi; rw [turns_site _ he]; apply h.line _ ((rotates_dome ..).mp hi) |
| 107 | · intro p hp |
| 108 | replace hp := Finset.not_disjoint_iff.mp hp |
| 109 | obtain ⟨y,hy,hv⟩ := hp |
| 110 | have hh : toll (pull s 0 U) p=toll U (Oriented.faces s f p) := |
| 111 | Face.send_price U p s 0 G.chord G.chord_inv fun k g => G.chord_conj g k |
| 112 | rw [hh,show p∈(turnStore s A).costs ↔ Oriented.faces s f p∈A.costs by simp [turnStore]] |
| 113 | exact h.s _ (Finset.not_disjoint_iff.mpr ⟨s.act y,(rotates_dome ..).mp hy,(site_face ..).mp hv⟩) |
| 114 | · intro b hb |
| 115 | replace hb := Finset.not_disjoint_iff.mp hb |
| 116 | obtain ⟨y,hy,hv⟩ := hb |
| 117 | rw [(carry _ he ..).2,wire_pulled] |
| 118 | rw [show b∈(turnStore s A).aisles ↔ (StepData.sendBonds s 0 b)∈A.aisles by simp [turnStore]] |
| 119 | exact h.n (edge s b) (Finset.not_disjoint_iff.mpr ⟨s.act y,(rotates_dome ..).mp hy,(endpoints s b y).mp hv⟩) |
| 120 | · intro i hi |
| 121 | have hs : StepData.sendSites s 0 i=s.act i := affine0 .. |
| 122 | have h₀ : i ∈ (turnStore s A).flags ↔ s.act i ∈ A.flags := by rw [← hs]; unfold turnStore; simp only [mem_map_equiv, Equiv.symm_symm] |
| 123 | rw [h₀, h.flags _ ((rotates_dome ..).mp hi),← Work.H03.flags_send s 0 (temp x) V] |
| 124 | have he : s.act i=affine s 0 i := (affine0 ..).symm |
| 125 | rw [he]; simp only [Finset.mem_image]; constructor |
| 126 | · rintro ⟨b,hb,h⟩; exact (StepData.sendSites s (0:Site c)).injective h ▸ hb |
| 127 | intro h; exact ⟨i,h,rfl⟩ |
| 128 | |
| 129 | lemma bought {T : Tube G S} {κ : ℝ} (h : Wide A d U k V x W) (hB : 5*radiusB x≤d) |
| 130 | (he : S.patch.Branches S.kernel G) (F : Forest S.ratio) (hf : Stores.SliceSet S F U) |
| 131 | (hp : PointCharge T x W κ) : κ*(fiery G x S.patch.L)^2*A.shares ≤ meanEnergy A T x U k V := by |
| 132 | rw [← av_const (κ*(fiery G x S.patch.L)^2*A.shares)] |
| 133 | refine av_mono fun s => ?_ |
| 134 | have hu := hp (turnForest s F) _ _ _ _ (turn_sliced s F U hf) ((h.rotate s he).plot hB) |
| 135 | rw [same_price] at hu; exact hu |
| 136 | |
| 137 | |
| 138 | end Wide |
| 139 | end YM.ConnectedActivityE6.Tags |