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.STATIONARY.Joint.Drift |
| 2 | |
| 3 | set_option autoImplicit false |
| 4 | /-! # Third/fourth tensors of the scalar stationary envelope. -/ |
| 5 | noncomputable section |
| 6 | namespace YM.Stationary |
| 7 | open Function Filter Lattice RG Wilson Exterior Precision Bloch Laurent Tree Matrix Module Finset |
| 8 | open scoped Matrix Topology ContDiff BigOperators InnerProductSpace Matrix.Norms.Frobenius |
| 9 | variable {X Y Z : Type} [NormedAddCommGroup X] [NormedSpace ℝ X] [NormedAddCommGroup Y] |
| 10 | [NormedSpace ℝ Y] [NormedAddCommGroup Z] [NormedSpace ℝ Z] |
| 11 | |
| 12 | open Analysis |
| 13 | lemma threeFold (F : X → Y) (x u v w : X) : iteratedFDeriv ℝ 3 F x ![u,v,w] = |
| 14 | fderiv ℝ (fderiv ℝ (fderiv ℝ F)) x u v w := by |
| 15 | rw [iteratedFDeriv_succ_apply_right,iteratedFDeriv_two_apply]; rfl |
| 16 | lemma direction2 (F : X→Y) (x u v : X) (h : ContDiffAt ℝ ω F x) : |
| 17 | D u (D v F) x=iteratedFDeriv ℝ 2 F x ![u,v] := divided u v h |
| 18 | lemma combine3 {F : Y → Z} {g : X → Y} {x : X} (h : ContDiffAt ℝ ω F (g x)) |
| 19 | (p : ContDiffAt ℝ ω g x) (a b c : X) : |
| 20 | let i := g x |
| 21 | let t a := fderiv ℝ g x a |
| 22 | let u a b := iteratedFDeriv ℝ 2 g x ![a,b] |
| 23 | iteratedFDeriv ℝ 3 (F ∘ g) x ![a,b,c]= |
| 24 | iteratedFDeriv ℝ 3 F i ![t a,t b,t c] |
| 25 | + iteratedFDeriv ℝ 2 F i ![t a,u b c]+ |
| 26 | iteratedFDeriv ℝ 2 F i ![u a b,t c]+ |
| 27 | iteratedFDeriv ℝ 2 F i ![t b,u a c]+ |
| 28 | fderiv ℝ F i (iteratedFDeriv ℝ 3 g x ![a,b,c]) := by |
| 29 | intro i t u |
| 30 | let A (y : X) := fderiv ℝ F (g y) |
| 31 | let B (y : X) := fderiv ℝ (fderiv ℝ F) (g y) |
| 32 | let c' y := fderiv ℝ g y c |
| 33 | let b' y := fderiv ℝ g y b |
| 34 | let d y := fderiv ℝ (fderiv ℝ g) y b c |
| 35 | have hu : (fun z => iteratedFDeriv ℝ 2 (F ∘ g) z ![b,c])=ᶠ[𝓝 x] (fun y => A y (d y)+B y (b' y) (c' y)) := by |
| 36 | filter_upwards [p.eventually (by simp),p.continuousAt.tendsto.eventually (h.eventually (by simp))] with z ht hh |
| 37 | rw [pay_second hh ht,iteratedFDeriv_two_apply,iteratedFDeriv_two_apply]; rfl |
| 38 | have hl : iteratedFDeriv ℝ 3 (F ∘ g) x ![a,b,c]= D a (fun z => iteratedFDeriv ℝ 2 (F∘g) z ![b,c]) x := cons_jet ((h.comp _ p).of_le le_top) _ _ |
| 39 | have hp n := h.of_le (show (n:WithTop ℕ∞)≤ω from le_top) |
| 40 | have hx := (h.fderiv_right (m:=ω) (by simp)).differentiableAt (by simp) |
| 41 | have hB := ((h.fderiv_right (m:=ω) (by simp)).fderiv_right (m:=ω) (by simp)).differentiableAt (by simp) |
| 42 | have hG := p.differentiableAt (by simp) |
| 43 | have ha : DifferentiableAt ℝ A x := hx.comp _ hG |
| 44 | have hb : DifferentiableAt ℝ B x := hB.comp _ hG |
| 45 | have ht (u) : DifferentiableAt ℝ (D u g) x := (dSmooth p u (m:=ω) (by simp)).differentiableAt (by simp) |
| 46 | have hm : DifferentiableAt ℝ d x := by |
| 47 | have hu := ((p.fderiv_right (m:=ω) (by simp)).fderiv_right (m:=ω) (by simp)).differentiableAt (by simp) |
| 48 | exact ((hu.clm_apply (u:=fun _ => b) (differentiableAt_const _)).clm_apply (u:=fun _ => c) (differentiableAt_const _)) |
| 49 | have he y : iteratedFDeriv ℝ 2 g y ![b,c]=d y := by rw [iteratedFDeriv_two_apply]; rfl |
| 50 | have hD : fderiv ℝ d x a=iteratedFDeriv ℝ 3 g x ![a,b,c] := (by |
| 51 | have hi : iteratedFDeriv ℝ 3 g x ![a,b,c]= D a (fun z => iteratedFDeriv ℝ 2 g z ![b,c]) x := cons_jet (p.of_le le_top) a ![b,c]; simp_rw [he] at hi; exact hi.symm) |
| 52 | rw [hl,GermD a hu,D,fderiv_fun_add (ha.clm_apply hm) ((hb.clm_apply (u:=b') (ht b)).clm_apply (u:=c') (ht c)), fderiv_clm_apply ha hm,fderiv_clm_apply (hb.clm_apply (u:=b') (ht b)) (u:=c') (ht c), fderiv_clm_apply hb (u:=b') (ht b)] |
| 53 | simp only [_root_.add_apply, ContinuousLinearMap.flip_apply,ContinuousLinearMap.comp_apply] |
| 54 | rw [show fderiv ℝ A x=_ from fderiv_comp _ hx hG, show fderiv ℝ B x=_ from fderiv_comp _ hB hG,show fderiv ℝ b' x a=u a b from direction2 g x a b p, show fderiv ℝ c' x a=u a c from direction2 g x a c p,hD] |
| 55 | simp only [ContinuousLinearMap.comp_apply] |
| 56 | rw [threeFold F i,iteratedFDeriv_two_apply,iteratedFDeriv_two_apply,iteratedFDeriv_two_apply]; rw [show d x=u b c from (he x).symm]; change |
| 57 | A x (iteratedFDeriv ℝ 3 g x ![a,b,c])+ B x (t a) (u b c)+ |
| 58 | (B x (t b) (u a c)+(B x (u a b) (t c)+fderiv ℝ (fderiv ℝ (fderiv ℝ F)) i (t a) (t b) (t c)))=fderiv ℝ (fderiv ℝ (fderiv ℝ F)) i (t a) (t b) (t c)+B x (t a) (u b c)+B x (u a b) (t c)+B x (t b) (u a c)+A x (iteratedFDeriv ℝ 3 g x ![a,b,c]) |
| 59 | abel |
| 60 | end YM.Stationary |
| 61 | end |
| 62 | |
| 63 | /-! |
| 64 | # Stationary differentiation while V varies. Tested on fixed real |
| 65 | period. Does not assume any volume-independent analysis; inputs from |
| 66 | actual representative of same tag. -/ |
| 67 | noncomputable section |
| 68 | namespace YM.Stationary |
| 69 | open Function Filter Lattice RG Wilson Exterior Precision Bloch Laurent Tree Matrix Module Finset Analysis |
| 70 | open scoped Matrix Topology ContDiff BigOperators InnerProductSpace Matrix.Norms.Frobenius |
| 71 | variable {X Y : Type} [NormedAddCommGroup X] [NormedSpace ℝ X] [NormedAddCommGroup Y] [NormedSpace ℝ Y] |
| 72 | |
| 73 | variable (F : X×Y → ℝ) (S : X→Y) |
| 74 | def viewS (x : X) : X×Y := (x,S x) |
| 75 | def fieldT (x : X) := fderiv ℝ (viewS S) 0 x |
| 76 | def fieldU (x y : X) : X×Y := iteratedFDeriv ℝ 2 (viewS S) 0 ![x,y] |
| 77 | |
| 78 | structure Stayed : Prop where |
| 79 | origin : ContDiffAt ℝ ω F 0 |
| 80 | zero : S 0=0 |
| 81 | path : ContDiffAt ℝ ω S 0 |
| 82 | rate : ∀ᶠ v in 𝓝 0, fderiv ℝ (fun y : Y => F (v,y)) (S v)=0 |
| 83 | variable {F S} (hs : Stayed F S) |
| 84 | include hs |
| 85 | namespace Stayed |
| 86 | lemma H0 : viewS S 0=0 := Prod.ext rfl hs.zero |
| 87 | lemma hl : ContDiffAt ℝ ω (viewS S) 0 := contDiffAt_id.prodMk hs.path |
| 88 | lemma center : ContDiffAt ℝ ω (F ∘ viewS S) 0 := (show ContDiffAt ℝ ω F (viewS S 0) by rw [H0 hs]; exact hs.origin).comp 0 (hl hs) |
| 89 | lemma margin : ∀ᶠ v in 𝓝 0, ∀ y : Y, fderiv ℝ F (viewS S v) (0,y)=0 := by |
| 90 | filter_upwards [hs.rate, ((hl hs).continuousAt.tendsto).eventually (by rw [H0 hs]; exact hs.origin.eventually (by simp))] with i hi hp y |
| 91 | let g := fun y : Y => (i,y) |
| 92 | let J := ContinuousLinearMap.inr ℝ X Y |
| 93 | have he : HasFDerivAt g J (S i) := (hasFDerivAt_const _ _).prodMk (hasFDerivAt_id _) |
| 94 | exact DFunLike.congr_fun (((hp.differentiableAt (by simp) |>.hasFDerivAt.comp (S i) he).fderiv ).symm.trans hi) y |
| 95 | lemma rim (a : X) : (fderiv ℝ (viewS S) 0 a).1=a := by |
| 96 | have hp := (hl hs).differentiableAt (by simp) |
| 97 | let L := ContinuousLinearMap.fst ℝ X Y |
| 98 | have hx := fderiv_comp (0:X) L.differentiableAt hp |
| 99 | change fderiv ℝ id 0=fderiv ℝ L _ ∘L fderiv ℝ (viewS S) 0 at hx; rw [fderiv_id,L.fderiv] at hx |
| 100 | exact (DFunLike.congr_fun hx a).symm |
| 101 | lemma pledge (a : X) : D a (F ∘ viewS S)=ᶠ[𝓝 0] D (fieldT S a) F ∘ (viewS S) := by |
| 102 | filter_upwards [margin hs,(hl hs).eventually (by simp), ((hl hs).continuousAt.tendsto).eventually (by rw [H0 hs]; exact hs.origin.eventually (by simp))] with i hi he hp |
| 103 | have hg := he.differentiableAt (by simp) |
| 104 | have ht : (fderiv ℝ (viewS S) i a).1=a := by |
| 105 | let L := ContinuousLinearMap.fst ℝ X Y |
| 106 | have hx := fderiv_comp i L.differentiableAt hg |
| 107 | change fderiv ℝ id i=fderiv ℝ L _ ∘L fderiv ℝ (viewS S) i at hx; rw [fderiv_id,L.fderiv] at hx |
| 108 | exact (DFunLike.congr_fun hx a).symm |
| 109 | rw [D,fderiv_comp _ (hp.differentiableAt (by simp)) hg, ContinuousLinearMap.comp_apply] |
| 110 | change _= fderiv ℝ F (viewS S i) (fieldT S a) |
| 111 | apply sub_eq_zero.mp; rw [← map_sub] |
| 112 | rw [show _-fieldT S a=(0,(fderiv ℝ (viewS S) i a).2-(fieldT S a).2) from Prod.ext (by rw [Prod.fst_sub,ht,show (fieldT S a).1=a from rim hs a,sub_self]) rfl,hi] |
| 113 | lemma lower (a b : X) : fieldU S a b=(0,(fieldU S a b).2) := by |
| 114 | refine Prod.ext ?_ rfl |
| 115 | let L := ContinuousLinearMap.fst ℝ X Y |
| 116 | have hp : iteratedFDeriv ℝ 2 (L ∘ viewS S) 0 ![a,b]=L (fieldU S a b) := by |
| 117 | rw [ContinuousLinearMap.iteratedFDeriv_comp_left _ (hl hs) le_top]; rfl |
| 118 | |
| 119 | rw [show L ∘ viewS S=id from rfl,iteratedFDeriv_two_apply] at hp |
| 120 | simp only [show fderiv ℝ (id:X→X)=fun _ => ContinuousLinearMap.id ℝ X from funext (fun _ => fderiv_id ..),show fderiv ℝ (fun _ : X => ContinuousLinearMap.id ℝ X) 0=0 from (hasFDerivAt_const ..).fderiv,_root_.zero_apply] at hp |
| 121 | exact hp.symm |
| 122 | lemma under (a b c : X) : (iteratedFDeriv ℝ 3 (viewS S) 0 ![a,b,c]).1 = 0 := by |
| 123 | let L := ContinuousLinearMap.fst ℝ X Y |
| 124 | have hp : iteratedFDeriv ℝ 3 (L ∘ viewS S) 0 ![a,b,c]=L (iteratedFDeriv ℝ 3 (viewS S) 0 ![a,b,c]) := by |
| 125 | rw [ContinuousLinearMap.iteratedFDeriv_comp_left _ (hl hs) le_top]; rfl |
| 126 | rw [show L ∘ viewS S=id from rfl,threeFold] at hp |
| 127 | simp only [show fderiv ℝ (id:X→X)=fun _ => ContinuousLinearMap.id ℝ X from funext (fun _ => fderiv_id ..),show fderiv ℝ (fun _ : X => ContinuousLinearMap.id ℝ X)=0 from funext (fun _ => (hasFDerivAt_const ..).fderiv), fderiv_zero, Pi.zero_apply, _root_.zero_apply] at hp |
| 128 | exact hp.symm |
| 129 | |
| 130 | -- k_p(Q grad) identities |
| 131 | lemma hedge (u : Y) (a : X) : iteratedFDeriv ℝ 2 F 0 ![fieldT S a,(0,u)]=0 := by |
| 132 | have he : D (0,u) F ∘ viewS S=ᶠ[𝓝 0] 0 := (margin hs).mono (fun _ hp => hp u) |
| 133 | have hh := (dSmooth hs.origin ((0:X),u) (m:=ω) (by simp)).differentiableAt (by simp) |
| 134 | have hv : fderiv ℝ (D (0,u) F) 0 (fieldT S a)=0 := by |
| 135 | have hp := he.fderiv_eq (𝕜:=ℝ) |
| 136 | rw [fderiv_comp (0:X) (by rw [H0 hs]; exact hh) ((hl hs).differentiableAt (by simp)),H0 hs,fderiv_zero] at hp |
| 137 | exact DFunLike.congr_fun hp a |
| 138 | rwa [show fderiv ℝ (D ((0:X),u) F) 0 (fieldT S a)=iteratedFDeriv ℝ 2 F 0 ![fieldT S a,(0,u)] from divided _ _ hs.origin] at hv |
| 139 | lemma reserve (u : Y) (a b : X) : iteratedFDeriv ℝ 3 F 0 ![(0,u),fieldT S a,fieldT S b]= - iteratedFDeriv ℝ 2 F 0 ![fieldU S a b,(0,u)] := by |
| 140 | have he : D (0,u) F ∘ viewS S=ᶠ[𝓝 0] 0 := (margin hs).mono (fun _ hp => hp u) |
| 141 | have hh := dSmooth hs.origin ((0:X),u) (m:=ω) (by simp) |
| 142 | have hv := DFunLike.congr_fun ((he.iteratedFDeriv ℝ 2).eq_of_nhds) ![a,b] |
| 143 | rw [pay_second (by rw [H0 hs]; exact hh) (hl hs), H0 hs] at hv |
| 144 | rw [show iteratedFDeriv ℝ 3 F 0 ![(0,u),fieldT S a,fieldT S b]=_ from cons_inner (hs.origin.of_le le_top) ((0:X),u) ![fieldT S a,fieldT S b]] |
| 145 | apply eq_neg_of_add_eq_zero_right |
| 146 | rw [show fderiv ℝ _ _ _=_ from (show fderiv ℝ (D ((0:X),u) F) 0 (iteratedFDeriv ℝ 2 (viewS S) 0 ![a,b])=iteratedFDeriv ℝ 2 F 0 ![fieldU S a b,(0,u)] from divided _ _ hs.origin) ] at hv |
| 147 | simp only [iteratedFDeriv_two_apply,fderiv_zero,Pi.zero_apply,_root_.zero_apply] at hv |
| 148 | rw [iteratedFDeriv_two_apply,iteratedFDeriv_two_apply] |
| 149 | exact hv |
| 150 | |
| 151 | lemma accrue (a b c : X) : iteratedFDeriv ℝ 3 (F∘viewS S) 0 ![a,b,c]=iteratedFDeriv ℝ 3 F 0 ![fieldT S a,fieldT S b,fieldT S c] := by |
| 152 | let U := D (fieldT S a) F |
| 153 | have he : ContDiffAt ℝ ω U (viewS S 0) := by rw [H0 hs]; exact dSmooth hs.origin _ (by simp) |
| 154 | have hb : iteratedFDeriv ℝ 3 (F∘viewS S) 0 ![a,b,c]=iteratedFDeriv ℝ 2 (U∘viewS S) 0 ![b,c] := by |
| 155 | rw [show iteratedFDeriv ℝ 3 (F∘viewS S) 0 ![a,b,c]=_ from cons_inner ((center hs).of_le le_top) a ![b,c]]; exact DFunLike.congr_fun (((pledge hs a).iteratedFDeriv ℝ 2).eq_of_nhds) _ |
| 156 | rw [hb,pay_second he (hl hs),H0 hs, show fderiv ℝ U 0 (iteratedFDeriv ℝ 2 (viewS S) 0 ![b,c])=_ from divided (fieldU S b c) (fieldT S a) hs.origin, |
| 157 | Work.F03.hessian_symmetric (hs.origin.of_le le_top)] |
| 158 | rw [lower hs b c, hedge hs,zero_add]; exact (cons_inner (hs.origin.of_le le_top) (fieldT S a) ![fieldT S b,fieldT S c]).symm |
| 159 | lemma tally (a b c d : X) : |
| 160 | let P:=iteratedFDeriv ℝ 3 F 0 |
| 161 | iteratedFDeriv ℝ 4 (F∘viewS S) 0 ![a,b,c,d]=iteratedFDeriv ℝ 4 F 0 ![fieldT S a,fieldT S b,fieldT S c,fieldT S d]+ |
| 162 | P ![fieldU S c d,fieldT S a,fieldT S b]+ |
| 163 | P ![fieldU S b c,fieldT S a,fieldT S d]+ |
| 164 | P ![fieldU S b d,fieldT S a,fieldT S c] := by |
| 165 | intro P |
| 166 | let U := D (fieldT S a) F |
| 167 | have he : ContDiffAt ℝ ω U 0 := dSmooth hs.origin _ (by simp) |
| 168 | have hp : iteratedFDeriv ℝ 4 (F∘viewS S) 0 ![a,b,c,d]=iteratedFDeriv ℝ 3 (U∘viewS S) 0 ![b,c,d] := |
| 169 | (cons_inner ((center hs).of_le le_top) a ![b,c,d]).trans <| DFunLike.congr_fun (((pledge hs a).iteratedFDeriv ℝ 3).eq_of_nhds) _ |
| 170 | have ht := combine3 (show ContDiffAt ℝ ω U (viewS S 0) by rw [H0 hs]; exact he) (hl hs) b c d |
| 171 | dsimp only at ht; rw [H0 hs] at ht |
| 172 | let g := iteratedFDeriv ℝ 3 (viewS S) 0 ![b,c,d] |
| 173 | have hi : fderiv ℝ U 0 g=0 := by |
| 174 | rw [show fderiv ℝ U 0 g=_ from divided g (fieldT S a) hs.origin, Work.F03.hessian_symmetric _, show g=(0,g.2) from Prod.ext (under hs b c d) rfl, hedge hs]; exact hs.origin.of_le le_top |
| 175 | have hw (x y) : P ![x,fieldT S a,y]=iteratedFDeriv ℝ 2 U 0 ![x,y] := by |
| 176 | rw [show P ![x,fieldT S a,y]=P ![fieldT S a,x,y] from ?_]; exact cons_inner (hs.origin.of_le le_top) _ _ |
| 177 | have hb : ![x,fieldT S a,y]=![fieldT S a,x,y] ∘ (Equiv.swap (0:Fin 3) 1) := by ext1 i; fin_cases i <;> rfl |
| 178 | rw [hb]; exact sym_Jet (hs.origin.of_le le_top) _ _ |
| 179 | rw [hp,ht,show fderiv ℝ U 0 _=0 from hi,add_zero,hw,hw,hw, |
| 180 | show iteratedFDeriv ℝ 4 F 0 ![fieldT S a,fieldT S b,fieldT S c,fieldT S d]=_ from cons_inner (hs.origin.of_le le_top) (fieldT S a) ![fieldT S b,fieldT S c,fieldT S d]] |
| 181 | rw [Work.F03.hessian_symmetric (he.of_le le_top) _ (fieldT S b),Work.F03.hessian_symmetric (he.of_le le_top) _ (fieldT S c)]; rfl |
| 182 | end Stayed |
| 183 | end YM.Stationary |
| 184 | end |
| 185 | |
| 186 | /-! |
| 187 | # Classical exchange on linear stationary representative, ACTUAL grids. |
| 188 | Gauge invertibility and reference measure used (no marked-root sector removed). |
| 189 | Exact spatial germ matching to third & fourth. |
| 190 | -/ |
| 191 | noncomputable section |
| 192 | namespace YM.Stationary |
| 193 | open Function Filter Lattice RG Wilson Exterior Precision Bloch Laurent Tree Matrix Module Finset Analysis |
| 194 | open scoped Matrix Topology ContDiff BigOperators InnerProductSpace Matrix.Norms.Frobenius |
| 195 | variable {G : Gauge} {c f : Side} {S : StepData c f} {F : Forest S.ratio} |
| 196 | |
| 197 | section projection |
| 198 | variable {n m : Type} [Fintype n] [DecidableEq n] [Fintype m] [DecidableEq m] |
| 199 | (N H : Funds n) (L : Matrix m n ℝ) (D : Matrix n m ℝ) |
| 200 | (he : IsUnit N.det) (hi : IsUnit (L*D).det) (hv : H*D=0) (hH : Hᵀ=H) (hp : N=H+Lᵀ*L) |
| 201 | include he hi hv hH hp |
| 202 | lemma radiant (u v : Corn n) : dotProduct (H *ᵥ u) v= dotProduct (H *ᵥ u) (N⁻¹ *ᵥ (H *ᵥ v)) := by |
| 203 | let A := N⁻¹ * H |
| 204 | have hh : N*A=H := by rw [show A=N⁻¹*H from rfl, ← Matrix.mul_assoc, mul_nonsing_inv N he, one_mul] |
| 205 | have h : Dᵀ*H=0 := (by rw [← transpose_transpose (Dᵀ*H), transpose_mul, transpose_transpose, hH, hv, transpose_zero]) |
| 206 | have he : L * A=0 := by |
| 207 | have hx : (L*D)ᵀ*(L*A)=0 := calc |
| 208 | _ = Dᵀ *N*A := by rw [hp,transpose_mul,Matrix.mul_add,h,zero_add]; simp only [Matrix.mul_assoc] |
| 209 | _ = 0 := by rw [Matrix.mul_assoc Dᵀ N,hh,h] |
| 210 | change L*A=0 |
| 211 | conv_lhs => rw [← Matrix.one_mul (L*A)] |
| 212 | rw [← nonsing_inv_mul (L*D)ᵀ (by rwa [det_transpose]),Matrix.mul_assoc,hx, Matrix.mul_zero] |
| 213 | rw [hp, Matrix.add_mul, Matrix.mul_assoc Lᵀ,he,Matrix.mul_zero,add_zero] at hh |
| 214 | rw [Matrix.mulVec_mulVec, show N⁻¹*H=A from rfl]; have ht x : dotProduct (H *ᵥ u) x= dotProduct u (H *ᵥ x) := by rw [← transposes H, hH] |
| 215 | rw [ht,ht,Matrix.mulVec_mulVec,hh] |
| 216 | end projection |
| 217 | section ledgers |
| 218 | variable (S) (t : S.Choices) (p : Clip) (R : PathData G) (μ : ℝ) |
| 219 | |
| 220 | def commonM := medals S t p R μ (fedora S t) 1 1 |
| 221 | def postroom := cannonade S t μ (fedora S t) (1:Joint G c f) |
| 222 | def postmark := damage (helmets G c f) (fun x : Vault G c f => merit S t p R (0,x)) 0 |
| 223 | lemma leaflet : medals S t p R μ (fedora S t) 1 1= postmark (G:=G) S t p R + (postroom (G:=G) S t μ)ᵀ * (postroom (G:=G) S t μ) := by |
| 224 | unfold postmark medals |
| 225 | rw [show burnJoint S t p R (fedora S t) 1 1=(fun x : Vault G c f => merit S t p R (0,x)) from funext (fun x => by simp only [burnJoint,merit,input_zero,atire,mul_one]; rfl)]; rfl |
| 226 | |
| 227 | variable (W : Matrix (Body 1 f) (Body 1 c) ℝ) |
| 228 | /-- column of covector (`i` counting basis). Two B derivatives and |
| 229 | one arbitrary field direction. In particular MULTIPLY by two vs the |
| 230 | value for perturbing B along one ray to read off P3 gradient. -/ |
| 231 | def fragment (x y : Link G c) : Corn (Bodies G c f) := fun i => iteratedFDeriv ℝ 3 (merit S t p R) 0 ![(0,helmets _ _ _ i),saluteLe W x,saluteLe W y] |
| 232 | |
| 233 | def amount (x y z w : Link G c) := dotProduct (fragment S t p R W x y) ((commonM S t p R μ)⁻¹ *ᵥ fragment S t p R W z w) |
| 234 | end ledgers |
| 235 | section ridge |
| 236 | variable {p : Clip} {R : PathData G} {K : Matrix (Body 1 f) (Body 1 c) ℝ} |
| 237 | {ρ : fieldDir G c 1→AxisChart G F} {σ A Λ μ η : ℝ} |
| 238 | (h : Critical F p R ρ) (hp : R.Bounds p σ A Λ) (hS : S.patch.Branches S.kernel G) (t : S.Choices) |
| 239 | include h hp hS |
| 240 | |
| 241 | lemma public_venue (hG : 0<μ) : |
| 242 | ∃ P : Matrix (Bodies G c f) (Lines G f 0) ℝ, |
| 243 | postmark S t p R*P=0 ∧ (postmark S t p R)ᵀ=postmark S t p R ∧ IsUnit ((postroom (G:=G) S t μ)*P).det := by |
| 244 | let U := (1:Joint G c f) |
| 245 | have hu : Thaw (fun _ : ℝ => U) 0 := Thaw.fixed _ _ |
| 246 | let C := fedora S t (G:=G) |
| 247 | have hC := fedora_style hS t |
| 248 | have hf : dress C U=U := dressed_one hC |
| 249 | have hi : Explosives S t 1 U := (explosive S t hS root_customs hu rfl).self_of_nhds |
| 250 | have hh := (atire_out hC hu rfl).self_of_nhds |
| 251 | have H : Shell S t p R 1 U := by simpa only [input_zero, encamp_zero h] using (camp_station h hS hp t).self_of_nhds |
| 252 | let M := postmark S t p R |
| 253 | let T := damage (helmets G c f) (canon S t p R 1 U) 0 |
| 254 | let D := shear C U |
| 255 | let P := stood S U |
| 256 | let L := postroom S t μ (G:=G) |
| 257 | let W := cannonade S t μ 1 U |
| 258 | have hL : L=W*D := by unfold L postroom; rw [arsenal S t μ C U hh (hf.symm ▸ hi),hf] |
| 259 | have he : D.det=1 := shear_det C U hh |
| 260 | have hv : T*P=0 := honors S U hS hp t H |
| 261 | have hs : D*(D⁻¹ *P)=P := by rw [← Matrix.mul_assoc, mul_nonsing_inv D (show IsUnit D.det by rw [he]; simp),Matrix.one_mul] |
| 262 | have hw : M = Dᵀ*T*D := by |
| 263 | have H := abides S t p R μ C 1 U hh (hf.symm ▸ hi) (hf.symm ▸ H) |
| 264 | rw [hf] at H |
| 265 | rw [show medals S t p R μ C 1 U=M+Lᵀ*L from leaflet ..,show medals S t p R μ 1 1 U=T+Wᵀ*W by unfold medals; rw [cannon_law]; rfl,hL, Matrix.mul_add,Matrix.add_mul] at H |
| 266 | apply add_right_cancel (b:= (W*D)ᵀ*(W*D)) |
| 267 | simpa only [D,transpose_mul, Matrix.mul_assoc] using H |
| 268 | refine ⟨D⁻¹ * P,?_,?_,?_⟩ |
| 269 | · change M*(D⁻¹*P)=0; rw [hw, Matrix.mul_assoc _ D,hs,Matrix.mul_assoc,hv,Matrix.mul_zero] |
| 270 | · change Mᵀ=M; rw [hw,transpose_mul,transpose_mul,transpose_transpose, show Tᵀ=T from damage_symm _ H.1, ← Matrix.mul_assoc] |
| 271 | change IsUnit (L * (D⁻¹ * P)).det |
| 272 | rw [hL,Matrix.mul_assoc,hs, show W*P=_ from count_ammo S t μ hS hi]; exact fund_det (grenade_safe _ hG) |
| 273 | |
| 274 | lemma mural (K : Matrix (Body 1 f) (Body 1 c) ℝ) : Stayed (merit S t p R) (soldier F K t ρ) := |
| 275 | ⟨merit_diff hS t hp,soldier_zero h hS t,soldier_diff h hS t,pension h hS t hp⟩ |
| 276 | variable (hk : Guessed F K ρ) |
| 277 | include hk |
| 278 | omit hp in |
| 279 | lemma verge (x) : fieldT (soldier F K t ρ) x=saluteLe K x := by |
| 280 | apply DFunLike.congr_fun (pace_deriv t h hk hS).fderiv |
| 281 | lemma triumph3 (x y z) : iteratedFDeriv ℝ 3 (victory F t p R ρ) 0 ![x,y,z]= iteratedFDeriv ℝ 3 (merit S t p R) 0 ![saluteLe K x,saluteLe K y,saluteLe K z] := by |
| 282 | let U := soldier F K t ρ |
| 283 | have he : merit S t p R ∘ viewS U=ᶠ[𝓝 0] victory F t p R ρ := salary h hS t hp K |
| 284 | rw [← (he.iteratedFDeriv ℝ 3).eq_of_nhds, |
| 285 | ← verge h hS t hk, ← verge h hS t hk, ← verge h hS t hk] |
| 286 | exact (mural h hp hS t K).accrue .. |
| 287 | set_option maxHeartbeats 440000 in |
| 288 | lemma triumph4 (hv : 0<μ) (hH : PriceGap F p R η) (hh : 0<η) (a b c' d) : |
| 289 | iteratedFDeriv ℝ 4 (victory F t p R ρ) 0 ![a,b,c',d]= |
| 290 | iteratedFDeriv ℝ 4 (merit S t p R) 0 ![saluteLe K a,saluteLe K b,saluteLe K c',saluteLe K d] - |
| 291 | amount S t p R μ K a b c' d - amount S t p R μ K a d b c' - amount S t p R μ K a c' b d := by |
| 292 | let U := soldier F K t ρ |
| 293 | let X := Link G c |
| 294 | let M := merit S t p R |
| 295 | let B := helmets G c f |
| 296 | have he := mural h hp hS t K |
| 297 | let Y := Vault G c f |
| 298 | let C := postmark S t p R |
| 299 | let L := commonM S t p R μ |
| 300 | obtain ⟨W,hW,heC,hw⟩ := public_venue h hp hS t hv |
| 301 | have hE (i j : Vault G c f) : iteratedFDeriv ℝ 2 M 0 ![((0:X),i),((0:X),j)] = dotProduct (cash B i) (C*ᵥ cash B j) := by |
| 302 | rw [show dotProduct _ _ = _ from (show dotProduct (cash B i) (C*ᵥ cash B j)= _ from detracts B (fun x : Vault G c f => M (0,x)) 0 i j)] |
| 303 | let E := ContinuousLinearMap.inr ℝ X Y |
| 304 | change _= iteratedFDeriv ℝ 2 (M ∘ E) 0 ![i,j] |
| 305 | rw [wired E (by rw [map_zero]; exact he.origin.analyticAt),map_zero]; congr 1 |
| 306 | ext1 k; fin_cases k <;> rfl |
| 307 | let V x y := (fieldU U x y).2 |
| 308 | have hz x y : fieldU U x y=((0:X),V x y) := he.lower x y |
| 309 | have hp' (x y : X) : fragment S t p R K x y= -(C *ᵥ cash B (V x y)) := by |
| 310 | funext i; unfold fragment |
| 311 | rw [← verge h hS t hk,← verge h hS t hk,he.reserve,hz x y,hE,dotProduct_mulVec, ← mulVec_transpose,heC] |
| 312 | have hx : cash B (helmets G c f i)=Pi.single i 1 := by funext j; simp [cash,B,Pi.single_apply,eq_comm] |
| 313 | rw [hx,dotProduct_single_one]; rfl |
| 314 | have hg := radiant L C (postroom S t μ (G:=G)) W (moment_track h hS hp t hv hH hh |>.1.ne'.isUnit) hw hW heC (leaflet S t p R μ) |
| 315 | have hc x y z w : iteratedFDeriv ℝ 3 M 0 ![fieldU U z w,fieldT U x, fieldT U y]= - amount S t p R μ K x y z w := by |
| 316 | rw [hz z w,amount,hp', hp']; simp only [Matrix.mulVec_neg,dotProduct_neg,neg_dotProduct,neg_neg]; change _= -dotProduct (C*ᵥ cash B (V x y)) (L⁻¹ *ᵥ (C *ᵥ cash B (V z w))) |
| 317 | rw [← hg] |
| 318 | have hh : iteratedFDeriv ℝ 3 M 0 ![((0:X),V z w),fieldT U x,fieldT U y]=_ := he.reserve (V z w) x y |
| 319 | rw [hh,hz x y,hE,dotProduct_mulVec, ← mulVec_transpose,heC] |
| 320 | have hs : M ∘ viewS U=ᶠ[𝓝 0] victory F t p R ρ := salary h hS t hp K |
| 321 | have ht : iteratedFDeriv ℝ 4 (M∘ viewS U) 0 ![a,b,c',d]=_ := he.tally a b c' d |
| 322 | rw [← (hs.iteratedFDeriv ℝ 4).eq_of_nhds,ht]; rw [hc a b c' d,hc a d b c',hc a c' b d]; rw [verge h hS t hk,verge h hS t hk,verge h hS t hk,verge h hS t hk]; rfl |
| 323 | end ridge |
| 324 | end YM.Stationary |
| 325 | end |