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.Euclid.Differential |
| 2 | import YM.Maxwell.Reorder |
| 3 | |
| 4 | /-! |
| 5 | # The actual free filtered comparator |
| 6 | |
| 7 | Intrinsic exterior-null *after* Bianchi and Maxwell built into the kernel. |
| 8 | It is not assumed no further null or any nonzero-rank theorem. Uses a |
| 9 | modelling of Wick labels by invariant polynomials before restriction, as . |
| 10 | The same coordinate basis with real form will be used in short distance comparisons. |
| 11 | -/ |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.Maxwell |
| 15 | open Function Set Filter |
| 16 | open Wick Labels |
| 17 | open scoped ContDiff Topology BigOperators |
| 18 | |
| 19 | variable {G : Gauge} |
| 20 | |
| 21 | def standard (F : Frames G) : Register G := ⟨F,fun _ => 1,fun _ => zero_lt_one⟩ |
| 22 | |
| 23 | def freeTable (F : Frames G) : Table (standard F) where |
| 24 | value d x := (correlation G x d).compLinearMap fun _ => (F.level _).coords.symm.toLinearMap |
| 25 | |
| 26 | variable (F : Frames G) |
| 27 | |
| 28 | /-- Full-arity read using invariant polynomial lift, before any physical quotient. -/ |
| 29 | lemma decodes {n} (p : Fin n → (standard F).Token) (x : Points n) : |
| 30 | (freeTable F).read x p = moment G x (fun i => observable G _ ((F.level _).coords.symm (p i).2)) := rfl |
| 31 | |
| 32 | lemma table_sym : (freeTable F).Symmetric where |
| 33 | same := by |
| 34 | intro n r x hx v; exact (Wick.exchangeSites r hx (fun i => observable G _ ((F.level _).coords.symm (v i).2))).symm |
| 35 | |
| 36 | lemma table_regular : (freeTable F).Basic where |
| 37 | __ := table_sym F |
| 38 | trivial f x := by |
| 39 | rw [decodes] |
| 40 | rw [show (fun i => observable G _ ((F.level _).coords.symm (f i).2)) = fun _ => 1 from Subsingleton.elim ..] |
| 41 | exact constants _ |
| 42 | unital := by |
| 43 | intro n x hx d v |
| 44 | rw [decodes,decodes] |
| 45 | -- freeze reader functions |
| 46 | let A (p : (standard F).Token) := observable G _ ((F.level p.1).coords.symm p.2) |
| 47 | change moment G x (A ∘ Fin.cons (α := fun _ => (standard F).Token) ((standard F).one d) v) = moment G _ (A ∘ v) |
| 48 | let B := Fin.cons (α := fun _ : Fin (n+1) => (standard F).Token) ((standard F).one d) v |
| 49 | have ht : A ((standard F).one d) = 1 := by |
| 50 | change observable G d ((F.level _).coords.symm ((standard F).scalar d)) = 1 |
| 51 | rw [show (standard F).scalar d = (F.level d).coords (Labels.unit G d) by simp [standard, Register.scalar, Register.coord]; exact one_smul _ _, |
| 52 | (F.level d).coords.symm_apply_apply] |
| 53 | exact map_one reduceEq |
| 54 | rw [show (A ∘ B) = Fin.cons (α := fun _ => WickPol G) 1 (A ∘ v) by |
| 55 | funext i; refine Fin.cases ?_ (fun j => ?_) i <;> simp [B, ht]] |
| 56 | rw [← show Points.cons (x 0) (Points.tail x) = x by ext1 i; refine Fin.cases ?_ (fun j => ?_) i <;> simp [Points.cons,Points.tail]] |
| 57 | rw [← adjoin] |
| 58 | · congr 1 |
| 59 | exact Points.tail_in hx |
| 60 | |
| 61 | theorem table_smooth : (freeTable F).Smooth where |
| 62 | on_conf d v := smooth d fun i => (F.level _).coords.symm (v i) |
| 63 | |
| 64 | def shellSector (G : Gauge) (d : ℕ) : Submodule ℂ (WickPol G) := LinearMap.range (observable G d) |
| 65 | |
| 66 | /-- What remains null in actual on-shell sector. -/ |
| 67 | structure ProbeFamily (G : Gauge) where |
| 68 | n : ℕ |
| 69 | d : Fin n → ℕ |
| 70 | exterior (i : Fin n) : shellSector G (d i) |
| 71 | x : Points (n+1) |
| 72 | clear : x ∈ conf _ |
| 73 | |
| 74 | def ProbeFamily.test (v : ProbeFamily G) (d : ℕ) : shellSector G d →ₗ[ℂ] ℂ := |
| 75 | ((moment G v.x).toLinearMap (Fin.cons (α := fun _ => WickPol G) 0 (fun i => (v.exterior i).val)) 0).comp (shellSector G d).subtype |
| 76 | |
| 77 | lemma test_formula (v : ProbeFamily G) (d p) : v.test d p = moment G v.x (Fin.cons p.val fun i => (v.exterior i).val) := by |
| 78 | unfold ProbeFamily.test |
| 79 | simp only [LinearMap.comp_apply,MultilinearMap.toLinearMap_apply] |
| 80 | congr 1 |
| 81 | ext1 i |
| 82 | refine Fin.cases ?_ (fun j => ?_) i <;> simp |
| 83 | |
| 84 | def residual (G : Gauge) (d : ℕ) : Submodule ℂ (shellSector G d) := |
| 85 | LinearMap.ker <| LinearMap.pi fun i : ProbeFamily G => i.test d |
| 86 | |
| 87 | def snap (d : ℕ) : (standard F).Ref d →ₗ[ℂ] shellSector G d := |
| 88 | (observable G d).rangeRestrict.comp (F.level d).coords.symm.toLinearMap |
| 89 | |
| 90 | theorem full (d : ℕ) : Surjective (snap F d) := |
| 91 | (LinearMap.surjective_rangeRestrict _).comp (F.level d).coords.symm.surjective |
| 92 | |
| 93 | lemma bridge {n : ℕ} (d) (u : (standard F).Ref d) (z : Fin n → (standard F).Token) {x} (hx : x ∈ conf (n+1)) : |
| 94 | let v : ProbeFamily G := ⟨n, fun i => (z i).1, fun i => snap F _ (z i).2, x, hx⟩ |
| 95 | (freeTable F).read x (Fin.cons ⟨d,u⟩ z) = v.test d (snap F d u) := by |
| 96 | intro v |
| 97 | rw [decodes,test_formula] |
| 98 | congr 1 |
| 99 | ext1 i |
| 100 | refine Fin.cases ?_ (fun j => ?_) i <;> rfl |
| 101 | |
| 102 | lemma projectionExact {d c} : snap F d c ∈ residual G d ↔ c ∈ (freeTable F).null d := by |
| 103 | rw [(freeTable F).criterion] |
| 104 | constructor |
| 105 | · intro h n v x hx |
| 106 | rw [bridge F _ _ _ hx] |
| 107 | exact congr_fun (show _ from LinearMap.mem_ker.mp h) _ |
| 108 | intro h |
| 109 | apply LinearMap.mem_ker.mpr |
| 110 | funext y |
| 111 | choose w hw using fun i => full F _ (y.exterior i) |
| 112 | let z (i : Fin y.n) : (standard F).Token := ⟨y.d i, w i⟩ |
| 113 | change y.test d (snap F d c) = 0 |
| 114 | have he := h y.n z y.x y.clear |
| 115 | rw [bridge F d c z y.clear] at he |
| 116 | have ha : (ProbeFamily.mk _ (fun i => (z i).1) (fun i => snap F _ (z i).2) _ y.clear)=y := by |
| 117 | congr 1; exact funext hw |
| 118 | exact ha ▸ he |
| 119 | |
| 120 | def collapsed (d : ℕ) : (standard F).Ref d →ₗ[ℂ] (shellSector G d) ⧸ residual G d := |
| 121 | (residual G d).mkQ.comp (snap F d) |
| 122 | |
| 123 | theorem exactKer (d) : LinearMap.ker (collapsed F d) = (freeTable F).null d := by |
| 124 | ext1 x |
| 125 | exact (Submodule.Quotient.mk_eq_zero _).trans (projectionExact F) |
| 126 | |
| 127 | /-- The two-step comparison space and `(freeTable F).Field d` agree. -/ |
| 128 | def addresses (d : ℕ) : (freeTable F).Field d ≃ₗ[ℂ] (shellSector G d) ⧸ residual G d := |
| 129 | (Submodule.quotEquivOfEq _ _ (exactKer F d).symm).trans <| |
| 130 | (collapsed F d).quotKerEquivOfSurjective ((residual G d).mkQ_surjective.comp (full F d)) |
| 131 | |
| 132 | /-- Ranks assertion levelwise (E in terms of successive differences, with the ranks below zero stipulated zero). |
| 133 | |
| 134 | It is complex equivalence, compatible separately with conjugation and H-action. -/ |
| 135 | def Ranks {L : Register G} (S : Table L) (H : S.RealSpin) : Prop := |
| 136 | ∃ h : (freeTable L.grid).RealSpin, ∀ d : ℕ, |
| 137 | ∃ f : S.Field d ≃ₗ[ℂ] (freeTable L.grid).Field d, |
| 138 | (∀ x, f (S.conj H d x) = (freeTable L.grid).conj h d (f x)) ∧ |
| 139 | (∀ k x, f (S.mirror H d k x) = (freeTable L.grid).mirror h d k (f x)) |
| 140 | |
| 141 | end YM.Maxwell |