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.Hessian.Dues |
| 2 | import YM.AnalyticNext.QUARTIC_MATCH.Pre.Staged |
| 3 | |
| 4 | /-! |
| 5 | # Scalar Hessian for pricing on each color separately |
| 6 | -/ |
| 7 | set_option autoImplicit false |
| 8 | noncomputable section |
| 9 | namespace YM.AnalyticNext.QuarticMatch.Hessian |
| 10 | open Filter Function Lattice Laurent Bloch Exterior Matrix Precision RG Work.F06 Wilson |
| 11 | open Pre.Centered YM.Next.Free |
| 12 | open scoped Topology Matrix.Norms.Frobenius ContDiff BigOperators ComplexConjugate InnerProductSpace |
| 13 | variable {c f : Side} (S : StepData c f) |
| 14 | local notation "L" => (S.patch.L.val:ℝ) |
| 15 | local notation "j" => S.patch.J |
| 16 | local notation "D" => d 1 f |
| 17 | local notation "d₀" => d 0 f |
| 18 | local notation "d'" => d 0 c |
| 19 | local notation "Y" => form 1 f |
| 20 | local notation "A" => form 0 f |
| 21 | local notation "V" => form 0 c |
| 22 | local notation "B₀" => palette S |
| 23 | local notation "M" => Precision.mean S |
| 24 | |
| 25 | def tariff (y : Y) (v : V) := (d 0 f).transpose *ᵥ y + (L^2) • ((palette S).transpose *ᵥ v) |
| 26 | lemma tariff_add (x y : Y) (u v : V) : tariff S (x+y) (u+v)=tariff S x u+tariff S y v := by |
| 27 | unfold tariff; simp_rw [mulVec_add, smul_add]; abel |
| 28 | lemma tariff_smul (w : ℝ) (y : Y) (v : V) : tariff S (w • y) (w • v)=w • tariff S y v := by |
| 29 | unfold tariff; rw [Matrix.mulVec_smul, Matrix.mulVec_smul, smul_comm (L^2),smul_add] |
| 30 | lemma swapOffer (y : Y) (v : V) : upkeep S (offer y) (offer v)=offer (tariff S y v) := by |
| 31 | unfold upkeep tariff drawC; rw [← approach_H, ← approach_H,← offer_mat, ← offer_mat]; funext i; simp [offer] |
| 32 | |
| 33 | def gain (y : Y) (v : V) := ell2 (D*ᵥ y)+ell2 ((d 0 f).transpose *ᵥ y)+ell2 y/L+ell2 v |
| 34 | lemma swap_gain (y : Y) (v : V) : rent S (offer y) (offer v) = gain S y v := by |
| 35 | rw [rent,drawC,drawC,← approach_H,← offer_mat,← offer_mat,offer_ell,offer_ell,offer_ell,offer_ell]; rfl |
| 36 | lemma offer_sub {i : Type*} (x y : i→ℝ) : offer (x-y)=offer x-offer y := by funext k; simp [offer] |
| 37 | lemma strain (y : Y) (v : V) : gain S y v ≤ yard j*(ell2 (D*ᵥ y) + ell2 (M*ᵥ y-d'*ᵥ v)+ell2 (tariff S y v)) := by |
| 38 | have he := energetic S (offer y) (offer v); |
| 39 | rw [swapOffer S,swap_gain S,drawC,drawC,← offer_mat,← offer_mat, ← offer_mat,← offer_sub, offer_ell,offer_ell,offer_ell] at he; exact he |
| 40 | lemma tari (y : Y) (v : V) : ell2 (tariff S y v) ≤ gain S y v := by rw [← offer_ell,← swapOffer]; exact (uptime ..).trans_eq (swap_gain ..) |
| 41 | |
| 42 | lemma given (x : A) : ∃ y : A, tariff S (-(d₀*ᵥ y)) (-(B₀*ᵥ y))=x := by |
| 43 | let T : A→ₗ[ℝ] A := { |
| 44 | toFun := fun y => tariff S (-(d₀*ᵥ y)) (-(B₀*ᵥ y)) |
| 45 | map_add' y v := by simp_rw [Matrix.mulVec_add, neg_add]; exact tariff_add .. |
| 46 | map_smul' s y := by simp_rw [Matrix.mulVec_smul, ← smul_neg]; exact tariff_smul .. } |
| 47 | apply (LinearMap.injective_iff_surjective (f:=T)).mp ?_ x |
| 48 | apply (injective_iff_map_eq_zero _).mpr |
| 49 | intro y hy |
| 50 | have hz : upkeep S (drawC f 0*ᵥ(offer y)) (approached B₀*ᵥ(offer y))=0 := by |
| 51 | change tariff S (-(d₀*ᵥ y)) (-(B₀*ᵥ y))=0 at hy |
| 52 | have h0 : tariff S (d₀*ᵥ y) (B₀*ᵥ y)=0 := by simpa only [tariff,mulVec_neg,smul_neg,← neg_add,neg_eq_zero] using hy |
| 53 | rw [drawC,← offer_mat,← offer_mat,swapOffer,h0]; funext i; simp [offer] |
| 54 | by_contra h |
| 55 | have he := consume S (offer y); rw [hz,ell_zero,mul_zero] at he |
| 56 | have hh := (house S (offer y)).trans (mul_nonpos_of_nonneg_of_nonpos (resident_pos j).le he); |
| 57 | rw [offer_ell] at hh; exact (div_pos (ell_pos.mpr h) (side_pos S.patch.L)).not_ge hh |
| 58 | |
| 59 | def reserve (i : ℕ) (a k : ℝ) := min a (min k 1) / (3*yard i ^ 2) |
| 60 | lemma reserve_pos (i : ℕ) (a k : ℝ) (ha : 0<a) (hk : 0<k) : 0 < reserve i a k := div_pos (lt_min ha (lt_min hk zero_lt_one)) |
| 61 | (mul_pos (by norm_num) (pow_pos (yard_pos _) _)) |
| 62 | |
| 63 | /-- Factor form for CT pricing. -/ |
| 64 | def baseline (H : Precision.Bed) (x y : Y) (u v : V) := dotProduct (D*ᵥ x) (H.metric.acts f *ᵥ(D*ᵥ y)) + |
| 65 | S.kernel.penalty * dotProduct (M*ᵥ x-d'*ᵥ u) (M*ᵥ y-d'*ᵥ v) + |
| 66 | dotProduct (tariff S x u) (tariff S y v) |
| 67 | lemma flatBill (H : Precision.Bed) (x y : Y) (u v : V) : baseline S H x y u v=secondOne S H x y u v+ |
| 68 | dotProduct (tariff S x u) (tariff S y v) := by |
| 69 | rw [baseline,secondOne,Precision.K, ← Matrix.mulVec_mulVec,← Matrix.mulVec_mulVec, dotProduct_mulVec x,Matrix.vecMul_transpose] |
| 70 | |
| 71 | lemma positive_gain (x : Y) (u : V) : 0 ≤ gain S x u := by |
| 72 | unfold gain |
| 73 | exact add_nonneg (add_nonneg (add_nonneg (ell_nonneg _) (ell_nonneg _)) (div_nonneg (ell_nonneg _) (by positivity))) (ell_nonneg _) |
| 74 | lemma enter (x : Y) (u : V) (h : x≠0 ∨ u≠0) : 0 < gain S x u := by |
| 75 | have hb := ell_nonneg x; have hL := side_pos S.patch.L; |
| 76 | unfold gain |
| 77 | rcases h with v|v |
| 78 | · exact add_pos_of_pos_of_nonneg |
| 79 | (add_pos_of_nonneg_of_pos (add_nonneg (ell_nonneg _) (ell_nonneg _)) (div_pos (ell_pos.mpr v) hL)) (ell_nonneg _) |
| 80 | exact add_pos_of_nonneg_of_pos (add_nonneg (add_nonneg (ell_nonneg _) (ell_nonneg _)) (div_nonneg hb hL.le)) (ell_pos.mpr v) |
| 81 | |
| 82 | lemma wins {p : Clip} {u a : ℝ} {H : Precision.Bed} (h : Floor H p f a u) (ha : 0 < a) |
| 83 | (x : Y) (v : V) : reserve j a S.kernel.penalty * gain S x v ^ 2 ≤ baseline S H x x v v := by |
| 84 | have he := strain S x v |
| 85 | rw [baseline, real_count,real_count] |
| 86 | apply le_trans _ (add_le_add (add_le_add ((show _ from (h.uniform.1 _).1)) le_rfl) le_rfl) |
| 87 | rw [real_count] |
| 88 | let k := S.kernel.penalty; let m := min a (min k 1) |
| 89 | have hm : 0 < m := lt_min ha (lt_min S.kernel.penalty_pos zero_lt_one) |
| 90 | have hj : 0 < yard j := yard_pos j |
| 91 | have hu := mul_le_mul_of_nonneg_left (pow_le_pow_left₀ (positive_gain ..) he 2) (le_of_lt (reserve_pos j _ _ ha S.kernel.penalty_pos)) |
| 92 | refine hu.trans ?_ |
| 93 | let E := ell2 (D*ᵥ x); let N := ell2 (M*ᵥ x-d'*ᵥ v); let z := ell2 (tariff S x v) |
| 94 | change m / (3*yard j^2)*(yard j*(E+N+z))^2 ≤ a*E^2 + k*N^2+z^2 |
| 95 | calc |
| 96 | _ = m*((E+N+z)^2/3) := by field_simp |
| 97 | _ ≤ m*(E^2+N^2+z^2) := mul_le_mul_of_nonneg_left (by nlinarith [sq_nonneg (E-N),sq_nonneg (E-z),sq_nonneg (z-N)]) hm.le |
| 98 | _ ≤ _ := by |
| 99 | simp_rw [mul_add]; apply add_le_add |
| 100 | · apply add_le_add (mul_le_mul_of_nonneg_right (min_le_left ..) (sq_nonneg _)); exact mul_le_mul_of_nonneg_right |
| 101 | ((min_le_right ..).trans (min_le_left ..)) (sq_nonneg _) |
| 102 | exact mul_le_of_le_one_left (sq_nonneg _) ((min_le_right ..).trans (min_le_right ..)) |
| 103 | end YM.AnalyticNext.QuarticMatch.Hessian |