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.AnalyticNext.QUARTIC_MATCH.Cells.Detect |
| 2 | import YM.AnalyticNext.QUARTIC_MATCH.Cells.Post |
| 3 | import YM.AnalyticNext.QUARTIC_MATCH.Residual |
| 4 | |
| 5 | |
| 6 | /-! |
| 7 | # Sparse-coordinate arrays of the actual tensors |
| 8 | |
| 9 | Convert Ward and repetition identities to kernel identities. Don't use an abstract representation |
| 10 | of an auxiliary abelian theory. Colors with the adjoint action of these physical matrices. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.AnalyticNext.QuarticMatch.BoxChain |
| 16 | open Lattice Exterior RG Wilson Function Filter Topology Bid Tensor Joint Matrix |
| 17 | open scoped Topology BigOperators Matrix.Norms.Frobenius ContDiff |
| 18 | |
| 19 | variable {G : Gauge} {n : ℕ} {c : Side} |
| 20 | |
| 21 | abbrev Dom (G : Gauge) (n : ℕ) (c : Side) := Tensor.T (Dir G c) ℝ n |
| 22 | |
| 23 | /-- In the uses below pricing may be given directly on `single X i`; thus leave |
| 24 | all orientation/axis/color normalizations to be tested precisely there. -/ |
| 25 | def sparse (x : Cell (Per c)) : G.Color →L[ℝ] Dir G c := |
| 26 | ContinuousLinearMap.pi fun i => if x=shape 1 i then ContinuousLinearMap.id ℝ G.Color else 0 |
| 27 | lemma sparse_at (x : Cell (Per c)) (v : G.Color) (i : Body 1 c) : |
| 28 | sparse x v i=if x=shape 1 i then v else 0 := by |
| 29 | unfold sparse; rw [ContinuousLinearMap.pi_apply]; split <;> rfl |
| 30 | lemma sparse_none (x : Cell (Per c)) (v : G.Color) (h : x.2.card≠1) : sparse x v=0 := by |
| 31 | funext i; rw [sparse_at, if_neg ?_]; rfl |
| 32 | intro H; rw [H] at h; exact h i.2.property |
| 33 | |
| 34 | def Colorwise (B : Dom G n c) := ∀ t : G.El, ∀ u, B (fun i => colors t (u i)) = B u |
| 35 | def Uniform (B : Dom G n c) := ∀ s : Site c, ∀ u, B (fun i => shifts 1 s (u i)) = B u |
| 36 | lemma monochrome (x : Cell (Per c)) (t : G.El) (v : G.Color) : |
| 37 | sparse x (G.adjoint t v)=colors t (sparse x v) := by |
| 38 | funext i |
| 39 | change _ = G.adjoint t (sparse x v i) |
| 40 | rw [sparse_at,sparse_at]; split |
| 41 | · rfl |
| 42 | rw [map_zero] |
| 43 | |
| 44 | def entries (B : Dom G n c) (hB : Colorwise B) : ArrayC (Fin n) (Per c) (ColorPart G n) := fun X => |
| 45 | ⟨B.compContinuousLinearMap (fun i => sparse (X i)), fun t u => by |
| 46 | simp only [ContinuousMultilinearMap.compContinuousLinearMap_apply, monochrome]; exact hB t _⟩ |
| 47 | lemma entries_eval (B : Dom G n c) (hB : Colorwise B) X U : |
| 48 | (entries B hB X).val U=B (fun i => sparse (X i) (U i)) := rfl |
| 49 | lemma entries_rank (B : Dom G n c) (hB : Colorwise B) (i : Fin n) : Rank (entries B hB) i 1 := by |
| 50 | intro X H; apply Subtype.ext; apply ContinuousMultilinearMap.ext; intro v |
| 51 | exact B.map_coord_zero i (sparse_none _ _ H) |
| 52 | |
| 53 | lemma direction (F : Ink G c) : ∑ x : Cell (Per c), sparse x (F x)=F ∘ shape 1 := by |
| 54 | classical |
| 55 | funext i; rw [Finset.sum_apply,Finset.sum_eq_single (shape 1 i)] |
| 56 | · rw [sparse_at, if_pos rfl]; rfl |
| 57 | · intro x _ H; rw [sparse_at, if_neg H] |
| 58 | simp |
| 59 | |
| 60 | lemma pays_inputs (B : Dom G n c) (hB : Colorwise B) (F : Fin n→ Ink G c) : |
| 61 | post (entries B hB) F=B (fun i => F i ∘ shape 1) := by |
| 62 | conv_rhs => rw [show (fun i => F i ∘ shape 1)=(fun i => ∑ x : Cell (Per c), sparse x (F i x)) from |
| 63 | funext fun i => (direction (F i)).symm] |
| 64 | unfold post; simp_rw [entries_eval] |
| 65 | classical |
| 66 | rw [ContinuousMultilinearMap.map_sum_finset] |
| 67 | rfl |
| 68 | |
| 69 | lemma curl_grad (F : Ink G c) : track F ∘ shape 1 = gradient (fun i => F (i,∅)) := by |
| 70 | funext b; rw [Function.comp_apply,track_shape 0]; ext j |
| 71 | obtain ⟨x,i⟩ := b; obtain ⟨d,rfl⟩ := axisEquiv.surjective i |
| 72 | unfold gradient; rw [show axisEquiv.symm (axisEquiv d)=d from axisEquiv.symm_apply_apply _]; exact d_sites x d (parts G 0 (F ∘ shape 0) j) |
| 73 | |
| 74 | theorem entries_closed (B : Dom G n c) (hB : Colorwise B) (h : Residual.Legal B) (j : Fin n) : |
| 75 | lower j (entries B hB) = 0 := by |
| 76 | funext X; apply Subtype.ext; apply ContinuousMultilinearMap.ext; intro V |
| 77 | rw [← post_recovers]; rw [transfers, pays_inputs] |
| 78 | let W i := (Pi.single (X i) (V i) : Ink G c) |
| 79 | let v (i : Fin n) : Dir G c := W i ∘ shape 1 |
| 80 | change B (fun i => update W j (track (W j)) i ∘ shape 1)=_ |
| 81 | rw [show (fun i => update W j (track (W j)) i ∘ shape 1)=update v j (track (W j) ∘ shape 1) from |
| 82 | funext fun i => by by_cases hi : i=j <;> simp [v,hi], curl_grad] |
| 83 | exact h.ward .. |
| 84 | |
| 85 | lemma sparse_move (b : Site c) (X : Cell (Per c)) (u : G.Color) : sparse (move b X) u = shifts 1 (-b) (sparse X u) := by |
| 86 | funext v |
| 87 | rw [shift_one_apply,sparse_at,sparse_at] |
| 88 | simp only [move,shape,Prod.ext_iff,← sub_eq_add_neg,eq_sub_iff_add_eq] |
| 89 | |
| 90 | lemma entries_cohere (B : Dom G n c) (hB : Colorwise B) (h : Uniform B) : Cohere (entries B hB) := by |
| 91 | intro b X; apply Subtype.ext; apply ContinuousMultilinearMap.ext; intro v |
| 92 | rw [entries_eval,entries_eval]; simp_rw [Function.comp_apply, sparse_move]; exact h .. |
| 93 | |
| 94 | section period |
| 95 | open Sheets |
| 96 | variable {d : Side} (h : c.val∣d.val) |
| 97 | |
| 98 | lemma sparse_echo (x : Cell ℤ) (u : G.Color) [Fintype ↥(Deck h)] : |
| 99 | reuses h (sparse (tor c x) u) = ∑ w : Deck h, sparse (move w.val (tor d x)) u := by |
| 100 | classical |
| 101 | funext i; rw [Finset.sum_apply]; change sparse _ _ _ = _ |
| 102 | simp_rw [sparse_at]; split_ifs with hx |
| 103 | · have ht : project h i.1 = wrap c x.1 := (show (tor c x).1=(shape 1 _).1 from congr_arg Prod.fst hx).symm |
| 104 | let W : Deck h := ⟨i.1-wrap d x.1,by rw [AddMonoidHom.mem_ker,map_sub, ht, Sheets.project_wrap,sub_self]⟩ |
| 105 | have hf w : move (w : Deck h).val (tor d x) = shape 1 i ↔ w=W := by |
| 106 | constructor |
| 107 | · intro H; apply Subtype.ext; exact eq_sub_of_add_eq' (congr_arg Prod.fst H) |
| 108 | intro h; subst w; apply Prod.ext |
| 109 | · change wrap d x.1 + (i.1-wrap d x.1)=i.1; simp |
| 110 | exact (show (tor c x).2=(shape 1 ((project ‹_›) i.1,i.2)).2 from congr_arg Prod.snd hx) |
| 111 | simp_rw [hf]; simp |
| 112 | symm; apply Finset.sum_eq_zero |
| 113 | intro w _; rw [if_neg ?_]; intro hw |
| 114 | apply hx |
| 115 | apply Prod.ext |
| 116 | · have he : wrap d x.1 + w.val=i.1 := congr_arg Prod.fst hw |
| 117 | have hu := congr_arg (project h) he |
| 118 | rw [map_add,Sheets.project_wrap,show project h w.val=0 from w.property,add_zero] at hu |
| 119 | exact hu |
| 120 | exact (show (move w.val (tor d x)).2=(shape 1 i).2 from congr_arg Prod.snd hw) |
| 121 | |
| 122 | /-- Lift-compatible inputs. -/ |
| 123 | def Compatible (F : Dom G n d) (B : Dom G n c) := ∀ V : Fin n → Dir G c, |
| 124 | F (fun i => reuses h (V i))= (Sheets.mult h : ℝ)* B V |
| 125 | |
| 126 | def stripDeck (i : Fin n) : (Fin n → Deck h) ≃ ↥(upperDeck i h) × Deck h where |
| 127 | toFun f := (⟨fun j => (f j).val-(f i).val,by |
| 128 | refine ⟨fun j => ?_,?_⟩ |
| 129 | · dsimp only; rw [map_sub, show project _ _ = 0 from (f j).property, show project _ _ = 0 from (f i).property,sub_zero] |
| 130 | exact sub_self _⟩, f i) |
| 131 | invFun w j := w.2 + ⟨w.1.val j, w.1.property.1 j⟩ |
| 132 | left_inv f := funext fun j => Subtype.ext (show (f i).val+((f j).val-(f i).val)=(f j).val by abel) |
| 133 | right_inv p := by |
| 134 | have hx : p.1.val i=0 := p.1.property.2 |
| 135 | refine Prod.ext ?_ ?_ |
| 136 | · apply Subtype.ext; funext j; change p.2.val+p.1.val j-(p.2.val+p.1.val i)=_ |
| 137 | rw [hx]; abel |
| 138 | exact Subtype.ext (show p.2.val+p.1.val i=p.2.val by rw [hx, add_zero]) |
| 139 | |
| 140 | lemma is_periodic (i : Fin n) (F : Dom G n d) (B : Dom G n c) (hC : Colorwise F) (hD : Colorwise B) |
| 141 | (he : Uniform F) (hf : Compatible h F B) (X : Fin n→Cell ℤ) : |
| 142 | entries B hD (tor c ∘ X)= ∑' w : ↥(upperDeck i h), entries F hC (sway w.val (tor d ∘ X)) := by |
| 143 | classical |
| 144 | letI := Fintype.ofFinite (Deck h) |
| 145 | letI : Finite (upperDeck i h) := inferInstance |
| 146 | letI := Fintype.ofFinite (upperDeck i h) |
| 147 | rw [tsum_fintype]; apply Subtype.ext; apply ContinuousMultilinearMap.ext; intro v |
| 148 | let J (k : ↥(upperDeck i h)) := (entries F hC (sway k.val (tor d ∘ X))).val v |
| 149 | change _=((eligible G n).subtype (∑ k : ↥(upperDeck i h), entries F hC (sway k.val (tor d ∘ X)))) v |
| 150 | rw [map_sum,_root_.sum_apply] |
| 151 | change _ = ∑ k,J k |
| 152 | have H := hf (fun i => sparse (tor c (X i)) (v i)) |
| 153 | -- compare on occurrence lifts rather than distinct physical coordinates only |
| 154 | simp_rw [sparse_echo h] at H |
| 155 | let q (m : Fin n) (k : Deck h) := sparse (move k.val (tor d (X m))) (v m) |
| 156 | change F (fun i => ∑ j, q i j)=_ at H |
| 157 | rw [ContinuousMultilinearMap.map_sum_finset] at H |
| 158 | have hX : (∑ j : (Fin n → Deck h), F (fun i => q i (j i)))=(mult h:ℝ)*∑ i,J i := by |
| 159 | rw [← Equiv.sum_comp (stripDeck h i).symm,Fintype.sum_prod_type] |
| 160 | have hv (z : upperDeck i h) (t : Deck h) : |
| 161 | F (fun x => q x ((stripDeck h i).symm (z,t) x)) = J z := by |
| 162 | let G := entries F hC |
| 163 | let X' := sway z.val (tor d ∘ X) |
| 164 | have hz : G (move t.val ∘ X')=G X' := entries_cohere F hC he _ _ |
| 165 | apply Eq.trans ?_ (congr_arg (fun k : ColorPart _ _ => k.val v) hz) |
| 166 | change _=(entries F hC _).val v; rw [entries_eval] |
| 167 | apply congr_arg F; funext m; unfold q |
| 168 | congr 2; change move (t.val+_) _=_ |
| 169 | simp only [Function.comp_apply,X',sway,move]; congr 1; abel |
| 170 | simp_rw [hv, Finset.sum_const,Finset.card_univ,nsmul_eq_mul,← Finset.mul_sum,mult,Nat.card_eq_fintype_card] |
| 171 | rw [show (Fintype.piFinset fun _ : Fin n => (Finset.univ: Finset (Deck h)))=Finset.univ by ext; simp,hX] at H |
| 172 | exact (mul_left_cancel₀ (show (↑(mult h):ℝ)≠0 by exact_mod_cast (mult_pos _).ne') H).symm |
| 173 | end period |
| 174 | end YM.AnalyticNext.QuarticMatch.BoxChain |