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.Next.EXTRACTION.Tails |
| 2 | import YM.Work.A15 |
| 3 | |
| 4 | /-! |
| 5 | # Two elementary product calculations for actual pullbacks |
| 6 | |
| 7 | Split finite products by read sets: first probability Haar links reweighted |
| 8 | with independent (tag-conditional) noises and then weighted tag sums with |
| 9 | individual mass one. Use internally `integral_prod_mul`; keep envelope |
| 10 | hypotheses at the external integral ports so no integrability is in question. |
| 11 | -/ |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | namespace YM.Push.GridApprox |
| 15 | open Function Set MeasureTheory RG |
| 16 | open scoped Topology BigOperators |
| 17 | |
| 18 | /-- Local dependence on a finite product. Not a factorization assumption. -/ |
| 19 | def Reads {ι X Y : Type*} (s : Set ι) (F : (ι → X) → Y) : Prop := ∀ x y, EqOn x y s → F x = F y |
| 20 | |
| 21 | variable {ι X : Type*} [Fintype ι] |
| 22 | |
| 23 | section split |
| 24 | variable {s : Set ι} [DecidablePred (·∈s)] |
| 25 | private abbrev cutting (s : Set ι) [DecidablePred (·∈s)] := |
| 26 | Equiv.piEquivPiSubtypeProd (·∈s) (fun _ => X) |
| 27 | |
| 28 | omit [Fintype ι] in |
| 29 | private lemma split_l {Y : Type*} {F : (ι → X) → Y} (h : Reads s F) (x) (y) (z) : |
| 30 | F ((cutting (X:=X) s).symm (x,y)) = F ((cutting (X:=X) s).symm (x,z)) := by |
| 31 | apply h _ _ |
| 32 | intro i hi |
| 33 | simp [cutting, Equiv.piEquivPiSubtypeProd_symm_apply, hi] |
| 34 | |
| 35 | omit [Fintype ι] in |
| 36 | private lemma split_r {Y : Type*} {F : (ι → X) → Y} (h : Reads sᶜ F) (x) (y) (z) : |
| 37 | F ((cutting (X:=X) s).symm (x,y)) = F ((cutting (X:=X) s).symm (z,y)) := by |
| 38 | apply h _ _ |
| 39 | intro i hi |
| 40 | simp [cutting, Equiv.piEquivPiSubtypeProd_symm_apply,show i ∉ s from hi] |
| 41 | |
| 42 | private lemma parts_split (q : ι → X → ℂ) (F W : (ι → X) → ℂ) |
| 43 | (hF : Reads s F) (hW : Reads sᶜ W) (a : Subtype (·∈s) → X) (b : Subtype (fun i => ¬ i ∈ s) → X) |
| 44 | (x : Subtype (·∈s) → X) (y : Subtype (fun i => ¬ i ∈ s) → X) : |
| 45 | let u := (cutting (X:=X) s).symm (x,y) |
| 46 | (∏ i, q i (u i)) * (F u * W u) = |
| 47 | ((∏ i : Subtype (·∈s), q i.val (x i)) * F ((cutting s).symm (x,b))) * |
| 48 | ((∏ i : Subtype (fun i => ¬ i ∈ s), q i.val (y i)) * W ((cutting s).symm (a,y))) := by |
| 49 | intro u |
| 50 | rw [← Fintype.prod_subtype_mul_prod_subtype (fun i => i∈s)] |
| 51 | have hl (i : Subtype (·∈s)) : u i.val=x i := by simp [u,cutting,Equiv.piEquivPiSubtypeProd_symm_apply, i.prop] |
| 52 | have hr (i : Subtype (fun i => ¬ i∈s)) : u i.val=y i := by simp [u,cutting,Equiv.piEquivPiSubtypeProd_symm_apply, i.prop] |
| 53 | have hv : F u = _ := split_l hF x y b; have he : W u = _ := split_r hW x y a |
| 54 | simp only [hl,hr,hv,he]; ring |
| 55 | end split |
| 56 | |
| 57 | section pi |
| 58 | |
| 59 | variable [MeasurableSpace X] (μ : Measure X) [IsFiniteMeasure μ] |
| 60 | |
| 61 | private lemma integrate_split (s : Set ι) [DecidablePred (·∈s)] |
| 62 | (q : ι → X → ℂ) (F W : (ι → X) → ℂ) |
| 63 | (hF : Reads s F) (hW : Reads sᶜ W) (a : Subtype (·∈s) → X) (b : Subtype (fun i => ¬ i ∈ s) → X) : |
| 64 | (∫ u : ι → X, (∏ i, q i (u i)) * (F u * W u) ∂(Measure.pi fun _ => μ)) = |
| 65 | (∫ x, (∏ i : Subtype (·∈s), q i.val (x i)) * F ((cutting s).symm (x,b)) ∂(Measure.pi fun _ => μ)) * |
| 66 | (∫ y, (∏ i : Subtype (fun i => ¬ i∈s), q i.val (y i)) * W ((cutting s).symm (a,y)) ∂(Measure.pi fun _ => μ)) := by |
| 67 | let e := MeasurableEquiv.piEquivPiSubtypeProd (fun _ : ι => X) (·∈s) |
| 68 | have he := measurePreserving_piEquivPiSubtypeProd (fun _ => μ) (·∈s) |
| 69 | let p (u : ι → X) := (∏ i, q i (u i)) * (F u * W u) |
| 70 | change (∫ u, p u ∂(Measure.pi fun _ => μ)) = _ |
| 71 | rw [← (MeasurePreserving.symm e he).integral_comp e.symm.measurableEmbedding p] |
| 72 | have hh z : p (e.symm z) = ((∏ i : Subtype (·∈s), q i.val (z.1 i)) * F ((cutting s).symm (z.1,b))) * |
| 73 | ((∏ i : Subtype (fun i => ¬ i∈s), q i.val (z.2 i)) * W ((cutting s).symm (a,z.2))) := |
| 74 | parts_split q F W hF hW a b z.1 z.2 |
| 75 | simp_rw [hh]; exact integral_prod_mul (fun x => (∏ i : Subtype (·∈s), q i.val (x i)) * F ((cutting s).symm (x,b))) |
| 76 | (fun y => (∏ i : Subtype (fun i => ¬ i∈s), q i.val (y i)) * W ((cutting s).symm (a,y))) |
| 77 | |
| 78 | variable {μ} {s t : Set ι} [Nonempty X] {F W : (ι → X) → ℂ} {q q' : ι → X → ℂ} |
| 79 | |
| 80 | private lemma integrates (hF : Reads s F) (q : ι → X → ℂ) (hq : ∀ i, ∫ x, q i x ∂μ = 1) |
| 81 | [DecidablePred (·∈s)] (b : Subtype (fun i => ¬ i ∈ s) → X) : |
| 82 | (∫ u : ι → X, (∏ i, q i (u i)) * F u ∂(Measure.pi fun _ => μ)) = |
| 83 | ∫ x, (∏ i : Subtype (·∈s), q i.val (x i)) * F ((cutting s).symm (x,b)) ∂(Measure.pi fun _ => μ) := by |
| 84 | let a := fun _ : Subtype (·∈s) => Classical.arbitrary X |
| 85 | simpa only [mul_one, integral_fintype_prod_eq_prod (fun i : Subtype (fun i => ¬ i∈s) => q i.val), |
| 86 | hq, Finset.prod_const_one] using integrate_split μ s q F (fun _ => 1) hF (fun _ _ _ => rfl) a b |
| 87 | |
| 88 | lemma pi_ignores (hF : Reads s F) (_ : Envelope F) |
| 89 | (hq : ∀ i, ∫ x, q i x ∂μ = 1) (hq' : ∀ i, ∫ x, q' i x ∂μ = 1) |
| 90 | (_ : ∀ i, Envelope (q i)) (_ : ∀ i, Envelope (q' i)) (h : EqOn q q' s) : |
| 91 | (∫ u : ι → X, (∏ i, q i (u i)) * F u ∂(Measure.pi fun _ => μ)) = |
| 92 | ∫ u : ι → X, (∏ i, q' i (u i)) * F u ∂(Measure.pi fun _ => μ) := by |
| 93 | classical |
| 94 | let b := fun _ : Subtype (fun i => ¬ i∈s) => Classical.arbitrary X |
| 95 | rw [integrates hF q hq b,integrates hF q' hq' b] |
| 96 | simp only [h (Subtype.prop _)] |
| 97 | |
| 98 | lemma pi_independent (hF : Reads s F) (hW : Reads t W) (h : Disjoint s t) |
| 99 | (hq : ∀ i, ∫ x, q i x ∂μ = 1) (_ : ∀ i, Envelope (q i)) (_ : Envelope F) (_ : Envelope W) : |
| 100 | (∫ u : ι → X, (∏ i, q i (u i)) * (F u * W u) ∂(Measure.pi fun _ => μ)) = |
| 101 | (∫ u : ι → X, (∏ i, q i (u i)) * F u ∂(Measure.pi fun _ => μ)) * |
| 102 | (∫ u : ι → X, (∏ i, q i (u i)) * W u ∂(Measure.pi fun _ => μ)) := by |
| 103 | classical |
| 104 | let a := fun _ : Subtype (·∈s) => Classical.arbitrary X |
| 105 | let b := fun _ : Subtype (fun i => ¬ i∈s) => Classical.arbitrary X |
| 106 | have he : Reads sᶜ W := fun x y hxy => hW x y (hxy.mono (fun i hi hv => Set.disjoint_left.1 h hv hi)) |
| 107 | have hl := integrate_split μ s q (fun _ => 1) W (fun _ _ _ => rfl) he a b |
| 108 | simp only [mul_one, one_mul, integral_fintype_prod_eq_prod (fun i : Subtype (·∈s) => q i.val), hq, Finset.prod_const_one] at hl |
| 109 | rw [integrate_split μ s q F W hF he a b, hl, integrates hF q hq b] |
| 110 | end pi |
| 111 | |
| 112 | section sum |
| 113 | variable [Fintype X] [DecidableEq ι] |
| 114 | |
| 115 | private lemma sum_split (s : Set ι) [DecidablePred (·∈s)] |
| 116 | (q : ι → X → ℂ) (F W : (ι → X) → ℂ) |
| 117 | (hF : Reads s F) (hW : Reads sᶜ W) (a : Subtype (·∈s) → X) (b : Subtype (fun i => ¬ i ∈ s) → X) : |
| 118 | (∑ u : ι → X, (∏ i, q i (u i)) * (F u * W u)) = |
| 119 | (∑ x, (∏ i : Subtype (·∈s), q i.val (x i)) * F ((cutting s).symm (x,b))) * |
| 120 | (∑ y, (∏ i : Subtype (fun i => ¬ i∈s), q i.val (y i)) * W ((cutting s).symm (a,y))) := by |
| 121 | let p (u : ι → X) := (∏ i, q i (u i)) * (F u * W u) |
| 122 | change ∑ u, p u = _ |
| 123 | rw [← Equiv.sum_comp (cutting (X:=X) s).symm p,Fintype.sum_prod_type,Finset.sum_mul] |
| 124 | refine Finset.sum_congr rfl fun x _ => ?_ |
| 125 | rw [Finset.mul_sum]; exact Finset.sum_congr rfl fun y _ => parts_split q F W hF hW a b x y |
| 126 | |
| 127 | variable {s t : Set ι} [Nonempty X] {F W : (ι → X) → ℂ} {q q' : ι → X → ℂ} |
| 128 | |
| 129 | private lemma sums (hF : Reads s F) (q : ι → X → ℂ) (hq : ∀ i, ∑ x, q i x = 1) |
| 130 | [DecidablePred (·∈s)] (b : Subtype (fun i => ¬ i ∈ s) → X) : |
| 131 | (∑ u : ι → X, (∏ i, q i (u i)) * F u) = |
| 132 | ∑ x, (∏ i : Subtype (·∈s), q i.val (x i)) * F ((cutting s).symm (x,b)) := by |
| 133 | let a := fun _ : Subtype (·∈s) => Classical.arbitrary X |
| 134 | simpa only [mul_one, ← Fintype.prod_sum (fun i : Subtype (fun i => ¬ i∈s) => q i.val), |
| 135 | hq, Finset.prod_const_one] using sum_split s q F (fun _ => 1) hF (fun _ _ _ => rfl) a b |
| 136 | |
| 137 | lemma sum_ignores (hF : Reads s F) (hq : ∀ i, ∑ x, q i x = 1) (hq' : ∀ i, ∑ x, q' i x = 1) |
| 138 | (h : EqOn q q' s) : |
| 139 | (∑ u : ι → X, (∏ i, q i (u i)) * F u) = ∑ u : ι → X, (∏ i, q' i (u i)) * F u := by |
| 140 | classical |
| 141 | let b := fun _ : Subtype (fun i => ¬ i∈s) => Classical.arbitrary X |
| 142 | rw [sums hF q hq b,sums hF q' hq' b] |
| 143 | simp only [h (Subtype.prop _)] |
| 144 | |
| 145 | lemma sum_independent (hF : Reads s F) (hW : Reads t W) (h : Disjoint s t) |
| 146 | (hq : ∀ i, ∑ x, q i x = 1) : |
| 147 | (∑ u : ι → X, (∏ i, q i (u i)) * (F u * W u)) = |
| 148 | (∑ u : ι → X, (∏ i, q i (u i)) * F u) * |
| 149 | (∑ u : ι → X, (∏ i, q i (u i)) * W u) := by |
| 150 | classical |
| 151 | let a := fun _ : Subtype (·∈s) => Classical.arbitrary X |
| 152 | let b := fun _ : Subtype (fun i => ¬ i∈s) => Classical.arbitrary X |
| 153 | have he : Reads sᶜ W := fun x y hxy => hW x y (hxy.mono (fun i hi hv => Set.disjoint_left.1 h hv hi)) |
| 154 | have hl := sum_split s q (fun _ => 1) W (fun _ _ _ => rfl) he a b |
| 155 | simp only [mul_one, one_mul, ← Fintype.prod_sum (fun i : Subtype (·∈s) => q i.val), hq, Finset.prod_const_one] at hl |
| 156 | rw [sum_split s q F W hF he a b, hl, sums hF q hq b] |
| 157 | end sum |
| 158 | end YM.Push.GridApprox |