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.AnalyticBridge.RELATIVE_LOGDET_TRACE.Alphabet |
| 2 | import YM.AnalyticBridge.RELATIVE_LOGDET_TRACE.Ink |
| 3 | import YM.Push.FREE_RESOLVENT.JetWindows |
| 4 | |
| 5 | /-! |
| 6 | # Compact shift for markings of genuine determinant |
| 7 | |
| 8 | Reparameterizations also used for C^k *with tested positions*. Extensions |
| 9 | needn't meet the flag/mask tests along the arc; x fixed, shift varies freely. |
| 10 | No analytic branch/one-forms on eigenvector choices used. Non-Hermitian |
| 11 | `excess` calculation in separate file. |
| 12 | -/ |
| 13 | set_option autoImplicit false |
| 14 | noncomputable section |
| 15 | namespace YM.AnalyticBridge.RelativeLogdet |
| 16 | open Function Filter Set Matrix MeasureTheory FreeResolvent TestD Ink |
| 17 | open scoped Topology BigOperators Classical Matrix.Norms.Frobenius |
| 18 | |
| 19 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 20 | variable {ι : Type} [Fintype ι] [DecidableEq ι] {A : Square ι} {W : ι→Set ι} {τ : Type*} |
| 21 | |
| 22 | /-- `t` = attenuation. -/ |
| 23 | def blend (A : Square ι) (t : ℝ) := 1+t • (A-1) |
| 24 | |
| 25 | omit [Fintype ι] in |
| 26 | lemma blended (ha : A.PosDef) {t : ℝ} (ht : t∈Ink.interval) : (blend A t).PosDef := by |
| 27 | rcases ht.1.eq_or_lt with h|h |
| 28 | · rw [← h,blend,zero_smul,add_zero]; exact Matrix.PosDef.one |
| 29 | rw [show blend A t=t • A + (1-t) • (1:Square ι) by unfold blend; rw [smul_sub,sub_smul,one_smul]; abel] |
| 30 | exact (ha.smul h).add_posSemidef (Matrix.PosSemidef.one.smul (sub_nonneg.mpr ht.2)) |
| 31 | |
| 32 | lemma turned {u : ℝ} (h : A.PosDef) (hu : 0 ≤ u) : resolve A u = attenuation u • (blend A (attenuation u))⁻¹ := by |
| 33 | let t := attenuation u |
| 34 | let B := blend A t |
| 35 | have ht : (1+u)*t=1 := mul_inv_cancel₀ (ne_of_gt (by positivity)) |
| 36 | have he : t • (A+u • 1)=B := by |
| 37 | unfold B blend; rw [smul_add, smul_sub, smul_smul, show t*u=1-t by linarith only [ht], sub_smul, one_smul]; abel |
| 38 | exact Matrix.inv_eq_right_inv (show (A+u • 1)*(t • B⁻¹)=1 from by rw [Matrix.mul_smul,← Matrix.smul_mul,he, |
| 39 | Matrix.mul_nonsing_inv _ (IsUnit.mk0 _ ((blended h ⟨(attenuation_pos hu).le,attenuation_le hu⟩).det_pos).ne')]) |
| 40 | |
| 41 | def manuscript (A : Square ι) (t : ℝ) := (A-1)*(blend A t)⁻¹ |
| 42 | lemma scored (ha : A.PosDef) {u : ℝ} (hu : 0 ≤ u) : density A u = attenuation u^2 • manuscript A (attenuation u) := by |
| 43 | let t := attenuation u; let B := blend A t |
| 44 | have hh : B*B⁻¹=1 := Matrix.mul_nonsing_inv _ (IsUnit.mk0 _ (blended ha ⟨(attenuation_pos hu).le,attenuation_le hu⟩).det_pos.ne') |
| 45 | have he : B⁻¹+t • ((A-1)*B⁻¹)=1 := by |
| 46 | nth_rw 1 [show B=1+t • (A-1) from rfl, Matrix.add_mul, Matrix.one_mul,Matrix.smul_mul] at hh; exact hh |
| 47 | rw [density,turned ha hu,← smul_sub]; change t • ((1:Square ι)-B⁻¹)=t^2 • ((A-1)*B⁻¹) |
| 48 | rw [← show t • ((A-1)*B⁻¹)=1-B⁻¹ from eq_sub_of_add_eq' he, smul_smul, pow_two] |
| 49 | |
| 50 | omit [Fintype ι] in |
| 51 | lemma adjusted (A : Square ι) (W : Set ι) (t : ℝ) : Next.SectorChange.Schur.principal (blend A t) W=blend (Next.SectorChange.Schur.principal A W) t := by |
| 52 | unfold Next.SectorChange.Schur.principal blend; ext i j; simp [submatrix,Matrix.one_apply,Subtype.ext_iff] |
| 53 | |
| 54 | def adjacent (W : ι → Set ι) (A : Square ι) (t : ℝ) := pie W (blend A t) 0 |
| 55 | lemma adjusted_pie (W : ι→Set ι) (hw : ∀ i, i∈W i) {u : ℝ} (h : A.PosDef) (hu : 0 ≤ u) : pie W A u= attenuation u • adjacent W A (attenuation u) := by |
| 56 | ext i j; by_cases he : i∈W j |
| 57 | · rw [Matrix.smul_apply,pie_read _ _ u _ _ he (hw j),turned (A:=Next.SectorChange.Schur.principal A (W j)) (Matrix.PosDef.submatrix h Subtype.val_injective) hu] |
| 58 | unfold adjacent; rw [pie_read _ _ _ _ _ he (hw j),adjusted, resolve, zero_smul, add_zero]; rfl |
| 59 | unfold adjacent; rw [Matrix.smul_apply,pie_miss _ _ _ _ _ he,pie_miss _ _ _ _ _ he,smul_zero] |
| 60 | |
| 61 | /-- E in manuscripts computed from adjacent via outside. No rerun of |
| 62 | precision tests, including at zero shift. -/ |
| 63 | def afloat (hw : ∀ i, i∈W i) (A : Square ι) (t : ℝ) := (study W hw).outside (A*adjacent W A t) |
| 64 | lemma rises (hw : ∀ i, i∈W i) {u : ℝ} (h : A.PosDef) (hu : 0 ≤ u) : defect W A u = attenuation u • afloat hw A (attenuation u) := by |
| 65 | let T := study W hw |
| 66 | have hh := T.residual A u (fun j => IsUnit.mk0 _ (shift_posDef (h.submatrix Subtype.val_injective) hu).det_pos.ne') |
| 67 | rw [defect_survey _ _ _ hw,hh]; unfold T at * |
| 68 | rw [← pie_inspects,adjusted_pie W hw h hu,Matrix.mul_smul]; exact map_smul (outsideL (study W hw)) _ _ |
| 69 | |
| 70 | omit [DecidableEq ι] [Fintype ι] in |
| 71 | lemma all_saturated (A B : Square ι) (t : ℝ) (i j) {m : ℕ} (x : Fin m→ι) : road (t • A) (t • B) i j x=t^(m+1)*road A B i j x := by |
| 72 | induction m generalizing A i with |
| 73 | | zero => rw [road,road,pow_one]; rfl |
| 74 | | succ m ih => rw [road,road,ih,Matrix.smul_apply,smul_eq_mul,pow_succ _ (m+1)]; ring |
| 75 | |
| 76 | def fleece (hw : ∀ i, i∈W i) (A : Square ι) {n : ℕ} (i) (x : Fin (n+1)→ι) (t : ℝ) := |
| 77 | t^n * -road (adjacent W A t) (-afloat hw A t) i i x |
| 78 | lemma cloth (hw : ∀ i, i∈W i) (A : Square ι) (h : A.PosDef) {n : ℕ} (i) (x : Fin (n+1)→ι) (u : ℝ) (hu : 0 ≤ u) : |
| 79 | scroll W A i x u=attenuation u^2 • fleece hw A i x (attenuation u) := by |
| 80 | unfold scroll fleece; rw [adjusted_pie _ hw h hu,rises hw h hu, ← smul_neg, all_saturated,smul_eq_mul]; ring |
| 81 | |
| 82 | section markings |
| 83 | variable {A : E → Square ι} {B : Square ι} {x : E} {s : ℝ} {k : ℕ} |
| 84 | |
| 85 | omit [DecidableEq ι] in |
| 86 | lemma typed (h : ContDiffAt ℝ k A x) (i j : ι) : ContDiffAt ℝ k (fun y => A y i j) x := (evaluate i j).contDiff.contDiffAt.comp _ h |
| 87 | lemma reflected (h : ContDiffAt ℝ k A x) (he : IsUnit (A x).det) : ContDiffAt ℝ k (fun y => (A y)⁻¹) x := by |
| 88 | rw [show (fun y => (A y)⁻¹)=action A 0 by unfold action resolve; simp] |
| 89 | apply action_smooth _ h; unfold Neat; simpa only [zero_smul,add_zero] |
| 90 | lemma nested (h : ContDiffAt ℝ k A x) : ContDiffAt ℝ k (fun p : E×ℝ => blend (A p.1) p.2) (x,s) := |
| 91 | contDiffAt_const.add (contDiffAt_snd.smul ((h.comp _ contDiffAt_fst).sub contDiffAt_const)) |
| 92 | lemma embedded (h : ContDiffAt ℝ k A x) (he : (A x).PosDef) : Arc (fun p : E × ℝ => manuscript (A p.1) p.2) k x := fun _ ht => |
| 93 | prod_smooth ((h.comp _ contDiffAt_fst).sub contDiffAt_const) (reflected (nested h) (IsUnit.mk0 _ (blended he ht).det_pos.ne')) |
| 94 | |
| 95 | |
| 96 | |
| 97 | omit [DecidableEq ι] in |
| 98 | lemma road_smooth {B : E → Square ι} (hA : ContDiffAt ℝ k A x) (hB : ContDiffAt ℝ k B x) {n : ℕ} (i j) (a : Fin n→ι) : |
| 99 | ContDiffAt ℝ k (fun y => road (A y) (B y) i j a) x := by |
| 100 | induction n generalizing i A with |
| 101 | | zero => simp only [road]; exact typed hA i j |
| 102 | | succ n ih => simp only [road]; exact (typed hA i (a 0)).mul (ih hB _ _) |
| 103 | |
| 104 | |
| 105 | |
| 106 | variable [FiniteDimensional ℝ E] (v : τ → E) |
| 107 | |
| 108 | lemma annotated_log (h : ContDiffAt ℝ k A x) (hw : ∀ᶠ y in 𝓝 x,(A y).PosDef) (i j : ι) : |
| 109 | ContDiffAt ℝ k (fun y => logKernel (A y) i j) x ∧ ∀ l : List τ,l.length ≤ k → |
| 110 | let g u := jet v (fun y=>density (A y) u i j) l x |
| 111 | IntegrableOn g (Ioi 0) ∧ jet v (fun y=>logKernel (A y) i j) l x=∫ u in Ioi 0, g u := |
| 112 | panel_report (g:=fun p => manuscript (A p.1) p.2 i j) (fun _ hs => typed (embedded h hw.self_of_nhds _ hs) i j) |
| 113 | (hw.mono fun y he u (hu : u∈Ioi 0) => show density (A y) u i j= _ from by rw [scored he hu.out.le]; rfl) v |
| 114 | |
| 115 | lemma annotated_base (h : ContDiffAt ℝ k A x) (hw : ∀ᶠ y in 𝓝 x, (A y).PosDef) (hv : ∀ i, i∈W i) (i : ι) : |
| 116 | ContDiffAt ℝ k (fun y => letterBase W (A y) i) x ∧ ∀ l : List τ,l.length ≤ k → |
| 117 | let g u := jet v (fun y=> attenuation u - pie W (A y) u i i) l x |
| 118 | IntegrableOn g (Ioi 0) ∧ jet v (fun y=> letterBase W (A y) i) l x = ∫ u in Ioi 0, g u := by |
| 119 | let j : W i:= ⟨i,hv i⟩; let T : E → Square ↑(W i) := limitTo A Subtype.val |
| 120 | have he := annotated_log (A:=T) v ((selectL (Subtype.val : W i→ι)).contDiff.contDiffAt.comp _ h) |
| 121 | (hw.mono fun y he => he.submatrix Subtype.val_injective) j j |
| 122 | have ht (y : E) (u : ℝ) : attenuation u - pie W (A y) u i i=density (T y) u j j := by |
| 123 | unfold density; rw [Matrix.sub_apply, Matrix.smul_apply, Matrix.one_apply_eq,smul_eq_mul,mul_one,pie_read _ _ _ _ _ (hv i) (hv i)]; rfl |
| 124 | dsimp only; simp_rw [ht, show ∀ y : E, letterBase W (A y) i=logKernel (T y) j j from fun y => base_log hv _ i]; exact he |
| 125 | |
| 126 | omit [FiniteDimensional ℝ E] in |
| 127 | lemma sculpted (h : ContDiffAt ℝ k A x) (he : (A x).PosDef) (hv : ∀ i,i∈W i) (u : ℝ) (hu : 0≤u) : |
| 128 | ContDiffAt ℝ k (fun y=>pie W (A y) u) x := by |
| 129 | apply rectangle_smooth; intro i j |
| 130 | by_cases hx : i∈W j |
| 131 | · simp_rw [pie_read _ _ _ _ _ hx (hv j)] |
| 132 | let I:= W j |
| 133 | let P := limitTo A (Subtype.val : I→ι) |
| 134 | have hp : ContDiffAt ℝ k P x := (selectL (Subtype.val : W j→ι)).contDiff.contDiffAt.comp _ h |
| 135 | exact typed (reflected (hp.add contDiffAt_const) (IsUnit.mk0 _ (shift_posDef (he.submatrix Subtype.val_injective) hu).det_pos.ne')) _ _ |
| 136 | simp_rw [pie_miss _ _ _ _ _ hx]; exact contDiffAt_const |
| 137 | omit [FiniteDimensional ℝ E] in |
| 138 | lemma bust (h : ContDiffAt ℝ k A x) (he : (A x).PosDef) (hv : ∀ i,i∈W i) (u : ℝ) (hu : 0≤u) : ContDiffAt ℝ k (fun y=>defect W (A y) u) x := |
| 139 | (prod_smooth (h.add contDiffAt_const) (sculpted h he hv u hu)).sub contDiffAt_const |
| 140 | omit [FiniteDimensional ℝ E] in |
| 141 | lemma lectern (h : ContDiffAt ℝ k A x) (he : (A x).PosDef) (hv : ∀ i,i∈W i) (u : ℝ) (hu : 0≤u) (i : ι) {n : ℕ} (a : Fin (n+1)→ι) : |
| 142 | ContDiffAt ℝ k (fun y=>scroll W (A y) i a u) x := (road_smooth (sculpted h he hv u hu) (bust h he hv u hu).neg i i a).neg |
| 143 | end markings |
| 144 | end YM.AnalyticBridge.RelativeLogdet |