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.Analysis.Normed.Group.Tannery |
| 2 | import YM.Push.ABSOLUTE_SUMS.FiniteLog |
| 3 | |
| 4 | |
| 5 | /-! |
| 6 | # Exact real log identity under the absolute bounds |
| 7 | |
| 8 | Downstream application of the combinatorial package. For a hard-core |
| 9 | gas inc. repeated-index incompatibility, FULL real amplitudes and |
| 10 | complete addresses. Can restrict to labels compatible with a given |
| 11 | forced list for applying this. All coefficient sums over occurrences, |
| 12 | absolutely convergent at this volume with uniform per-root control as |
| 13 | above. Shows exactly the identity discussed at for unmarked |
| 14 | real weights with the appropriate prices; does not construct the |
| 15 | weights or assume applicability of these prices to any actual proposal |
| 16 | for the RG step. No claim here about complex/analytic branches (bounds |
| 17 | can be used separately). |
| 18 | -/ |
| 19 | set_option autoImplicit false |
| 20 | noncomputable section |
| 21 | namespace YM.Push.AbsoluteSums.Gas |
| 22 | open Function Filter Graph Ursell Coef Trees RG Finset Lattice |
| 23 | open scoped BigOperators Classical Topology |
| 24 | variable {ι : Type*} (R : ι → ι → Prop) (w : ι → ℝ) |
| 25 | |
| 26 | lemma logRow_open [Fintype ι] (n : ℕ) : logRow R w n = ∑ z : Tuple ι n, term R w ⟨n,z⟩ := by |
| 27 | unfold logRow Coef.linked term; rw [sum_div] |
| 28 | |
| 29 | lemma finite_log [Fintype ι] (hr : Hard R) {n : Side} (X : ι → Support n) (B : ℕ) |
| 30 | (ht : Tests R X) (hX : ∀ i,(X i).Nonempty) {a γ δ q : ℝ} (ha : 0 ≤ a) |
| 31 | (h : Ready X B (fun i => ‖w i‖) a γ δ q) : Real.exp (logSum R w) = total R w := by |
| 32 | have he : Summable (term R w) := (absolute R w X B ht hX ha h).2.1.of_norm |
| 33 | have hz : logSum R w= ∑' i, logRow R w i := by |
| 34 | unfold logSum; rw [he.tsum_sigma]; apply tsum_congr; intro i |
| 35 | rw [logRow_open, tsum_fintype] |
| 36 | rw [hz,total,tsum_fintype (value R w)] |
| 37 | let C : ℝ := (n.val^4:ℕ)*γ |
| 38 | have hh := h.1 |
| 39 | refine exact_polynomial R w hr (show 0≤C by unfold C; positivity) (ready_pos X B h) h.2.2.2.1 ?_ |
| 40 | intro i; rw [logRow_open] |
| 41 | exact (norm_sum_le ..).trans (budget_sum (absolute_at R w X B ht hX ha h i) univ) |
| 42 | |
| 43 | -- restricting labels |
| 44 | abbrev chosenRel (D : Finset ι) := fun i j : ↥D => R i.val j.val |
| 45 | abbrev chosenW (D : Finset ι) := fun i : ↥D => w i.val |
| 46 | |
| 47 | private def liftIndex (D : Finset ι) (i : Clusters ↥D) : Clusters ι := ⟨i.1,fun j => (i.2 j).val⟩ |
| 48 | private def boundTo (D : Finset ι) (i : Clusters ι) : ℝ := if ∀ j, i.2 j∈D then term R w i else 0 |
| 49 | |
| 50 | private lemma actual (D : Finset ι) : ∑' i, boundTo R w D i = logSum (chosenRel R D) (chosenW w D) := by |
| 51 | unfold logSum |
| 52 | have he : Injective (liftIndex D) := by |
| 53 | rintro ⟨s,p⟩ ⟨t,q⟩ h |
| 54 | have hs : s=t := congr_arg Sigma.fst h; subst t |
| 55 | have hi : (fun i => (p i).val) = (fun i => (q i).val) := (Sigma.mk.inj h).2 |> eq_of_heq |
| 56 | have hp : p=q := funext fun i => Subtype.ext (congr_fun hi i) |
| 57 | subst q; rfl |
| 58 | have hr : Function.support (boundTo R w D) ⊆ Set.range (liftIndex D) := by |
| 59 | rintro ⟨s,p⟩ hi |
| 60 | have hi : ∀ j, p j∈D := by |
| 61 | by_contra hn |
| 62 | exact hi (if_neg hn) |
| 63 | exact ⟨⟨s,fun i => ⟨p i,hi i⟩⟩,rfl⟩ |
| 64 | rw [← he.tsum_eq hr]; apply tsum_congr; rintro ⟨s,p⟩ |
| 65 | unfold boundTo liftIndex; dsimp only; rw [if_pos (fun j => (p j).property)]; unfold term coefficient; rfl |
| 66 | |
| 67 | private def pickedFrom (D : Finset ι) (s : Finset ι) : ℝ := if s ⊆ D then value R w s else 0 |
| 68 | |
| 69 | private lemma literal (D : Finset ι) : ∑' i, pickedFrom R w D i = total (chosenRel R D) (chosenW w D) := by |
| 70 | let f (i : Finset ↥D) : Finset ι := i.image (fun j => j.val) |
| 71 | have hf : Injective f := Finset.image_injective Subtype.val_injective |
| 72 | have hg : Function.support (pickedFrom R w D) ⊆ Set.range f := by |
| 73 | intro i hi |
| 74 | have he : i ⊆ D := by by_contra hh; exact hi (if_neg hh) |
| 75 | let s : Finset ↥D := univ.filter (fun j => j.val∈i) |
| 76 | refine ⟨s,?_⟩; ext j; rw [show f s=_ from rfl,mem_image]; constructor |
| 77 | · rintro ⟨a,ha,rfl⟩; exact (mem_filter.mp ha).2 |
| 78 | intro h; exact ⟨⟨j,he h⟩, mem_filter.mpr ⟨mem_univ _,h⟩,rfl⟩ |
| 79 | have he (s : Finset ↥D) : pickedFrom R w D (f s) = value (chosenRel R D) (chosenW w D) s := by |
| 80 | have hs : f s⊆ D := fun i hi => by obtain ⟨j,hj,rfl⟩ := mem_image.mp hi; exact j.property |
| 81 | have he : separated (chosenRel R D) s ↔ separated R (f s) := by |
| 82 | constructor |
| 83 | · intro h i hi j hj hk |
| 84 | obtain ⟨i,hi',rfl⟩ := mem_image.mp hi |
| 85 | obtain ⟨j,hj',rfl⟩ := mem_image.mp hj |
| 86 | exact h _ hi' _ hj' (fun hz => hk (congr_arg Subtype.val hz)) |
| 87 | intro h i hi j hj hk |
| 88 | exact h _ (mem_image_of_mem _ hi) _ (mem_image_of_mem _ hj) (fun h => hk (Subtype.ext h)) |
| 89 | unfold pickedFrom value; rw [if_pos hs] |
| 90 | by_cases hh : separated (chosenRel R D) s |
| 91 | · rw [if_pos hh,if_pos (he.mp hh)] |
| 92 | exact Finset.prod_image Subtype.val_injective.injOn |
| 93 | rw [if_neg hh,if_neg fun h => hh (he.mpr h)] |
| 94 | unfold total; rw [← hf.tsum_eq hg]; exact tsum_congr he |
| 95 | |
| 96 | lemma actual_values {n : Side} (X : ι → Support n) (B : ℕ) (hX : ∀ i,(X i).Nonempty) |
| 97 | {a γ δ q : ℝ} (ha : 0 ≤ a) (h : Ready X B (fun i => ‖w i‖) a γ δ q) : |
| 98 | SumBudget (fun s => ‖value R w s‖) (Real.exp ((n.val^4:ℕ)*γ)) := by |
| 99 | let f (i : ι) := ‖w i‖ |
| 100 | have he := Product.everyone_ne X B (show ∀ i,0 ≤ f i from fun _ => norm_nonneg _) |
| 101 | (fun i _ => hX i) h.2.2.2.2.2 |
| 102 | have hb : SumBudget f ((n.val^4:ℕ)*γ) := budget_mono he (fun _ => norm_nonneg _) (fun i => |
| 103 | le_mul_of_one_le_right (norm_nonneg _) (Real.one_le_exp (mul_nonneg (add_nonneg ha h.2.1.le) (by positivity)))) |
| 104 | apply budget_mono (Product.set_products hb) (fun _ => norm_nonneg _) |
| 105 | intro i; unfold value; split |
| 106 | next hi => rw [norm_prod] |
| 107 | next hi => rw [norm_zero]; exact prod_nonneg fun i _ => norm_nonneg _ |
| 108 | |
| 109 | /-- Calculation of the *actual* series and sign on hard overlap graphs. |
| 110 | A sufficient hit threshold; no convergence assumption on either series. |
| 111 | R can also encode a previous tested stencil (so long as edges are still |
| 112 | payable by overlaps). Hard includes incompatibility of an address with |
| 113 | itself. -/ |
| 114 | theorem price_log (hr : Hard R) {n : Side} (X : ι → Support n) (B : ℕ) |
| 115 | (ht : Tests R X) {a γ δ q : ℝ} (ha : 0 ≤ a) |
| 116 | (h : Ready X B (fun i => ‖w i‖) a γ δ q) : |
| 117 | SumBudget (fun s => ‖value R w s‖) (Real.exp ((n.val^4:ℕ)*γ)) ∧ |
| 118 | SumBudget (fun i => ‖term R w i‖) (((n.val^4:ℕ)*γ)*(1-q)⁻¹) ∧ |
| 119 | Real.exp (logSum R w) = total R w ∧ 0 < total R w ∧ Real.log (total R w) = logSum R w := by |
| 120 | have hX i : (X i).Nonempty := by obtain ⟨x,hx,-⟩ := ht i i (hr.diag i); exact ⟨x,hx⟩ |
| 121 | have hb := actual_values R w X B hX ha h |
| 122 | have hB := absolute R w X B ht hX ha h |
| 123 | suffices he : Real.exp (logSum R w) = total R w from |
| 124 | ⟨hb,hB,he,he ▸ Real.exp_pos _,by rw [← he,Real.log_exp]⟩ |
| 125 | have he (D : Finset ι) : Real.exp (∑' i,boundTo R w D i)=∑' i,pickedFrom R w D i := by |
| 126 | let x i := X (i:↥D).val |
| 127 | rw [actual,literal]; refine finite_log (γ:=γ) (δ:=δ) (q:=q) (chosenRel R D) _ ⟨fun i => hr.diag _,fun i j => hr.symm _ _⟩ |
| 128 | x B (fun i j => ht _ _) (fun i => hX _) ha ?_ |
| 129 | obtain ⟨hg,hd,hq,hn,hw,hh⟩ := h |
| 130 | refine ⟨hg,hd,hq,hn,fun _ => norm_nonneg _,fun y => ?_⟩ |
| 131 | have hv := budget_pull (fun j : ↥D => j.val) Subtype.val_injective (hh y) |
| 132 | exact hv |
| 133 | have hf : Tendsto (fun D => ∑' i,boundTo R w D i) atTop (𝓝 (logSum R w)) := by |
| 134 | apply tendsto_tsum_of_dominated_convergence hB.2.1 |
| 135 | · intro i |
| 136 | apply tendsto_const_nhds.congr' |
| 137 | filter_upwards [eventually_ge_atTop (univ.image i.2)] with D hD |
| 138 | exact (show boundTo R w D i = _ from if_pos (fun j => hD (mem_image_of_mem _ (mem_univ j)))).symm |
| 139 | refine Eventually.of_forall fun D i => ?_ |
| 140 | unfold boundTo; split <;> first | exact le_rfl | exact norm_zero.trans_le (norm_nonneg _) |
| 141 | have hg : Tendsto (fun D => ∑' i,pickedFrom R w D i) atTop (𝓝 (total R w)) := by |
| 142 | apply tendsto_tsum_of_dominated_convergence hb.2.1 |
| 143 | · intro i |
| 144 | apply tendsto_const_nhds.congr' |
| 145 | filter_upwards [eventually_ge_atTop i] with D hD |
| 146 | exact (show pickedFrom R w D i = _ from if_pos hD).symm |
| 147 | refine Eventually.of_forall fun D i => ?_ |
| 148 | unfold pickedFrom; split <;> first | exact le_rfl | exact norm_zero.trans_le (norm_nonneg _) |
| 149 | exact tendsto_nhds_unique ((Real.continuous_exp.continuousAt.tendsto.comp hf).congr he) hg |
| 150 | end YM.Push.AbsoluteSums.Gas |