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.Slice.Tour |
| 2 | |
| 3 | /-! |
| 4 | # Chronological tours realize traces |
| 5 | |
| 6 | Values given by successive strictly supported field segments. |
| 7 | Tracks alignment in actual Site periods. Generic over QFT future uses. |
| 8 | -/ |
| 9 | set_option autoImplicit false |
| 10 | noncomputable section |
| 11 | namespace YM.Slice |
| 12 | open MeasureTheory Measure Filter Function Set Wilson Lattice TimeKernel Analysis |
| 13 | open scoped Topology Matrix.Norms.Frobenius BigOperators |
| 14 | variable (a : Axis) {m : ℕ} {n : Side} {G : Gauge} |
| 15 | |
| 16 | structure Brick (a : Axis) (G : Gauge) (n : Side) where |
| 17 | joints : ℕ -- window steps = `joints+1` |
| 18 | symbol : FieldTest joints G a n |
| 19 | reads : Continuous symbol |
| 20 | |
| 21 | namespace Brick |
| 22 | variable {a} |
| 23 | def width (D : Brick a G n) := D.joints+1 |
| 24 | |
| 25 | def value (D : Brick a G n) (t : Per n) (U : Config G n) := D.symbol (crop a t D.joints (leaves a U)) |
| 26 | def pulse (D : Brick a G n) (β : ℝ) := testB β D.symbol |
| 27 | |
| 28 | @[simp] lemma width_pos (D : Brick a G n) : 0 < D.width := by simp [width] |
| 29 | |
| 30 | |
| 31 | |
| 32 | def step (a) (G) (n) : Brick a G n := ⟨0, (fun _ => 1), continuous_const⟩ |
| 33 | @[simp] lemma step_value (t U) : (step a G n).value t U=1 := rfl |
| 34 | @[simp] lemma step_pulse β : (step a G n).pulse β=heat (G := G) (n := n) a β := funext fun _ => funext fun _ => visible .. |
| 35 | @[simp] lemma step_width : (step a G n).width=1 := rfl |
| 36 | |
| 37 | def reflect (D : Brick a G n) : Brick a G n := { D with symbol := starred D.symbol, reads := star_cont D.reads } |
| 38 | @[simp] lemma reflect_width (D : Brick a G n) : D.reflect.width=D.width := rfl |
| 39 | @[simp] lemma reflect_pulse (D : Brick a G n) β : D.reflect.pulse β = op (D.pulse β) := starB _ _ D.reads |
| 40 | end Brick |
| 41 | |
| 42 | namespace Time |
| 43 | variable {a} |
| 44 | abbrev Braid (a : Axis) (G : Gauge) (n : Side) := List (Brick a G n) |
| 45 | |
| 46 | /-! Natural indexing before wrapping. -/ |
| 47 | variable (B : Braid a G n) |
| 48 | def duration : ℕ := (B.map Brick.width).sum |
| 49 | def tick (i : Fin B.length) := duration (B.take i) |
| 50 | |
| 51 | def traceTimes (b : Per n) (i : Fin B.length) := b+(tick B i:Per n) |
| 52 | |
| 53 | def word (t : Per n) (V : Config G n) := ∏ i : Fin B.length, (B.get i).value (traceTimes B t i) V |
| 54 | |
| 55 | def cores (β : ℝ) := B.map fun p => p.pulse β |
| 56 | |
| 57 | @[simp] lemma starts (X : Brick a G n) : duration (X::B)=X.width+duration B := by simp [duration] |
| 58 | |
| 59 | |
| 60 | lemma tick_succ (X : Brick a G n) (i : Fin B.length) : |
| 61 | tick (X::B) (Fin.cast (by simp) i.succ)=X.width+tick B i := by simp [tick,duration] |
| 62 | |
| 63 | lemma entering (X : Brick a G n) (b : Per n) (i : Fin B.length) : |
| 64 | traceTimes (X::B) b (Fin.cast (by simp) i.succ)=traceTimes B (b+X.width) i := by simp only [traceTimes,tick_succ, Nat.cast_add,add_assoc] |
| 65 | |
| 66 | lemma read (X : Brick a G n) (b : Per n) (U : Config G n) : |
| 67 | word (X::B) b U=X.value b U*word B (b+X.width) U := by |
| 68 | unfold word |
| 69 | change ∏ i : Fin (B.length+1), _ = _ |
| 70 | rw [Fin.prod_univ_succ] |
| 71 | congr 1 |
| 72 | · simp [traceTimes,tick,duration] |
| 73 | exact Finset.prod_congr rfl (fun i _ => congr_arg (fun y => (B.get i).value y U) (entering B X b i)) |
| 74 | |
| 75 | theorem following (x : Fin B.length) (y : ℕ) (he : y=x.val+1) : |
| 76 | duration (B.take y)=tick B x + (B.get x).width := by |
| 77 | unfold tick |
| 78 | subst y; rw [List.take_succ_eq_append_getElem x.isLt]; simp only [duration,List.map_append,List.sum_append,List.map_cons,List.map_nil,List.sum_cons,List.sum_nil, add_zero];rfl |
| 79 | |
| 80 | lemma clippedTick (i j : ℕ) (h : i ≤ j) : duration (B.take i) ≤ duration (B.take j) := by |
| 81 | induction B generalizing i j with |
| 82 | | nil => simp |
| 83 | | cons p B ih => |
| 84 | cases i |
| 85 | · simp [duration] |
| 86 | rename_i i; cases j |
| 87 | · omega |
| 88 | rename_i j; simp only [List.take_succ_cons,starts]; exact Nat.add_le_add_left (ih _ _ (by omega)) _ |
| 89 | |
| 90 | lemma tick_small (i : Fin B.length) : tick B i + (B.get i).width ≤ duration B := by |
| 91 | rw [← following B _ (i.val+1) rfl] |
| 92 | simpa only [List.take_length] using clippedTick B _ _ (show i.val+1≤B.length from i.isLt) |
| 93 | |
| 94 | lemma measureTime : ∑ i : Fin B.length, (B.get i).width=duration B := by |
| 95 | have hv : List.ofFn (Brick.width ∘ B.get)= B.map Brick.width := by rw [← List.map_ofFn,List.ofFn_get] |
| 96 | change ∑ i, (Brick.width ∘ B.get) i = _ |
| 97 | rw [← List.sum_ofFn, hv];rfl |
| 98 | |
| 99 | private lemma turnaround (p : Fin m) (hp : p.val+1=m) : (finRotate m p).val=0 := by |
| 100 | cases m |
| 101 | · exact Fin.elim0 p |
| 102 | rename_i m; rw [show p=Fin.last _ by ext; simp only [Fin.val_last]; omega, finRotate_last]; rfl |
| 103 | |
| 104 | private lemma forwardR (p : Fin m) (hp : p.val+1<m) : (finRotate m p).val=p.val+1 := by |
| 105 | cases m |
| 106 | · exact Fin.elim0 p |
| 107 | rename_i m; exact congr_arg Fin.val (finRotate_of_lt (n := m) (show p.val<m by omega)) |
| 108 | |
| 109 | private lemma closedViaList {k : List (K (Leaf G a n))} (h : k.length=m) (v : Fin m → K (Leaf G a n)) (hv : ∀ i, k.get i=v (Fin.cast h i)) : |
| 110 | TimeKernel.closed (trans n G a) k= ∫ p, TimeKernel.cycle v p ∂(Measure.pi fun _ : Fin m => trans n G a) := by |
| 111 | subst m; unfold TimeKernel.closed |
| 112 | rw [show k.get=v from funext hv] |
| 113 | |
| 114 | def travelTour (b : Per n) (h : duration B=n.val) : Tour n B.length where |
| 115 | window i := (B.get i).joints |
| 116 | start i := traceTimes B b i |
| 117 | steps i := by |
| 118 | let t := i.val |
| 119 | rcases eq_or_lt_of_le (show t+1≤B.length from i.isLt) with he|he |
| 120 | · have hh : ((finRotate _ i)).val=0 := turnaround i he |
| 121 | unfold traceTimes tick |
| 122 | rw [hh,List.take_zero,show duration (a := a) (G := G) (n := n) []=0 from rfl,Nat.cast_zero,add_zero] |
| 123 | have hv : tick B i + (B.get i).width= n.val := by rw [← following B _ _ he.symm,List.take_length,h] |
| 124 | rw [add_assoc] |
| 125 | change b=b+(↑(tick B i)+(↑(B.get i).width:Per n)) |
| 126 | rw [← Nat.cast_add,hv]; simp [Per] |
| 127 | have hh : (finRotate _ i).val=i.val+1 := forwardR i he |
| 128 | rw [traceTimes,traceTimes,tick,following _ _ _ hh,Nat.cast_add,add_assoc]; rfl |
| 129 | bins := by |
| 130 | apply (Fintype.bijective_iff_injective_and_card _).mpr |
| 131 | refine ⟨?_,?_⟩ |
| 132 | · intro x y he |
| 133 | obtain ⟨u,i⟩ := x; obtain ⟨v,j⟩ := y |
| 134 | let V (p : Sigma fun i : Fin B.length => Fin ((B.get i).joints+1)) := tick B p.1+p.2.val |
| 135 | have hx (p) : V p<n.val := calc |
| 136 | _ < (tick B p.1) + (B.get p.1).width := add_lt_add_right (show p.2.val < (B.get p.1).width from p.2.isLt) _ |
| 137 | _ ≤ n.val := (tick_small B p.1).trans h.le |
| 138 | change b+_+_=b+_+_ at he |
| 139 | rw [add_assoc,add_assoc] at he |
| 140 | have H : ((V ⟨u,i⟩:ℕ) : Per n)=((V ⟨v,j⟩:ℕ) : Per n) := by unfold V; rw [Nat.cast_add,Nat.cast_add]; exact add_left_cancel he |
| 141 | have heq : V ⟨u,i⟩=V ⟨v,j⟩ := by simpa only [ZMod.val_natCast_of_lt (hx _)] using congr_arg ZMod.val H |
| 142 | have hh (p q) (hp : p.1 < q.1) : V p < V q := |
| 143 | calc |
| 144 | _ < tick B p.1 + (B.get p.1).width := by unfold V; gcongr; exact p.2.isLt |
| 145 | _ ≤ tick B q.1 := by rw [← following B _ (p.1.val+1) rfl]; exact clippedTick B _ _ hp |
| 146 | _ ≤ V q := Nat.le_add_right _ _ |
| 147 | rcases lt_trichotomy u v with hu|hu|hu |
| 148 | · exact False.elim ((hh ⟨u,i⟩ ⟨v,j⟩ hu).ne heq) |
| 149 | · subst v |
| 150 | exact congr_arg (Sigma.mk u) (Fin.ext (Nat.add_left_cancel heq)) |
| 151 | exact False.elim ((hh ⟨v,j⟩ ⟨u,i⟩ hu).ne heq.symm) |
| 152 | simp only [Fintype.card_sigma,Fintype.card_fin,Per,ZMod.card] |
| 153 | exact (measureTime B).trans h |
| 154 | |
| 155 | lemma closed_eval (β) (b : Per n) (h : duration B=n.val) : |
| 156 | (partition G n β:ℂ)* moment β (word B b) = TimeKernel.closed (trans n G a) (cores B β) := by |
| 157 | let K (i : Fin B.length) := (B.get i).pulse β |
| 158 | rw [closedViaList (m := B.length) (by simp [cores]) K (by simp [cores,K])] |
| 159 | let T := travelTour B b h |
| 160 | exact T.calculated a β (fun i => (B.get i).symbol) (fun i => (B.get i).reads) |
| 161 | end Time |
| 162 | end YM.Slice |