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.Progress.DIRECTED_RECIPE.Recipe |
| 2 | import YM.Progress.DIRECTED_RECIPE.Vacuum |
| 3 | import YM.Work.C13.Decay |
| 4 | import YM.Work.G07.Calculus |
| 5 | |
| 6 | |
| 7 | /-! |
| 8 | # A scalar without assuming it is continuous |
| 9 | |
| 10 | Pay this part from the full `Q` curve, whose price is at *fixed period*. |
| 11 | No hypothesis here of Borel K arguments being continuous through their |
| 12 | masks. Kernel probabilities still sum over physical tags. In particular |
| 13 | noise at V is common with the actual estimate tasks. Proves positivity, |
| 14 | joint sup/norm comparison usability on these ancestor families at every |
| 15 | admitted parameter. No claim of analyticity or differentiability in β. |
| 16 | -/ |
| 17 | set_option autoImplicit false |
| 18 | noncomputable section |
| 19 | namespace YM.Progress.DirectedRecipe |
| 20 | open Function Set RG Wilson Lattice RG.Shoot MeasureTheory Filter |
| 21 | open scoped Topology BigOperators Matrix.Norms.Frobenius |
| 22 | |
| 23 | variable {G : Gauge} {n : Side} |
| 24 | section Block |
| 25 | variable {c f : Side} (S : StepData c f) |
| 26 | |
| 27 | lemma penalty_cont : Continuous fun p : ℝ × G.El => S.penaltyWeight p.1 p.2 := by |
| 28 | unfold StepData.penaltyWeight; fun_prop |
| 29 | |
| 30 | lemma z_cont : Continuous fun β : ℝ => S.penaltyZ β G := by |
| 31 | refine continuous_iff_continuousAt.mpr fun x => ?_ |
| 32 | let T := Icc (x-1) (x+1) |
| 33 | obtain ⟨C,hC⟩ := (IsCompact.prod (s:=T) isCompact_Icc isCompact_univ).bddAbove_image |
| 34 | ((penalty_cont S (G:=G)).norm.continuousOn) |
| 35 | have he : ContinuousOn (fun β => S.penaltyZ β G) T := by |
| 36 | refine continuousOn_of_dominated (μ:=G.probHaar) (F:=fun β => S.penaltyWeight β) (bound:=fun _ => C) ?_ |
| 37 | (fun y hy => Eventually.of_forall fun i => hC ⟨(y,i),⟨hy,mem_univ _⟩,rfl⟩) (integrable_const C) ?_ |
| 38 | · exact fun _ _ => (S.penaltyWeight_cont _).measurable.aestronglyMeasurable |
| 39 | refine Eventually.of_forall fun i => Continuous.continuousOn ?_ |
| 40 | change Continuous ((fun p : ℝ × G.El => S.penaltyWeight p.1 p.2) ∘ fun b : ℝ => (b,i)) |
| 41 | exact (penalty_cont S).comp (continuous_id.prodMk continuous_const) |
| 42 | have ht : x∈T := ⟨by linarith,by linarith⟩ |
| 43 | exact (he x ht).continuousAt (Icc_mem_nhds (by linarith) (by linarith)) |
| 44 | |
| 45 | lemma noise_banded : Continuous fun v : ℝ × (Config G c × Config G c) => S.noise v.1 v.2.1 v.2.2 := by |
| 46 | unfold StepData.noise |
| 47 | apply continuous_finsetProd |
| 48 | intro k _ |
| 49 | refine Continuous.mul (Continuous.inv₀ ((z_cont S).comp continuous_fst) ?_) ?_ |
| 50 | · exact fun _ => (S.penaltyZ_pos _).ne' |
| 51 | change Continuous ((fun p : ℝ × G.El => S.penaltyWeight p.1 p.2) ∘ |
| 52 | fun v : ℝ × (Config G c × Config G c) => (v.1, v.2.2 k * (v.2.1 k)⁻¹)) |
| 53 | exact (penalty_cont S).comp (by fun_prop) |
| 54 | |
| 55 | lemma oneField (U : Config G f) : Continuous fun p : ℝ × Config G c => S.density p.1 U p.2 := by |
| 56 | unfold StepData.density |
| 57 | apply continuous_finsetSum |
| 58 | intro i _ |
| 59 | refine Continuous.const_mul ?_ _ |
| 60 | change Continuous ((fun v : ℝ × (Config G c × Config G c) => S.noise v.1 v.2.1 v.2.2) ∘ |
| 61 | fun x : ℝ × Config G c => (x.1,(S.prediction U i,x.2))) |
| 62 | exact (noise_banded S).comp (continuous_fst.prodMk (continuous_const.prodMk continuous_snd)) |
| 63 | |
| 64 | /-- Compact real parameters suffice for this, no branching slack (for *V* |
| 65 | at output). -/ |
| 66 | lemma across {T : Set ℝ} (hT : IsCompact T) (hS : S.patch.Branches S.kernel G) : |
| 67 | ∃ C : ℝ, ∀ β∈T, ∀ U : Config G f, ∀ V, S.density β U V ≤ C := by |
| 68 | obtain ⟨C,h⟩ := (IsCompact.prod hT isCompact_univ).bddAbove_image (noise_banded (G:=G) S).continuousOn |
| 69 | refine ⟨C,fun β hb U V => ?_⟩ |
| 70 | calc |
| 71 | _ ≤ ∑ t, S.likelihood U t * C := Finset.sum_le_sum fun i _ => mul_le_mul_of_nonneg_left |
| 72 | (h ⟨(β,(S.prediction U i,V)),⟨hb,mem_univ _⟩,rfl⟩) (S.likelihood_pos _ _) |
| 73 | _ = C := by rw [← Finset.sum_mul,S.chosen hS,one_mul] |
| 74 | end Block |
| 75 | |
| 76 | lemma motion_eval {G : Gauge} {a : Levels G} {T : Set ℝ} {R : Recipe a} |
| 77 | {N m p : ℕ} {Q : ℝ → Rep G (a.S.side m p)} (h : Curve (a.budget m) Q T) |
| 78 | (hg : ∀ x∈T, Lives R N m p (Q x)) (hi : ∀ x∈T, Continuous (Q x).eval) : |
| 79 | ContinuousOn (fun z : ℝ × Config G (a.S.side m p) => (Q z.1).eval z.2) (T ×ˢ univ) := by |
| 80 | rintro ⟨x,U⟩ hx |
| 81 | have hh := eval_varies hx.1 h (fun i hz => (hg i hz).valid) (fun i hz => (hg i hz).point) |
| 82 | (fun i hz => (hg i hz).clip) (fun i hz => (hg i hz).path) |
| 83 | let v := 𝓝[T] x ×ˢ 𝓝 U |
| 84 | apply Metric.tendsto_nhds.mpr |
| 85 | intro ε hp |
| 86 | simp only [nhdsWithin_prod_eq, nhdsWithin_univ] |
| 87 | filter_upwards [(show Tendsto Prod.fst v (𝓝[T] x) from tendsto_fst).eventually (hh (ε/2) (by linarith)), |
| 88 | (Metric.tendsto_nhds.mp ((hi x hx.1).continuousAt.tendsto.comp (show Tendsto Prod.snd v (𝓝 U) from tendsto_snd))) (ε/2) (by linarith)] with i ht hv |
| 89 | have he : dist ((Q i.1).eval i.2) ((Q x).eval i.2) ≤ ε/2 := by rw [dist_comm,dist_eq_norm]; exact ht i.2 |
| 90 | exact lt_of_le_of_lt (dist_triangle _ ((Q x).eval i.2) _) ((add_lt_add_of_le_of_lt he hv).trans_eq (by ring)) |
| 91 | |
| 92 | variable {a : Levels G} {T : Set ℝ} {R : Recipe a} {N m p : ℕ} {Q : ℝ → Rep G (a.S.side (m+1) p)} |
| 93 | variable (hT : IsCompact T) (h : Curve (a.budget (m+1)) Q T) (hv : ∀ x∈T, Lives R N (m+1) p (Q x)) |
| 94 | variable (hc : ∀ x∈T, Continuous (Q x).eval) |
| 95 | include hT h hv hc |
| 96 | |
| 97 | lemma passes_density : ContinuousOn |
| 98 | (fun z : ℝ × Config G (a.S.side m p) => (a.clock.op m p).push (Q z.1).beta (Q z.1).eval z.2) (T ×ˢ univ) := by |
| 99 | let f := a.S.side (m+1) p |
| 100 | let c := a.S.side m p |
| 101 | let S := a.clock.op m p |
| 102 | let A x := (Q x).beta |
| 103 | have hh := motion_eval h hv hc |
| 104 | obtain ⟨C,hC⟩ := (hT.prod isCompact_univ).bddAbove_image hh.norm |
| 105 | obtain ⟨E,hE⟩ := across S (hT.image_of_continuousOn h.beta) (a.blocks m p).branches |
| 106 | let v : ℝ × Config G c → Config G f → ℝ := fun x U => S.density (A x.1) U x.2 • (Q x.1).eval U |
| 107 | refine continuousOn_of_dominated (F:=v) (μ:=prior G f) (bound:=fun _ => max E 1 * C) (fun x hx => ?_) |
| 108 | (fun x hx => Eventually.of_forall fun i => ?_) (integrable_const _) ?_ |
| 109 | · exact (StepData.push_slice (a.transition_mass ..) _ _ |
| 110 | (((Q _).envelope (hv x.1 hx.1).valid).integrable _)).aestronglyMeasurable |
| 111 | · unfold v |
| 112 | rw [norm_smul, Real.norm_of_nonneg (S.density_positive ..)] |
| 113 | refine mul_le_mul ((hE _ ⟨x.1,hx.1,rfl⟩ i x.2).trans (le_max_left ..)) |
| 114 | (hC ⟨(x.1,i),⟨hx.1,mem_univ i⟩,rfl⟩) (norm_nonneg _) (le_max_of_le_right zero_le_one) |
| 115 | refine Eventually.of_forall fun i => ?_ |
| 116 | have hg : ContinuousOn ((fun x : ℝ × Config G c => S.density x.1 i x.2) ∘ |
| 117 | fun x : ℝ × Config G c => (A x.1,x.2)) (T ×ˢ univ) := by |
| 118 | apply ContinuousOn.comp ((oneField S i).continuousOn (s:=univ)) _ (mapsTo_univ _ _) |
| 119 | exact (ContinuousOn.comp h.beta (continuous_fst.continuousOn (s:=T ×ˢ univ)) (fun _ h => h.1)).prodMk |
| 120 | continuous_snd.continuousOn |
| 121 | have hq : ContinuousOn ((fun x : ℝ × Config G f => (Q x.1).eval x.2) ∘ |
| 122 | fun x : ℝ × Config G c => (x.1,i)) (T ×ˢ univ) := |
| 123 | ContinuousOn.comp hh (continuous_fst.prodMk continuous_const).continuousOn (fun _ h => ⟨h.1,mem_univ i⟩) |
| 124 | exact ContinuousOn.mul hg hq |
| 125 | |
| 126 | lemma scalar_curve (hp : ∀ x∈T, 0 < (a.clock.op m p).push (Q x).beta (Q x).eval 1) : |
| 127 | ContinuousOn (fun x => flatRate a m p (Q x)) T := by |
| 128 | have ht : ContinuousOn (fun x => (a.clock.op m p).push (Q x).beta (Q x).eval 1) T := by |
| 129 | change ContinuousOn ((fun z : ℝ × Config G (a.S.side m p) => |
| 130 | (a.clock.op m p).push (Q z.1).beta (Q z.1).eval z.2) ∘ |
| 131 | fun x : ℝ => (x, (1:Config G (a.S.side m p)))) T |
| 132 | exact (passes_density hT h hv hc).comp |
| 133 | (continuous_id.prodMk continuous_const).continuousOn (fun _ h => ⟨h,mem_univ _⟩) |
| 134 | exact ContinuousOn.div_const (ht.log fun x hx => (hp x hx).ne') _ |
| 135 | |
| 136 | end YM.Progress.DirectedRecipe |