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.Probability.Distributions.Gaussian.Multivariate |
| 2 | import YM.Push.SECTOR_MEASURE.Profile |
| 3 | import YM.SectorNext.LARGE_FIELD_REMAINDERS.Clean |
| 4 | |
| 5 | |
| 6 | /-! |
| 7 | # Actual compulsory prerequisites through the packet region |
| 8 | |
| 9 | Deploy the literal `Chi.profiles` allocation. Keep all comparisons |
| 10 | of these typed seed and flag sites through the halo of interest, frame |
| 11 | mass factors (and connector masses also here) through same halo including |
| 12 | defaults further out than H1; H1 shortcut would need another (analytic-branch) |
| 13 | argument, we retain the factors rather than take that shortcut. Exact split |
| 14 | leaves profiles and actual masses elsewhere. Do not need positively selected |
| 15 | predictor tag data *eligibility* in regions where noise likelihood not used |
| 16 | but keep them anyway; these are the same t choices throughout. |
| 17 | |
| 18 | The incoming flag-coverage condition is also kept on the addresses below; |
| 19 | use with the same K list before/after restoring defaults. The K support |
| 20 | and actual fine nondefault incidence may force extra joining; not |
| 21 | attempting that enumeration. This is staying conditional on the K-list, |
| 22 | and deliberately NOT pulling part of a K address off to pay/prove it |
| 23 | using only the data of this packet. See `K...` adapter. |
| 24 | -/ |
| 25 | set_option autoImplicit false |
| 26 | noncomputable section |
| 27 | namespace YM.AnalyticBridge.AnnulusRatioInsertions.Dress |
| 28 | open Function Filter Lattice Wilson RG RG.Patch Precision Exterior Tree MeasureTheory Metric Matrix |
| 29 | |
| 30 | open Pressure Pressure.Tube Pressure.Stores Bid Push.SectorMeasure |
| 31 | open SectorNext.Remainder.Affine |
| 32 | open scoped Topology BigOperators Classical ContDiff Matrix.Norms.Frobenius Push.SectorMeasure |
| 33 | variable {G : Gauge} {c f : Side} {S : StepData c f} |
| 34 | |
| 35 | /-- Per-address factors, avoiding any claim of disjoint profiles. -/ |
| 36 | def address {ι : Type*} [DecidableEq ι] (q : Chi) (s : Finset ι) (r : ι → ℝ) (t : ℝ) (i : ι) := |
| 37 | if i∈s then 1-q.innerShare t (r i) else q.innerShare t (r i) |
| 38 | |
| 39 | lemma full {ι : Type*} [Fintype ι] [DecidableEq ι] (q : Chi) (s : Finset ι) (r : ι → ℝ) (t : ℝ) : |
| 40 | (∏ i, address q s r t i) = q.share s r t := by |
| 41 | unfold address |
| 42 | rw [Finset.prod_ite]; unfold Chi.share |
| 43 | have ht {p : Finset ι} : (Finset.univ.filter fun i => i∈p) = p := by ext; simp |
| 44 | rw [ht] |
| 45 | have hx : (Finset.univ.filter fun i => i∉s)=sᶜ := by ext; simp |
| 46 | rw [hx] |
| 47 | |
| 48 | lemma tiny {ι : Type*} [DecidableEq ι] (q : Chi) (s : Finset ι) (r : ι → ℝ) (t : ℝ) (i : ι) : |
| 49 | address q s r t i ∈ Set.Icc 0 1 := by |
| 50 | have hi : q.innerShare t (r i) ∈ Set.Icc (0:ℝ) 1 := q.range _ |
| 51 | unfold address; split |
| 52 | · rcases hi with ⟨h,t⟩; constructor <;> linarith |
| 53 | exact hi |
| 54 | |
| 55 | lemma live {ι : Type*} [DecidableEq ι] (q : Chi) (s : Finset ι) (r : ι → ℝ) (t : ℝ) (i : ι) |
| 56 | (ht : 0 < t) (he : 0 ≤ r i) (hh : address q s r t i ≠0) : |
| 57 | (i∈s → t < r i) ∧ (i∉s → r i <2*t) := by |
| 58 | constructor |
| 59 | · intro hi |
| 60 | rw [address,if_pos hi] at hh; exact q.exterior_gt _ _ he ht hh |
| 61 | intro hi |
| 62 | rw [address,if_neg hi] at hh; exact q.chosen_lt _ _ ht hh |
| 63 | |
| 64 | lemma address_meas {ι X : Type*} [DecidableEq ι] [MeasurableSpace X] (q : Chi) (s : Finset ι) |
| 65 | (r : X → ι → ℝ) (t : ℝ) (i : ι) (he : Measurable (fun x => r x i)) : Measurable (fun x => address q s (r x) t i) := by |
| 66 | have hm : Measurable (fun x => q.innerShare t (r x i)) := q.smooth.continuous.measurable.comp ((he.div_const t).pow_const 2) |
| 67 | unfold address; split |
| 68 | · exact measurable_const.sub hm |
| 69 | exact hm |
| 70 | |
| 71 | /-- Tag densities at actual U with actual shared t. -/ |
| 72 | def rooted (U : Config G f) (k : S.Choices) (x : Site c) := |
| 73 | S.patch.frameMass S.kernel (expandAt (S.ratio.embed x) U) (k.1 x) |
| 74 | |
| 75 | def forecast (U : Config G f) (k : S.Choices) (b : Bond c) := |
| 76 | S.patch.predictorMass S.kernel (S.connector U k.1 b) (k.2 b) |
| 77 | |
| 78 | lemma tag_range (U : Config G f) (k : S.Choices) (h : S.patch.Branches S.kernel G) : |
| 79 | (∀ i, rooted U k i ∈ Set.Icc (0:ℝ) 1) ∧ ∀ b, forecast U k b ∈ Set.Icc (0:ℝ) 1 := by |
| 80 | have he (Y : CoverConfig G) (i : S.patch.FrameTag) : 0 ≤ S.patch.frameMass S.kernel Y i := by |
| 81 | unfold Patch.frameMass; split; next _ => positivity |
| 82 | split <;> positivity |
| 83 | have hb (Y : S.patch.Connector G) (i : S.patch.Points) : 0 ≤ S.patch.predictorMass S.kernel Y i := by |
| 84 | unfold Patch.predictorMass; split; next _ => positivity |
| 85 | exact Patch.weight_nonneg _ _ |
| 86 | constructor |
| 87 | · intro i |
| 88 | unfold rooted |
| 89 | refine ⟨he _ _,?_⟩ |
| 90 | rw [← S.patch.frameMass_sum h (expandAt (S.ratio.embed i) U)] |
| 91 | exact Finset.single_le_sum (fun a _ => he (expandAt (S.ratio.embed i) U) a) (Finset.mem_univ (k.1 i)) |
| 92 | intro b |
| 93 | unfold forecast |
| 94 | refine ⟨hb _ _,?_⟩ |
| 95 | rw [← S.patch.predictorMass_sum (C:=S.kernel) (S.connector U k.1 b)] |
| 96 | exact Finset.single_le_sum (fun a _ => hb (S.connector U k.1 b) a) (Finset.mem_univ (k.2 b)) |
| 97 | |
| 98 | lemma tag_meas (k : S.Choices) (h : S.patch.Branches S.kernel G) : |
| 99 | (∀ i,Measurable (fun U : Config G f => rooted U k i)) ∧ |
| 100 | ∀ b, Measurable (fun U : Config G f => forecast U k b) := by |
| 101 | constructor |
| 102 | · intro i |
| 103 | unfold rooted; apply (S.patch.frameMass_meas _).comp |
| 104 | have ht : Continuous (fun U : Config G f => expandAt (S.ratio.embed i) U) := by unfold expandAt; fun_prop |
| 105 | exact ht.measurable |
| 106 | intro b |
| 107 | exact (S.patch.predictorMass_meas _).comp (S.connector_meas h k.1 b) |
| 108 | |
| 109 | /-- Keep output predicate as individual checks (in testing and any subsequent estimates). |
| 110 | Final use inside `Allocation.bill.profiles` implements all these. -/ |
| 111 | def signal (A : Stores S) (t : ℝ) (V : Config G c) (i : Site c) : ℝ := |
| 112 | if (i ∈ A.flags ↔ i ∈ RG.flags t V) then 1 else 0 |
| 113 | |
| 114 | |
| 115 | |
| 116 | lemma signal_one {A : Stores S} {t : ℝ} {V : Config G c} {i : Site c} (h : signal A t V i ≠0) : |
| 117 | i∈A.flags ↔ i∈RG.flags t V := by |
| 118 | unfold signal at h; split at h; assumption; exact (h rfl).elim |
| 119 | |
| 120 | variable (O A : Stores S) (x W : ℝ) (V : Config G c) (k : S.Choices) (U : Config G f) (q : Chi) |
| 121 | |
| 122 | /-- Core/extended compulsory decisions e.g. out to H300 (D≤200); |
| 123 | anchor test **incident** on every coarse noise bond and every physical |
| 124 | fine plaquette. Keep same tag denominators and tag alphabet as StepData |
| 125 | (uniform-reference conversion is separate). -/ |
| 126 | def qFaces (R : ℕ) : Finset (Cell f) := Finset.univ.filter fun i => ¬Disjoint (O.dome R) (startPos S i) |
| 127 | def qBonds (R : ℕ) : Finset (Bond c) := Finset.univ.filter fun i => ¬Disjoint (O.dome R) (pinPos i) |
| 128 | |
| 129 | def localSite (i : Site c) := signal A (temp x) V i * rooted U k i |
| 130 | def localNoise (i : Bond c) := address q A.aisles (wire (S.prediction U k) V) (W*fiery G x S.patch.L) i * forecast U k i |
| 131 | def localPlaque : Cell f → ℝ := address q A.costs (toll U) (fiery G x S.patch.L / 4) |
| 132 | |
| 133 | def multi (p : Support c) (b : Finset (Bond c)) (h : Finset (Cell f)) : ℝ := |
| 134 | ((∏ i∈p, localSite A x V k U i) * ∏ i∈b, localNoise A x W V k U q i) * |
| 135 | ∏ i∈h, localPlaque A x U q i |
| 136 | |
| 137 | def insist (R : ℕ) := multi A x W V k U q (O.dome R) (qBonds O R) (qFaces O R) |
| 138 | |
| 139 | |
| 140 | |
| 141 | |
| 142 | |
| 143 | private lemma rate_mul {a b : ℝ} (h : a∈Set.Icc 0 1) (ht : b∈Set.Icc 0 1) : a*b∈Set.Icc 0 1 := |
| 144 | ⟨mul_nonneg h.1 ht.1,(mul_le_mul h.2 ht.2 ht.1 zero_le_one).trans (by norm_num)⟩ |
| 145 | private lemma rate_join {α : Type*} (a : Finset α) (b : α→ℝ) (h : ∀ i,b i∈Set.Icc 0 1) : (∏ i∈a,b i)∈Set.Icc 0 1 := by |
| 146 | exact ⟨Finset.prod_nonneg (fun i _ => (h i).1), (Finset.prod_le_prod (fun i (_:i∈a) => (h i).1) (fun i _ => (h i).2)).trans (by simp)⟩ |
| 147 | |
| 148 | lemma multi_range (h : S.patch.Branches S.kernel G) (P : Support c) (B : Finset (Bond c)) (E : Finset (Cell f)) : |
| 149 | multi A x W V k U q P B E ∈ Set.Icc (0:ℝ) 1 := by |
| 150 | have hv := tag_range U k h |
| 151 | refine rate_mul (rate_mul (rate_join _ _ (fun i => rate_mul (show signal A _ V i ∈ Set.Icc _ _ from by |
| 152 | unfold signal; split <;> simp) (hv.1 i))) (rate_join _ _ (fun i => rate_mul (tiny ..) (hv.2 i)))) (rate_join E _ (fun i => tiny ..)) |
| 153 | |
| 154 | /-- Keep the shared profile through the D+5 halo. On its nonzero set |
| 155 | have all of the oriented sector prerequisites (use `turn_wide` at that |
| 156 | same k). No assumption on fields realizing other defaults. -/ |
| 157 | lemma insists {D R : ℕ} (hR : (D+5)*radiusB x ≤ R) |
| 158 | (hW : 0<W) (hf : 0 < fiery G x S.patch.L) (h : S.patch.Branches S.kernel G) |
| 159 | (he : insist O A x W V k U q R ≠ 0) : Wide O A D x W U k V := by |
| 160 | unfold insist multi at he; have ht := Finset.prod_ne_zero_iff.mp (right_ne_zero_of_mul he) |
| 161 | have hh := Finset.prod_ne_zero_iff.mp (right_ne_zero_of_mul (left_ne_zero_of_mul he)) |
| 162 | have hi := Finset.prod_ne_zero_iff.mp (left_ne_zero_of_mul (left_ne_zero_of_mul he)) |
| 163 | have hx : O.dome ((D+5)*radiusB x) ⊆ O.dome R := Corona.halo_mono hR (fun _ h => h) |
| 164 | constructor |
| 165 | · intro i hy |
| 166 | have hm : i∈qFaces O R := Finset.mem_filter.mpr ⟨Finset.mem_univ _, fun hu => hy (hu.mono_left hx)⟩ |
| 167 | obtain ⟨h1,h2⟩ := live q A.costs _ _ i (div_pos hf (by norm_num)) (G.chord_nonneg (faceValue U i)) (ht i hm) |
| 168 | exact ⟨fun he => (h1 he).le,fun he => by linarith [h2 he]⟩ |
| 169 | · intro i hy |
| 170 | have hm : i∈qBonds O R := Finset.mem_filter.mpr ⟨Finset.mem_univ _, fun hu => hy (hu.mono_left hx)⟩ |
| 171 | have hs := left_ne_zero_of_mul (hh i hm) |
| 172 | obtain ⟨h1,h2⟩ := live q A.aisles _ _ i (mul_pos hW hf) (show 0 ≤ wire (S.prediction U k) V i from G.chord_nonneg _) hs |
| 173 | exact ⟨fun hv => (h1 hv).le,fun hv => by rw [mul_assoc]; exact (h2 hv).le⟩ |
| 174 | · intro i hy |
| 175 | exact signal_one (left_ne_zero_of_mul (hi i (hx hy))) |
| 176 | intro i hy; exact (tag_range U k h).1 i |>.1.lt_of_ne' (right_ne_zero_of_mul (hi i (hx hy))) |
| 177 | |
| 178 | /-- Only promise Borel at fixed V,k. -/ |
| 179 | lemma multi_meas (h : S.patch.Branches S.kernel G) (P : Support c) (B : Finset (Bond c)) (E : Finset (Cell f)) : |
| 180 | Measurable (fun U : Config G f => multi A x W V k U q P B E) := by |
| 181 | have hv := tag_meas k h |
| 182 | have hI i : Measurable (fun U : Config G f => localSite A x V k U i) := measurable_const.mul (hv.1 i) |
| 183 | have hP i : Measurable (fun U : Config G f => toll U i) := by unfold toll faceValue; fun_prop |
| 184 | have hQ i : Measurable (fun U : Config G f => wire (S.prediction U k) V i) := by |
| 185 | unfold wire; have he := (measurable_pi_apply i).comp (S.prediction_meas h k) |
| 186 | exact G.continuous_chord.measurable.comp (measurable_const.mul he.inv) |
| 187 | have hJ i : Measurable (fun U : Config G f => localPlaque A x U q i) := address_meas _ _ _ _ i (hP i) |
| 188 | have hK i : Measurable (fun U : Config G f => localNoise A x W V k U q i) := |
| 189 | (address_meas q A.aisles (fun U : Config G f => wire (S.prediction U k) V) _ i (hQ i)).mul (hv.2 i) |
| 190 | exact ((Finset.measurable_fun_prod _ fun i _ => hI i).mul (Finset.measurable_fun_prod _ fun i _=> hK i)).mul |
| 191 | (Finset.measurable_fun_prod _ fun i _ => hJ i) |
| 192 | |
| 193 | end YM.AnalyticBridge.AnnulusRatioInsertions.Dress |