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.AnalyticBridge.GAUSSIAN_FIELD_ALIGNMENT.Gauges |
| 2 | import YM.AnalyticBridge.RESET_INCOME_PORT.Cohort |
| 3 | import YM.AnalyticBridge.RESET_INCOME_PORT.LogQuote |
| 4 | import YM.AnalyticBridge.RESET_INCOME_PORT.Sheen |
| 5 | import YM.AnalyticBridge.SECTOR_COVARIANCE_JETS.Sale |
| 6 | import YM.Further.GAUSSIAN_SCALAR_LEDGER.Hitting |
| 7 | import YM.Next.MAXWELL.Det |
| 8 | import YM.Next.ROTATIONS.Fold |
| 9 | import YM.Next.ROTATIONS.Mode |
| 10 | import YM.Progress.DIRECTED_RECIPE.Symmetry |
| 11 | import YM.SectorNext.LARGE_FIELD_REMAINDERS.Reprice |
| 12 | import YM.SectorTools.ACTUAL_SCALAR_LEDGER.Matrix |
| 13 | import YM.UVNext.COUPLING_RESET.Compare |
| 14 | |
| 15 | set_option warningAsError false |
| 16 | set_option autoImplicit false |
| 17 | set_option synthInstance.maxSize 1024 |
| 18 | |
| 19 | /-! |
| 20 | # True local value dependence of the paired anchor-window debit |
| 21 | |
| 22 | Compare LITERAL arrays at two Plates (x and path tube fixed, not necessarily fixed forest, |
| 23 | fields or stores). Common positions only, not asserting that the error or whole chargeOut |
| 24 | has that support. Beware that the remaining exponent/additive activities require several |
| 25 | other query neighborhoods and growth/absolute analysis. SectorChange's endpoint window here |
| 26 | is tree-independent before selecting Free: complete on the trunks too with identity to |
| 27 | run the local comparison using Covariance.Terrain's sharp lookup on this same prescription. |
| 28 | No bounds or rates should be spent at mismatched flag tables just from this equality, and |
| 29 | in particular this result is not about de-masking such fields. |
| 30 | -/ |
| 31 | noncomputable section |
| 32 | namespace YM.SectorTools.ActualScalar.Locations |
| 33 | open Function Filter Set MeasureTheory Matrix RG Wilson Lattice Pressure Pressure.Stores Bid Precision Tree Push.SectorMeasure |
| 34 | Next.SectorChange Further GaussianScalar AnalyticBridge.ResetIncome SectorNext.Vacuum AnalyticBridge Covariance.Terrain |
| 35 | open scoped Topology BigOperators Classical ContDiff Matrix.Norms.Frobenius |
| 36 | |
| 37 | private lemma powers {ι ρ : Type} [Fintype ι] [DecidableEq ι] [Fintype ρ] [DecidableEq ρ] (v : ι ↪ ρ) |
| 38 | (X : Wall ρ) (hX : ∀ i j, j ∉ range v → X (v i) j=0) (n : ℕ) : |
| 39 | (X^n).submatrix v v = (X.submatrix v v)^n := by |
| 40 | induction n with |
| 41 | | zero => rw [pow_zero,pow_zero,submatrix_one _ v.injective] |
| 42 | | succ n ih => |
| 43 | rw [pow_succ',pow_succ',←ih]; ext i j |
| 44 | rw [submatrix_apply,Matrix.mul_apply,Matrix.mul_apply,← Finset.sum_subset (s₁:=Finset.univ.image v) (Finset.subset_univ _) _, Finset.sum_image (g:=v) v.injective.injOn] |
| 45 | · rfl |
| 46 | intro j _ hj; rw [hX i _ (by simpa [range] using hj),zero_mul] |
| 47 | |
| 48 | private lemma bead_book {ι ρ : Type} [Fintype ι] [DecidableEq ι] [Fintype ρ] [DecidableEq ρ] (v : ι ↪ ρ) |
| 49 | (X : Wall ρ) (hX : ∀ i j, j ∉ range v → X (v i) j=0) (i : ι) (L : ℝ) : |
| 50 | Panel.priceLine (X.submatrix v v) L i = Panel.priceLine X L (v i) := by |
| 51 | unfold Panel.priceLine Panel.bead; congr 1; apply tsum_congr; intro n |
| 52 | have hl : Panel.stencil (X.submatrix v v) L = (Panel.stencil X L).submatrix v v := by simp [Panel.stencil,submatrix_sub,submatrix_one _ v.injective,submatrix_smul] |
| 53 | have hz (i j) (hj : j∉range v) : Panel.stencil X L (v i) j=0 := by |
| 54 | unfold Panel.stencil; rw [Matrix.sub_apply,Matrix.one_apply_ne (fun hh => hj ⟨_,hh⟩),Matrix.smul_apply,hX i j hj,smul_zero,sub_zero] |
| 55 | rw [hl, ← powers v _ hz]; rfl |
| 56 | |
| 57 | variable {G : Gauge} {c f : Side} {S : StepData c f} (e : Plate G S) (h : Doors e) |
| 58 | (A : Stores S) (t : S.Choices) (V : Config G c) |
| 59 | |
| 60 | def key : Key e.forest G ↪ Covariance.Atom G f := (Embedding.subtype (· ∉ e.forest.trunks)).prodMap (.refl _) |
| 61 | |
| 62 | def onto (hb : 120 ≤ radiusB e.x) (i : Key e.forest G) : ↥((frame e hb).eye i) ↪ ↥(unitWin S e.x (key e i)) where |
| 63 | toFun j := ⟨key e j.val, (eye_test e hb j.val i).mp j.property⟩ |
| 64 | inj' := fun _ _ hh => Subtype.ext ((key e).injective (congr_arg Subtype.val hh)) |
| 65 | |
| 66 | variable {e} |
| 67 | lemma trunk_zero (i j : Covariance.Atom G f) (hj : j.1∈e.forest.trunks) (hi : i≠j) : |
| 68 | scanA e.tube A e.forest t e.x V i j=0 := by |
| 69 | have h (k) : scanD e.tube A e.forest t e.x V k j=0 := if_neg (fun h : onStage A e.forest e.x j.1 => h.1 hj) |
| 70 | unfold scanA shard; rw [Matrix.add_apply,diagonal_apply_ne _ hi,Matrix.mul_apply]; simp [h] |
| 71 | |
| 72 | lemma off (hb i) (j : ↥(unitWin S e.x (key e i))) (hj : j ∉ range (onto e hb i)) : j.val.1∈e.forest.trunks := by |
| 73 | by_contra h; let k : Key e.forest G := (⟨j.val.1,h⟩,j.val.2) |
| 74 | exact hj ⟨⟨k,(eye_test ..).mpr j.property⟩,Subtype.ext rfl⟩ |
| 75 | |
| 76 | variable (Y : GaussianScalar.Frozen (held e A) G) |
| 77 | lemma scan_restrict : (page e h A t V).sigma Y = (scanA e.tube A e.forest t e.x V).submatrix (key e) (key e) := by |
| 78 | let Q := (page e h A t V).sigma Y |
| 79 | let X := scanA e.tube A e.forest t e.x V |
| 80 | let C := e.Gram A V t; let L := GaussianFieldAlignment.live A e.forest e.x (G:=G) (S:=S) |
| 81 | have he : Q = GaussianFieldAlignment.fill L C := sigma_fill .. |
| 82 | let u := splitKey e A |
| 83 | let ht := Completion.sorted A e.forest (x:=e.x) (G:=G) |
| 84 | let v (j : Hold G (held e A)) : Completion.vacant A e.forest e.x G := ⟨(j.1.val.val,j.2), fun ⟨i,hi⟩ => ?missed⟩ |
| 85 | have hp (j : Hold G (held e A)) : key e (u (Sum.inr j)) = ht (Sum.inr (v j)) := rfl |
| 86 | have hq i : key e (u (Sum.inl i)) = ht (Sum.inl i) := rfl |
| 87 | have hs := GaussianFieldAlignment.fill_read L C u (live_eq e A) |
| 88 | have hZ : X.submatrix ht ht = Completion.wide C 1 := backA .. |
| 89 | ext i j |
| 90 | obtain ⟨i,rfl⟩ := u.surjective i; obtain ⟨j,rfl⟩ := u.surjective j |
| 91 | rw [show (page e h A t V).sigma Y=Q from rfl, he, show GaussianFieldAlignment.fill L C (u i) (u j)=_ from congr_fun (congr_fun hs i) j] |
| 92 | cases i <;> cases j <;> simp only [submatrix_apply,hq,hp] |
| 93 | next i j => exact (congr_fun (congr_fun hZ (.inl i)) (.inl j)).symm |
| 94 | next i j => exact (congr_fun (congr_fun hZ (.inl i)) (.inr (v j))).symm |
| 95 | next i j => exact (congr_fun (congr_fun hZ (.inr (v i))) (.inl j)).symm |
| 96 | next i j => |
| 97 | rw [show scanA _ _ _ _ _ _ _ _ =_ from congr_fun (congr_fun hZ (.inr (v i))) (.inr (v j))] |
| 98 | by_cases hv : i=j |
| 99 | · subst i; simp [Completion.wide] |
| 100 | have hh : v i ≠ v j := fun h => hv (Prod.ext (Subtype.ext (Subtype.ext (congr_arg Prod.fst (congr_arg Subtype.val h)))) (congr_arg (fun k => (Subtype.val (α:=Bond f × G.ColorIndex) k).2) h)) |
| 101 | simp [Completion.wide,hv,hh] |
| 102 | case missed => |
| 103 | have hx : j.1.val = i.1.val := Subtype.ext (congr_arg Prod.fst hi) |
| 104 | exact i.1.property (hx ▸ ((held_iff e A j.1.val).mp j.1.property)) |
| 105 | |
| 106 | variable (hb : 120 ≤ radiusB e.x) (i : Key e.forest G) (L : ℝ) |
| 107 | lemma self (x : ℝ) (hx : 120 ≤ radiusB x) (p : Covariance.Atom G f) : p ∈ unitWin S x p := by |
| 108 | intro y hy z hz |
| 109 | let o := Covariance.Terrain.home S p |
| 110 | have h1 : separation y o ≤ 1 := (separation_comm ..).trans_le (meetings (S:=S) _ hy) |
| 111 | have h2 : separation o z ≤ 1 := meetings (S:=S) _ hz |
| 112 | apply (separation_triangle y o z).trans; omega |
| 113 | |
| 114 | def linePay (T : Tube G S) (A : Stores S) (F : Forest S.ratio) (t : S.Choices) (V : Config G c) (x : ℝ) |
| 115 | (hx : 120 ≤ radiusB x) (p : Covariance.Atom G f) (L : ℝ) := |
| 116 | Panel.priceLine (Schur.principal (scanA T A F t x V) (unitWin S x p)) L ⟨p,self x hx p⟩ |
| 117 | |
| 118 | lemma local_scan : let u := page e h A t V; let b := frame e hb |
| 119 | b.localLine (u.sigma Y) L i = linePay e.tube A e.forest t V e.x hb (key e i) L := by |
| 120 | intro u b; let W := Schur.principal (scanA e.tube A e.forest t e.x V) (unitWin S e.x (key e i)) |
| 121 | have he : b.glass (u.sigma Y) i = W.submatrix (onto e hb i) (onto e hb i) := by unfold u Lens.glass; rw [scan_restrict]; rfl |
| 122 | rw [Lens.localLine,he] |
| 123 | have hx (p j) (hj : j ∉ range (onto e hb i)) : W (onto e hb i p) j=0 := trunk_zero A t V _ _ (off _ _ j hj) |
| 124 | (fun hh => hj ⟨p,Subtype.ext hh⟩) |
| 125 | exact bead_book _ W hx (b.center i) _ |
| 126 | |
| 127 | section compare |
| 128 | variable (T : Tube G S) (A' : Stores S) (F F' : Forest S.ratio) (t' : S.Choices) (V' : Config G c) (x : ℝ) |
| 129 | (hx : 120 ≤ radiusB x) (p : Covariance.Atom G f) |
| 130 | (hs : S.patch.Branches S.kernel G) (H : Teams S (Covariance.Terrain.home S p) (peekR S.patch x) (peekD S.patch x) F F' A A' t t' V V') |
| 131 | include hs H |
| 132 | lemma line_zone : linePay T A F t V x hx p L = linePay T A' F' t' V' x hx p L := by |
| 133 | unfold linePay; congr 1; ext k m |
| 134 | have hi := aboutWin k.property |
| 135 | exact seenA T k.val m.val hs (H.zone (k:=lengthA S.patch x) (s:=roundA S.patch x) (by unfold peekR; omega) |
| 136 | (by unfold peekD; omega)) |
| 137 | |
| 138 | lemma pair_zone : |
| 139 | linePay T A F t V x hx p L-linePay T noHole F t 1 x hx p L = |
| 140 | linePay T A' F' t' V' x hx p L-linePay T noHole F' t' 1 x hx p L := by |
| 141 | apply congr_arg₂ (· - ·) |
| 142 | · exact line_zone _ _ _ _ _ _ _ _ _ _ _ _ _ hs H |
| 143 | have H' : Teams S (Covariance.Terrain.home S p) (peekR S.patch x) (peekD S.patch x) F F' noHole noHole t t' (1:Config G c) 1 := |
| 144 | ⟨fun _ _ => rfl,H.tree,fun _ _ => Iff.rfl,fun _ _ => Iff.rfl,fun _ _ => Iff.rfl,H.branch,H.point⟩ |
| 145 | exact line_zone _ _ _ _ _ _ _ _ _ _ _ _ _ hs H' |
| 146 | |
| 147 | omit hs H in |
| 148 | theorem nearby_zone |
| 149 | {e' : Plate G S} (h' : Doors e') (i' : Key e'.forest G) |
| 150 | (Y' : GaussianScalar.Frozen (held e' A') G) {P : Teller G} (hT : P.Funds S T) |
| 151 | (hS : Bid.Larger (G:=G) S) (ht : e.tube=T) (ht' : e'.tube=T) |
| 152 | (hb : 120 ≤ radiusB e.x) (hb' : 120 ≤ radiusB e'.x) (hp : e.x=x) (hp' : e'.x=x) |
| 153 | (hi : key e i=p) (hi' : key e' i'=p) |
| 154 | (HH : Teams S (Covariance.Terrain.home S p) (peekR S.patch x) (peekD S.patch x) e.forest e'.forest A A' t t' V V') |
| 155 | (v : Expense) : |
| 156 | (page e h A t V).nearby v (frame e hb) e.Flat Y i = |
| 157 | (page e' h' A' t' V').nearby v (frame e' hb') e'.Flat Y' i' := by |
| 158 | have hx : 120 ≤ radiusB x := hp ▸ hb |
| 159 | have hcost (e : Plate G S) (h : Doors e) (ht : e.tube=T) (A t V) (hb : 120 ≤ radiusB e.x) (hp : e.x=x) |
| 160 | i (hi : key e i=p) Y : |
| 161 | (page e h A t V).nearby v (frame e hb) e.Flat Y i = -(linePay T A e.forest t V x hx p v.high - linePay T noHole e.forest t 1 x hx p v.high)/2 := by |
| 162 | have hv : (page e h noHole t 1).sigma 1=e.Flat := by |
| 163 | have hi := canonical e h t (ht ▸ hT) hS |>.2.2 |
| 164 | rw [hi,sigma_eq,← Native.ground_gram e.tube e.forest t e.x hS.1]; ext i j |
| 165 | let x (i : Key e.forest G) : Bits G (held e noHole) := (⟨i.1, clear _ _⟩,i.2) |
| 166 | exact congr_fun (congr_fun (sortBits _ _ 1) (.inl (x i))) (.inl (x j)) |
| 167 | unfold Fiber.nearby |
| 168 | rw [← hv, local_scan _ _ _ _ Y,local_scan _ _ _ _ (1:_),hi] |
| 169 | rw [ht]; cases hp; rfl |
| 170 | rw [hcost _ _ ht _ _ _ hb hp i hi Y,hcost _ _ ht' _ _ _ hb' hp' i' hi' Y', pair_zone _ _ _ _ _ _ _ _ _ _ _ _ _ hS.1 HH] |
| 171 | end compare |
| 172 | |
| 173 | open RG.Supply Pressure.Testing |
| 174 | variable {C : Sheet G} {D : Rolls C} {Θ : Protection D} {W : Delays Θ} {Y : Bar W} {I : Wait Y} |
| 175 | {Z : ChartRatio G} {K : MapPrices} {P : PostCost D} (B : Input.Directed G I Z K P) |
| 176 | {r : GaussianFieldAlignment.Tickets} {ε g a E : ℕ → ℕ → ℝ} {k : ℕ → ℕ → ℕ} {b : ℕ → ℕ → Covariance.Sale.Tab} |
| 177 | |
| 178 | |
| 179 | end YM.SectorTools.ActualScalar.Locations |