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.Analysis.Homogeneous |
| 2 | import YM.Laurent.Rune |
| 3 | import YM.Work.F02.Series |
| 4 | import YM.Work.F07.Read |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | /-! |
| 13 | # Vanishing by rays |
| 14 | |
| 15 | Real rays suffice throughout: in particular the tests used for Ward on real |
| 16 | meshes will not have hypotheses on an off-mesh analytic interpolation. These |
| 17 | are qualitative (even constants may depend on the ray). |
| 18 | -/ |
| 19 | noncomputable section |
| 20 | namespace YM.Stationary |
| 21 | open Finset Function Filter Asymptotics Set |
| 22 | open scoped Topology ContDiff BigOperators |
| 23 | variable {X Y : Type} [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 24 | [NormedAddCommGroup Y] [NormedSpace ℝ Y] |
| 25 | |
| 26 | abbrev cutRay := 𝓝[≠] (0 : ℝ) |
| 27 | |
| 28 | def Rays (s : ℕ) (f : X → Y) := ∀ x, |
| 29 | (fun t : ℝ => f (t • x)) =O[cutRay] (fun t => t^s) |
| 30 | |
| 31 | lemma along (x : X) : Tendsto (fun t : ℝ => t • x) cutRay (𝓝 0) := by |
| 32 | have ht := (show Continuous (fun t : ℝ => t • x) by fun_prop).tendsto 0 |
| 33 | rw [zero_smul] at ht; exact ht.mono_left nhdsWithin_le_nhds |
| 34 | |
| 35 | lemma powers {s t : ℕ} (h : s ≤ t) : (fun x : ℝ => x^t) =O[cutRay] (fun x => x^s) := by |
| 36 | refine isBigO_iff.mpr ⟨1,?_⟩ |
| 37 | filter_upwards [nhdsWithin_le_nhds (α:=ℝ) (a:=0) (s:={0}ᶜ) (Metric.ball_mem_nhds 0 zero_lt_one)] with i hi |
| 38 | rw [norm_pow, norm_pow, one_mul] |
| 39 | exact pow_le_pow_of_le_one (norm_nonneg _) (le_of_lt (by simpa [Metric.mem_ball] using hi)) h |
| 40 | |
| 41 | omit [NormedSpace ℝ Y] in |
| 42 | lemma Rays.weaker {f : X → Y} {s t : ℕ} (h : Rays t f) (he : s ≤ t) : Rays s f := |
| 43 | fun x => (h x).trans (powers he) |
| 44 | omit [NormedSpace ℝ Y] in |
| 45 | lemma Rays.add {f g : X → Y} {s : ℕ} (h : Rays s f) (he : Rays s g) : Rays s (f+g) := |
| 46 | fun x => (h x).add (he x) |
| 47 | omit [NormedSpace ℝ Y] in |
| 48 | lemma Rays.sub {f g : X → Y} {s : ℕ} (h : Rays s f) (he : Rays s g) : Rays s (f-g) := |
| 49 | fun x => (h x).sub (he x) |
| 50 | lemma Rays.mul {Z : Type} [NormedRing Z] [NormedAlgebra ℝ Z] |
| 51 | {f g : X → Z} {s t : ℕ} (h : Rays s f) (he : Rays t g) : Rays (s+t) (f*g) := by |
| 52 | intro x; simpa only [Rays, Pi.mul_apply,pow_add] using (h x).mul (he x) |
| 53 | |
| 54 | -- scaled limit at degree n |
| 55 | lemma scale_limit {f : ℝ → Y} (n : ℕ) (y : Y) |
| 56 | (h : (fun t : ℝ => f t - (t^n) • y) =O[cutRay] (fun t => t^(n+1))) : |
| 57 | Tendsto (fun t => (t^n)⁻¹ • f t) cutRay (𝓝 y) := by |
| 58 | rw [tendsto_iff_norm_sub_tendsto_zero] |
| 59 | obtain ⟨C,h⟩ := isBigO_iff.mp h |
| 60 | have hm := (tendsto_id (x:=𝓝 (0:ℝ))).norm.const_mul C |>.mono_left (nhdsWithin_le_nhds (s:={0}ᶜ)) |
| 61 | simp only [id_eq, norm_zero,mul_zero] at hm |
| 62 | refine squeeze_zero' (Eventually.of_forall (fun _ => norm_nonneg _)) ?_ hm |
| 63 | filter_upwards [h, (self_mem_nhdsWithin : ∀ᶠ t : ℝ in cutRay, t ≠ 0)] with t ht hi |
| 64 | have hp : ‖t‖ ≠ 0 := (norm_pos_iff.mpr hi).ne' |
| 65 | rw [norm_pow] at ht |
| 66 | rw [show _ - y = (t^n)⁻¹ • (f t - (t^n) • y) by rw [smul_sub,inv_smul_smul₀ (pow_ne_zero _ hi)], norm_smul, norm_inv,norm_pow] |
| 67 | exact (mul_le_mul_of_nonneg_left ht (by positivity)).trans_eq (by rw [pow_succ]; field_simp) |
| 68 | |
| 69 | section analytics |
| 70 | variable {p : FormalMultilinearSeries ℝ X Y} {f : X → Y} (h : HasFPowerSeriesAt f p 0) |
| 71 | include h |
| 72 | |
| 73 | private lemma approx (t : ℕ) (x : X) : |
| 74 | (fun b : ℝ => f (b • x) - p.partialSum t (b • x)) =O[cutRay] (fun b => b^t) := by |
| 75 | have he := (h.isBigO_sub_partialSum_pow t).comp_tendsto (along x) |
| 76 | simp only [comp_def, zero_add,norm_smul] at he |
| 77 | refine he.trans (isBigO_of_le' (c:=‖x‖^t) _ fun b => ?_) |
| 78 | rw [norm_pow,norm_pow, Real.norm_of_nonneg (by positivity), mul_pow, mul_comm] |
| 79 | |
| 80 | lemma rays_one (t : ℕ) (x : X) : |
| 81 | (fun b : ℝ => f (b • x)) =O[cutRay] (fun b => b^t) ↔ |
| 82 | ∀ m : ℕ, m<t → Tensor.diagonal (p m) x=0 := by |
| 83 | induction t with |
| 84 | | zero => |
| 85 | simp; simpa [FormalMultilinearSeries.partialSum] using! (approx h 0 x) |
| 86 | | succ t ih => |
| 87 | have he {y : X} : p.partialSum (t+1) y = p.partialSum t y + Tensor.diagonal (p t) y := sum_range_succ .. |
| 88 | constructor |
| 89 | · intro hp |
| 90 | have hv := ih.mp (hp.trans (powers t.le_succ)) |
| 91 | suffices H : Tensor.diagonal (p t) x = 0 from fun m hm => |
| 92 | (Nat.eq_or_lt_of_le (Nat.le_of_lt_succ hm)).elim (fun hh => hh.symm ▸ H) (hv m) |
| 93 | have hh (b : ℝ) : p.partialSum t (b • x) = 0 := Finset.sum_eq_zero (fun i hi => by |
| 94 | change Tensor.diagonal (p i) (b • x)=_; rw [Tensor.homogeneous,hv i (mem_range.mp hi),smul_zero]) |
| 95 | have hx := approx h (t+1) x |
| 96 | simp_rw [he,hh,zero_add,Tensor.homogeneous] at hx |
| 97 | exact tendsto_nhds_unique (scale_limit (f:=fun b => f (b • x)) t _ hx) |
| 98 | (scale_limit t 0 (by simpa using hp)) |
| 99 | · intro hp |
| 100 | have hh (b : ℝ) : p.partialSum (t+1) (b • x) = 0 := sum_eq_zero (fun i hi => by |
| 101 | change Tensor.diagonal (p i) (b • x)=_; rw [Tensor.homogeneous, hp _ (mem_range.mp hi),smul_zero]) |
| 102 | have he := approx h (t+1) x; simpa only [hh,sub_zero] using he |
| 103 | |
| 104 | variable [CompleteSpace Y] |
| 105 | |
| 106 | lemma diag_derivative (t : ℕ) (x : X) : Tensor.diagonal (iteratedFDeriv ℝ t f 0) x = |
| 107 | (t.factorial : ℝ) • Tensor.diagonal (p t) x := by |
| 108 | obtain ⟨r,h⟩ := h |
| 109 | simpa only [Tensor.diagonal, Fintype.card_perm, Fintype.card_fin, Finset.sum_const, Finset.card_univ, |
| 110 | Nat.cast_smul_eq_nsmul] using h.iteratedFDeriv_eq_sum_of_completeSpace (fun _ : Fin t => x) |
| 111 | end analytics |
| 112 | |
| 113 | section use |
| 114 | variable [CompleteSpace Y] {f : X → Y} (h : AnalyticAt ℝ f 0) |
| 115 | include h |
| 116 | |
| 117 | omit [CompleteSpace Y] in |
| 118 | lemma rays_zero : Rays 0 f := by |
| 119 | obtain ⟨p,h⟩ := h |
| 120 | exact fun i => (rays_one h 0 i).2 (by simp) |
| 121 | |
| 122 | lemma rays_jet (n : ℕ) : Rays n f ↔ ∀ i < n, iteratedFDeriv ℝ i f 0=0 := by |
| 123 | have hh := h.contDiffAt (n:=ω) |
| 124 | obtain ⟨p,h⟩ := h |
| 125 | have he (i : ℕ) (x : X) : Tensor.diagonal (iteratedFDeriv ℝ i f 0) x=0 ↔ Tensor.diagonal (p i) x=0 := by |
| 126 | have hv : (i.factorial:ℝ) ≠ 0 := Nat.cast_ne_zero.mpr (Nat.factorial_ne_zero _) |
| 127 | rw [diag_derivative h,smul_eq_zero,or_iff_right hv] |
| 128 | constructor |
| 129 | · refine fun u i hi => Tensor.ext_diag _ _ (hh.iteratedFDeriv_comp_perm) (fun _ _ => rfl) ?_ |
| 130 | exact funext fun x => (he i x).2 ((rays_one h n x).1 (u x) _ hi) |
| 131 | exact fun u x => (rays_one h n x).2 fun i hi => (he i x).1 (by rw [u i hi]; rfl) |
| 132 | |
| 133 | omit [CompleteSpace Y] in |
| 134 | lemma rays_from_dense (s : Set X) (hs : Dense s) (n : ℕ) |
| 135 | (he : ∀ x∈s, (fun b : ℝ => f (b • x)) =O[cutRay] (fun b => b^n)) : Rays n f := by |
| 136 | obtain ⟨p,h⟩ := h |
| 137 | intro x; refine (rays_one h n x).2 (fun i hi => ?_) |
| 138 | have hh : Continuous (Tensor.diagonal (p i)) := (Tensor.diag_smooth _ ω).continuous |
| 139 | exact closure_minimal (fun b hb => (rays_one h n b).1 (he b hb) i hi) (isClosed_eq hh (continuous_const (y:=0))) (hs x) |
| 140 | |
| 141 | lemma rays_at_zero : Rays 1 f ↔ f 0=0 := by |
| 142 | rw [rays_jet h]; simp only [Nat.lt_one_iff,forall_eq] |
| 143 | constructor |
| 144 | · intro he; simpa using DFunLike.congr_fun he 0 |
| 145 | intro he; apply ContinuousMultilinearMap.ext; intro x |
| 146 | simp [he] |
| 147 | |
| 148 | lemma ray_limit {s : ℕ} (H : Rays s f) (p : X) : |
| 149 | Tendsto (fun t : ℝ => (t^s)⁻¹ • f (t • p)) cutRay (𝓝 (Tensor.diagonal (Tensor.coeff f s 0) p)) := by |
| 150 | obtain ⟨P,hp⟩ := h |
| 151 | have he := approx hp (s+1) p |
| 152 | have hh := (rays_one hp s p).1 (H p) |
| 153 | have hv (b : ℝ) : P.partialSum (s+1) (b • p) = (b^s) • Tensor.diagonal (P s) p := by |
| 154 | rw [← Tensor.homogeneous] |
| 155 | apply Finset.sum_eq_single s |
| 156 | · intro i hi he |
| 157 | change Tensor.diagonal (P i) _=0 |
| 158 | rw [Tensor.homogeneous, hh _ (Nat.lt_of_le_of_ne (Nat.lt_succ_iff.mp (mem_range.mp hi)) he), smul_zero] |
| 159 | simp |
| 160 | have ht : Tensor.diagonal (Tensor.coeff f s 0) p=Tensor.diagonal (P s) p := by |
| 161 | unfold Tensor.diagonal Tensor.coeff |
| 162 | rw [_root_.smul_apply,show iteratedFDeriv ℝ s f 0 (fun _ => p)=_ from diag_derivative hp s p] |
| 163 | rw [inv_smul_smul₀ (by exact_mod_cast Nat.factorial_ne_zero s)]; rfl |
| 164 | simp_rw [hv] at he; rw [ht]; exact scale_limit (f:=fun t => f (t • p)) _ _ he |
| 165 | |
| 166 | omit h [CompleteSpace Y] in |
| 167 | lemma ray_origin {s : ℕ} (H : ∀ x, ∃ k : Y, Tendsto (fun t : ℝ => (t^s)⁻¹ • f (t • x)) cutRay (𝓝 k)) : Rays s f := by |
| 168 | intro x |
| 169 | obtain ⟨k,h⟩ := H x |
| 170 | refine isBigO_iff.mpr ⟨‖k‖+1,?_⟩ |
| 171 | filter_upwards [h.norm.eventually (ge_mem_nhds (lt_add_one _)), |
| 172 | (self_mem_nhdsWithin : ∀ᶠ t : ℝ in cutRay,t≠0)] with i hi hv |
| 173 | exact (div_le_iff₀ (norm_pos_iff.mpr (pow_ne_zero _ hv))).mp (by simpa only [norm_smul,norm_inv,inv_mul_eq_div] using hi) |
| 174 | end use |
| 175 | end YM.Stationary |
| 176 | end |
| 177 | |
| 178 | /-! Analytic strip bookkeeping at a fixed (but arbitrary) pre-L price. -/ |
| 179 | noncomputable section |
| 180 | namespace YM.Stationary |
| 181 | open Filter Function Laurent |
| 182 | open scoped Topology BigOperators ContDiff |
| 183 | set_option linter.unusedSectionVars false |
| 184 | |
| 185 | variable {α β : Type} [Fintype α] [Fintype β] {p : Phase α} {σ τ A M : ℝ} |
| 186 | |
| 187 | def axes (r : Corn α) : Phase α := fun i => ↑(r i) |
| 188 | @[simp] lemma axes_real (p : Corn α) : star (axes p)=axes p := by ext i; simp [axes] |
| 189 | @[simp] lemma axes_origin : axes (0:Corn α)=0 := by ext; simp [axes] |
| 190 | lemma axes_of_real (h : star p=p) : axes (fun i => (p i).re)=p := funext fun i => by |
| 191 | change ((p i).re:ℂ) = _ |
| 192 | apply Complex.ext |
| 193 | · simp |
| 194 | exact (Complex.conj_eq_iff_im.mp (congr_fun h i)).symm |
| 195 | |
| 196 | @[fun_prop] lemma axes_maps : ContDiff ℝ ω (axes (α:=α)) := by |
| 197 | exact contDiff_pi.mpr fun i => Complex.ofRealCLM.contDiff.comp (contDiff_apply ℝ ℝ i) |
| 198 | |
| 199 | def Firm (σ K : ℝ) (f : Phase α → ℂ) : Prop := Vane f σ ∧ ∀ p∈ Laurent.strip σ, ‖f p‖ ≤ K |
| 200 | |
| 201 | namespace Firm |
| 202 | variable {f g : Phase α → ℂ} |
| 203 | lemma width_pos (h : Firm σ A f) : 0 < σ := h.1.side |
| 204 | lemma in_range (h : Firm σ A f) {p : Phase α} (he : star p=p) : p ∈ strip σ := Work.F07.realStrip _ h.width_pos he |
| 205 | lemma budget_nonneg (h : Firm σ A f) : 0 ≤ A := (norm_nonneg _).trans (h.2 0 (h.in_range (by simp))) |
| 206 | lemma mono (h : Firm σ A f) (hp : 0<τ) (he : τ≤σ) (ha : A≤M) : Firm τ M f := by |
| 207 | let e : strip (α:=α) τ ⊆ strip σ := fun _ v i => (v i).trans_le he |
| 208 | exact ⟨⟨hp,fun i hi => h.1.hol i (e hi), fun i hi => h.1.reset i (e hi)⟩,fun i hi => (h.2 i (e hi)).trans ha⟩ |
| 209 | lemma const (hp : 0 < σ) (z : ℂ) : Firm σ ‖z‖ (fun _ : Phase α => z) := |
| 210 | ⟨⟨hp,fun _ _ => differentiableAt_const z,fun _ _ _ => rfl⟩,fun _ _ => le_rfl⟩ |
| 211 | lemma zero (hp : 0 < σ) : Firm σ 0 (fun _ : Phase α => 0) := by simpa using const (α:=α) hp 0 |
| 212 | |
| 213 | variable (h : Firm σ A f) |
| 214 | include h |
| 215 | lemma add (hs : Firm σ M g) : Firm σ (A+M) (fun i => f i + g i) := |
| 216 | ⟨⟨h.width_pos,fun i hi => (h.1.hol i hi).add (hs.1.hol i hi), fun i hi u => by rw [h.1.reset i hi u, hs.1.reset i hi u]⟩, |
| 217 | fun i hi => (norm_add_le ..).trans (add_le_add (h.2 i hi) (hs.2 i hi))⟩ |
| 218 | lemma sub (hs : Firm σ M g) : Firm σ (A+M) (fun i => f i - g i) := |
| 219 | ⟨⟨h.width_pos,fun i hi => (h.1.hol i hi).sub (hs.1.hol i hi), fun i hi u => by rw [h.1.reset i hi u, hs.1.reset i hi u]⟩, |
| 220 | fun i hi => (norm_sub_le ..).trans (add_le_add (h.2 i hi) (hs.2 i hi))⟩ |
| 221 | lemma neg : Firm σ A (fun i => -f i) := by simpa using (zero (α:=α) h.width_pos).sub h |
| 222 | lemma mul (hs : Firm σ M g) : Firm σ (A*M) (fun i => f i * g i) := |
| 223 | ⟨⟨h.width_pos,fun i hi => (h.1.hol i hi).mul (hs.1.hol i hi), fun i hi u => by rw [h.1.reset i hi u, hs.1.reset i hi u]⟩, |
| 224 | fun i hi => by rw [norm_mul]; exact mul_le_mul (h.2 i hi) (hs.2 i hi) (norm_nonneg _) h.budget_nonneg⟩ |
| 225 | omit h in |
| 226 | lemma sum {ι : Type} (s : Finset ι) (f : ι → Phase α → ℂ) (A : ι → ℝ) (hσ : 0 < σ) |
| 227 | (H : ∀ i ∈ s, Firm σ (A i) (f i)) : Firm σ (∑ i∈s, A i) (fun p => ∑ i ∈ s,f i p) := by |
| 228 | classical |
| 229 | induction s using Finset.induction with |
| 230 | | empty => simpa using zero (α:=α) hσ |
| 231 | | insert i s hi ih => |
| 232 | simp_rw [Finset.sum_insert hi] |
| 233 | exact (H i (Finset.mem_insert_self ..)).add (ih fun i hi => H _ (Finset.mem_insert_of_mem hi)) |
| 234 | |
| 235 | lemma comp (g : Phase β → Phase α) (ht : Differentiable ℂ g) (hp : 0<τ) |
| 236 | (he : ∀ p : Phase β, p∈ strip τ → g p∈ strip σ) |
| 237 | (hx : ∀ p : Phase β, ∀ x : Shift β, ∃ y : Shift α, g (p+reciprocal x)=g p+reciprocal y) : Firm τ A (f ∘ g) := by |
| 238 | refine ⟨⟨hp,fun i hi => (h.1.hol _ (he i hi)).comp _ (ht _),fun i hi u => ?_⟩,fun i hi => h.2 _ (he i hi)⟩ |
| 239 | obtain ⟨k,hk⟩ := hx i u |
| 240 | simp only [comp_apply, hk,h.1.reset _ (he i hi) k] |
| 241 | |
| 242 | lemma analytic {p : Phase α} (hp : p ∈ strip σ) : AnalyticAt ℂ f p := by |
| 243 | apply PolyDisc.formOf |
| 244 | filter_upwards [(Work.F07.stripOpen σ).mem_nhds hp] with i hi; exact h.1.hol _ hi |
| 245 | lemma analytic_real (r : Corn α) : AnalyticAt ℝ (f ∘ axes) r := by |
| 246 | have ht : ContDiffAt ℝ ω f (axes r) := ((h.analytic (h.in_range (axes_real r))).contDiffAt (n:=ω)).restrict_scalars ℝ |
| 247 | exact (ht.comp _ axes_maps.contDiffAt).analyticAt |
| 248 | |
| 249 | omit h in |
| 250 | lemma mode (u : Shift α) (hs : 0<σ) : Firm σ (Real.exp (σ * size u)) (fun p => Laurent.mode p u) := |
| 251 | ⟨⟨hs,fun _ _ => by unfold Laurent.mode; fun_prop,fun _ _ _ => by rw [mode_phase, mode_periodic, mul_one]⟩, |
| 252 | fun i hi => reward i u σ (fun b => (hi b).le)⟩ |
| 253 | |
| 254 | omit h in |
| 255 | lemma of_series {f : Shift α → ℂ} (hf : Width σ A f) (hσ : 0<σ) : Firm σ A (Laurent.read f) := by |
| 256 | refine ⟨⟨hσ,fun p hp => ?_, fun p _ u => Laurent.periodic _ _ _⟩,fun p hp => Width.estimate hf p (fun i => (hp i).le)⟩ |
| 257 | obtain ⟨R,hR,hK⟩ := Metric.mem_nhds_iff.mp ((Work.F07.stripOpen σ).mem_nhds hp) |
| 258 | refine (Work.F02.analytic_series (fun i p => Laurent.mode p i * f i) hR |
| 259 | (fun i => by unfold Laurent.mode; fun_prop) hf.2.1 (fun i p hp => ?_)).differentiableAt |
| 260 | rw [norm_mul] |
| 261 | exact mul_le_mul_of_nonneg_right (reward p i σ (fun j => (hK hp j).le)) (norm_nonneg _) |
| 262 | end Firm |
| 263 | end YM.Stationary |
| 264 | end |
| 265 | |
| 266 | /-! # Polarizing real analytic arrays in independent Fourier slots |
| 267 | |
| 268 | `beat` is the derivative, `noteAt` the coefficient (symmetric factorial |
| 269 | normalization); both *ordinary complexification* in their slots, so no Ad / |
| 270 | star even for matrix values on phases. Use pointwise over a finite physical |
| 271 | shape; F02/friend inputs use Color norm or their physical basis explicitly |
| 272 | via coordinate changes in the applications. |
| 273 | -/ |
| 274 | noncomputable section |
| 275 | namespace YM.Stationary |
| 276 | open Function Filter Laurent Finset |
| 277 | open scoped Topology BigOperators ContDiff |
| 278 | variable {α β ι : Type} [Fintype α] [Fintype β] [Fintype ι] [DecidableEq ι] |
| 279 | |
| 280 | abbrev RecordM (R : Type) [CommSemiring R] (i α : Type) := MultilinearMap R (fun _ : i => α → R) R |
| 281 | |
| 282 | variable {R : Type} [CommSemiring R] |
| 283 | |
| 284 | def recording (a : (ι → α) → R) : RecordM R ι α := ∑ i : ι → α, |
| 285 | (MultilinearMap.mkPiRing R ι (a i)).compLinearMap (fun k => LinearMap.proj (i k)) |
| 286 | lemma recording_apply (a : (ι → α) → R) (v : ι → α → R) : |
| 287 | recording a v = ∑ i : ι→α, (∏ k, v k (i k))*a i := by unfold recording; rw [_root_.sum_apply]; rfl |
| 288 | |
| 289 | section units |
| 290 | variable [DecidableEq α] |
| 291 | |
| 292 | lemma expand_coord (a : RecordM R ι α) (v : ι → α → R) : |
| 293 | recording (fun i => a (fun k => Pi.single (i k) 1)) v=a v := by |
| 294 | rw [recording_apply] |
| 295 | let g (i : ι) (b : α) := v i b • (Pi.single b (1:R)) |
| 296 | have he : (fun i => ∑ b : α, g i b)=v := by |
| 297 | funext i x; simp [Finset.sum_apply,g,Pi.single_apply,mul_ite] |
| 298 | rw [← he, a.map_sum]; rw [he] |
| 299 | refine sum_congr rfl fun b _ => ?_ |
| 300 | rw [show a _ = _ from a.map_smul_univ (fun k => v k (b k)) (fun k => Pi.single (b k) (1:R))] |
| 301 | rfl |
| 302 | |
| 303 | def enlarge (a : RecordM ℝ ι α) : RecordM ℂ ι α := recording (fun i => ((a (fun k => Pi.single (i k) 1)):ℂ)) |
| 304 | |
| 305 | lemma enlarge_real (a : RecordM ℝ ι α) (v : ι → Corn α) : enlarge a (axes ∘ v)=(a v:ℂ) := by |
| 306 | classical |
| 307 | rw [← expand_coord a v] |
| 308 | unfold enlarge |
| 309 | rw [recording_apply,recording_apply]; push_cast; rfl |
| 310 | lemma enlarge_inj : Injective (enlarge (α:=α) (ι:=ι)) := by |
| 311 | intro a b h; ext1 v; apply Complex.ofReal_injective; rw [← enlarge_real,← enlarge_real,h] |
| 312 | lemma enlarge_unique (a b : RecordM ℂ ι α) (he : ∀ v : ι → Corn α, a (axes ∘ v)=b (axes ∘ v)) : a=b := by |
| 313 | classical |
| 314 | ext1 v; rw [← expand_coord a v, ← expand_coord b v]; congr 2 |
| 315 | ext1 i |
| 316 | have H := he (fun k => Pi.single (i k) 1) |
| 317 | rw [show axes ∘ (fun k => Pi.single (i k) 1) = (fun k => Pi.single (i k) 1) by |
| 318 | funext a b; simp [axes,Pi.single_apply]; split <;> simp] at H |
| 319 | exact H |
| 320 | lemma enlarge_bar (a : RecordM ℝ ι α) (v : ι → Phase α) : star (enlarge a v)=enlarge a (star v) := by |
| 321 | simp only [enlarge,recording_apply,star_sum,star_mul,star_prod, Pi.star_apply] |
| 322 | apply sum_congr rfl; intro k _; rw [mul_comm,Complex.star_def,Complex.conj_ofReal] |
| 323 | end units |
| 324 | |
| 325 | section continuity |
| 326 | variable {X Y Z : Type} [NormedAddCommGroup X] [NormedAddCommGroup Y] [NormedAddCommGroup Z] |
| 327 | [NormedSpace ℝ X] [NormedSpace ℝ Y] [NormedSpace ℝ Z] |
| 328 | lemma wired {f : Y → Z} (L : X →L[ℝ] Y) {x : X} (hf : AnalyticAt ℝ f (L x)) [CompleteSpace Z] (n : ℕ) (v : Fin n → X) : |
| 329 | iteratedFDeriv ℝ n (f ∘ L) x v = iteratedFDeriv ℝ n f (L x) (L ∘ v) := by |
| 330 | obtain ⟨s,hO,hs,he⟩ := (hf.contDiffAt (n:=ω)).contDiffOn' (m:=ω) le_rfl (by simp) |
| 331 | have hy : ContDiffOn ℝ ω f s := by simpa using he |
| 332 | have H := DFunLike.congr_fun (L.iteratedFDerivWithin_comp_right hy (hO.uniqueDiffOn) ((hO.preimage L.continuous).uniqueDiffOn) hs (show (↑n : WithTop ℕ∞)≤ω from le_top)) v |
| 333 | rw [iteratedFDerivWithin_of_isOpen n (hO.preimage L.continuous) (show x ∈ L ⁻¹' s from hs), iteratedFDerivWithin_of_isOpen n hO hs] at H |
| 334 | exact H |
| 335 | end continuity |
| 336 | |
| 337 | section jets |
| 338 | variable [DecidableEq α] [DecidableEq β] {n : ℕ} {x : Corn α} |
| 339 | |
| 340 | def beat (f : Corn α → ℝ) (x : Corn α) (n : ℕ) : RecordM ℂ (Fin n) α := enlarge (iteratedFDeriv ℝ n f x).toMultilinearMap |
| 341 | def noteAt (f : Corn α → ℝ) (n : ℕ) : RecordM ℂ (Fin n) α := ((n.factorial:ℂ)⁻¹) • beat f 0 n |
| 342 | lemma beat_real (f : Corn α → ℝ) (v : Fin n → Corn α) : beat f x n (axes ∘ v) = ↑((iteratedFDeriv ℝ n f x) v) := enlarge_real .. |
| 343 | lemma note_real (f : Corn α → ℝ) (v : Fin n → Corn α) : noteAt f n (axes ∘ v) = ↑((Tensor.coeff f n 0) v) := by |
| 344 | rw [noteAt, _root_.smul_apply, beat_real]; simp [Tensor.coeff] |
| 345 | lemma note_map (f : Corn α → ℝ) (n : ℕ) : noteAt f n = enlarge (Tensor.coeff f n 0).toMultilinearMap := enlarge_unique _ _ fun v => (note_real f v).trans (enlarge_real _ v).symm |
| 346 | lemma from_note (f g : Corn α → ℝ) (n : ℕ) (h : noteAt f n=noteAt g n) : iteratedFDeriv ℝ n f 0=iteratedFDeriv ℝ n g 0 := by |
| 347 | have hf : ((n.factorial:ℂ)⁻¹)≠0 := by exact inv_ne_zero (by exact_mod_cast n.factorial_ne_zero) |
| 348 | have he := smul_right_injective _ hf h |
| 349 | exact ContinuousMultilinearMap.toMultilinearMap_injective (enlarge_inj he) |
| 350 | |
| 351 | lemma note_fixed (f : Corn α → ℝ) (v : Fin n → Phase α) : star (noteAt f n v)=noteAt f n (star v) := by rw [note_map,enlarge_bar] |
| 352 | lemma note_perm (f : Corn α → ℝ) (h : AnalyticAt ℝ f 0) (v : Fin n→Phase α) (s : Equiv.Perm (Fin n)) : noteAt f n (v ∘ s) = noteAt f n v := by |
| 353 | suffices he : (noteAt f n).domDomCongr s=noteAt f n from DFunLike.congr_fun he v |
| 354 | apply enlarge_unique; intro v |
| 355 | change noteAt f n (axes ∘ (v ∘ s))=noteAt _ _ (axes ∘ v) |
| 356 | rw [note_real,note_real,Tensor.coeff_symm h.contDiffAt v s] |
| 357 | end jets |
| 358 | end YM.Stationary |
| 359 | end |
| 360 | |
| 361 | /-! The head of a Taylor jet after passage along a germ. -/ |
| 362 | noncomputable section |
| 363 | namespace YM.Stationary |
| 364 | open Function Filter Finset |
| 365 | open scoped Topology BigOperators ContDiff |
| 366 | |
| 367 | section atoms |
| 368 | open OrderedFinpartition |
| 369 | lemma atom_left (n) : (atomic n).extendLeft=atomic (n+1) := by |
| 370 | have hp (i : Fin (n+1)) : ((atomic n).extendLeft).partSize i=1 := by cases i using Fin.cases <;> rfl |
| 371 | have hh (i : Fin (n+1)) (j) : ((atomic n).extendLeft).emb i j=i := by cases i using Fin.cases <;> rfl |
| 372 | unfold extendLeft atomic; congr! |
| 373 | · exact hp _ |
| 374 | · exact hp _ |
| 375 | rename_i H i u e j j' h; exact (hh i j).trans e |
| 376 | lemma allSingle {n : ℕ} (c : OrderedFinpartition n) (hc : c.length = n) : c=atomic n := by |
| 377 | induction n with |
| 378 | | zero => exact Subsingleton.elim .. |
| 379 | | succ i ih => |
| 380 | obtain ⟨⟨b,h|k⟩,rfl⟩ := (extendEquiv i).surjective c |
| 381 | · change b.length+1=i+1 at hc; rw [ih b (Nat.succ.inj hc)]; exact atom_left i |
| 382 | change b.length=i+1 at hc; have hh := b.length_le; omega |
| 383 | end atoms |
| 384 | |
| 385 | variable {X Y Z : Type} [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 386 | [NormedAddCommGroup Y] [NormedSpace ℝ Y] [CompleteSpace Y] |
| 387 | [NormedAddCommGroup Z] [NormedSpace ℝ Z] [CompleteSpace Z] |
| 388 | |
| 389 | /-- first unseen jet, even with a constant. -/ |
| 390 | lemma quiet_comp {n : ℕ} {F : X → Y} {G : Y → Z} (x : X) (h : AnalyticAt ℝ F x) |
| 391 | (hp : AnalyticAt ℝ G (F x)) (hu : ∀ i : ℕ, i<n → 0 < i → iteratedFDeriv ℝ i G (F x)=0) |
| 392 | (v : Fin n → X) : |
| 393 | iteratedFDeriv ℝ n (G ∘ F) x v = iteratedFDeriv ℝ n G (F x) (fderiv ℝ F x ∘ v) := by |
| 394 | cases n with |
| 395 | | zero => simp |
| 396 | | succ i => |
| 397 | rw [iteratedFDeriv_comp (hp.contDiffAt (n:=ω)) h.contDiffAt le_top] |
| 398 | unfold FormalMultilinearSeries.taylorComp |
| 399 | rw [_root_.sum_apply,Finset.sum_eq_single (OrderedFinpartition.atomic (i+1))] |
| 400 | · simp only [FormalMultilinearSeries.compAlongOrderedFinpartition_apply, |
| 401 | OrderedFinpartition.applyOrderedFinpartition_apply,ftaylorSeries] |
| 402 | change iteratedFDeriv ℝ (i+1) G (F x) (fun b => iteratedFDeriv ℝ 1 F x (fun _ => v b))=_ |
| 403 | simp only [iteratedFDeriv_one_apply]; rfl |
| 404 | · intro b _ hb |
| 405 | have hx : b.length < i+1 := lt_of_le_of_ne b.length_le (fun h => hb (allSingle b h)) |
| 406 | simp only [FormalMultilinearSeries.compAlongOrderedFinpartition_apply, ftaylorSeries, hu _ hx (b.length_pos (by omega))]; rfl |
| 407 | simp |
| 408 | end YM.Stationary |
| 409 | end |