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.Next.MULTISOURCE.Tariff |
| 2 | |
| 3 | /-! |
| 4 | # Reference sizes for mixed and birth ports |
| 5 | -/ |
| 6 | set_option autoImplicit false |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace YM.Multi.Single |
| 10 | |
| 11 | open RG Wilson Lattice Function Filter Finset Source Labels AxisShift Couples MeasureTheory Maquette Work |
| 12 | open scoped Topology Matrix.Norms.Frobenius BigOperators Classical |
| 13 | variable {G : Gauge} {C : Family G} {d N p j : ℕ} (H : C.Makes) |
| 14 | include H |
| 15 | |
| 16 | lemma source_home (d : ℕ) (o : Site (C.side j p)) : o∈ (C.localSection d).footprint o := |
| 17 | mem_image.mpr ⟨0,(H.sections d).anchored,by simp⟩ |
| 18 | |
| 19 | lemma cache_full (o : Site (C.side N p)) (hx : C.ref d ≤ N) (v : C.label d) (U : Config G (C.side N p)) : |
| 20 | (cache C v o).full U=(C.S.a N:ℂ)^d*C.O N p v o U := by |
| 21 | let X := C.localSection d |
| 22 | let F := C.labels.level d |
| 23 | let f := C.factory d N p |
| 24 | let P := C.path.levels.budget N |
| 25 | let c := (coeff C N p N v).x |
| 26 | have he : f.terminal.symm v=c := ((H.calibrated d N p hx).bare_coord _).symm |
| 27 | change c 0 + X.places (F.scaled P.threshold⁻¹ (F.core c)) o U= |
| 28 | (C.S.a N:ℂ)^d*( ((C.S.a N:ℂ)^d)⁻¹ • (X.places (F.scaled P.threshold⁻¹ (f.terminal.symm v)) o U)) |
| 29 | let g := F.scaled P.threshold⁻¹ |
| 30 | have h1 : c=c 0 • F.e0 + F.core c := by |
| 31 | funext i; change c i=c 0 * _ + Function.update c 0 0 i |
| 32 | by_cases h : i=0 <;> simp [h,Frame.e0] |
| 33 | have hf : X.places (g c) o U=c 0+X.places (g (F.core c)) o U := by |
| 34 | nth_rw 1 [h1]; rw [map_add, map_smul, F.scaled_unit,SectionData.places,X.eval_linear.map_add] |
| 35 | simp_rw [X.eval_linear.map_smul] |
| 36 | change c 0 * X.evaluate _ _ + _= _ |
| 37 | rw [(H.sections d).unit]; change c 0*1+_= _; rw [mul_one]; rfl |
| 38 | change c 0+X.places (g (F.core c)) o U=(C.S.a N:ℂ)^d*(((C.S.a N:ℂ)^d)⁻¹*_) |
| 39 | rw [he,← hf,mul_inv_cancel_left₀] |
| 40 | exact pow_ne_zero _ (Complex.ofReal_ne_zero.mpr (C.S.a_pos _).ne') |
| 41 | |
| 42 | lemma cache_weight (o : Site (C.side N p)) (v : C.label d) : |
| 43 | Weight (C.path.rep N p N).p (cache C v o).siteSet ((cache C v o).tail (C.path.rep N p N)) := |
| 44 | (cache C v o).tail_weight _ ((C.localSection d).placed_local o _) ((C.localSection d).continuous_places _ o).measurable |
| 45 | ((C.localSection d).placed_invariant (H.sections d) o _) |
| 46 | |
| 47 | lemma verify_cache (v : C.label d) (o : Site (C.side N p)) (hx : C.ref d ≤ N) |
| 48 | (he : room (C.localSection d) ≤ C.path.levels.clock.coverSize N) : |
| 49 | (cache C v o).Check (C.path.rep N p N) o (C.localSection d).stencil.card (ankle C N p N v) (tariff C N p N v) := by |
| 50 | let P := C.path.rep N p N; let c := C.path.levels; let S := C.localSection d |
| 51 | let F := C.labels.level d; let p' := c.budget N |
| 52 | let x := (coeff C N p N v).x |
| 53 | obtain ⟨hA,hs,ht⟩ := flows C v N o he |
| 54 | have hy : P.p=p' := (H.wilson.represents _ _ _ le_rfl).vac |
| 55 | let r := F.coeffSize x; let g := F.coeffSize (F.core x) |
| 56 | have hr : 0≤r := G08.size_nonneg .. |
| 57 | have hg : 0≤g := G08.size_nonneg .. |
| 58 | have hr' : g ≤ r := G08.size_core .. |
| 59 | let u := (c.params N).columns |
| 60 | have hu : 1 ≤ u := (c.params N).columns_ge |
| 61 | have hb : 1 ≤ stipend C N := stipend_hi C N |
| 62 | change burn p' _ _ ≤ _ at hs |
| 63 | change 2*(stipend C N*r*u)≤ _ at hA |
| 64 | let V := cache C v o |
| 65 | have hu' := zero_le_one.trans hu |
| 66 | have he : 0≤stipend C N*r*u := by positivity |
| 67 | have hl : stipend C N*r*u ≤ tariff C N p N v := (by linarith) |
| 68 | have hK := G08.size_core F x |
| 69 | have hh : 0 ≤ upper S := zero_le_one.trans (purposes S 0).1 |
| 70 | have hi : 0 ≤ excess C d N := zero_le_one.trans (excess_one C d N) |
| 71 | have hj : 0 ≤ ankle C N p N v := by change 0≤upper S * excess C d N*r; positivity |
| 72 | refine ⟨source_home H d o, Finset.card_image_le,?_, ?_,⟨hj,?_⟩, cache_weight H o v,?_⟩ |
| 73 | · apply le_trans (show ‖x 0‖≤ r from Finset.single_le_sum (f:=fun i => ‖x i‖) |
| 74 | (fun i _ => norm_nonneg _) (mem_univ 0)) |
| 75 | exact le_trans (le_trans (le_mul_of_one_le_left hr hb) |
| 76 | (le_mul_of_one_le_right (mul_nonneg (zero_le_one.trans hb) hr) hu)) hl |
| 77 | · change Banked P.p _ _ (masked P.p.threshold (S.footprint o) V.seen) _ |
| 78 | rw [hy] |
| 79 | have hp (i : F.Index) := H.priced d N p hx o i |
| 80 | refine (saves S o p' u 2 (F.core x) (source_home H d o) (by positivity) hp).enlarge ?_ |
| 81 | change _*u*g ≤ _ |
| 82 | rw [mul_right_comm _ u g] |
| 83 | apply le_trans _ hl |
| 84 | gcongr |
| 85 | · intro i |
| 86 | have hI : ‖V.seen i‖ ≤ ankle C N p N v := |
| 87 | (maximum S _ (potential_hat c N).1 p' (potential_hat c N).2 o (F.core x) i).trans |
| 88 | (mul_le_mul_of_nonneg_left hr' (mul_nonneg hh hi)) |
| 89 | change ‖V.full i - V.cheek P i‖ ≤ _ |
| 90 | by_cases h : Healthy P.p.threshold V.siteSet i |
| 91 | · simp only [Vessel.cheek,Vessel.full, masked_eq _ _ _ _ h,sub_self,norm_zero]; exact hj |
| 92 | simpa only [Vessel.cheek,Vessel.full, masked_ne _ _ _ _ h,add_zero,add_sub_cancel_left] using hI |
| 93 | change liftFee _ * (burn P.p _ _ * _) ≤ _ |
| 94 | rw [hy]; apply le_trans _ ht |
| 95 | exact mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_right hs hj) |
| 96 | (lift_pos _).le |
| 97 | |
| 98 | lemma origin_price (v : C.label d) (hx : C.ref d ≤ j) (hk : j≤N) |
| 99 | (he : room (C.localSection d) ≤ C.path.levels.clock.coverSize j) (p : ℕ) : |
| 100 | Credit (C.path.rep N p j).p 0 (money C.path.levels j) {0} (BranchOne.center |
| 101 | (coeff C N p j v) (C.localSection d) 0 (C.path.rep N p j)) (tariff C N p j v) := by |
| 102 | let F := C.labels.level d; let f := C.localSection d; let P := C.path.rep N p j; let c := coeff C N p j v; let r := C.path.levels |
| 103 | obtain ⟨hg,hs,-⟩ := flows C v N (0 : Site (C.side j p)) he |
| 104 | have hp : P.p=r.budget j := (H.wilson.represents _ _ _ hk).vac |
| 105 | let a := F.coeffSize c.x; let b := F.coeffSize (F.core c.x) |
| 106 | let u := (r.params j).columns |
| 107 | have ha : 0≤a := G08.size_nonneg .. |
| 108 | have hb : 0≤b := G08.size_nonneg .. |
| 109 | have hh : b ≤ a := G08.size_core .. |
| 110 | let w := stipend C j |
| 111 | have hf : 1≤w := stipend_hi .. |
| 112 | change 2*(w*a*u) ≤ tariff .. at hg |
| 113 | have hu : 1≤u := (r.params j).columns_ge |
| 114 | have hu' := zero_le_one.trans hu |
| 115 | have he : 0≤w*a*u := by positivity |
| 116 | have hl := H.calibrated d N p (hx.trans hk) |
| 117 | have hw : u*b ≤ w*a*u := calc |
| 118 | _ ≤ u*a := by gcongr |
| 119 | _ ≤ w*a*u := by rw [mul_comm u]; gcongr; exact le_mul_of_one_le_left ha hf |
| 120 | refine BranchOne.costs _ _ _ C.params (hl.format _ hx hk _) (hh:=hl.cap _ hx hk _) _ (w*a*u) ?_ ?_ ?_ ?_ |
| 121 | · apply le_trans (show ‖c.x 0‖ ≤ a from Finset.single_le_sum (f:=fun i => ‖c.x i‖) |
| 122 | (fun i _ => norm_nonneg _) (mem_univ 0)) |
| 123 | exact (le_trans (le_mul_of_one_le_left ha hf) (le_mul_of_one_le_right (mul_nonneg (zero_le_one.trans hf) ha) hu)).trans (by linarith) |
| 124 | · change Banked P.p _ _ (masked P.p.threshold _ (f.places (F.scaled P.p.threshold⁻¹ (F.core c.x)) 0)) _ |
| 125 | rw [hp] |
| 126 | obtain hz := saves f 0 (r.budget j) u 0 (F.core c.x) (source_home H d (p:=p) (j:=j) 0) le_rfl (H.priced d j p hx 0) |
| 127 | apply hz.enlarge |
| 128 | change burn _ 0 _ *u*b ≤ _ |
| 129 | rw [mul_right_comm _ u b] |
| 130 | apply mul_le_mul_of_nonneg_right _ hu'; apply mul_le_mul _ hh hb (by linarith : 0≤w) |
| 131 | apply le_trans _ hs; apply Real.exp_monotone |
| 132 | gcongr; try norm_num |
| 133 | · change u*b+_ ≤ _ |
| 134 | linarith |
| 135 | change u*b ≤ _ |
| 136 | linarith |
| 137 | end YM.Multi.Single |