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.Slice.Strips |
| 2 | |
| 3 | /-! |
| 4 | # Sampling all layers including seams |
| 5 | |
| 6 | Prove the Haar-product disintegration indexed by the *same* Cut |
| 7 | site/link convention. This is an actual measure-preserving representation. |
| 8 | Once the strict probes and Wilson integrand are pulled there, use Fubini. |
| 9 | -/ |
| 10 | set_option autoImplicit false |
| 11 | noncomputable section |
| 12 | namespace YM.Slice |
| 13 | open Function Set Filter MeasureTheory |
| 14 | open MeasureTheory.Measure Lattice Wilson Cells |
| 15 | open scoped Topology BigOperators Matrix.Norms.Frobenius ComplexOrder |
| 16 | variable {n : Side} {G : Gauge} (C : Cut n) |
| 17 | |
| 18 | abbrev Inner (C : Cut n) := {v : Per n // Plus C v} |
| 19 | abbrev Steps (C : Cut n) := {v : Per n // bridge C v} |
| 20 | |
| 21 | -- noncomputable Fintype for Pi |
| 22 | instance : Fintype (Inner C) := by |
| 23 | classical |
| 24 | unfold Inner |
| 25 | infer_instance |
| 26 | instance : Fintype (Steps C) := by |
| 27 | classical |
| 28 | unfold Steps |
| 29 | infer_instance |
| 30 | instance : Fintype ↥(gate C) := Fintype.ofFinite _ |
| 31 | instance : Fintype ↥(pier C) := Fintype.ofFinite _ |
| 32 | |
| 33 | abbrev Open (C : Cut n) (G : Gauge) := (Inner C → Leaf G C.pos n) × (Steps C → Thread G C.pos n) |
| 34 | abbrev PlusVol C G := Open (n := n) C G |
| 35 | abbrev Doors (C : Cut n) (G : Gauge) := (↥(gate C) → Thread G (Cut.pos C) n) |
| 36 | abbrev Posts (C : Cut n) (G : Gauge) := (↥(pier C) → Leaf G (Cut.pos C) n) |
| 37 | abbrev Rest (C : Cut n) (G : Gauge) := Posts C G × Doors C G |
| 38 | abbrev Dwelling (C : Cut n) (G : Gauge) := Rest C G × (Open C G × Open C G) |
| 39 | |
| 40 | instance : BorelSpace (Open C G) := by unfold Open Leaf Thread; infer_instance |
| 41 | instance : BorelSpace (Rest C G) := by unfold Rest Posts Doors Leaf Thread; infer_instance |
| 42 | instance : SecondCountableTopology (Open C G) := by unfold Open Leaf Thread; infer_instance |
| 43 | instance : SecondCountableTopology (Rest C G) := by unfold Rest Posts Doors Leaf Thread; infer_instance |
| 44 | |
| 45 | instance : SecondCountableTopology (Open C G × Open C G) := TopologicalSpace.instSecondCountableTopologyProd (α := Open C G) (β := Open C G) |
| 46 | instance : BorelSpace (Open C G × Open C G) := Prod.borelSpace (α := Open C G) (β := Open C G) |
| 47 | instance : SecondCountableTopology (Dwelling C G) := TopologicalSpace.instSecondCountableTopologyProd (α := Rest C G) (β := Open C G × Open C G) |
| 48 | instance : BorelSpace (Dwelling C G) := Prod.borelSpace (α := Rest C G) (β := Open C G × Open C G) |
| 49 | |
| 50 | noncomputable section |
| 51 | open scoped Classical |
| 52 | |
| 53 | def reaches (v : Per n) (p : Dwelling C G) : Leaf G C.pos n := |
| 54 | if h : Plus C v then p.2.1.1 ⟨v,h⟩ |
| 55 | else if w : Plus C (level C v) then p.2.2.1 ⟨level C v,w⟩ |
| 56 | else p.1.1 ⟨v,h,w⟩ |
| 57 | |
| 58 | def attach (v : Per n) (p : Dwelling C G) : Thread G C.pos n := |
| 59 | if h : bridge C v then p.2.1.2 ⟨v,h⟩ |
| 60 | else if w : bridge C (imageChord C v) then p.2.2.2 ⟨imageChord C v,w⟩ |
| 61 | else p.1.2 ⟨v,h,w⟩ |
| 62 | |
| 63 | def wire (p : Dwelling C G) (t : Per n) : Layer G C.pos n := (reaches C t p,attach C t p) |
| 64 | |
| 65 | @[simp] theorem hit (v : Inner C) (p : Dwelling C G) : (wire C p v).1 = p.2.1.1 v := by simp [wire,reaches,v.property] |
| 66 | @[simp] theorem hitOpp (v : Inner C) (p : Dwelling C G) : (wire C p (level C v)).1 = p.2.2.1 v := by |
| 67 | unfold wire reaches |
| 68 | simp only [opposite_leaf v.property,↓reduceDIte] |
| 69 | rw [dif_pos (by rw [level_twice]; exact v.property)]; simp |
| 70 | |
| 71 | @[simp] theorem seam (v : ↥(pier C)) (p : Dwelling C G) : (wire C p v).1 = p.1.1 v := by |
| 72 | simp only [wire, reaches,v.property.1,v.property.2,↓reduceDIte] |
| 73 | @[simp] theorem pointed (v : Steps C) (p : Dwelling C G) : (wire C p v).2 = p.2.1.2 v := by simp [wire,attach,v.property] |
| 74 | @[simp] theorem pointed_back (v : Steps C) (p : Dwelling C G) : (wire C p (imageChord C v)).2 = p.2.2.2 v := by |
| 75 | unfold wire attach |
| 76 | simp only [opposite_time v.property,↓reduceDIte]; rw [dif_pos (by rw [chord_turn]; exact v.property)] |
| 77 | simp |
| 78 | |
| 79 | @[simp] theorem checkpoint (v : ↥(gate C)) (p : Dwelling C G) : (wire C p v).2 = p.1.2 v := by |
| 80 | simp only [wire,attach,v.property.1,v.property.2,↓reduceDIte] |
| 81 | |
| 82 | @[fun_prop] lemma wire_cont : Continuous (wire (G := G) C) := by |
| 83 | apply continuous_pi; intro i |
| 84 | unfold wire reaches attach |
| 85 | split_ifs <;> fun_prop |
| 86 | |
| 87 | def iso : Dwelling C G ≃* Circle G C.pos n where |
| 88 | toFun := wire C |
| 89 | invFun p := ((fun i => (p i).1,fun i => (p i).2),(fun i => (p i).1,fun i => (p i).2), |
| 90 | (fun i => (p (level C i)).1, fun i => (p (imageChord C i)).2)) |
| 91 | left_inv p := by |
| 92 | apply Prod.ext |
| 93 | · exact Prod.ext (funext fun i => seam ..) (funext fun i => checkpoint ..) |
| 94 | apply Prod.ext |
| 95 | · exact Prod.ext (funext fun i => hit ..) (funext fun i => pointed ..) |
| 96 | exact Prod.ext (funext fun i => hitOpp ..) (funext fun i => pointed_back ..) |
| 97 | right_inv s := by |
| 98 | funext i |
| 99 | apply Prod.ext <;> dsimp only [wire] |
| 100 | · unfold reaches; split_ifs <;> simp |
| 101 | unfold attach; split_ifs <;> simp |
| 102 | map_mul' x y := by |
| 103 | ext1 i |
| 104 | change (reaches C i (x*y), attach C i (x*y)) = (reaches C i x * reaches C i y, attach C i x*attach C i y) |
| 105 | unfold reaches attach; split_ifs <;> rfl -- abbreviations issue |
| 106 | end |
| 107 | |
| 108 | variable (G) |
| 109 | def postM := Measure.pi fun _ : ↥(pier C) => trans n G C.pos |
| 110 | def doorM := Measure.pi fun _ : ↥(gate C) => threads n G C.pos |
| 111 | def restM := (postM G C).prod (doorM G C) |
| 112 | def fieldM := (Measure.pi fun _ : Inner C => trans n G C.pos).prod (Measure.pi fun _ : Steps C => threads n G C.pos) |
| 113 | def dwellM := (restM G C).prod ((fieldM G C).prod (fieldM G C)) |
| 114 | |
| 115 | instance : IsProbabilityMeasure (postM G C) := by unfold postM; infer_instance |
| 116 | instance : IsProbabilityMeasure (doorM G C) := by unfold doorM; infer_instance |
| 117 | instance : IsProbabilityMeasure (restM G C) := by unfold restM; infer_instance |
| 118 | instance : IsProbabilityMeasure (fieldM G C) := by unfold fieldM; infer_instance |
| 119 | instance : IsProbabilityMeasure (dwellM G C) := by unfold dwellM; infer_instance |
| 120 | |
| 121 | instance : IsHaarMeasure (postM G C) := by unfold postM; constructor |
| 122 | instance : IsHaarMeasure (doorM G C) := by unfold doorM; constructor |
| 123 | instance : MeasurableMul (Posts C G) := by unfold Posts Leaf; infer_instance |
| 124 | instance : MeasurableMul (Doors C G) := by unfold Doors Thread; infer_instance |
| 125 | instance : IsHaarMeasure (restM G C) := Measure.prod.instIsHaarMeasure (G := Posts C G) (H := Doors C G) (postM G C) (doorM G C) |
| 126 | instance : IsHaarMeasure (fieldM G C) := by |
| 127 | let α := Measure.pi fun _ : Inner C => trans n G C.pos |
| 128 | let ζ := Measure.pi fun _ : Steps C => threads n G C.pos |
| 129 | haveI : IsHaarMeasure α := by unfold α; constructor |
| 130 | haveI : IsHaarMeasure ζ := by unfold ζ; constructor |
| 131 | haveI : MeasurableMul (Inner C → Leaf G C.pos n) := by unfold Leaf; infer_instance |
| 132 | haveI : MeasurableMul (Steps C → Thread G C.pos n) := by unfold Thread; infer_instance |
| 133 | exact Measure.prod.instIsHaarMeasure (G := Inner C → Leaf G C.pos n) (H := Steps C → Thread G C.pos n) α ζ |
| 134 | instance : MeasurableMul (Open C G) := by unfold Open Leaf Thread; infer_instance |
| 135 | instance : MeasurableMul (Rest C G) := by unfold Rest Posts Doors Leaf Thread; infer_instance |
| 136 | instance : MeasurableMul (Open C G × Open C G) := ContinuousMul.measurableMul (γ := Open C G × Open C G) |
| 137 | instance : IsHaarMeasure (dwellM G C) := by |
| 138 | let ζ := (fieldM G C).prod (fieldM G C) |
| 139 | haveI : IsHaarMeasure ζ := Measure.prod.instIsHaarMeasure (G := Open C G) (H := Open C G) _ _ |
| 140 | exact Measure.prod.instIsHaarMeasure (G := Rest C G) (H := Open C G × Open C G) (restM G C) ζ |
| 141 | |
| 142 | variable {G} |
| 143 | |
| 144 | lemma wiredVolume : MeasurePreserving (wire C) (dwellM G C) (spread n G C.pos) := |
| 145 | MonoidHom.measurePreserving (f := (iso (G := G) C).toMonoidHom) (wire_cont C) (iso C).surjective (by simp) |
| 146 | |
| 147 | def replace (x : Open C G) : Open C G := (x.1,x.2⁻¹) |
| 148 | |
| 149 | lemma twisted : MeasurePreserving (replace C) (fieldM G C) (fieldM G C) := by |
| 150 | unfold fieldM |
| 151 | have hg : MeasurePreserving (fun v : Thread G C.pos n => v⁻¹) (threads n G C.pos) (threads n G C.pos) := |
| 152 | measurePreserving_pi _ _ (f := fun _ => Inv.inv) (fun _ => G.preserve_inv) |
| 153 | have hi : MeasurePreserving (fun f : Steps C → Thread G C.pos n => f⁻¹) (Measure.pi fun _ => threads n G C.pos) _ := |
| 154 | measurePreserving_pi _ _ (f := fun _ => Inv.inv) (fun _ => hg) |
| 155 | exact (MeasurePreserving.id _).prod hi |
| 156 | |
| 157 | /-- The second half uses inverse thread convention. -/ |
| 158 | def follow (p : Dwelling C G) := wire C (p.1,p.2.1,replace C p.2.2) |
| 159 | lemma follow_space : MeasurePreserving (follow C) (dwellM G C) (spread n G C.pos) := |
| 160 | (wiredVolume C).comp ((MeasurePreserving.id _).prod ((MeasurePreserving.id _).prod (twisted C))) |
| 161 | |
| 162 | @[fun_prop] lemma continuous_follow : Continuous (follow (G := G) C) := by |
| 163 | unfold follow replace; fun_prop |
| 164 | |
| 165 | lemma board : MeasurePreserving (chain C.pos ∘ follow C) (dwellM G C) (prior G n) := (chain_volume _).comp (follow_space C) |
| 166 | end YM.Slice |