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.Push.LOOP_COEFFICIENT.Completion |
| 2 | import YM.Push.LOOP_COEFFICIENT.Pinning |
| 3 | |
| 4 | /-! |
| 5 | # Jacobian from actual free slice-chart coordinates plus gauge parameters |
| 6 | -/ |
| 7 | set_option autoImplicit false |
| 8 | noncomputable section |
| 9 | namespace YM.Push.Loops |
| 10 | open Lattice Wilson RG Precision Tree Matrix Function NormedSpace Filter |
| 11 | open scoped Topology ContDiff BigOperators Matrix.Norms.Frobenius |
| 12 | variable {c f : Side} {G : Gauge} {S : StepData c f} |
| 13 | |
| 14 | abbrev Stem (G : Gauge) (F : Forest S.ratio) := Array G F.Free |
| 15 | abbrev Pack (F : Forest S.ratio) (G : Gauge) := (SiteKey G f ⊕ Key F G) → ℝ |
| 16 | |
| 17 | def mounted (F : Forest S.ratio) (V : Config G c) (b : AxisChart G F) : Loops.Inputs G c f := |
| 18 | Sum.elim (lifting F V b) (fun _ => 1) |
| 19 | |
| 20 | lemma mounted_pins (F : Forest S.ratio) (V : Config G c) (b : AxisChart G F) (x) : mounted F V b (fixedSlot F x)=1 := by |
| 21 | unfold mounted fixedSlot; split |
| 22 | · exact F.on_tree _ ⟨_,(F.trunk_mem_iff _).mpr ⟨x,‹_›,rfl⟩⟩ |
| 23 | rfl |
| 24 | |
| 25 | lemma mounted_free (F : Forest S.ratio) (V : Config G c) (b : AxisChart G F) (x : F.Free) : |
| 26 | mounted F V b (.inl x.val) = G.lieExp (b x) * replica S.ratio V x := F.off_tree _ x |
| 27 | |
| 28 | abbrev inGauge {F : Forest S.ratio} (z : Pack F G) : Nodes G f := z ∘ Sum.inl |
| 29 | abbrev inField (F : Forest S.ratio) (z : Pack F G) : AxisChart G F := paint G F.Free (z ∘ Sum.inr) |
| 30 | |
| 31 | def arrival {F : Forest S.ratio} (b : AxisChart G F) : Pack F G := Sum.elim 0 (fromColor G F.Free b) |
| 32 | |
| 33 | def ride (F : Forest S.ratio) (V : Config G c) (z : Pack F G) := |
| 34 | gaugeJoint S (vary 1 (inGauge z)) 1 (mounted F V (inField F z)) |
| 35 | |
| 36 | def steering (F : Forest S.ratio) (V : Config G c) (b : AxisChart G F) (z : Pack F G) : Loops.Dual G c f := |
| 37 | displacement (mounted F V b) (ride F V z) |
| 38 | |
| 39 | variable (F : Forest S.ratio) (V : Config G c) (b : AxisChart G F) |
| 40 | |
| 41 | lemma steering_zero : steering F V b (arrival b) = 0 := by |
| 42 | simp only [steering,ride,inField, show (arrival b ∘ Sum.inr)=(paint G F.Free).symm b from rfl, |
| 43 | show inGauge (arrival b)=0 from rfl, LinearEquiv.apply_symm_apply,vary_zero,gaugeJoint_one,displacement_self] |
| 44 | |
| 45 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 46 | |
| 47 | lemma mounted_diff {V : E → Config G c} {y : E → AxisChart G F} {x : E} |
| 48 | (hy : ContDiffAt ℝ ω y x) (hV : MatDiffAt V x) : MatDiffAt (fun t => mounted F (V t) (y t)) x := by |
| 49 | rintro (i|i) |
| 50 | · by_cases h : i ∈ F.trunks |
| 51 | · have he t : mounted F (V t) (y t) (.inl i) = 1 := F.on_tree _ ⟨_,h⟩ |
| 52 | simp only [he]; exact contDiffAt_const |
| 53 | let j : F.Free := ⟨i,h⟩ |
| 54 | simp only [show ∀ t, mounted F (V t) (y t) (.inl i) = _ from fun t => mounted_free F (V t) (y t) j, G.mat_mul] |
| 55 | refine (G.exp_jet.contDiffAt.comp _ ((contDiff_apply ℝ _ j).contDiffAt.comp x hy)).mul ?_ |
| 56 | unfold replica; split |
| 57 | · exact contDiffAt_const |
| 58 | exact hV _ |
| 59 | exact contDiffAt_const |
| 60 | |
| 61 | lemma ride_diff (x : Pack F G) : MatDiffAt (ride F V) x := gaugeJoint_diff |
| 62 | (mounted_diff F ((fromColor G F.Free).symm.contDiff.contDiffAt.comp (f:=fun a => a ∘ Sum.inr) x (contDiffAt_pi.mpr fun _ => contDiffAt_apply ..)) (matDiffAt_const _)) |
| 63 | (matDiffAt_const _) ((matDiffAt_const _).vary (contDiffAt_pi.mpr fun _ => contDiffAt_apply ..)) |
| 64 | |
| 65 | lemma ride_arrive : ride F V (arrival b) = mounted F V b := by |
| 66 | rw [ride, show inField F (arrival b)=b from (paint G F.Free).apply_symm_apply b,show inGauge (arrival b) = 0 from rfl,vary_zero,gaugeJoint_one] |
| 67 | |
| 68 | lemma steering_diff : ContDiffAt ℝ ω (steering F V b) (arrival b) := |
| 69 | (matDiffAt_const _ ).displacement (ride_diff F V (arrival b)) (ride_arrive ..) |
| 70 | |
| 71 | def steered := linearAt (steering F V b) (arrival b) |
| 72 | |
| 73 | def thrown := linearAt (fun z : Stem G F => displacement (mounted F V b) (mounted F V (paint G F.Free z))) (fromColor G F.Free b) |
| 74 | |
| 75 | lemma steered_eq : steered F V b = sides (R_tot S (mounted F V b)) (thrown F V b) := by |
| 76 | ext i j |
| 77 | cases j with |
| 78 | | inl j => |
| 79 | let H := fun z : Nodes G f => Sum.elim z (fromColor G F.Free b) |
| 80 | have hd : HasFDerivAt H (ContinuousLinearMap.pi (Sum.elim (fun i => ContinuousLinearMap.proj (R:=ℝ) i) (fun _ => 0))) 0 := by |
| 81 | refine hasFDerivAt_pi.mpr ?_; rintro (i|i) |
| 82 | · exact (ContinuousLinearMap.proj (R:=ℝ) (φ:=fun _ => ℝ) i).hasFDerivAt |
| 83 | exact hasFDerivAt_const .. |
| 84 | have he : steering F V b ∘ H = fun v => displacement (mounted F V b) (gaugeJoint S (vary 1 v) 1 (mounted F V b)) := by |
| 85 | ext1 v; dsimp only [steering,ride,Function.comp_apply] |
| 86 | rw [show inField F (H v)=b from (paint G F.Free).apply_symm_apply _]; rfl |
| 87 | have ht : DifferentiableAt ℝ (steering F V b) (H 0) := (steering_diff ..).differentiableAt (by simp) |
| 88 | rw [steered, sides_left,← joint_generator, ← he, linearAt,linearAt,fderiv_comp 0 ht hd.differentiableAt,hd.fderiv] |
| 89 | rw [LinearMap.toMatrix'_apply,LinearMap.toMatrix'_apply] |
| 90 | apply congr_fun (DFunLike.congr_arg (fderiv ℝ (steering F V b) (arrival b)) ?_) i |
| 91 | ext (x|x) <;> simp [Pi.single_apply] |
| 92 | | inr j => |
| 93 | let H := fun z : Stem G F => (Sum.elim 0 z : Pack F G) |
| 94 | have hd : HasFDerivAt H (ContinuousLinearMap.pi (Sum.elim (fun _ => 0) (fun i => ContinuousLinearMap.proj (R:=ℝ) i))) (fromColor G F.Free b) := by |
| 95 | refine hasFDerivAt_pi.mpr ?_; rintro (i|i) |
| 96 | · exact hasFDerivAt_const .. |
| 97 | exact (ContinuousLinearMap.proj (R:=ℝ) (φ:=fun _ => ℝ) i).hasFDerivAt |
| 98 | have he : steering F V b ∘ H = fun v => displacement (mounted F V b) (mounted F V (paint G F.Free v)) := by |
| 99 | ext1 v; dsimp only [steering,ride,Function.comp_apply] |
| 100 | rw [show inGauge (H v)=0 from rfl,vary_zero,gaugeJoint_one]; rfl |
| 101 | have ht : DifferentiableAt ℝ (steering F V b) (H (fromColor G F.Free b)) := (steering_diff ..).differentiableAt (by simp) |
| 102 | rw [steered,sides_right, thrown, ← he,linearAt,linearAt, fderiv_comp _ ht hd.differentiableAt,hd.fderiv] |
| 103 | rw [LinearMap.toMatrix'_apply, LinearMap.toMatrix'_apply] |
| 104 | apply congr_fun (DFunLike.congr_arg (fderiv ℝ (steering F V b) (arrival b)) ?_) i |
| 105 | ext (x|x) <;> simp [Pi.single_apply] |
| 106 | |
| 107 | lemma thrown_pins (x : Site f) (a : G.ColorIndex) (j) : thrown F V b (fixedSlot F x,a) j = 0 := by |
| 108 | let L := (ContinuousLinearMap.proj (R:=ℝ) (φ:=fun _ : JointKey G c f => ℝ) (fixedSlot F x,a)) |
| 109 | let H := fun z : Stem G F => displacement (mounted F V b) (mounted F V (paint G F.Free z)) |
| 110 | have h : DifferentiableAt ℝ H (fromColor G F.Free b) := ((matDiffAt_const _).displacement |
| 111 | (mounted_diff F ((fromColor G F.Free).symm.contDiff.contDiffAt (x:=fromColor G F.Free b)) (matDiffAt_const V)) |
| 112 | (by rw [ContinuousLinearEquiv.symm_apply_apply])).differentiableAt (by simp) |
| 113 | have he := fderiv_comp _ L.differentiableAt h |
| 114 | rw [L.fderiv,show L ∘ H = fun _ : Stem G F => 0 by |
| 115 | ext1 z; change delta _ _ a = _; rw [mounted_pins,mounted_pins,delta_self]; rfl, |
| 116 | fderiv_fun_const] at he |
| 117 | exact DFunLike.congr_fun he.symm _ |
| 118 | |
| 119 | lemma thrown_free (j k : Key F G) : thrown F V b (Sum.inl j.1.val,j.2) k = |
| 120 | linearAt (fun z => displacement (vary (1:PatchField G F.Free) (fromColor G F.Free b)) (vary 1 z)) |
| 121 | (fromColor G F.Free b) j k := by |
| 122 | let a := fromColor G F.Free b |
| 123 | let L := (LinearMap.pi (R:=ℝ) fun j : Key F G => LinearMap.proj (φ:=fun _ => ℝ) ((Sum.inl j.1.val,j.2) : JointKey G c f)).toContinuousLinearMap |
| 124 | let H := fun z : Stem G F => displacement (mounted F V b) (mounted F V (paint G F.Free z)) |
| 125 | have h : DifferentiableAt ℝ H a := ((matDiffAt_const _).displacement |
| 126 | (mounted_diff F ((fromColor G F.Free).symm.contDiff.contDiffAt (x:=a)) (matDiffAt_const V)) |
| 127 | (by unfold a; rw [ContinuousLinearEquiv.symm_apply_apply])).differentiableAt (by simp) |
| 128 | have he : L ∘ H = fun z : Stem G F => displacement (vary (1:PatchField G F.Free) a) (vary 1 z) := by |
| 129 | funext z i |
| 130 | change delta _ _ i.2 = delta _ _ i.2 |
| 131 | rw [mounted_free,mounted_free,vary_one,vary_one, show paint G F.Free a=b from (paint G F.Free).apply_symm_apply _] |
| 132 | unfold delta; group |
| 133 | rw [← he,linearAt,fderiv_comp _ L.differentiableAt h,L.fderiv]; rfl |
| 134 | |
| 135 | section exp |
| 136 | open ContinuousLinearMap |
| 137 | variable {m : Type} [Fintype m] [DecidableEq m] |
| 138 | |
| 139 | lemma displacement_det {P : ChartRatio G} (hp : LocalRatio P) (b : m → G.Color) (hb : ∀ i, b i∈Metric.ball 0 P.radius) : |
| 140 | let a := fromColor G m b |
| 141 | |(linearAt (fun z => displacement (vary (1:PatchField G m) a) (vary 1 z)) a).det| = ∏ i, P.J (b i) := by |
| 142 | intro a |
| 143 | let L := fromColor G m |
| 144 | let H (i : m) (z : G.Color) := delta (G.lieExp (b i)) (G.lieExp z) |
| 145 | have he (i : m) : DifferentiableAt ℝ (H i) (b i) := (delta_diff contDiffAt_const G.exp_jet.contDiffAt rfl).differentiableAt (by simp) |
| 146 | let W := ContinuousLinearMap.pi fun i => (fderiv ℝ (H i) (b i)).comp (.proj i) |
| 147 | have ht : HasFDerivAt (fun z : m → G.Color => fun i => H i (z i)) W b := |
| 148 | hasFDerivAt_pi.mpr fun i => (he i).hasFDerivAt.comp (g:=H i) b (ContinuousLinearMap.proj (R:=ℝ) (φ:=fun _ => G.Color) i).hasFDerivAt |
| 149 | have hh : (fun z => displacement (vary (1:PatchField G m) a) (vary 1 z)) = |
| 150 | L ∘ (fun z i => H i (z i)) ∘ L.symm := by |
| 151 | funext z ⟨i,j⟩; change delta _ _ j = _ |
| 152 | rw [vary_one,vary_one,show paint G m a=b from (paint G m).apply_symm_apply b]; rfl |
| 153 | have hd : HasFDerivAt _ (L.toContinuousLinearMap.comp (W.comp L.symm.toContinuousLinearMap)) a := |
| 154 | L.hasFDerivAt.comp a ((show HasFDerivAt _ W (L.symm a) by simpa [a,L] using ht).comp a L.symm.hasFDerivAt) |
| 155 | rw [linearAt_det, hh, hd.fderiv, ContinuousLinearMap.det, ContinuousLinearMap.toLinearMap_comp,ContinuousLinearMap.toLinearMap_comp] |
| 156 | calc |
| 157 | _ = |W.det| := congr_arg abs (LinearMap.det_conj W.toLinearMap L.toLinearEquiv) |
| 158 | _ = ∏ i, |(fderiv ℝ (H i) (b i)).det| := by unfold W; rw [ContinuousLinearMap.det_pi,Finset.abs_prod] |
| 159 | _ = _ := ?_ |
| 160 | exact Finset.prod_congr rfl fun i _ => exp_delta_det hp (hb i) |
| 161 | end exp |
| 162 | |
| 163 | lemma steered_det {P : ChartRatio G} (hp : LocalRatio P) (hb : ∀ i, b i ∈ Metric.ball 0 P.radius) : |
| 164 | |((steered F V b).submatrix (pins F G) id).det| = ∏ i, P.J (b i) := by |
| 165 | let A := (steered F V b).submatrix (pins F G) id |
| 166 | have h1 : A.toBlocks₁₁ = (R_tot S (mounted F V b)).submatrix (pins F G ∘ Sum.inl) id := by |
| 167 | ext i j; change steered _ _ _ _ _ = _; rw [steered_eq]; rfl |
| 168 | have h2 : A.toBlocks₁₂ = 0 := by |
| 169 | ext i j; change steered _ _ _ _ _ = _; rw [steered_eq]; exact thrown_pins F V b i.1 i.2 j |
| 170 | have h3 : A.toBlocks₂₂ = linearAt (fun z => displacement (vary (1:PatchField G F.Free) (fromColor G F.Free b)) (vary 1 z)) |
| 171 | (fromColor G F.Free b) := by |
| 172 | ext i j; change steered _ _ _ _ _ = _; rw [steered_eq]; exact thrown_free F V b i j |
| 173 | change |A.det|=_ |
| 174 | rw [← A.fromBlocks_toBlocks,h1,h2,h3, det_fromBlocks_zero₁₂,abs_mul,pins_det F _ (mounted_pins F V b),one_mul]; exact displacement_det hp b hb |
| 175 | end YM.Push.Loops |