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.Progress.DIRECTED_RECIPE.Motion |
| 2 | |
| 3 | /-! |
| 4 | # Quantitative continuity through the actual (hard and soft) evaluation |
| 5 | |
| 6 | Continuity of the represented rep is E/K charged as an all-address |
| 7 | sup perturbation. Product of K terms is not independent on differently |
| 8 | flagged cylinders; to evaluate at V, compare BOTH representatives there. |
| 9 | Witnesses for packs *coincide* since the dictionaries do. We get a bound |
| 10 | independent of configuration using this charge and the total K expense at the |
| 11 | base parameter. This is a volume-dependent analysis (e.g., when realizing |
| 12 | a Curve for shooting); don't infer the incoming costs in RAdvances from it. |
| 13 | -/ |
| 14 | set_option autoImplicit false |
| 15 | noncomputable section |
| 16 | namespace YM.Progress.DirectedRecipe |
| 17 | open Function Set RG Wilson Lattice RG.Shoot MeasureTheory Filter |
| 18 | open scoped Topology BigOperators Matrix.Norms.Frobenius |
| 19 | |
| 20 | namespace Payment |
| 21 | open Finset |
| 22 | section finite |
| 23 | variable {a b p q : ℕ → ℝ} |
| 24 | |
| 25 | private lemma prod_delta (h : ∀ i, ‖a i‖ ≤ p i) (hk : ∀ i, ‖a i-b i‖ ≤ q i) (s : Finset ℕ) : |
| 26 | ‖(∏ i∈s, a i)-∏ i∈s,b i‖ ≤ (∏ i∈s, (p i+q i))- ∏ i∈s, p i := by |
| 27 | have hp j : 0 ≤ p j := (norm_nonneg _).trans (h j) |
| 28 | have hq j : 0 ≤ q j := (norm_nonneg _).trans (hk j) |
| 29 | have hf j : ‖b j‖ ≤ p j + q j := by |
| 30 | calc |
| 31 | _ = ‖a j - (a j-b j)‖ := by ring_nf |
| 32 | _ ≤ ‖a j‖ + ‖a j-b j‖ := norm_sub_le .. |
| 33 | _ ≤ _ := add_le_add (h j) (hk j) |
| 34 | induction s using Finset.induction_on with |
| 35 | | empty => simp |
| 36 | | insert i s hi ih => |
| 37 | let A := ∏ j∈s, a j |
| 38 | let B := ∏ j∈s, b j |
| 39 | let C := ∏ j∈s,(p j+q j) |
| 40 | let D := ∏ j∈s,p j |
| 41 | have he : ‖B‖ ≤ C := by |
| 42 | unfold B C; rw [norm_prod] |
| 43 | exact prod_le_prod (fun j _ => norm_nonneg _) fun j _ => hf j |
| 44 | simp only [prod_insert hi] |
| 45 | calc |
| 46 | _ = ‖a i*(A-B)+(a i-b i)*B‖ := by unfold A B; ring_nf |
| 47 | _ ≤ ‖a i*(A-B)‖+‖(a i-b i)*B‖ := norm_add_le .. |
| 48 | _ ≤ p i*(C-D)+q i*C := by |
| 49 | rw [norm_mul,norm_mul]; exact add_le_add |
| 50 | (mul_le_mul (h i) ih (norm_nonneg _) (hp i)) |
| 51 | (mul_le_mul (hk i) he (norm_nonneg _) (hq i)) |
| 52 | _ = _ := by unfold C D; ring |
| 53 | |
| 54 | private lemma fin_products {c d : ℝ} (h : SumBudget p c) (hg : SumBudget q d) (s : Finset ℕ) : |
| 55 | ∑ i∈s.powerset, ((∏ j∈i, (p j + q j)) - ∏ j∈i, p j) ≤ Real.exp c*(Real.exp d - 1) := by |
| 56 | have ht := Finset.prod_nonneg (s:=s) (f:=fun i => 1+p i) fun i _ => add_nonneg zero_le_one (h.1 i) |
| 57 | have he : (∏ i∈s, (1 + (p i + q i))) ≤ (∏ i∈s, (1 + p i))*Real.exp d := calc |
| 58 | _ ≤ ∏ i∈s, (1+p i)*Real.exp (q i) := by |
| 59 | refine prod_le_prod (fun i _ => add_nonneg zero_le_one (add_nonneg (h.1 i) (hg.1 i))) fun i _ => ?_ |
| 60 | have hn := Real.add_one_le_exp (q i) |
| 61 | calc |
| 62 | _ ≤ (1+p i)*(q i+1) := by nlinarith only [mul_nonneg (h.1 i) (hg.1 i)] |
| 63 | _ ≤ _ := mul_le_mul_of_nonneg_left hn (add_nonneg zero_le_one (h.1 i)) |
| 64 | _ ≤ _ := by |
| 65 | rw [prod_mul_distrib,← Real.exp_sum] |
| 66 | exact mul_le_mul_of_nonneg_left |
| 67 | (Real.exp_monotone ((hg.2.1.sum_le_tsum s (fun i _ => hg.1 i)).trans hg.2.2)) ht |
| 68 | have hz : (∏ i∈s, (1+p i)) ≤ Real.exp c := calc |
| 69 | _ ≤ ∏ i∈s, Real.exp (p i) := Finset.prod_le_prod (fun i _ => add_nonneg zero_le_one (h.1 i)) |
| 70 | (fun i _ => by rw [add_comm]; exact Real.add_one_le_exp _) |
| 71 | _ ≤ _ := by |
| 72 | rw [← Real.exp_sum] |
| 73 | exact Real.exp_monotone ((h.2.1.sum_le_tsum s (fun i _ => h.1 i)).trans h.2.2) |
| 74 | rw [Finset.sum_sub_distrib, ← Finset.prod_one_add (f:=fun i => p i+q i), ← Finset.prod_one_add] |
| 75 | refine le_trans (sub_le_sub_right he _) (le_trans ?_ (mul_le_mul_of_nonneg_right hz |
| 76 | (sub_nonneg.mpr (Real.one_le_exp ((tsum_nonneg hg.1).trans hg.2.2))))) |
| 77 | rw [mul_sub,mul_one] |
| 78 | |
| 79 | lemma products {c d : ℝ} (h : SumBudget p c) (hg : SumBudget q d) : |
| 80 | SumBudget (fun s : Finset ℕ => (∏ i∈s, (p i + q i)) - ∏ i∈s, p i) |
| 81 | (Real.exp c * (Real.exp d-1)) := by |
| 82 | let D := fun s : Finset ℕ => (∏ i∈s, (p i + q i)) - ∏ i∈s, p i |
| 83 | have hs : Summable D := (summable_finsetProd_of_summable_nonneg (fun i => add_nonneg (h.1 i) (hg.1 i)) |
| 84 | (h.2.1.add hg.2.1)).sub (summable_finsetProd_of_summable_nonneg h.1 h.2.1) |
| 85 | have hv (s : Finset ℕ) : 0 ≤ D s := sub_nonneg.mpr <| |
| 86 | prod_le_prod (fun i _ => h.1 i) (fun i _ => le_add_of_nonneg_right (hg.1 i)) |
| 87 | refine ⟨hv,hs, hs.tsum_le_of_sum_le fun s => ?_⟩ |
| 88 | let v := s.biUnion id |
| 89 | exact (sum_le_sum_of_subset_of_nonneg (t:=v.powerset) (fun i hi => mem_powerset.mpr fun j hj => |
| 90 | mem_biUnion.mpr ⟨i,hi,hj⟩) (fun i _ _ => hv i)).trans (fin_products h hg v) |
| 91 | end finite |
| 92 | |
| 93 | variable {G : Gauge} {n : Side} {P : BudgetPoint} |
| 94 | lemma smaller {ι : Type*} {f g : ι → ℝ} {d : ℝ} (h : SumBudget f d) |
| 95 | (he : ∀ i, 0 ≤ g i) (hg : ∀ i,g i ≤ f i) : SumBudget g d := by |
| 96 | have hs := h.2.1.of_nonneg_of_le he hg |
| 97 | exact ⟨he,hs,(hs.tsum_le_tsum hg h.2.1).trans h.2.2⟩ |
| 98 | |
| 99 | lemma gas_pay {A B : Activities G n} (h : A.forced=B.forced) |
| 100 | {p q : ℕ → ℝ} {C d : ℝ} (hc : SumBudget p C) (hd : SumBudget q d) (U : Config G n) |
| 101 | (hh : ∀ j, ‖A.K j U‖ ≤ p j) |
| 102 | (hk : ∀ i, ‖A.K i U-B.K i U‖ ≤ q i) (P : BudgetPoint) : |
| 103 | SumBudget (fun b : Finset ℕ => ‖A.gasOccurrence P b U - B.gasOccurrence P b U‖) |
| 104 | (Real.exp C * (Real.exp d-1)) := by |
| 105 | classical |
| 106 | apply smaller (products hc hd) (fun _ => norm_nonneg _) |
| 107 | intro b |
| 108 | have hx : A.admissible P U b ↔ B.admissible P U b := by unfold Activities.admissible; rw [h] |
| 109 | simp only [Activities.gasOccurrence,hx]; split_ifs with H |
| 110 | · exact prod_delta hh hk _ |
| 111 | · simpa only [sub_zero,norm_zero] using (products hc hd).1 b |
| 112 | |
| 113 | lemma masked_pay {A B : Activities G n} (h : A.reg=B.reg) |
| 114 | {e : ℕ → ℝ} {C : ℝ} (he : ∀ i, variesRegular P (A.reg i) (A.E i) (B.E i) (e i)) |
| 115 | (hg : SumBudget (fun i => P.mass (A.reg i).support (e i)) C) (U : Config G n) : |
| 116 | SumBudget (fun i => ‖A.regularOccurrence P i U - B.regularOccurrence P i U‖) C := by |
| 117 | refine smaller hg (fun _ => norm_nonneg _) (fun i => le_trans ?_ (P.loMass _ _ (he i).1)) |
| 118 | unfold Activities.regularOccurrence; rw [← h] |
| 119 | by_cases hx : Healthy P.threshold (A.reg i).support U |
| 120 | · rw [masked_eq _ _ _ _ hx, masked_eq _ _ _ _ hx]; exact (he i).2 U hx [] (Nat.zero_le _) (by simp) |
| 121 | rw [masked_ne _ _ _ _ hx, masked_ne _ _ _ _ hx,sub_zero,norm_zero]; exact (he i).1 |
| 122 | |
| 123 | lemma norm_bill {ι : Type*} {E : ι → ℝ} (C : ℝ) (h : SumBudget (fun i => ‖E i‖) C) : ‖∑' i, E i‖ ≤ C := |
| 124 | (norm_tsum_le_tsum_norm h.2.1).trans h.2.2 |
| 125 | |
| 126 | /-- Real cap-dependent fixed-volume estimate. Use `K_total` for this at |
| 127 | each x. Don't raise w using a uniform number of marked addresses. -/ |
| 128 | lemma perturb {A B : Activities G n} (h : A.reg=B.reg) (h' : A.forced=B.forced) {C : ℝ} {p : ℕ → ℝ} |
| 129 | (hc : SumBudget p C) (hb : ∀ i U, ‖A.K i U‖ ≤ p i) {ε : ℝ} (he : deviation P A B ε) (U : Config G n) : |
| 130 | SumBudget (fun i => ‖A.regularOccurrence P i U-B.regularOccurrence P i U‖) ε ∧ |
| 131 | SumBudget (fun i => ‖A.gasOccurrence P i U-B.gasOccurrence P i U‖) (Real.exp C*(Real.exp ε-1)) := by |
| 132 | obtain ⟨c,d,ha,ht,hg,hs⟩ := he |
| 133 | exact ⟨masked_pay h ha hg U, gas_pay h' hc (smaller hs (fun i => (ht i).1) (fun i => P.loMass _ _ (ht i).1)) U |
| 134 | (fun j => hb j U) (fun j => (ht j).2 U) P⟩ |
| 135 | |
| 136 | lemma rep_perturb {A B : Activities G n} {δ w δ' w' : ℝ} (hA : A.Valid P δ w) (hB : B.Valid P δ' w') |
| 137 | (h : A.reg=B.reg) (h' : A.forced=B.forced) {C : ℝ} {p : ℕ → ℝ} |
| 138 | (hc : SumBudget p C) (hb : ∀ i U, ‖A.K i U‖ ≤ p i) {ε : ℝ} (he : deviation P A B ε) (U : Config G n) : |
| 139 | ‖A.additive P U-B.additive P U‖ ≤ ε ∧ ‖A.gas P U-B.gas P U‖ ≤ Real.exp C*(Real.exp ε-1) := by |
| 140 | obtain ⟨hv,hh⟩ := perturb h h' hc hb he U |
| 141 | have hw := norm_bill _ hv; have hx := norm_bill _ hh |
| 142 | -- tsum over finsets, not a formal finite product symbol |
| 143 | constructor |
| 144 | · unfold Activities.additive; rw [← ((Activities.ESeries hA).summable U).tsum_sub |
| 145 | ((Activities.ESeries hB).summable U)]; exact hw |
| 146 | unfold Activities.gas; rw [← ((Activities.gasSeries hA).summable U).tsum_sub |
| 147 | ((Activities.gasSeries hB).summable U)]; exact hx |
| 148 | end Payment |
| 149 | end YM.Progress.DirectedRecipe |