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.Bid.Craft |
| 2 | import YM.Next.FOUNDATIONS.SU2 |
| 3 | import YM.Push.FINITE_DETECTION.Polarize |
| 4 | |
| 5 | /-! |
| 6 | # Positive Wick norm of the local polynomial at a single reflected pair |
| 7 | |
| 8 | Proof by a real position-space |
| 9 | triangular basis change, rather than the spatial Fourier argument there. |
| 10 | |
| 11 | This concerns only the actual free kernel `Maxwell.Wick`. |
| 12 | |
| 13 | Includes arity |
| 14 | zero monomials (empty matching). |
| 15 | |
| 16 | Distinct sites at relative pole, so no |
| 17 | coincidence value, no distributional extensions used. |
| 18 | -/ |
| 19 | set_option autoImplicit false |
| 20 | noncomputable section |
| 21 | namespace YM.Push.FiniteDetection.Free |
| 22 | open Function Set Filter Maxwell Wick Wick.Occ Equiv Kelvin |
| 23 | open scoped Topology BigOperators ContDiff ComplexConjugate |
| 24 | variable {G : Gauge} |
| 25 | |
| 26 | def detectors := points ![pole,(0:E4)] |
| 27 | lemma detectors_in : detectors ∈ conf 2 := by |
| 28 | intro i j he |
| 29 | fin_cases i <;> fin_cases j <;> (first | rfl | exact ((show pole ≠ 0 from pole_in) he).elim | exact ((show pole ≠ 0 from pole_in) he.symm).elim) |
| 30 | |
| 31 | def wickPair : WickPol G →ₗ[ℂ] WickPol G →ₗ[ℂ] ℂ := |
| 32 | let M := moment G detectors |
| 33 | let T i (u : Fin 2 → WickPol G) := M.toLinearMap u i |
| 34 | have he a b c : T 0 ![a,b] c = M ![c,b] := by unfold T; rw [MultilinearMap.toLinearMap_apply]; congr 1; ext1 i; fin_cases i <;> simp |
| 35 | have ht a b c : T 1 ![a,b] c = M ![a,c] := by unfold T; rw [MultilinearMap.toLinearMap_apply]; congr 1; ext1 i; fin_cases i <;> simp |
| 36 | LinearMap.mk₂ ℂ (fun a b => M ![a,b]) |
| 37 | (fun a b u => by simpa only [he] using (T 0 ![a,u]).map_add a b) |
| 38 | (fun c a u => by simpa only [he] using (T 0 ![a,u]).map_smul c a) |
| 39 | (fun a u v => by simpa only [ht] using (T 1 ![a,u]).map_add u v) |
| 40 | (fun c a u => by simpa only [ht] using (T 1 ![a,u]).map_smul c u) |
| 41 | |
| 42 | variable {W : Powers G 2} |
| 43 | lemma front_corner (P : Matching W) {a : Occ W} : a ∈ corners P ↔ a.label = 0 := by |
| 44 | have hd := different P a |
| 45 | simp only [corners,Finset.mem_filter,Finset.mem_univ,true_and] |
| 46 | revert hd; generalize a.label = i; generalize (partner P a).label = j |
| 47 | fin_cases i <;> fin_cases j <;> decide |
| 48 | lemma from_corner (P : Matching W) {a : Occ W} (ha : a ∈ corners P) : (partner P a).label = 1 := by |
| 49 | have hd := different P a |
| 50 | rw [(front_corner P).mp ha] at hd |
| 51 | revert hd; generalize (partner P a).label = j; fin_cases j <;> decide |
| 52 | |
| 53 | def amplitude (P : Matching W) := ∏ a ∈ corners P, if a.probe = (partner P a).probe then lengthSq a.probe else 0 |
| 54 | lemma amplitude_nonneg (P : Matching W) : 0 ≤ amplitude P := |
| 55 | Finset.prod_nonneg (fun _ _ => by split_ifs; exact (lengthSq_pos _).le; exact le_rfl) |
| 56 | |
| 57 | lemma pair_test (W : Powers G 2) : |
| 58 | wickPair (forward G (monBasis G (W 0))) (reversed G (monBasis G (W 1))) = ↑(∑ P : Matching W, amplitude P) := by |
| 59 | let u (a : Occ W) := if a.label=0 then eigenVar a.probe else reflectedVar a.probe |
| 60 | have hs : (fun i => ∏ a ∈ stationed W i, ordinary G (u a)) = |
| 61 | ![forward G (monBasis G (W 0)),reversed G (monBasis G (W 1))] := by |
| 62 | simp_rw [← stationed_powers, map_prod]; ext1 i |
| 63 | fin_cases i |
| 64 | · change _ = ∏ a ∈ stationed W 0, _ |
| 65 | refine Finset.prod_congr rfl fun a ha => ?_; simp [u,(Finset.mem_filter.mp ha).2,forward] |
| 66 | change _ = ∏ a ∈ stationed W 1, _ |
| 67 | apply Finset.prod_congr rfl; intro a ha; simp [u,(Finset.mem_filter.mp ha).2, reversed,show (1 : Fin 2) ≠ 0 from one_ne_zero] |
| 68 | have he := linear_substitution u detectors |
| 69 | rw [hs] at he |
| 70 | change moment G detectors _ = _ |
| 71 | rw [he, Complex.ofReal_sum]; refine Finset.sum_congr rfl fun P _ => ?_ |
| 72 | rw [amplitude, Complex.ofReal_prod]; apply Finset.prod_congr rfl; intro a ha |
| 73 | rw [show (fun i j : Slot G => entry i j (detectors a.label) (detectors (partner P a).label)) = |
| 74 | (fun i j => (legKernel (coordinateLeg i) (coordinateLeg j) pole : ℂ)) by |
| 75 | rw [(front_corner P).mp ha,from_corner P ha]; simp [entry,detectors]] |
| 76 | change Q G (u a) _ = _ |
| 77 | rw [show u a = eigenVar a.probe from if_pos ((front_corner P).mp ha), |
| 78 | show u (partner P a) = reflectedVar _ from if_neg ((from_corner P ha).symm ▸ one_ne_zero),pairing_var] |
| 79 | split_ifs <;> simp |
| 80 | |
| 81 | lemma off (P : Matching W) (h : W 0 ≠ W 1) : amplitude P = 0 := by |
| 82 | classical |
| 83 | by_contra! hp |
| 84 | have he (a) (ha : a.label = 0) : a.probe = (partner P a).probe := by |
| 85 | have ht := Finset.prod_ne_zero_iff.mp (show amplitude P ≠ 0 from hp) a ((front_corner P).mpr ha) |
| 86 | exact by_contra fun hn => ht (if_neg hn) |
| 87 | have he0 (a : Occ W) : a ∈ stationed W 0 ↔ a ∈ corners P := by simp [stationed,front_corner] |
| 88 | apply h; apply (monBasis G).injective |
| 89 | simp_rw [← stationed_powers] |
| 90 | refine Finset.prod_bij (fun a _ => partner P a) (fun a ha => Finset.mem_filter.mpr ⟨Finset.mem_univ _,from_corner P ((he0 a).mp ha)⟩) |
| 91 | (fun _ _ _ _ h => (partner P).injective h) (fun b hb => ⟨partner P b, (he0 _).mpr ?_,turn ..⟩) (fun a ha => congr_arg _ (he a (Finset.mem_filter.mp ha).2)) |
| 92 | apply (orientation P b).mpr |
| 93 | rw [front_corner,(Finset.mem_filter.mp hb).2] |
| 94 | exact one_ne_zero |
| 95 | |
| 96 | private lemma switches (W : Powers G 2) (h : W 0 = W 1) : ∃ P : Matching W, ∀ a, (partner P a).probe = a.probe := by |
| 97 | have he (i : Fin 2) : W i.rev = W i := by fin_cases i; exact h.symm; exact h |
| 98 | let s (a : Occ W) := atSlot a.label.rev a.probe a.index (he _ ▸ a.legit) |
| 99 | have hs (a : Occ W) : s (s a) = a := Occ.ext (Fin.rev_rev _) rfl rfl |
| 100 | let e : Perm (Occ W) := ⟨s,s,hs,hs⟩ |
| 101 | have hv (i : Fin 2) : i.rev ≠ i := by fin_cases i <;> decide |
| 102 | exact ⟨⟨e,Equiv.ext hs,fun a => hv _⟩,fun a => rfl⟩ |
| 103 | |
| 104 | lemma wick_pos (p : Slot G →₀ ℕ) : 0 < ∑ P : Matching ![p,p], amplitude P := by |
| 105 | obtain ⟨P,hP⟩ := switches ![p,p] rfl |
| 106 | refine Finset.sum_pos' (fun q _ => amplitude_nonneg q) ⟨P,Finset.mem_univ _, Finset.prod_pos (fun i _ => ?_)⟩ |
| 107 | simpa only [hP,if_true] using lengthSq_pos i.probe |
| 108 | |
| 109 | lemma wick_orth (p q : Slot G →₀ ℕ) : wickPair (forward G (monBasis G p)) (reversed G (monBasis G q)) = |
| 110 | if p=q then (↑(∑ P : Matching ![p,p], amplitude P) : ℂ) else 0 := by |
| 111 | have he := pair_test ![p,q] |
| 112 | change wickPair (forward G (monBasis G p)) (reversed G (monBasis G q)) = _ at he |
| 113 | rcases eq_or_ne p q with h|h |
| 114 | · subst q; rw [if_pos rfl]; exact he |
| 115 | rw [he,if_neg h, Finset.sum_eq_zero (fun P _ => off P h),Complex.ofReal_zero] |
| 116 | |
| 117 | lemma as_coeff (p : WickPol G) : p = ∑ i ∈ p.support, MvPolynomial.coeff i p • monBasis G i := p.as_sum.trans (by |
| 118 | refine Finset.sum_congr rfl fun i _ => ?_ |
| 119 | change _ = _ • MvPolynomial.monomial i 1 |
| 120 | rw [MvPolynomial.smul_eq_C_mul, MvPolynomial.C_mul_monomial,mul_one]) |
| 121 | |
| 122 | lemma barred_sum (p : WickPol G) : barred p = ∑ i ∈ p.support, star (MvPolynomial.coeff i p) • monBasis G i := by |
| 123 | conv_lhs => unfold barred; arg 2; rw [as_coeff p] |
| 124 | rw [map_sum] |
| 125 | apply Finset.sum_congr rfl; intro i _ |
| 126 | change _ = _ • MvPolynomial.monomial _ _ |
| 127 | simp_rw [MvPolynomial.smul_eq_C_mul,map_mul,MvPolynomial.map_C]; congr 1 |
| 128 | change MvPolynomial.map _ (MvPolynomial.monomial i 1) = MvPolynomial.monomial i 1; simp |
| 129 | |
| 130 | /-- Actual reflected free norm at a pair, via the triangular probe basis. |
| 131 | No RP/support assumptions on any Wilson family in this free calculation. -/ |
| 132 | theorem positive (p : WickPol G) (hp : p ≠ 0) : 0 < (wickPair (forward G p) (reversed G (barred p))).re := by |
| 133 | classical |
| 134 | let c (i) := MvPolynomial.coeff i p |
| 135 | let s i := ∑ P : Matching ![i,i], amplitude P (G := G) |
| 136 | have he i (hi : i ∈ p.support) : |
| 137 | ∑ j ∈ p.support, (c i * (star (c j) * wickPair (forward G (monBasis G i)) (reversed G (monBasis G j)))) = |
| 138 | (Complex.normSq (c i) * s i : ℝ) := by |
| 139 | simp_rw [wick_orth, ← mul_assoc, mul_ite, mul_zero] |
| 140 | rw [Finset.sum_ite_eq p.support,if_pos hi,Complex.star_def,Complex.mul_conj, Complex.ofReal_mul] |
| 141 | conv_rhs => arg 1; lhs; arg 2; rw [as_coeff p] |
| 142 | rw [barred_sum]; simp only [map_sum,map_smul,LinearMap.sum_apply,LinearMap.smul_apply,smul_eq_mul, Finset.mul_sum] |
| 143 | rw [Finset.sum_comm]; simp_rw [mul_left_comm (star (MvPolynomial.coeff _ p)) (MvPolynomial.coeff _ p)] |
| 144 | change 0 < (∑ i ∈ p.support, ∑ j ∈ p.support, c i * (star (c j) * wickPair (forward G (monBasis G i)) (reversed G (monBasis G j)))).re |
| 145 | rw [Finset.sum_congr rfl he, ← Complex.ofReal_sum,Complex.ofReal_re] |
| 146 | obtain ⟨i,hi⟩ := not_forall.mp (fun h => hp (MvPolynomial.eq_zero_iff.mpr h)) |
| 147 | exact Finset.sum_pos (fun j hj => mul_pos (by |
| 148 | apply lt_of_le_of_ne (Complex.normSq_nonneg _) (Ne.symm ?_); exact mt Complex.normSq_eq_zero.mp (MvPolynomial.mem_support_iff.mp hj)) |
| 149 | (wick_pos j)) ⟨i,MvPolynomial.mem_support_iff.mpr hi⟩ |
| 150 | |
| 151 | theorem two_detect {d} (v : Labels.Label G d) (hv : v ∉ equationIdeal G d) : |
| 152 | 0 < (moment G detectors ![observable G d v, observable G d (Labels.tensor σ (Labels.realBar v))]).re := by |
| 153 | obtain ⟨p,hp⟩ := forward_full G (observable G d v) |
| 154 | change 0 < (wickPair _ _).re |
| 155 | rw [reversed_observable hp.symm,← hp]; exact positive p (fun hw => hv (hp.symm.trans (by rw [hw,map_zero]))) |
| 156 | end YM.Push.FiniteDetection.Free |