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.Branch.Slide |
| 2 | |
| 3 | /-! |
| 4 | # Pre-patch fallback and universal branches |
| 5 | -/ |
| 6 | |
| 7 | set_option autoImplicit false |
| 8 | noncomputable section |
| 9 | namespace YM |
| 10 | |
| 11 | open Lattice Wilson Function Finset |
| 12 | open scoped Matrix.Norms.Frobenius BigOperators |
| 13 | namespace Axial |
| 14 | variable {G : Gauge} |
| 15 | |
| 16 | def traveller (l : List Axis) (U : CoverConfig G) (p x : Cover) := travel U p (axisRoute p x l) |
| 17 | |
| 18 | lemma endpoint (p x : Cover) (l : List Axis) (h : l.Nodup) (he : ∀ i ∉ l, p i=x i) : |
| 19 | stop p (axisRoute p x l)=x := by |
| 20 | rw [axisRoute_end p x p l h]; ext i; by_cases H : i ∈ l <;> simp [*, he i] |
| 21 | |
| 22 | lemma vertical {r o x p l j z} (hj : j ∉ l) (hl : List.Nodup l) |
| 23 | (hx : x ∈ slab r o (l++[j])) (hp : p ∈ slab r (update o j z) l) |
| 24 | (U : CoverConfig G) : gauge (traveller (l++[j]) U p) U (x,j) = 1 := by |
| 25 | let u := update x j z |
| 26 | have h0 (y w : Cover) (i : Axis) : axisRoute y w [i] = straight i (w i-y i) := by simp [axisRoute] |
| 27 | have hh (i : Axis) (hi : i ∈ l) : i ≠ j := by rintro rfl; exact hj hi |
| 28 | have he : axisRoute p x l = axisRoute p u l := axis_route_support _ _ _ l fun i hi => by simp [u,hh i hi] |
| 29 | have hq : axisRoute p (x+step j) l = axisRoute p u l := axis_route_support _ _ _ l fun i hi => by simp [u,hh i hi] |
| 30 | have hd : stop p (axisRoute p u l)=u := endpoint p u l hl fun i hi => by |
| 31 | rw [(slab_iff.mp hp).2 _ hi]; by_cases H : i=j |
| 32 | · simp [H,u] |
| 33 | have hg := (slab_iff.mp hx).2 i (by simp [hi,H]); simp [*,u] |
| 34 | have hh' := ((lower_pin hj _).mp hp).2 |
| 35 | have hk : u+(x j-p j) • step j=x := by ext i; by_cases h : i=j <;> simp [*,u] |
| 36 | unfold Lattice.gauge traveller |
| 37 | rw [axisRoute_append, axisRoute_append,he,hq,h0, h0,travel_append,travel_append,hd] |
| 38 | dsimp only |
| 39 | have hh1 : (x+step j : Cover) j-p j=x j-p j+1 := by simp [add_sub_right_comm] |
| 40 | rw [hh1,carry_succ,hk] |
| 41 | group |
| 42 | |
| 43 | lemma total_slab {r o l j z} {U : CoverConfig G} (hj : j ∉ l) (hl : List.Nodup l) |
| 44 | {p} (hp : p ∈ slab r (update o j z) l) (hz : z ∈ layers r) : |
| 45 | edges (slab r o (l++[j])) (gauge (traveller (l++[j]) U p) U) ≤ |
| 46 | ((layers r).card:ℝ)*(edges (slab r (update o j z) l) (gauge (traveller l U p) U)+4*faces (slab r o (l++[j])) U) := by |
| 47 | let X := slab r o (l++[j]) |
| 48 | let C u := slab r (update o j u) l |
| 49 | let V := gauge (traveller (l++[j]) U p) U |
| 50 | have hv (x) (hx : x∈X) (_ : x+step j∈X) : V (x,j)=1 := vertical hj hl hx hp U |
| 51 | have slice (x i z) (hx : x ∈ C z) : perEdge X V x i = perEdge (C z) V x i := by |
| 52 | unfold perEdge; split_ifs with h h' h' |
| 53 | · rfl |
| 54 | · have ha := (lower_pin hj _).mp hx |
| 55 | by_cases hy : i=j |
| 56 | · subst i; rw [hv _ ha.1 h, G.chord_one] |
| 57 | exact False.elim (h' ((lower_pin hj _).mpr ⟨h,by simp [Ne.symm hy,ha.2]⟩)) |
| 58 | exact False.elim (h ((lower_pin hj _).mp h').1) |
| 59 | rfl |
| 60 | have eq : edges X V=∑ i ∈ layers r, edges (C i) V := by |
| 61 | unfold edges X |
| 62 | rw [slab_sum r o hj] |
| 63 | exact sum_congr rfl fun i _ ↦ sum_congr rfl fun x hx ↦ sum_congr rfl fun k _ ↦ slice x k i hx |
| 64 | have eq' : edges (C z) V=edges (C z) (gauge (traveller l U p) U) := by |
| 65 | have h (i) (hi : i ∈ C z) : traveller (l++[j]) U p i=traveller l U p i := by |
| 66 | rw [traveller,axisRoute_append]; simp only [axisRoute,List.flatMap_cons,List.flatMap_nil,List.append_nil] |
| 67 | rw [((lower_pin hj _).mp hi).2, ((lower_pin hj _).mp hp).2,sub_self]; simp [straight,traveller,axisRoute] |
| 68 | refine sum_congr rfl fun i hi ↦ sum_congr rfl fun a _ ↦ ?_ |
| 69 | unfold perEdge; split_ifs with ha |
| 70 | · simp only [V,Lattice.gauge,h i hi,h _ ha] |
| 71 | rfl |
| 72 | have H (i) (hi : i ∈ layers r) : edges (C i) V ≤ edges (C z) V +4 * faces X U := by |
| 73 | have hx := (abs_le.mp <| window_le hj V hv hi hz).2 |
| 74 | rw [show faces X U= faces X V from (faces_gauge_symm ..).symm] |
| 75 | linarith [show edges (C i) V-edges (C z) V ≤ 4*faces X V from hx] |
| 76 | change edges X V≤_ |
| 77 | rw [eq,← eq'] |
| 78 | exact (sum_le_sum fun i hi => H i hi).trans (by simp [C,X,mul_add]) |
| 79 | |
| 80 | lemma existence (l : List Axis) (r : ℕ) (o : Cover) (U : CoverConfig G) (hl : l.Nodup) (ho : o ∈ box r) : |
| 81 | ∃ x ∈ slab r o l, edges (slab r o l) (gauge (traveller l U x) U) ≤ |
| 82 | 4*(l.length:ℝ)*(layers r).card*faces (slab r o l) U := by |
| 83 | induction l using List.reverseRecOn generalizing o with |
| 84 | | nil => |
| 85 | have eq : slab r o []={o} := by ext i; simp only [slab_iff,List.not_mem_nil,not_false_eq_true,true_imp_iff, mem_singleton]; exact ⟨fun h => funext h.2,fun h => ⟨h.symm ▸ ho, congr_fun h⟩⟩ |
| 86 | refine ⟨o, by simp [eq], ?_⟩ |
| 87 | have H (i : Axis) : o+step i≠o := fun h => by have he := congr_fun h i; simp at he |
| 88 | simp [edges, eq, perEdge,H] |
| 89 | | append_singleton l j ih => |
| 90 | rw [List.nodup_append] at hl |
| 91 | have hj : j ∉ l := fun h => hl.2.2 j h j (by simp) rfl |
| 92 | let f z := faces (slab r (update o j z) l) U |
| 93 | obtain ⟨z,hz,h⟩ := exists_min_image (layers r) f ⟨0,by simp [layers]⟩ |
| 94 | have he := faces_pins hj U (r:=r) (o:=o) |
| 95 | have ht : (layers r).card*f z ≤ faces (slab r o (l++[j])) U := le_trans (by simp [f,nsmul_eq_mul]) |
| 96 | (le_trans (sum_le_sum (f:=fun _ => f z) fun i hi => h i hi) he) |
| 97 | obtain ⟨p,hp,hs⟩ := ih (update o j z) hl.1 (update_box ho hz j) |
| 98 | refine ⟨p, ((lower_pin hj _).mp hp).1, (total_slab hj hl.1 hp hz).trans ?_⟩ |
| 99 | calc |
| 100 | _ ≤ _ := mul_le_mul_of_nonneg_left (add_le_add_left hs (4*faces (slab r o (l++[j])) U)) (Nat.cast_nonneg _) |
| 101 | _ ≤ _ := ?_ |
| 102 | simp only [List.length_append,List.length_cons,List.length_nil,Nat.zero_add,Nat.cast_add,Nat.cast_one] |
| 103 | have hh := mul_le_mul_of_nonneg_left ht (show 0 ≤ 4*(l.length:ℝ)*(layers r).card from by positivity) |
| 104 | unfold f at hh |
| 105 | linarith only [hh] |
| 106 | |
| 107 | lemma edge_cost (P : RG.Patch) (U : CoverConfig G) (x : P.FrameTag) : P.axialCost U x = |
| 108 | edges (box P.radius) (gauge (traveller (allAxes x.2) U x.1.val) U) := by |
| 109 | unfold RG.Patch.axialCost edges |
| 110 | rw [← Finset.sum_coe_sort (box P.radius)]; apply Finset.sum_congr rfl |
| 111 | intro i _; refine Finset.sum_congr rfl fun j _ ↦ ?_ |
| 112 | change (if h : _ then _ else _) = perEdge P.sites _ _ j |
| 113 | unfold perEdge; split_ifs <;> rfl |
| 114 | |
| 115 | lemma face_cost (P : RG.Patch) (U : CoverConfig G) : P.facesum U = faces (box P.radius) U := by |
| 116 | unfold faces RG.Patch.facesum |
| 117 | rw [← Finset.sum_coe_sort (box P.radius)]; rfl |
| 118 | |
| 119 | lemma eligible (P : RG.Patch) (U : CoverConfig G) (C : RG.KernelChoices) (hc : 16 ≤ C.axial_factor) (o : Lattice.Order) : |
| 120 | ∃ x : P.Points, (x,o)∈ P.eligible C U := by |
| 121 | let l := allAxes o |
| 122 | let R := P.radius |
| 123 | have he := existence l R 0 U ((List.nodup_finRange _).map o.injective) (center_box _) |
| 124 | have ha (i : Axis) : i ∈ l := List.mem_map.mpr ⟨_,List.mem_finRange _,o.apply_symm_apply i⟩ |
| 125 | rw [show slab R 0 l = box R by ext i; simp only [slab_iff,ha,not_true,false_imp_iff,forall_const,and_true]] at he |
| 126 | obtain ⟨x,hx,H⟩ := he |
| 127 | refine ⟨⟨x,hx⟩,?_⟩ |
| 128 | unfold RG.Patch.eligible |
| 129 | simp only [mem_filter,mem_univ,true_and, edge_cost,face_cost] |
| 130 | apply H.trans |
| 131 | rw [card_layers,show l.length=4 by simp [l,allAxes]] |
| 132 | push_cast |
| 133 | refine mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right (by linarith) ?_) (faces_nonneg ..) |
| 134 | positivity |
| 135 | |
| 136 | /-- All thresholds independent of P,L,J. -/ |
| 137 | lemma viable (G : Gauge) (κ : ℝ) (hn : 0 < κ) : ∃ C : RG.KernelChoices, C.penalty=κ ∧ |
| 138 | ∀ P : RG.Patch, P.Branches C G := by |
| 139 | obtain ⟨δ,h,H⟩ := RG.frame_unique G |
| 140 | obtain ⟨ε,w,W⟩ := RG.predictor_unique G |
| 141 | refine ⟨⟨κ,δ,ε,16,hn,h,w,by norm_num⟩,rfl,fun P => ⟨H _ le_rfl _, W _ le_rfl _, fun U => ?_⟩⟩ |
| 142 | obtain ⟨x,hx⟩ := eligible P U ⟨κ,δ,ε,16,hn,h,w,by norm_num⟩ le_rfl 1; exact ⟨_,hx⟩ |
| 143 | end Axial |
| 144 | end YM |