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.Contacts.Motions |
| 2 | |
| 3 | /-! |
| 4 | # Local variation of readings |
| 5 | |
| 6 | Finite expressions varying in parameters, with all words readable (positions |
| 7 | pairwise distinct in each monomial), and with explicit control of their |
| 8 | location within palettes. Palette at this level not obliged to be open nor to exclude |
| 9 | other letters of the same expression. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option maxHeartbeats 600000 |
| 14 | noncomputable section |
| 15 | namespace YM.Contacts |
| 16 | open Function Filter Set MeasureTheory Table OPE MultipleContact.Script |
| 17 | open scoped Classical Topology ContDiff BigOperators Matrix.Norms.Frobenius |
| 18 | variable {G : Gauge} {L : Register G} {S : Table L} {P : DiffPlan S} |
| 19 | variable {W Z I : Type} [TopologicalSpace W] [TopologicalSpace Z] [Fintype I] |
| 20 | |
| 21 | inductive Displays (U : Set W) (A : W → Set E4) : (W → Expression P) → Prop |
| 22 | | zero : Displays U A (fun _=>0) |
| 23 | | atom (I : Type) [Fintype I] (x : W → I → E4) (p : I → Mode P) |
| 24 | (h : ContinuousOn x U) (hp : ∀ t∈U, Injective (x t)) (hw : ∀ t∈U, Set.range (x t) ⊆ A t) : |
| 25 | Displays U A (fun t=>letterWord (x t) p) |
| 26 | | plus {e f} : Displays U A e → Displays U A f → Displays U A (fun t=>e t+f t) |
| 27 | | coeff {c : W → ℂ} {e} : ContinuousOn c U → Displays U A e → Displays U A (fun t=> c t • e t) |
| 28 | -- restrict to U (allows various coe changes; support only used in U) |
| 29 | | agree {e f} : Displays U A e → EqOn e f U → Displays U A f |
| 30 | |
| 31 | variable {U : Set W} {A B C : W → Set E4} {e f : W→Expression P} |
| 32 | |
| 33 | namespace Displays |
| 34 | lemma subreg {V} (h : Displays U A e) (hu : V⊆U) (hb : ∀ t∈V, A t⊆ B t) : Displays V B e := by |
| 35 | induction h with |
| 36 | | zero => exact .zero |
| 37 | | @atom I inst x p h h' hp => exact .atom I _ p (h.mono hu) (fun _ ht=> h' _ (hu ht)) (fun t ht => (hp t (hu ht)).trans (hb t ht)) |
| 38 | | plus _ _ hx hy => exact .plus hx hy |
| 39 | | coeff h _ hx => exact .coeff (h.mono hu) hx |
| 40 | | agree _ h hx => exact .agree hx (h.mono hu) |
| 41 | lemma widen (h : Displays U A e) (hb : ∀ t∈U,A t⊆ B t) : Displays U B e := subreg h (by rfl) hb |
| 42 | lemma minus (h : Displays U A e) : Displays U A (fun t => -e t) := by |
| 43 | simpa only [neg_smul,one_smul] using coeff (e:=e) (c:=fun _=>(-1:ℂ)) continuousOn_const h |
| 44 | lemma diff (h : Displays U A e) (hf : Displays U A f) : Displays U A (fun t=>e t-f t) := by |
| 45 | simpa only [sub_eq_add_neg] using h.plus hf.minus |
| 46 | omit [TopologicalSpace Z] in |
| 47 | lemma sum {a : Finset Z} {f : Z→W→ Expression P} (h : ∀ t∈a, Displays U A (f t)) : |
| 48 | Displays U A (fun i=>∑ t∈a,f t i) := by |
| 49 | induction a using Finset.induction_on with |
| 50 | | empty => simpa only [Finset.sum_empty] using (Displays.zero : Displays (P:=P) U A _) |
| 51 | | insert i a hi ih => simpa only [Finset.sum_insert hi] using (h i (by simp)).plus (ih fun j hj=> h _ (Finset.mem_insert_of_mem hj)) |
| 52 | lemma use {V : Set Z} {q : Z → W} (h : Displays U A e) (hv : MapsTo q V U) (hq : ContinuousOn q V) : Displays V (A ∘ q) (e ∘ q) := by |
| 53 | induction h with |
| 54 | | zero => exact .zero |
| 55 | | @atom I inst x p h h' hp => exact .atom I (x ∘ q) p (h.comp hq hv) (fun _ ht=> h' _ (hv ht)) (fun t ht=>hp _ (hv ht)) |
| 56 | | plus _ _ hx hy => exact .plus hx hy |
| 57 | | coeff h _ hx => exact .coeff (h.comp hq hv) hx |
| 58 | | agree _ h hx => exact .agree hx (fun x hx=>h (hv hx)) |
| 59 | lemma supported (h : Displays U A e) {t : W} (ht : t∈U) : e t ∈ supportedAt (A t) := by |
| 60 | induction h with |
| 61 | | zero => exact (supportedAt _).zero_mem |
| 62 | | @atom I inst x p h h' hp => exact (supportedAt (A t)).prod_mem (f:= fun i=>unitLetter (x t i) (p i)) (fun i _=>unit_supportedAt _ _ (hp t ht (Set.mem_range_self _))) |
| 63 | | plus _ _ hx hy => exact (supportedAt _).add_mem hx hy |
| 64 | | coeff h _ hx => exact (supportedAt _).smul_mem hx _ |
| 65 | | agree _ h hx => rw [← h ht]; exact hx |
| 66 | lemma times (h : ∀ t∈U, Disjoint (A t) (B t)) (he : Displays U A e) (hf : Displays U B f) : |
| 67 | Displays U (fun t=> A t ∪ B t) (fun t=> e t*f t) := by |
| 68 | induction he with |
| 69 | | zero => simp only [zero_mul]; exact .zero |
| 70 | | @atom I inst x p hx hp hw => |
| 71 | induction hf with |
| 72 | | zero => simp only [mul_zero]; exact .zero |
| 73 | | @atom J inst y q hy ht hu => |
| 74 | simp_rw [← letters_beside] |
| 75 | apply Displays.atom |
| 76 | · apply continuousOn_pi.mpr; intro i; cases i with |
| 77 | | inl i=> exact continuousOn_pi.mp hx i |
| 78 | | inr i=> exact continuousOn_pi.mp hy i |
| 79 | · exact fun i hi=>beside_distinct.mpr ⟨hp i hi,ht i hi,fun a b hb=>Set.disjoint_left.mp (h i hi) (hb ▸ hw i hi (Set.mem_range_self a)) (hu i hi (Set.mem_range_self b))⟩ |
| 80 | rintro t ht s ⟨i,rfl⟩; cases i with |
| 81 | | inl i=> exact Or.inl (hw t ht (Set.mem_range_self i)) |
| 82 | | inr i=> exact Or.inr (hu t ht (Set.mem_range_self i)) |
| 83 | | plus _ _ hx hy => simpa only [mul_add] using hx.plus hy |
| 84 | | coeff h _ hx => simp_rw [mul_smul_comm]; exact .coeff h hx |
| 85 | | agree _ h hx => exact .agree hx (fun t ht=> congrArg (letterWord (x t) p * ·) (h ht)) |
| 86 | | plus _ _ hx hy => simp_rw [add_mul]; exact .plus hx hy |
| 87 | | coeff h _ hx => simp_rw [smul_mul_assoc]; exact .coeff h hx |
| 88 | | agree _ h hx => exact .agree hx (fun i hi=> congrArg (· * f i) (h hi)) |
| 89 | lemma constOne : Displays (P:=P) U A (fun _=> 1) := by |
| 90 | have h := atom (A:=A) (U:=U) Empty (fun _ => 0) (fun i=> (i.elim : Mode P)) continuousOn_const (fun _ _=>injective_of_subsingleton _) (by rintro t ht w ⟨i,hi⟩; exact i.elim) |
| 91 | simpa only [letterWord, spell, Fintype.prod_empty] using h |
| 92 | omit [Fintype I] in |
| 93 | lemma prod {a : Finset I} {A' : I→ W→ Set E4} {f : I→W→ Expression P} (hf : ∀ i∈a,Displays U (A' i) (f i)) |
| 94 | (hp : ∀ t∈U, (a : Set I).Pairwise fun i j => Disjoint (A' i t) (A' j t)) : |
| 95 | Displays U (fun t=> ⋃ i∈ a,A' i t) (fun t=>∏ i∈a,f i t) := by |
| 96 | induction a using Finset.induction_on with |
| 97 | | empty => simp only [Finset.prod_empty]; apply constOne |
| 98 | | @insert i a hi ih => |
| 99 | have hu : (a : Set I) ⊆ ↑(insert i a : Finset I) := Finset.coe_subset.mpr (Finset.subset_insert i a) |
| 100 | specialize ih (fun j hj=>hf j (by simp [hj])) (fun t ht=> (hp t ht).mono hu) |
| 101 | simp_rw [Finset.prod_insert hi,Finset.set_biUnion_insert] |
| 102 | apply Displays.times (fun t ht=>?_) (hf i (by simp)) ih |
| 103 | refine Set.disjoint_left.mpr (fun w hw hl=>?_); obtain ⟨j, hj, hwj⟩ := Set.mem_iUnion₂.mp hl |
| 104 | exact Set.disjoint_left.mp (hp t ht (show i∈ (↑(insert i a : Finset I) : Set I) from by simp) (hu hj) (fun h=> hi (h ▸ hj))) hw hwj |
| 105 | lemma atPoint {x : W→ E4} (hA : ∀ t∈U,x t∈A t) (hx : ContinuousOn x U) (p : Mode P) : Displays U A (fun t=> unitLetter (x t) p) := by |
| 106 | have h:= atom (P:=P) Unit (fun t=>sole (x t)) (sole p) (continuousOn_pi.mpr fun _=> hx) (fun t _=> injective_of_subsingleton _) (by rintro t ht w ⟨⟨⟩,rfl⟩; exact hA t ht) |
| 107 | simpa only [letters_sole] using h |
| 108 | lemma field {D : Prescription P} {x : W → E4} {d : ℕ} {f : W→ S.Field d} (hA : ∀ t∈ U,x t∈A t) (hx : ContinuousOn x U) (hf : ContinuousOn f U) : Displays U A |
| 109 | (fun t=> insertField D (x t) d (f t)) := by |
| 110 | simp_rw [insert_formula]; apply Displays.sum; intro i hi |
| 111 | exact coeff (((D.test i d).continuous_of_finiteDimensional).comp_continuousOn hf) (atPoint hA hx i) |
| 112 | lemma word {D : Prescription P} {x : W → I→ E4}{d : I→ℕ}{p : (i:I)→ W→ S.Field (d i)} |
| 113 | (hA : ∀ t∈U,range (x t) ⊆ A t) (h : ∀ t∈U, Injective (x t)) (hx : ContinuousOn x U) (hp : ∀ i,ContinuousOn (p i) U) : |
| 114 | Displays U A (fun t=>fieldWord D (x t) (fun i=>⟨d i,p i t⟩)) := by |
| 115 | apply widen (prod (A':=fun i t=>{x t i}) (fun i (_:i∈(Finset.univ:Finset I))=> |
| 116 | field (D:=D) (fun t _=>Set.mem_singleton _) (continuousOn_pi.mp hx i) (hp i)) (fun t ht i _ j _ he=> disjoint_singleton.mpr ((h t ht).ne he))) |
| 117 | fun t ht=> by rintro z hz; obtain ⟨i,hi,h⟩:= Set.mem_iUnion₂.mp hz; exact hA t ht ((Set.mem_singleton_iff.mp h).symm ▸ Set.mem_range_self i) |
| 118 | lemma observes (D : Prescription P) (T : Table L) (H : T.Hierarchy) (h : Displays U A e) : ContinuousOn (fun t=> readExpr D T (e t)) U := by |
| 119 | induction h with |
| 120 | | zero => simpa using (continuousOn_const : ContinuousOn (fun _=> (0:ℂ)) U) |
| 121 | | @atom I inst x p h h' hp => |
| 122 | refine (ContinuousOn.congr (f:=fun t=> observe T (x t) (D.letter ∘ p)) ?_ (fun t ht=> (read_letters D T H.laws.toSymmetric ..).trans (if_pos (h' t ht)))) |
| 123 | exact fun t ht=> (smooth_observe T H.smooth (D.letter ∘ p) (h' t ht)).comp_continuousWithinAt (h t ht) |
| 124 | | plus _ _ hx hy => simp_rw [map_add]; exact hx.add hy |
| 125 | | coeff h _ hx => simp_rw [map_smul]; exact h.smul hx |
| 126 | | agree _ h hx => exact hx.congr fun t ht=> congr_arg (readExpr D T) (h ht).symm |
| 127 | end Displays |
| 128 | end YM.Contacts |