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.UVNext.FREE_STRESS_CERTIFICATE.DoubleWick |
| 2 | |
| 3 | /-! The exact three-site two-leg sector of the separated Wick moment |
| 4 | for fixing stress normalization (translation test at lowest nontrivial enclosed |
| 5 | weight). The eight cross diagrams even when slots coincide. -/ |
| 6 | set_option autoImplicit false |
| 7 | noncomputable section |
| 8 | namespace YM.UVNext.FreeStress |
| 9 | open Maxwell Wick Wick.Occ Function |
| 10 | variable {G : Gauge} |
| 11 | |
| 12 | private abbrev T3 := Fin 3 |
| 13 | private abbrev T := Fin 2 |
| 14 | private abbrev Grid := T3 × T |
| 15 | private abbrev Sheet (G : Gauge) := T3 → T → Slot G |
| 16 | private def counts (A : Sheet G) : Powers G 3 := fun i => Finsupp.single (A i 0) 1 + Finsupp.single (A i 1) 1 |
| 17 | |
| 18 | private lemma twoCases (i : T) : i=0 ∨ i=1 := by fin_cases i <;> decide |
| 19 | private def other : Equiv.Perm T := Equiv.swap 0 1 |
| 20 | @[simp] private lemma different' (i : T) : other i ≠ i := (by decide : ∀ i : T, other i ≠ i) i |
| 21 | @[simp] private lemma other_swap (i : T) : other (other i)=i := (by decide : ∀ i:T, other (other i)=i) i |
| 22 | private lemma two_other (i k : T) : k=i ∨ k=other i := (by decide : ∀ i k:T, k=i ∨ k=other i) i k |
| 23 | |
| 24 | private def indexInto (A : Sheet G) (u : Grid) : Occ (counts A) := by |
| 25 | classical |
| 26 | exact if u.2=0 then atSlot u.1 (A u.1 0) 0 (by simp [counts]) else |
| 27 | atSlot u.1 (A u.1 1) (if A u.1 0 = A u.1 1 then 1 else 0) (by |
| 28 | simp only [counts, Finsupp.add_apply, Finsupp.single_eq_same]; split_ifs with h |
| 29 | · simp [h] |
| 30 | exact Nat.zero_lt_succ _) |
| 31 | |
| 32 | @[simp] private lemma pos_into (A : Sheet G) (u : Grid) : (indexInto A u).label = u.1 := by |
| 33 | unfold indexInto; split <;> rfl |
| 34 | @[simp] private lemma prb_into (A : Sheet G) (u : Grid) : (indexInto A u).probe = A u.1 u.2 := by |
| 35 | obtain ⟨i,j⟩ := u; rcases twoCases j with rfl|rfl <;> simp [indexInto] |
| 36 | |
| 37 | private lemma iso_occ (A : Sheet G) : Bijective (indexInto A) := by |
| 38 | classical |
| 39 | constructor |
| 40 | · rintro ⟨i,j⟩ ⟨b,d⟩ h |
| 41 | have h1 := congr_arg (fun p : Occ (counts A) => p.label) h |
| 42 | have h2 := congr_arg (fun p : Occ (counts A) => p.probe) h |
| 43 | simp only [pos_into,prb_into] at h1 h2 |
| 44 | change i=b at h1; subst b |
| 45 | have h3 := congr_arg (fun p : Occ (counts A) => p.index) h |
| 46 | change A i j = A i d at h2 |
| 47 | rcases twoCases j with rfl|rfl <;> rcases twoCases d with rfl|rfl |
| 48 | all_goals first | rfl | simp [indexInto,h2] at h3 |
| 49 | · intro p |
| 50 | let i := p.label |
| 51 | have hp := p.legit |
| 52 | change p.index < (counts A i) p.probe at hp |
| 53 | simp only [counts,Finsupp.add_apply,Finsupp.single_apply] at hp |
| 54 | by_cases hr : A i 0 = A i 1 |
| 55 | · rw [← hr] at hp |
| 56 | by_cases he : A i 0 = p.probe |
| 57 | · rw [if_pos he] at hp |
| 58 | have he' := hr ▸ he |
| 59 | rcases (show p.index = 0 ∨ p.index=1 by omega) with hd|hd |
| 60 | · exact ⟨(i,0),Occ.ext (pos_into ..) (by rw [prb_into]; exact he) (by simp [indexInto, hd])⟩ |
| 61 | exact ⟨(i,1),Occ.ext (pos_into ..) (by rw [prb_into]; exact he') (by simp [indexInto,hr,hd])⟩ |
| 62 | rw [if_neg he] at hp; omega |
| 63 | by_cases he : A i 0 = p.probe |
| 64 | · rw [if_pos he,if_neg (show A i 1 ≠ p.probe by rw [← he]; exact Ne.symm hr)] at hp |
| 65 | exact ⟨(i,0),Occ.ext (pos_into ..) (by rw [prb_into]; exact he) (by simp [indexInto]; omega)⟩ |
| 66 | by_cases he' : A i 1 = p.probe |
| 67 | · rw [if_pos he', if_neg he] at hp |
| 68 | exact ⟨(i,1),Occ.ext (pos_into ..) (by rw [prb_into]; exact he') (by simp [indexInto,hr]; omega)⟩ |
| 69 | rw [if_neg he',if_neg he] at hp; omega |
| 70 | |
| 71 | private def up (i : T3) := i+1 |
| 72 | private def dn (i : T3) := i+2 |
| 73 | @[simp] private lemma up_ne (i : T3) : up i≠i := (by decide : ∀ i:T3, up i≠i) _ |
| 74 | @[simp] private lemma dn_ne (i : T3) : dn i≠i := (by decide : ∀ i:T3, dn i≠i) _ |
| 75 | @[simp] private lemma up_dn (i : T3) : up (dn i)=i := (by decide : ∀ i:T3, up (dn i)=i) _ |
| 76 | @[simp] private lemma dn_up (i : T3) : dn (up i)=i := (by decide : ∀ i:T3, dn (up i)=i) _ |
| 77 | @[simp] private lemma axis_ne (i : T3) : up i≠dn i := (by decide : ∀ i:T3, up i≠dn i) _ |
| 78 | private lemma tri (i j : T3) (h : i ≠ j) : i=up j ∨ i=dn j := (by decide : ∀ i j:T3,i≠j → i=up j ∨ i=dn j) i j h |
| 79 | private lemma threeCases (i : T3) : i=0 ∨ i=1 ∨ i=2 := (by decide : ∀ i:T3, i=0 ∨ i=1 ∨ i=2) i |
| 80 | |
| 81 | private abbrev Choice := T3→T |
| 82 | private def stepTo (Q : Choice) (v : Grid) : Grid := if v.2=Q v.1 then (up v.1, other (Q (up v.1))) else (dn v.1,Q (dn v.1)) |
| 83 | @[simp] private lemma riseTo (Q : Choice) (i : T3) : stepTo Q (i,Q i)=(up i,other (Q (up i))) := by simp [stepTo] |
| 84 | @[simp] private lemma fallTo (Q : Choice) (i : T3) : stepTo Q (i,other (Q i))=(dn i,Q (dn i)) := by simp [stepTo] |
| 85 | @[simp] private lemma step_swap (Q : Choice) (v : Grid) : stepTo Q (stepTo Q v)=v := by |
| 86 | obtain ⟨i,k⟩ := v; rcases two_other (Q i) k with rfl|rfl <;> simp |
| 87 | |
| 88 | section |
| 89 | variable {W : Powers G 3} (e : Grid ≃ Occ W) (he : ∀ u : Grid, (e u).label=u.1) |
| 90 | |
| 91 | private def pass (Q : Choice) : Matching W := |
| 92 | ⟨{ toFun p := e (stepTo Q (e.symm p)) |
| 93 | invFun p := e (stepTo Q (e.symm p)) |
| 94 | left_inv p := by simp |
| 95 | right_inv p := by simp },by |
| 96 | constructor |
| 97 | · ext1 p; change e (stepTo Q (e.symm (e (stepTo Q (e.symm p))))) = p; simp |
| 98 | intro p |
| 99 | obtain ⟨⟨i,j⟩,rfl⟩ := e.surjective p |
| 100 | change (e (stepTo Q (e.symm _))).label ≠ _ |
| 101 | rcases two_other (Q i) j with rfl|rfl <;> simp [he]⟩ |
| 102 | |
| 103 | @[simp] private lemma operates (Q : Choice) (u : Grid) : partner (pass e he Q) (e u)=e (stepTo Q u) := by |
| 104 | change e (stepTo Q (e.symm _))=_; simp |
| 105 | |
| 106 | private lemma pass_once : Bijective (pass e he) := by |
| 107 | classical |
| 108 | constructor |
| 109 | · intro s t h |
| 110 | funext i |
| 111 | have hp := congr_arg (fun v : Matching W => (e.symm (partner v (e (i,s i)))).1) h |
| 112 | by_contra! he' |
| 113 | simp only [operates,Equiv.symm_apply_apply,stepTo,if_neg he'] at hp |
| 114 | exact axis_ne i hp |
| 115 | intro p |
| 116 | let L (u : Grid) := e.symm (partner p (e u)) |
| 117 | have hx u : (L u).1 ≠ u.1 := by simpa [L, ← he] using different p (e u) |
| 118 | have hl (u) : L (L u)=u := by simp [L] |
| 119 | have hi : Injective L := (show LeftInverse L L from hl).injective |
| 120 | have hv (i : T3) : (L (i,0)).1 ≠ (L (i,1)).1 := by |
| 121 | intro hj |
| 122 | let j := (L (i,0)).1 |
| 123 | have hn : j≠i := hx _ |
| 124 | let f (a : T) := (L (i,a)).2 |
| 125 | have he (a : T) : L (i,a)=(j,f a) := Prod.ext (by rcases twoCases a with rfl|rfl; rfl; exact hj.symm) rfl |
| 126 | have ho : Injective f := by |
| 127 | intro a b hg; exact congr_arg Prod.snd (hi ((he a).trans ((congr_arg (fun z => (j,z)) hg).trans (he b).symm))) |
| 128 | have hg (z : T) : (L (j,z)).1=i := by |
| 129 | obtain ⟨t,rfl⟩ := (Finite.surjective_of_injective ho) z |
| 130 | exact congr_arg Prod.fst ((congr_arg L (he t).symm).trans (hl (i,t))) |
| 131 | obtain ⟨k,hk,hk'⟩ : ∃ k : T3, k≠i ∧ k≠j := (by decide : ∀ i j : T3, j≠i → ∃ k : T3, k≠i ∧ k≠j) _ _ hn |
| 132 | let y := L (k,0) |
| 133 | have hq : y.1≠k := hx _ |
| 134 | have h1 : y.1=i ∨ y.1=j := (by decide : ∀ k i j a : T3, k≠i → k≠j → j≠i → a≠k → a=i ∨ a=j) _ _ _ _ hk hk' hn hq |
| 135 | have h2 : (L y).1=k := congr_arg Prod.fst (hl (k,0)) |
| 136 | rcases h1 with hw|hw |
| 137 | · rw [show y=(i,y.2) from Prod.ext hw rfl,he y.2] at h2 |
| 138 | exact hk' h2.symm |
| 139 | rw [show y=(j,y.2) from Prod.ext hw rfl,hg] at h2; exact hk h2.symm |
| 140 | have ha (i : T3) : ∃ t : T, (L (i,t)).1=up i ∧ (L (i,other t)).1=dn i := by |
| 141 | rcases tri _ _ (hx (i,0)) with h|h <;> rcases tri _ _ (hx (i,1)) with h'|h' |
| 142 | · exact (hv i (h.trans h'.symm)).elim |
| 143 | exact ⟨0,h,h'⟩ |
| 144 | exact ⟨1,h',by rw [show other 1=0 by decide]; exact h⟩ |
| 145 | exact (hv i (h.trans h'.symm)).elim |
| 146 | choose Q hQ hD using ha |
| 147 | have H (i) : L (i,Q i)=(up i,other (Q (up i))) := by |
| 148 | apply Prod.ext (hQ i) |
| 149 | rcases two_other (Q (up i)) (L (i,Q i)).2 with hc|hc |
| 150 | · exfalso |
| 151 | have h : L (i,Q i)=(up i,Q (up i)) := Prod.ext (hQ i) hc |
| 152 | have hh := congr_arg Prod.fst ((congr_arg L h).symm.trans (hl (i,Q i))) |
| 153 | rw [hQ] at hh |
| 154 | exact (axis_ne (up i)) (hh.trans (dn_up _).symm) |
| 155 | exact hc |
| 156 | have h (i) : L (i, other (Q i)) = (dn i,Q (dn i)) := by |
| 157 | apply hi; rw [hl,H,up_dn] |
| 158 | refine ⟨Q,Subtype.ext ?_⟩ |
| 159 | ext1 v |
| 160 | obtain ⟨⟨i,j⟩,rfl⟩ := e.surjective v |
| 161 | change partner (pass e he Q) _=partner p _ |
| 162 | rw [operates]; apply e.symm.injective |
| 163 | change e.symm _=L (i,j); rw [e.symm_apply_apply] |
| 164 | rcases two_other (Q i) j with rfl|rfl |
| 165 | exacts [(H i).symm |> (riseTo ..).trans,(fallTo ..).trans (h i).symm] |
| 166 | end |
| 167 | private lemma three_product (x : Points 3) (A : Sheet G) : |
| 168 | Wick.monomial x (counts A) = ∑ Q : Choice, |
| 169 | Wick.entry (A 0 (Q 0)) (A 1 (other (Q 1))) (x 0) (x 1) * |
| 170 | Wick.entry (A 0 (other (Q 0))) (A 2 (Q 2)) (x 0) (x 2) * |
| 171 | Wick.entry (A 1 (Q 1)) (A 2 (other (Q 2))) (x 1) (x 2) := by |
| 172 | let e := Equiv.ofBijective (indexInto A) (iso_occ A) |
| 173 | have he u : (e u).label=u.1 := pos_into .. |
| 174 | have hq u : (e u).probe=A u.1 u.2 := prb_into .. |
| 175 | rw [Wick.monomial,← Equiv.sum_comp (Equiv.ofBijective _ (pass_once e he))] |
| 176 | apply Finset.sum_congr rfl; intro Q _ |
| 177 | change graph x (pass e he Q)=_ |
| 178 | let a := e (0,Q 0) |
| 179 | let b := e (0,other (Q 0)) |
| 180 | let c := e (1,Q 1) |
| 181 | have h : corners (pass e he Q) = {a,b,c} := by |
| 182 | ext1 p; obtain ⟨⟨i,j⟩,rfl⟩ := e.surjective p |
| 183 | rcases two_other (Q i) j with rfl|rfl <;> rcases threeCases i with rfl|rfl|rfl |
| 184 | all_goals simp [corners,a,b,c,he,riseTo,fallTo, operates,show up 0=1 by decide,show up 1=2 by decide, |
| 185 | show up 2=0 by decide,show dn 1=0 by decide,show dn 2=1 by decide,show dn 0=2 by decide,Ne.symm (different' _)] |
| 186 | rw [Occ.graph,h]; simp [a,b,c,edge,hq,he,operates,riseTo,fallTo,show up 0=1 by decide,show up 1=2 by decide, |
| 187 | show dn 0=2 by decide, Ne.symm (different' _),mul_assoc] |
| 188 | |
| 189 | private lemma representation (x : Points 3) (A : Sheet G) : |
| 190 | moment G x (fun i => MvPolynomial.X (A i 0) * MvPolynomial.X (A i 1)) = ∑ Q : Choice, |
| 191 | Wick.entry (A 0 (Q 0)) (A 1 (other (Q 1))) (x 0) (x 1) * |
| 192 | Wick.entry (A 0 (other (Q 0))) (A 2 (Q 2)) (x 0) (x 2) * |
| 193 | Wick.entry (A 1 (Q 1)) (A 2 (other (Q 2))) (x 1) (x 2) := by |
| 194 | rw [show (fun i => MvPolynomial.X (A i 0)*MvPolynomial.X (R:=ℂ) (A i 1)) = |
| 195 | fun i => monBasis G (counts A i) from by funext i; simp [MvPolynomial.X,MvPolynomial.monomial_mul, counts,monBasis],moment_basis] |
| 196 | exact three_product x A |
| 197 | |
| 198 | -- expand the sum for the multilinear calculations |
| 199 | private lemma stations {X : Type*} [AddCommMonoid X] (f : Choice → X) : |
| 200 | (∑ i : Choice, f i) = ∑ i : T, ∑ j : T, ∑ k : T, f (Fin.cons i (readings j k)) := by |
| 201 | let L : T × T × T → Choice := fun q => Fin.cons q.1 (readings q.2.1 q.2.2) |
| 202 | have h (i j k : T) : L (i,j,k) 0 = i ∧ L (i,j,k) 1 = j ∧ L (i,j,k) 2=k := ⟨rfl,rfl,by |
| 203 | change Fin.cons _ _ (1 : Fin 2).succ = _; rw [Fin.cons_succ,read_one]⟩ |
| 204 | let e : (T × T × T) ≃ Choice := ⟨L, fun f => (f 0,f 1,f 2),by |
| 205 | rintro ⟨i,j,k⟩; exact Prod.ext (h ..).1 (Prod.ext (h i j k).2.1 (h i j k).2.2),by |
| 206 | intro f; funext i; rcases threeCases i with rfl|rfl|rfl |
| 207 | exacts [(h ..).1,(h ..).2.1,(h ..).2.2]⟩ |
| 208 | rw [← Equiv.sum_comp e, Fintype.sum_prod_type]; simp_rw [Fintype.sum_prod_type]; rfl |
| 209 | |
| 210 | -- expose the actual polynomial formula via six linear extension indices. |
| 211 | def triangle {Y : Type*} (a b c : Y) := Fin.cons (α:=fun _ : Fin 3 => Y) a (readings b c) |
| 212 | @[simp] lemma triangle_zero {Y : Type*} (a b c : Y) : triangle a b c 0=a := rfl |
| 213 | @[simp] lemma triangle_one {Y : Type*} (a b c : Y) : triangle a b c 1=b := rfl |
| 214 | @[simp] lemma triangle_two {Y : Type*} (a b c : Y) : triangle a b c 2=c := by change Fin.cons _ _ (1 : Fin 2).succ = _; rw [Fin.cons_succ,read_one] |
| 215 | |
| 216 | private lemma wick_at (x : Points 3) (A B C D E F : Slot G) : |
| 217 | let e (i j : Fin 3) (a b : Slot G) := Wick.entry a b (x i) (x j) |
| 218 | moment G x (triangle (MvPolynomial.X A * MvPolynomial.X B) (MvPolynomial.X C*MvPolynomial.X D) (MvPolynomial.X E*MvPolynomial.X F)) = |
| 219 | e 0 1 A D * e 0 2 B E * e 1 2 C F + e 0 1 A D * e 0 2 B F * e 1 2 C E + |
| 220 | (e 0 1 A C * e 0 2 B E * e 1 2 D F + e 0 1 A C * e 0 2 B F * e 1 2 D E) + |
| 221 | (e 0 1 B D * e 0 2 A E * e 1 2 C F + e 0 1 B D * e 0 2 A F * e 1 2 C E + |
| 222 | (e 0 1 B C * e 0 2 A E * e 1 2 D F + e 0 1 B C * e 0 2 A F * e 1 2 D E)) := by |
| 223 | intro e |
| 224 | let Q : Sheet G := triangle (readings A B) (readings C D) (readings E F) |
| 225 | have he := representation x Q |
| 226 | rw [← show (fun i : Fin 3 => MvPolynomial.X (Q i 0)*MvPolynomial.X (Q i 1)) = |
| 227 | (triangle (MvPolynomial.X A * MvPolynomial.X B) (MvPolynomial.X C*MvPolynomial.X D) |
| 228 | (MvPolynomial.X E*MvPolynomial.X F) : Fin 3 → WickPol G) from by |
| 229 | funext i; rcases threeCases i with rfl|rfl|rfl <;> simp [Q], he,stations] |
| 230 | have hh (i j k : T) : Fin.cons (α:=fun _ : Fin 3 => T) i (readings j k) = triangle i j k := rfl |
| 231 | simp only [hh, Fin.sum_univ_two,Q,triangle_zero, triangle_one,triangle_two,read_zero,read_one,show other 0=1 by decide, show other 1=0 by decide,e] |
| 232 | |
| 233 | variable (G x) in |
| 234 | def triplet : WickPol G →ₗ[ℂ] WickPol G →ₗ[ℂ] WickPol G →ₗ[ℂ] ℂ where |
| 235 | toFun A := |
| 236 | { toFun B := |
| 237 | { toFun C := moment G (x:Points 3) (triangle A B C) |
| 238 | map_add' C D := by |
| 239 | let f := (moment G x).toLinearMap (triangle A B 0) 2 |
| 240 | have he u : f u = moment G x (triangle A B u) := by |
| 241 | change moment G x (update _ _ _) = _ |
| 242 | congr 1; funext i; rcases threeCases i with rfl|rfl|rfl <;> simp |
| 243 | rw [← he, ← he, ← he,map_add] |
| 244 | map_smul' t C := by |
| 245 | let f := (moment G x).toLinearMap (triangle A B 0) 2 |
| 246 | have he u : f u = moment G x (triangle A B u) := by |
| 247 | change moment G x (update _ _ _) = _ |
| 248 | congr 1; funext i; rcases threeCases i with rfl|rfl|rfl <;> simp |
| 249 | rw [← he, ← he,map_smul,RingHom.id_apply] } |
| 250 | map_add' B C := by |
| 251 | apply LinearMap.ext; intro D |
| 252 | let f := (moment G x).toLinearMap (triangle A 0 D) 1 |
| 253 | have he u : f u = moment G x (triangle A u D) := by |
| 254 | change moment G x (update _ _ _) = _ |
| 255 | congr 1; funext i; rcases threeCases i with rfl|rfl|rfl <;> simp |
| 256 | change moment G x (triangle A (B+C) D) = moment G x (triangle A B D) + moment G x (triangle A C D) |
| 257 | rw [← he, ← he, ← he,map_add] |
| 258 | map_smul' t B := by |
| 259 | apply LinearMap.ext; intro D |
| 260 | let f := (moment G x).toLinearMap (triangle A 0 D) 1 |
| 261 | have he u : f u = moment G x (triangle A u D) := by |
| 262 | change moment G x (update _ _ _) = _ |
| 263 | congr 1; funext i; rcases threeCases i with rfl|rfl|rfl <;> simp |
| 264 | change moment G x (triangle A (t • B) D) = t • moment G x (triangle A B D) |
| 265 | rw [← he, ← he,map_smul] } |
| 266 | map_add' A B := by |
| 267 | apply LinearMap.ext; intro C; apply LinearMap.ext; intro D |
| 268 | change (moment G x).curryLeft (A+B) (readings C D) = _ |
| 269 | rw [map_add]; rfl |
| 270 | map_smul' t A := by |
| 271 | apply LinearMap.ext; intro C; apply LinearMap.ext; intro D |
| 272 | change (moment G x).curryLeft (t • A) (readings C D) = _ |
| 273 | rw [map_smul]; rfl |
| 274 | |
| 275 | private abbrev P (G : Gauge) := Probe G 0 |
| 276 | private def m (x : Points 3) (i j : T3) (p q : P G) := (legKernel p q (x i-x j) : ℂ) -- actual no mismatch |
| 277 | |
| 278 | private def law3 (x : Points 3) (A B C D E F : P G) := |
| 279 | let f := m x |
| 280 | triplet G x (symbol 0 A * symbol 0 B) (symbol 0 C * symbol 0 D) (symbol 0 E*symbol 0 F) = |
| 281 | f 0 1 A D * f 0 2 B E * f 1 2 C F + f 0 1 A D * f 0 2 B F * f 1 2 C E + |
| 282 | (f 0 1 A C * f 0 2 B E * f 1 2 D F + f 0 1 A C * f 0 2 B F * f 1 2 D E) + |
| 283 | (f 0 1 B D * f 0 2 A E * f 1 2 C F + f 0 1 B D * f 0 2 A F * f 1 2 C E + |
| 284 | (f 0 1 B C * f 0 2 A E * f 1 2 D F + f 0 1 B C * f 0 2 A F * f 1 2 D E)) |
| 285 | |
| 286 | -- Mirrors the two-site linear extension. Avoid multiset/factorial rewrites. |
| 287 | private abbrev Light (G : Gauge) := Fin (legDim G 0) |
| 288 | private def atP (i : Light G) := coordinateLeg (⟨0,i⟩ : Slot G) |
| 289 | private theorem inductionP (f : P G → Prop) (k : ∀ i, f (atP i)) (hz : f 0) |
| 290 | (ha : ∀ p q, f p → f q → f (p+q)) (hs : ∀ c : ℝ, ∀ p, f p → f (c • p)) : ∀ p, f p := by |
| 291 | let V : Submodule ℝ (P G) := { carrier := {u | f u}, zero_mem' := hz, add_mem' := ha _ _, smul_mem' := fun t => hs t _ } |
| 292 | intro p; change p∈V |
| 293 | have he : p = ∑ i : Light G, p (frame G 0 i) • atP i := by |
| 294 | apply (frame G 0).ext; intro i; simp [atP,coordinateLeg] |
| 295 | rw [he] |
| 296 | exact Submodule.sum_mem V fun _ _ => V.smul_mem _ (k _) |
| 297 | private lemma plainA (p q : P G) : symbol 0 (p+q) = symbol 0 p+symbol 0 q := by apply equalPol; intro X; simp [symbol_test] |
| 298 | private lemma plainZ : symbol 0 (0 : P G) = 0 := by apply equalPol; intro X; simp [symbol_test] |
| 299 | private lemma plainS (t : ℝ) (p : P G) : symbol 0 (t • p) = (t:ℂ) • symbol 0 p := by |
| 300 | apply equalPol; intro A; rw [map_smul,symbol_test,symbol_test]; simp |
| 301 | private lemma from_pair (p q : P G) {x : Points 3} (h : x∈conf 3) (i j : T3) (ht : i≠j) : |
| 302 | m x i j p q = (pairing (show x i-x j ∈ away from sub_ne_zero.mpr ((show Injective x.ofLp from h).ne ht)) p q : ℝ) := rfl |
| 303 | |
| 304 | |
| 305 | set_option linter.unusedSimpArgs false in |
| 306 | set_option maxHeartbeats 6000000 in |
| 307 | private lemma signal {x : Points 3} (h : x∈conf 3) : ∀ (a b c d e f : P G), law3 x a b c d e f := by |
| 308 | have h01 (p q : P G) := from_pair p q h 0 1 (by decide) |
| 309 | have h02 (p q : P G) := from_pair p q h 0 2 (by decide) |
| 310 | have h12 (p q : P G) := from_pair p q h 1 2 (by decide) |
| 311 | refine inductionP _ (fun i0 => ?_) ?_ (fun v w hv hw => ?_) (fun t v hv => ?_) |
| 312 | · refine inductionP _ (fun i1 => ?_) ?_ (fun v w hv hw => ?_) (fun t v hv => ?_) |
| 313 | · refine inductionP _ (fun i2 => ?_) ?_ (fun v w hv hw => ?_) (fun t v hv => ?_) |
| 314 | · refine inductionP _ (fun i3 => ?_) ?_ (fun v w hv hw => ?_) (fun t v hv => ?_) |
| 315 | · refine inductionP _ (fun i4 => ?_) ?_ (fun v w hv hw => ?_) (fun t v hv => ?_) |
| 316 | · refine inductionP _ (fun i5 => ?_) ?_ (fun v w hv hw => ?_) (fun t v hv => ?_) |
| 317 | · dsimp only [law3] |
| 318 | have he (i : Light G) : symbol 0 (atP i) = MvPolynomial.X (⟨0,i⟩:Slot G) := symbol_coordinate ⟨0,i⟩ |
| 319 | simp only [he] |
| 320 | exact wick_at x ⟨0,i0⟩ ⟨0,i1⟩ ⟨0,i2⟩ ⟨0,i3⟩ ⟨0,i4⟩ ⟨0,i5⟩ |
| 321 | · simp only [law3, plainZ, mul_zero, zero_mul,map_zero,LinearMap.zero_apply,h01,h02,h12,Complex.ofReal_zero,add_zero] |
| 322 | · unfold law3 at * |
| 323 | simp only [plainA,mul_add,map_add,LinearMap.add_apply]; rw [hv,hw] |
| 324 | simp only [h01,h02,h12,map_add,LinearMap.add_apply,Complex.ofReal_add]; ring |
| 325 | · unfold law3 at * |
| 326 | simp only [plainS,mul_smul_comm,map_smul,LinearMap.smul_apply]; rw [hv] |
| 327 | simp only [h01,h02,h12,map_smul,LinearMap.smul_apply,smul_eq_mul,Complex.ofReal_mul]; ring |
| 328 | · intro F; simp only [law3, plainZ, mul_zero, zero_mul,map_zero,LinearMap.zero_apply,h01,h02,h12,Complex.ofReal_zero,add_zero] |
| 329 | · intro F; unfold law3 at * |
| 330 | simp only [plainA,add_mul,map_add,LinearMap.add_apply]; rw [hv,hw] |
| 331 | simp only [h01,h02,h12,map_add,LinearMap.add_apply,Complex.ofReal_add]; ring |
| 332 | · intro F; unfold law3 at * |
| 333 | simp only [plainS,smul_mul_assoc,map_smul,LinearMap.smul_apply]; rw [hv] |
| 334 | simp only [h01,h02,h12,map_smul,LinearMap.smul_apply,smul_eq_mul,Complex.ofReal_mul]; ring |
| 335 | · intro E F; simp only [law3, plainZ, mul_zero, zero_mul,map_zero,LinearMap.zero_apply,h01,h02,h12,Complex.ofReal_zero,add_zero] |
| 336 | · intro E F; unfold law3 at * |
| 337 | simp only [plainA,mul_add,map_add,LinearMap.add_apply]; rw [hv,hw] |
| 338 | simp only [h01,h02,h12,map_add,LinearMap.add_apply,Complex.ofReal_add]; ring |
| 339 | · intro E F; unfold law3 at * |
| 340 | simp only [plainS,mul_smul_comm,map_smul,LinearMap.smul_apply]; rw [hv] |
| 341 | simp only [h01,h02,h12,map_smul,LinearMap.smul_apply,smul_eq_mul,Complex.ofReal_mul]; ring |
| 342 | · intro D E F; simp only [law3, plainZ, mul_zero, zero_mul,map_zero,LinearMap.zero_apply,h01,h02,h12,Complex.ofReal_zero,add_zero] |
| 343 | · intro D E F; unfold law3 at * |
| 344 | simp only [plainA,add_mul,map_add,LinearMap.add_apply]; rw [hv,hw] |
| 345 | simp only [h01,h02,h12,map_add,LinearMap.add_apply,Complex.ofReal_add]; ring |
| 346 | · intro D E F; unfold law3 at * |
| 347 | simp only [plainS,smul_mul_assoc,map_smul,LinearMap.smul_apply]; rw [hv] |
| 348 | simp only [h01,h02,h12,map_smul,LinearMap.smul_apply,smul_eq_mul,Complex.ofReal_mul]; ring |
| 349 | · intro c D E F; simp only [law3, plainZ, mul_zero, zero_mul,map_zero,LinearMap.zero_apply,h01,h02,h12,Complex.ofReal_zero,add_zero] |
| 350 | · intro c D E F; unfold law3 at * |
| 351 | simp only [plainA,mul_add,map_add,LinearMap.add_apply]; rw [hv,hw] |
| 352 | simp only [h01,h02,h12,map_add,LinearMap.add_apply,Complex.ofReal_add]; ring |
| 353 | · intro c D E F; unfold law3 at * |
| 354 | simp only [plainS,mul_smul_comm,map_smul,LinearMap.smul_apply]; rw [hv] |
| 355 | simp only [h01,h02,h12,map_smul,LinearMap.smul_apply,smul_eq_mul,Complex.ofReal_mul]; ring |
| 356 | · intro B c D E F; simp only [law3, plainZ, mul_zero, zero_mul,map_zero,LinearMap.zero_apply,h01,h02,h12,Complex.ofReal_zero,add_zero] |
| 357 | · intro B c D E F; unfold law3 at * |
| 358 | simp only [plainA,add_mul,map_add,LinearMap.add_apply]; rw [hv,hw] |
| 359 | simp only [h01,h02,h12,map_add,LinearMap.add_apply,Complex.ofReal_add]; ring |
| 360 | · intro B c D E F; unfold law3 at * |
| 361 | simp only [plainS,smul_mul_assoc,map_smul,LinearMap.smul_apply]; rw [hv] |
| 362 | simp only [h01,h02,h12,map_smul,LinearMap.smul_apply,smul_eq_mul,Complex.ofReal_mul]; ring |
| 363 | |
| 364 | /-- Repeated letters at each of the two probing sites (enclosed, far). -/ |
| 365 | theorem triangle_test {x : Points 3} (h : x ∈ conf 3) (A B C Y : Probe G 0) : |
| 366 | triplet G x (symbol 0 A*symbol 0 B) (symbol 0 C*symbol 0 C) (symbol 0 Y * symbol 0 Y) = |
| 367 | 4 * ((legKernel C Y (x 1-x 2):ℝ):ℂ) * |
| 368 | ((((legKernel A C (x 0-x 1):ℝ):ℂ)*((legKernel B Y (x 0-x 2):ℝ):ℂ))+ |
| 369 | (((legKernel B C (x 0-x 1):ℝ):ℂ)*((legKernel A Y (x 0-x 2):ℝ):ℂ))) := by |
| 370 | rw [signal h A B C C Y Y] |
| 371 | unfold m; ring |
| 372 | end YM.UVNext.FreeStress |