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.ProjectorNext.PROJECTOR_CALIBRATION.Revenue |
| 2 | |
| 3 | |
| 4 | /-! # Fixed triangular model |
| 5 | |
| 6 | Construct from the limiting linear jets of the gauge-covariant stencil, by |
| 7 | polynomial algebra and truncation in the same label frame. No campaigning, |
| 8 | Compares or any subsequence hypothesis needed for triangularity. -/ |
| 9 | set_option autoImplicit false |
| 10 | noncomputable section |
| 11 | namespace YM.ProjectorNext.Calibration |
| 12 | open Lattice RG Wilson Source Source.Drops Function Filter Tensor Work Labels Next.Foundations Push.CutoffProjectors |
| 13 | open scoped Topology Matrix.Norms.Frobenius BigOperators ContDiff InnerProductSpace |
| 14 | variable {G : Gauge} {H : Hol G} {d : ℕ} |
| 15 | |
| 16 | /- Real tensor evaluated on truncated data, yield actual polynomial. Adapt |
| 17 | G05 / FOUNDATIONS.Readout proof (over ℓ here arbitrary, not the |
| 18 | Fréchet Taylor order). -/ |
| 19 | set_option maxHeartbeats 600000 in |
| 20 | set_option synthInstance.maxHeartbeats 60000 in |
| 21 | private lemma as_poly (l : ℕ) (B : Tensor.T (Snap G d) ℂ l) : |
| 22 | ∃ u : Pol G, ∀ J : Jet G, Labels.read J u = Tensor.diagonal B (trunk d J) := by |
| 23 | classical |
| 24 | let I := (i : Level d) × Fin (Labels.dim G i.val) |
| 25 | let v (i : I) : Key G := ⟨i.1.val,i.2⟩ |
| 26 | let r (J : Jet G) (i : I) := ((axes G i.1.val).repr (J i.1.val)) i.2 |
| 27 | let P (i : I) : Snap G d := firing i.1 (axes G i.1.val i.2) |
| 28 | have he (J : Jet G) : trunk d J = ∑ i : I, r J i • P i := by |
| 29 | funext k; symm |
| 30 | rw [Fintype.sum_sigma,Finset.sum_apply,Finset.sum_eq_single k] |
| 31 | · simp only [Finset.sum_apply,Pi.smul_apply,P,firing,LinearMap.single_apply,Pi.single_eq_same] |
| 32 | exact (axes G k.val).sum_repr (J k.val) |
| 33 | · intro i _ hi; simp [Finset.sum_apply,P,firing,Pi.single_eq_of_ne hi.symm] |
| 34 | simp |
| 35 | induction l with |
| 36 | | zero => |
| 37 | refine ⟨MvPolynomial.C (Tensor.diagonal B 0),fun J => ?_⟩ |
| 38 | simp only [Labels.read,MvPolynomial.aeval_C,Algebra.algebraMap_self,RingHom.id_apply]; exact congr_arg B (Subsingleton.elim ..) |
| 39 | | succ l ih => |
| 40 | choose p hp using fun i : I => ih (B.curryLeft (P i)) |
| 41 | refine ⟨∑ i, MvPolynomial.X (v i)*p i, fun J => ?_⟩ |
| 42 | let A := trunk d J |
| 43 | have hb : Tensor.diagonal B A = Tensor.diagonal (B.curryLeft A) A := by |
| 44 | apply congr_arg B; ext1 i; refine Fin.cases ?_ (fun j => ?_) i <;> simp |
| 45 | change Labels.read J _ = Tensor.diagonal B A; rw [hb] |
| 46 | rw [show B.curryLeft A=∑ i : I, r J i • B.curryLeft (P i) from by rw [show A = _ from he J,map_sum]; simp] |
| 47 | rw [Tensor.diagonal,sum_apply,_root_.map_sum]; exact Finset.sum_congr rfl fun i _ => by |
| 48 | rw [map_mul, hp, smul_apply,Complex.real_smul,Labels.read,MvPolynomial.aeval_X]; rfl |
| 49 | |
| 50 | namespace Machine |
| 51 | variable (M : Machine H d) (F : Labels.Frame G d) |
| 52 | |
| 53 | def shadeLaw (i : F.Index) (A : Snap G d) := Cross.mix (shade F i) M.U A (M.liftAll A) |
| 54 | |
| 55 | lemma by_tensor (i : F.Index) : ∃ B : Tensor.T (Snap G d) ℂ (F.grades i).2, M.shadeLaw F i = Tensor.diagonal B := by |
| 56 | let X := Snap G d |
| 57 | let l := (F.grades i).2 |
| 58 | let Q (j k : Fin l) : X →L[ℝ] X := if k=j then LinearMap.toContinuousLinearMap M.liftAll else |
| 59 | if k < j then ContinuousLinearMap.id _ _ else LinearMap.toContinuousLinearMap M.U |
| 60 | let B := ∑ j, (shade F i).compContinuousLinearMap (Q j) |
| 61 | refine ⟨B,funext fun A => ?_⟩ |
| 62 | unfold shadeLaw; rw [Cross.mixSum]; unfold B Tensor.diagonal; rw [sum_apply] |
| 63 | refine Finset.sum_congr rfl fun j _ => congr_arg _ ?_ |
| 64 | ext1 k; by_cases hk : k=j |
| 65 | · subst k; simp [Cross.cell,Q] |
| 66 | simp only [Cross.cell,update_of_ne hk,Cross.field,Q,if_neg hk] |
| 67 | split <;> rfl |
| 68 | |
| 69 | private lemma poly_law (i : F.Index) : ∃ u : Pol G, ∀ J, Labels.read J u = M.shadeLaw F i (trunk d J) := by |
| 70 | obtain ⟨B,hB⟩ := M.by_tensor F i |
| 71 | obtain ⟨u,hu⟩ := as_poly _ B; exact ⟨u,fun J => (hu J).trans (congr_fun hB (trunk d J)).symm⟩ |
| 72 | |
| 73 | def amethyst (i : F.Index) := capRead d (M.poly_law F i).choose |
| 74 | |
| 75 | lemma shade_closed (i : F.Index) (A : Snap G d) (u : G.El) : |
| 76 | M.shadeLaw F i (Cast u A)=M.shadeLaw F i A := by |
| 77 | unfold shadeLaw; rw [M.intertwines] |
| 78 | trans (1:ℝ) • Cross.mix (shade F i) M.U A (M.liftAll A) |
| 79 | · exact Cross.scaled_mix (shade F i) M.U (castAction u (d:=d)) 1 (fun x => by |
| 80 | rw [one_smul]; exact painting (F.grades i).2 (F.pure i) u x) (fun a => M.toSplit.comm ..) _ _ |
| 81 | exact one_smul .. |
| 82 | |
| 83 | lemma legit (i : F.Index) : M.amethyst F i ∈ localFields G d := by |
| 84 | let P := (M.poly_law F i).choose |
| 85 | refine ⟨cap_limited .., fun J u => ?_⟩ |
| 86 | have he (t : ℝ) : trunk d (scaleJet (colored u J) t) = Cast u (trunk d (scaleJet J t)) := by |
| 87 | funext j; unfold trunk scaleJet Cast colored; rw [map_smul] |
| 88 | have h (t : ℝ) : Labels.read (scaleJet (colored u J) t) P = Labels.read (scaleJet J t) P := calc |
| 89 | _ = _ := (M.poly_law F i).choose_spec _ |
| 90 | _ = M.shadeLaw F i (trunk d (scaleJet J t)) := by rw [he,M.shade_closed] |
| 91 | _ = _ := ((M.poly_law F i).choose_spec _).symm |
| 92 | have hu (n : ℕ) : Labels.read (colored u J) (tier n P) = Labels.read J (tier n P) := by |
| 93 | apply smul_right_injective ℂ (show (↑(n.factorial):ℝ)≠0 by positivity) |
| 94 | change (↑(n.factorial):ℝ) • _ = (↑(n.factorial):ℝ) • _ |
| 95 | rw [← deriv_read, ← deriv_read,funext h] |
| 96 | change Labels.read (colored u J) (capRead d P) = Labels.read J (capRead d P) |
| 97 | unfold capRead; simp [hu] |
| 98 | |
| 99 | def stone (i : F.Index) : Label G d := ⟨_,M.legit F i⟩ |
| 100 | |
| 101 | lemma observed (i : F.Index) (k : Lens G d) : probe F k (F.coords (M.stone F i)) = M.calendar F i k 0 0 := by |
| 102 | let P := (M.poly_law F i).choose |
| 103 | have h (t : ℝ) := (M.poly_law F i).choose_spec (scaleJet k.1 t) |
| 104 | rw [probe_eq,F.coords.symm_apply_apply,M.as_recorded] |
| 105 | trans iteratedDeriv k.2.val (fun t => Labels.read (scaleJet k.1 t) P) 0 |
| 106 | · rw [deriv_read,deriv_read]; exact congrArg _ (congrArg (Labels.read k.1) (tier_capRead d P k.2.val (Nat.le_of_lt_succ k.2.isLt))) |
| 107 | simp_rw [P,h]; rfl |
| 108 | |
| 109 | /-- T is the cutoff-independent holonomy model for these valves. Canonical |
| 110 | also when machines use different path choices; refers to no future fit |
| 111 | values. (Not asserting equality of these models *between* choices.) -/ |
| 112 | def trophy : Model F := ( (∑ i : F.Index, (LinearMap.toSpanSingleton ℂ _ (F.coords (M.stone F i))).comp (LinearMap.proj i)).comp |
| 113 | (equationSpace F).subtype).toContinuousLinearMap |
| 114 | |
| 115 | lemma spends (x : equationSpace F) (i : Lens G d) : |
| 116 | probe F i (M.trophy F x)=∑ k : F.Index, x.val k*M.calendar F k i 0 0 := by |
| 117 | change probe F i ((_ : F.Coeff →ₗ[ℂ] F.Coeff) (x:F.Coeff)) = _ |
| 118 | rw [LinearMap.sum_apply, _root_.map_sum] |
| 119 | refine Finset.sum_congr rfl fun k _ => ?_ |
| 120 | change probe F i (x.val k • F.coords (M.stone F k)) = _ |
| 121 | rw [map_smul,M.observed]; rfl |
| 122 | end Machine |
| 123 | end YM.ProjectorNext.Calibration |