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.CONNECTED_ACTIVITY_JETS_E6.Expenses |
| 2 | import YM.Push.ABSOLUTE_SUMS.Absence |
| 3 | |
| 4 | |
| 5 | /-! |
| 6 | # Separating U and D labels on the SAME alphabet |
| 7 | |
| 8 | Use incidence as cost. HasSum conditional in V. Payments rely on H invariants, |
| 9 | not predicate guesses. -/ |
| 10 | set_option autoImplicit false |
| 11 | noncomputable section |
| 12 | namespace YM.ConnectedActivityE6.Cash |
| 13 | open Filter Function Lattice RG RG.Patch Pressure Pressure.Stores Pressure.Tube Tree Wilson Finset MeasureTheory Matrix |
| 14 | open Push Push.AbsoluteSums Precision Exterior Shell Channel Next.Fluctuations SectorMeasure Oriented Work.E03 |
| 15 | open Bloch Laurent Work.F03 Progress.StationaryScenes Bid SliceRows Control Window Census Green Mask Pulse Itinerary Coat |
| 16 | open Packets Presented LabelSum Sector SliceRows.DataKernel LocalRows Footprint Raw ProbabilityTheory Poll Pond Matter |
| 17 | open Gas Ursell |
| 18 | open scoped Topology InnerProductSpace Matrix.Norms.Frobenius ContDiff BigOperators Classical |
| 19 | variable {G : Gauge} {P : Teller G} {c f : Side} {S : StepData c f} {T : Tube G S} {F : Tree.Forest S.ratio} |
| 20 | variable {a α W μ C : ℝ} {R : Rep G f} {Z Z' : Support c} {L : Side} |
| 21 | variable {k k' : Finset ℕ} {w v : Air f G} |
| 22 | variable {V : Finset (Molecule S)} {b l d : ℕ} |
| 23 | variable {Q : YM.ConnectedActivityE6.Target G P} {o : Target.Order G W} |
| 24 | variable (H : Cash W α μ L Q o C T R) (X : Coat T F) (hk : X.x=α) (he : X.width=o.K) |
| 25 | |
| 26 | abbrev ThinP := { p : Molecule S // (H.unionP p).Nonempty ∧ (roster p).flags=∅ } |
| 27 | abbrev ThickP := { p : Molecule S // (H.unionP p).Nonempty ∧ (roster p).flags.Nonempty } |
| 28 | |
| 29 | def sword (U : Finset H.ThinP) := U.map (Embedding.subtype _) |
| 30 | def stave (A : Finset H.ThickP) := A.map (Embedding.subtype _) |
| 31 | def binders (U : Finset H.ThickP × Finset H.ThinP) := H.stave U.1 ∪ H.sword U.2 |
| 32 | |
| 33 | def largeAt (i : H.ThickP) := H.unionP i.val |
| 34 | def smallAt (i : H.ThinP) := H.unionP i.val |
| 35 | |
| 36 | def entries (i : H.ThinP) := H.emerging X i.val |
| 37 | def deposits (i : H.ThickP) := H.emerging X i.val |
| 38 | |
| 39 | def tall (u : Finset H.ThickP) := u.biUnion H.largeAt |
| 40 | |
| 41 | def inventory (A : Finset H.ThickP) := A.biUnion fun i=> (roster i.val).flags |
| 42 | |
| 43 | def banked (A : Finset H.ThickP) := if H.inventory A=RG.flags (Pressure.temp X.x) X.V then Gas.value |
| 44 | (blocked H.largeAt) (H.deposits X) A else 0 |
| 45 | |
| 46 | def ignores (A : Finset H.ThickP) := Gas.cut H.smallAt (H.tall A) (H.entries X) |
| 47 | |
| 48 | def inlet (p : Finset H.ThickP × Finset H.ThinP) := H.banked X p.1 * Gas.value (blocked H.smallAt) (H.ignores X p.1) p.2 |
| 49 | |
| 50 | lemma rent_split (p : Finset H.ThickP × Finset H.ThinP) : Disjoint (H.stave p.1) (H.sword p.2) := by |
| 51 | refine Finset.disjoint_left.mpr fun z hz hu=> ?_ |
| 52 | obtain ⟨i,h_i,rfl⟩ := mem_map.mp hz |
| 53 | obtain ⟨j,hj,he⟩ := mem_map.mp hu; have ht := j.2.2; change j.val=i.val at he |
| 54 | exact i.2.2.ne_empty (he ▸ ht) |
| 55 | lemma bindInj : Injective H.binders := by |
| 56 | have hh p i : i∈Prod.snd p ↔ Subtype.val i ∈ H.binders p := by |
| 57 | rw [binders,mem_union]; refine ⟨fun h=> Or.inr (Finset.mem_map_of_mem _ h), ?_⟩ |
| 58 | rintro (hp|hp) |
| 59 | · obtain ⟨j,hj,hq⟩ := mem_map.mp hp; change j.val=i.val at hq |
| 60 | exact (j.2.2.ne_empty (hq.symm ▸ (i:H.ThinP).2.2)).elim |
| 61 | obtain ⟨j,hj,hq⟩ := mem_map.mp hp; exact Subtype.ext (show j.val=i.val from hq) ▸ hj |
| 62 | have hg p i : i∈Prod.fst p ↔ Subtype.val i∈ H.binders p := by |
| 63 | rw [binders,mem_union]; refine ⟨fun h=> Or.inl (Finset.mem_map_of_mem _ h),?_⟩ |
| 64 | rintro (hp|hp) |
| 65 | · obtain ⟨j,hj,hq⟩ := mem_map.mp hp; exact Subtype.ext (show j.val=i.val from hq) ▸ hj |
| 66 | obtain ⟨j,hj,hq⟩ := mem_map.mp hp; change j.val=i.val at hq |
| 67 | exact False.elim ((i:H.ThickP).2.2.ne_empty (hq ▸ j.2.2)) |
| 68 | intro p q he; exact Prod.ext (Finset.ext fun i=> by rw [hg,hg,he]) (Finset.ext fun i=> by rw [hh,hh,he]) |
| 69 | |
| 70 | include hk in |
| 71 | lemma family_neat (p : Finset H.ThickP × Finset H.ThinP) : |
| 72 | H.inlet X p=ejections R X W o.a Q.halo Q.table (H.binders p) := by |
| 73 | rcases p with ⟨A,U⟩; let M:= H.binders (A,U); let t := Pressure.temp X.x |
| 74 | let S':=H.stave A; let U':= H.sword U |
| 75 | have Hh (x) (hx : x∈M) (hv : H.emerging X x≠0) := (H.residency X hk _ hv).1 |
| 76 | have HE : areas R T Q.halo X.B=H.supportP := by unfold Coat.B; rw [hk]; rfl |
| 77 | have Hp : (M:Set (Molecule S)).PairwiseDisjoint H.unionP → ∀ i∈M,H.emerging X i≠0 → Ac.Spark H.supportP i := fun _=> Hh |
| 78 | have he : Matter.covers X M ↔ H.inventory A=RG.flags t X.V := by |
| 79 | unfold Matter.covers; change ((S' ∪ U').biUnion _)=_ ↔ _ |
| 80 | rw [union_biUnion] |
| 81 | have ht : S'.biUnion (fun i=> (roster i).flags)=H.inventory A := by ext; simp [S',stave,inventory] |
| 82 | have hu : U'.biUnion (fun i=> (roster i).flags)=∅ := Finset.eq_empty_iff_forall_notMem.mpr (fun i hi=> by |
| 83 | obtain ⟨j,hj,h⟩ := mem_biUnion.mp hi; obtain ⟨p,hp,rfl⟩ := mem_map.mp hj; exact p.2.2 ▸ (show i∈(roster p.val).flags from h) |> Finset.notMem_empty _) |
| 84 | rw [ht,hu,union_empty] |
| 85 | have hh : (∏ i∈ M,H.emerging X i)=(∏ i∈ A,H.deposits X i)*∏ i∈ U,H.entries X i := by |
| 86 | unfold M binders; rw [prod_union (H.rent_split (A,U)),sword,stave,prod_map,prod_map]; rfl |
| 87 | have hm : (M:Set (Molecule S)).PairwiseDisjoint H.unionP ↔ separated (blocked H.largeAt) A ∧ |
| 88 | separated (blocked H.smallAt) U ∧ ∀ i∈U, Disjoint (H.tall A) (H.smallAt i) := by |
| 89 | constructor |
| 90 | · intro hz; constructor |
| 91 | · intro i hi j hj hg; have hw := hz (mem_union_left U' (show i.val∈ S' from mem_map_of_mem _ hi)) |
| 92 | (mem_union_left U' (show j.val∈ S' from mem_map_of_mem _ hj)) (fun h=>hg <| Subtype.ext h) |
| 93 | exact not_or_intro hg (fun h=> Finset.not_disjoint_iff.mpr h hw) |
| 94 | constructor |
| 95 | · intro i hi j hj hg; have hw:= hz (mem_union_right S' (show i.val∈ U' from mem_map_of_mem _ hi)) |
| 96 | (mem_union_right S' (show j.val∈U' from mem_map_of_mem _ hj)) (fun h=>hg <| Subtype.ext h) |
| 97 | exact not_or_intro hg (fun h=> Finset.not_disjoint_iff.mpr h hw) |
| 98 | intro i hi |
| 99 | refine Finset.disjoint_left.mpr fun p hp ha=> ?_ |
| 100 | obtain ⟨j,hj,hp⟩ := mem_biUnion.mp hp |
| 101 | exact Finset.disjoint_left.mp (hz (mem_union_left U' (show j.val∈ S' from mem_map_of_mem _ hj)) |
| 102 | (mem_union_right S' (show i.val∈U' from mem_map_of_mem _ hi)) (fun h=> j.2.2.ne_empty (h.symm ▸ i.2.2))) hp ha |
| 103 | rintro ⟨hw,hv,hx⟩ v hi y hj ht |
| 104 | have hw' : (S':Set _).PairwiseDisjoint H.unionP := by |
| 105 | rintro i hi j hj hn |
| 106 | obtain ⟨i,h_i,rfl⟩ := mem_map.mp hi; obtain ⟨j,h_j,rfl⟩ := mem_map.mp hj |
| 107 | exact Finset.disjoint_left.mpr fun p hp hq=> hw i h_i j h_j (fun h=>hn (h ▸ rfl)) (Or.inr ⟨p,hp,hq⟩) |
| 108 | have hv' : (U':Set _).PairwiseDisjoint H.unionP := by |
| 109 | rintro i hi j hj hn; obtain ⟨i,h_i,rfl⟩ := mem_map.mp hi; obtain ⟨j,h_j,rfl⟩ := mem_map.mp hj |
| 110 | exact Finset.disjoint_left.mpr fun p hp hq=> hv i h_i j h_j (fun h=>hn (h ▸ rfl)) (Or.inr ⟨p,hp,hq⟩) |
| 111 | have he i j (hi : i∈S') (hj : j∈U') : Disjoint (H.unionP i) (H.unionP j) := by |
| 112 | obtain ⟨i,h_i,rfl⟩ := mem_map.mp hi; obtain ⟨j,h_j,rfl⟩ := mem_map.mp hj |
| 113 | exact (hx j h_j).mono_left (show H.largeAt i⊆H.tall A from subset_biUnion_of_mem _ h_i) |
| 114 | rcases mem_union.mp hi with hi|hi <;> rcases mem_union.mp hj with hj|hj |
| 115 | · exact hw' hi hj ht |
| 116 | · exact he v y hi hj |
| 117 | · exact (he y v hj hi).symm |
| 118 | · exact hv' hi hj ht |
| 119 | unfold inlet banked ejections |
| 120 | let F' := ∏ i∈ M,H.emerging X i; let P := (M:Set (Molecule S)).PairwiseDisjoint H.unionP |
| 121 | have hz : joints T R Q.halo X.B M ↔ (∀ i∈M,Ac.Spark H.supportP i)∧P := by unfold joints ground; rw [HE]; exact Iff.rfl |
| 122 | change (if H.inventory A=RG.flags t X.V then _ else _) * _ = if _ then F' else 0 |
| 123 | by_cases hs : Matter.covers X M |
| 124 | swap; · rw [if_neg (he.not.1 hs), if_neg (fun h=>hs h.2),zero_mul] |
| 125 | rw [if_pos (he.1 hs)]; unfold Gas.value; split_ifs with hA hU HK |
| 126 | next => |
| 127 | have hg := (hm.mp (hz.mp HK.1).2).2.2 |
| 128 | unfold F'; rw [hh]; apply congr_arg _; refine prod_congr rfl fun i hi=> ?_; exact if_pos (hg i hi) |
| 129 | next => |
| 130 | by_cases hx : ∀ i∈U,Disjoint (H.tall A) (H.smallAt i) |
| 131 | · rw [show (∏ i∈U,H.ignores X A i)=(∏ i∈U,H.entries X i) from ?_] |
| 132 | · rw [← hh]; by_contra h |
| 133 | exact HK ⟨hz.mpr ⟨fun i hi=> Hp (hm.2 ⟨hA,hU,hx⟩) i hi (fun he'=>h (prod_eq_zero hi he')), |
| 134 | hm.2 ⟨hA,hU,hx⟩⟩,hs⟩ |
| 135 | exact prod_congr rfl fun i hi=> (if_pos (hx i hi)) |
| 136 | push Not at hx |
| 137 | obtain ⟨i,hi,hp⟩ := hx; rw [prod_eq_zero hi (show H.ignores X A i=0 from if_neg hp),mul_zero] |
| 138 | next Hh => exact (hU (hm.mp (hz.mp Hh.1).2).2.1).elim |
| 139 | next => rw [mul_zero] |
| 140 | next _ Hh => exact (hA (hm.mp (hz.mp Hh.1).2).1).elim |
| 141 | next => rw [zero_mul] |
| 142 | next _ Hh => exact (hA (hm.mp (hz.mp Hh.1).2).1).elim |
| 143 | next => rw [zero_mul] |
| 144 | end YM.ConnectedActivityE6.Cash |