Navier–Stokes: the Lean blow-up proof, cleaned up together
OpenAI's 2026 Lean proofs of blowup for forced Navier–Stokes and Euler, rerun by others, not refereed, no ruling from Clay; cleaned up together: more readable, faster to build

Start from https://github.com/openai/NavierStokesAndEuler at f9e8bc5b38b6e212696e8a30e3e91517af887bbd
Browse filesIts tree as it is at that commit, without its history; the problem's own files follow. Left out, not being the proof, its build or its licences (14): - Euler/BaseFirstPacketChoiceNoOptions.lean - Euler/BaseFirstPacketEvolutionNoOptions.lean - Euler/BaseInductionStageNoOptions.lean - Euler/GevreyGeneratingDerivativesNoOptions.lean - Euler/LpCylinderCoefficientTimeInvestigation.lean - Euler/MeanPacketEnvelopeBoundsNoOptions.lean - Euler/PacketShiftArithmeticNoOptions.lean - Euler/ParentGeometryForwardChoiceNoOptions.lean - Euler/ParentGeometryJoinedChoiceInvestigation.lean - Euler/TransversePacketCorrectorNoOptions.lean - NavierStokes/ActualParticularDynamicsNoOptions.lean - NavierStokes/CorrectionInitializationNoOptions.lean - NavierStokes/DiagonalJetBoundsNoOptions.lean - formalization.yaml
+1 −0 .gitignore added View file
| @@ -0,0 +1 @@ | ||
| 1 | +.lake/ | |
+14 −0 ComparatorChallenges/Euler.json added View file
| @@ -0,0 +1,14 @@ | ||
| 1 | +{ | |
| 2 | + "challenge_module": "ComparatorChallenges.Euler", | |
| 3 | + "solution_module": "Euler.Solution", | |
| 4 | + "enable_nanoda": true, | |
| 5 | + "theorem_names": [ | |
| 6 | + "Euler.euler_breakdown_R3", | |
| 7 | + "Euler.exists_compact_smooth_euler_singularity" | |
| 8 | + ], | |
| 9 | + "permitted_axioms": [ | |
| 10 | + "propext", | |
| 11 | + "Quot.sound", | |
| 12 | + "Classical.choice" | |
| 13 | + ] | |
| 14 | +} | |
+186 −0 ComparatorChallenges/Euler.lean added View file
| @@ -0,0 +1,186 @@ | ||
| 1 | +/- | |
| 2 | +Copyright 2026 The Formal Conjectures Authors. | |
| 3 | + | |
| 4 | +This file has been modified from its original form in the Formal Conjectures | |
| 5 | +project. | |
| 6 | + | |
| 7 | +Licensed under the Apache License, Version 2.0 (the "License"); | |
| 8 | +you may not use this file except in compliance with the License. | |
| 9 | +You may obtain a copy of the License at | |
| 10 | + | |
| 11 | + https://www.apache.org/licenses/LICENSE-2.0 | |
| 12 | + | |
| 13 | +Unless required by applicable law or agreed to in writing, software | |
| 14 | +distributed under the License is distributed on an "AS IS" BASIS, | |
| 15 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 16 | +See the License for the specific language governing permissions and | |
| 17 | +limitations under the License. | |
| 18 | +-/ | |
| 19 | + | |
| 20 | +import Mathlib | |
| 21 | + | |
| 22 | +/-! | |
| 23 | +# Comparator challenge: unforced Euler breakdown on ℝ³ | |
| 24 | + | |
| 25 | +Adapted from `FormalConjectures/Millenium/NavierStokes.lean` at | |
| 26 | +https://github.com/google-deepmind/formal-conjectures/blob/main/FormalConjectures/Millenium/NavierStokes.lean | |
| 27 | + | |
| 28 | +This is the whole-space breakdown alternative specialized to zero viscosity | |
| 29 | +and zero external force. It retains the source's initial-data decay, joint | |
| 30 | +smoothness, square integrability, and uniform energy conditions. Velocity and | |
| 31 | +pressure take position before time. The time derivative at zero is taken | |
| 32 | +within `[0,∞)`. | |
| 33 | + | |
| 34 | +All problem-specific definitions are included here. The reference imports only | |
| 35 | +Mathlib, independently of the Euler proof development. The theorem proofs are | |
| 36 | +intentional Comparator challenge placeholders. | |
| 37 | +-/ | |
| 38 | + | |
| 39 | + | |
| 40 | +-- Inline the only needed notation from FormalConjecturesForMathlib.Geometry.3d. | |
| 41 | +local notation "ℝ³" => EuclideanSpace ℝ (Fin 3) | |
| 42 | + | |
| 43 | +open ContDiff Set InnerProductSpace MeasureTheory | |
| 44 | + | |
| 45 | +namespace Euler | |
| 46 | + | |
| 47 | +/-- The divergence of a vector field, computed as the trace of its derivative. -/ | |
| 48 | +noncomputable def divergence (v : ℝ³ → ℝ³) (x : ℝ³) : ℝ := | |
| 49 | + (fderiv ℝ v x).trace ℝ ℝ³ | |
| 50 | + | |
| 51 | +local notation "∇⬝" => divergence | |
| 52 | + | |
| 53 | +/-- Smooth, divergence-free initial velocity. -/ | |
| 54 | +structure InitialVelocityCondition (u₀ : ℝ³ → ℝ³) : Prop where | |
| 55 | + div_free : ∀ x, ∇⬝ u₀ x = 0 | |
| 56 | + smooth : ContDiff ℝ ∞ u₀ | |
| 57 | + | |
| 58 | +/-- Every spatial derivative of the initial velocity decays faster than any polynomial. -/ | |
| 59 | +structure InitialVelocityConditionDecay (u₀ : ℝ³ → ℝ³) : Prop extends | |
| 60 | + InitialVelocityCondition u₀ where | |
| 61 | + decay : ∀ m : ℕ, ∀ K : ℝ, ∃ C : ℝ, ∀ x, | |
| 62 | + ‖iteratedFDeriv ℝ m u₀ x‖ ≤ C / (1 + ‖x‖) ^ K | |
| 63 | + | |
| 64 | +/-- A global smooth solution of unforced incompressible Euler on ℝ³. -/ | |
| 65 | +structure EulerExistenceAndSmoothness | |
| 66 | + (u₀ : ℝ³ → ℝ³) (v : ℝ³ → ℝ → ℝ³) (p : ℝ³ → ℝ → ℝ) : Prop where | |
| 67 | + /-- `∂ₜv + (v · ∇)v = -∇p`: viscosity and external force are both zero. -/ | |
| 68 | + euler : ∀ x, ∀ t ≥ 0, | |
| 69 | + derivWithin (v x ·) (Set.Ici 0) t + fderiv ℝ (v · t) x (v x t) = | |
| 70 | + -gradient (p · t) x | |
| 71 | + div_free : ∀ x, ∀ t ≥ 0, ∇⬝ (v · t) x = 0 | |
| 72 | + initial_condition : ∀ x, v x 0 = u₀ x | |
| 73 | + velocity_smooth : ContDiffOn ℝ ∞ (Function.uncurry v) (Set.univ ×ˢ Set.Ici 0) | |
| 74 | + pressure_smooth : ContDiffOn ℝ ∞ (Function.uncurry p) (Set.univ ×ˢ Set.Ici 0) | |
| 75 | + | |
| 76 | +/-- The whole-space solution class, retaining the source's finite, uniformly bounded energy. -/ | |
| 77 | +structure EulerExistenceAndSmoothnessR3 | |
| 78 | + (u₀ : ℝ³ → ℝ³) (v : ℝ³ → ℝ → ℝ³) (p : ℝ³ → ℝ → ℝ) : Prop | |
| 79 | + extends EulerExistenceAndSmoothness u₀ v p where | |
| 80 | + integrable : ∀ t ≥ 0, MemLp (‖v · t‖) 2 | |
| 81 | + globally_bounded_energy : ∃ E : ℝ, ∀ t ≥ 0, (∫ x : ℝ³, ‖v x t‖ ^ 2) < E | |
| 82 | + | |
| 83 | +/-- Some admissible initial velocity has no global smooth unforced Euler solution | |
| 84 | +in the whole-space energy class above. This is the theorem to supply to Comparator. -/ | |
| 85 | +theorem euler_breakdown_R3 : | |
| 86 | + ∃ u₀ : ℝ³ → ℝ³, InitialVelocityConditionDecay u₀ ∧ | |
| 87 | + ¬ (∃ v p, EulerExistenceAndSmoothnessR3 u₀ v p) := by | |
| 88 | + sorry | |
| 89 | + | |
| 90 | +/-! | |
| 91 | +## Finite lifespan and quantitative singularity | |
| 92 | + | |
| 93 | +The following version of `EulerPacketInduction.exists_compact_smooth_euler_singularity` | |
| 94 | +uses ordinary velocity and pressure functions, with position before time as above. | |
| 95 | +Its finite-interval solution class matches the original theorem: the velocity and | |
| 96 | +its strong time derivative have continuous L² spatial jets of every order. | |
| 97 | +Pressure is spatially differentiable at interior times; no time regularity or | |
| 98 | +normalization is imposed on it. | |
| 99 | + | |
| 100 | +This is a separate solution class from the global challenge. Maximality below is | |
| 101 | +asserted in this all-order Sobolev class. The last clause independently retains | |
| 102 | +nonexistence in the broader global class `EulerExistenceAndSmoothnessR3`. | |
| 103 | + | |
| 104 | +The spatial suprema take values in `ℝ≥0∞`, so an unbounded field has norm `⊤`. | |
| 105 | +The theorem separately requires bounded C¹ norms and a finite vorticity integral | |
| 106 | +on every shorter closed time interval, locating the singularity at the endpoint. | |
| 107 | +-/ | |
| 108 | + | |
| 109 | +open scoped ENNReal Topology | |
| 110 | + | |
| 111 | +/-- The L² equivalence class of a square-integrable function. The fallback makes | |
| 112 | +this a total function; the solution conditions require square integrability | |
| 113 | +wherever it is used. -/ | |
| 114 | +noncomputable def toL2 {V : Type*} [NormedAddCommGroup V] (f : ℝ³ → V) : | |
| 115 | + Lp V 2 (volume : Measure ℝ³) := by | |
| 116 | + classical | |
| 117 | + exact if h : MemLp f 2 volume then h.toLp f else 0 | |
| 118 | + | |
| 119 | +/-- A spatially smooth path whose actual spatial derivative tensors belong to L² | |
| 120 | +and depend continuously on time in L², at every finite order. -/ | |
| 121 | +structure SobolevSmoothOn (I : Set ℝ) (v : ℝ³ → ℝ → ℝ³) : Prop where | |
| 122 | + spatial_smooth : ∀ t ∈ I, ContDiff ℝ ∞ (v · t) | |
| 123 | + integrable : ∀ t ∈ I, MemLp (v · t) 2 | |
| 124 | + jets_integrable : ∀ m : ℕ, ∀ t ∈ I, MemLp (iteratedFDeriv ℝ m (v · t)) 2 | |
| 125 | + continuous : ContinuousOn (fun t => toL2 (v · t)) I | |
| 126 | + jets_continuous : ∀ m : ℕ, | |
| 127 | + ContinuousOn (fun t => toL2 (iteratedFDeriv ℝ m (v · t))) I | |
| 128 | + | |
| 129 | +/-- Scalar-pressure Euler on a time set `I` in the original theorem's smooth | |
| 130 | +Sobolev class. The velocity and its strong time derivative have continuous L² | |
| 131 | +spatial jets of every order. The Euler equation uses this derivative witness. | |
| 132 | + | |
| 133 | +As in `IsSmoothScalarEuler`, the time law and scalar-pressure equation are | |
| 134 | +required at interior times. There is no endpoint derivative condition. We use | |
| 135 | +`Ico 0 T` for a maximal lifespan and `Icc 0 T` for a closed interval. -/ | |
| 136 | +structure EulerSobolevExistenceAndSmoothnessR3On (I : Set ℝ) | |
| 137 | + (u₀ : ℝ³ → ℝ³) (v : ℝ³ → ℝ → ℝ³) (p : ℝ³ → ℝ → ℝ) : Prop where | |
| 138 | + div_free : ∀ x, ∀ t ∈ I, ∇⬝ (v · t) x = 0 | |
| 139 | + initial_condition : ∀ x, v x 0 = u₀ x | |
| 140 | + velocity_smooth : SobolevSmoothOn I v | |
| 141 | + pressure_differentiable : ∀ t ∈ interior I, Differentiable ℝ (p · t) | |
| 142 | + euler : ∃ w : ℝ³ → ℝ → ℝ³, | |
| 143 | + SobolevSmoothOn I w ∧ | |
| 144 | + (∀ t ∈ interior I, | |
| 145 | + HasDerivAt (fun s => toL2 (v · s)) (toL2 (w · t)) t) ∧ | |
| 146 | + (∀ x, ∀ t ∈ interior I, | |
| 147 | + w x t + fderiv ℝ (v · t) x (v x t) = -gradient (p · t) x) | |
| 148 | + | |
| 149 | +/-- The ordinary curl of a velocity field, expressed through its spatial derivative. | |
| 150 | +Indices in `Fin 3` are cyclic. -/ | |
| 151 | +noncomputable def vorticity (v : ℝ³ → ℝ³) (x : ℝ³) : ℝ³ := | |
| 152 | + WithLp.toLp 2 (fun i : Fin 3 => | |
| 153 | + (fderiv ℝ v x (EuclideanSpace.single (i + 1) 1)) (i + 2) - | |
| 154 | + (fderiv ℝ v x (EuclideanSpace.single (i + 2) 1)) (i + 1)) | |
| 155 | + | |
| 156 | +/-- The sum of the spatial suprema of the velocity norm and derivative operator norm. -/ | |
| 157 | +noncomputable def velocityC1Norm (v : ℝ³ → ℝ³) : ℝ≥0∞ := | |
| 158 | + (⨆ x, ENNReal.ofReal ‖v x‖) + (⨆ x, ENNReal.ofReal ‖fderiv ℝ v x‖) | |
| 159 | + | |
| 160 | +/-- The spatial supremum of the Euclidean norm of the actual vorticity. -/ | |
| 161 | +noncomputable def vorticityNorm (v : ℝ³ → ℝ³) : ℝ≥0∞ := | |
| 162 | + ⨆ x, ENNReal.ofReal ‖vorticity v x‖ | |
| 163 | + | |
| 164 | +/-- Nonzero, compactly supported, rapidly decaying initial data have one smooth | |
| 165 | +finite-energy Euler solution on a positive finite maximal lifespan `[0,T*)`. | |
| 166 | +Closed-interval solutions in the all-order Sobolev class exist exactly below `T*`. | |
| 167 | +The chosen solution has locally bounded C¹ norm and locally finite vorticity | |
| 168 | +integral, but its C¹ upper limit and full vorticity integral are infinite at `T*`. | |
| 169 | +The same datum also satisfies the global breakdown conclusion above. -/ | |
| 170 | +theorem exists_compact_smooth_euler_singularity : | |
| 171 | + ∃ (u₀ : ℝ³ → ℝ³) (Tstar : ℝ) (v : ℝ³ → ℝ → ℝ³) (p : ℝ³ → ℝ → ℝ), | |
| 172 | + InitialVelocityConditionDecay u₀ ∧ HasCompactSupport u₀ ∧ u₀ ≠ 0 ∧ | |
| 173 | + 0 < Tstar ∧ Tstar ≤ 1 ∧ | |
| 174 | + EulerSobolevExistenceAndSmoothnessR3On (Ico 0 Tstar) u₀ v p ∧ | |
| 175 | + (∃ E : ℝ, ∀ t ∈ Ico (0 : ℝ) Tstar, (∫ x : ℝ³, ‖v x t‖ ^ 2) < E) ∧ | |
| 176 | + (∀ T : ℝ, 0 < T → | |
| 177 | + ((∃ w q, EulerSobolevExistenceAndSmoothnessR3On (Icc 0 T) u₀ w q) ↔ T < Tstar)) ∧ | |
| 178 | + (∀ T ∈ Ioo 0 Tstar, | |
| 179 | + (⨆ t ∈ Icc (0 : ℝ) T, velocityC1Norm (v · t)) < ⊤ ∧ | |
| 180 | + (∫⁻ t in Ico (0 : ℝ) T, vorticityNorm (v · t)) < ⊤) ∧ | |
| 181 | + Filter.limsup (fun t : ℝ => velocityC1Norm (v · t)) (𝓝[<] Tstar) = ⊤ ∧ | |
| 182 | + (∫⁻ t in Ico (0 : ℝ) Tstar, vorticityNorm (v · t)) = ⊤ ∧ | |
| 183 | + ¬ (∃ w q, EulerExistenceAndSmoothnessR3 u₀ w q) := by | |
| 184 | + sorry | |
| 185 | + | |
| 186 | +end Euler | |
+14 −0 ComparatorChallenges/NavierStokes.json added View file
| @@ -0,0 +1,14 @@ | ||
| 1 | +{ | |
| 2 | + "challenge_module": "ComparatorChallenges.NavierStokes", | |
| 3 | + "solution_module": "NavierStokes.ComparatorSolution", | |
| 4 | + "enable_nanoda": true, | |
| 5 | + "theorem_names": [ | |
| 6 | + "NavierStokes.Comparator.navier_stokes_breakdown_R3", | |
| 7 | + "NavierStokes.Comparator.navier_stokes_breakdown_periodic" | |
| 8 | + ], | |
| 9 | + "permitted_axioms": [ | |
| 10 | + "propext", | |
| 11 | + "Quot.sound", | |
| 12 | + "Classical.choice" | |
| 13 | + ] | |
| 14 | +} | |
+286 −0 ComparatorChallenges/NavierStokes.lean added View file
| @@ -0,0 +1,286 @@ | ||
| 1 | +/- | |
| 2 | +Copyright 2026 The Formal Conjectures Authors. | |
| 3 | + | |
| 4 | +This file has been modified from its original form in the Formal Conjectures | |
| 5 | +project. | |
| 6 | + | |
| 7 | +Licensed under the Apache License, Version 2.0 (the "License"); | |
| 8 | +you may not use this file except in compliance with the License. | |
| 9 | +You may obtain a copy of the License at | |
| 10 | + | |
| 11 | + https://www.apache.org/licenses/LICENSE-2.0 | |
| 12 | + | |
| 13 | +Unless required by applicable law or agreed to in writing, software | |
| 14 | +distributed under the License is distributed on an "AS IS" BASIS, | |
| 15 | +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 16 | +See the License for the specific language governing permissions and | |
| 17 | +limitations under the License. | |
| 18 | +-/ | |
| 19 | + | |
| 20 | +import Mathlib | |
| 21 | + | |
| 22 | +/-! | |
| 23 | +# Existence And Smoothness Of The Navier–Stokes Equation | |
| 24 | + | |
| 25 | +Standalone comparator copied from: | |
| 26 | +https://github.com/google-deepmind/formal-conjectures/blob/8bf45ed70d48b2b2a501de9c00b26bfa38c573ee/FormalConjectures/Millenium/NavierStokes.lean | |
| 27 | + | |
| 28 | +The upstream definitions, helper proofs, and breakdown alternatives (C) and (D) | |
| 29 | +are retained, including their intentional `sorry` challenge placeholders. The | |
| 30 | +imports, metadata attributes, namespace, and local notation are adapted for this | |
| 31 | +project. All utility dependencies are inlined; only Mathlib is imported. | |
| 32 | +Neither the proof root nor the submission imports this reference. | |
| 33 | + | |
| 34 | +This file formalizes the Clay Mathematics Institute millennium problem concerning | |
| 35 | +the existence and smoothness of solutions to the Navier-Stokes equations in three | |
| 36 | +spatial dimensions. While the definitions are generalized to arbitrary dimension n, | |
| 37 | +the millennium problem specifically concerns the case n = 3. | |
| 38 | + | |
| 39 | +## References | |
| 40 | +- [Wikipedia](https://en.wikipedia.org/wiki/Navier%E2%80%93Stokes_existence_and_smoothness) | |
| 41 | + | |
| 42 | +## Main Theorems (Clay Millennium Problem for n = 3) | |
| 43 | + | |
| 44 | +This reference includes the two breakdown alternatives: | |
| 45 | +- `navier_stokes_breakdown_R3`: (C) Existence of breakdown scenario on ℝ³ | |
| 46 | +- `navier_stokes_breakdown_periodic`: (D) Existence of breakdown scenario on ℝ³/ℤ³ | |
| 47 | + | |
| 48 | +## Variable conventions | |
| 49 | + | |
| 50 | +Fefferman writes the velocity as $u(x,t)$, the initial velocity as $u^\circ(x)$, the | |
| 51 | +pressure as $p(x,t)$, the force as $f(x,t)$, and the viscosity as $\nu$. In Lean, | |
| 52 | +`u₀ : ℝ^n → ℝ^n` denotes the initial velocity, while `v : ℝ^n → ℝ → ℝ^n` | |
| 53 | +denotes the solution velocity. The curried order `v x t`, `p x t`, and `f x t` | |
| 54 | +keeps the source convention that position comes before time. | |
| 55 | + | |
| 56 | +Since the Clay statement gives equation (1) on the closed time half-line $t \ge 0$, | |
| 57 | +the time derivative is encoded with `derivWithin` relative to `Set.Ici 0`. | |
| 58 | +-/ | |
| 59 | + | |
| 60 | +open ContDiff Set InnerProductSpace MeasureTheory | |
| 61 | +open scoped Laplacian | |
| 62 | + | |
| 63 | +namespace NavierStokes.Comparator | |
| 64 | + | |
| 65 | +-- Inlined notation from FormalConjecturesForMathlib.Geometry.Euclidean and Geometry.«3d». | |
| 66 | +local notation "ℝ^" n:65 => EuclideanSpace ℝ (Fin n) | |
| 67 | +local notation "ℝ³" => EuclideanSpace ℝ (Fin 3) | |
| 68 | + | |
| 69 | +variable {n : ℕ} | |
| 70 | + | |
| 71 | +/-- | |
| 72 | +The divergence $\nabla \cdot v$ of a vector field $v : \mathbb{R}^n \to \mathbb{R}^n$ | |
| 73 | +at a point $x$, computed as the trace of the Jacobian matrix. | |
| 74 | + | |
| 75 | +In coordinates, $\nabla \cdot v = \sum_i \partial v_i / \partial x_i$. | |
| 76 | + | |
| 77 | +This is available as the notation `∇⬝ v`. If `v` is not differentiable at `x`, then | |
| 78 | +`fderiv` is the zero map, so this definition has the corresponding junk value $0$. | |
| 79 | +-/ | |
| 80 | +noncomputable | |
| 81 | +def divergence (v : ℝ^n → ℝ^n) (x : ℝ^n) : ℝ := (fderiv ℝ v x).trace ℝ (ℝ^n) | |
| 82 | + | |
| 83 | +@[inherit_doc] | |
| 84 | +local notation "∇⬝" => divergence | |
| 85 | + | |
| 86 | +/-- The divergence of a vector field is $0$ at points where `fderiv` has its junk value. -/ | |
| 87 | +@[simp] | |
| 88 | +theorem divergence_of_not_differentiableAt {v : ℝ^n → ℝ^n} {x : ℝ^n} | |
| 89 | + (hv : ¬ DifferentiableAt ℝ v x) : ∇⬝ v x = 0 := by | |
| 90 | + simp [divergence, fderiv_zero_of_not_differentiableAt hv] | |
| 91 | + | |
| 92 | +/-- The divergence of the zero vector field is zero. -/ | |
| 93 | +@[simp] | |
| 94 | +theorem divergence_zero (x : ℝ^n) : ∇⬝ (0 : ℝ^n → ℝ^n) x = 0 := by | |
| 95 | + simp [divergence] | |
| 96 | + | |
| 97 | +/-- The divergence of a constant vector field is zero. -/ | |
| 98 | +@[simp] | |
| 99 | +theorem divergence_const (c : ℝ^n) (x : ℝ^n) : | |
| 100 | + ∇⬝ (fun _ : ℝ^n => c) x = 0 := by | |
| 101 | + simp [divergence] | |
| 102 | + | |
| 103 | +/-- Divergence is additive at points where both vector fields are differentiable. -/ | |
| 104 | +theorem divergence_add {v w : ℝ^n → ℝ^n} {x : ℝ^n} | |
| 105 | + (hv : DifferentiableAt ℝ v x) (hw : DifferentiableAt ℝ w x) : | |
| 106 | + ∇⬝ (fun y => v y + w y) x = ∇⬝ v x + ∇⬝ w x := by | |
| 107 | + rw [divergence, fderiv_fun_add hv hw] | |
| 108 | + exact map_add _ _ _ | |
| 109 | + | |
| 110 | +/-- Divergence commutes with scalar multiplication at differentiability points. -/ | |
| 111 | +theorem divergence_smul (c : ℝ) {v : ℝ^n → ℝ^n} {x : ℝ^n} | |
| 112 | + (hv : DifferentiableAt ℝ v x) : ∇⬝ (fun y => c • v y) x = c * ∇⬝ v x := by | |
| 113 | + rw [divergence, fderiv_fun_const_smul hv c] | |
| 114 | + simp [divergence] | |
| 115 | + | |
| 116 | +/-- | |
| 117 | +A function $f : \mathbb{R}^n \to \alpha$ is 1-periodic if it is periodic in each | |
| 118 | +coordinate with period $1$, i.e. $f(x + e_i) = f(x)$ for each unit vector $e_i$. | |
| 119 | +This captures functions on the $n$-torus $\mathbb{R}^n/\mathbb{Z}^n$. | |
| 120 | +-/ | |
| 121 | +def IsOnePeriodic {α : Sort*} (f : ℝ^n → α) : Prop := | |
| 122 | + ∀ x i, f (x + EuclideanSpace.single i 1) = f x | |
| 123 | + | |
| 124 | +/-- | |
| 125 | +Basic conditions on initial velocity field for the Navier-Stokes equations | |
| 126 | +in $n$-dimensional space. | |
| 127 | + | |
| 128 | +The initial velocity must be: | |
| 129 | +- Divergence-free (incompressibility condition: $\nabla \cdot u_0 = 0$) | |
| 130 | +- Smooth ($C^\infty$) | |
| 131 | + | |
| 132 | +These conditions apply regardless of spatial dimension. | |
| 133 | +-/ | |
| 134 | +structure InitialVelocityCondition (u₀ : ℝ^n → ℝ^n) : Prop where | |
| 135 | + /-- The initial velocity field is divergence-free (equation 2). | |
| 136 | + This is the incompressibility constraint for the fluid. -/ | |
| 137 | + div_free : ∀ x, ∇⬝ u₀ x = 0 | |
| 138 | + /-- The initial velocity field is smooth ($C^\infty$ in all variables). -/ | |
| 139 | + smooth : ContDiff ℝ ∞ u₀ | |
| 140 | + | |
| 141 | +/-- | |
| 142 | +Initial velocity conditions for the Navier-Stokes problem on all of $\mathbb{R}^n$. | |
| 143 | + | |
| 144 | +In addition to being smooth and divergence-free, the velocity must decay | |
| 145 | +faster than any polynomial at spatial infinity (condition 4 in Fefferman's paper). | |
| 146 | + | |
| 147 | +This condition ensures the velocity field has finite energy and reasonable | |
| 148 | +behavior as $\lVert x \rVert \to \infty$. | |
| 149 | +-/ | |
| 150 | +structure InitialVelocityConditionDecay (u₀ : ℝ^n → ℝ^n) : Prop extends | |
| 151 | + InitialVelocityCondition u₀ where | |
| 152 | + /-- All derivatives of u₀ decay faster than any polynomial (condition 4). | |
| 153 | + For any derivative order $m$ and any decay rate $K$, there exists a constant $C$ | |
| 154 | + such that $\lVert \partial^m u_0(x) \rVert \le C/(1+\lVert x \rVert)^K$. -/ | |
| 155 | + decay : ∀ m : ℕ, ∀ K : ℝ, ∃ C : ℝ, ∀ x, ‖iteratedFDeriv ℝ m u₀ x‖ ≤ C / (1 + ‖x‖) ^ K | |
| 156 | + | |
| 157 | +/-- | |
| 158 | +Initial velocity conditions for the periodic Navier-Stokes problem on | |
| 159 | +$\mathbb{R}^n/\mathbb{Z}^n$. | |
| 160 | + | |
| 161 | +The velocity must be smooth, divergence-free, and 1-periodic in each coordinate | |
| 162 | +(condition 8, part 1 in Fefferman's paper). | |
| 163 | +-/ | |
| 164 | +structure InitialVelocityConditionPeriodic (u₀ : ℝ^n → ℝ^n) : Prop extends | |
| 165 | + InitialVelocityCondition u₀ where | |
| 166 | + /-- The initial velocity is 1-periodic in each direction (condition 8, part 1). -/ | |
| 167 | + isOnePeriodic : IsOnePeriodic u₀ | |
| 168 | + | |
| 169 | +/-- | |
| 170 | +The basic smoothness condition on the external forcing term. | |
| 171 | + | |
| 172 | +The force $f(x,t)$ must be smooth ($C^\infty$) in both space and time variables | |
| 173 | +for $t \ge 0$. | |
| 174 | +-/ | |
| 175 | +structure ForceCondition (f : ℝ^n → ℝ → ℝ^n) : Prop where | |
| 176 | + /-- The force is smooth on $\mathbb{R}^n \times [0,\infty)$. -/ | |
| 177 | + smooth : ContDiffOn ℝ ∞ (↿f) (Set.univ ×ˢ Set.Ici 0) | |
| 178 | + | |
| 179 | +/-- | |
| 180 | +Force conditions for the Navier-Stokes problem on all of $\mathbb{R}^n$. | |
| 181 | + | |
| 182 | +The force must be smooth and decay faster than any polynomial | |
| 183 | +in both space and time (condition 5 in Fefferman's paper). | |
| 184 | +-/ | |
| 185 | +structure ForceConditionDecay (f : ℝ^n → ℝ → ℝ^n) : Prop extends ForceCondition f where | |
| 186 | + /-- All derivatives of f decay faster than any polynomial in space and time (condition 5). | |
| 187 | + For any derivative order $m$ and any decay rate $K$, there exists $C$ such that | |
| 188 | + $\lVert \partial^m_{x,t} f(x,t) \rVert \le C/(1+\lVert x \rVert+t)^K$ for | |
| 189 | + $t \ge 0$. -/ | |
| 190 | + decay : ∀ m : ℕ, ∀ K : ℝ, ∃ C : ℝ, ∀ x, ∀ t ≥ 0, | |
| 191 | + ‖iteratedFDerivWithin ℝ m (↿f) (Set.univ ×ˢ Set.Ici 0) (x, t)‖ ≤ C / (1 + ‖x‖ + t) ^ K | |
| 192 | + | |
| 193 | +/-- | |
| 194 | +Force conditions for the periodic Navier-Stokes problem on | |
| 195 | +$\mathbb{R}^n/\mathbb{Z}^n$. | |
| 196 | + | |
| 197 | +The force must be smooth, 1-periodic in space, and decay in time | |
| 198 | +(conditions 8, part 1 and 9 in Fefferman's paper). | |
| 199 | +-/ | |
| 200 | +structure ForceConditionPeriodic (f : ℝ^n → ℝ → ℝ^n) : Prop extends ForceCondition f where | |
| 201 | + /-- The force is 1-periodic in space for all times $t \ge 0$ (condition 8, part 1). -/ | |
| 202 | + isOnePeriodic : ∀ t ≥ 0, IsOnePeriodic (f · t) | |
| 203 | + /-- All derivatives of f decay faster than any polynomial in time (condition 9). -/ | |
| 204 | + decay : ∀ m : ℕ, ∀ K : ℝ, ∃ C : ℝ, ∀ x, ∀ t ≥ 0, | |
| 205 | + ‖iteratedFDerivWithin ℝ m (↿f) (Set.univ ×ˢ Set.Ici 0) (x, t)‖ ≤ C / (1 + t) ^ K | |
| 206 | + | |
| 207 | +/-- | |
| 208 | +A solution (v, p) to the Navier-Stokes equations in n-dimensional space | |
| 209 | +with viscosity $\nu$, initial velocity $u_0$, and external force $f$. | |
| 210 | + | |
| 211 | +This structure captures the core requirements for a solution: | |
| 212 | +1. The velocity and pressure satisfy the Navier-Stokes PDE (equation 1) | |
| 213 | +2. The velocity remains divergence-free for all time (equation 2) | |
| 214 | +3. The initial condition is satisfied (equation 3) | |
| 215 | +4. The solution is smooth ($C^\infty$) for all time $t \ge 0$ (equations 6, 11) | |
| 216 | +-/ | |
| 217 | +structure NavierStokesExistenceAndSmoothness | |
| 218 | + (nu : ℝ) (u₀ : ℝ^n → ℝ^n) (f : ℝ^n → ℝ → ℝ^n) | |
| 219 | + (v : ℝ^n → ℝ → ℝ^n) (p : ℝ^n → ℝ → ℝ) : Prop where | |
| 220 | + /-- The Navier-Stokes equation (equation 1): | |
| 221 | + $\partial v/\partial t + (v \cdot \nabla)v = \nu\Delta v - \nabla p + f$. -/ | |
| 222 | + navier_stokes : ∀ x, ∀ t ≥ 0, | |
| 223 | + derivWithin (v x ·) (Set.Ici 0) t + fderiv ℝ (v · t) x (v x t) = | |
| 224 | + nu • Δ (v · t) x - gradient (p · t) x + f x t | |
| 225 | + /-- Incompressibility constraint (equation 2): $\nabla \cdot v = 0$ for all | |
| 226 | + $x$ and $t \ge 0$. -/ | |
| 227 | + div_free : ∀ x, ∀ t ≥ 0, ∇⬝ (v · t) x = 0 | |
| 228 | + /-- Initial condition (equation 3): $v(x,0) = u_0(x)$ for all $x$. -/ | |
| 229 | + initial_condition : ∀ x, v x 0 = u₀ x | |
| 230 | + /-- The velocity field is smooth ($C^\infty$) on $\mathbb{R}^n \times [0,\infty)$ | |
| 231 | + (conditions 6, 11). -/ | |
| 232 | + velocity_smooth : ContDiffOn ℝ ∞ (↿v) (Set.univ ×ˢ Set.Ici 0) | |
| 233 | + /-- The pressure field is smooth ($C^\infty$) on $\mathbb{R}^n \times [0,\infty)$ | |
| 234 | + (conditions 6, 11). -/ | |
| 235 | + pressure_smooth : ContDiffOn ℝ ∞ (↿p) (Set.univ ×ˢ Set.Ici 0) | |
| 236 | + | |
| 237 | +/-- | |
| 238 | +A solution to the Navier-Stokes equations on all of $\mathbb{R}^n$ with appropriate | |
| 239 | +decay and energy bounds. | |
| 240 | + | |
| 241 | +In addition to the basic solution properties, we require: | |
| 242 | +- The velocity is in $L^2$ at each time $t \ge 0$ (finite kinetic energy) | |
| 243 | +- The total energy remains bounded for all time (condition 7) | |
| 244 | +-/ | |
| 245 | +structure NavierStokesExistenceAndSmoothnessRn | |
| 246 | + (nu : ℝ) (u₀ : ℝ^n → ℝ^n) (f : ℝ^n → ℝ → ℝ^n) | |
| 247 | + (v : ℝ^n → ℝ → ℝ^n) (p : ℝ^n → ℝ → ℝ) : Prop | |
| 248 | + extends NavierStokesExistenceAndSmoothness nu u₀ f v p where | |
| 249 | + /-- The velocity is square-integrable at each time $t \ge 0$ (condition 7). -/ | |
| 250 | + integrable : ∀ t ≥ 0, MemLp (‖v · t‖) 2 | |
| 251 | + /-- The kinetic energy $\int \lVert v(x,t) \rVert^2\,dx$ remains uniformly bounded | |
| 252 | + for all time (condition 7), where the integral is the Lebesgue integral. -/ | |
| 253 | + globally_bounded_energy : ∃ E, ∀ t ≥ 0, (∫ x : ℝ^n, ‖v x t‖ ^ 2) < E | |
| 254 | + | |
| 255 | +/-- | |
| 256 | +A solution to the Navier-Stokes equations on the $n$-torus $\mathbb{R}^n/\mathbb{Z}^n$. | |
| 257 | + | |
| 258 | +The velocity must be 1-periodic in each spatial direction for all times (condition 10). | |
| 259 | +The pressure is also required to be 1-periodic, following the errata appended to the | |
| 260 | +Clay problem statement. | |
| 261 | +-/ | |
| 262 | +structure NavierStokesExistenceAndSmoothnessPeriodic | |
| 263 | + (nu : ℝ) (u₀ : ℝ^n → ℝ^n) (f : ℝ^n → ℝ → ℝ^n) | |
| 264 | + (v : ℝ^n → ℝ → ℝ^n) (p : ℝ^n → ℝ → ℝ) : Prop | |
| 265 | + extends NavierStokesExistenceAndSmoothness nu u₀ f v p where | |
| 266 | + /-- The velocity is 1-periodic in space for all times $t \ge 0$ (condition 10). -/ | |
| 267 | + isOnePeriodic_velocity : ∀ t ≥ 0, IsOnePeriodic (v · t) | |
| 268 | + /-- The pressure is 1-periodic in space for all times $t \ge 0$ (Clay errata). -/ | |
| 269 | + isOnePeriodic_pressure : ∀ t ≥ 0, IsOnePeriodic (p · t) | |
| 270 | + | |
| 271 | + | |
| 272 | +/-- (C) Breakdown of Navier–Stokes solutions on ℝ³. -/ | |
| 273 | +theorem navier_stokes_breakdown_R3 (nu : ℝ) (hnu : nu > 0) : | |
| 274 | + ∃ (u₀ : ℝ³ → ℝ³) (f : ℝ³ → ℝ → ℝ³), | |
| 275 | + InitialVelocityConditionDecay u₀ ∧ ForceConditionDecay f ∧ | |
| 276 | + ¬ (∃ v p, NavierStokesExistenceAndSmoothnessRn nu u₀ f v p) := by | |
| 277 | + sorry | |
| 278 | + | |
| 279 | +/-- (D) Breakdown of Navier–Stokes Solutions on ℝ³/ℤ³. -/ | |
| 280 | +theorem navier_stokes_breakdown_periodic (nu : ℝ) (hnu : nu > 0) : | |
| 281 | + ∃ (u₀ : ℝ³ → ℝ³) (f : ℝ³ → ℝ → ℝ³), | |
| 282 | + InitialVelocityConditionPeriodic u₀ ∧ ForceConditionPeriodic f ∧ | |
| 283 | + ¬ (∃ v p, NavierStokesExistenceAndSmoothnessPeriodic nu u₀ f v p) := by | |
| 284 | + sorry | |
| 285 | + | |
| 286 | +end NavierStokes.Comparator | |
+11 −0 ComparatorChallenges/README.md added View file
| @@ -0,0 +1,11 @@ | ||
| 1 | +# [Comparator](https://github.com/leanprover/comparator) challenges | |
| 2 | + | |
| 3 | +Install `landrun`, `lean4export`, and `nanoda_bin`, and make them available on `PATH`. Then, from the repository root: | |
| 4 | + | |
| 5 | +```sh | |
| 6 | +lake exe cache get | |
| 7 | +lake exe comparator ComparatorChallenges/NavierStokes.json | |
| 8 | +lake exe comparator ComparatorChallenges/Euler.json | |
| 9 | +``` | |
| 10 | + | |
| 11 | +Thank you to the [Formal Conjectures](https://google-deepmind.github.io/formal-conjectures/) authors for their [Lean formalization of the Navier–Stokes problem statement](https://github.com/google-deepmind/formal-conjectures/blob/main/FormalConjectures/Millenium/NavierStokes.lean), which we adapted for these Comparator challenges. | |
+1 −0 Euler.lean added View file
| @@ -0,0 +1 @@ | ||
| 1 | +import Euler.EulerSingularity | |
+81 −0 Euler/AllOrderCorrectionBudget.lean added View file
| @@ -0,0 +1,81 @@ | ||
| 1 | +import Euler.AllOrderCorrectionCoherence | |
| 2 | + | |
| 3 | +/-! Concrete uniform Gevrey budgets for one coherent family of prescribed data. -/ | |
| 4 | + | |
| 5 | +noncomputable section | |
| 6 | + | |
| 7 | +namespace EulerAllOrderCorrectionBudget | |
| 8 | + | |
| 9 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 10 | + EulerCorrectionOperators EulerCorrectionEnergyData EulerCorrectionEnergyMajorants | |
| 11 | + EulerAllOrderCorrectionData EulerGevreyMetricEstimate EulerGlobalInviscidGevrey | |
| 12 | + EulerCorrectionLowerData EulerVolterraConvolution EulerInviscidSobolevEvolution | |
| 13 | +open scoped Topology | |
| 14 | + | |
| 15 | +variable (period : ℝ) [Fact (0 < period)] | |
| 16 | + | |
| 17 | +/-- Actual all-order data budgets with common radius, error size and time interval; these are coefficient/background/residual inequalities, not solution or energy hypotheses. -/ | |
| 18 | +structure Budget {T : ℝ} (hT : 0 < T) (A : Data period T) where | |
| 19 | + /-- The common actual inverse metric and its genuine time derivative. -/ | |
| 20 | + metric : MetricBudget period T hT.le (A.atOrder period 1) | |
| 21 | + /-- The common positive shrinking-radius path. -/ | |
| 22 | + radius : C(Icc (0 : ℝ) T,ℝ) | |
| 23 | + /-- The common scalar growth coefficient. -/ | |
| 24 | + constant : ℝ | |
| 25 | + /-- The common desired error size. -/ | |
| 26 | + delta : ℝ | |
| 27 | + /-- The common initial radius. -/ | |
| 28 | + initialRadius : ℝ | |
| 29 | + /-- Genuine coefficient, background and residual bounds at each finite construction cutoff. -/ | |
| 30 | + spatial : ∀ q (hq : 6 ≤ q), SpatialBudget period (hq.trans (by omega : q ≤ (q+1)+1)) | |
| 31 | + (A.atOrder period ((q+1)+1)) (q-4) radius | |
| 32 | + /-- The fixed scalar dominates each proved nonlinear energy constant. -/ | |
| 33 | + constant_bound : ∀ q hq, combinedConstant period (spatial q hq) | |
| 34 | + (A.metricBudget period hT.le metric (q+1)) ≤ constant | |
| 35 | + /-- Strictly positive target error size. -/ | |
| 36 | + delta_pos : 0 < delta | |
| 37 | + /-- The target error is at most one. -/ | |
| 38 | + delta_le_one : delta ≤ 1 | |
| 39 | + /-- Strictly positive initial radius. -/ | |
| 40 | + radius_pos : 0 < initialRadius | |
| 41 | + /-- Every construction retains half the common initial radius. -/ | |
| 42 | + decay : ∀ q hq, 2*constant*((spatial q hq).B0+delta)*T ≤ initialRadius/2 | |
| 43 | + /-- The coefficient scale fits the common initial radius. -/ | |
| 44 | + scale : ∀ q hq, initialRadius*(spatial q hq).Rc ≤ 1 | |
| 45 | + /-- The actual residual budgets beat the genuine Gronwall factor. -/ | |
| 46 | + small : ∀ q hq, 2*(spatial q hq).residual*Real.exp (3*constant*T) ≤ delta/2 | |
| 47 | + /-- Every finite construction uses the same actual shrinking radius. -/ | |
| 48 | + radius_eq : ∀ q hq t, radius t=initialRadius-2*constant*((spatial q hq).B0+delta)*t.val | |
| 49 | + /-- The prescribed approximate field is genuinely lifted divergence-free. -/ | |
| 50 | + divergence : ∀ t, A.approximation.field t ∈ divergenceFreeSpace period A.κ A.direction | |
| 51 | + | |
| 52 | +/-- The concrete all-order budgets construct an actual finite-order inviscid correction, with retained Gevrey energy and its actual equation. -/ | |
| 53 | +theorem finite_exists {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 54 | + (q : ℕ) (hq : 6 ≤ q) : | |
| 55 | + ∃ e : C(Icc (0 : ℝ) T,SobolevSpace period (q+1)), | |
| 56 | + e ⟨0,le_rfl,hT.le⟩=0 ∧ | |
| 57 | + (∀ t, value period (e t) ∈ divergenceFreeSpace period A.κ A.direction) ∧ | |
| 58 | + (∀ (P : ℕ) (_ : P ≤ q-4) (hP : P+6 ≤ q+1) t, | |
| 59 | + energyNorm period P hP (B.radius t) (B.metric.operatorPath period t) (e t) ≤ B.delta/2) ∧ | |
| 60 | + ∀ t (ht : t ∈ Ioo 0 T), HasDerivAt (fun r => value period (extendPath T hT.le e r)) | |
| 61 | + (value period (((A.atOrder period q).coefficients period hq).apply | |
| 62 | + ⟨t,ht.1.le,ht.2.le⟩ (e ⟨t,ht.1.le,ht.2.le⟩))) t := by | |
| 63 | + have h := exists_global_inviscid_gevrey_PDE period hq T hT (A.atOrder period ((q+1)+1)) | |
| 64 | + (A.metric.jet (q+1)) (A.linear.jet (q+1)) (fun i => (A.quadratic i).jet (q+1)) | |
| 65 | + (A.metric.continuous (q+1)) (A.linear.continuous (q+1)) (fun i => (A.quadratic i).continuous (q+1)) | |
| 66 | + (A.metric.jet q) (A.linear.jet q) (fun i => (A.quadratic i).jet q) | |
| 67 | + (A.metric.continuous q) (A.linear.continuous q) (fun i => (A.quadratic i).continuous q) | |
| 68 | + A.metric_continuous (q-4) (by omega) (by omega) B.radius (B.spatial q hq) | |
| 69 | + (A.metricBudget period hT.le B.metric (q+1)) B.constant B.delta B.initialRadius | |
| 70 | + (B.constant_bound q hq) B.delta_pos B.delta_le_one B.radius_pos (B.decay q hq) | |
| 71 | + (B.scale q hq) (B.small q hq) (B.radius_eq q hq) | |
| 72 | + (fun t => by simpa only [Data.atOrder,A.approximation.value_eq] using B.divergence t) | |
| 73 | + rw [A.lower_twice period q] at h | |
| 74 | + obtain ⟨e,hi,hd,_,he,hp⟩ := h | |
| 75 | + refine ⟨e,hi,hd,(fun P hP hPq t => (he P hP hPq t).2),?_⟩ | |
| 76 | + intro t ht | |
| 77 | + have hs := hp t ht | |
| 78 | + rw [← CorrectionData.source_sobolev] at hs | |
| 79 | + exact (valueOperator period q).hasFDerivAt.comp_hasDerivAt t hs | |
| 80 | + | |
| 81 | +end EulerAllOrderCorrectionBudget | |
+27 −0 Euler/AllOrderCorrectionCoherence.lean added View file
| @@ -0,0 +1,27 @@ | ||
| 1 | +import Euler.AllOrderCorrectionData | |
| 2 | + | |
| 3 | +/-! Exact repeated restriction of coherent prescribed coefficient and field data. -/ | |
| 4 | + | |
| 5 | +noncomputable section | |
| 6 | + | |
| 7 | +namespace EulerAllOrderCorrectionData | |
| 8 | + | |
| 9 | +open Set EulerCorrectionLowerData EulerCylinderSobolevSpace | |
| 10 | + | |
| 11 | +variable (period : ℝ) [Fact (0 < period)] | |
| 12 | + | |
| 13 | +/-- Two genuine lower-data operations return precisely the prescribed lower-order data, including the approximation and residual paths. -/ | |
| 14 | +theorem Data.lower_twice {T : ℝ} (A : Data period T) (q : ℕ) : | |
| 15 | + lowerData period | |
| 16 | + (lowerData period (A.atOrder period ((q+1)+1)) (A.metric.jet (q+1)) (A.linear.jet (q+1)) | |
| 17 | + (fun i => (A.quadratic i).jet (q+1)) (A.metric.continuous (q+1)) | |
| 18 | + (A.linear.continuous (q+1)) (fun i => (A.quadratic i).continuous (q+1))) | |
| 19 | + (A.metric.jet q) (A.linear.jet q) (fun i => (A.quadratic i).jet q) | |
| 20 | + (A.metric.continuous q) (A.linear.continuous q) (fun i => (A.quadratic i).continuous q) = | |
| 21 | + A.atOrder period q := by | |
| 22 | + unfold lowerData Data.atOrder | |
| 23 | + congr 1 | |
| 24 | + · rw [A.approximation.truncate period ((q+1)+1),A.approximation.truncate period (q+1)] | |
| 25 | + · rw [A.residual.truncate period (q+1),A.residual.truncate period q] | |
| 26 | + | |
| 27 | +end EulerAllOrderCorrectionData | |
+122 −0 Euler/AllOrderCorrectionData.lean added View file
| @@ -0,0 +1,122 @@ | ||
| 1 | +import Euler.GlobalInviscidGevrey | |
| 2 | +import Euler.InviscidCorrectionCompatibility | |
| 3 | + | |
| 4 | +/-! Coherent prescribed cylinder data at every finite Sobolev order. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerAllOrderCorrectionData | |
| 9 | + | |
| 10 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 11 | + EulerSpatialSobolevInverse EulerCorrectionOperators EulerSobolevCoefficientPressure | |
| 12 | + EulerCorrectionLowerData EulerCorrectionEnergyData | |
| 13 | +open scoped Topology | |
| 14 | + | |
| 15 | +variable (period : ℝ) [Fact (0 < period)] | |
| 16 | + | |
| 17 | +/-- A single actual coefficient field with genuine derivative jets and continuous multiplier action at every finite order. -/ | |
| 18 | +structure CoefficientTower (T : ℝ) where | |
| 19 | + /-- The actual smooth bounded coefficient at each time. -/ | |
| 20 | + coefficient : Icc (0 : ℝ) T → SmoothCoefficient period | |
| 21 | + /-- Genuine strong derivative jets of this same coefficient. -/ | |
| 22 | + jet : ∀ q t, CoefficientJet period standardDirection q (coefficient t) | |
| 23 | + /-- Actual multiplier continuity at every finite Sobolev order. -/ | |
| 24 | + continuous : ∀ q, Continuous (fun t => coefficientSobolevOperator period (jet q t)) | |
| 25 | + | |
| 26 | +/-- A single prescribed L² path realized by actual continuous Sobolev paths at every order. -/ | |
| 27 | +structure FieldTower (T : ℝ) where | |
| 28 | + /-- The common actual L² field path. -/ | |
| 29 | + field : C(Icc (0 : ℝ) T,LiftL2 period) | |
| 30 | + /-- Actual finite-order Sobolev realizations of that field. -/ | |
| 31 | + realization : ∀ q, C(Icc (0 : ℝ) T,SobolevSpace period q) | |
| 32 | + /-- Each realization represents exactly the prescribed field. -/ | |
| 33 | + value_eq : ∀ q t, value period (realization q t)=field t | |
| 34 | + | |
| 35 | +/-- Coherence of prescribed Sobolev realizations follows from genuine derivative uniqueness. -/ | |
| 36 | +theorem FieldTower.truncate {T : ℝ} (f : FieldTower period T) (q : ℕ) : | |
| 37 | + (truncateOperator period q).compLeftContinuous ℝ (Icc (0 : ℝ) T) (f.realization (q+1)) = | |
| 38 | + f.realization q := by | |
| 39 | + apply ContinuousMap.ext | |
| 40 | + intro t | |
| 41 | + apply value_injective period | |
| 42 | + change value period (truncateOperator period q (f.realization (q+1) t))=value period (f.realization q t) | |
| 43 | + rw [value_truncateOperator,f.value_eq,f.value_eq] | |
| 44 | + | |
| 45 | +/-- Actual all-order prescribed coefficient, approximation and residual data; no correction solution or energy estimate is contained here. -/ | |
| 46 | +structure Data (T : ℝ) where | |
| 47 | + /-- The fixed spatial scale in the lifted derivative. -/ | |
| 48 | + κ : ℝ | |
| 49 | + /-- The fixed angular direction. -/ | |
| 50 | + direction : Vector3 | |
| 51 | + /-- The actual scale bound used by transport. -/ | |
| 52 | + scale_bound : |κ| ≤ 1 | |
| 53 | + /-- The actual direction bound used by transport. -/ | |
| 54 | + direction_bound : ‖direction‖ ≤ 1 | |
| 55 | + /-- The actual pressure coefficient and all its derivative jets. -/ | |
| 56 | + metric : CoefficientTower period T | |
| 57 | + /-- The coefficient is continuous as an actual L² multiplier. -/ | |
| 58 | + metric_continuous : Continuous (fun t => (metric.coefficient t).operator) | |
| 59 | + /-- The actual positive coercivity constant. -/ | |
| 60 | + coercivity : ℝ | |
| 61 | + /-- Strict positivity of that constant. -/ | |
| 62 | + coercivity_pos : 0 < coercivity | |
| 63 | + /-- Pointwise coercivity of the actual coefficient. -/ | |
| 64 | + metric_pos : ∀ t x v, coercivity*‖v‖^2 ≤ inner ℝ ((metric.coefficient t).coefficient x v) v | |
| 65 | + /-- The actual order-zero linear coefficient. -/ | |
| 66 | + linear : CoefficientTower period T | |
| 67 | + /-- The three actual order-zero quadratic coefficients. -/ | |
| 68 | + quadratic : Fin 3 → CoefficientTower period T | |
| 69 | + /-- The prescribed approximate solution, with all actual Sobolev realizations. -/ | |
| 70 | + approximation : FieldTower period T | |
| 71 | + /-- The prescribed residual, with all actual Sobolev realizations. -/ | |
| 72 | + residual : FieldTower period T | |
| 73 | + | |
| 74 | +/-- The literal finite-order correction data extracted from a coherent prescribed tower. -/ | |
| 75 | +def Data.atOrder {T : ℝ} (A : Data period T) (q : ℕ) : CorrectionData period q (Icc (0 : ℝ) T) where | |
| 76 | + κ := A.κ | |
| 77 | + direction := A.direction | |
| 78 | + scale_bound := A.scale_bound | |
| 79 | + direction_bound := A.direction_bound | |
| 80 | + metric := ⟨A.metric.coefficient,A.metric.jet q,A.metric.continuous q⟩ | |
| 81 | + coercivity := A.coercivity | |
| 82 | + coercivity_pos := A.coercivity_pos | |
| 83 | + metric_pos := A.metric_pos | |
| 84 | + linear := ⟨A.linear.coefficient,A.linear.jet q,A.linear.continuous q⟩ | |
| 85 | + quadratic i := ⟨(A.quadratic i).coefficient,(A.quadratic i).jet q,(A.quadratic i).continuous q⟩ | |
| 86 | + approximation := A.approximation.realization (q+1) | |
| 87 | + residual := A.residual.realization q | |
| 88 | + | |
| 89 | +/-- Lowering the actual prescribed data gives exactly the next member of the same tower. -/ | |
| 90 | +theorem Data.lower_atOrder {T : ℝ} (A : Data period T) (q : ℕ) : | |
| 91 | + lowerData period (A.atOrder period (q+1)) (A.metric.jet q) (A.linear.jet q) | |
| 92 | + (fun i => (A.quadratic i).jet q) (A.metric.continuous q) (A.linear.continuous q) | |
| 93 | + (fun i => (A.quadratic i).continuous q) = A.atOrder period q := by | |
| 94 | + unfold lowerData Data.atOrder | |
| 95 | + congr 1 | |
| 96 | + · exact A.approximation.truncate period (q+1) | |
| 97 | + · exact A.residual.truncate period q | |
| 98 | + | |
| 99 | +/-- A single actual inverse-metric budget applies to every finite realization of the same coefficient field. -/ | |
| 100 | +def Data.metricBudget {T : ℝ} (A : Data period T) (hT : 0 ≤ T) | |
| 101 | + (K : MetricBudget period T hT (A.atOrder period 1)) (q : ℕ) : | |
| 102 | + MetricBudget period T hT (A.atOrder period (q+1)) where | |
| 103 | + metric := K.metric | |
| 104 | + continuous := K.continuous | |
| 105 | + derivative := K.derivative | |
| 106 | + hasDeriv := K.hasDeriv | |
| 107 | + c := K.c | |
| 108 | + c_pos := K.c_pos | |
| 109 | + symmetric := K.symmetric | |
| 110 | + coercive := K.coercive | |
| 111 | + inverse := K.inverse | |
| 112 | + bound := K.bound | |
| 113 | + first := K.first | |
| 114 | + time := K.time | |
| 115 | + bound_nonneg := K.bound_nonneg | |
| 116 | + first_nonneg := K.first_nonneg | |
| 117 | + time_nonneg := K.time_nonneg | |
| 118 | + bound_le := K.bound_le | |
| 119 | + first_le := K.first_le | |
| 120 | + time_le := K.time_le | |
| 121 | + | |
| 122 | +end EulerAllOrderCorrectionData | |
+81 −0 Euler/AllOrderCorrectionFamily.lean added View file
| @@ -0,0 +1,81 @@ | ||
| 1 | +import Euler.AllOrderCorrectionStability | |
| 2 | + | |
| 3 | +/-! Constructed compatible inviscid corrections at every finite Sobolev order. -/ | |
| 4 | + | |
| 5 | +noncomputable section | |
| 6 | + | |
| 7 | +namespace EulerAllOrderCorrectionFamily | |
| 8 | + | |
| 9 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 10 | + EulerCorrectionOperators EulerCorrectionEnergyData EulerAllOrderCorrectionData | |
| 11 | + EulerAllOrderCorrectionBudget EulerCorrectionStabilityBudget EulerCorrectionLowerData | |
| 12 | + EulerInviscidCorrectionCompatibility EulerGevreyMetricEstimate EulerVolterraConvolution | |
| 13 | +open scoped Topology | |
| 14 | + | |
| 15 | +variable (period : ℝ) [Fact (0 < period)] | |
| 16 | + | |
| 17 | +/-- The actual finite-order correction chosen from the proved global nonlinear construction. -/ | |
| 18 | +def solution {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 19 | + (q : ℕ) (hq : 6 ≤ q) : C(Icc (0 : ℝ) T,SobolevSpace period (q+1)) := | |
| 20 | + Classical.choose (finite_exists period hT A B q hq) | |
| 21 | + | |
| 22 | +/-- The constructed finite-order correction has zero initial trace. -/ | |
| 23 | +theorem solution_initial {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 24 | + (q : ℕ) (hq : 6 ≤ q) : solution period hT A B q hq ⟨0,le_rfl,hT.le⟩=0 := | |
| 25 | + (Classical.choose_spec (finite_exists period hT A B q hq)).1 | |
| 26 | + | |
| 27 | +/-- The constructed finite-order correction satisfies the actual lifted divergence constraint. -/ | |
| 28 | +theorem solution_divergence {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 29 | + (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : | |
| 30 | + value period (solution period hT A B q hq t) ∈ divergenceFreeSpace period A.κ A.direction := | |
| 31 | + (Classical.choose_spec (finite_exists period hT A B q hq)).2.1 t | |
| 32 | + | |
| 33 | +/-- Every retained cutoff of the constructed correction has the proved common energy bound. -/ | |
| 34 | +theorem solution_energy {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 35 | + (q : ℕ) (hq : 6 ≤ q) (P : ℕ) (hPN : P ≤ q-4) (hP : P+6 ≤ q+1) (t : Icc (0 : ℝ) T) : | |
| 36 | + energyNorm period P hP (B.radius t) (B.metric.operatorPath period t) | |
| 37 | + (solution period hT A B q hq t) ≤ B.delta/2 := | |
| 38 | + (Classical.choose_spec (finite_exists period hT A B q hq)).2.2.1 P hPN hP t | |
| 39 | + | |
| 40 | +/-- The constructed correction satisfies the actual nonlinear projected-pressure equation at every interior time. -/ | |
| 41 | +theorem solution_hasDerivAt {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 42 | + (q : ℕ) (hq : 6 ≤ q) (t : ℝ) (ht : t ∈ Ioo 0 T) : | |
| 43 | + HasDerivAt (fun r => value period (extendPath T hT.le (solution period hT A B q hq) r)) | |
| 44 | + (value period (((A.atOrder period q).coefficients period hq).apply | |
| 45 | + ⟨t,ht.1.le,ht.2.le⟩ (solution period hT A B q hq ⟨t,ht.1.le,ht.2.le⟩))) t := | |
| 46 | + (Classical.choose_spec (finite_exists period hT A B q hq)).2.2.2 t ht | |
| 47 | + | |
| 48 | +/-- The separately constructed solutions are genuinely the same correction after restriction; uniqueness is proved from their actual equations. -/ | |
| 49 | +theorem solution_compatible {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 50 | + (q : ℕ) (hq : 6 ≤ q) : | |
| 51 | + (truncateOperator period (q+1)).compLeftContinuous ℝ (Icc (0 : ℝ) T) | |
| 52 | + (solution period hT A B (q+1) (hq.trans (Nat.le_succ q))) = solution period hT A B q hq := by | |
| 53 | + have hs : StabilityBudget period hT.le | |
| 54 | + (lowerData period (A.atOrder period (q+1)) (A.metric.jet q) (A.linear.jet q) | |
| 55 | + (fun i => (A.quadratic i).jet q) (A.metric.continuous q) (A.linear.continuous q) | |
| 56 | + (fun i => (A.quadratic i).continuous q)) := by | |
| 57 | + rw [A.lower_atOrder period q] | |
| 58 | + exact stabilityBudget period hT A B q | |
| 59 | + apply inviscid_corrections_compatible period hq T hT.le (A.atOrder period (q+1)) | |
| 60 | + (A.metric.jet q) (A.linear.jet q) (fun i => (A.quadratic i).jet q) | |
| 61 | + (A.metric.continuous q) (A.linear.continuous q) (fun i => (A.quadratic i).continuous q) | |
| 62 | + (solution period hT A B (q+1) (hq.trans (Nat.le_succ q))) | |
| 63 | + (solution_hasDerivAt period hT A B (q+1) (hq.trans (Nat.le_succ q))) hs | |
| 64 | + (solution period hT A B q hq) | |
| 65 | + · simpa only [A.lower_atOrder period q] using solution_hasDerivAt period hT A B q hq | |
| 66 | + · rw [solution_initial,solution_initial,map_zero] | |
| 67 | + · intro t | |
| 68 | + change value period (A.approximation.realization ((q+1)+1) t) ∈ _ | |
| 69 | + rw [A.approximation.value_eq] | |
| 70 | + exact B.divergence t | |
| 71 | + · exact solution_divergence period hT A B (q+1) (hq.trans (Nat.le_succ q)) | |
| 72 | + · exact solution_divergence period hT A B q hq | |
| 73 | + | |
| 74 | +/-- Adjacent finite-order solutions have exactly the same underlying L² field. -/ | |
| 75 | +theorem solution_value_succ {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 76 | + (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : | |
| 77 | + value period (solution period hT A B (q+1) (hq.trans (Nat.le_succ q)) t) = | |
| 78 | + value period (solution period hT A B q hq t) := | |
| 79 | + congrArg (fun f => value period (f t)) (solution_compatible period hT A B q hq) | |
| 80 | + | |
| 81 | +end EulerAllOrderCorrectionFamily | |
+44 −0 Euler/AllOrderCorrectionStability.lean added View file
| @@ -0,0 +1,44 @@ | ||
| 1 | +import Euler.AllOrderCorrectionBudget | |
| 2 | +import Euler.GevreyStabilityBudget | |
| 3 | + | |
| 4 | +/-! One concrete stability budget compares every finite realization of the same prescribed data. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerAllOrderCorrectionBudget | |
| 9 | + | |
| 10 | +open MeasureTheory Set EulerLiftedGradientSpace EulerLiftedPressure EulerCylinderSobolevSpace | |
| 11 | + EulerCorrectionOperators EulerCorrectionEnergyData EulerAllOrderCorrectionData | |
| 12 | + EulerCorrectionStabilityBudget EulerGevreyStabilityBudget | |
| 13 | + | |
| 14 | +variable (period : ℝ) [Fact (0 < period)] | |
| 15 | + | |
| 16 | +/-- The genuine base-order data bounds construct the comparison budget at every Sobolev order of the coherent coefficient family. -/ | |
| 17 | +def stabilityBudget {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) (q : ℕ) : | |
| 18 | + StabilityBudget period hT.le (A.atOrder period q) where | |
| 19 | + metric := B.metric.metric | |
| 20 | + continuous := B.metric.continuous | |
| 21 | + derivative := B.metric.derivative | |
| 22 | + hasDeriv := B.metric.hasDeriv | |
| 23 | + c := B.metric.c | |
| 24 | + c_pos := B.metric.c_pos | |
| 25 | + symmetric := B.metric.symmetric | |
| 26 | + coercive := B.metric.coercive | |
| 27 | + inverse := B.metric.inverse | |
| 28 | + bound := B.metric.bound | |
| 29 | + first := B.metric.first | |
| 30 | + time := B.metric.time | |
| 31 | + linear := (B.spatial 6 le_rfl).A0 | |
| 32 | + quadratic := (B.spatial 6 le_rfl).A2 | |
| 33 | + bound_le t := (coefficientOperator_norm_le (B.metric.metric t).coefficient | |
| 34 | + (B.metric.metric t).measurable (B.metric.metric t).bound (B.metric.metric t).norm_bound).trans | |
| 35 | + (B.metric.bound_le t) | |
| 36 | + first_le := B.metric.first_le | |
| 37 | + time_le := B.metric.time_le | |
| 38 | + linear_le t := (coefficient_bound_le_weighted period (A.linear.jet 8 t) 2 (B.radius t) | |
| 39 | + ((B.spatial 6 le_rfl).radius_pos t)).trans ((B.spatial 6 le_rfl).linear t) | |
| 40 | + quadratic_le t := (Finset.sum_le_sum (fun i (_ : i ∈ (Finset.univ : Finset (Fin 3))) => | |
| 41 | + coefficient_bound_le_weighted period ((A.quadratic i).jet 8 t) 2 (B.radius t) | |
| 42 | + ((B.spatial 6 le_rfl).radius_pos t))).trans ((B.spatial 6 le_rfl).quadratic t) | |
| 43 | + | |
| 44 | +end EulerAllOrderCorrectionBudget | |
+62 −0 Euler/AllOrderDriftBudget.lean added View file
| @@ -0,0 +1,62 @@ | ||
| 1 | +import Euler.AllOrderCorrectionCoherence | |
| 2 | +import Euler.DriftCorrectionBudget | |
| 3 | +import Euler.CorrectionAssemblyData | |
| 4 | + | |
| 5 | +/-! Actual all-order Gevrey input budgets with radius loss controlled by the transport drift. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +namespace EulerAllOrderDriftCorrection | |
| 10 | + | |
| 11 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace | |
| 12 | + EulerCorrectionOperators EulerCorrectionEnergyData EulerCorrectionEnergyMajorants | |
| 13 | + EulerAllOrderCorrectionData EulerCorrectionAssembly | |
| 14 | + | |
| 15 | +variable (period : ℝ) [Fact (0 < period)] | |
| 16 | + | |
| 17 | +/-- Genuine coherent input budgets for the drift-aware all-order correction theorem. | |
| 18 | +Full background norms enter the proved polynomial constants; only the actual transport drift enters the shrinking-radius slope. -/ | |
| 19 | +structure Budget {T : ℝ} (hT : 0 < T) (A : Data period T) where | |
| 20 | + /-- The actual common inverse metric and its genuine time derivative. -/ | |
| 21 | + metric : MetricBudget period T hT.le (A.atOrder period 1) | |
| 22 | + /-- The common positive shrinking radius. -/ | |
| 23 | + radius : C(Icc (0 : ℝ) T, ℝ) | |
| 24 | + /-- The common scalar dominating the proved nonlinear growth constants. -/ | |
| 25 | + growthCoefficient : ℝ | |
| 26 | + /-- The desired common correction bound. -/ | |
| 27 | + delta : ℝ | |
| 28 | + /-- The common initial radius. -/ | |
| 29 | + initialRadius : ℝ | |
| 30 | + /-- Actual coefficient, full-velocity, drift and residual bounds at every construction order. -/ | |
| 31 | + spatial : ∀ q (hq : 6 ≤ q), EulerDriftCorrectionBudget.Budget period | |
| 32 | + (hq.trans (by omega : q ≤ (q+1)+1)) (A.atOrder period ((q+1)+1)) (q-4) radius | |
| 33 | + /-- The common scalar bounds each actual proved energy constant. -/ | |
| 34 | + growth_bound : ∀ q hq, combinedConstant period (spatial q hq).full | |
| 35 | + (A.metricBudget period hT.le metric (q+1)) ≤ growthCoefficient | |
| 36 | + /-- The target error is strictly positive. -/ | |
| 37 | + delta_pos : 0 < delta | |
| 38 | + /-- The target error is at most one. -/ | |
| 39 | + delta_le_one : delta ≤ 1 | |
| 40 | + /-- The initial radius is strictly positive. -/ | |
| 41 | + radius_pos : 0 < initialRadius | |
| 42 | + /-- The actual drift permits retention of half of the initial radius. -/ | |
| 43 | + decay : ∀ q hq, 2*growthCoefficient*((spatial q hq).drift+delta)*T ≤ initialRadius/2 | |
| 44 | + /-- The coefficient scale fits the initial radius. -/ | |
| 45 | + scale : ∀ q hq, initialRadius*(spatial q hq).full.Rc ≤ 1 | |
| 46 | + /-- The actual residual bound beats the genuine Gronwall factor. -/ | |
| 47 | + small : ∀ q hq, 2*(spatial q hq).full.residual*Real.exp (3*growthCoefficient*T) ≤ delta/2 | |
| 48 | + /-- The same actual radius is used at every order, with slope determined by the drift envelope. -/ | |
| 49 | + radius_eq : ∀ q hq t, | |
| 50 | + radius t = initialRadius-2*growthCoefficient*((spatial q hq).drift+delta)*t.val | |
| 51 | + /-- The prescribed approximation satisfies the actual lifted divergence constraint. -/ | |
| 52 | + divergence : ∀ t, A.approximation.field t ∈ divergenceFreeSpace period A.κ A.direction | |
| 53 | + | |
| 54 | +/-- The drift-aware input budget provides the genuine comparison data required by finite-order uniqueness. -/ | |
| 55 | +def Budget.comparisonData {T : ℝ} {hT : 0 < T} {A : Data period T} | |
| 56 | + (B : Budget period hT A) : ComparisonData period hT A where | |
| 57 | + metric := B.metric | |
| 58 | + radius := B.radius | |
| 59 | + spatial := (B.spatial 6 le_rfl).full | |
| 60 | + divergence := B.divergence | |
| 61 | + | |
| 62 | +end EulerAllOrderDriftCorrection | |
+281 −0 Euler/AllOrderDriftCorrection.lean added View file
| @@ -0,0 +1,281 @@ | ||
| 1 | +import Euler.AllOrderDriftFinite | |
| 2 | +import Euler.CorrectionAssemblyRealizations | |
| 3 | +import Euler.CorrectionAssemblyTime | |
| 4 | +import Euler.CorrectionAssemblyParity | |
| 5 | + | |
| 6 | +/-! | |
| 7 | +# One all-order correction from the actual small-drift construction | |
| 8 | + | |
| 9 | +The finite solutions used here are `Budget.solution` from `AllOrderDriftFinite`. | |
| 10 | +Their existence is proved by the drift-aware finite-Sobolev solver. The generic | |
| 11 | +assembly proves compatibility from their literal equations and uniqueness; it | |
| 12 | +does not require the coarse full-velocity shrinking-radius assumption. | |
| 13 | + | |
| 14 | +The resulting single field retains the residual and target-error estimates at | |
| 15 | +every external cutoff and satisfies the actual equation in every finite Sobolev | |
| 16 | +order. Smoothness asserted here is spatial smoothness, with a jointly continuous | |
| 17 | +representative and its genuine first time derivative. | |
| 18 | +-/ | |
| 19 | + | |
| 20 | +noncomputable section | |
| 21 | + | |
| 22 | +namespace EulerAllOrderDriftCorrection | |
| 23 | + | |
| 24 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace | |
| 25 | + EulerCylinderSobolev EulerSpatialSobolevInverse EulerCorrectionOperators | |
| 26 | + EulerAllOrderCorrectionData EulerCorrectionAssembly EulerGevreyMetricEstimate | |
| 27 | + EulerVolterraConvolution EulerInviscidSobolevEvolution EulerMetricTransport | |
| 28 | + EulerTransportDerivatives EulerSobolevPointEvaluation EulerCylinderReflection | |
| 29 | + EulerSobolevReflection EulerSobolevCoefficientPressure | |
| 30 | + | |
| 31 | +open scoped ContDiff | |
| 32 | + | |
| 33 | +variable (period : ℝ) [Fact (0 < period)] | |
| 34 | +variable {T : ℝ} {hT : 0 < T} {A : Data period T} | |
| 35 | + | |
| 36 | +/-- The drift-aware finite solutions coincide under the actual Sobolev restriction. -/ | |
| 37 | +theorem Budget.solution_compatible (B : Budget period hT A) (q : ℕ) (hq : 6 ≤ q) : | |
| 38 | + (truncateOperator period (q+1)).compLeftContinuous ℝ (Icc (0 : ℝ) T) | |
| 39 | + (B.solution period (q+1) (hq.trans (Nat.le_succ q))) = B.solution period q hq := | |
| 40 | + (B.family period).compatible period (B.comparisonData period) q hq | |
| 41 | + | |
| 42 | +/-- The common continuous L² correction constructed by the small-drift solver. -/ | |
| 43 | +def Budget.commonPath (B : Budget period hT A) : C(Icc (0 : ℝ) T, LiftL2 period) := | |
| 44 | + (B.family period).commonPath period | |
| 45 | + | |
| 46 | +/-- Every actual drift-aware finite solution represents this same common field. -/ | |
| 47 | +theorem Budget.solution_value_common (B : Budget period hT A) (q : ℕ) (hq : 6 ≤ q) | |
| 48 | + (t : Icc (0 : ℝ) T) : | |
| 49 | + value period (B.solution period q hq t) = B.commonPath period t := | |
| 50 | + (B.family period).value_common period (B.comparisonData period) q hq t | |
| 51 | + | |
| 52 | +/-- The common correction has zero initial trace. -/ | |
| 53 | +theorem Budget.commonPath_initial (B : Budget period hT A) : | |
| 54 | + B.commonPath period ⟨0, le_rfl, hT.le⟩ = 0 := | |
| 55 | + (B.family period).commonPath_initial period | |
| 56 | + | |
| 57 | +/-- The common correction satisfies the genuine closed lifted divergence constraint. -/ | |
| 58 | +theorem Budget.commonPath_divergence (B : Budget period hT A) (t : Icc (0 : ℝ) T) : | |
| 59 | + B.commonPath period t ∈ divergenceFreeSpace period A.κ A.direction := | |
| 60 | + (B.family period).commonPath_divergence period t | |
| 61 | + | |
| 62 | +/-- The common L² path satisfies the actual projected correction equation. -/ | |
| 63 | +theorem Budget.commonPath_hasDerivAt (B : Budget period hT A) | |
| 64 | + (t : ℝ) (ht : t ∈ Ioo 0 T) : | |
| 65 | + HasDerivAt (extendPath T hT.le (B.commonPath period)) | |
| 66 | + (value period (((A.atOrder period 6).coefficients period le_rfl).apply | |
| 67 | + ⟨t, ht.1.le, ht.2.le⟩ | |
| 68 | + (B.solution period 6 le_rfl ⟨t, ht.1.le, ht.2.le⟩))) t := | |
| 69 | + (B.family period).commonPath_hasDerivAt period t ht | |
| 70 | + | |
| 71 | +/-- An actual strong spatial jet of every order for the constructed common field. -/ | |
| 72 | +def Budget.commonJet (B : Budget period hT A) (n : ℕ) (t : Icc (0 : ℝ) T) : | |
| 73 | + SpatialJet period standardDirection n (B.commonPath period t) := | |
| 74 | + (B.family period).commonJet period (B.comparisonData period) n t | |
| 75 | + | |
| 76 | +/-- The common correction, with genuine continuous Sobolev realizations at all orders. -/ | |
| 77 | +def Budget.fieldTower (B : Budget period hT A) : FieldTower period T := | |
| 78 | + (B.family period).fieldTower period (B.comparisonData period) | |
| 79 | + | |
| 80 | +/-- The tower's underlying field is exactly the constructed common correction. -/ | |
| 81 | +theorem Budget.fieldTower_field (B : Budget period hT A) : | |
| 82 | + (B.fieldTower period).field = B.commonPath period := rfl | |
| 83 | + | |
| 84 | +/-- Every Sobolev realization of the common correction has zero initial data. -/ | |
| 85 | +theorem Budget.fieldTower_initial (B : Budget period hT A) (q : ℕ) : | |
| 86 | + (B.fieldTower period).realization q ⟨0, le_rfl, hT.le⟩ = 0 := by | |
| 87 | + apply value_injective period | |
| 88 | + calc | |
| 89 | + value period ((B.fieldTower period).realization q ⟨0, le_rfl, hT.le⟩) = | |
| 90 | + (B.fieldTower period).field ⟨0, le_rfl, hT.le⟩ := | |
| 91 | + (B.fieldTower period).value_eq q ⟨0, le_rfl, hT.le⟩ | |
| 92 | + _ = 0 := B.commonPath_initial period | |
| 93 | + _ = value period (0 : SobolevSpace period q) := rfl | |
| 94 | + | |
| 95 | +/-- A finite drift-aware solution equals the common tower's realization at its order. -/ | |
| 96 | +theorem Budget.solution_eq_realization (B : Budget period hT A) (q : ℕ) (hq : 6 ≤ q) : | |
| 97 | + B.solution period q hq = (B.fieldTower period).realization (q+1) := | |
| 98 | + (B.family period).solution_eq_realization period (B.comparisonData period) q hq | |
| 99 | + | |
| 100 | +/-- Both quantitative finite-solver bounds hold for the actual common realization. | |
| 101 | +The radius and residual envelope are the drift-aware input budgets. -/ | |
| 102 | +theorem Budget.fieldTower_energy (B : Budget period hT A) (P : ℕ) (t : Icc (0 : ℝ) T) : | |
| 103 | + energyNorm period P (by omega : P+6 ≤ (P+6)+1) | |
| 104 | + (B.radius t) (B.metric.operatorPath period t) | |
| 105 | + ((B.fieldTower period).realization ((P+6)+1) t) ≤ | |
| 106 | + 2*(B.spatial (P+6) (by omega)).full.residual* | |
| 107 | + Real.exp (3*B.growthCoefficient*t.val) ∧ | |
| 108 | + energyNorm period P (by omega : P+6 ≤ (P+6)+1) | |
| 109 | + (B.radius t) (B.metric.operatorPath period t) | |
| 110 | + ((B.fieldTower period).realization ((P+6)+1) t) ≤ B.delta/2 := by | |
| 111 | + rw [← B.solution_eq_realization period (P+6) (by omega)] | |
| 112 | + exact B.solution_energy period (P+6) (by omega) P (by omega) (by omega) t | |
| 113 | + | |
| 114 | +/-- The constructed finite solution has its genuine time derivative in Hq. -/ | |
| 115 | +theorem Budget.solution_sobolev_hasDerivAt (B : Budget period hT A) | |
| 116 | + (q : ℕ) (hq : 6 ≤ q) (t : ℝ) (ht : t ∈ Ioo 0 T) : | |
| 117 | + HasDerivAt (fun r => truncateOperator period q | |
| 118 | + (extendPath T hT.le (B.solution period q hq) r)) | |
| 119 | + (((A.atOrder period q).coefficients period hq).apply | |
| 120 | + ⟨t, ht.1.le, ht.2.le⟩ (B.solution period q hq ⟨t, ht.1.le, ht.2.le⟩)) t := | |
| 121 | + sobolev_hasDerivAt period T hT.le ((A.atOrder period q).coefficients period hq) | |
| 122 | + (B.solution period q hq) ((B.family period).equation q hq) t ht | |
| 123 | + | |
| 124 | +/-- Every finite Sobolev realization of the common correction satisfies the actual | |
| 125 | +projected nonlinear evolution, not merely an equation for an unrelated finite solve. -/ | |
| 126 | +theorem Budget.fieldTower_hasDerivAt (B : Budget period hT A) | |
| 127 | + (q : ℕ) (hq : 6 ≤ q) (t : ℝ) (ht : t ∈ Ioo 0 T) : | |
| 128 | + HasDerivAt (extendPath T hT.le ((B.fieldTower period).realization q)) | |
| 129 | + (((A.atOrder period q).coefficients period hq).apply | |
| 130 | + ⟨t, ht.1.le, ht.2.le⟩ | |
| 131 | + ((B.fieldTower period).realization (q+1) ⟨t, ht.1.le, ht.2.le⟩)) t := by | |
| 132 | + have hs := B.solution_sobolev_hasDerivAt period q hq t ht | |
| 133 | + rw [B.solution_eq_realization period q hq] at hs | |
| 134 | + have hpath := (B.fieldTower period).truncate period q | |
| 135 | + have heq : (fun r => truncateOperator period q | |
| 136 | + (extendPath T hT.le ((B.fieldTower period).realization (q+1)) r)) = | |
| 137 | + extendPath T hT.le ((B.fieldTower period).realization q) := by | |
| 138 | + funext r | |
| 139 | + exact congrArg (fun f => f (projIcc 0 T hT.le r)) hpath | |
| 140 | + rw [heq] at hs | |
| 141 | + exact hs | |
| 142 | + | |
| 143 | +/-- The common realization's actual derivative is the literal raw source plus signed pressure. -/ | |
| 144 | +theorem Budget.fieldTower_hasDerivAt_pressure (B : Budget period hT A) | |
| 145 | + (q : ℕ) (hq : 6 ≤ q) (t : ℝ) (ht : t ∈ Ioo 0 T) : | |
| 146 | + HasDerivAt (extendPath T hT.le ((B.fieldTower period).realization q)) | |
| 147 | + (-(A.atOrder period q).rawSource period hq ⟨t, ht.1.le, ht.2.le⟩ | |
| 148 | + ((B.fieldTower period).realization (q+1) ⟨t, ht.1.le, ht.2.le⟩) - | |
| 149 | + coefficientSobolevOperator period (A.metric.jet q ⟨t, ht.1.le, ht.2.le⟩) | |
| 150 | + ((A.atOrder period q).pressure period hq ⟨t, ht.1.le, ht.2.le⟩ | |
| 151 | + ((B.fieldTower period).realization (q+1) ⟨t, ht.1.le, ht.2.le⟩))) t := by | |
| 152 | + simpa only [CorrectionData.source_sobolev, Data.atOrder] using | |
| 153 | + B.fieldTower_hasDerivAt period q hq t ht | |
| 154 | + | |
| 155 | +/-- Canonical bounded evaluation fixes a pointwise representative of the correction. -/ | |
| 156 | +def Budget.pointField (B : Budget period hT A) | |
| 157 | + (t : Icc (0 : ℝ) T) (x : LiftDomain period) : Vector3 := | |
| 158 | + (B.family period).pointField period t x | |
| 159 | + | |
| 160 | +/-- The pointwise correction is an actual representative of the constructed L² field. -/ | |
| 161 | +theorem Budget.pointField_ae (B : Budget period hT A) (t : Icc (0 : ℝ) T) : | |
| 162 | + (B.commonPath period t : LiftDomain period → Vector3) =ᵐ[liftMeasure period] | |
| 163 | + B.pointField period t := | |
| 164 | + (B.family period).pointField_ae period t | |
| 165 | + | |
| 166 | +/-- The canonical correction vanishes pointwise at the initial time. -/ | |
| 167 | +theorem Budget.pointField_initial (B : Budget period hT A) (x : LiftDomain period) : | |
| 168 | + B.pointField period ⟨0, le_rfl, hT.le⟩ x = 0 := by | |
| 169 | + change pointEvaluation period x | |
| 170 | + (restrictOperator period (by omega : 3 ≤ 7) | |
| 171 | + ((B.family period).solution 6 le_rfl ⟨0, le_rfl, hT.le⟩)) = 0 | |
| 172 | + simp only [(B.family period).initial, map_zero] | |
| 173 | + | |
| 174 | +/-- The canonical correction is jointly continuous in time and the cylinder point. -/ | |
| 175 | +theorem Budget.pointField_joint_continuous (B : Budget period hT A) : | |
| 176 | + Continuous (B.pointField period).uncurry := | |
| 177 | + (B.family period).pointField_joint_continuous period | |
| 178 | + | |
| 179 | +/-- The one common correction has a spatially smooth representative at every time. -/ | |
| 180 | +theorem Budget.pointField_smooth (B : Budget period hT A) | |
| 181 | + (t : Icc (0 : ℝ) T) (x : LiftDomain period) : | |
| 182 | + ContDiff ℝ ∞ (localFieldLift period (B.pointField period t) x) := | |
| 183 | + (B.family period).pointField_smooth period (B.comparisonData period) t x | |
| 184 | + | |
| 185 | +/-- Its lifted divergence vanishes pointwise. -/ | |
| 186 | +theorem Budget.pointField_divergence (B : Budget period hT A) | |
| 187 | + (t : Icc (0 : ℝ) T) (x : LiftDomain period) : | |
| 188 | + (∑ i : Fin 3, (fieldDerivative period (coordinateDirection A.κ A.direction i) | |
| 189 | + (B.pointField period t) x) i) = 0 := | |
| 190 | + (B.family period).pointField_divergence period (B.comparisonData period) t x | |
| 191 | + | |
| 192 | +/-- Odd input data give an odd common correction by the proved PDE uniqueness. -/ | |
| 193 | +theorem Budget.commonPath_odd (B : Budget period hT A) (P : ParityData period A) | |
| 194 | + (t : Icc (0 : ℝ) T) : | |
| 195 | + -reflection period (B.commonPath period t) = B.commonPath period t := | |
| 196 | + (B.family period).commonPath_odd period (B.comparisonData period) P t | |
| 197 | + | |
| 198 | +/-- The actual common Sobolev realizations retain the prescribed odd parity. -/ | |
| 199 | +theorem Budget.fieldTower_odd (B : Budget period hT A) (P : ParityData period A) | |
| 200 | + (q : ℕ) (t : Icc (0 : ℝ) T) : | |
| 201 | + oddReflection period q ((B.fieldTower period).realization q t) = | |
| 202 | + (B.fieldTower period).realization q t := | |
| 203 | + (B.family period).fieldTower_odd period (B.comparisonData period) P q t | |
| 204 | + | |
| 205 | +/-- The canonical spatially smooth correction is pointwise odd for odd input data. -/ | |
| 206 | +theorem Budget.pointField_odd (B : Budget period hT A) (P : ParityData period A) | |
| 207 | + (t : Icc (0 : ℝ) T) (x : LiftDomain period) : | |
| 208 | + B.pointField period t (-x) = -B.pointField period t x := | |
| 209 | + (B.family period).pointField_odd period (B.comparisonData period) P t x | |
| 210 | + | |
| 211 | +/-- The actual pointwise time derivative, obtained from the constructed Sobolev source. -/ | |
| 212 | +def Budget.pointTimeDerivative (B : Budget period hT A) | |
| 213 | + (t : Icc (0 : ℝ) T) (x : LiftDomain period) : Vector3 := | |
| 214 | + (B.family period).pointTimeDerivative period t x | |
| 215 | + | |
| 216 | +/-- The correction's actual first time derivative is jointly continuous. -/ | |
| 217 | +theorem Budget.pointTimeDerivative_joint_continuous (B : Budget period hT A) : | |
| 218 | + Continuous (B.pointTimeDerivative period).uncurry := | |
| 219 | + (B.family period).pointTimeDerivative_joint_continuous period | |
| 220 | + | |
| 221 | +/-- The actual time derivative equals the raw source and the signed pressure term. -/ | |
| 222 | +theorem Budget.pointTimeDerivative_eq_pressure (B : Budget period hT A) | |
| 223 | + (t : Icc (0 : ℝ) T) (x : LiftDomain period) : | |
| 224 | + B.pointTimeDerivative period t x = -(B.family period).pointRawSource period t x - | |
| 225 | + (A.metric.coefficient t).coefficient x ((B.family period).pointPressure period t x) := | |
| 226 | + (B.family period).pointTimeDerivative_eq_pressure period t x | |
| 227 | + | |
| 228 | +/-- The canonical common field has its genuine first time derivative at interior times. -/ | |
| 229 | +theorem Budget.pointField_hasDerivAt (B : Budget period hT A) | |
| 230 | + (x : LiftDomain period) (t : ℝ) (ht : t ∈ Ioo 0 T) : | |
| 231 | + HasDerivAt (fun r => B.pointField period (projIcc 0 T hT.le r) x) | |
| 232 | + (B.pointTimeDerivative period ⟨t, ht.1.le, ht.2.le⟩ x) t := | |
| 233 | + (B.family period).pointField_hasDerivAt period x t ht | |
| 234 | + | |
| 235 | +/-- The pointwise correction equation contains the actual raw source and signed pressure. -/ | |
| 236 | +theorem Budget.pointField_hasDerivAt_pressure (B : Budget period hT A) | |
| 237 | + (x : LiftDomain period) (t : ℝ) (ht : t ∈ Ioo 0 T) : | |
| 238 | + HasDerivAt (fun r => B.pointField period (projIcc 0 T hT.le r) x) | |
| 239 | + (-(B.family period).pointRawSource period ⟨t, ht.1.le, ht.2.le⟩ x - | |
| 240 | + (A.metric.coefficient ⟨t, ht.1.le, ht.2.le⟩).coefficient x | |
| 241 | + ((B.family period).pointPressure period ⟨t, ht.1.le, ht.2.le⟩ x)) t := | |
| 242 | + (B.family period).pointField_hasDerivAt_pressure period x t ht | |
| 243 | + | |
| 244 | +/-- Genuine coherent input bounds, with radius loss determined only by the actual | |
| 245 | +transport drift, construct one smooth spatial correction with all-cutoff energy | |
| 246 | +bounds and its actual finite-Sobolev evolution. Finite existence, compatibility, | |
| 247 | +energy estimates and the correction equation are conclusions here. -/ | |
| 248 | +theorem exists_smooth_lifted_correction (B : Budget period hT A) : | |
| 249 | + ∃ (E : FieldTower period T) | |
| 250 | + (g v : Icc (0 : ℝ) T → LiftDomain period → Vector3), | |
| 251 | + E.field ⟨0, le_rfl, hT.le⟩ = 0 ∧ | |
| 252 | + (∀ t, E.field t ∈ divergenceFreeSpace period A.κ A.direction) ∧ | |
| 253 | + Continuous g.uncurry ∧ | |
| 254 | + (∀ t x, ContDiff ℝ ∞ (localFieldLift period (g t) x)) ∧ | |
| 255 | + (∀ t, (E.field t : LiftDomain period → Vector3) =ᵐ[liftMeasure period] g t) ∧ | |
| 256 | + (∀ t x, (∑ i : Fin 3, (fieldDerivative period | |
| 257 | + (coordinateDirection A.κ A.direction i) (g t) x) i) = 0) ∧ | |
| 258 | + Continuous v.uncurry ∧ | |
| 259 | + (∀ x t (ht : t ∈ Ioo 0 T), | |
| 260 | + HasDerivAt (fun r => g (projIcc 0 T hT.le r) x) | |
| 261 | + (v ⟨t, ht.1.le, ht.2.le⟩ x) t) ∧ | |
| 262 | + (∀ (P : ℕ) t, | |
| 263 | + energyNorm period P (by omega : P+6 ≤ (P+6)+1) | |
| 264 | + (B.radius t) (B.metric.operatorPath period t) (E.realization ((P+6)+1) t) ≤ | |
| 265 | + 2*(B.spatial (P+6) (by omega)).full.residual* | |
| 266 | + Real.exp (3*B.growthCoefficient*t.val) ∧ | |
| 267 | + energyNorm period P (by omega : P+6 ≤ (P+6)+1) | |
| 268 | + (B.radius t) (B.metric.operatorPath period t) (E.realization ((P+6)+1) t) ≤ | |
| 269 | + B.delta/2) ∧ | |
| 270 | + ∀ (q : ℕ) (hq : 6 ≤ q) t (ht : t ∈ Ioo 0 T), | |
| 271 | + HasDerivAt (extendPath T hT.le (E.realization q)) | |
| 272 | + (((A.atOrder period q).coefficients period hq).apply | |
| 273 | + ⟨t, ht.1.le, ht.2.le⟩ (E.realization (q+1) ⟨t, ht.1.le, ht.2.le⟩)) t := by | |
| 274 | + exact ⟨B.fieldTower period, B.pointField period, B.pointTimeDerivative period, | |
| 275 | + B.commonPath_initial period, | |
| 276 | + B.commonPath_divergence period, B.pointField_joint_continuous period, | |
| 277 | + B.pointField_smooth period, B.pointField_ae period, B.pointField_divergence period, | |
| 278 | + B.pointTimeDerivative_joint_continuous period, B.pointField_hasDerivAt period, | |
| 279 | + B.fieldTower_energy period, B.fieldTower_hasDerivAt period⟩ | |
| 280 | + | |
| 281 | +end EulerAllOrderDriftCorrection | |
+168 −0 Euler/AllOrderDriftEquation.lean added View file
| @@ -0,0 +1,168 @@ | ||
| 1 | +import Euler.AllOrderDriftCorrection | |
| 2 | +import Euler.AllOrderDriftPressure | |
| 3 | +import Euler.CorrectionResidualCancellation | |
| 4 | + | |
| 5 | +/-! | |
| 6 | +# Actual residual cancellation for the constructed all-order correction | |
| 7 | + | |
| 8 | +The drift-aware budget constructs the correction. A separate, explicit input | |
| 9 | +below identifies the prescribed residual with the residual of the actual | |
| 10 | +approximation and its pressure. Only after supplying that identity do we assert | |
| 11 | +that the corrected field solves the zero-residual lifted equation. | |
| 12 | + | |
| 13 | +These results concern the genuine Sobolev paths and coefficients of `Data`. | |
| 14 | +They neither construct the approximate packet nor identify arbitrary coefficients | |
| 15 | +with the physical Euler equation in parent-flow coordinates. | |
| 16 | +-/ | |
| 17 | + | |
| 18 | +noncomputable section | |
| 19 | + | |
| 20 | +namespace EulerAllOrderDriftCorrection | |
| 21 | + | |
| 22 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace | |
| 23 | + EulerAllOrderCorrectionData EulerCorrectionAssembly EulerCorrectionOperators | |
| 24 | + EulerCorrectionResidualCancellation EulerVolterraConvolution | |
| 25 | + EulerSobolevCoefficientPressure EulerGevreyMetricEstimate | |
| 26 | + | |
| 27 | +variable (period : ℝ) [Fact (0 < period)] | |
| 28 | +variable {T : ℝ} {hT : 0 < T} {A : Data period T} | |
| 29 | + | |
| 30 | +/-- The prescribed residual is the actual residual of the approximation with | |
| 31 | +this genuine all-order pressure. This is a condition on the input approximation, | |
| 32 | +not an existence or equation assumption about the constructed correction. -/ | |
| 33 | +structure ApproximationResidual (hT : 0 < T) (A : Data period T) where | |
| 34 | + /-- The actual approximate pressure gradient, with coherent Sobolev realizations. -/ | |
| 35 | + pressure : FieldTower period T | |
| 36 | + /-- The approximate pressure belongs to the same lifted gradient space. -/ | |
| 37 | + gradient : ∀ t, pressure.field t ∈ gradientSpace period A.κ A.direction | |
| 38 | + /-- The literal residual identity holds at every finite construction order. -/ | |
| 39 | + equation : ∀ (q : ℕ) (hq : 6 ≤ q) t (ht : t ∈ Ioo 0 T), | |
| 40 | + HasDerivAt (extendPath T hT.le (A.approximation.realization q)) | |
| 41 | + (A.residual.realization q ⟨t, ht.1.le, ht.2.le⟩ - | |
| 42 | + nonlinearity period (A.atOrder period q) hq ⟨t, ht.1.le, ht.2.le⟩ | |
| 43 | + (A.approximation.realization (q+1) ⟨t, ht.1.le, ht.2.le⟩) - | |
| 44 | + coefficientSobolevOperator period (A.metric.jet q ⟨t, ht.1.le, ht.2.le⟩) | |
| 45 | + (pressure.realization q ⟨t, ht.1.le, ht.2.le⟩)) t | |
| 46 | + | |
| 47 | +/-- The approximation plus the actually constructed correction, in every order. -/ | |
| 48 | +def Budget.correctedFieldTower (B : Budget period hT A) : FieldTower period T where | |
| 49 | + field := A.approximation.field + B.commonPath period | |
| 50 | + realization q := A.approximation.realization q + (B.fieldTower period).realization q | |
| 51 | + value_eq q t := by | |
| 52 | + change value period (A.approximation.realization q t) + | |
| 53 | + value period ((B.fieldTower period).realization q t) = | |
| 54 | + A.approximation.field t + B.commonPath period t | |
| 55 | + exact congrArg₂ (· + ·) (A.approximation.value_eq q t) | |
| 56 | + ((B.fieldTower period).value_eq q t) | |
| 57 | + | |
| 58 | +/-- The total pressure is the given approximate pressure plus the constructed | |
| 59 | +signed correction pressure, with no independent choice at different orders. -/ | |
| 60 | +def Budget.correctedPressureTower (B : Budget period hT A) | |
| 61 | + (R : ApproximationResidual period hT A) : FieldTower period T where | |
| 62 | + field := R.pressure.field + (B.pressureTower period).field | |
| 63 | + realization q := R.pressure.realization q + (B.pressureTower period).realization q | |
| 64 | + value_eq q t := by | |
| 65 | + change value period (R.pressure.realization q t) + | |
| 66 | + value period ((B.pressureTower period).realization q t) = | |
| 67 | + R.pressure.field t + (B.pressureTower period).field t | |
| 68 | + rw [R.pressure.value_eq, (B.pressureTower period).value_eq] | |
| 69 | + | |
| 70 | +/-- The corrected field has exactly the prescribed initial field at every order. -/ | |
| 71 | +theorem Budget.correctedFieldTower_initial (B : Budget period hT A) (q : ℕ) : | |
| 72 | + (B.correctedFieldTower period).realization q ⟨0, le_rfl, hT.le⟩ = | |
| 73 | + A.approximation.realization q ⟨0, le_rfl, hT.le⟩ := by | |
| 74 | + change A.approximation.realization q ⟨0, le_rfl, hT.le⟩ + | |
| 75 | + (B.fieldTower period).realization q ⟨0, le_rfl, hT.le⟩ = _ | |
| 76 | + rw [B.fieldTower_initial period, add_zero] | |
| 77 | + | |
| 78 | +/-- Addition preserves the actual closed lifted divergence constraint. -/ | |
| 79 | +theorem Budget.correctedFieldTower_divergence (B : Budget period hT A) | |
| 80 | + (t : Icc (0 : ℝ) T) : | |
| 81 | + (B.correctedFieldTower period).field t ∈ divergenceFreeSpace period A.κ A.direction := | |
| 82 | + (divergenceFreeSpace period A.κ A.direction).add_mem | |
| 83 | + (B.divergence t) (B.commonPath_divergence period t) | |
| 84 | + | |
| 85 | +/-- The total pressure remains an actual lifted gradient. -/ | |
| 86 | +theorem Budget.correctedPressureTower_gradient (B : Budget period hT A) | |
| 87 | + (R : ApproximationResidual period hT A) (t : Icc (0 : ℝ) T) : | |
| 88 | + (B.correctedPressureTower period R).field t ∈ gradientSpace period A.κ A.direction := | |
| 89 | + (gradientSpace period A.κ A.direction).add_mem (R.gradient t) | |
| 90 | + ((B.family period).commonPressure_gradient period t) | |
| 91 | + | |
| 92 | +/-- The exact solution differs from the approximation by precisely the small | |
| 93 | +correction, retaining both proved energy bounds at every external cutoff. -/ | |
| 94 | +theorem Budget.correctedFieldTower_error_energy (B : Budget period hT A) | |
| 95 | + (P : ℕ) (t : Icc (0 : ℝ) T) : | |
| 96 | + energyNorm period P (by omega : P+6 ≤ (P+6)+1) | |
| 97 | + (B.radius t) (B.metric.operatorPath period t) | |
| 98 | + ((B.correctedFieldTower period).realization ((P+6)+1) t - | |
| 99 | + A.approximation.realization ((P+6)+1) t) ≤ | |
| 100 | + 2*(B.spatial (P+6) (by omega)).full.residual* | |
| 101 | + Real.exp (3*B.growthCoefficient*t.val) ∧ | |
| 102 | + energyNorm period P (by omega : P+6 ≤ (P+6)+1) | |
| 103 | + (B.radius t) (B.metric.operatorPath period t) | |
| 104 | + ((B.correctedFieldTower period).realization ((P+6)+1) t - | |
| 105 | + A.approximation.realization ((P+6)+1) t) ≤ B.delta/2 := by | |
| 106 | + have heq : (B.correctedFieldTower period).realization ((P+6)+1) t - | |
| 107 | + A.approximation.realization ((P+6)+1) t = | |
| 108 | + (B.fieldTower period).realization ((P+6)+1) t := by | |
| 109 | + change (A.approximation.realization ((P+6)+1) t + | |
| 110 | + (B.fieldTower period).realization ((P+6)+1) t) - | |
| 111 | + A.approximation.realization ((P+6)+1) t = _ | |
| 112 | + abel | |
| 113 | + rw [heq] | |
| 114 | + exact B.fieldTower_energy period P t | |
| 115 | + | |
| 116 | +/-- The input residual identity and the proved correction equation give the | |
| 117 | +actual zero-residual nonlinear equation, with the actual total pressure. | |
| 118 | +There is no assumption of existence or an energy bound for the correction. -/ | |
| 119 | +theorem Budget.correctedFieldTower_hasDerivAt (B : Budget period hT A) | |
| 120 | + (R : ApproximationResidual period hT A) (q : ℕ) (hq : 6 ≤ q) | |
| 121 | + (t : ℝ) (ht : t ∈ Ioo 0 T) : | |
| 122 | + HasDerivAt (extendPath T hT.le ((B.correctedFieldTower period).realization q)) | |
| 123 | + (-nonlinearity period (A.atOrder period q) hq ⟨t, ht.1.le, ht.2.le⟩ | |
| 124 | + ((B.correctedFieldTower period).realization (q+1) ⟨t, ht.1.le, ht.2.le⟩) - | |
| 125 | + coefficientSobolevOperator period (A.metric.jet q ⟨t, ht.1.le, ht.2.le⟩) | |
| 126 | + ((B.correctedPressureTower period R).realization q ⟨t, ht.1.le, ht.2.le⟩)) t := by | |
| 127 | + have he := B.fieldTower_hasDerivAt_pressure period q hq t ht | |
| 128 | + have hz := R.equation q hq t ht | |
| 129 | + have hcancel := residual_cancellation period (A.atOrder period q) hq | |
| 130 | + ⟨t, ht.1.le, ht.2.le⟩ | |
| 131 | + ((B.fieldTower period).realization (q+1) ⟨t, ht.1.le, ht.2.le⟩) | |
| 132 | + (R.pressure.realization q ⟨t, ht.1.le, ht.2.le⟩) | |
| 133 | + have hsum := (hz.add he).congr_deriv hcancel | |
| 134 | + have hp := B.pressure_eq_realization period q hq ⟨t, ht.1.le, ht.2.le⟩ | |
| 135 | + rw [B.solution_eq_realization period q hq] at hp | |
| 136 | + rw [hp] at hsum | |
| 137 | + exact hsum | |
| 138 | + | |
| 139 | +/-- A single coherent exact lifted solution and total pressure are constructed | |
| 140 | +from the drift budget and the literal approximate residual identity. -/ | |
| 141 | +theorem exists_exact_lifted_solution (B : Budget period hT A) | |
| 142 | + (R : ApproximationResidual period hT A) : | |
| 143 | + ∃ (Z Q : FieldTower period T), | |
| 144 | + (∀ q, Z.realization q ⟨0, le_rfl, hT.le⟩ = | |
| 145 | + A.approximation.realization q ⟨0, le_rfl, hT.le⟩) ∧ | |
| 146 | + (∀ t, Z.field t ∈ divergenceFreeSpace period A.κ A.direction) ∧ | |
| 147 | + (∀ t, Q.field t ∈ gradientSpace period A.κ A.direction) ∧ | |
| 148 | + (∀ (P : ℕ) t, | |
| 149 | + energyNorm period P (by omega : P+6 ≤ (P+6)+1) | |
| 150 | + (B.radius t) (B.metric.operatorPath period t) | |
| 151 | + (Z.realization ((P+6)+1) t - A.approximation.realization ((P+6)+1) t) ≤ | |
| 152 | + 2*(B.spatial (P+6) (by omega)).full.residual* | |
| 153 | + Real.exp (3*B.growthCoefficient*t.val) ∧ | |
| 154 | + energyNorm period P (by omega : P+6 ≤ (P+6)+1) | |
| 155 | + (B.radius t) (B.metric.operatorPath period t) | |
| 156 | + (Z.realization ((P+6)+1) t - A.approximation.realization ((P+6)+1) t) ≤ B.delta/2) ∧ | |
| 157 | + ∀ (q : ℕ) (hq : 6 ≤ q) t (ht : t ∈ Ioo 0 T), | |
| 158 | + HasDerivAt (extendPath T hT.le (Z.realization q)) | |
| 159 | + (-nonlinearity period (A.atOrder period q) hq ⟨t, ht.1.le, ht.2.le⟩ | |
| 160 | + (Z.realization (q+1) ⟨t, ht.1.le, ht.2.le⟩) - | |
| 161 | + coefficientSobolevOperator period (A.metric.jet q ⟨t, ht.1.le, ht.2.le⟩) | |
| 162 | + (Q.realization q ⟨t, ht.1.le, ht.2.le⟩)) t := by | |
| 163 | + exact ⟨B.correctedFieldTower period, B.correctedPressureTower period R, | |
| 164 | + B.correctedFieldTower_initial period, B.correctedFieldTower_divergence period, | |
| 165 | + B.correctedPressureTower_gradient period R, B.correctedFieldTower_error_energy period, | |
| 166 | + B.correctedFieldTower_hasDerivAt period R⟩ | |
| 167 | + | |
| 168 | +end EulerAllOrderDriftCorrection | |
+49 −0 Euler/AllOrderDriftFieldDecomposition.lean added View file
| @@ -0,0 +1,49 @@ | ||
| 1 | +import Euler.AllOrderDriftGraph | |
| 2 | +import Euler.FieldTowerAlgebra | |
| 3 | +import Euler.PacketInitializedExactLifted | |
| 4 | + | |
| 5 | +/-! Pointwise decomposition of the actual corrected velocity and pressure. | |
| 6 | +The identities concern the constructed exact packet, not an arbitrary | |
| 7 | +pair satisfying an energy bound. -/ | |
| 8 | + | |
| 9 | +noncomputable section | |
| 10 | + | |
| 11 | +namespace EulerAllOrderDriftCorrection | |
| 12 | + | |
| 13 | +open Set EulerAllOrderCorrectionData EulerLiftedGradientSpace | |
| 14 | + | |
| 15 | +variable (P : ℝ) [Fact (0 < P)] {T : ℝ} {hT : 0 < T} {A : Data P T} | |
| 16 | + (B : Budget P hT A) | |
| 17 | + | |
| 18 | +theorem Budget.correctedFieldTower_eq : | |
| 19 | + B.correctedFieldTower P = A.approximation.add (B.fieldTower P) := rfl | |
| 20 | + | |
| 21 | +theorem Budget.correctedPressureTower_eq (R : ApproximationResidual P hT A) : | |
| 22 | + B.correctedPressureTower P R = R.pressure.add (B.pressureTower P) := rfl | |
| 23 | + | |
| 24 | +theorem Budget.correctedFieldTower_pointField (t : Icc (0 : ℝ) T) (x : LiftDomain P) : | |
| 25 | + (B.correctedFieldTower P).pointField t x = | |
| 26 | + A.approximation.pointField t x + B.pointField P t x := by | |
| 27 | + rw [B.correctedFieldTower_eq P, FieldTower.add_pointField, | |
| 28 | + B.correctionTower_pointField P t] | |
| 29 | + | |
| 30 | +theorem Budget.correctedPressureTower_pointField (R : ApproximationResidual P hT A) | |
| 31 | + (t : Icc (0 : ℝ) T) (x : LiftDomain P) : | |
| 32 | + (B.correctedPressureTower P R).pointField t x = | |
| 33 | + R.pressure.pointField t x + B.pointPressure P t x := by | |
| 34 | + rw [B.correctedPressureTower_eq P R, FieldTower.add_pointField, | |
| 35 | + B.pressureTower_pointField P t] | |
| 36 | + | |
| 37 | +theorem exactPacketOfResidual_velocity_pointField (R : ApproximationResidual P hT A) | |
| 38 | + (t : Icc (0 : ℝ) T) (x : LiftDomain P) : | |
| 39 | + (exactPacketOfResidual P B R).velocity.pointField t x = | |
| 40 | + A.approximation.pointField t x + B.pointField P t x := | |
| 41 | + B.correctedFieldTower_pointField P t x | |
| 42 | + | |
| 43 | +theorem exactPacketOfResidual_pressure_pointField (R : ApproximationResidual P hT A) | |
| 44 | + (t : Icc (0 : ℝ) T) (x : LiftDomain P) : | |
| 45 | + (exactPacketOfResidual P B R).pressure.pointField t x = | |
| 46 | + R.pressure.pointField t x + B.pointPressure P t x := | |
| 47 | + B.correctedPressureTower_pointField P R t x | |
| 48 | + | |
| 49 | +end EulerAllOrderDriftCorrection | |
+70 −0 Euler/AllOrderDriftFinite.lean added View file
| @@ -0,0 +1,70 @@ | ||
| 1 | +import Euler.AllOrderDriftBudget | |
| 2 | +import Euler.DriftGlobalInviscidGevrey | |
| 3 | + | |
| 4 | +/-! Actual finite inviscid corrections constructed from the all-order drift-aware input budget. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerAllOrderDriftCorrection | |
| 9 | + | |
| 10 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace | |
| 11 | + EulerCorrectionOperators EulerCorrectionEnergyData EulerCorrectionEnergyMajorants | |
| 12 | + EulerAllOrderCorrectionData EulerCorrectionAssembly EulerGevreyMetricEstimate | |
| 13 | + EulerDriftGlobalInviscidGevrey EulerVolterraConvolution EulerInviscidSobolevEvolution | |
| 14 | + | |
| 15 | +variable (period : ℝ) [Fact (0 < period)] | |
| 16 | + | |
| 17 | +/-- Genuine drift-aware input budgets construct an actual finite-order inviscid correction with quantitative retained Gevrey energy. | |
| 18 | +Finite existence, an energy inequality and convergence are conclusions of the imported actual construction, not hypotheses here. -/ | |
| 19 | +theorem finite_exists {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 20 | + (q : ℕ) (hq : 6 ≤ q) : | |
| 21 | + ∃ e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1)), | |
| 22 | + e ⟨0, le_rfl, hT.le⟩ = 0 ∧ | |
| 23 | + (∀ t, value period (e t) ∈ divergenceFreeSpace period A.κ A.direction) ∧ | |
| 24 | + (∀ (P : ℕ) (_ : P ≤ q-4) (hP : P+6 ≤ q+1) t, | |
| 25 | + energyNorm period P hP (B.radius t) (B.metric.operatorPath period t) (e t) ≤ | |
| 26 | + 2*(B.spatial q hq).full.residual*Real.exp (3*B.growthCoefficient*t.val) ∧ | |
| 27 | + energyNorm period P hP (B.radius t) (B.metric.operatorPath period t) (e t) ≤ B.delta/2) ∧ | |
| 28 | + ∀ t (ht : t ∈ Ioo 0 T), HasDerivAt (fun r => value period (extendPath T hT.le e r)) | |
| 29 | + (value period (((A.atOrder period q).coefficients period hq).apply | |
| 30 | + ⟨t, ht.1.le, ht.2.le⟩ (e ⟨t, ht.1.le, ht.2.le⟩))) t := by | |
| 31 | + have h := exists_global_inviscid_gevrey_PDE period hq T hT (A.atOrder period ((q+1)+1)) | |
| 32 | + (A.metric.jet (q+1)) (A.linear.jet (q+1)) (fun i => (A.quadratic i).jet (q+1)) | |
| 33 | + (A.metric.continuous (q+1)) (A.linear.continuous (q+1)) (fun i => (A.quadratic i).continuous (q+1)) | |
| 34 | + (A.metric.jet q) (A.linear.jet q) (fun i => (A.quadratic i).jet q) | |
| 35 | + (A.metric.continuous q) (A.linear.continuous q) (fun i => (A.quadratic i).continuous q) | |
| 36 | + A.metric_continuous (q-4) (by omega) (by omega) B.radius (B.spatial q hq) | |
| 37 | + (A.metricBudget period hT.le B.metric (q+1)) B.growthCoefficient B.delta B.initialRadius | |
| 38 | + (B.growth_bound q hq) B.delta_pos B.delta_le_one B.radius_pos (B.decay q hq) | |
| 39 | + (B.scale q hq) (B.small q hq) (B.radius_eq q hq) | |
| 40 | + (fun t => by simpa only [Data.atOrder, A.approximation.value_eq] using B.divergence t) | |
| 41 | + rw [A.lower_twice period q] at h | |
| 42 | + obtain ⟨e, hi, hd, _, he, hp⟩ := h | |
| 43 | + refine ⟨e, hi, hd, he, ?_⟩ | |
| 44 | + intro t ht | |
| 45 | + have hs := hp t ht | |
| 46 | + rw [← CorrectionData.source_sobolev] at hs | |
| 47 | + exact (valueOperator period q).hasFDerivAt.comp_hasDerivAt t hs | |
| 48 | + | |
| 49 | +/-- The genuine finite solution chosen from the proved drift-aware construction. -/ | |
| 50 | +def Budget.solution {T : ℝ} {hT : 0 < T} {A : Data period T} (B : Budget period hT A) | |
| 51 | + (q : ℕ) (hq : 6 ≤ q) : C(Icc (0 : ℝ) T, SobolevSpace period (q+1)) := | |
| 52 | + Classical.choose (finite_exists period hT A B q hq) | |
| 53 | + | |
| 54 | +/-- The actual selected finite solutions retain both residual and target-error energy estimates. -/ | |
| 55 | +theorem Budget.solution_energy {T : ℝ} {hT : 0 < T} {A : Data period T} (B : Budget period hT A) | |
| 56 | + (q : ℕ) (hq : 6 ≤ q) (P : ℕ) (hPN : P ≤ q-4) (hP : P+6 ≤ q+1) (t : Icc (0 : ℝ) T) : | |
| 57 | + energyNorm period P hP (B.radius t) (B.metric.operatorPath period t) (B.solution period q hq t) ≤ | |
| 58 | + 2*(B.spatial q hq).full.residual*Real.exp (3*B.growthCoefficient*t.val) ∧ | |
| 59 | + energyNorm period P hP (B.radius t) (B.metric.operatorPath period t) (B.solution period q hq t) ≤ B.delta/2 := | |
| 60 | + (Classical.choose_spec (finite_exists period hT A B q hq)).2.2.1 P hPN hP t | |
| 61 | + | |
| 62 | +/-- Actual drift-aware data construct the complete finite correction family; no finite-existence hypothesis is supplied. -/ | |
| 63 | +def Budget.family {T : ℝ} {hT : 0 < T} {A : Data period T} (B : Budget period hT A) : | |
| 64 | + FiniteFamily period hT A where | |
| 65 | + solution := B.solution period | |
| 66 | + initial q hq := (Classical.choose_spec (finite_exists period hT A B q hq)).1 | |
| 67 | + divergence q hq := (Classical.choose_spec (finite_exists period hT A B q hq)).2.1 | |
| 68 | + equation q hq := (Classical.choose_spec (finite_exists period hT A B q hq)).2.2.2 | |
| 69 | + | |
| 70 | +end EulerAllOrderDriftCorrection | |
+72 −0 Euler/AllOrderDriftGraph.lean added View file
| @@ -0,0 +1,72 @@ | ||
| 1 | +import Euler.FieldTowerCanonicalGraph | |
| 2 | +import Euler.CorrectionAssemblySourceTower | |
| 3 | + | |
| 4 | +/-! Actual spatial L² paths of the constructed correction and its pressure | |
| 5 | +on every fixed continuous phase graph, including every cylinder word and | |
| 6 | +the genuine time derivative. -/ | |
| 7 | + | |
| 8 | +noncomputable section | |
| 9 | + | |
| 10 | +namespace EulerAllOrderDriftCorrection | |
| 11 | + | |
| 12 | +open Set MeasureTheory EulerLiftedGradientSpace EulerCylinderSobolev | |
| 13 | + EulerMetricTransport EulerVolterraConvolution EulerAllOrderCorrectionData | |
| 14 | + | |
| 15 | +variable (P : ℝ) [Fact (0 < P)] | |
| 16 | + {T : ℝ} {hT : 0 < T} {A : Data P T} | |
| 17 | + (B : Budget P hT A) | |
| 18 | + (θ : Vector3 → AddCircle P) (hθ : Continuous θ) | |
| 19 | + | |
| 20 | +def Budget.graphCorrectionWordPath (n : ℕ) (w : Fin n → Fin 4) : | |
| 21 | + C(Icc (0 : ℝ) T,Lp Vector3 2 (volume : Measure Vector3)) := | |
| 22 | + (B.fieldTower P).canonicalGraphWordPath θ hθ n w | |
| 23 | + | |
| 24 | +def Budget.graphTimeDerivativeWordPath (n : ℕ) (w : Fin n → Fin 4) : | |
| 25 | + C(Icc (0 : ℝ) T,Lp Vector3 2 (volume : Measure Vector3)) := | |
| 26 | + (B.timeDerivativeTower P).canonicalGraphWordPath θ hθ n w | |
| 27 | + | |
| 28 | +def Budget.graphPressureWordPath (n : ℕ) (w : Fin n → Fin 4) : | |
| 29 | + C(Icc (0 : ℝ) T,Lp Vector3 2 (volume : Measure Vector3)) := | |
| 30 | + (B.pressureTower P).canonicalGraphWordPath θ hθ n w | |
| 31 | + | |
| 32 | +theorem Budget.correctionTower_pointField (t : Icc (0 : ℝ) T) : | |
| 33 | + (B.fieldTower P).pointField t = B.pointField P t := | |
| 34 | + (B.fieldTower P).pointField_unique t (B.pointField P t) | |
| 35 | + (Continuous.uncurry_left t (B.pointField_joint_continuous P)) (B.pointField_ae P t) | |
| 36 | + | |
| 37 | +theorem Budget.pressureTower_pointField (t : Icc (0 : ℝ) T) : | |
| 38 | + (B.pressureTower P).pointField t = B.pointPressure P t := | |
| 39 | + (B.pressureTower P).pointField_unique t (B.pointPressure P t) | |
| 40 | + (Continuous.uncurry_left t (B.pointPressure_joint_continuous P)) (B.pointPressure_ae P t) | |
| 41 | + | |
| 42 | +theorem Budget.graphCorrectionWordPath_ae (n : ℕ) (w : Fin n → Fin 4) | |
| 43 | + (t : Icc (0 : ℝ) T) : | |
| 44 | + (B.graphCorrectionWordPath P θ hθ n w t : Vector3 → Vector3) =ᵐ[volume] | |
| 45 | + fun x => iteratedFieldDerivative P w (B.pointField P t) (x,θ x) := by | |
| 46 | + simpa only [Budget.graphCorrectionWordPath,B.correctionTower_pointField P t] using | |
| 47 | + (B.fieldTower P).canonicalGraphWordPath_ae θ hθ n w t | |
| 48 | + | |
| 49 | +theorem Budget.graphPressureWordPath_ae (n : ℕ) (w : Fin n → Fin 4) | |
| 50 | + (t : Icc (0 : ℝ) T) : | |
| 51 | + (B.graphPressureWordPath P θ hθ n w t : Vector3 → Vector3) =ᵐ[volume] | |
| 52 | + fun x => iteratedFieldDerivative P w (B.pointPressure P t) (x,θ x) := by | |
| 53 | + simpa only [Budget.graphPressureWordPath,B.pressureTower_pointField P t] using | |
| 54 | + (B.pressureTower P).canonicalGraphWordPath_ae θ hθ n w t | |
| 55 | + | |
| 56 | +theorem Budget.graphCorrectionWordPath_hasDerivAt (n : ℕ) (w : Fin n → Fin 4) | |
| 57 | + (t : ℝ) (ht : t ∈ Ioo 0 T) : | |
| 58 | + HasDerivAt (extendPath T hT.le (B.graphCorrectionWordPath P θ hθ n w)) | |
| 59 | + (B.graphTimeDerivativeWordPath P θ hθ n w ⟨t,ht.1.le,ht.2.le⟩) t := | |
| 60 | + (B.fieldTower P).canonicalGraphWordPath_hasDerivAt θ hθ (B.timeDerivativeTower P) | |
| 61 | + hT.le n w (n+6) (by omega) t ht | |
| 62 | + (B.fieldTower_hasDerivAt_timeDerivativeTower P (n+6) (by omega) t ht) | |
| 63 | + | |
| 64 | +theorem Budget.graphCorrectionWordPath_initial (n : ℕ) (w : Fin n → Fin 4) : | |
| 65 | + B.graphCorrectionWordPath P θ hθ n w ⟨0,le_rfl,hT.le⟩ = 0 := by | |
| 66 | + have h := (B.fieldTower P).canonicalGraphWordPath_norm_sq_le θ hθ n w ⟨0,le_rfl,hT.le⟩ | |
| 67 | + rw [B.fieldTower_initial P (n+1),norm_zero,zero_pow (by norm_num : (2 : ℕ) ≠ 0),mul_zero] at h | |
| 68 | + apply norm_eq_zero.mp | |
| 69 | + change ‖(B.fieldTower P).canonicalGraphWordPath θ hθ n w ⟨0,le_rfl,hT.le⟩‖ = 0 | |
| 70 | + nlinarith [norm_nonneg ((B.fieldTower P).canonicalGraphWordPath θ hθ n w ⟨0,le_rfl,hT.le⟩)] | |
| 71 | + | |
| 72 | +end EulerAllOrderDriftCorrection | |
+55 −0 Euler/AllOrderDriftPointwiseBounds.lean added View file
| @@ -0,0 +1,55 @@ | ||
| 1 | +import Euler.AllOrderDriftGraph | |
| 2 | +import Euler.AllOrderDriftPressureBounds | |
| 3 | +import Euler.FieldTowerPointwiseGevrey | |
| 4 | + | |
| 5 | +/-! Pointwise mixed-word Gevrey estimates for the actual common | |
| 6 | +correction, its signed pressure gradient, and its actual time derivative. -/ | |
| 7 | + | |
| 8 | +noncomputable section | |
| 9 | + | |
| 10 | +namespace EulerAllOrderDriftCorrection | |
| 11 | + | |
| 12 | +open Set Finset EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerAllOrderCorrectionData | |
| 13 | + EulerSobolevGevreyOperators EulerCylinderSobolev EulerMetricTransport | |
| 14 | + EulerSobolevPointEvaluation | |
| 15 | + | |
| 16 | +variable (P : ℝ) [Fact (0 < P)] | |
| 17 | + {T : ℝ} {hT : 0 < T} {A : Data P T} (B : Budget P hT A) | |
| 18 | + | |
| 19 | +/-- The canonical representative of the actual derivative tower is the | |
| 20 | +same time derivative already selected by the finite PDE construction. -/ | |
| 21 | +theorem Budget.timeDerivativeTower_pointField (t : Icc (0 : ℝ) T) : | |
| 22 | + (B.timeDerivativeTower P).pointField t = B.pointTimeDerivative P t := by | |
| 23 | + funext x | |
| 24 | + rw [(B.timeDerivativeTower P).pointField_eq_high 6 (by omega) t x, | |
| 25 | + ← B.source_eq_timeDerivativeTower P 6 le_rfl t, | |
| 26 | + ← B.solution_eq_realization P 6 le_rfl] | |
| 27 | + rfl | |
| 28 | + | |
| 29 | +theorem Budget.pointField_wordSum_bound (n : ℕ) (t : Icc (0 : ℝ) T) (x : LiftDomain P) : | |
| 30 | + (∑ w : Fin n → Fin 4, ‖iteratedFieldDerivative P w (B.pointField P t) x‖) ≤ | |
| 31 | + (sobolevEmbeddingConstant P 3*B.correctionSize P)*(B.reducedRadius P)⁻¹^n*(n.factorial : ℝ)^2 := by | |
| 32 | + have h := (B.fieldTower P).pointField_wordSum_gevrey (n+6) 6 n n (by omega) (by omega) le_rfl | |
| 33 | + (B.reducedRadius P) (B.correctionSize P) (B.reducedRadius_pos P) t | |
| 34 | + (B.fieldTower_reducedNorm P (n+6) n (by omega) t) x | |
| 35 | + simpa only [B.correctionTower_pointField P t] using h | |
| 36 | + | |
| 37 | +theorem Budget.pointPressure_wordSum_bound (n : ℕ) (t : Icc (0 : ℝ) T) (x : LiftDomain P) : | |
| 38 | + (∑ w : Fin n → Fin 4, ‖iteratedFieldDerivative P w (B.pointPressure P t) x‖) ≤ | |
| 39 | + (sobolevEmbeddingConstant P 3*(B.pressureCost P (n+6) (by omega)*B.delta))* | |
| 40 | + (B.reducedRadius P)⁻¹^n*(n.factorial : ℝ)^2 := by | |
| 41 | + have h := (B.pressureTower P).pointField_wordSum_gevrey (n+6) 6 n n (by omega) (by omega) le_rfl | |
| 42 | + (B.reducedRadius P) (B.pressureCost P (n+6) (by omega)*B.delta) (B.reducedRadius_pos P) t | |
| 43 | + (B.pressureTower_reducedNorm_delta P (n+6) (by omega) n (by omega) (n+6) (by omega) t) x | |
| 44 | + simpa only [B.pressureTower_pointField P t] using h | |
| 45 | + | |
| 46 | +theorem Budget.pointTimeDerivative_wordSum_bound (n : ℕ) (t : Icc (0 : ℝ) T) (x : LiftDomain P) : | |
| 47 | + (∑ w : Fin n → Fin 4, ‖iteratedFieldDerivative P w (B.pointTimeDerivative P t) x‖) ≤ | |
| 48 | + (sobolevEmbeddingConstant P 3*(B.timeDerivativeCost P (n+6) (by omega)*B.delta))* | |
| 49 | + (B.reducedRadius P)⁻¹^n*(n.factorial : ℝ)^2 := by | |
| 50 | + have h := (B.timeDerivativeTower P).pointField_wordSum_gevrey (n+6) 6 n n (by omega) (by omega) le_rfl | |
| 51 | + (B.reducedRadius P) (B.timeDerivativeCost P (n+6) (by omega)*B.delta) (B.reducedRadius_pos P) t | |
| 52 | + (B.timeDerivativeTower_reducedNorm_delta P (n+6) (by omega) n (by omega) (n+6) (by omega) t) x | |
| 53 | + simpa only [B.timeDerivativeTower_pointField P t] using h | |
| 54 | + | |
| 55 | +end EulerAllOrderDriftCorrection | |
+192 −0 Euler/AllOrderDriftPressure.lean added View file
| @@ -0,0 +1,192 @@ | ||
| 1 | +import Euler.AllOrderDriftFinite | |
| 2 | +import Euler.CorrectionAssemblyPressureParity | |
| 3 | + | |
| 4 | +/-! Actual common pressure and a canonically normalized scalar graph pressure | |
| 5 | +constructed from all-order drift-aware input budgets. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +namespace EulerAllOrderDriftCorrection | |
| 10 | + | |
| 11 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace | |
| 12 | + EulerAllOrderCorrectionData EulerCorrectionAssembly EulerGraphPressurePotential | |
| 13 | + EulerMetricTransport EulerCylinderReflection EulerSobolevReflection EulerCorrectionOperators | |
| 14 | +open scoped ContDiff | |
| 15 | + | |
| 16 | +variable (period : ℝ) [Fact (0 < period)] | |
| 17 | +variable {T : ℝ} {hT : 0 < T} {A : Data period T} | |
| 18 | + | |
| 19 | +/-- The actual signed L² pressure of the family constructed from drift-aware budgets. -/ | |
| 20 | +def Budget.commonPressure (B : Budget period hT A) : | |
| 21 | + C(Icc (0 : ℝ) T, LiftL2 period) := | |
| 22 | + (B.family period).commonPressure period | |
| 23 | + | |
| 24 | +/-- Every constructed finite signed pressure realizes this same common L² pressure. -/ | |
| 25 | +theorem Budget.signedPressurePath_value_common (B : Budget period hT A) | |
| 26 | + (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : | |
| 27 | + value period ((B.family period).signedPressurePath period q hq t) = | |
| 28 | + B.commonPressure period t := | |
| 29 | + (B.family period).signedPressurePath_value_common period (B.comparisonData period) q hq t | |
| 30 | + | |
| 31 | +/-- The constructed pressure lies in the genuine closed lifted gradient space. -/ | |
| 32 | +theorem Budget.commonPressure_gradient (B : Budget period hT A) (t : Icc (0 : ℝ) T) : | |
| 33 | + B.commonPressure period t ∈ gradientSpace period A.κ A.direction := | |
| 34 | + (B.family period).commonPressure_gradient period t | |
| 35 | + | |
| 36 | +/-- Actual continuous Sobolev realizations at every order of the same constructed pressure. -/ | |
| 37 | +def Budget.pressureTower (B : Budget period hT A) : FieldTower period T := | |
| 38 | + (B.family period).pressureTower period (B.comparisonData period) | |
| 39 | + | |
| 40 | +/-- The all-order tower represents exactly the pressure selected from the finite construction. -/ | |
| 41 | +theorem Budget.pressureTower_value (B : Budget period hT A) | |
| 42 | + (q : ℕ) (t : Icc (0 : ℝ) T) : | |
| 43 | + value period ((B.pressureTower period).realization q t) = B.commonPressure period t := | |
| 44 | + (B.pressureTower period).value_eq q t | |
| 45 | + | |
| 46 | +/-- Evaluating the genuine finite-order pressure solver on the constructed correction | |
| 47 | +gives exactly the corresponding realization of the common pressure tower. -/ | |
| 48 | +theorem Budget.pressure_eq_realization (B : Budget period hT A) | |
| 49 | + (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : | |
| 50 | + (A.atOrder period q).pressure period hq t (B.solution period q hq t) = | |
| 51 | + (B.pressureTower period).realization q t := | |
| 52 | + congrArg (fun f => f t) | |
| 53 | + ((B.family period).signedPressurePath_eq_realization period (B.comparisonData period) q hq) | |
| 54 | + | |
| 55 | +/-- Bounded Sobolev evaluation fixes a canonical pointwise representative of the pressure. -/ | |
| 56 | +def Budget.pointPressure (B : Budget period hT A) | |
| 57 | + (t : Icc (0 : ℝ) T) (x : LiftDomain period) : Vector3 := | |
| 58 | + (B.family period).pointPressure period t x | |
| 59 | + | |
| 60 | +/-- The canonical representative agrees almost everywhere with the actual constructed pressure. -/ | |
| 61 | +theorem Budget.pointPressure_ae (B : Budget period hT A) (t : Icc (0 : ℝ) T) : | |
| 62 | + (B.commonPressure period t : LiftDomain period → Vector3) =ᵐ[liftMeasure period] | |
| 63 | + B.pointPressure period t := | |
| 64 | + (B.family period).pointPressure_ae period t | |
| 65 | + | |
| 66 | +/-- The selected actual pressure representative is jointly continuous, including endpoint times. -/ | |
| 67 | +theorem Budget.pointPressure_joint_continuous (B : Budget period hT A) : | |
| 68 | + Continuous (B.pointPressure period).uncurry := | |
| 69 | + (B.family period).pointPressure_joint_continuous period | |
| 70 | + | |
| 71 | +/-- The same pressure representative is smooth in all cylinder coordinates at every time. -/ | |
| 72 | +theorem Budget.pointPressure_smooth (B : Budget period hT A) | |
| 73 | + (t : Icc (0 : ℝ) T) (x : LiftDomain period) : | |
| 74 | + ContDiff ℝ ∞ (localFieldLift period (B.pointPressure period t) x) := | |
| 75 | + (B.family period).pointPressure_smooth period (B.comparisonData period) t x | |
| 76 | + | |
| 77 | +/-- The actual graph pressure-gradient vector field of the constructed correction. -/ | |
| 78 | +def Budget.graphPressure (B : Budget period hT A) (k : ℝ) | |
| 79 | + (t : Icc (0 : ℝ) T) (x : Vector3) : Vector3 := | |
| 80 | + A.κ • B.pointPressure period t (cylinderGraph period k A.direction x) | |
| 81 | + | |
| 82 | +/-- The actual graph vector field is jointly continuous in time and space. -/ | |
| 83 | +theorem Budget.graphPressure_joint_continuous (B : Budget period hT A) (k : ℝ) : | |
| 84 | + Continuous (B.graphPressure period k).uncurry := | |
| 85 | + (B.family period).graphPressure_joint_continuous period k | |
| 86 | + | |
| 87 | +/-- Reciprocal-frequency graph restriction of the actual pressure has a genuine smooth potential. -/ | |
| 88 | +theorem Budget.graphPressure_has_potential (B : Budget period hT A) | |
| 89 | + (k : ℝ) (hk : k * A.κ = 1) (t : Icc (0 : ℝ) T) : | |
| 90 | + ∃ q : Vector3 → ℝ, ContDiff ℝ ∞ q ∧ | |
| 91 | + ∀ x, gradient q x = B.graphPressure period k t x := | |
| 92 | + (B.family period).graphPressure_has_potential period (B.comparisonData period) k hk t | |
| 93 | + | |
| 94 | +/-- The scalar graph pressure constructed by radial integration, with its additive gauge fixed at zero. -/ | |
| 95 | +def Budget.normalizedGraphPotential (B : Budget period hT A) (k : ℝ) | |
| 96 | + (t : Icc (0 : ℝ) T) (x : Vector3) : ℝ := | |
| 97 | + (B.family period).normalizedGraphPotential period k t x | |
| 98 | + | |
| 99 | +/-- The constructed scalar pressure vanishes at the origin at every time. -/ | |
| 100 | +theorem Budget.normalizedGraphPotential_zero (B : Budget period hT A) | |
| 101 | + (k : ℝ) (t : Icc (0 : ℝ) T) : B.normalizedGraphPotential period k t 0 = 0 := | |
| 102 | + (B.family period).normalizedGraphPotential_zero period k t | |
| 103 | + | |
| 104 | +/-- Fixing the gauge by the same radial formula at every time preserves joint continuity. -/ | |
| 105 | +theorem Budget.normalizedGraphPotential_joint_continuous (B : Budget period hT A) (k : ℝ) : | |
| 106 | + Continuous (B.normalizedGraphPotential period k).uncurry := | |
| 107 | + (B.family period).normalizedGraphPotential_joint_continuous period k | |
| 108 | + | |
| 109 | +/-- The actual normalized scalar pressure is spatially smooth on each time slice. -/ | |
| 110 | +theorem Budget.normalizedGraphPotential_smooth (B : Budget period hT A) | |
| 111 | + (k : ℝ) (hk : k * A.κ = 1) (t : Icc (0 : ℝ) T) : | |
| 112 | + ContDiff ℝ ∞ (B.normalizedGraphPotential period k t) := | |
| 113 | + (B.family period).normalizedGraphPotential_smooth period (B.comparisonData period) k hk t | |
| 114 | + | |
| 115 | +/-- Its actual scalar gradient is precisely the signed pressure from the constructed correction. -/ | |
| 116 | +theorem Budget.normalizedGraphPotential_gradient (B : Budget period hT A) | |
| 117 | + (k : ℝ) (hk : k * A.κ = 1) (t : Icc (0 : ℝ) T) (x : Vector3) : | |
| 118 | + gradient (B.normalizedGraphPotential period k t) x = | |
| 119 | + A.κ • B.pointPressure period t (cylinderGraph period k A.direction x) := | |
| 120 | + (B.family period).normalizedGraphPotential_gradient period (B.comparisonData period) k hk t x | |
| 121 | + | |
| 122 | +/-- No second normalized smooth potential can represent the same actual graph pressure. -/ | |
| 123 | +theorem Budget.normalizedGraphPotential_unique (B : Budget period hT A) | |
| 124 | + (k : ℝ) (t : Icc (0 : ℝ) T) (q : Vector3 → ℝ) | |
| 125 | + (hq : ContDiff ℝ ∞ q) | |
| 126 | + (hgrad : ∀ x, gradient q x = B.graphPressure period k t x) (hq0 : q 0 = 0) : | |
| 127 | + B.normalizedGraphPotential period k t = q := | |
| 128 | + (B.family period).normalizedGraphPotential_unique period k t q hq hgrad hq0 | |
| 129 | + | |
| 130 | +/-- Prescribed odd data produce an odd actual common pressure gradient. -/ | |
| 131 | +theorem Budget.commonPressure_odd (B : Budget period hT A) (P : ParityData period A) | |
| 132 | + (t : Icc (0 : ℝ) T) : | |
| 133 | + -reflection period (B.commonPressure period t) = B.commonPressure period t := | |
| 134 | + (B.family period).commonPressure_odd period (B.comparisonData period) P t | |
| 135 | + | |
| 136 | +/-- Oddness holds pointwise for the canonical pressure representative. -/ | |
| 137 | +theorem Budget.pointPressure_odd (B : Budget period hT A) (P : ParityData period A) | |
| 138 | + (t : Icc (0 : ℝ) T) (x : LiftDomain period) : | |
| 139 | + B.pointPressure period t (-x) = -B.pointPressure period t x := | |
| 140 | + (B.family period).pointPressure_odd period (B.comparisonData period) P t x | |
| 141 | + | |
| 142 | +/-- The signed pressure gradient remains odd after physical phase-graph restriction. -/ | |
| 143 | +theorem Budget.graphPressure_odd (B : Budget period hT A) (P : ParityData period A) | |
| 144 | + (k : ℝ) (t : Icc (0 : ℝ) T) (x : Vector3) : | |
| 145 | + B.graphPressure period k t (-x) = -B.graphPressure period k t x := | |
| 146 | + (B.family period).graphPressure_odd period (B.comparisonData period) P k t x | |
| 147 | + | |
| 148 | +/-- The same canonical normalization makes the scalar graph pressure exactly even. -/ | |
| 149 | +theorem Budget.normalizedGraphPotential_even (B : Budget period hT A) (P : ParityData period A) | |
| 150 | + (k : ℝ) (t : Icc (0 : ℝ) T) (x : Vector3) : | |
| 151 | + B.normalizedGraphPotential period k t (-x) = B.normalizedGraphPotential period k t x := | |
| 152 | + (B.family period).normalizedGraphPotential_even period (B.comparisonData period) P k t x | |
| 153 | + | |
| 154 | +/-- The all-order drift-aware input budget constructs a common actual pressure, | |
| 155 | +a jointly continuous smooth spatial representative, and a canonically normalized | |
| 156 | +smooth scalar graph potential. No correction solution or pressure is assumed. -/ | |
| 157 | +theorem exists_normalized_pressure (B : Budget period hT A) (k : ℝ) (hk : k * A.κ = 1) : | |
| 158 | + ∃ (p : Icc (0 : ℝ) T → LiftDomain period → Vector3) | |
| 159 | + (Q : Icc (0 : ℝ) T → Vector3 → ℝ), | |
| 160 | + (∀ t, (B.commonPressure period t : LiftDomain period → Vector3) =ᵐ[liftMeasure period] p t) ∧ | |
| 161 | + Continuous p.uncurry ∧ | |
| 162 | + (∀ t x, ContDiff ℝ ∞ (localFieldLift period (p t) x)) ∧ | |
| 163 | + Continuous Q.uncurry ∧ (∀ t, Q t 0 = 0) ∧ | |
| 164 | + (∀ t, ContDiff ℝ ∞ (Q t)) ∧ | |
| 165 | + ∀ t x, gradient (Q t) x = A.κ • p t (cylinderGraph period k A.direction x) := | |
| 166 | + ⟨B.pointPressure period, B.normalizedGraphPotential period k, | |
| 167 | + B.pointPressure_ae period, B.pointPressure_joint_continuous period, | |
| 168 | + B.pointPressure_smooth period, B.normalizedGraphPotential_joint_continuous period k, | |
| 169 | + B.normalizedGraphPotential_zero period k, B.normalizedGraphPotential_smooth period k hk, | |
| 170 | + B.normalizedGraphPotential_gradient period k hk⟩ | |
| 171 | + | |
| 172 | +/-- With parity of the prescribed data, the same constructed pressure representative | |
| 173 | +is odd and its canonically normalized scalar graph potential is even. -/ | |
| 174 | +theorem exists_odd_normalized_pressure (B : Budget period hT A) (P : ParityData period A) | |
| 175 | + (k : ℝ) (hk : k * A.κ = 1) : | |
| 176 | + ∃ (p : Icc (0 : ℝ) T → LiftDomain period → Vector3) | |
| 177 | + (Q : Icc (0 : ℝ) T → Vector3 → ℝ), | |
| 178 | + (∀ t, (B.commonPressure period t : LiftDomain period → Vector3) =ᵐ[liftMeasure period] p t) ∧ | |
| 179 | + Continuous p.uncurry ∧ | |
| 180 | + (∀ t x, ContDiff ℝ ∞ (localFieldLift period (p t) x)) ∧ | |
| 181 | + (∀ t x, p t (-x) = -p t x) ∧ | |
| 182 | + Continuous Q.uncurry ∧ (∀ t, Q t 0 = 0) ∧ | |
| 183 | + (∀ t, ContDiff ℝ ∞ (Q t)) ∧ (∀ t x, Q t (-x) = Q t x) ∧ | |
| 184 | + ∀ t x, gradient (Q t) x = A.κ • p t (cylinderGraph period k A.direction x) := | |
| 185 | + ⟨B.pointPressure period, B.normalizedGraphPotential period k, | |
| 186 | + B.pointPressure_ae period, B.pointPressure_joint_continuous period, | |
| 187 | + B.pointPressure_smooth period, B.pointPressure_odd period P, | |
| 188 | + B.normalizedGraphPotential_joint_continuous period k, B.normalizedGraphPotential_zero period k, | |
| 189 | + B.normalizedGraphPotential_smooth period k hk, B.normalizedGraphPotential_even period P k, | |
| 190 | + B.normalizedGraphPotential_gradient period k hk⟩ | |
| 191 | + | |
| 192 | +end EulerAllOrderDriftCorrection | |
+195 −0 Euler/AllOrderDriftPressureBounds.lean added View file
| @@ -0,0 +1,195 @@ | ||
| 1 | +import Euler.AllOrderDriftRadiusBounds | |
| 2 | +import Euler.CorrectionAssemblySourceTower | |
| 3 | +import Euler.GevreyCorrectionSourceBounds | |
| 4 | + | |
| 5 | +/-! Smaller-radius quantitative bounds for the constructed common pressure | |
| 6 | +and the actual first time derivative of the correction. -/ | |
| 7 | + | |
| 8 | +noncomputable section | |
| 9 | + | |
| 10 | +namespace EulerGevreyCorrectionSourceBounds | |
| 11 | + | |
| 12 | +open EulerH6Nonlinear | |
| 13 | + | |
| 14 | +variable (period : ℝ) [Fact (0 < period)] | |
| 15 | + | |
| 16 | +/-- Scaling a small error and its first derivatives leaves a linear | |
| 17 | +smallness factor in the actual quadratic source bound. -/ | |
| 18 | +theorem sourceBound_scaling {B0 B1 A0 A2 residual E DE δ : ℝ} | |
| 19 | + (hA2 : 0 ≤ A2) (hE : 0 ≤ E) (hDE : 0 ≤ DE) | |
| 20 | + (hδ : 0 ≤ δ) (hδ1 : δ ≤ 1) (hr : residual ≤ δ) : | |
| 21 | + sourceBound period B0 B1 A0 A2 residual (δ*E) (δ*DE) ≤ | |
| 22 | + sourceBound period B0 B1 A0 A2 1 E DE*δ := by | |
| 23 | + have hP := productConstant_nonneg period 3 | |
| 24 | + have hquad : 0 ≤ productConstant period 3*E*DE + A2*productConstant period 3*E^2 := by positivity | |
| 25 | + have hsq : δ^2 ≤ δ := by nlinarith | |
| 26 | + have hm := mul_le_mul_of_nonneg_left hsq hquad | |
| 27 | + unfold sourceBound | |
| 28 | + nlinarith only [hr, hm] | |
| 29 | + | |
| 30 | +end EulerGevreyCorrectionSourceBounds | |
| 31 | + | |
| 32 | +namespace EulerAllOrderDriftCorrection | |
| 33 | + | |
| 34 | +open Set Finset EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerAllOrderCorrectionData | |
| 35 | + EulerCorrectionOperators EulerGevreyMetricEstimate EulerSobolevGevreyOperators | |
| 36 | + EulerGevreyRadiusReduction EulerGevreyCorrectionSourceBounds | |
| 37 | + | |
| 38 | +variable (period : ℝ) [Fact (0 < period)] | |
| 39 | +variable {T : ℝ} {hT : 0 < T} {A : Data period T} | |
| 40 | + | |
| 41 | +/-- The explicit raw-source bound before using the target-error smallness. -/ | |
| 42 | +def Budget.sourceSize (B : Budget period hT A) (q : ℕ) (hq : 6 ≤ q) : ℝ := | |
| 43 | + let S := (B.spatial q hq).full | |
| 44 | + sourceBound period S.B0 S.B1 S.A0 S.A2 S.residual | |
| 45 | + (B.correctionSize period) ((8/B.initialRadius)*B.correctionSize period) | |
| 46 | + | |
| 47 | +/-- The factor in the correction bound after removing the common delta. -/ | |
| 48 | +def Budget.baseCorrectionSize (B : Budget period hT A) : ℝ := metricAmplification B.metric.c/2 | |
| 49 | + | |
| 50 | +/-- An explicit source constant involving only the prescribed norm budgets | |
| 51 | +and the reciprocal initial radius; it is independent of delta. -/ | |
| 52 | +def Budget.sourceCost (B : Budget period hT A) (q : ℕ) (hq : 6 ≤ q) : ℝ := | |
| 53 | + let S := (B.spatial q hq).full | |
| 54 | + sourceBound period S.B0 S.B1 S.A0 S.A2 1 | |
| 55 | + (B.baseCorrectionSize period) ((8/B.initialRadius)*B.baseCorrectionSize period) | |
| 56 | + | |
| 57 | +def Budget.pressureCost (B : Budget period hT A) (q : ℕ) (hq : 6 ≤ q) : ℝ := | |
| 58 | + 2*(B.spatial q hq).full.M*B.sourceCost period q hq | |
| 59 | + | |
| 60 | +def Budget.timeDerivativeCost (B : Budget period hT A) (q : ℕ) (hq : 6 ≤ q) : ℝ := | |
| 61 | + (1+2*(B.spatial q hq).full.M*(448*(B.spatial q hq).full.B+1))*B.sourceCost period q hq | |
| 62 | + | |
| 63 | +theorem Budget.baseCorrectionSize_nonneg (B : Budget period hT A) : | |
| 64 | + 0 ≤ B.baseCorrectionSize period := by | |
| 65 | + exact div_nonneg (zero_le_one.trans (metricAmplification_one_le B.metric.c_pos)) (by norm_num) | |
| 66 | + | |
| 67 | +theorem Budget.sourceSize_le_delta (B : Budget period hT A) (q : ℕ) (hq : 6 ≤ q) : | |
| 68 | + B.sourceSize period q hq ≤ B.sourceCost period q hq*B.delta := by | |
| 69 | + have hr : (B.spatial q hq).full.residual ≤ B.delta := | |
| 70 | + (B.residual_le_delta period q hq).trans (by have := B.delta_pos; linarith) | |
| 71 | + have hE := B.baseCorrectionSize_nonneg period | |
| 72 | + have hDE : 0 ≤ (8/B.initialRadius)*B.baseCorrectionSize period := | |
| 73 | + mul_nonneg (div_nonneg (by norm_num) B.radius_pos.le) hE | |
| 74 | + have h := sourceBound_scaling period (B0 := (B.spatial q hq).full.B0) | |
| 75 | + (B1 := (B.spatial q hq).full.B1) (A0 := (B.spatial q hq).full.A0) | |
| 76 | + (B.spatial q hq).full.A2_nonneg hE hDE | |
| 77 | + B.delta_pos.le B.delta_le_one hr | |
| 78 | + convert h using 1 | |
| 79 | + · dsimp [Budget.sourceSize, Budget.correctionSize, Budget.baseCorrectionSize] | |
| 80 | + congr 1 <;> ring | |
| 81 | + · rfl | |
| 82 | + | |
| 83 | +theorem Budget.sourceCost_nonneg (B : Budget period hT A) (q : ℕ) (hq : 6 ≤ q) : | |
| 84 | + 0 ≤ B.sourceCost period q hq := by | |
| 85 | + exact sourceBound_nonneg period (B.spatial q hq).full.B0_nonneg (B.spatial q hq).full.B1_nonneg | |
| 86 | + (B.spatial q hq).full.A0_nonneg (B.spatial q hq).full.A2_nonneg (by norm_num) | |
| 87 | + (B.baseCorrectionSize_nonneg period) | |
| 88 | + (mul_nonneg (div_nonneg (by norm_num) B.radius_pos.le) (B.baseCorrectionSize_nonneg period)) | |
| 89 | + | |
| 90 | +private theorem tower_weightedNorm_eq (F : FieldTower period T) (s u N : ℕ) | |
| 91 | + (hs : N+6 ≤ s) (hu : N+6 ≤ u) (r : ℝ) (t : Icc (0 : ℝ) T) : | |
| 92 | + weightedNorm period 6 N r (F.realization s t) = | |
| 93 | + weightedNorm period 6 N r (F.realization u t) := by | |
| 94 | + apply weightedNorm_unique period 6 N r _ _ _ hs hu | |
| 95 | + rw [F.value_eq, F.value_eq] | |
| 96 | + | |
| 97 | +/-- The common raw source is bounded at the fixed smaller radius, using | |
| 98 | +only the actual correction and derivative bounds already proved. -/ | |
| 99 | +theorem Budget.rawSourceTower_reducedNorm (B : Budget period hT A) | |
| 100 | + (q : ℕ) (hq : 6 ≤ q) (N : ℕ) (hNq : N+4 ≤ q) | |
| 101 | + (s : ℕ) (hs : N+6 ≤ s) (t : Icc (0 : ℝ) T) : | |
| 102 | + weightedNorm period 6 N (B.reducedRadius period) ((B.rawSourceTower period).realization s t) ≤ | |
| 103 | + B.sourceSize period q hq := by | |
| 104 | + have hrR : B.reducedRadius period ≤ B.radius t := by | |
| 105 | + have h := B.reducedRadius_le_half period t | |
| 106 | + have hp := (B.spatial q hq).full.radius_pos t | |
| 107 | + linarith | |
| 108 | + have h := rawSource_smallerRadius_bound period (B.spatial q hq).full N (by omega) (by omega) | |
| 109 | + t (B.reducedRadius period) (B.reducedRadius_pos period) hrR | |
| 110 | + (B.correctionSize period) ((8/B.initialRadius)*B.correctionSize period) | |
| 111 | + ((B.fieldTower period).realization (q+3) t) | |
| 112 | + (B.fieldTower_reducedNorm period (q+3) N (by omega) t) | |
| 113 | + (B.fieldTower_reducedDerivativeNorm period (q+2) N (by omega) t) | |
| 114 | + change weightedNorm period 6 N (B.reducedRadius period) | |
| 115 | + ((A.atOrder period (q+2)).rawSource period (by omega) t | |
| 116 | + ((B.fieldTower period).realization (q+3) t)) ≤ B.sourceSize period q hq at h | |
| 117 | + rw [B.rawSource_eq_realization period (q+2) (by omega)] at h | |
| 118 | + rw [tower_weightedNorm_eq period (B.rawSourceTower period) s (q+2) N hs (by omega)] | |
| 119 | + exact h | |
| 120 | + | |
| 121 | +/-- The pressure is the actual common signed pressure obtained from the | |
| 122 | +coercive elliptic inverse, with an explicit smaller-radius bound. -/ | |
| 123 | +theorem Budget.pressureTower_reducedNorm (B : Budget period hT A) | |
| 124 | + (q : ℕ) (hq : 6 ≤ q) (N : ℕ) (hNq : N+4 ≤ q) | |
| 125 | + (s : ℕ) (hs : N+6 ≤ s) (t : Icc (0 : ℝ) T) : | |
| 126 | + weightedNorm period 6 N (B.reducedRadius period) ((B.pressureTower period).realization s t) ≤ | |
| 127 | + 2*(B.spatial q hq).full.M*B.sourceSize period q hq := by | |
| 128 | + have hrR : B.reducedRadius period ≤ B.radius t := by | |
| 129 | + have h := B.reducedRadius_le_half period t | |
| 130 | + have hp := (B.spatial q hq).full.radius_pos t | |
| 131 | + linarith | |
| 132 | + have h := pressure_smallerRadius_bound period (B.spatial q hq).full N (by omega) (by omega) | |
| 133 | + t (B.reducedRadius period) (B.reducedRadius_pos period) hrR | |
| 134 | + (B.correctionSize period) ((8/B.initialRadius)*B.correctionSize period) | |
| 135 | + ((B.fieldTower period).realization (q+3) t) | |
| 136 | + (B.fieldTower_reducedNorm period (q+3) N (by omega) t) | |
| 137 | + (B.fieldTower_reducedDerivativeNorm period (q+2) N (by omega) t) | |
| 138 | + change weightedNorm period 6 N (B.reducedRadius period) | |
| 139 | + ((A.atOrder period (q+2)).pressure period (by omega) t | |
| 140 | + ((B.fieldTower period).realization (q+3) t)) ≤ | |
| 141 | + 2*(B.spatial q hq).full.M*B.sourceSize period q hq at h | |
| 142 | + rw [← B.solution_eq_realization period (q+2) (by omega), B.pressure_eq_realization] at h | |
| 143 | + rw [tower_weightedNorm_eq period (B.pressureTower period) s (q+2) N hs (by omega)] | |
| 144 | + exact h | |
| 145 | + | |
| 146 | +/-- The actual continuous time-derivative field has the bound obtained | |
| 147 | +from its literal raw-source and signed-pressure equation. -/ | |
| 148 | +theorem Budget.timeDerivativeTower_reducedNorm (B : Budget period hT A) | |
| 149 | + (q : ℕ) (hq : 6 ≤ q) (N : ℕ) (hNq : N+4 ≤ q) | |
| 150 | + (s : ℕ) (hs : N+6 ≤ s) (t : Icc (0 : ℝ) T) : | |
| 151 | + weightedNorm period 6 N (B.reducedRadius period) ((B.timeDerivativeTower period).realization s t) ≤ | |
| 152 | + (1+2*(B.spatial q hq).full.M*(448*(B.spatial q hq).full.B+1))*B.sourceSize period q hq := by | |
| 153 | + have hrR : B.reducedRadius period ≤ B.radius t := by | |
| 154 | + have h := B.reducedRadius_le_half period t | |
| 155 | + have hp := (B.spatial q hq).full.radius_pos t | |
| 156 | + linarith | |
| 157 | + have h := timeSource_smallerRadius_bound period (B.spatial q hq).full N (by omega) (by omega) | |
| 158 | + t (B.reducedRadius period) (B.reducedRadius_pos period) hrR | |
| 159 | + (B.correctionSize period) ((8/B.initialRadius)*B.correctionSize period) | |
| 160 | + ((B.fieldTower period).realization (q+3) t) | |
| 161 | + (B.fieldTower_reducedNorm period (q+3) N (by omega) t) | |
| 162 | + (B.fieldTower_reducedDerivativeNorm period (q+2) N (by omega) t) | |
| 163 | + change weightedNorm period 6 N (B.reducedRadius period) | |
| 164 | + (((A.atOrder period (q+2)).coefficients period (by omega)).apply t | |
| 165 | + ((B.fieldTower period).realization (q+3) t)) ≤ | |
| 166 | + (1+2*(B.spatial q hq).full.M*(448*(B.spatial q hq).full.B+1))*B.sourceSize period q hq at h | |
| 167 | + rw [B.source_eq_timeDerivativeTower period (q+2) (by omega)] at h | |
| 168 | + rw [tower_weightedNorm_eq period (B.timeDerivativeTower period) s (q+2) N hs (by omega)] | |
| 169 | + exact h | |
| 170 | + | |
| 171 | +/-- The actual pressure-gradient norm is linear in the target error. -/ | |
| 172 | +theorem Budget.pressureTower_reducedNorm_delta (B : Budget period hT A) | |
| 173 | + (q : ℕ) (hq : 6 ≤ q) (N : ℕ) (hNq : N+4 ≤ q) | |
| 174 | + (s : ℕ) (hs : N+6 ≤ s) (t : Icc (0 : ℝ) T) : | |
| 175 | + weightedNorm period 6 N (B.reducedRadius period) ((B.pressureTower period).realization s t) ≤ | |
| 176 | + B.pressureCost period q hq*B.delta := by | |
| 177 | + have hM := zero_le_one.trans (B.spatial q hq).full.M_one_le | |
| 178 | + exact (B.pressureTower_reducedNorm period q hq N hNq s hs t).trans | |
| 179 | + ((mul_le_mul_of_nonneg_left (B.sourceSize_le_delta period q hq) (by positivity)).trans_eq | |
| 180 | + (by unfold Budget.pressureCost; ring)) | |
| 181 | + | |
| 182 | +/-- The actual first time derivative has the same linear target-error | |
| 183 | +factor, at the same fixed radius and every finite external cutoff. -/ | |
| 184 | +theorem Budget.timeDerivativeTower_reducedNorm_delta (B : Budget period hT A) | |
| 185 | + (q : ℕ) (hq : 6 ≤ q) (N : ℕ) (hNq : N+4 ≤ q) | |
| 186 | + (s : ℕ) (hs : N+6 ≤ s) (t : Icc (0 : ℝ) T) : | |
| 187 | + weightedNorm period 6 N (B.reducedRadius period) ((B.timeDerivativeTower period).realization s t) ≤ | |
| 188 | + B.timeDerivativeCost period q hq*B.delta := by | |
| 189 | + have hM := zero_le_one.trans (B.spatial q hq).full.M_one_le | |
| 190 | + have hB := (B.spatial q hq).full.B_nonneg | |
| 191 | + exact (B.timeDerivativeTower_reducedNorm period q hq N hNq s hs t).trans | |
| 192 | + ((mul_le_mul_of_nonneg_left (B.sourceSize_le_delta period q hq) (by positivity)).trans_eq | |
| 193 | + (by unfold Budget.timeDerivativeCost; ring)) | |
| 194 | + | |
| 195 | +end EulerAllOrderDriftCorrection | |
+139 −0 Euler/AllOrderDriftRadiusBounds.lean added View file
| @@ -0,0 +1,139 @@ | ||
| 1 | +import Euler.AllOrderDriftCorrection | |
| 2 | +import Euler.GevreyRadiusReduction | |
| 3 | + | |
| 4 | +/-! Actual weighted correction and derivative bounds at a fixed positive radius. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerAllOrderDriftCorrection | |
| 9 | + | |
| 10 | +open Set Finset EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 11 | + EulerAllOrderCorrectionData EulerCorrectionEnergyData EulerCorrectionEnergyMajorants | |
| 12 | + EulerGevreyMetricEstimate EulerGevreyRadiusReduction EulerSobolevGevreyOperators | |
| 13 | + | |
| 14 | +variable (period : ℝ) [Fact (0 < period)] | |
| 15 | +variable {T : ℝ} {hT : 0 < T} {A : Data period T} | |
| 16 | + | |
| 17 | +/-- The fixed radius retained for the correction, its pressure, and its time derivative. -/ | |
| 18 | +def Budget.reducedRadius (B : Budget period hT A) : ℝ := B.initialRadius/4 | |
| 19 | + | |
| 20 | +/-- The actual target-error envelope converted from metric energy to the fixed H⁶ word norm. -/ | |
| 21 | +def Budget.correctionSize (B : Budget period hT A) : ℝ := | |
| 22 | + metricAmplification B.metric.c*(B.delta/2) | |
| 23 | + | |
| 24 | +theorem Budget.growth_pos (B : Budget period hT A) : 0 < B.growthCoefficient := | |
| 25 | + (combinedConstant_pos period (B.spatial 6 le_rfl).full | |
| 26 | + (A.metricBudget period hT.le B.metric 7)).trans_le (B.growth_bound 6 le_rfl) | |
| 27 | + | |
| 28 | +theorem Budget.radius_bounds (B : Budget period hT A) (t : Icc (0 : ℝ) T) : | |
| 29 | + B.initialRadius/2 ≤ B.radius t ∧ B.radius t ≤ B.initialRadius := by | |
| 30 | + have hG := (B.growth_pos period).le | |
| 31 | + have hd := (B.spatial 6 le_rfl).drift_nonneg | |
| 32 | + have hδ := B.delta_pos.le | |
| 33 | + have hs : 0 ≤ 2*B.growthCoefficient*((B.spatial 6 le_rfl).drift+B.delta) := by positivity | |
| 34 | + have ht := mul_le_mul_of_nonneg_left t.property.2 hs | |
| 35 | + have hzero := mul_nonneg hs t.property.1 | |
| 36 | + rw [B.radius_eq 6 le_rfl t] | |
| 37 | + constructor <;> linarith [B.decay 6 le_rfl] | |
| 38 | + | |
| 39 | +theorem Budget.reducedRadius_pos (B : Budget period hT A) : 0 < B.reducedRadius period := by | |
| 40 | + exact div_pos B.radius_pos (by norm_num) | |
| 41 | + | |
| 42 | +theorem Budget.reducedRadius_le_half (B : Budget period hT A) (t : Icc (0 : ℝ) T) : | |
| 43 | + B.reducedRadius period ≤ B.radius t/2 := by | |
| 44 | + have h := (B.radius_bounds period t).1 | |
| 45 | + dsimp [Budget.reducedRadius] | |
| 46 | + linarith | |
| 47 | + | |
| 48 | +theorem Budget.correctionSize_nonneg (B : Budget period hT A) : 0 ≤ B.correctionSize period := by | |
| 49 | + have hμ := metricAmplification_one_le B.metric.c_pos | |
| 50 | + have hδ := B.delta_pos.le | |
| 51 | + dsimp [Budget.correctionSize] | |
| 52 | + positivity | |
| 53 | + | |
| 54 | +/-- The actual common correction retains the quantitative residual energy | |
| 55 | +of any finite realization containing the requested words. -/ | |
| 56 | +theorem Budget.fieldTower_weightedNorm_residual (B : Budget period hT A) | |
| 57 | + (q : ℕ) (hq : 6 ≤ q) (N : ℕ) (hN : N ≤ q-4) (hNq : N+6 ≤ q+1) | |
| 58 | + (s : ℕ) (hs : N+6 ≤ s) (t : Icc (0 : ℝ) T) : | |
| 59 | + weightedNorm period 6 N (B.radius t) ((B.fieldTower period).realization s t) ≤ | |
| 60 | + metricAmplification B.metric.c * | |
| 61 | + (2*(B.spatial q hq).full.residual*Real.exp (3*B.growthCoefficient*t.val)) := by | |
| 62 | + have hv : value period ((B.fieldTower period).realization s t) = | |
| 63 | + value period (B.solution period q hq t) := by | |
| 64 | + rw [(B.fieldTower period).value_eq] | |
| 65 | + exact (B.solution_value_common period q hq t).symm | |
| 66 | + rw [weightedNorm_unique period 6 N (B.radius t) _ _ hv hs hNq] | |
| 67 | + have h := weightedNorm_le_energy period N hNq (B.radius t) | |
| 68 | + ((B.spatial q hq).full.radius_pos t) (B.metric.operatorPath period t) | |
| 69 | + (B.solution period q hq t) B.metric.c B.metric.c_pos (B.metric.operator_coercive period t) | |
| 70 | + exact h.trans (mul_le_mul_of_nonneg_left (B.solution_energy period q hq N hN hNq t).1 | |
| 71 | + (zero_le_one.trans (metricAmplification_one_le B.metric.c_pos))) | |
| 72 | + | |
| 73 | +/-- At every finite cutoff, the norm bounds the one constructed common field. -/ | |
| 74 | +theorem Budget.fieldTower_weightedNorm_delta (B : Budget period hT A) | |
| 75 | + (s N : ℕ) (hN : N+6 ≤ s) (t : Icc (0 : ℝ) T) : | |
| 76 | + weightedNorm period 6 N (B.radius t) ((B.fieldTower period).realization s t) ≤ | |
| 77 | + B.correctionSize period := by | |
| 78 | + have hv : value period ((B.fieldTower period).realization s t) = | |
| 79 | + value period (B.solution period (N+6) (by omega) t) := by | |
| 80 | + rw [(B.fieldTower period).value_eq] | |
| 81 | + exact (B.solution_value_common period (N+6) (by omega) t).symm | |
| 82 | + rw [weightedNorm_unique period 6 N (B.radius t) _ _ hv hN (by omega)] | |
| 83 | + have h := weightedNorm_le_energy period N (by omega : N+6 ≤ (N+6)+1) (B.radius t) | |
| 84 | + ((B.spatial (N+6) (by omega)).full.radius_pos t) (B.metric.operatorPath period t) | |
| 85 | + (B.solution period (N+6) (by omega) t) B.metric.c B.metric.c_pos | |
| 86 | + (B.metric.operator_coercive period t) | |
| 87 | + exact h.trans (mul_le_mul_of_nonneg_left | |
| 88 | + (B.solution_energy period (N+6) (by omega) N (by omega) (by omega) t).2 | |
| 89 | + (zero_le_one.trans (metricAmplification_one_le B.metric.c_pos))) | |
| 90 | + | |
| 91 | +/-- The correction estimate holds at the same fixed quarter of the initial | |
| 92 | +radius for the whole time interval. -/ | |
| 93 | +theorem Budget.fieldTower_reducedNorm (B : Budget period hT A) | |
| 94 | + (s N : ℕ) (hN : N+6 ≤ s) (t : Icc (0 : ℝ) T) : | |
| 95 | + weightedNorm period 6 N (B.reducedRadius period) | |
| 96 | + ((B.fieldTower period).realization s t) ≤ B.correctionSize period := by | |
| 97 | + have hr : B.reducedRadius period ≤ B.radius t := by | |
| 98 | + have hh := B.reducedRadius_le_half period t | |
| 99 | + have hp := (B.spatial 6 le_rfl).full.radius_pos t | |
| 100 | + linarith | |
| 101 | + exact (weightedNorm_mono_radius period 6 N (B.reducedRadius_pos period).le hr _).trans | |
| 102 | + (B.fieldTower_weightedNorm_delta period s N hN t) | |
| 103 | + | |
| 104 | +/-- One extra derivative costs only the fixed reciprocal initial radius. | |
| 105 | +The estimate is simultaneous in all four genuine coordinate derivatives. -/ | |
| 106 | +theorem Budget.fieldTower_reducedDerivativeNorm (B : Budget period hT A) | |
| 107 | + (s N : ℕ) (hN : N+6 ≤ s) (t : Icc (0 : ℝ) T) : | |
| 108 | + (∑ i : Fin 4, weightedNorm period 6 N (B.reducedRadius period) | |
| 109 | + (derivativeOperator period s i ((B.fieldTower period).realization (s+1) t))) ≤ | |
| 110 | + (8/B.initialRadius)*B.correctionSize period := by | |
| 111 | + have hR := (B.spatial 6 le_rfl).full.radius_pos t | |
| 112 | + have hfrac : 4/B.radius t ≤ 8/B.initialRadius := by | |
| 113 | + apply (div_le_div_iff₀ hR B.radius_pos).mpr | |
| 114 | + linarith [(B.radius_bounds period t).1] | |
| 115 | + calc | |
| 116 | + _ ≤ ∑ i : Fin 4, weightedNorm period 6 N (B.radius t/2) | |
| 117 | + (derivativeOperator period s i ((B.fieldTower period).realization (s+1) t)) := by | |
| 118 | + exact sum_le_sum fun i _ => weightedNorm_mono_radius period 6 N | |
| 119 | + (B.reducedRadius_pos period).le (B.reducedRadius_le_half period t) _ | |
| 120 | + _ ≤ (4/B.radius t)*weightedNorm period 6 (N+1) (B.radius t) | |
| 121 | + ((B.fieldTower period).realization (s+1) t) := | |
| 122 | + weightedNorm_derivative_half period 6 N hN (B.radius t) hR _ | |
| 123 | + _ ≤ (4/B.radius t)*B.correctionSize period := | |
| 124 | + mul_le_mul_of_nonneg_left (B.fieldTower_weightedNorm_delta period (s+1) (N+1) (by omega) t) | |
| 125 | + (by positivity) | |
| 126 | + _ ≤ _ := mul_le_mul_of_nonneg_right hfrac (B.correctionSize_nonneg period) | |
| 127 | + | |
| 128 | +/-- The scalar residual budget itself is small; this follows from the | |
| 129 | +actual bootstrap input and does not assume a pressure estimate. -/ | |
| 130 | +theorem Budget.residual_le_delta (B : Budget period hT A) (q : ℕ) (hq : 6 ≤ q) : | |
| 131 | + (B.spatial q hq).full.residual ≤ B.delta/4 := by | |
| 132 | + have he : 1 ≤ Real.exp (3*B.growthCoefficient*T) := | |
| 133 | + Real.one_le_exp_iff.mpr (by have hG := (B.growth_pos period).le; positivity) | |
| 134 | + have hm := mul_le_mul_of_nonneg_left he | |
| 135 | + (show 0 ≤ 2*(B.spatial q hq).full.residual by have := (B.spatial q hq).full.residual_pos; positivity) | |
| 136 | + have hs := B.small q hq | |
| 137 | + linarith | |
| 138 | + | |
| 139 | +end EulerAllOrderDriftCorrection | |
+151 −0 Euler/AllOrderDriftResidualBounds.lean added View file
| @@ -0,0 +1,151 @@ | ||
| 1 | +import Euler.AllOrderDriftPressureBounds | |
| 2 | + | |
| 3 | +/-! The smaller-radius estimates also retain the actual residual envelope. -/ | |
| 4 | + | |
| 5 | +noncomputable section | |
| 6 | + | |
| 7 | +namespace EulerAllOrderDriftCorrection | |
| 8 | + | |
| 9 | +open Set Finset EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerAllOrderCorrectionData | |
| 10 | + EulerCorrectionOperators EulerGevreyMetricEstimate EulerSobolevGevreyOperators | |
| 11 | + EulerGevreyRadiusReduction EulerGevreyCorrectionSourceBounds | |
| 12 | + | |
| 13 | +variable (period : ℝ) [Fact (0 < period)] | |
| 14 | +variable {T : ℝ} {hT : 0 < T} {A : Data period T} | |
| 15 | + | |
| 16 | +/-- The quantitative envelope delivered by the actual finite solver. -/ | |
| 17 | +def Budget.residualEnvelope (B : Budget period hT A) (q : ℕ) (hq : 6 ≤ q) | |
| 18 | + (t : Icc (0 : ℝ) T) : ℝ := | |
| 19 | + 2*(B.spatial q hq).full.residual*Real.exp (3*B.growthCoefficient*t.val) | |
| 20 | + | |
| 21 | +theorem Budget.residualEnvelope_nonneg (B : Budget period hT A) | |
| 22 | + (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : | |
| 23 | + 0 ≤ B.residualEnvelope period q hq t := by | |
| 24 | + have h := (B.spatial q hq).full.residual_pos | |
| 25 | + unfold Budget.residualEnvelope | |
| 26 | + positivity | |
| 27 | + | |
| 28 | +theorem Budget.residualEnvelope_le_target (B : Budget period hT A) | |
| 29 | + (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : | |
| 30 | + B.residualEnvelope period q hq t ≤ B.delta/2 := by | |
| 31 | + have hg : 0 ≤ 3*B.growthCoefficient := by have := B.growth_pos period; positivity | |
| 32 | + have he := Real.exp_le_exp.mpr (mul_le_mul_of_nonneg_left t.property.2 hg) | |
| 33 | + exact (mul_le_mul_of_nonneg_left he | |
| 34 | + (show 0 ≤ 2*(B.spatial q hq).full.residual by have := (B.spatial q hq).full.residual_pos; positivity)).trans | |
| 35 | + (B.small q hq) | |
| 36 | + | |
| 37 | +/-- Both the correction and its genuine first spatial derivatives retain | |
| 38 | +the quantitative residual bound at the fixed smaller radius. -/ | |
| 39 | +theorem Budget.fieldTower_reducedNorms_residual (B : Budget period hT A) | |
| 40 | + (q : ℕ) (hq : 6 ≤ q) (N : ℕ) (hNq : N+6 ≤ q) | |
| 41 | + (s : ℕ) (hs : N+6 ≤ s) (t : Icc (0 : ℝ) T) : | |
| 42 | + weightedNorm period 6 N (B.reducedRadius period) ((B.fieldTower period).realization s t) ≤ | |
| 43 | + metricAmplification B.metric.c*B.residualEnvelope period q hq t ∧ | |
| 44 | + (∑ i : Fin 4, weightedNorm period 6 N (B.reducedRadius period) | |
| 45 | + (derivativeOperator period s i ((B.fieldTower period).realization (s+1) t))) ≤ | |
| 46 | + (8/B.initialRadius)*(metricAmplification B.metric.c*B.residualEnvelope period q hq t) := by | |
| 47 | + have hR := (B.spatial q hq).full.radius_pos t | |
| 48 | + have hrR : B.reducedRadius period ≤ B.radius t := by | |
| 49 | + have h := B.reducedRadius_le_half period t | |
| 50 | + linarith | |
| 51 | + have hfrac : 4/B.radius t ≤ 8/B.initialRadius := by | |
| 52 | + apply (div_le_div_iff₀ hR B.radius_pos).mpr | |
| 53 | + linarith [(B.radius_bounds period t).1] | |
| 54 | + have hE : 0 ≤ metricAmplification B.metric.c*B.residualEnvelope period q hq t := | |
| 55 | + mul_nonneg (zero_le_one.trans (metricAmplification_one_le B.metric.c_pos)) | |
| 56 | + (B.residualEnvelope_nonneg period q hq t) | |
| 57 | + constructor | |
| 58 | + · exact (weightedNorm_mono_radius period 6 N (B.reducedRadius_pos period).le hrR _).trans | |
| 59 | + (B.fieldTower_weightedNorm_residual period q hq N (by omega) (by omega) s hs t) | |
| 60 | + · calc | |
| 61 | + _ ≤ ∑ i : Fin 4, weightedNorm period 6 N (B.radius t/2) | |
| 62 | + (derivativeOperator period s i ((B.fieldTower period).realization (s+1) t)) := | |
| 63 | + sum_le_sum fun i _ => weightedNorm_mono_radius period 6 N | |
| 64 | + (B.reducedRadius_pos period).le (B.reducedRadius_le_half period t) _ | |
| 65 | + _ ≤ (4/B.radius t)*weightedNorm period 6 (N+1) (B.radius t) | |
| 66 | + ((B.fieldTower period).realization (s+1) t) := | |
| 67 | + weightedNorm_derivative_half period 6 N hs (B.radius t) hR _ | |
| 68 | + _ ≤ (4/B.radius t)*(metricAmplification B.metric.c*B.residualEnvelope period q hq t) := | |
| 69 | + mul_le_mul_of_nonneg_left | |
| 70 | + (B.fieldTower_weightedNorm_residual period q hq (N+1) (by omega) (by omega) (s+1) (by omega) t) | |
| 71 | + (by positivity) | |
| 72 | + _ ≤ _ := mul_le_mul_of_nonneg_right hfrac hE | |
| 73 | + | |
| 74 | +/-- The fixed polynomial cost when the solver's residual envelope is retained. -/ | |
| 75 | +def Budget.residualSourceCost (B : Budget period hT A) (q : ℕ) (hq : 6 ≤ q) : ℝ := | |
| 76 | + let S := (B.spatial q hq).full | |
| 77 | + sourceBound period S.B0 S.B1 S.A0 S.A2 1 | |
| 78 | + (metricAmplification B.metric.c) ((8/B.initialRadius)*metricAmplification B.metric.c) | |
| 79 | + | |
| 80 | +private theorem sourceBound_residual (B : Budget period hT A) | |
| 81 | + (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : | |
| 82 | + let S := (B.spatial q hq).full | |
| 83 | + sourceBound period S.B0 S.B1 S.A0 S.A2 S.residual | |
| 84 | + (metricAmplification B.metric.c*B.residualEnvelope period q hq t) | |
| 85 | + ((8/B.initialRadius)*(metricAmplification B.metric.c*B.residualEnvelope period q hq t)) ≤ | |
| 86 | + B.residualSourceCost period q hq*B.residualEnvelope period q hq t := by | |
| 87 | + have hμ : 0 ≤ metricAmplification B.metric.c := zero_le_one.trans (metricAmplification_one_le B.metric.c_pos) | |
| 88 | + have hDE := mul_nonneg (div_nonneg (by norm_num : (0 : ℝ) ≤ 8) B.radius_pos.le) hμ | |
| 89 | + have he := B.residualEnvelope_nonneg period q hq t | |
| 90 | + have he1 : B.residualEnvelope period q hq t ≤ 1 := | |
| 91 | + (B.residualEnvelope_le_target period q hq t).trans (by have := B.delta_le_one; linarith) | |
| 92 | + have hG := (B.growth_pos period).le | |
| 93 | + have ht0 := t.property.1 | |
| 94 | + have hexp : 1 ≤ Real.exp (3*B.growthCoefficient*t.val) := Real.one_le_exp_iff.mpr (by positivity) | |
| 95 | + have hr0 := (B.spatial q hq).full.residual_pos.le | |
| 96 | + have hr : (B.spatial q hq).full.residual ≤ B.residualEnvelope period q hq t := by | |
| 97 | + have hm := mul_le_mul_of_nonneg_left hexp (show 0 ≤ 2*(B.spatial q hq).full.residual by positivity) | |
| 98 | + dsimp [Budget.residualEnvelope] | |
| 99 | + linarith | |
| 100 | + have h := sourceBound_scaling period (B0 := (B.spatial q hq).full.B0) | |
| 101 | + (B1 := (B.spatial q hq).full.B1) (A0 := (B.spatial q hq).full.A0) | |
| 102 | + (B.spatial q hq).full.A2_nonneg hμ hDE he he1 hr | |
| 103 | + convert h using 1 | |
| 104 | + · congr 1 <;> ring | |
| 105 | + · rfl | |
| 106 | + | |
| 107 | +/-- The constructed pressure and actual time derivative satisfy the | |
| 108 | +sharper residual-envelope estimates, without assuming either bound. -/ | |
| 109 | +theorem Budget.pressure_time_reducedNorms_residual (B : Budget period hT A) | |
| 110 | + (q : ℕ) (hq : 6 ≤ q) (N : ℕ) (hNq : N+6 ≤ q) | |
| 111 | + (s : ℕ) (hs : N+6 ≤ s) (t : Icc (0 : ℝ) T) : | |
| 112 | + weightedNorm period 6 N (B.reducedRadius period) ((B.pressureTower period).realization s t) ≤ | |
| 113 | + (2*(B.spatial q hq).full.M*B.residualSourceCost period q hq)*B.residualEnvelope period q hq t ∧ | |
| 114 | + weightedNorm period 6 N (B.reducedRadius period) ((B.timeDerivativeTower period).realization s t) ≤ | |
| 115 | + ((1+2*(B.spatial q hq).full.M*(448*(B.spatial q hq).full.B+1))* | |
| 116 | + B.residualSourceCost period q hq)*B.residualEnvelope period q hq t := by | |
| 117 | + have hrR : B.reducedRadius period ≤ B.radius t := by | |
| 118 | + have h := B.reducedRadius_le_half period t | |
| 119 | + have hp := (B.spatial q hq).full.radius_pos t | |
| 120 | + linarith | |
| 121 | + have he := (B.fieldTower_reducedNorms_residual period q hq N hNq (q+3) (by omega) t).1 | |
| 122 | + have hde := (B.fieldTower_reducedNorms_residual period q hq N hNq (q+2) (by omega) t).2 | |
| 123 | + have hcost := sourceBound_residual period B q hq t | |
| 124 | + have hM := zero_le_one.trans (B.spatial q hq).full.M_one_le | |
| 125 | + have hB := (B.spatial q hq).full.B_nonneg | |
| 126 | + have hp := pressure_smallerRadius_bound period (B.spatial q hq).full N (by omega) (by omega) | |
| 127 | + t (B.reducedRadius period) (B.reducedRadius_pos period) hrR _ _ _ he hde | |
| 128 | + have ht := timeSource_smallerRadius_bound period (B.spatial q hq).full N (by omega) (by omega) | |
| 129 | + t (B.reducedRadius period) (B.reducedRadius_pos period) hrR _ _ _ he hde | |
| 130 | + have hp' := hp.trans (mul_le_mul_of_nonneg_left hcost (by positivity : 0 ≤ 2*(B.spatial q hq).full.M)) | |
| 131 | + have ht' := ht.trans (mul_le_mul_of_nonneg_left hcost | |
| 132 | + (by positivity : 0 ≤ 1+2*(B.spatial q hq).full.M*(448*(B.spatial q hq).full.B+1))) | |
| 133 | + change weightedNorm period 6 N (B.reducedRadius period) | |
| 134 | + ((A.atOrder period (q+2)).pressure period (by omega) t | |
| 135 | + ((B.fieldTower period).realization (q+3) t)) ≤ _ at hp' | |
| 136 | + rw [← B.solution_eq_realization period (q+2) (by omega), B.pressure_eq_realization] at hp' | |
| 137 | + change weightedNorm period 6 N (B.reducedRadius period) | |
| 138 | + (((A.atOrder period (q+2)).coefficients period (by omega)).apply t | |
| 139 | + ((B.fieldTower period).realization (q+3) t)) ≤ _ at ht' | |
| 140 | + rw [B.source_eq_timeDerivativeTower period (q+2) (by omega)] at ht' | |
| 141 | + constructor | |
| 142 | + · rw [weightedNorm_unique period 6 N (B.reducedRadius period) _ | |
| 143 | + ((B.pressureTower period).realization (q+2) t) | |
| 144 | + (by rw [(B.pressureTower period).value_eq, (B.pressureTower period).value_eq]) hs (by omega)] | |
| 145 | + exact hp'.trans_eq (by ring) | |
| 146 | + · rw [weightedNorm_unique period 6 N (B.reducedRadius period) _ | |
| 147 | + ((B.timeDerivativeTower period).realization (q+2) t) | |
| 148 | + (by rw [(B.timeDerivativeTower period).value_eq, (B.timeDerivativeTower period).value_eq]) hs (by omega)] | |
| 149 | + exact ht'.trans_eq (by ring) | |
| 150 | + | |
| 151 | +end EulerAllOrderDriftCorrection | |
+95 −0 Euler/AllOrderLiftedCorrection.lean added View file
| @@ -0,0 +1,95 @@ | ||
| 1 | +import Euler.AllOrderCorrectionFamily | |
| 2 | +import Euler.ClassicalDivergence | |
| 3 | + | |
| 4 | +/-! A common actual lifted inviscid correction with genuine jets of every order and smooth spatial representatives. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerAllOrderLiftedCorrection | |
| 9 | + | |
| 10 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 11 | + EulerSpatialSobolevInverse EulerCorrectionOperators EulerAllOrderCorrectionData | |
| 12 | + EulerAllOrderCorrectionBudget EulerAllOrderCorrectionFamily EulerVolterraConvolution | |
| 13 | + EulerMetricTransport EulerLiftedCurl EulerSmoothPressureRepresentative EulerClassicalDivergence EulerTransportDerivatives | |
| 14 | + EulerGevreyMetricEstimate | |
| 15 | +open scoped Topology ContDiff | |
| 16 | + | |
| 17 | +variable (period : ℝ) [Fact (0 < period)] | |
| 18 | + | |
| 19 | +/-- The independently constructed finite-order corrections all represent the same actual L² field. -/ | |
| 20 | +theorem solution_value_base {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 21 | + (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : | |
| 22 | + value period (solution period hT A B q hq t) = value period (solution period hT A B 6 le_rfl t) := by | |
| 23 | + exact Nat.le_induction (P := fun n hn => value period (solution period hT A B n hn t) = | |
| 24 | + value period (solution period hT A B 6 le_rfl t)) rfl | |
| 25 | + (fun n hn ih => (solution_value_succ period hT A B n hn t).trans ih) q hq | |
| 26 | + | |
| 27 | +/-- The common continuous L² path constructed from the genuine finite-order nonlinear solves. -/ | |
| 28 | +def commonPath {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) : | |
| 29 | + C(Icc (0 : ℝ) T,LiftL2 period) := | |
| 30 | + (valueOperator period 7).compLeftContinuous ℝ (Icc (0 : ℝ) T) (solution period hT A B 6 le_rfl) | |
| 31 | + | |
| 32 | +/-- Every finite-order constructed path realizes the common actual L² path. -/ | |
| 33 | +theorem solution_value_common {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 34 | + (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : | |
| 35 | + value period (solution period hT A B q hq t)=commonPath period hT A B t := | |
| 36 | + solution_value_base period hT A B q hq t | |
| 37 | + | |
| 38 | +/-- The common constructed correction has zero initial trace. -/ | |
| 39 | +theorem commonPath_initial {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) : | |
| 40 | + commonPath period hT A B ⟨0,le_rfl,hT.le⟩=0 := by | |
| 41 | + change value period (solution period hT A B 6 le_rfl ⟨0,le_rfl,hT.le⟩)=0 | |
| 42 | + rw [solution_initial] | |
| 43 | + rfl | |
| 44 | + | |
| 45 | +/-- The common path belongs to the genuine closed lifted divergence-free subspace. -/ | |
| 46 | +theorem commonPath_divergence {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 47 | + (t : Icc (0 : ℝ) T) : commonPath period hT A B t ∈ divergenceFreeSpace period A.κ A.direction := | |
| 48 | + solution_divergence period hT A B 6 le_rfl t | |
| 49 | + | |
| 50 | +/-- An actual strong derivative jet of any prescribed order for the common nonlinear solution. -/ | |
| 51 | +def commonJet {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 52 | + (n : ℕ) (t : Icc (0 : ℝ) T) : SpatialJet period standardDirection n (commonPath period hT A B t) := by | |
| 53 | + rw [← solution_value_common period hT A B (n+6) (by omega) t] | |
| 54 | + exact EulerH6Pressure.SpatialJet.restrict | |
| 55 | + (toJet period (solution period hT A B (n+6) (by omega) t)) n (by omega) | |
| 56 | + | |
| 57 | +/-- Every external cutoff of the common solution retains the actual uniform Gevrey metric bound. -/ | |
| 58 | +theorem commonPath_energy {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 59 | + (P : ℕ) (t : Icc (0 : ℝ) T) : | |
| 60 | + energyNorm period P (by omega : P+6 ≤ (P+6)+1) (B.radius t) (B.metric.operatorPath period t) | |
| 61 | + (solution period hT A B (P+6) (by omega) t) ≤ B.delta/2 := | |
| 62 | + solution_energy period hT A B (P+6) (by omega) P (by omega) (by omega) t | |
| 63 | + | |
| 64 | +/-- The common L² path satisfies the actual nonlinear inviscid correction equation. -/ | |
| 65 | +theorem commonPath_hasDerivAt {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 66 | + (t : ℝ) (ht : t ∈ Ioo 0 T) : | |
| 67 | + HasDerivAt (EulerVolterraConvolution.extendPath T hT.le (commonPath period hT A B)) | |
| 68 | + (value period (((A.atOrder period 6).coefficients period le_rfl).apply | |
| 69 | + ⟨t,ht.1.le,ht.2.le⟩ (solution period hT A B 6 le_rfl ⟨t,ht.1.le,ht.2.le⟩))) t := | |
| 70 | + solution_hasDerivAt period hT A B 6 le_rfl t ht | |
| 71 | + | |
| 72 | +/-- Actual coherent all-order data and their concrete budgets construct a common inviscid correction with genuine jets at every order and spatially smooth, pointwise divergence-free representatives. | |
| 73 | +No correction solution, energy estimate, convergence, or all-order compatibility is assumed. -/ | |
| 74 | +theorem exists_smooth_lifted_correction {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) : | |
| 75 | + ∃ (U : C(Icc (0 : ℝ) T,LiftL2 period)) (g : Icc (0 : ℝ) T → LiftDomain period → Vector3), | |
| 76 | + U ⟨0,le_rfl,hT.le⟩=0 ∧ | |
| 77 | + (∀ n t, Nonempty (SpatialJet period standardDirection n (U t))) ∧ | |
| 78 | + (∀ q hq t, value period (solution period hT A B q hq t)=U t) ∧ | |
| 79 | + (∀ t x, ContDiff ℝ ∞ (localFieldLift period (g t) x)) ∧ | |
| 80 | + (∀ t, (U t : LiftDomain period → Vector3) =ᵐ[liftMeasure period] g t) ∧ | |
| 81 | + (∀ t x, (∑ i : Fin 3, (fieldDerivative period (coordinateDirection A.κ A.direction i) (g t) x) i)=0) ∧ | |
| 82 | + ∀ t (ht : t ∈ Ioo 0 T), HasDerivAt (extendPath T hT.le U) | |
| 83 | + (value period (((A.atOrder period 6).coefficients period le_rfl).apply | |
| 84 | + ⟨t,ht.1.le,ht.2.le⟩ (solution period hT A B 6 le_rfl ⟨t,ht.1.le,ht.2.le⟩))) t := by | |
| 85 | + have hs (t : Icc (0 : ℝ) T) := exists_smooth_representative period (commonPath period hT A B t) | |
| 86 | + (fun n => commonJet period hT A B n t) | |
| 87 | + choose g hg ha using hs | |
| 88 | + refine ⟨commonPath period hT A B,g,commonPath_initial period hT A B, | |
| 89 | + (fun n t => ⟨commonJet period hT A B n t⟩),solution_value_common period hT A B,hg,ha,?_, | |
| 90 | + commonPath_hasDerivAt period hT A B⟩ | |
| 91 | + intro t | |
| 92 | + exact divergenceFree_classical_divergence_zero period A.κ A.direction (commonPath period hT A B t) | |
| 93 | + (commonPath_divergence period hT A B t) (g t) (ha t) (hg t) | |
| 94 | + | |
| 95 | +end EulerAllOrderLiftedCorrection | |
+88 −0 Euler/AllOrderPressureCoherence.lean added View file
| @@ -0,0 +1,88 @@ | ||
| 1 | +import Euler.AllOrderLiftedCorrection | |
| 2 | +import Euler.CorrectionSourceRestriction | |
| 3 | + | |
| 4 | +/-! The actual nonlinear source and signed coercive pressure agree across the constructed Sobolev solutions. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerAllOrderPressureCoherence | |
| 9 | + | |
| 10 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace | |
| 11 | + EulerCorrectionOperators EulerCorrectionLowerData EulerCorrectionSourceRestriction | |
| 12 | + EulerAllOrderCorrectionData EulerAllOrderCorrectionBudget EulerAllOrderCorrectionFamily | |
| 13 | + EulerAllOrderLiftedCorrection EulerSobolevCoefficientPressure | |
| 14 | +open scoped Topology | |
| 15 | + | |
| 16 | +variable (period : ℝ) [Fact (0 < period)] | |
| 17 | + | |
| 18 | +/-- The actual continuous nonlinear raw source at a finite Sobolev order. -/ | |
| 19 | +def rawSourcePath {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 20 | + (q : ℕ) (hq : 6 ≤ q) : C(Icc (0 : ℝ) T,SobolevSpace period q) := | |
| 21 | + rawPath period hq (A.atOrder period q) (solution period hT A B q hq) | |
| 22 | + | |
| 23 | +/-- The actual continuous signed coercive pressure at a finite Sobolev order. -/ | |
| 24 | +def signedPressurePath {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 25 | + (q : ℕ) (hq : 6 ≤ q) : C(Icc (0 : ℝ) T,SobolevSpace period q) := | |
| 26 | + pressurePath period hq (A.atOrder period q) (solution period hT A B q hq) | |
| 27 | + | |
| 28 | +/-- The genuine raw sources of the constructed solutions restrict exactly across adjacent orders. -/ | |
| 29 | +theorem rawSourcePath_truncate {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 30 | + (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : | |
| 31 | + truncateOperator period q (rawSourcePath period hT A B (q+1) (hq.trans (Nat.le_succ q)) t) = | |
| 32 | + rawSourcePath period hT A B q hq t := by | |
| 33 | + have h := truncate_rawSource period hq (A.atOrder period (q+1)) | |
| 34 | + (A.metric.jet q) (A.linear.jet q) (fun i => (A.quadratic i).jet q) | |
| 35 | + (A.metric.continuous q) (A.linear.continuous q) (fun i => (A.quadratic i).continuous q) | |
| 36 | + t (solution period hT A B (q+1) (hq.trans (Nat.le_succ q)) t) | |
| 37 | + rw [A.lower_atOrder period q] at h | |
| 38 | + have he := congrArg (fun f => f t) (solution_compatible period hT A B q hq) | |
| 39 | + change truncateOperator period (q+1) (solution period hT A B (q+1) (hq.trans (Nat.le_succ q)) t)= | |
| 40 | + solution period hT A B q hq t at he | |
| 41 | + rw [he] at h | |
| 42 | + exact h | |
| 43 | + | |
| 44 | +/-- Adjacent genuine raw sources represent the same actual L² field. -/ | |
| 45 | +theorem rawSourcePath_value_succ {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 46 | + (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : | |
| 47 | + value period (rawSourcePath period hT A B (q+1) (hq.trans (Nat.le_succ q)) t)= | |
| 48 | + value period (rawSourcePath period hT A B q hq t) := | |
| 49 | + congrArg (value period (q := q)) (rawSourcePath_truncate period hT A B q hq t) | |
| 50 | + | |
| 51 | +/-- The actual signed coercive pressures represent the same L² field at adjacent Sobolev orders. -/ | |
| 52 | +theorem signedPressurePath_value_succ {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 53 | + (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : | |
| 54 | + value period (signedPressurePath period hT A B (q+1) (hq.trans (Nat.le_succ q)) t)= | |
| 55 | + value period (signedPressurePath period hT A B q hq t) := by | |
| 56 | + change -value period (pressureSobolevOperator period (A.metric.jet (q+1) t) A.κ A.direction | |
| 57 | + A.coercivity A.coercivity_pos (A.metric_pos t) | |
| 58 | + (rawSourcePath period hT A B (q+1) (hq.trans (Nat.le_succ q)) t)) = | |
| 59 | + -value period (pressureSobolevOperator period (A.metric.jet q t) A.κ A.direction | |
| 60 | + A.coercivity A.coercivity_pos (A.metric_pos t) (rawSourcePath period hT A B q hq t)) | |
| 61 | + rw [pressureSobolevOperator_value,pressureSobolevOperator_value,rawSourcePath_value_succ] | |
| 62 | + | |
| 63 | +/-- Every finite-order signed pressure represents the same actual base pressure. -/ | |
| 64 | +theorem signedPressurePath_value_base {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 65 | + (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : | |
| 66 | + value period (signedPressurePath period hT A B q hq t)= | |
| 67 | + value period (signedPressurePath period hT A B 6 le_rfl t) := by | |
| 68 | + exact Nat.le_induction (P := fun n hn => value period (signedPressurePath period hT A B n hn t)= | |
| 69 | + value period (signedPressurePath period hT A B 6 le_rfl t)) rfl | |
| 70 | + (fun n hn ih => (signedPressurePath_value_succ period hT A B n hn t).trans ih) q hq | |
| 71 | + | |
| 72 | +/-- The common actual signed pressure is a continuous L² path. -/ | |
| 73 | +def commonPressure {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) : | |
| 74 | + C(Icc (0 : ℝ) T,LiftL2 period) := | |
| 75 | + (valueOperator period 6).compLeftContinuous ℝ (Icc (0 : ℝ) T) (signedPressurePath period hT A B 6 le_rfl) | |
| 76 | + | |
| 77 | +/-- Every finite-order pressure realizes the common pressure field. -/ | |
| 78 | +theorem signedPressurePath_value_common {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 79 | + (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : | |
| 80 | + value period (signedPressurePath period hT A B q hq t)=commonPressure period hT A B t := | |
| 81 | + signedPressurePath_value_base period hT A B q hq t | |
| 82 | + | |
| 83 | +/-- The common actual correction pressure belongs to the closed lifted gradient subspace. -/ | |
| 84 | +theorem commonPressure_gradient {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 85 | + (t : Icc (0 : ℝ) T) : commonPressure period hT A B t ∈ gradientSpace period A.κ A.direction := | |
| 86 | + (A.atOrder period 6).pressure_mem_gradient period le_rfl t (solution period hT A B 6 le_rfl t) | |
| 87 | + | |
| 88 | +end EulerAllOrderPressureCoherence | |
+62 −0 Euler/AllOrderSmoothPressure.lean added View file
| @@ -0,0 +1,62 @@ | ||
| 1 | +import Euler.AllOrderPressureCoherence | |
| 2 | +import Euler.GraphPressurePotential | |
| 3 | + | |
| 4 | +/-! Smooth actual pressure and graph potentials of the constructed common inviscid correction. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerAllOrderSmoothPressure | |
| 9 | + | |
| 10 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 11 | + EulerSpatialSobolevInverse EulerCorrectionOperators EulerAllOrderCorrectionData | |
| 12 | + EulerAllOrderCorrectionBudget EulerAllOrderCorrectionFamily EulerAllOrderLiftedCorrection | |
| 13 | + EulerAllOrderPressureCoherence EulerVolterraConvolution EulerMetricTransport | |
| 14 | + EulerSmoothPressureRepresentative EulerGraphPressurePotential | |
| 15 | +open scoped Topology ContDiff | |
| 16 | + | |
| 17 | +variable (period : ℝ) [Fact (0 < period)] | |
| 18 | + | |
| 19 | +/-- Every strong derivative order of the common actual signed pressure is supplied by a constructed finite Sobolev realization. -/ | |
| 20 | +def pressureJet {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 21 | + (n : ℕ) (t : Icc (0 : ℝ) T) : SpatialJet period standardDirection n (commonPressure period hT A B t) := by | |
| 22 | + rw [← signedPressurePath_value_common period hT A B (n+6) (by omega) t] | |
| 23 | + exact EulerH6Pressure.SpatialJet.restrict | |
| 24 | + (toJet period (signedPressurePath period hT A B (n+6) (by omega) t)) n (by omega) | |
| 25 | + | |
| 26 | +/-- The common nonlinear correction satisfies its actual signed-pressure equation in L². -/ | |
| 27 | +theorem commonPath_pressure_equation {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 28 | + (t : ℝ) (ht : t ∈ Ioo 0 T) : | |
| 29 | + HasDerivAt (extendPath T hT.le (commonPath period hT A B)) | |
| 30 | + (-value period (rawSourcePath period hT A B 6 le_rfl ⟨t,ht.1.le,ht.2.le⟩)- | |
| 31 | + (A.metric.coefficient ⟨t,ht.1.le,ht.2.le⟩).operator | |
| 32 | + (commonPressure period hT A B ⟨t,ht.1.le,ht.2.le⟩)) t := by | |
| 33 | + have h := commonPath_hasDerivAt period hT A B t ht | |
| 34 | + rw [(A.atOrder period 6).source_value period le_rfl] at h | |
| 35 | + exact h | |
| 36 | + | |
| 37 | +/-- The constructed signed pressure has a genuine smooth spatial representative at every time. -/ | |
| 38 | +theorem exists_smooth_signed_pressure {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) : | |
| 39 | + ∃ p : Icc (0 : ℝ) T → LiftDomain period → Vector3, | |
| 40 | + (∀ t x, ContDiff ℝ ∞ (localFieldLift period (p t) x)) ∧ | |
| 41 | + ∀ t, (commonPressure period hT A B t : LiftDomain period → Vector3) =ᵐ[liftMeasure period] p t := by | |
| 42 | + have h (t : Icc (0 : ℝ) T) := exists_smooth_representative period (commonPressure period hT A B t) | |
| 43 | + (fun n => pressureJet period hT A B n t) | |
| 44 | + choose p hp ha using h | |
| 45 | + exact ⟨p,hp,ha⟩ | |
| 46 | + | |
| 47 | +/-- The actual signed correction pressure yields a smooth scalar potential on every reciprocal-frequency graph. | |
| 48 | +The common pressure, all its strong jets, its smooth representative and its closed-gradient property are constructed internally. -/ | |
| 49 | +theorem exists_smooth_pressure_graph {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 50 | + (k : ℝ) (hk : k*A.κ=1) : | |
| 51 | + ∃ (p : Icc (0 : ℝ) T → LiftDomain period → Vector3) (Q : Icc (0 : ℝ) T → Vector3 → ℝ), | |
| 52 | + (∀ t x, ContDiff ℝ ∞ (localFieldLift period (p t) x)) ∧ | |
| 53 | + (∀ t, (commonPressure period hT A B t : LiftDomain period → Vector3) =ᵐ[liftMeasure period] p t) ∧ | |
| 54 | + (∀ t, ContDiff ℝ ∞ (Q t)) ∧ | |
| 55 | + ∀ t x, gradient (Q t) x=A.κ • p t (cylinderGraph period k A.direction x) := by | |
| 56 | + obtain ⟨p,hp,ha⟩ := exists_smooth_signed_pressure period hT A B | |
| 57 | + have hQ (t : Icc (0 : ℝ) T) := gradientSpace_has_graph_potential period A.κ k hk A.direction | |
| 58 | + (commonPressure period hT A B t) (commonPressure_gradient period hT A B t) (p t) (ha t) (hp t) | |
| 59 | + choose Q hQs hQ using hQ | |
| 60 | + exact ⟨p,Q,hp,ha,hQs,hQ⟩ | |
| 61 | + | |
| 62 | +end EulerAllOrderSmoothPressure | |
+101 −0 Euler/AngleMeanZeroPrimitive.lean added View file
| @@ -0,0 +1,101 @@ | ||
| 1 | +import Euler.TerminalTimePrimitive | |
| 2 | +import Mathlib.MeasureTheory.Integral.IntervalIntegral.Periodic | |
| 3 | +import Mathlib.Analysis.Calculus.MeanValue | |
| 4 | + | |
| 5 | +/-! | |
| 6 | +# The actual mean-zero periodic angular primitive | |
| 7 | + | |
| 8 | +This is an explicit Bochner integral, valid also for a Hilbert-valued angle | |
| 9 | +curve such as a time-L² pressure coefficient. Periodicity is proved from the | |
| 10 | +zero integral of the forcing; subtracting the actual mean fixes the constant. | |
| 11 | +-/ | |
| 12 | + | |
| 13 | +noncomputable section | |
| 14 | + | |
| 15 | +namespace EulerAngleMeanZeroPrimitive | |
| 16 | + | |
| 17 | +open MeasureTheory Set | |
| 18 | + | |
| 19 | +variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] | |
| 20 | + | |
| 21 | +/-- The raw angular primitive, anchored at angle zero. -/ | |
| 22 | +def rawPrimitive (f : ℝ → E) (θ : ℝ) : E := ∫ s in 0..θ, f s | |
| 23 | + | |
| 24 | +/-- The actual angular primitive with its mean over one period removed. -/ | |
| 25 | +def primitive (P : ℝ) (f : ℝ → E) (θ : ℝ) : E := | |
| 26 | + rawPrimitive f θ - P⁻¹ • (∫ s in 0..P, rawPrimitive f s) | |
| 27 | + | |
| 28 | +/-- The explicit integral has the actual derivative prescribed by the forcing. -/ | |
| 29 | +theorem rawPrimitive_hasDerivAt (f : ℝ → E) (hf : Continuous f) (θ : ℝ) : | |
| 30 | + HasDerivAt (rawPrimitive f) (f θ) θ := | |
| 31 | + intervalIntegral.integral_hasDerivAt_right (hf.intervalIntegrable _ _) | |
| 32 | + hf.aestronglyMeasurable.stronglyMeasurableAtFilter hf.continuousAt | |
| 33 | + | |
| 34 | +/-- The raw angular primitive is continuous. -/ | |
| 35 | +theorem rawPrimitive_continuous (f : ℝ → E) (hf : Continuous f) : Continuous (rawPrimitive f) := | |
| 36 | + (show Differentiable ℝ (rawPrimitive f) from | |
| 37 | + fun θ => (rawPrimitive_hasDerivAt f hf θ).differentiableAt).continuous | |
| 38 | + | |
| 39 | +/-- Removing the mean does not change the actual angular derivative. -/ | |
| 40 | +theorem primitive_hasDerivAt (P : ℝ) (f : ℝ → E) (hf : Continuous f) (θ : ℝ) : | |
| 41 | + HasDerivAt (primitive P f) (f θ) θ := | |
| 42 | + (rawPrimitive_hasDerivAt f hf θ).sub_const _ | |
| 43 | + | |
| 44 | +/-- The normalized angular primitive is continuous. -/ | |
| 45 | +theorem primitive_continuous (P : ℝ) (f : ℝ → E) (hf : Continuous f) : | |
| 46 | + Continuous (primitive P f) := | |
| 47 | + (rawPrimitive_continuous f hf).sub continuous_const | |
| 48 | + | |
| 49 | +omit [CompleteSpace E] in | |
| 50 | +/-- Zero angular mean of the forcing makes the raw integral periodic. -/ | |
| 51 | +theorem rawPrimitive_periodic (P : ℝ) (f : ℝ → E) (hf : Continuous f) | |
| 52 | + (hper : Function.Periodic f P) (hmean : ∫ θ in 0..P, f θ = 0) : | |
| 53 | + Function.Periodic (rawPrimitive f) P := by | |
| 54 | + intro θ | |
| 55 | + unfold rawPrimitive | |
| 56 | + rw [hper.intervalIntegral_add_eq_add 0 θ (fun a b => hf.intervalIntegrable a b), | |
| 57 | + zero_add, hmean, add_zero] | |
| 58 | + | |
| 59 | +omit [CompleteSpace E] in | |
| 60 | +/-- The normalized angular primitive is genuinely periodic. -/ | |
| 61 | +theorem primitive_periodic (P : ℝ) (f : ℝ → E) (hf : Continuous f) | |
| 62 | + (hper : Function.Periodic f P) (hmean : ∫ θ in 0..P, f θ = 0) : | |
| 63 | + Function.Periodic (primitive P f) P := by | |
| 64 | + intro θ | |
| 65 | + simp only [primitive, rawPrimitive_periodic P f hf hper hmean θ] | |
| 66 | + | |
| 67 | +/-- The normalization gives exactly zero integral over one angular period. -/ | |
| 68 | +theorem primitive_mean_zero (P : ℝ) (hP : P ≠ 0) (f : ℝ → E) (hf : Continuous f) : | |
| 69 | + (∫ θ in 0..P, primitive P f θ) = 0 := by | |
| 70 | + unfold primitive | |
| 71 | + rw [intervalIntegral.integral_sub ((rawPrimitive_continuous f hf).intervalIntegrable _ _) | |
| 72 | + intervalIntegrable_const, intervalIntegral.integral_const, sub_zero, smul_smul, | |
| 73 | + mul_inv_cancel₀ hP, one_smul, sub_self] | |
| 74 | + | |
| 75 | +/-- The zero-mean angular primitive is unique among genuine differentiable primitives. -/ | |
| 76 | +theorem primitive_unique (P : ℝ) (hP : P ≠ 0) (f : ℝ → E) (hf : Continuous f) | |
| 77 | + (g : ℝ → E) (hg : ∀ θ, HasDerivAt g (f θ) θ) | |
| 78 | + (hmean : ∫ θ in 0..P, g θ = 0) : g = primitive P f := by | |
| 79 | + let d := fun θ => g θ - primitive P f θ | |
| 80 | + have hd : ∀ θ, HasDerivAt d 0 θ := by | |
| 81 | + intro θ | |
| 82 | + change HasDerivAt (g - primitive P f) 0 θ | |
| 83 | + simpa only [sub_self] using (hg θ).sub (primitive_hasDerivAt P f hf θ) | |
| 84 | + have hconst : ∀ θ, d θ = d 0 := | |
| 85 | + fun θ => is_const_of_deriv_eq_zero (fun x => (hd x).differentiableAt) | |
| 86 | + (fun x => (hd x).deriv) θ 0 | |
| 87 | + have hdmean : (∫ θ in 0..P, d θ) = 0 := by | |
| 88 | + change (∫ θ in 0..P, g θ - primitive P f θ) = 0 | |
| 89 | + rw [intervalIntegral.integral_sub | |
| 90 | + ((show Continuous g from (show Differentiable ℝ g from fun x => (hg x).differentiableAt).continuous).intervalIntegrable _ _) | |
| 91 | + ((primitive_continuous P f hf).intervalIntegrable _ _), hmean, | |
| 92 | + primitive_mean_zero P hP f hf, sub_self] | |
| 93 | + have hz : d 0 = 0 := by | |
| 94 | + have hi : (∫ θ in 0..P, d θ) = P • d 0 := by | |
| 95 | + simp only [hconst, intervalIntegral.integral_const, sub_zero] | |
| 96 | + rw [hi] at hdmean | |
| 97 | + exact (smul_eq_zero.mp hdmean).resolve_left hP | |
| 98 | + funext θ | |
| 99 | + exact sub_eq_zero.mp ((hconst θ).trans hz) | |
| 100 | + | |
| 101 | +end EulerAngleMeanZeroPrimitive | |
+42 −0 Euler/AnglePrimitiveBounds.lean added View file
| @@ -0,0 +1,42 @@ | ||
| 1 | +import Euler.AngleMeanZeroPrimitive | |
| 2 | + | |
| 3 | +/-! Uniform bounds for the actual mean-zero angular primitive. -/ | |
| 4 | + | |
| 5 | +noncomputable section | |
| 6 | + | |
| 7 | +namespace EulerAngleMeanZeroPrimitive | |
| 8 | + | |
| 9 | +open Set MeasureTheory | |
| 10 | + | |
| 11 | +variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] | |
| 12 | + | |
| 13 | +omit [CompleteSpace E] in | |
| 14 | +theorem rawPrimitive_bound (P M : ℝ) (hM : 0 ≤ M) (f : ℝ → E) | |
| 15 | + (hf : ∀ θ ∈ Icc 0 P, ‖f θ‖ ≤ M) (θ : ℝ) (hθ : θ ∈ Icc 0 P) : | |
| 16 | + ‖rawPrimitive f θ‖ ≤ M*P := by | |
| 17 | + have h := intervalIntegral.norm_integral_le_of_norm_le_const | |
| 18 | + (a := (0 : ℝ)) (b := θ) (f := f) (C := M) (fun x hx => hf x (by | |
| 19 | + rw [uIoc_of_le hθ.1] at hx | |
| 20 | + exact ⟨hx.1.le, hx.2.trans hθ.2⟩)) | |
| 21 | + simp only [sub_zero, abs_of_nonneg hθ.1] at h | |
| 22 | + exact h.trans (mul_le_mul_of_nonneg_left hθ.2 hM) | |
| 23 | + | |
| 24 | +omit [CompleteSpace E] in | |
| 25 | +theorem primitive_bound (P M : ℝ) (hP : 0 < P) (hM : 0 ≤ M) (f : ℝ → E) | |
| 26 | + (hf : ∀ θ ∈ Icc 0 P, ‖f θ‖ ≤ M) (θ : ℝ) (hθ : θ ∈ Icc 0 P) : | |
| 27 | + ‖primitive P f θ‖ ≤ 2*P*M := by | |
| 28 | + have hraw := rawPrimitive_bound P M hM f hf | |
| 29 | + have hint : ‖∫ s in 0..P, rawPrimitive f s‖ ≤ (M*P)*P := by | |
| 30 | + have h := intervalIntegral.norm_integral_le_of_norm_le_const | |
| 31 | + (a := (0 : ℝ)) (b := P) (f := rawPrimitive f) (C := M*P) (fun x hx => hraw x (by | |
| 32 | + rw [uIoc_of_le hP.le] at hx | |
| 33 | + exact ⟨hx.1.le, hx.2⟩)) | |
| 34 | + simpa only [sub_zero, abs_of_pos hP] using h | |
| 35 | + have hmean : ‖P⁻¹ • (∫ s in 0..P, rawPrimitive f s)‖ ≤ M*P := by | |
| 36 | + rw [norm_smul, Real.norm_eq_abs, abs_of_pos (inv_pos.mpr hP)] | |
| 37 | + calc | |
| 38 | + _ ≤ P⁻¹*((M*P)*P) := mul_le_mul_of_nonneg_left hint (inv_nonneg.mpr hP.le) | |
| 39 | + _ = M*P := by field_simp | |
| 40 | + exact (norm_sub_le _ _).trans (by linarith [hraw θ hθ, hmean]) | |
| 41 | + | |
| 42 | +end EulerAngleMeanZeroPrimitive | |
+42 −0 Euler/AnglePrimitiveKernel.lean added View file
| @@ -0,0 +1,42 @@ | ||
| 1 | +import Euler.AnglePrimitiveTranslation | |
| 2 | + | |
| 3 | +/-! A translation-kernel formula for the literal normalized periodic primitive. -/ | |
| 4 | + | |
| 5 | +noncomputable section | |
| 6 | + | |
| 7 | +namespace EulerAngleMeanZeroPrimitive | |
| 8 | + | |
| 9 | +open Set MeasureTheory | |
| 10 | + | |
| 11 | +variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] | |
| 12 | + | |
| 13 | +/-- This formula realizes the angular primitive as an integral of translations. -/ | |
| 14 | +theorem primitive_eq_translation_kernel (P : ℝ) (hP : P ≠ 0) (f : ℝ → E) | |
| 15 | + (hf : Continuous f) (hper : Function.Periodic f P) | |
| 16 | + (hmean : (∫ s in (0 : ℝ)..P, f s)=0) (θ : ℝ) : | |
| 17 | + primitive P f θ = P⁻¹ • (∫ s in (0 : ℝ)..P, s • f (θ+s)) := by | |
| 18 | + let q := primitive P f | |
| 19 | + have hq : Continuous q := primitive_continuous P f hf | |
| 20 | + have hqp : Function.Periodic q P := primitive_periodic P f hf hper hmean | |
| 21 | + have hd (s : ℝ) : HasDerivAt (fun r => r • q (θ+r)) | |
| 22 | + (q (θ+s)+s • f (θ+s)) s := by | |
| 23 | + have hq' := (primitive_hasDerivAt P f hf (θ+s)).scomp s ((hasDerivAt_id s).const_add θ) | |
| 24 | + simpa only [Function.comp_def, id_eq, one_smul, Pi.smul_def', q, add_comm] using | |
| 25 | + (hasDerivAt_id s).smul hq' | |
| 26 | + have hqc : Continuous (fun s => q (θ+s)) := hq.comp (continuous_const.add continuous_id) | |
| 27 | + have hfc : Continuous (fun s => s • f (θ+s)) := | |
| 28 | + continuous_id.smul (hf.comp (continuous_const.add continuous_id)) | |
| 29 | + have hi := intervalIntegral.integral_eq_sub_of_hasDerivAt (fun s _ => hd s) | |
| 30 | + ((hqc.add hfc).intervalIntegrable 0 P) | |
| 31 | + rw [intervalIntegral.integral_add (hqc.intervalIntegrable 0 P) (hfc.intervalIntegrable 0 P)] at hi | |
| 32 | + have hzero : (∫ s in (0 : ℝ)..P, q (θ+s))=0 := by | |
| 33 | + rw [intervalIntegral.integral_comp_add_left] | |
| 34 | + have hp := hqp.intervalIntegral_add_eq θ 0 | |
| 35 | + rw [zero_add] at hp | |
| 36 | + rw [add_zero, hp] | |
| 37 | + exact primitive_mean_zero P hP f hf | |
| 38 | + rw [hzero, zero_add, hqp θ, zero_smul, sub_zero] at hi | |
| 39 | + change q θ = _ | |
| 40 | + rw [hi, smul_smul, inv_mul_cancel₀ hP, one_smul] | |
| 41 | + | |
| 42 | +end EulerAngleMeanZeroPrimitive | |
+25 −0 Euler/AnglePrimitiveMap.lean added View file
| @@ -0,0 +1,25 @@ | ||
| 1 | +import Euler.AngleMeanZeroPrimitive | |
| 2 | + | |
| 3 | +/-! Bounded linear maps commute with the literal normalized angular integral. -/ | |
| 4 | + | |
| 5 | +noncomputable section | |
| 6 | + | |
| 7 | +namespace EulerAngleMeanZeroPrimitive | |
| 8 | + | |
| 9 | +open MeasureTheory ContinuousLinearMap | |
| 10 | + | |
| 11 | +variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] | |
| 12 | + [NormedAddCommGroup F] [NormedSpace ℝ F] [CompleteSpace F] | |
| 13 | + | |
| 14 | +theorem rawPrimitive_map (L : E →L[ℝ] F) (f : ℝ → E) (hf : Continuous f) (θ : ℝ) : | |
| 15 | + L (rawPrimitive f θ) = rawPrimitive (fun s => L (f s)) θ := | |
| 16 | + (L.intervalIntegral_comp_comm (hf.intervalIntegrable 0 θ)).symm | |
| 17 | + | |
| 18 | +theorem primitive_map (L : E →L[ℝ] F) (P : ℝ) (f : ℝ → E) (hf : Continuous f) (θ : ℝ) : | |
| 19 | + L (primitive P f θ) = primitive P (fun s => L (f s)) θ := by | |
| 20 | + unfold primitive | |
| 21 | + rw [map_sub,map_smul,← L.intervalIntegral_comp_comm | |
| 22 | + ((rawPrimitive_continuous f hf).intervalIntegrable 0 P),rawPrimitive_map L f hf θ] | |
| 23 | + simp only [rawPrimitive_map L f hf] | |
| 24 | + | |
| 25 | +end EulerAngleMeanZeroPrimitive | |
+34 −0 Euler/AnglePrimitiveParity.lean added View file
| @@ -0,0 +1,34 @@ | ||
| 1 | +import Euler.AnglePrimitiveTranslation | |
| 2 | + | |
| 3 | +/-! The normalized angular primitive reverses joint reflection parity. -/ | |
| 4 | + | |
| 5 | +noncomputable section | |
| 6 | + | |
| 7 | +namespace EulerAngleMeanZeroPrimitive | |
| 8 | + | |
| 9 | +open MeasureTheory | |
| 10 | + | |
| 11 | +variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] | |
| 12 | + | |
| 13 | +omit [CompleteSpace E] in | |
| 14 | +theorem primitive_neg (P : ℝ) (f : ℝ → E) : | |
| 15 | + primitive P (fun θ => -f θ)=fun θ => -primitive P f θ := by | |
| 16 | + funext θ | |
| 17 | + simp only [primitive, rawPrimitive, intervalIntegral.integral_neg, smul_neg] | |
| 18 | + abel | |
| 19 | + | |
| 20 | +/-- Reflection of the argument contributes one minus sign to a primitive. -/ | |
| 21 | +theorem primitive_reflection (P : ℝ) (hP : P ≠ 0) (f : ℝ → E) (hf : Continuous f) | |
| 22 | + (hper : Function.Periodic f P) (hmean : ∫ θ in 0..P, f θ=0) : | |
| 23 | + primitive P (fun θ => -f (-θ))=fun θ => primitive P f (-θ) := by | |
| 24 | + symm | |
| 25 | + apply primitive_unique P hP (fun θ => -f (-θ)) (hf.comp continuous_neg).neg | |
| 26 | + · intro θ | |
| 27 | + simpa only [Function.comp_def, id_eq, neg_smul, one_smul] using | |
| 28 | + (primitive_hasDerivAt P f hf (-θ)).scomp θ ((hasDerivAt_id θ).neg) | |
| 29 | + · rw [intervalIntegral.integral_comp_neg, neg_zero] | |
| 30 | + have h := (primitive_periodic P f hf hper hmean).intervalIntegral_add_eq (-P) 0 | |
| 31 | + simp only [neg_add_cancel, zero_add] at h | |
| 32 | + exact h.trans (primitive_mean_zero P hP f hf) | |
| 33 | + | |
| 34 | +end EulerAngleMeanZeroPrimitive | |
+69 −0 Euler/AnglePrimitiveSpatialRegularity.lean added View file
| @@ -0,0 +1,69 @@ | ||
| 1 | +import Euler.CompactParameterIntegral | |
| 2 | +import Euler.AngleMeanZeroPrimitive | |
| 3 | + | |
| 4 | +/-! The actual angular primitive is jointly smooth in spatial labels and angle. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +universe u | |
| 9 | + | |
| 10 | +namespace EulerAngleMeanZeroPrimitive | |
| 11 | + | |
| 12 | +open Set MeasureTheory EulerCompactParameterIntegral | |
| 13 | +open scoped ContDiff | |
| 14 | + | |
| 15 | +variable {E : Type u} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] | |
| 16 | + | |
| 17 | +omit [CompleteSpace E] in | |
| 18 | +theorem rawPrimitive_fixed_interval (f : ℝ → E) (θ : ℝ) : | |
| 19 | + rawPrimitive f θ = θ • (∫ s in (0 : ℝ)..1, f (θ*s)) := by | |
| 20 | + simpa only [rawPrimitive, mul_zero, mul_one] using | |
| 21 | + (intervalIntegral.smul_integral_comp_mul_left (a := (0 : ℝ)) (b := 1) f θ).symm | |
| 22 | + | |
| 23 | +variable {X : Type} [NormedAddCommGroup X] [NormedSpace ℝ X] [ProperSpace X] | |
| 24 | + | |
| 25 | +theorem rawPrimitive_joint_contDiff (F : X × ℝ → E) (hF : ContDiff ℝ ∞ F) : | |
| 26 | + ContDiff ℝ ∞ (fun p : X × ℝ => rawPrimitive (fun θ => F (p.1,θ)) p.2) := by | |
| 27 | + have hG : ContDiff ℝ ∞ (fun z : (X × ℝ) × ℝ => F (z.1.1,z.1.2*z.2)) := | |
| 28 | + hF.comp (contDiff_fst.fst.prodMk (contDiff_fst.snd.mul contDiff_snd)) | |
| 29 | + have hi := integral_contDiff 0 1 zero_le_one _ hG | |
| 30 | + simpa only [rawPrimitive_fixed_interval, Pi.smul_def'] using contDiff_snd.smul hi | |
| 31 | + | |
| 32 | +theorem primitive_joint_contDiff (P : ℝ) (hP : 0 ≤ P) (F : X × ℝ → E) | |
| 33 | + (hF : ContDiff ℝ ∞ F) : | |
| 34 | + ContDiff ℝ ∞ (fun p : X × ℝ => primitive P (fun θ => F (p.1,θ)) p.2) := by | |
| 35 | + have hr := rawPrimitive_joint_contDiff F hF | |
| 36 | + have hm := integral_contDiff 0 P hP _ hr | |
| 37 | + exact hr.sub (contDiff_const.smul (hm.comp contDiff_fst)) | |
| 38 | + | |
| 39 | +section Continuous | |
| 40 | + | |
| 41 | +variable {Y : Type*} [TopologicalSpace Y] [FirstCountableTopology Y] [LocallyCompactSpace Y] | |
| 42 | + | |
| 43 | +omit [CompleteSpace E] in | |
| 44 | +theorem rawPrimitive_joint_continuous (F : Y × ℝ → E) (hF : Continuous F) : | |
| 45 | + Continuous (fun p : Y × ℝ => rawPrimitive (fun θ => F (p.1,θ)) p.2) := by | |
| 46 | + have hG : Continuous (fun z : (Y × ℝ) × ℝ => F (z.1.1,z.1.2*z.2)) := | |
| 47 | + hF.comp (continuous_fst.fst.prodMk (continuous_fst.snd.mul continuous_snd)) | |
| 48 | + have hi := continuous_parametric_integral_of_continuous | |
| 49 | + (μ := volume) (f := fun p : Y × ℝ => fun s : ℝ => F (p.1,p.2*s)) hG | |
| 50 | + (isCompact_Icc : IsCompact (Icc (0 : ℝ) 1)) | |
| 51 | + have hi' : Continuous (fun p : Y × ℝ => ∫ s in (0 : ℝ)..1, F (p.1,p.2*s)) := by | |
| 52 | + simpa only [intervalIntegral.integral_of_le (zero_le_one : (0 : ℝ) ≤ 1), | |
| 53 | + integral_Icc_eq_integral_Ioc] using hi | |
| 54 | + simpa only [rawPrimitive_fixed_interval, Pi.smul_def'] using continuous_snd.smul hi' | |
| 55 | + | |
| 56 | +omit [CompleteSpace E] in | |
| 57 | +theorem primitive_joint_continuous (P : ℝ) (hP : 0 ≤ P) (F : Y × ℝ → E) | |
| 58 | + (hF : Continuous F) : | |
| 59 | + Continuous (fun p : Y × ℝ => primitive P (fun θ => F (p.1,θ)) p.2) := by | |
| 60 | + have hr := rawPrimitive_joint_continuous F hF | |
| 61 | + have hm := continuous_parametric_integral_of_continuous | |
| 62 | + (μ := volume) (f := fun y : Y => fun s : ℝ => rawPrimitive (fun θ => F (y,θ)) s) | |
| 63 | + hr (isCompact_Icc : IsCompact (Icc (0 : ℝ) P)) | |
| 64 | + have hm' : Continuous (fun y : Y => ∫ s in (0 : ℝ)..P, rawPrimitive (fun θ => F (y,θ)) s) := by | |
| 65 | + simpa only [intervalIntegral.integral_of_le hP, integral_Icc_eq_integral_Ioc] using hm | |
| 66 | + exact hr.sub (continuous_const.smul (hm'.comp continuous_fst)) | |
| 67 | + | |
| 68 | +end Continuous | |
| 69 | +end EulerAngleMeanZeroPrimitive | |
+26 −0 Euler/AnglePrimitiveTranslation.lean added View file
| @@ -0,0 +1,26 @@ | ||
| 1 | +import Euler.AngleMeanZeroPrimitive | |
| 2 | + | |
| 3 | +/-! The normalized periodic angular primitive commutes with actual angular translation. -/ | |
| 4 | + | |
| 5 | +noncomputable section | |
| 6 | + | |
| 7 | +namespace EulerAngleMeanZeroPrimitive | |
| 8 | + | |
| 9 | +open MeasureTheory | |
| 10 | + | |
| 11 | +variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] | |
| 12 | + | |
| 13 | +theorem primitive_translate (P : ℝ) (hP : P ≠ 0) (f : ℝ → E) (hf : Continuous f) | |
| 14 | + (hper : Function.Periodic f P) (hmean : ∫ θ in 0..P, f θ=0) (a : ℝ) : | |
| 15 | + primitive P (fun θ => f (θ+a))=fun θ => primitive P f (θ+a) := by | |
| 16 | + symm | |
| 17 | + apply primitive_unique P hP (fun θ => f (θ+a)) (hf.comp (continuous_id.add continuous_const)) | |
| 18 | + · intro θ | |
| 19 | + simpa only [one_smul, Function.comp_def, id_eq] using | |
| 20 | + (primitive_hasDerivAt P f hf (θ+a)).scomp θ ((hasDerivAt_id θ).add_const a) | |
| 21 | + · rw [intervalIntegral.integral_comp_add_right] | |
| 22 | + have h := (primitive_periodic P f hf hper hmean).intervalIntegral_add_eq a 0 | |
| 23 | + rw [zero_add] at h | |
| 24 | + rw [zero_add, add_comm P a, h, primitive_mean_zero P hP f hf] | |
| 25 | + | |
| 26 | +end EulerAngleMeanZeroPrimitive | |
+73 −0 Euler/AsymmetricTransport.lean added View file
| @@ -0,0 +1,73 @@ | ||
| 1 | +import Euler.SobolevTransport | |
| 2 | +import Euler.GevreyOrderZero | |
| 3 | + | |
| 4 | +/-! The actual asymmetric Sobolev transport map needed for the parabolic source upgrade. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerAsymmetricTransport | |
| 9 | + | |
| 10 | +open EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerSobolevL2Product EulerSobolevTransport | |
| 11 | + EulerGevreyOrderZero | |
| 12 | +open scoped Topology | |
| 13 | + | |
| 14 | +variable (period : ℝ) [Fact (0 < period)] | |
| 15 | + | |
| 16 | +local instance asymmetricGroup (q : ℕ) : NormedAddCommGroup (SobolevSpace period q) := inferInstance | |
| 17 | +local instance asymmetricSpace (q : ℕ) : NormedSpace ℝ (SobolevSpace period q) := inferInstance | |
| 18 | + | |
| 19 | +/-- Actual transport Hs×H^(s+1)→Hs; the coefficient velocity needs no extra derivative. -/ | |
| 20 | +def asymmetricTransport {s : ℕ} (hs : 6 ≤ s) | |
| 21 | + (L : Fin 4 → Vector3 →L[ℝ] ℝ) (hL : ∀ i, ‖L i‖ ≤ 1) : | |
| 22 | + SobolevSpace period s →L[ℝ] SobolevSpace period (s+1) →L[ℝ] SobolevSpace period s := | |
| 23 | + ∑ i : Fin 4, (productHqBilinear period hs (L i) (hL i)).bilinearComp | |
| 24 | + (ContinuousLinearMap.id ℝ (SobolevSpace period s)) (derivativeOperator period s i) | |
| 25 | + | |
| 26 | +/-- The literal scalar-times-derivative formula of asymmetric transport. -/ | |
| 27 | +theorem asymmetricTransport_apply {s : ℕ} (hs : 6 ≤ s) | |
| 28 | + (L : Fin 4 → Vector3 →L[ℝ] ℝ) (hL : ∀ i, ‖L i‖ ≤ 1) | |
| 29 | + (u : SobolevSpace period s) (v : SobolevSpace period (s+1)) : | |
| 30 | + asymmetricTransport period hs L hL u v = ∑ i : Fin 4, | |
| 31 | + productHq period hs (L i) (hL i) u (derivativeOperator period s i v) := by | |
| 32 | + simp only [asymmetricTransport, sum_apply, ContinuousLinearMap.bilinearComp_apply, | |
| 33 | + ContinuousLinearMap.id_apply, productHqBilinear_apply] | |
| 34 | + | |
| 35 | +/-- The asymmetric map agrees with the already constructed genuine transport on common inputs. -/ | |
| 36 | +theorem asymmetricTransport_eq {s : ℕ} (hs : 6 ≤ s) | |
| 37 | + (L : Fin 4 → Vector3 →L[ℝ] ℝ) (hL : ∀ i, ‖L i‖ ≤ 1) | |
| 38 | + (u v : SobolevSpace period (s+1)) : | |
| 39 | + asymmetricTransport period hs L hL (truncateOperator period s u) v = transportBilinear period hs L hL u v := by | |
| 40 | + rw [asymmetricTransport_apply, transportBilinear_apply] | |
| 41 | + | |
| 42 | +/-- The background-drift expression is the same actual asymmetric transport operator. -/ | |
| 43 | +theorem asymmetricTransport_eq_background {s : ℕ} (hs : 6 ≤ s) | |
| 44 | + (L : Fin 4 → Vector3 →L[ℝ] ℝ) (hL : ∀ i, ‖L i‖ ≤ 1) | |
| 45 | + (u : SobolevSpace period s) (v : SobolevSpace period (s+1)) : | |
| 46 | + asymmetricTransport period hs L hL u v = backgroundDrift period hs L hL v u := by | |
| 47 | + rw [asymmetricTransport_apply] | |
| 48 | + rfl | |
| 49 | + | |
| 50 | +/-- The genuine asymmetric transport bound needed to multiply a bounded Hs path with an L²-time H^(s+1) path. -/ | |
| 51 | +theorem asymmetricTransport_bound {s : ℕ} (hs : 6 ≤ s) | |
| 52 | + (L : Fin 4 → Vector3 →L[ℝ] ℝ) (hL : ∀ i, ‖L i‖ ≤ 1) | |
| 53 | + (u : SobolevSpace period s) (v : SobolevSpace period (s+1)) : | |
| 54 | + ‖asymmetricTransport period hs L hL u v‖ ≤ 4*sobolevProductConstant period s*‖u‖*‖v‖ := by | |
| 55 | + rw [asymmetricTransport_apply] | |
| 56 | + have h := (norm_sum_le _ _).trans (Finset.sum_le_sum (s := (Finset.univ : Finset (Fin 4))) (fun i _ => | |
| 57 | + (productHq_norm period hs (L i) (hL i) u (derivativeOperator period s i v)).trans | |
| 58 | + (mul_le_mul_of_nonneg_left (derivativeOperator_bound period i v) | |
| 59 | + (mul_nonneg (sobolevProductConstant_nonneg period s) (norm_nonneg u))))) | |
| 60 | + exact h.trans_eq (by simp only [Finset.sum_const, Finset.card_univ, Fintype.card_fin, nsmul_eq_mul]; ring) | |
| 61 | + | |
| 62 | +/-- Operator-norm control of the actual asymmetric transport bilinear map. -/ | |
| 63 | +theorem asymmetricTransport_norm {s : ℕ} (hs : 6 ≤ s) | |
| 64 | + (L : Fin 4 → Vector3 →L[ℝ] ℝ) (hL : ∀ i, ‖L i‖ ≤ 1) : | |
| 65 | + ‖asymmetricTransport period hs L hL‖ ≤ 4*sobolevProductConstant period s := by | |
| 66 | + apply ContinuousLinearMap.opNorm_le_bound _ (mul_nonneg (by norm_num) (sobolevProductConstant_nonneg period s)) | |
| 67 | + intro u | |
| 68 | + apply ContinuousLinearMap.opNorm_le_bound _ (mul_nonneg (mul_nonneg (by norm_num) | |
| 69 | + (sobolevProductConstant_nonneg period s)) (norm_nonneg u)) | |
| 70 | + intro v | |
| 71 | + exact asymmetricTransport_bound period hs L hL u v | |
| 72 | + | |
| 73 | +end EulerAsymmetricTransport | |
+103 −0 Euler/BaseEulerDatum.lean added View file
| @@ -0,0 +1,103 @@ | ||
| 1 | +import Euler.GevreyCompactProduct | |
| 2 | +import Euler.PacketPotentialRegularity | |
| 3 | +import Euler.MeanSolenoidalSpace | |
| 4 | + | |
| 5 | +/-! The compact initial velocity in the manuscript is constructed using | |
| 6 | +the fixed factorial-bounded outer cutoff and the actual curl potential. -/ | |
| 7 | + | |
| 8 | +noncomputable section | |
| 9 | + | |
| 10 | +namespace EulerBaseDatum | |
| 11 | + | |
| 12 | +open Set Filter ContinuousLinearMap MeasureTheory EulerSmoothLimit EulerVectorCalculus | |
| 13 | + EulerSpatialCutoffs EulerGevrey EulerGevreyFunctions EulerLpTranslation EulerMeanSolenoidal | |
| 14 | +open scoped ContDiff Topology | |
| 15 | + | |
| 16 | +def potential (L : Space →L[ℝ] Space) (i : Fin 3) (x : Space) : ℝ := | |
| 17 | + outerCutoff x*linearPotential L i x | |
| 18 | + | |
| 19 | +theorem potential_smooth (L : Space →L[ℝ] Space) (i : Fin 3) : | |
| 20 | + ContDiff ℝ ∞ (potential L i) := | |
| 21 | + outerCutoff_contDiff.mul (contDiff_linearPotential L i) | |
| 22 | + | |
| 23 | +theorem potential_support (L : Space →L[ℝ] Space) (i : Fin 3) : | |
| 24 | + tsupport (potential L i) ⊆ Metric.closedBall (0 : Space) 2 := | |
| 25 | + tsupport_mul_subset_left.trans outerCutoff_support | |
| 26 | + | |
| 27 | +def velocity (L : Space →L[ℝ] Space) : Space → Space := curl (potential L) | |
| 28 | + | |
| 29 | +theorem velocity_smooth (L : Space →L[ℝ] Space) : ContDiff ℝ ∞ (velocity L) := | |
| 30 | + contDiff_curl (potential L) (potential_smooth L) | |
| 31 | + | |
| 32 | +theorem velocity_support (L : Space →L[ℝ] Space) : | |
| 33 | + tsupport (velocity L) ⊆ Metric.closedBall (0 : Space) 2 := | |
| 34 | + tsupport_curl_subset (potential L) _ Metric.isClosed_closedBall (potential_support L) | |
| 35 | + | |
| 36 | +theorem velocity_compact (L : Space →L[ℝ] Space) : HasCompactSupport (velocity L) := | |
| 37 | + (isCompact_closedBall (0 : Space) 2).of_isClosed_subset | |
| 38 | + (isClosed_tsupport _) (velocity_support L) | |
| 39 | + | |
| 40 | +theorem velocity_divergence (L : Space →L[ℝ] Space) (x : Space) : | |
| 41 | + divergence (velocity L) x=0 := divergence_curl (potential L) (potential_smooth L) x | |
| 42 | + | |
| 43 | +theorem velocity_odd (L : Space →L[ℝ] Space) (x : Space) : velocity L (-x)= -velocity L x := by | |
| 44 | + apply odd_curl_of_even (potential L) (fun i => (potential_smooth L i).differentiable (by simp)) | |
| 45 | + intro i y | |
| 46 | + simp only [potential,outerCutoff_even,linearPotential_even] | |
| 47 | + | |
| 48 | +theorem velocity_plateau (L : Space →L[ℝ] Space) (hL : LinearMap.trace ℝ Space L.toLinearMap=0) | |
| 49 | + (x : Space) (hx : ‖x‖ < 1) : velocity L x=L x := by | |
| 50 | + have he (i : Fin 3) : potential L i =ᶠ[𝓝 x] linearPotential L i := by | |
| 51 | + have hx' : x ∈ Metric.ball (0 : Space) 1 := by simpa only [Metric.mem_ball,dist_zero_right] using hx | |
| 52 | + filter_upwards [Metric.isOpen_ball.mem_nhds hx'] with y hy | |
| 53 | + have hy' : ‖y‖ ≤ 1 := (by simpa only [Metric.mem_ball,dist_zero_right] using hy : ‖y‖ < 1).le | |
| 54 | + simp only [potential,outerCutoff_one y hy',one_mul] | |
| 55 | + exact (curl_congr_nhds _ _ x he).trans (curl_linearPotential_of_trace_zero L hL x) | |
| 56 | + | |
| 57 | +theorem velocity_fderiv_plateau (L : Space →L[ℝ] Space) | |
| 58 | + (hL : LinearMap.trace ℝ Space L.toLinearMap=0) (x : Space) (hx : ‖x‖ < 1) : | |
| 59 | + fderiv ℝ (velocity L) x=L := by | |
| 60 | + have he : velocity L =ᶠ[𝓝 x] (L : Space → Space) := by | |
| 61 | + have hx' : x ∈ Metric.ball (0 : Space) 1 := by simpa only [Metric.mem_ball,dist_zero_right] using hx | |
| 62 | + filter_upwards [Metric.isOpen_ball.mem_nhds hx'] with y hy | |
| 63 | + exact velocity_plateau L hL y (by simpa only [Metric.mem_ball,dist_zero_right] using hy) | |
| 64 | + exact he.fderiv_eq.trans L.fderiv | |
| 65 | + | |
| 66 | +def field (L : Space →L[ℝ] Space) : SmoothL2Field Space where | |
| 67 | + field := velocity L | |
| 68 | + smooth := velocity_smooth L | |
| 69 | + integrable n := ((velocity_smooth L).continuous_iteratedFDeriv (m := n) (by simp)).memLp_of_hasCompactSupport | |
| 70 | + ((velocity_compact L).iteratedFDeriv n) | |
| 71 | + | |
| 72 | +theorem velocity_memLp (L : Space →L[ℝ] Space) : MemLp (velocity L) 2 volume := | |
| 73 | + (velocity_smooth L).continuous.memLp_of_hasCompactSupport (velocity_compact L) | |
| 74 | + | |
| 75 | +theorem field_solenoidal (L : Space →L[ℝ] Space) : | |
| 76 | + (velocity_memLp L).toLp (velocity L) ∈ solenoidalSpace := | |
| 77 | + smooth_mem_solenoidal (velocity L) (velocity_smooth L) (velocity_memLp L) (velocity_divergence L) | |
| 78 | + | |
| 79 | +def linear (β : ℝ) : Space →L[ℝ] Space := | |
| 80 | + (EuclideanSpace.proj 1).smulRight (EuclideanSpace.single 0 1+β • EuclideanSpace.single 2 1) | |
| 81 | + | |
| 82 | +@[simp] theorem linear_apply (β : ℝ) (x : Space) : | |
| 83 | + linear β x=x 1 • (EuclideanSpace.single 0 1+β • EuclideanSpace.single 2 1) := rfl | |
| 84 | + | |
| 85 | +theorem linear_trace (β : ℝ) : LinearMap.trace ℝ Space (linear β).toLinearMap=0 := by | |
| 86 | + rw [← coordinateTrace_eq_linearTrace] | |
| 87 | + simp [coordinateTrace,Fin.sum_univ_three,linear_apply,PiLp.smul_apply] | |
| 88 | + | |
| 89 | +theorem linear_norm (β : ℝ) : ‖linear β‖ ≤ 1+|β| := by | |
| 90 | + apply opNorm_le_bound _ (by positivity) | |
| 91 | + intro x | |
| 92 | + rw [linear_apply,norm_smul,Real.norm_eq_abs] | |
| 93 | + have hv : ‖(EuclideanSpace.single 0 1 : Space)+β • EuclideanSpace.single 2 1‖ ≤ 1+|β| := by | |
| 94 | + apply (norm_add_le _ _).trans | |
| 95 | + rw [norm_smul,Real.norm_eq_abs] | |
| 96 | + simp | |
| 97 | + exact (mul_le_mul (PiLp.norm_apply_le x 1) hv (norm_nonneg _) (norm_nonneg x)).trans_eq (mul_comm _ _) | |
| 98 | + | |
| 99 | +theorem linear_q (β : ℝ) : | |
| 100 | + linear β (EuclideanSpace.single 1 1)=EuclideanSpace.single 0 1+β • EuclideanSpace.single 2 1 := by | |
| 101 | + simp [linear_apply] | |
| 102 | + | |
| 103 | +end EulerBaseDatum | |
+230 −0 Euler/BaseEulerFlowL2.lean added View file
| @@ -0,0 +1,230 @@ | ||
| 1 | +import Euler.BaseEulerParent | |
| 2 | +import Euler.SmoothL2GevreyCalculus | |
| 3 | +import Euler.LpParameterIntegral | |
| 4 | +import Euler.SmoothTimeFieldTimeJets | |
| 5 | + | |
| 6 | +/-! Actual ordinary L² displacement, material velocity and acceleration | |
| 7 | +for the base flow. The displacement estimate integrates the real spatial | |
| 8 | +jets of the flow, and the other two estimates use volume preservation. -/ | |
| 9 | + | |
| 10 | +noncomputable section | |
| 11 | + | |
| 12 | +namespace EulerBaseEulerParent | |
| 13 | + | |
| 14 | +open Set MeasureTheory Filter EulerSmoothLimit EulerSmoothBanachFlow | |
| 15 | + EulerSmoothFlowGevrey EulerLpTranslation EulerGevrey EulerVolterraConvolution | |
| 16 | +open scoped ContDiff BoundedContinuousFunction Interval | |
| 17 | + | |
| 18 | +private local instance (n : ℕ) : NormedAddCommGroup (Space [×n]→L[ℝ] Space) := inferInstance | |
| 19 | +private local instance (n : ℕ) : NormedSpace ℝ (Space [×n]→L[ℝ] Space) := inferInstance | |
| 20 | +private local instance (n : ℕ) : NormedAddCommGroup (Space →ᵇ (Space [×n]→L[ℝ] Space)) := inferInstance | |
| 21 | +private local instance (n : ℕ) : NormedSpace ℝ (Space →ᵇ (Space [×n]→L[ℝ] Space)) := inferInstance | |
| 22 | + | |
| 23 | +structure L2Data (I : Input) where | |
| 24 | + velocity : Icc (0 : ℝ) I.T → SmoothL2Field Space | |
| 25 | + derivative : Icc (0 : ℝ) I.T → SmoothL2Field Space | |
| 26 | + velocity_match : ∀ t x, (velocity t).field x=I.field.field t x | |
| 27 | + derivative_match : ∀ t x, (derivative t).field x=I.derivative.field t x | |
| 28 | + C : ℝ | |
| 29 | + S : ℝ | |
| 30 | + C₁ : ℝ | |
| 31 | + S₁ : ℝ | |
| 32 | + C_nonneg : 0 ≤ C | |
| 33 | + S_nonneg : 0 ≤ S | |
| 34 | + C₁_nonneg : 0 ≤ C₁ | |
| 35 | + S₁_nonneg : 0 ≤ S₁ | |
| 36 | + velocity_bound : ∀ t, (velocity t).HasJetBound C S | |
| 37 | + derivative_bound : ∀ t, (derivative t).HasJetBound C₁ S₁ | |
| 38 | + | |
| 39 | +namespace L2Data | |
| 40 | + | |
| 41 | +variable {I : Input} (L : L2Data I) | |
| 42 | + | |
| 43 | +def velocityRadius : ℝ := flowRadius I.B I.R I.T L.S | |
| 44 | + | |
| 45 | +theorem velocityRadius_nonneg : 0 ≤ L.velocityRadius := by | |
| 46 | + have hb := I.B_nonneg | |
| 47 | + have hr := I.R_pos | |
| 48 | + have ht := I.T_pos | |
| 49 | + have hs := L.S_nonneg | |
| 50 | + dsimp [velocityRadius,flowRadius] | |
| 51 | + positivity | |
| 52 | + | |
| 53 | +def velocityField (t : Icc (0 : ℝ) I.T) : SmoothL2Field Space := | |
| 54 | + SmoothL2Field.composeField ((flowData I.T I.T_pos.le I.field).forward t) | |
| 55 | + (forward_contDiff I.T I.T_pos.le I.field t) | |
| 56 | + (forward_measurePreserving I.T I.T_pos.le I.field I.divergence volume t) | |
| 57 | + (1+I.B*I.T) (4*I.R+1) | |
| 58 | + (add_nonneg zero_le_one (mul_nonneg I.B_nonneg I.T_pos.le)) | |
| 59 | + (add_nonneg (mul_nonneg (by norm_num) I.R_pos.le) zero_le_one) | |
| 60 | + (fun n hn => forward_positive_bound I.T I.T_pos.le I.field I.B I.R I.B_nonneg I.R_pos | |
| 61 | + I.small I.bound n hn t) | |
| 62 | + (L.velocity t) L.C L.S L.C_nonneg L.S_nonneg (L.velocity_bound t) | |
| 63 | + | |
| 64 | +theorem velocityField_bound (t : Icc (0 : ℝ) I.T) : | |
| 65 | + (L.velocityField t).HasJetBound L.C L.velocityRadius := by | |
| 66 | + unfold velocityField velocityRadius | |
| 67 | + apply SmoothL2Field.composeField_bound | |
| 68 | + | |
| 69 | +theorem velocityField_apply (t : Icc (0 : ℝ) I.T) (x : Space) : | |
| 70 | + (L.velocityField t).field x=I.velocity.field t x := by | |
| 71 | + change (L.velocity t).field ((flowData I.T I.T_pos.le I.field).forward t x)=_ | |
| 72 | + rw [L.velocity_match,I.velocity_apply] | |
| 73 | + rfl | |
| 74 | + | |
| 75 | +theorem velocityField_jet (n : ℕ) (t : Icc (0 : ℝ) I.T) : | |
| 76 | + iteratedFDeriv ℝ n (L.velocityField t).field = | |
| 77 | + fun x => I.velocity.jet n t x := by | |
| 78 | + rw [show (L.velocityField t).field = (I.velocity.field t : Space → Space) from | |
| 79 | + funext (L.velocityField_apply t)] | |
| 80 | + exact funext (fun x => (I.velocity.jet_eq n t x).symm) | |
| 81 | + | |
| 82 | +theorem displacement_jet_integral (n : ℕ) (t : Icc (0 : ℝ) I.T) (x : Space) : | |
| 83 | + I.displacement.jet n t x = | |
| 84 | + ∫ s in (0 : ℝ)..(t : ℝ), extendPath I.T I.T_pos.le (I.velocity.jet n) s x := by | |
| 85 | + let f : C(Icc (0 : ℝ) I.T,Space [×n]→L[ℝ] Space) := | |
| 86 | + ⟨fun s => I.velocity.jet n s x, | |
| 87 | + (BoundedContinuousFunction.evalCLM ℝ x).continuous.comp (I.velocity.jet n).continuous⟩ | |
| 88 | + have h := EulerContinuousTimeIntegral.eq_initial_add_integral I.T I.T_pos.le f | |
| 89 | + (fun s => extendPath I.T I.T_pos.le (I.displacement.jet n) s x) | |
| 90 | + (fun s => SmoothTimeField.TimeDerivative.jet_pointwise I.T I.T_pos.le | |
| 91 | + I.displacement I.velocity I.displacement_time n x s) t | |
| 92 | + have hz : I.displacement.jet n ⟨0,le_rfl,I.T_pos.le⟩ x=0 := by | |
| 93 | + rw [I.displacement.jet_eq] | |
| 94 | + have he : (I.displacement.field ⟨0,le_rfl,I.T_pos.le⟩ : Space → Space)=0 := | |
| 95 | + funext I.displacement_initial | |
| 96 | + rw [he,iteratedFDeriv_zero] | |
| 97 | + rfl | |
| 98 | + simp only [extendPath,projIcc_of_mem I.T_pos.le t.property, | |
| 99 | + projIcc_of_mem I.T_pos.le (show (0 : ℝ) ∈ Icc 0 I.T from ⟨le_rfl,I.T_pos.le⟩),hz, | |
| 100 | + zero_add,EulerContinuousTimeIntegral.integral_apply,EulerContinuousTimeIntegral.realIntegral] at h | |
| 101 | + exact h | |
| 102 | + | |
| 103 | +theorem displacement_memLp_and_bound (n : ℕ) (t : Icc (0 : ℝ) I.T) : | |
| 104 | + MemLp (iteratedFDeriv ℝ n (I.displacement.field t : Space → Space)) 2 volume ∧ | |
| 105 | + (eLpNorm (iteratedFDeriv ℝ n (I.displacement.field t : Space → Space)) 2 volume).toReal ≤ | |
| 106 | + I.T*L.C*L.velocityRadius^n*(n.factorial : ℝ)^2 := by | |
| 107 | + let f : ℝ × Space → Space [×n]→L[ℝ] Space := | |
| 108 | + fun p => extendPath I.T I.T_pos.le (I.velocity.jet n) p.1 p.2 | |
| 109 | + have hc : Continuous f := by | |
| 110 | + have ht := extendPath_continuous I.T I.T_pos.le (I.velocity.jet n) | |
| 111 | + dsimp [f] | |
| 112 | + fun_prop | |
| 113 | + have hb : ∀ s : ℝ, MemLp (fun x => f (s,x)) 2 volume ∧ | |
| 114 | + (eLpNorm (fun x => f (s,x)) 2 volume).toReal ≤ | |
| 115 | + L.C*L.velocityRadius^n*(n.factorial : ℝ)^2 := by | |
| 116 | + intro s | |
| 117 | + have he : (fun x => f (s,x)) = | |
| 118 | + iteratedFDeriv ℝ n (L.velocityField (projIcc 0 I.T I.T_pos.le s)).field := | |
| 119 | + (L.velocityField_jet n (projIcc 0 I.T I.T_pos.le s)).symm | |
| 120 | + rw [he] | |
| 121 | + exact ⟨(L.velocityField _).integrable n,by | |
| 122 | + rw [← SmoothL2Field.norm_jetLp] | |
| 123 | + exact L.velocityField_bound _ n⟩ | |
| 124 | + have hp := EulerLpParameterIntegral.intervalIntegral_memLp_and_bound (t : ℝ) t.property.1 | |
| 125 | + volume f hc.aestronglyMeasurable (L.C*L.velocityRadius^n*(n.factorial : ℝ)^2) | |
| 126 | + (mul_nonneg (mul_nonneg L.C_nonneg (pow_nonneg L.velocityRadius_nonneg n)) (sq_nonneg _)) | |
| 127 | + (Eventually.of_forall hb) | |
| 128 | + have he : (fun x => ∫ s in (0 : ℝ)..(t : ℝ), f (s,x)) = | |
| 129 | + iteratedFDeriv ℝ n (I.displacement.field t : Space → Space) := by | |
| 130 | + funext x | |
| 131 | + exact (displacement_jet_integral (I := I) n t x).symm.trans (I.displacement.jet_eq n t x) | |
| 132 | + rw [he] at hp | |
| 133 | + refine ⟨hp.1,hp.2.trans ?_⟩ | |
| 134 | + have ht := mul_le_mul_of_nonneg_right t.property.2 | |
| 135 | + (mul_nonneg (mul_nonneg L.C_nonneg (pow_nonneg L.velocityRadius_nonneg n)) | |
| 136 | + (sq_nonneg (n.factorial : ℝ))) | |
| 137 | + exact ht.trans_eq (by ring) | |
| 138 | + | |
| 139 | +def displacementField (t : Icc (0 : ℝ) I.T) : SmoothL2Field Space where | |
| 140 | + field := I.displacement.field t | |
| 141 | + smooth := I.displacement.smooth t | |
| 142 | + integrable n := (L.displacement_memLp_and_bound n t).1 | |
| 143 | + | |
| 144 | +theorem displacementField_bound (t : Icc (0 : ℝ) I.T) : | |
| 145 | + (L.displacementField t).HasJetBound (I.T*L.C) L.velocityRadius := by | |
| 146 | + intro n | |
| 147 | + rw [SmoothL2Field.norm_jetLp] | |
| 148 | + exact (L.displacement_memLp_and_bound n t).2 | |
| 149 | + | |
| 150 | +def accelerationSourceRadius : ℝ := 4*I.R+L.S+L.S₁ | |
| 151 | + | |
| 152 | +theorem accelerationSourceRadius_nonneg : 0 ≤ L.accelerationSourceRadius := by | |
| 153 | + have hr := I.R_pos | |
| 154 | + have hs := L.S_nonneg | |
| 155 | + have hs₁ := L.S₁_nonneg | |
| 156 | + dsimp [accelerationSourceRadius] | |
| 157 | + positivity | |
| 158 | + | |
| 159 | +theorem field_derivative_bound (t : Icc (0 : ℝ) I.T) : | |
| 160 | + HasSupBound (fderiv ℝ (I.field.field t : Space → Space)) (I.B*I.R) L.accelerationSourceRadius := by | |
| 161 | + have h : HasSupBound (I.field.field t : Space → Space) I.B I.R := | |
| 162 | + fun n x => field_jet_bound I.T I.field I.B I.R I.bound n t x | |
| 163 | + exact (h.derivative I.B_nonneg I.R_pos.le).mono (mul_nonneg I.B_nonneg I.R_pos.le) | |
| 164 | + (mul_nonneg (by norm_num) I.R_pos.le) le_rfl | |
| 165 | + (by dsimp [accelerationSourceRadius]; linarith [L.S_nonneg,L.S₁_nonneg]) | |
| 166 | + | |
| 167 | +def accelerationProduct (t : Icc (0 : ℝ) I.T) : SmoothL2Field Space := | |
| 168 | + SmoothL2Field.productField (fderiv ℝ (I.field.field t : Space → Space)) | |
| 169 | + ((I.field.smooth t).fderiv_right (m := ∞) (by simp)) (L.velocity t) | |
| 170 | + (I.B*I.R) L.C L.accelerationSourceRadius (mul_nonneg I.B_nonneg I.R_pos.le) L.C_nonneg | |
| 171 | + L.accelerationSourceRadius_nonneg (L.field_derivative_bound t) | |
| 172 | + ((L.velocity_bound t).mono L.C_nonneg L.S_nonneg le_rfl | |
| 173 | + (by dsimp [accelerationSourceRadius]; linarith [I.R_pos,L.S₁_nonneg])) | |
| 174 | + | |
| 175 | +def accelerationSource (t : Icc (0 : ℝ) I.T) : SmoothL2Field Space := | |
| 176 | + SmoothL2Field.addField (L.derivative t) (L.accelerationProduct t) | |
| 177 | + | |
| 178 | +def accelerationAmplitude : ℝ := L.C₁+3*(I.B*I.R)*L.C | |
| 179 | + | |
| 180 | +theorem accelerationAmplitude_nonneg : 0 ≤ L.accelerationAmplitude := by | |
| 181 | + have hb := I.B_nonneg | |
| 182 | + have hr := I.R_pos | |
| 183 | + have hc := L.C_nonneg | |
| 184 | + have hc₁ := L.C₁_nonneg | |
| 185 | + dsimp [accelerationAmplitude] | |
| 186 | + positivity | |
| 187 | + | |
| 188 | +theorem accelerationSource_bound (t : Icc (0 : ℝ) I.T) : | |
| 189 | + (L.accelerationSource t).HasJetBound L.accelerationAmplitude L.accelerationSourceRadius := by | |
| 190 | + apply SmoothL2Field.HasJetBound.add | |
| 191 | + · exact (L.derivative_bound t).mono L.C₁_nonneg L.S₁_nonneg le_rfl | |
| 192 | + (by dsimp [accelerationSourceRadius]; linarith [I.R_pos,L.S_nonneg]) | |
| 193 | + · exact SmoothL2Field.productField_bound _ _ _ _ _ _ _ _ _ _ _ | |
| 194 | + | |
| 195 | +def accelerationRadius : ℝ := flowRadius I.B I.R I.T L.accelerationSourceRadius | |
| 196 | + | |
| 197 | +theorem accelerationRadius_nonneg : 0 ≤ L.accelerationRadius := by | |
| 198 | + have hb := I.B_nonneg | |
| 199 | + have hr := I.R_pos | |
| 200 | + have ht := I.T_pos | |
| 201 | + have hs := L.accelerationSourceRadius_nonneg | |
| 202 | + dsimp [accelerationRadius,flowRadius] | |
| 203 | + positivity | |
| 204 | + | |
| 205 | +def accelerationField (t : Icc (0 : ℝ) I.T) : SmoothL2Field Space := | |
| 206 | + SmoothL2Field.composeField ((flowData I.T I.T_pos.le I.field).forward t) | |
| 207 | + (forward_contDiff I.T I.T_pos.le I.field t) | |
| 208 | + (forward_measurePreserving I.T I.T_pos.le I.field I.divergence volume t) | |
| 209 | + (1+I.B*I.T) (4*I.R+1) | |
| 210 | + (add_nonneg zero_le_one (mul_nonneg I.B_nonneg I.T_pos.le)) | |
| 211 | + (add_nonneg (mul_nonneg (by norm_num) I.R_pos.le) zero_le_one) | |
| 212 | + (fun n hn => forward_positive_bound I.T I.T_pos.le I.field I.B I.R I.B_nonneg I.R_pos | |
| 213 | + I.small I.bound n hn t) | |
| 214 | + (L.accelerationSource t) L.accelerationAmplitude L.accelerationSourceRadius | |
| 215 | + L.accelerationAmplitude_nonneg L.accelerationSourceRadius_nonneg (L.accelerationSource_bound t) | |
| 216 | + | |
| 217 | +theorem accelerationField_bound (t : Icc (0 : ℝ) I.T) : | |
| 218 | + (L.accelerationField t).HasJetBound L.accelerationAmplitude L.accelerationRadius := by | |
| 219 | + unfold accelerationField accelerationRadius | |
| 220 | + apply SmoothL2Field.composeField_bound | |
| 221 | + | |
| 222 | +theorem accelerationField_apply (t : Icc (0 : ℝ) I.T) (x : Space) : | |
| 223 | + (L.accelerationField t).field x=I.acceleration.field t x := by | |
| 224 | + change (L.derivative t).field ((flowData I.T I.T_pos.le I.field).forward t x) + | |
| 225 | + fderiv ℝ (I.field.field t : Space → Space) ((flowData I.T I.T_pos.le I.field).forward t x) | |
| 226 | + ((L.velocity t).field ((flowData I.T I.T_pos.le I.field).forward t x)) = _ | |
| 227 | + rw [L.derivative_match,L.velocity_match,I.acceleration_apply,accelerationFamily_apply] | |
| 228 | + | |
| 229 | +end L2Data | |
| 230 | +end EulerBaseEulerParent | |
+164 −0 Euler/BaseEulerGevrey.lean added View file
| @@ -0,0 +1,164 @@ | ||
| 1 | +import Euler.BaseEulerDatum | |
| 2 | +import Euler.CompactSmoothL2Bounds | |
| 3 | + | |
| 4 | +/-! The actual compact base datum has factorial bounds uniform in the | |
| 5 | +small transverse parameter. All constants use the fixed cutoff only. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +namespace EulerBaseDatum | |
| 10 | + | |
| 11 | +open Set Filter ContinuousLinearMap MeasureTheory EulerSmoothLimit EulerVectorCalculus | |
| 12 | + EulerSpatialCutoffs EulerGevrey EulerGevreyFunctions EulerLpTranslation EulerOperatorGevreyCalculus | |
| 13 | + EulerMeanBoundary EulerMeanCutoffCurl EulerPacketPiola | |
| 14 | +open scoped ContDiff Topology | |
| 15 | + | |
| 16 | +theorem coordinate_norm_le (i : Fin 3) : ‖(EuclideanSpace.proj i : Space →L[ℝ] ℝ)‖ ≤ 1 := by | |
| 17 | + apply opNorm_le_bound _ zero_le_one | |
| 18 | + intro x | |
| 19 | + change ‖x i‖ ≤ 1*‖x‖ | |
| 20 | + simpa only [one_mul] using PiLp.norm_apply_le x i | |
| 21 | + | |
| 22 | +theorem coordinate_bound_on_ball (i : Fin 3) (x : Space) (hx : ‖x‖ ≤ 2) (n : ℕ) : | |
| 23 | + ‖iteratedFDeriv ℝ n (fun y : Space => y i) x‖ ≤ 2*majorant 256 0 n := by | |
| 24 | + apply (linear_bound_on_ball (EuclideanSpace.proj i) 2 256 (by norm_num) (by norm_num) x hx n).trans | |
| 25 | + exact mul_le_mul_of_nonneg_right (by nlinarith [coordinate_norm_le i]) | |
| 26 | + (majorant_nonneg 256 (by norm_num) 0 n) | |
| 27 | + | |
| 28 | +theorem linear_coordinate_bound_on_ball (L : Space →L[ℝ] Space) (i : Fin 3) | |
| 29 | + (x : Space) (hx : ‖x‖ ≤ 2) (n : ℕ) : | |
| 30 | + ‖iteratedFDeriv ℝ n (fun y => L y i) x‖ ≤ (2*‖L‖)*majorant 256 0 n := by | |
| 31 | + have hL : ‖(EuclideanSpace.proj i).comp L‖ ≤ ‖L‖ := by | |
| 32 | + apply (opNorm_comp_le _ _).trans | |
| 33 | + simpa only [one_mul] using (mul_le_mul_of_nonneg_right (coordinate_norm_le i) (norm_nonneg L)) | |
| 34 | + apply (linear_bound_on_ball ((EuclideanSpace.proj i).comp L) 2 256 | |
| 35 | + (by norm_num) (by norm_num) x hx n).trans | |
| 36 | + exact mul_le_mul_of_nonneg_right (by linarith) (majorant_nonneg 256 (by norm_num) 0 n) | |
| 37 | + | |
| 38 | +theorem linearPotential_bound (L : Space →L[ℝ] Space) (i : Fin 3) | |
| 39 | + (x : Space) (hx : ‖x‖ ≤ 2) (n : ℕ) : | |
| 40 | + ‖iteratedFDeriv ℝ n (linearPotential L i) x‖ ≤ (24*‖L‖)*majorant 256 0 n := by | |
| 41 | + let f : Space → ℝ := fun y => y (i+1)*L y (i+2) | |
| 42 | + let g : Space → ℝ := fun y => y (i+2)*L y (i+1) | |
| 43 | + have hs (a b : Fin 3) : ContDiff ℝ ∞ (fun y : Space => y a*L y b) := | |
| 44 | + (EuclideanSpace.proj a : Space →L[ℝ] ℝ).contDiff.mul | |
| 45 | + ((EuclideanSpace.proj b : Space →L[ℝ] ℝ).contDiff.comp L.contDiff) | |
| 46 | + have hp (a b : Fin 3) : | |
| 47 | + ‖iteratedFDeriv ℝ n (fun y : Space => y a*L y b) x‖ ≤ (12*‖L‖)*majorant 256 0 n := by | |
| 48 | + have h := product_bound_at (fun y : Space => y a) (fun y => L y b) | |
| 49 | + (EuclideanSpace.proj a : Space →L[ℝ] ℝ).contDiff | |
| 50 | + ((EuclideanSpace.proj b : Space →L[ℝ] ℝ).contDiff.comp L.contDiff) | |
| 51 | + 256 2 (2*‖L‖) (by norm_num) (by norm_num) (by positivity) x | |
| 52 | + (coordinate_bound_on_ball a x hx) (linear_coordinate_bound_on_ball L b x hx) n | |
| 53 | + convert h using 1 | |
| 54 | + ring | |
| 55 | + have hfg : ‖iteratedFDeriv ℝ n (f-g) x‖ ≤ (24*‖L‖)*majorant 256 0 n := by | |
| 56 | + rw [iteratedFDeriv_sub_apply ((hs (i+1) (i+2)).contDiffAt.of_le (by simp)) | |
| 57 | + ((hs (i+2) (i+1)).contDiffAt.of_le (by simp))] | |
| 58 | + exact (norm_sub_le _ _).trans ((add_le_add (hp (i+1) (i+2)) (hp (i+2) (i+1))).trans_eq (by ring)) | |
| 59 | + change ‖iteratedFDeriv ℝ n ((-1/3 : ℝ) • (f-g)) x‖ ≤ _ | |
| 60 | + have hfgsm : ContDiff ℝ ∞ (f-g) := (hs (i+1) (i+2)).sub (hs (i+2) (i+1)) | |
| 61 | + rw [iteratedFDeriv_const_smul_apply (a := (-1/3 : ℝ)) (f := f-g) | |
| 62 | + (hfgsm.contDiffAt.of_le (by simp)),norm_smul] | |
| 63 | + exact (mul_le_mul_of_nonneg_right (by norm_num : ‖(-1/3 : ℝ)‖ ≤ 1) | |
| 64 | + (norm_nonneg _)).trans (by simpa only [one_mul] using hfg) | |
| 65 | + | |
| 66 | +def cutoffAmplitude : ℝ := (9*(1+3/EulerGevreyCutoff.bumpMass)^2)^3 | |
| 67 | + | |
| 68 | +theorem cutoffAmplitude_nonneg : 0 ≤ cutoffAmplitude := by unfold cutoffAmplitude; positivity | |
| 69 | + | |
| 70 | +def potentialAmplitude (L : Space →L[ℝ] Space) : ℝ := 3*cutoffAmplitude*(24*‖L‖) | |
| 71 | + | |
| 72 | +theorem potentialAmplitude_nonneg (L : Space →L[ℝ] Space) : 0 ≤ potentialAmplitude L := by | |
| 73 | + unfold potentialAmplitude | |
| 74 | + exact mul_nonneg (mul_nonneg (by norm_num) cutoffAmplitude_nonneg) (by positivity) | |
| 75 | + | |
| 76 | +theorem potential_bound (L : Space →L[ℝ] Space) (i : Fin 3) (n : ℕ) (x : Space) : | |
| 77 | + ‖iteratedFDeriv ℝ n (potential L i) x‖ ≤ potentialAmplitude L*majorant 256 0 n := by | |
| 78 | + exact compact_product_bound outerCutoff (linearPotential L i) outerCutoff_contDiff | |
| 79 | + (contDiff_linearPotential L i) (Metric.closedBall 0 2) outerCutoff_support | |
| 80 | + 256 cutoffAmplitude (24*‖L‖) (by norm_num) cutoffAmplitude_nonneg (by positivity) | |
| 81 | + outerCutoff_gevrey (fun y hy => linearPotential_bound L i y | |
| 82 | + (by simpa only [Metric.mem_closedBall,dist_zero_right] using hy)) n x | |
| 83 | + | |
| 84 | +def vectorPotential (L : Space →L[ℝ] Space) (x : Space) : Space := | |
| 85 | + ∑ i : Fin 3, potential L i x • EuclideanSpace.single i 1 | |
| 86 | + | |
| 87 | +@[simp] theorem vectorPotential_apply (L : Space →L[ℝ] Space) (x : Space) (i : Fin 3) : | |
| 88 | + vectorPotential L x i=potential L i x := by | |
| 89 | + fin_cases i <;> simp [vectorPotential,Fin.sum_univ_three] | |
| 90 | + | |
| 91 | +theorem vectorPotential_smooth (L : Space →L[ℝ] Space) : ContDiff ℝ ∞ (vectorPotential L) := | |
| 92 | + ContDiff.sum (fun i _ => (potential_smooth L i).smul contDiff_const) | |
| 93 | + | |
| 94 | +def coordinateEmbedding (i : Fin 3) : ℝ →L[ℝ] Space := | |
| 95 | + (ContinuousLinearMap.id ℝ ℝ).smulRight (EuclideanSpace.single i 1) | |
| 96 | + | |
| 97 | +theorem coordinateEmbedding_norm (i : Fin 3) : ‖coordinateEmbedding i‖ ≤ 1 := by | |
| 98 | + apply opNorm_le_bound _ zero_le_one | |
| 99 | + intro x | |
| 100 | + change ‖x • (EuclideanSpace.single i 1 : Space)‖ ≤ 1*‖x‖ | |
| 101 | + simp [norm_smul] | |
| 102 | + | |
| 103 | +theorem vectorPotential_bound (L : Space →L[ℝ] Space) (n : ℕ) (x : Space) : | |
| 104 | + ‖iteratedFDeriv ℝ n (vectorPotential L) x‖ ≤ (3*potentialAmplitude L)*majorant 256 0 n := by | |
| 105 | + unfold vectorPotential | |
| 106 | + have hs (i : Fin 3) : ContDiff ℝ ∞ (fun y => potential L i y • (EuclideanSpace.single i 1 : Space)) := | |
| 107 | + (potential_smooth L i).smul contDiff_const | |
| 108 | + rw [iteratedFDeriv_fun_sum_apply | |
| 109 | + (f := fun i y => potential L i y • (EuclideanSpace.single i 1 : Space)) | |
| 110 | + (u := Finset.univ) (fun i _ => (hs i).contDiffAt.of_le (by simp))] | |
| 111 | + apply (norm_sum_le _ _).trans | |
| 112 | + calc | |
| 113 | + _ ≤ ∑ _i : Fin 3, potentialAmplitude L*majorant 256 0 n := by | |
| 114 | + apply Finset.sum_le_sum | |
| 115 | + intro i _ | |
| 116 | + exact contraction_bound (coordinateEmbedding i) (coordinateEmbedding_norm i) | |
| 117 | + (potential L i) (potential_smooth L i) 256 (potentialAmplitude L) | |
| 118 | + (by norm_num) (potentialAmplitude_nonneg L) 0 (potential_bound L i) n x | |
| 119 | + _ = _ := by simp; ring | |
| 120 | + | |
| 121 | +theorem velocity_eq_curlOperator (L : Space →L[ℝ] Space) : | |
| 122 | + velocity L = fun x => curlOperator (fderiv ℝ (vectorPotential L) x) := by | |
| 123 | + funext x | |
| 124 | + rw [curlOperator_apply,← vectorCurl_eq_matrix _ x | |
| 125 | + ((vectorPotential_smooth L).differentiable (by simp) x)] | |
| 126 | + have he : (fun i x => vectorPotential L x i)=potential L := by | |
| 127 | + funext i y | |
| 128 | + exact vectorPotential_apply L y i | |
| 129 | + exact congrArg (fun f => curl f x) he.symm | |
| 130 | + | |
| 131 | +def velocityAmplitude (L : Space →L[ℝ] Space) : ℝ := | |
| 132 | + ‖curlOperator‖*(3*potentialAmplitude L*256) | |
| 133 | + | |
| 134 | +theorem velocityAmplitude_nonneg (L : Space →L[ℝ] Space) : 0 ≤ velocityAmplitude L := by | |
| 135 | + unfold velocityAmplitude | |
| 136 | + apply mul_nonneg | |
| 137 | + · exact norm_nonneg curlOperator | |
| 138 | + · exact mul_nonneg (mul_nonneg (by norm_num) (potentialAmplitude_nonneg L)) (by norm_num) | |
| 139 | + | |
| 140 | +theorem velocity_sup_bound (L : Space →L[ℝ] Space) : HasSupBound (velocity L) (velocityAmplitude L) 1024 := by | |
| 141 | + have hp : HasSupBound (vectorPotential L) (3*potentialAmplitude L) 256 := by | |
| 142 | + intro n x | |
| 143 | + simpa only [majorant,Nat.add_zero,mul_assoc] using vectorPotential_bound L n x | |
| 144 | + have hd := hp.derivative (mul_nonneg (by norm_num) (potentialAmplitude_nonneg L)) | |
| 145 | + (by norm_num : (0 : ℝ) ≤ 256) | |
| 146 | + rw [velocity_eq_curlOperator] | |
| 147 | + intro n x | |
| 148 | + have h := linear_bound curlOperator (fderiv ℝ (vectorPotential L)) | |
| 149 | + ((vectorPotential_smooth L).fderiv_right (m := ∞) (by simp)) | |
| 150 | + 1024 (3*potentialAmplitude L*256) 0 (fun j y => by | |
| 151 | + simpa only [majorant,Nat.add_zero,mul_assoc,show 4*(256 : ℝ)=1024 by norm_num] using hd j y) n x | |
| 152 | + simpa only [velocityAmplitude,majorant,Nat.add_zero,mul_assoc] using h | |
| 153 | + | |
| 154 | +def volumeFactor : ℝ := (volume (Metric.closedBall (0 : Space) 2)).toReal^(1/2 : ℝ) | |
| 155 | + | |
| 156 | +theorem volumeFactor_nonneg : 0 ≤ volumeFactor := Real.rpow_nonneg (ENNReal.toReal_nonneg) _ | |
| 157 | + | |
| 158 | +theorem field_jet_bound (L : Space →L[ℝ] Space) : | |
| 159 | + (field L).HasJetBound (velocityAmplitude L*volumeFactor) 1024 := | |
| 160 | + SmoothL2Field.hasJetBound_of_support_sup (field L) (Metric.closedBall 0 2) | |
| 161 | + (isCompact_closedBall (0 : Space) 2).measure_lt_top.ne (velocity_support L) | |
| 162 | + (velocityAmplitude L) 1024 (velocityAmplitude_nonneg L) (by norm_num) (velocity_sup_bound L) | |
| 163 | + | |
| 164 | +end EulerBaseDatum | |
+134 −0 Euler/BaseEulerGuards.lean added View file
| @@ -0,0 +1,134 @@ | ||
| 1 | +import Euler.ParentPacketScaledBounds | |
| 2 | +import Euler.ParentPacketRestriction | |
| 3 | +import Euler.PacketFirstPressureSign | |
| 4 | + | |
| 5 | +/-! The genuine base parent can be restricted to one explicit positive | |
| 6 | +time on which the low-order source guards hold. The constants depend | |
| 7 | +only on its fixed label envelope; the initial core is empty. -/ | |
| 8 | + | |
| 9 | +noncomputable section | |
| 10 | + | |
| 11 | +namespace EulerBaseEulerGuards | |
| 12 | + | |
| 13 | +open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit | |
| 14 | + EulerParentPacketFrames EulerPacketParentLabelBounds EulerGevrey | |
| 15 | + EulerPacketFirstPressureSign EulerTimeIntervalRestriction | |
| 16 | + | |
| 17 | +def coefficientCost (K : ℝ) : ℝ := 27*(frameAmplitude K)^2*gradientAmplitude K | |
| 18 | + | |
| 19 | +theorem coefficientCost_nonneg (K : ℝ) : 0 ≤ coefficientCost K := by | |
| 20 | + unfold coefficientCost | |
| 21 | + positivity [gradientAmplitude_nonneg K] | |
| 22 | + | |
| 23 | +def guardTime (T K : ℝ) : ℝ := | |
| 24 | + min T (min 1 (1/(4*(1+coefficientCost K+ | |
| 25 | + firstSignRate (coefficientCost K) (coefficientCost K))))) | |
| 26 | + | |
| 27 | +theorem guardTime_pos (T K : ℝ) (hT : 0 < T) : 0 < guardTime T K := by | |
| 28 | + have hC := coefficientCost_nonneg K | |
| 29 | + have hr : 0 ≤ firstSignRate (coefficientCost K) (coefficientCost K) := by | |
| 30 | + unfold firstSignRate | |
| 31 | + positivity | |
| 32 | + unfold guardTime | |
| 33 | + positivity | |
| 34 | + | |
| 35 | +theorem guardTime_le (T K : ℝ) : guardTime T K ≤ T := min_le_left _ _ | |
| 36 | + | |
| 37 | +theorem guardTime_le_one (T K : ℝ) : guardTime T K ≤ 1 := | |
| 38 | + (min_le_right _ _).trans (min_le_left _ _) | |
| 39 | + | |
| 40 | +theorem guardTime_small (T K : ℝ) : | |
| 41 | + coefficientCost K*guardTime T K ≤ 1/4 ∧ | |
| 42 | + firstSignRate (coefficientCost K) (coefficientCost K)*guardTime T K ≤ 1/4 := by | |
| 43 | + let C := coefficientCost K | |
| 44 | + let R := firstSignRate C C | |
| 45 | + have hC : 0 ≤ C := coefficientCost_nonneg K | |
| 46 | + have hR : 0 ≤ R := by dsimp [R,firstSignRate]; positivity | |
| 47 | + have hd : 0 < 4*(1+C+R) := by positivity | |
| 48 | + have ht : guardTime T K ≤ 1/(4*(1+C+R)) := | |
| 49 | + (min_le_right _ _).trans (min_le_right _ _) | |
| 50 | + have hc := mul_le_mul_of_nonneg_left ht hC | |
| 51 | + have hr := mul_le_mul_of_nonneg_left ht hR | |
| 52 | + have hc' : C*(1/(4*(1+C+R))) ≤ 1/4 := by | |
| 53 | + rw [mul_one_div] | |
| 54 | + apply (div_le_iff₀ hd).mpr | |
| 55 | + nlinarith | |
| 56 | + have hr' : R*(1/(4*(1+C+R))) ≤ 1/4 := by | |
| 57 | + rw [mul_one_div] | |
| 58 | + apply (div_le_iff₀ hd).mpr | |
| 59 | + nlinarith | |
| 60 | + exact ⟨hc.trans hc',hr.trans hr'⟩ | |
| 61 | + | |
| 62 | +theorem inner_bounds_of_norm (A : Space →L[ℝ] Space) (C : ℝ) | |
| 63 | + (hA : ‖A‖ ≤ C) (v : Space) : | |
| 64 | + -C*‖v‖^2 ≤ ⟪A v,v⟫_ℝ ∧ ⟪A v,v⟫_ℝ ≤ C*‖v‖^2 := by | |
| 65 | + have hn : ‖A v‖ ≤ C*‖v‖ := | |
| 66 | + (A.le_opNorm v).trans (mul_le_mul_of_nonneg_right hA (norm_nonneg _)) | |
| 67 | + have hi : |⟪A v,v⟫_ℝ| ≤ C*‖v‖^2 := by | |
| 68 | + calc | |
| 69 | + _ ≤ ‖A v‖*‖v‖ := by | |
| 70 | + simpa only [Real.norm_eq_abs] using norm_inner_le_norm (𝕜 := ℝ) (A v) v | |
| 71 | + _ ≤ (C*‖v‖)*‖v‖ := mul_le_mul_of_nonneg_right hn (norm_nonneg _) | |
| 72 | + _ = _ := by ring | |
| 73 | + constructor | |
| 74 | + · nlinarith [(abs_le.mp hi).1] | |
| 75 | + · exact (abs_le.mp hi).2 | |
| 76 | + | |
| 77 | +variable {G : Parent} (L : LabelData G) | |
| 78 | + | |
| 79 | +theorem strain_norm (t : Icc (0 : ℝ) G.T) (x : Space) : | |
| 80 | + ‖G.strain.field t x‖ ≤ coefficientCost L.K := by | |
| 81 | + have h := L.strain_scaled_bound 0 t x | |
| 82 | + simpa only [coefficientCost,norm_iteratedFDeriv_zero,majorant,Nat.zero_add, | |
| 83 | + Nat.factorial_zero,Nat.cast_one,pow_zero,one_pow,mul_one] using h | |
| 84 | + | |
| 85 | +theorem curvature_norm (t : Icc (0 : ℝ) G.T) (x : Space) : | |
| 86 | + ‖G.curvature.field t x‖ ≤ coefficientCost L.K := by | |
| 87 | + have h := L.curvature_scaled_bound 0 t x | |
| 88 | + simpa only [coefficientCost,norm_iteratedFDeriv_zero,majorant,Nat.zero_add, | |
| 89 | + Nat.factorial_zero,Nat.cast_one,pow_zero,one_pow,mul_one] using h | |
| 90 | + | |
| 91 | +theorem initialStrain_norm (x : Space) : | |
| 92 | + ‖G.initialStrain.field x‖ ≤ coefficientCost L.K := by | |
| 93 | + have he : G.strain.field G.zeroTime x=G.initialStrain.field x := by | |
| 94 | + apply ContinuousLinearMap.ext | |
| 95 | + intro v | |
| 96 | + rw [G.strain_apply,comp_apply,G.inverse_initial,G.initialStrain_apply] | |
| 97 | + rw [← he] | |
| 98 | + exact strain_norm L G.zeroTime x | |
| 99 | + | |
| 100 | +def lowBoundsOn (S : ℝ) (hS : 0 < S) (hST : S ≤ G.T) | |
| 101 | + (hSone : S ≤ 1) (hsmall : coefficientCost L.K*S ≤ 1/4) : | |
| 102 | + LowBounds (G.restrictTime S hS hST) where | |
| 103 | + Be := coefficientCost L.K | |
| 104 | + Bc := 0 | |
| 105 | + L := 0 | |
| 106 | + r := 0 | |
| 107 | + K := coefficientCost L.K | |
| 108 | + Be_nonneg := coefficientCost_nonneg L.K | |
| 109 | + Bc_nonneg := le_rfl | |
| 110 | + L_lower := by simp | |
| 111 | + r_nonneg := le_rfl | |
| 112 | + r_le_quarter := by norm_num | |
| 113 | + K_nonneg := coefficientCost_nonneg L.K | |
| 114 | + exterior_lower x _ v := by | |
| 115 | + rw [G.restrictTime_initialStrain] | |
| 116 | + exact (inner_bounds_of_norm _ _ (initialStrain_norm L x) v).1 | |
| 117 | + core_lower x hx _ := by | |
| 118 | + exact False.elim ((not_lt_of_ge (norm_nonneg _)) hx) | |
| 119 | + curvature_upper t x v := by | |
| 120 | + erw [G.restrictTime_curvature] | |
| 121 | + exact (inner_bounds_of_norm _ _ (curvature_norm L (initialInclusion G.T S hST t) x) v).2 | |
| 122 | + small := by | |
| 123 | + change coefficientCost L.K*(S^2/2)+coefficientCost L.K*S+_ ≤ 1/2 | |
| 124 | + simp only [mul_zero,zero_mul,zero_pow (by decide : 3 ≠ 0),add_zero] | |
| 125 | + have hsquare : S^2 ≤ S := by nlinarith [mul_nonneg hS.le (sub_nonneg.mpr hSone)] | |
| 126 | + have hc := mul_le_mul_of_nonneg_left hsquare (coefficientCost_nonneg L.K) | |
| 127 | + nlinarith | |
| 128 | + | |
| 129 | +def lowBounds : LowBounds | |
| 130 | + (G.restrictTime (guardTime G.T L.K) (guardTime_pos G.T L.K G.T_pos) | |
| 131 | + (guardTime_le G.T L.K)) := | |
| 132 | + lowBoundsOn L _ _ _ (guardTime_le_one G.T L.K) (guardTime_small G.T L.K).1 | |
| 133 | + | |
| 134 | +end EulerBaseEulerGuards | |
+90 −0 Euler/BaseEulerInput.lean added View file
| @@ -0,0 +1,90 @@ | ||
| 1 | +import Euler.BaseStaticEuler | |
| 2 | +import Euler.BaseEulerUniform | |
| 3 | + | |
| 4 | +/-! A single positive time and a single label bound work for every | |
| 5 | +compact base datum with |β|≤1. The parent, inverse and Euler evolution | |
| 6 | +below are the actual constructed objects. -/ | |
| 7 | + | |
| 8 | +noncomputable section | |
| 9 | + | |
| 10 | +namespace EulerBaseDatum | |
| 11 | + | |
| 12 | +open Set EulerSmoothLimit EulerParentPacketFrames | |
| 13 | + | |
| 14 | +private local instance : Fact (0 < (1 : ℝ)) := ⟨zero_lt_one⟩ | |
| 15 | + | |
| 16 | +def solutionTime : ℝ := | |
| 17 | + EulerStaticEuler.baseTime 1 uniformL2Amplitude 1024 uniformL2Amplitude_nonneg (by norm_num) | |
| 18 | + | |
| 19 | +theorem solutionTime_pos : 0 < solutionTime := | |
| 20 | + EulerStaticEuler.baseTime_pos 1 uniformL2Amplitude 1024 uniformL2Amplitude_nonneg (by norm_num) | |
| 21 | + | |
| 22 | +def solutionLabelConstant : ℝ := | |
| 23 | + EulerStaticEuler.baseLabelConstant 1 uniformL2Amplitude 1024 uniformL2Amplitude_nonneg (by norm_num) | |
| 24 | + | |
| 25 | +variable (β : ℝ) (hβ : |β| ≤ 1) (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) | |
| 26 | + | |
| 27 | +def solutionParent : Parent := | |
| 28 | + EulerStaticEuler.baseParent 1 (field (linear β)) uniformL2Amplitude 1024 | |
| 29 | + uniformL2Amplitude_nonneg (by norm_num) (field_uniform_jet β hβ) | |
| 30 | + (velocity_divergence (linear β)) ell hell hell1 | |
| 31 | + | |
| 32 | +def solutionLabelData : LabelData (solutionParent β hβ ell hell hell1) := | |
| 33 | + EulerStaticEuler.baseLabelData 1 (field (linear β)) uniformL2Amplitude 1024 | |
| 34 | + uniformL2Amplitude_nonneg (by norm_num) (field_uniform_jet β hβ) | |
| 35 | + (velocity_divergence (linear β)) ell hell hell1 | |
| 36 | + | |
| 37 | +def solutionInverse : ParticleInverse (solutionParent β hβ ell hell hell1) := | |
| 38 | + EulerStaticEuler.baseInverse 1 (field (linear β)) uniformL2Amplitude 1024 | |
| 39 | + uniformL2Amplitude_nonneg (by norm_num) (field_uniform_jet β hβ) | |
| 40 | + (velocity_divergence (linear β)) ell hell hell1 | |
| 41 | + | |
| 42 | +def solutionEvolution : Evolution (solutionParent β hβ ell hell hell1) := | |
| 43 | + EulerStaticEuler.baseEvolution 1 (field (linear β)) uniformL2Amplitude 1024 | |
| 44 | + uniformL2Amplitude_nonneg (by norm_num) (field_uniform_jet β hβ) | |
| 45 | + (velocity_divergence (linear β)) ell hell hell1 | |
| 46 | + | |
| 47 | +theorem solutionParent_time : (solutionParent β hβ ell hell hell1).T=solutionTime := rfl | |
| 48 | + | |
| 49 | +theorem solutionLabelData_constant : | |
| 50 | + (solutionLabelData β hβ ell hell hell1).K=solutionLabelConstant := rfl | |
| 51 | + | |
| 52 | +theorem solutionOddData : OddData (solutionParent β hβ ell hell hell1) := | |
| 53 | + EulerStaticEuler.baseOddData 1 (field (linear β)) uniformL2Amplitude 1024 | |
| 54 | + uniformL2Amplitude_nonneg (by norm_num) (field_uniform_jet β hβ) | |
| 55 | + (velocity_divergence (linear β)) ell hell hell1 (velocity_odd (linear β)) | |
| 56 | + | |
| 57 | +theorem solution_initial_velocity (x : Space) : | |
| 58 | + (solutionParent β hβ ell hell hell1).velocity.field ⟨0,le_rfl,solutionTime_pos.le⟩ x= | |
| 59 | + velocity (linear β) x := | |
| 60 | + EulerStaticEuler.baseParent_initial_velocity 1 (field (linear β)) uniformL2Amplitude 1024 | |
| 61 | + uniformL2Amplitude_nonneg (by norm_num) (field_uniform_jet β hβ) | |
| 62 | + (velocity_divergence (linear β)) ell hell hell1 x | |
| 63 | + | |
| 64 | +theorem solution_initial_gradient : | |
| 65 | + fderiv ℝ ((solutionParent β hβ ell hell hell1).velocity.field | |
| 66 | + ⟨0,le_rfl,solutionTime_pos.le⟩ : Space → Space) 0=linear β := by | |
| 67 | + have he : ((solutionParent β hβ ell hell hell1).velocity.field | |
| 68 | + ⟨0,le_rfl,solutionTime_pos.le⟩ : Space → Space)=velocity (linear β) := | |
| 69 | + funext (solution_initial_velocity β hβ ell hell hell1) | |
| 70 | + rw [he] | |
| 71 | + exact velocity_fderiv_plateau _ (linear_trace β) 0 (by simp) | |
| 72 | + | |
| 73 | +theorem solution_initial_support : | |
| 74 | + tsupport ((solutionParent β hβ ell hell hell1).velocity.field | |
| 75 | + ⟨0,le_rfl,solutionTime_pos.le⟩ : Space → Space) ⊆ Metric.closedBall 0 2 := by | |
| 76 | + have he : ((solutionParent β hβ ell hell hell1).velocity.field | |
| 77 | + ⟨0,le_rfl,solutionTime_pos.le⟩ : Space → Space)=velocity (linear β) := | |
| 78 | + funext (solution_initial_velocity β hβ ell hell hell1) | |
| 79 | + rw [he] | |
| 80 | + exact velocity_support _ | |
| 81 | + | |
| 82 | +theorem solution_origin_fixed (t : Icc (0 : ℝ) solutionTime) : | |
| 83 | + (solutionParent β hβ ell hell hell1).position t 0=0 := | |
| 84 | + (solutionOddData β hβ ell hell hell1).position_zero t | |
| 85 | + | |
| 86 | +omit β hβ ell hell hell1 in | |
| 87 | +theorem solutionLabelConstant_one : 1 ≤ solutionLabelConstant := | |
| 88 | + (solutionLabelData 0 (by norm_num) 1 zero_lt_one le_rfl).K_one | |
| 89 | + | |
| 90 | +end EulerBaseDatum | |
+82 −0 Euler/BaseEulerLabelData.lean added View file
| @@ -0,0 +1,82 @@ | ||
| 1 | +import Euler.BaseEulerFlowL2 | |
| 2 | +import Euler.ParentPacketLabelData | |
| 3 | + | |
| 4 | +/-! The three actual base-flow fields satisfy the source's fixed-H6 | |
| 5 | +label bound with one explicit constant, independent of derivative order. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +namespace EulerBaseEulerParent.L2Data | |
| 10 | + | |
| 11 | +open EulerParentPacketFrames EulerLpTranslation EulerParameterWordGevrey | |
| 12 | + EulerPacketParentLabelBounds Set | |
| 13 | + | |
| 14 | +variable {I : Input} (L : L2Data I) | |
| 15 | + | |
| 16 | +def labelCost : ℝ := | |
| 17 | + 1 + sobolevCoefficientAmplitude (Fin 3) 6 L.velocityRadius (I.T*L.C) + | |
| 18 | + sobolevCoefficientAmplitude (Fin 3) 6 L.velocityRadius L.C + | |
| 19 | + sobolevCoefficientAmplitude (Fin 3) 6 L.accelerationRadius L.accelerationAmplitude + | |
| 20 | + sobolevCoefficientRadius (Fin 3) L.velocityRadius + | |
| 21 | + sobolevCoefficientRadius (Fin 3) L.accelerationRadius | |
| 22 | + | |
| 23 | +private theorem costs_nonneg : | |
| 24 | + 0 ≤ sobolevCoefficientAmplitude (Fin 3) 6 L.velocityRadius (I.T*L.C) ∧ | |
| 25 | + 0 ≤ sobolevCoefficientAmplitude (Fin 3) 6 L.velocityRadius L.C ∧ | |
| 26 | + 0 ≤ sobolevCoefficientAmplitude (Fin 3) 6 L.accelerationRadius L.accelerationAmplitude ∧ | |
| 27 | + 0 ≤ sobolevCoefficientRadius (Fin 3) L.velocityRadius ∧ | |
| 28 | + 0 ≤ sobolevCoefficientRadius (Fin 3) L.accelerationRadius := | |
| 29 | + ⟨sobolevCoefficientAmplitude_nonneg 6 L.velocityRadius (I.T*L.C) | |
| 30 | + L.velocityRadius_nonneg (mul_nonneg I.T_pos.le L.C_nonneg), | |
| 31 | + sobolevCoefficientAmplitude_nonneg 6 L.velocityRadius L.C L.velocityRadius_nonneg L.C_nonneg, | |
| 32 | + sobolevCoefficientAmplitude_nonneg 6 L.accelerationRadius L.accelerationAmplitude | |
| 33 | + L.accelerationRadius_nonneg L.accelerationAmplitude_nonneg, | |
| 34 | + sobolevCoefficientRadius_nonneg L.velocityRadius L.velocityRadius_nonneg, | |
| 35 | + sobolevCoefficientRadius_nonneg L.accelerationRadius L.accelerationRadius_nonneg⟩ | |
| 36 | + | |
| 37 | +theorem labelCost_one : 1 ≤ L.labelCost := by | |
| 38 | + obtain ⟨h1,h2,h3,h4,h5⟩ := L.costs_nonneg | |
| 39 | + dsimp [labelCost] | |
| 40 | + linarith | |
| 41 | + | |
| 42 | +theorem displacement_labelBound (t : Icc (0 : ℝ) I.T) : | |
| 43 | + HasLabelBound L.labelCost (L.displacementField t) := by | |
| 44 | + obtain ⟨h1,h2,h3,h4,h5⟩ := L.costs_nonneg | |
| 45 | + apply SmoothL2Field.hasLabelBound_of_jet_bound (L.displacementField t) | |
| 46 | + (I.T*L.C) L.velocityRadius L.labelCost (mul_nonneg I.T_pos.le L.C_nonneg) | |
| 47 | + L.velocityRadius_nonneg (L.displacementField_bound t) | |
| 48 | + · dsimp [labelCost]; linarith | |
| 49 | + · dsimp [labelCost]; linarith | |
| 50 | + | |
| 51 | +theorem velocity_labelBound (t : Icc (0 : ℝ) I.T) : | |
| 52 | + HasLabelBound L.labelCost (L.velocityField t) := by | |
| 53 | + obtain ⟨h1,h2,h3,h4,h5⟩ := L.costs_nonneg | |
| 54 | + apply SmoothL2Field.hasLabelBound_of_jet_bound (L.velocityField t) | |
| 55 | + L.C L.velocityRadius L.labelCost L.C_nonneg L.velocityRadius_nonneg (L.velocityField_bound t) | |
| 56 | + · dsimp [labelCost]; linarith | |
| 57 | + · dsimp [labelCost]; linarith | |
| 58 | + | |
| 59 | +theorem acceleration_labelBound (t : Icc (0 : ℝ) I.T) : | |
| 60 | + HasLabelBound L.labelCost (L.accelerationField t) := by | |
| 61 | + obtain ⟨h1,h2,h3,h4,h5⟩ := L.costs_nonneg | |
| 62 | + apply SmoothL2Field.hasLabelBound_of_jet_bound (L.accelerationField t) | |
| 63 | + L.accelerationAmplitude L.accelerationRadius L.labelCost L.accelerationAmplitude_nonneg | |
| 64 | + L.accelerationRadius_nonneg (L.accelerationField_bound t) | |
| 65 | + · dsimp [labelCost]; linarith | |
| 66 | + · dsimp [labelCost]; linarith | |
| 67 | + | |
| 68 | +def labelData (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) : | |
| 69 | + LabelData (I.parent ell hell hell1) where | |
| 70 | + K := L.labelCost | |
| 71 | + K_one := L.labelCost_one | |
| 72 | + displacement := L.displacementField | |
| 73 | + velocity := L.velocityField | |
| 74 | + acceleration := L.accelerationField | |
| 75 | + displacement_match _ _ := rfl | |
| 76 | + velocity_match := L.velocityField_apply | |
| 77 | + acceleration_match := L.accelerationField_apply | |
| 78 | + displacement_bound := L.displacement_labelBound | |
| 79 | + velocity_bound := L.velocity_labelBound | |
| 80 | + acceleration_bound := L.acceleration_labelBound | |
| 81 | + | |
| 82 | +end EulerBaseEulerParent.L2Data | |
+178 −0 Euler/BaseEulerParent.lean added View file
| @@ -0,0 +1,178 @@ | ||
| 1 | +import Euler.ParentParticleInverse | |
| 2 | +import Euler.SmoothFlowDeformation | |
| 3 | +import Euler.SmoothTimeFieldRestriction | |
| 4 | + | |
| 5 | +/-! The genuine ordinary flow of a smooth divergence-free velocity gives | |
| 6 | +the first parent particle data. Its horizon can be shortened by an explicit | |
| 7 | +positive amount before applying the uniform flow-jet estimate. -/ | |
| 8 | + | |
| 9 | +noncomputable section | |
| 10 | + | |
| 11 | +namespace EulerBaseEulerParent | |
| 12 | + | |
| 13 | +open Set MeasureTheory EulerSmoothLimit EulerSmoothBanachFlow | |
| 14 | + EulerParentPacketFrames EulerVolterraConvolution EulerTimeIntervalRestriction | |
| 15 | +open scoped ContDiff BoundedContinuousFunction | |
| 16 | + | |
| 17 | +private local instance (n : ℕ) : NormedAddCommGroup (Space [×n]→L[ℝ] Space) := inferInstance | |
| 18 | +private local instance (n : ℕ) : NormedSpace ℝ (Space [×n]→L[ℝ] Space) := inferInstance | |
| 19 | +private local instance (n : ℕ) : NormedAddCommGroup (Space →ᵇ (Space [×n]→L[ℝ] Space)) := inferInstance | |
| 20 | +private local instance (n : ℕ) : NormedSpace ℝ (Space →ᵇ (Space [×n]→L[ℝ] Space)) := inferInstance | |
| 21 | + | |
| 22 | +structure Input where | |
| 23 | + T : ℝ | |
| 24 | + T_pos : 0 < T | |
| 25 | + field : SmoothTimeField (Icc (0 : ℝ) T) Space Space | |
| 26 | + derivative : SmoothTimeField (Icc (0 : ℝ) T) Space Space | |
| 27 | + time_derivative : SmoothTimeField.TimeDerivative T T_pos.le field derivative | |
| 28 | + divergence : ∀ t x, EulerSmoothLimit.divergence (field.field t) x=0 | |
| 29 | + B : ℝ | |
| 30 | + R : ℝ | |
| 31 | + B_nonneg : 0 ≤ B | |
| 32 | + R_pos : 0 < R | |
| 33 | + small : B*R*T ≤ 1/8 | |
| 34 | + bound : ∀ n, ‖field.jet n‖ ≤ B*R^n*(n.factorial : ℝ)^2 | |
| 35 | + | |
| 36 | +namespace Input | |
| 37 | + | |
| 38 | +variable (I : Input) | |
| 39 | + | |
| 40 | +def displacement : SmoothTimeField (Icc (0 : ℝ) I.T) Space Space := | |
| 41 | + displacementCoefficient I.T I.T_pos.le I.field I.B I.R I.B_nonneg I.R_pos I.small I.bound | |
| 42 | + | |
| 43 | +def velocity : SmoothTimeField (Icc (0 : ℝ) I.T) Space Space := | |
| 44 | + I.field.compDisplacement I.displacement | |
| 45 | + | |
| 46 | +def acceleration : SmoothTimeField (Icc (0 : ℝ) I.T) Space Space := | |
| 47 | + accelerationCoefficient I.T I.T_pos.le I.field I.B I.R I.B_nonneg I.R_pos I.small I.bound I.derivative | |
| 48 | + | |
| 49 | +@[simp] theorem displacement_apply (t : Icc (0 : ℝ) I.T) (x : Space) : | |
| 50 | + I.displacement.field t x=(flowData I.T I.T_pos.le I.field).forward t x-x := rfl | |
| 51 | + | |
| 52 | +@[simp] theorem velocity_apply (t : Icc (0 : ℝ) I.T) (x : Space) : | |
| 53 | + I.velocity.field t x=velocityFamily I.T I.T_pos.le I.field x t := by | |
| 54 | + change I.field.field t (x+I.displacement.field t x)=_ | |
| 55 | + rw [I.displacement_apply] | |
| 56 | + have he : x+((flowData I.T I.T_pos.le I.field).forward t x-x)= | |
| 57 | + (flowData I.T I.T_pos.le I.field).forward t x := by abel | |
| 58 | + rw [he] | |
| 59 | + rfl | |
| 60 | + | |
| 61 | +@[simp] theorem acceleration_apply (t : Icc (0 : ℝ) I.T) (x : Space) : | |
| 62 | + I.acceleration.field t x=accelerationFamily I.T I.T_pos.le I.field I.derivative x t := | |
| 63 | + accelerationCoefficient_apply I.T I.T_pos.le I.field I.B I.R I.B_nonneg I.R_pos | |
| 64 | + I.small I.bound I.derivative t x | |
| 65 | + | |
| 66 | +theorem displacement_time : SmoothTimeField.TimeDerivative I.T I.T_pos.le | |
| 67 | + I.displacement I.velocity := by | |
| 68 | + intro t x | |
| 69 | + have he : (fun s => I.displacement.realField I.T I.T_pos.le s x)= | |
| 70 | + extendPath I.T I.T_pos.le (displacementFamily I.T I.T_pos.le I.field x) := rfl | |
| 71 | + rw [he,I.velocity_apply] | |
| 72 | + exact displacementFamily_time_derivative I.T I.T_pos.le I.field x t | |
| 73 | + | |
| 74 | +theorem velocity_time : SmoothTimeField.TimeDerivative I.T I.T_pos.le | |
| 75 | + I.velocity I.acceleration := by | |
| 76 | + intro t x | |
| 77 | + have he : (fun s => I.velocity.realField I.T I.T_pos.le s x)= | |
| 78 | + extendPath I.T I.T_pos.le (velocityFamily I.T I.T_pos.le I.field x) := by | |
| 79 | + funext s | |
| 80 | + exact I.velocity_apply (projIcc 0 I.T I.T_pos.le s) x | |
| 81 | + rw [he,I.acceleration_apply] | |
| 82 | + exact velocityFamily_time_derivative I.T I.T_pos.le I.field I.derivative I.time_derivative x t | |
| 83 | + | |
| 84 | +theorem displacement_initial (x : Space) : I.displacement.field ⟨0,le_rfl,I.T_pos.le⟩ x=0 := by | |
| 85 | + rw [I.displacement_apply,(flowData I.T I.T_pos.le I.field).forward_zero,sub_self] | |
| 86 | + | |
| 87 | +theorem displacement_det (t : Icc (0 : ℝ) I.T) (x : Space) : | |
| 88 | + (ContinuousLinearMap.id ℝ Space+fderiv ℝ (I.displacement.field t : Space → Space) x).det=1 := by | |
| 89 | + rw [← I.displacement.derivativeField_eq t x] | |
| 90 | + change ((deformationCoefficient I.T I.T_pos.le I.field I.B I.R I.B_nonneg I.R_pos | |
| 91 | + I.small I.bound).field t x).det=1 | |
| 92 | + rw [deformationCoefficient_apply] | |
| 93 | + exact forward_det_one I.T I.T_pos.le I.field I.divergence t x | |
| 94 | + | |
| 95 | +def parent (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) : Parent where | |
| 96 | + T := I.T | |
| 97 | + T_pos := I.T_pos | |
| 98 | + ell := ell | |
| 99 | + ell_pos := hell | |
| 100 | + ell_le_one := hell1 | |
| 101 | + displacement := I.displacement | |
| 102 | + velocity := I.velocity | |
| 103 | + acceleration := I.acceleration | |
| 104 | + displacement_time := I.displacement_time | |
| 105 | + velocity_time := I.velocity_time | |
| 106 | + initial := I.displacement_initial | |
| 107 | + determinant t x := by | |
| 108 | + rw [EulerPacketVolumeDivergence.operatorMatrix_det] | |
| 109 | + exact I.displacement_det t (ell • x) | |
| 110 | + | |
| 111 | +theorem parent_position (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) | |
| 112 | + (t : Icc (0 : ℝ) I.T) (x : Space) : | |
| 113 | + (I.parent ell hell hell1).position t x=(flowData I.T I.T_pos.le I.field).forward t x := by | |
| 114 | + change x+I.displacement.field t x=_ | |
| 115 | + rw [I.displacement_apply] | |
| 116 | + abel | |
| 117 | + | |
| 118 | +def particleInverse (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) : | |
| 119 | + ParticleInverse (I.parent ell hell hell1) where | |
| 120 | + field t x := (flowData I.T I.T_pos.le I.field).backward t x | |
| 121 | + left_inverse t x := by | |
| 122 | + erw [I.parent_position ell hell hell1] | |
| 123 | + exact (flowData I.T I.T_pos.le I.field).backward_forward t x | |
| 124 | + right_inverse t x := by | |
| 125 | + erw [I.parent_position ell hell hell1] | |
| 126 | + exact (flowData I.T I.T_pos.le I.field).forward_backward t x | |
| 127 | + continuous := by | |
| 128 | + have hc : Continuous (fun q : Icc (0 : ℝ) I.T × Space => ((q.1 : ℝ),q.2)) := | |
| 129 | + (continuous_subtype_val.comp continuous_fst).prodMk continuous_snd | |
| 130 | + exact (flowData I.T I.T_pos.le I.field).backward_joint_continuous.comp hc | |
| 131 | + | |
| 132 | +theorem parent_velocity (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) | |
| 133 | + (t : Icc (0 : ℝ) I.T) (x : Space) : | |
| 134 | + (I.parent ell hell hell1).velocity.field t x= | |
| 135 | + I.field.field t ((I.parent ell hell hell1).position t x) := by | |
| 136 | + rw [I.parent_position] | |
| 137 | + exact I.velocity_apply t x | |
| 138 | + | |
| 139 | +end Input | |
| 140 | + | |
| 141 | +def horizon (T B R : ℝ) : ℝ := min T (1/(8*(1+B*R))) | |
| 142 | + | |
| 143 | +theorem horizon_pos (T B R : ℝ) (hT : 0 < T) (hB : 0 ≤ B) (hR : 0 ≤ R) : | |
| 144 | + 0 < horizon T B R := by | |
| 145 | + unfold horizon | |
| 146 | + apply lt_min hT | |
| 147 | + positivity | |
| 148 | + | |
| 149 | +theorem horizon_le (T B R : ℝ) : horizon T B R ≤ T := min_le_left _ _ | |
| 150 | + | |
| 151 | +theorem horizon_small (T B R : ℝ) (hT : 0 < T) (hB : 0 ≤ B) (hR : 0 ≤ R) : | |
| 152 | + B*R*horizon T B R ≤ 1/8 := by | |
| 153 | + have hp := horizon_pos T B R hT hB hR | |
| 154 | + have hd : 0 < 8*(1+B*R) := by positivity | |
| 155 | + have he := (le_div_iff₀ hd).1 (min_le_right T (1/(8*(1+B*R)))) | |
| 156 | + change horizon T B R*(8*(1+B*R)) ≤ 1 at he | |
| 157 | + nlinarith | |
| 158 | + | |
| 159 | +def ofInterval (T : ℝ) (hT : 0 < T) | |
| 160 | + (A A₁ : SmoothTimeField (Icc (0 : ℝ) T) Space Space) | |
| 161 | + (htime : SmoothTimeField.TimeDerivative T hT.le A A₁) | |
| 162 | + (hdiv : ∀ t x, EulerSmoothLimit.divergence (A.field t) x=0) | |
| 163 | + (B R : ℝ) (hB : 0 ≤ B) (hR : 0 < R) | |
| 164 | + (hb : ∀ n, ‖A.jet n‖ ≤ B*R^n*(n.factorial : ℝ)^2) : Input where | |
| 165 | + T := horizon T B R | |
| 166 | + T_pos := horizon_pos T B R hT hB hR.le | |
| 167 | + field := A.compTime (initialInclusion T (horizon T B R) (horizon_le T B R)) | |
| 168 | + derivative := A₁.compTime (initialInclusion T (horizon T B R) (horizon_le T B R)) | |
| 169 | + time_derivative := htime.restrictInitial (horizon_pos T B R hT hB hR.le).le (horizon_le T B R) | |
| 170 | + divergence t x := hdiv (initialInclusion T (horizon T B R) (horizon_le T B R) t) x | |
| 171 | + B := B | |
| 172 | + R := R | |
| 173 | + B_nonneg := hB | |
| 174 | + R_pos := hR | |
| 175 | + small := horizon_small T B R hT hB hR.le | |
| 176 | + bound n := (A.compTime_jet_norm _ n).trans (hb n) | |
| 177 | + | |
| 178 | +end EulerBaseEulerParent | |
+23 −0 Euler/BaseEulerParity.lean added View file
| @@ -0,0 +1,23 @@ | ||
| 1 | +import Euler.BaseEulerParent | |
| 2 | +import Euler.ParentPacketParity | |
| 3 | + | |
| 4 | +/-! Oddness of the genuine base velocity propagates through its actual | |
| 5 | +flow to the base parent, using ODE uniqueness. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +namespace EulerBaseEulerParent.Input | |
| 10 | + | |
| 11 | +open Set EulerSmoothLimit EulerSmoothBanachFlow EulerParentPacketFrames | |
| 12 | + | |
| 13 | +variable (I : Input) | |
| 14 | + | |
| 15 | +theorem oddData (hodd : ∀ t, Function.Odd (I.field.field t : Space → Space)) | |
| 16 | + (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) : OddData (I.parent ell hell hell1) := by | |
| 17 | + have hd (t : Icc (0 : ℝ) I.T) : Function.Odd (I.displacement.field t : Space → Space) := by | |
| 18 | + intro x | |
| 19 | + rw [I.displacement_apply,I.displacement_apply,forward_odd I.T I.T_pos.le I.field hodd t] | |
| 20 | + abel | |
| 21 | + exact { displacement := hd } | |
| 22 | + | |
| 23 | +end EulerBaseEulerParent.Input | |
+81 −0 Euler/BaseEulerSign.lean added View file
| @@ -0,0 +1,81 @@ | ||
| 1 | +import Euler.BaseEulerGuards | |
| 2 | +import Euler.ParentPacketStrainEvolution | |
| 3 | + | |
| 4 | +/-! The first pressure numerator stays positive for the actual evolving | |
| 5 | +normal and the actual homogeneous transverse velocity. Initial plateau | |
| 6 | +data are the only geometric inputs; all time equations are constructed. -/ | |
| 7 | + | |
| 8 | +noncomputable section | |
| 9 | + | |
| 10 | +namespace EulerBaseEulerGuards | |
| 11 | + | |
| 12 | +open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit | |
| 13 | + EulerParentPacketFrames EulerTransverseFrameCoordinates | |
| 14 | + EulerPacketFirstPressureSign EulerTimeIntervalRestriction | |
| 15 | + | |
| 16 | +variable {G : Parent} (L : LabelData G) | |
| 17 | + {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] | |
| 18 | + (m : Space) (hm : ‖m‖=1) (R : U ≃ₗᵢ[ℝ] referencePlane m) | |
| 19 | + (S : Set Space) (hS : IsCompact S) | |
| 20 | + | |
| 21 | +omit [CompleteSpace U] in | |
| 22 | +theorem source_normal_initial (x : Space) : | |
| 23 | + (G.transverseData m hm R S hS).normal.field G.zeroTime x=m := by | |
| 24 | + change (G.inverse.field G.zeroTime x).adjoint m=m | |
| 25 | + have hi : G.inverse.field G.zeroTime x=ContinuousLinearMap.id ℝ Space := by | |
| 26 | + apply ContinuousLinearMap.ext | |
| 27 | + exact G.inverse_initial x | |
| 28 | + rw [hi,adjoint_id,id_apply] | |
| 29 | + | |
| 30 | +omit [CompleteSpace U] in | |
| 31 | +theorem source_frame_initial (ξ : U) (x : Space) : | |
| 32 | + (G.transverseData m hm R S hS).frame.field G.zeroTime x ξ=(R ξ : Space) := by | |
| 33 | + change G.frame.field G.zeroTime x (R ξ : Space)=_ | |
| 34 | + rw [G.frame_initial,id_apply] | |
| 35 | + | |
| 36 | +theorem source_numerator_pos (ξ : U) (hξ : ‖ξ‖=1) (x : Space) | |
| 37 | + (h0 : ⟪m,G.initialStrain.field x (R ξ : Space)⟫_ℝ=1) | |
| 38 | + (hshort : coefficientCost L.K*G.T ≤ 1/2) | |
| 39 | + (hsmall : firstSignRate (coefficientCost L.K) (coefficientCost L.K)*G.T ≤ 1/2) | |
| 40 | + (t : Icc (0 : ℝ) G.T) : | |
| 41 | + 1/2 ≤ ⟪(G.transverseData m hm R S hS).normal.field t x, | |
| 42 | + G.strain.field t x (EulerPacketForwardFactorization.uncutVelocity | |
| 43 | + (G.transverseData m hm R S hS) ξ t x)⟫_ℝ := by | |
| 44 | + apply uncut_numerator_pos (G.transverseData m hm R S hS) ξ x | |
| 45 | + (fun s => G.curvature.field s x) (coefficientCost L.K) (coefficientCost L.K) | |
| 46 | + (coefficientCost_nonneg L.K) (coefficientCost_nonneg L.K) | |
| 47 | + (fun s => strain_norm L s x) (fun s => curvature_norm L s x) | |
| 48 | + (fun s => G.strain_within s x) _ _ _ hshort hsmall t | |
| 49 | + · change ‖(G.transverseData m hm R S hS).normal.field G.zeroTime x‖=1 | |
| 50 | + rw [source_normal_initial m hm R S hS] | |
| 51 | + exact hm | |
| 52 | + · change ‖(G.transverseData m hm R S hS).frame.field G.zeroTime x ξ‖=1 | |
| 53 | + rw [source_frame_initial m hm R S hS] | |
| 54 | + exact (R.norm_map ξ).trans hξ | |
| 55 | + · change ⟪(G.transverseData m hm R S hS).normal.field G.zeroTime x, | |
| 56 | + G.strain.field G.zeroTime x ((G.transverseData m hm R S hS).frame.field G.zeroTime x ξ)⟫_ℝ=1 | |
| 57 | + rw [source_normal_initial m hm R S hS,source_frame_initial m hm R S hS] | |
| 58 | + rw [G.strain_apply,comp_apply,G.inverse_initial] | |
| 59 | + exact h0 | |
| 60 | + | |
| 61 | +theorem source_numerator_pos_on (T : ℝ) (hT : 0 < T) (hTG : T ≤ G.T) | |
| 62 | + (hguard : T ≤ guardTime G.T L.K) (ξ : U) (hξ : ‖ξ‖=1) (x : Space) | |
| 63 | + (h0 : ⟪m,G.initialStrain.field x (R ξ : Space)⟫_ℝ=1) | |
| 64 | + (t : Icc (0 : ℝ) T) : | |
| 65 | + 1/2 ≤ ⟪((G.restrictTime T hT hTG).transverseData m hm R S hS).normal.field t x, | |
| 66 | + (G.restrictTime T hT hTG).strain.field t x | |
| 67 | + (EulerPacketForwardFactorization.uncutVelocity | |
| 68 | + ((G.restrictTime T hT hTG).transverseData m hm R S hS) ξ t x)⟫_ℝ := by | |
| 69 | + apply source_numerator_pos (L.restrictTime T hT hTG) m hm R S hS ξ hξ x _ _ _ t | |
| 70 | + · rw [G.restrictTime_initialStrain] | |
| 71 | + exact h0 | |
| 72 | + · have hh := (mul_le_mul_of_nonneg_left hguard (coefficientCost_nonneg L.K)).trans | |
| 73 | + (guardTime_small G.T L.K).1 | |
| 74 | + exact hh.trans (by norm_num) | |
| 75 | + · have hr : 0 ≤ firstSignRate (coefficientCost L.K) (coefficientCost L.K) := by | |
| 76 | + unfold firstSignRate | |
| 77 | + positivity [coefficientCost_nonneg L.K] | |
| 78 | + have hh := (mul_le_mul_of_nonneg_left hguard hr).trans (guardTime_small G.T L.K).2 | |
| 79 | + exact hh.trans (by norm_num) | |
| 80 | + | |
| 81 | +end EulerBaseEulerGuards | |
+43 −0 Euler/BaseEulerSobolev.lean added View file
| @@ -0,0 +1,43 @@ | ||
| 1 | +import Euler.BaseEulerInput | |
| 2 | +import Euler.StaticEulerForceField | |
| 3 | +import Euler.ParentEulerSobolev | |
| 4 | + | |
| 5 | +/-! The concrete local base evolution has actual continuous L² jets for | |
| 6 | +both velocity and pressure force. Consequently its Euler equation holds | |
| 7 | +strongly in every finite Sobolev order, including endpoint derivatives. -/ | |
| 8 | + | |
| 9 | +noncomputable section | |
| 10 | + | |
| 11 | +namespace EulerStaticEuler | |
| 12 | + | |
| 13 | +open Set EulerSmoothLimit EulerLpTranslation EulerParentPacketFrames | |
| 14 | + | |
| 15 | +variable (P : ℝ) [Fact (0 < P)] (u : SmoothL2Field Space) (C R : ℝ) | |
| 16 | + (hC : 0 ≤ C) (hR : 0 ≤ R) (hu : u.HasJetBound C R) | |
| 17 | + (hdiv : ∀ x, divergence u.field x=0) (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) | |
| 18 | + | |
| 19 | +def baseSobolevData : SobolevData (baseEvolution P u C R hC hR hu hdiv ell hell hell1) where | |
| 20 | + velocity t := localField P u C R hC hR hu hdiv (baseInclusion P C R hC hR t) | |
| 21 | + force t := localForceField P u C R hC hR hu hdiv (baseInclusion P C R hC hR t) | |
| 22 | + velocity_match t x := (localField_apply P u C R hC hR hu hdiv (baseInclusion P C R hC hR t) x).symm | |
| 23 | + force_match t x := (localForceField_apply P u C R hC hR hu hdiv (baseInclusion P C R hC hR t) x).symm | |
| 24 | + velocity_continuous n := (localField_jetLp_continuous P u C R hC hR hu hdiv n).comp | |
| 25 | + (baseInclusion P C R hC hR).continuous | |
| 26 | + force_continuous n := (localForceField_jetLp_continuous P u C R hC hR hu hdiv n).comp | |
| 27 | + (baseInclusion P C R hC hR).continuous | |
| 28 | + | |
| 29 | +end EulerStaticEuler | |
| 30 | + | |
| 31 | +namespace EulerBaseDatum | |
| 32 | + | |
| 33 | +open EulerParentPacketFrames | |
| 34 | + | |
| 35 | +private local instance : Fact (0 < (1 : ℝ)) := ⟨zero_lt_one⟩ | |
| 36 | + | |
| 37 | +def solutionSobolevData (β : ℝ) (hβ : |β| ≤ 1) (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) : | |
| 38 | + SobolevData (solutionEvolution β hβ ell hell hell1) := | |
| 39 | + EulerStaticEuler.baseSobolevData 1 (field (linear β)) uniformL2Amplitude 1024 | |
| 40 | + uniformL2Amplitude_nonneg (by norm_num) (field_uniform_jet β hβ) | |
| 41 | + (velocity_divergence (linear β)) ell hell hell1 | |
| 42 | + | |
| 43 | +end EulerBaseDatum | |
+148 −0 Euler/BaseEulerState.lean added View file
| @@ -0,0 +1,148 @@ | ||
| 1 | +import Euler.BaseEulerSobolev | |
| 2 | +import Euler.BaseEulerSign | |
| 3 | + | |
| 4 | +/-! The initial induction state is completely constructed from the | |
| 5 | +compact β-family. A single positive time and a single label constant | |
| 6 | +work for the family, with actual low-order guards and pressure sign. -/ | |
| 7 | + | |
| 8 | +noncomputable section | |
| 9 | + | |
| 10 | +namespace EulerBaseDatum | |
| 11 | + | |
| 12 | +open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit | |
| 13 | + EulerParentPacketFrames EulerBaseEulerGuards EulerTransverseFrameCoordinates | |
| 14 | + | |
| 15 | +def initialTime : ℝ := guardTime solutionTime solutionLabelConstant | |
| 16 | + | |
| 17 | +theorem initialTime_pos : 0 < initialTime := | |
| 18 | + guardTime_pos _ _ solutionTime_pos | |
| 19 | + | |
| 20 | +theorem initialTime_le : initialTime ≤ solutionTime := guardTime_le _ _ | |
| 21 | + | |
| 22 | +theorem initialTime_le_one : initialTime ≤ 1 := guardTime_le_one _ _ | |
| 23 | + | |
| 24 | +def initialCoefficientCost : ℝ := coefficientCost solutionLabelConstant | |
| 25 | + | |
| 26 | +theorem initialCoefficientCost_nonneg : 0 ≤ initialCoefficientCost := coefficientCost_nonneg _ | |
| 27 | + | |
| 28 | +theorem initialTime_small : | |
| 29 | + initialCoefficientCost*initialTime ≤ 1/4 ∧ | |
| 30 | + EulerPacketFirstPressureSign.firstSignRate initialCoefficientCost initialCoefficientCost*initialTime ≤ 1/4 := | |
| 31 | + guardTime_small _ _ | |
| 32 | + | |
| 33 | +variable (β : ℝ) (hβ : |β| ≤ 1) (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) | |
| 34 | + | |
| 35 | +def initialParent : Parent := | |
| 36 | + (solutionParent β hβ ell hell hell1).restrictTime initialTime initialTime_pos initialTime_le | |
| 37 | + | |
| 38 | +def initialLabelData : LabelData (initialParent β hβ ell hell hell1) := | |
| 39 | + (solutionLabelData β hβ ell hell hell1).restrictTime initialTime initialTime_pos initialTime_le | |
| 40 | + | |
| 41 | +def initialInverse : ParticleInverse (initialParent β hβ ell hell hell1) := | |
| 42 | + (solutionInverse β hβ ell hell hell1).restrictTime initialTime initialTime_pos initialTime_le | |
| 43 | + | |
| 44 | +def initialEvolution : Evolution (initialParent β hβ ell hell hell1) := | |
| 45 | + (solutionEvolution β hβ ell hell hell1).restrictTime initialTime initialTime_pos initialTime_le | |
| 46 | + | |
| 47 | +def initialSobolevData : SobolevData (initialEvolution β hβ ell hell hell1) := | |
| 48 | + (solutionSobolevData β hβ ell hell hell1).restrictTime initialTime initialTime_pos initialTime_le | |
| 49 | + | |
| 50 | +theorem initialOddData : OddData (initialParent β hβ ell hell hell1) := | |
| 51 | + (solutionOddData β hβ ell hell hell1).restrictTime initialTime initialTime_pos initialTime_le | |
| 52 | + | |
| 53 | +def initialLowBounds : LowBounds (initialParent β hβ ell hell hell1) := | |
| 54 | + lowBounds (solutionLabelData β hβ ell hell hell1) | |
| 55 | + | |
| 56 | +theorem initialLowBounds_values : | |
| 57 | + (initialLowBounds β hβ ell hell hell1).Be=initialCoefficientCost ∧ | |
| 58 | + (initialLowBounds β hβ ell hell hell1).Bc=0 ∧ | |
| 59 | + (initialLowBounds β hβ ell hell hell1).L=0 ∧ | |
| 60 | + (initialLowBounds β hβ ell hell hell1).r=0 ∧ | |
| 61 | + (initialLowBounds β hβ ell hell hell1).K=initialCoefficientCost := | |
| 62 | + ⟨rfl,rfl,rfl,rfl,rfl⟩ | |
| 63 | + | |
| 64 | +theorem initialParent_time : (initialParent β hβ ell hell hell1).T=initialTime := rfl | |
| 65 | + | |
| 66 | +theorem initialLabelData_constant : | |
| 67 | + (initialLabelData β hβ ell hell hell1).K=solutionLabelConstant := rfl | |
| 68 | + | |
| 69 | +theorem initial_velocity (x : Space) : | |
| 70 | + (initialParent β hβ ell hell hell1).velocity.field ⟨0,le_rfl,initialTime_pos.le⟩ x= | |
| 71 | + velocity (linear β) x := | |
| 72 | + solution_initial_velocity β hβ ell hell hell1 x | |
| 73 | + | |
| 74 | +theorem initial_velocity_support : | |
| 75 | + tsupport ((initialParent β hβ ell hell hell1).velocity.field | |
| 76 | + ⟨0,le_rfl,initialTime_pos.le⟩ : Space → Space) ⊆ Metric.closedBall 0 2 := by | |
| 77 | + rw [funext (initial_velocity β hβ ell hell hell1)] | |
| 78 | + exact velocity_support _ | |
| 79 | + | |
| 80 | +theorem solution_initialStrain (x : Space) (hx : ‖ell • x‖ < 1) : | |
| 81 | + (solutionParent β hβ ell hell hell1).initialStrain.field x=linear β := by | |
| 82 | + rw [Parent.initialStrain_apply,Parent.first_apply] | |
| 83 | + have he : ((solutionParent β hβ ell hell hell1).velocity.field | |
| 84 | + (solutionParent β hβ ell hell hell1).zeroTime : Space → Space)=velocity (linear β) := | |
| 85 | + funext (solution_initial_velocity β hβ ell hell hell1) | |
| 86 | + rw [he] | |
| 87 | + exact velocity_fderiv_plateau _ (linear_trace β) (ell • x) hx | |
| 88 | + | |
| 89 | +theorem initialStrain_plateau (x : Space) (hx : ‖ell • x‖ < 1) : | |
| 90 | + (initialParent β hβ ell hell hell1).initialStrain.field x=linear β := by | |
| 91 | + change ((solutionParent β hβ ell hell hell1).restrictTime initialTime initialTime_pos | |
| 92 | + initialTime_le).initialStrain.field x=linear β | |
| 93 | + erw [Parent.restrictTime_initialStrain] | |
| 94 | + exact solution_initialStrain β hβ ell hell hell1 x hx | |
| 95 | + | |
| 96 | +theorem initial_strain_bound (t : Icc (0 : ℝ) initialTime) (x : Space) : | |
| 97 | + ‖(initialParent β hβ ell hell hell1).strain.field t x‖ ≤ initialCoefficientCost := | |
| 98 | + strain_norm (initialLabelData β hβ ell hell hell1) t x | |
| 99 | + | |
| 100 | +theorem initial_curvature_bound (t : Icc (0 : ℝ) initialTime) (x : Space) : | |
| 101 | + ‖(initialParent β hβ ell hell hell1).curvature.field t x‖ ≤ initialCoefficientCost := | |
| 102 | + curvature_norm (initialLabelData β hβ ell hell hell1) t x | |
| 103 | + | |
| 104 | +theorem initial_origin_fixed (t : Icc (0 : ℝ) initialTime) : | |
| 105 | + (initialParent β hβ ell hell hell1).position t 0=0 := | |
| 106 | + (initialOddData β hβ ell hell hell1).position_zero t | |
| 107 | + | |
| 108 | +variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] | |
| 109 | + (R : U ≃ₗᵢ[ℝ] referencePlane (EuclideanSpace.single 0 1 : Space)) | |
| 110 | + (ξ : U) (hξ : (R ξ : Space)=EuclideanSpace.single 1 1) | |
| 111 | + (S : Set Space) (hS : IsCompact S) | |
| 112 | + | |
| 113 | +include hξ in | |
| 114 | +theorem initial_pressure_numerator (t : Icc (0 : ℝ) initialTime) | |
| 115 | + (x : Space) (hx : ‖ell • x‖ < 1) : | |
| 116 | + 1/2 ≤ ⟪((initialParent β hβ ell hell hell1).transverseData | |
| 117 | + (EuclideanSpace.single 0 1) (by simp) R S hS).normal.field t x, | |
| 118 | + (initialParent β hβ ell hell hell1).strain.field t x | |
| 119 | + (EulerPacketForwardFactorization.uncutVelocity | |
| 120 | + ((initialParent β hβ ell hell hell1).transverseData | |
| 121 | + (EuclideanSpace.single 0 1) (by simp) R S hS) ξ t x)⟫_ℝ := by | |
| 122 | + have hξnorm : ‖ξ‖=1 := by | |
| 123 | + have hn : ‖(R ξ : Space)‖=1 := by rw [hξ]; simp | |
| 124 | + exact (R.norm_map ξ).symm.trans hn | |
| 125 | + apply source_numerator_pos (initialLabelData β hβ ell hell hell1) | |
| 126 | + (EuclideanSpace.single 0 1) (by simp) R S hS ξ hξnorm x _ _ _ t | |
| 127 | + · rw [initialStrain_plateau β hβ ell hell hell1 x hx,hξ,linear_q] | |
| 128 | + simp [EuclideanSpace.inner_single_left,PiLp.add_apply,PiLp.smul_apply] | |
| 129 | + · exact initialTime_small.1.trans (by norm_num) | |
| 130 | + · exact initialTime_small.2.trans (by norm_num) | |
| 131 | + | |
| 132 | +include hξ in | |
| 133 | +theorem initial_pressure_numerator_on_support (t : Icc (0 : ℝ) initialTime) | |
| 134 | + (x : Space) (hx : x ∈ tsupport EulerSpatialCutoffs.innerCutoff) : | |
| 135 | + 1/2 ≤ ⟪((initialParent β hβ ell hell hell1).transverseData | |
| 136 | + (EuclideanSpace.single 0 1) (by simp) R S hS).normal.field t x, | |
| 137 | + (initialParent β hβ ell hell hell1).strain.field t x | |
| 138 | + (EulerPacketForwardFactorization.uncutVelocity | |
| 139 | + ((initialParent β hβ ell hell hell1).transverseData | |
| 140 | + (EuclideanSpace.single 0 1) (by simp) R S hS) ξ t x)⟫_ℝ := by | |
| 141 | + apply initial_pressure_numerator β hβ ell hell hell1 R ξ hξ S hS t x | |
| 142 | + have hn : ‖x‖ < (1/2 : ℝ) := by | |
| 143 | + simpa only [Metric.mem_ball,dist_zero_right] using EulerSpatialCutoffs.innerCutoff_support hx | |
| 144 | + rw [norm_smul,Real.norm_eq_abs,abs_of_pos hell] | |
| 145 | + have hb := mul_le_mul_of_nonneg_right hell1 (norm_nonneg x) | |
| 146 | + nlinarith | |
| 147 | + | |
| 148 | +end EulerBaseDatum | |
+88 −0 Euler/BaseEulerUniform.lean added View file
| @@ -0,0 +1,88 @@ | ||
| 1 | +import Euler.BaseEulerGevrey | |
| 2 | + | |
| 3 | +/-! A single factorial budget for every base datum with |β|≤1. | |
| 4 | +In particular this covers β=x₀⁻² with x₀≥1, independently of the | |
| 5 | +eventual frequency and iteration scales. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +namespace EulerBaseDatum | |
| 10 | + | |
| 11 | +open Set EulerSmoothLimit EulerGevrey EulerLpTranslation EulerPacketPiola | |
| 12 | + EulerPacketParentLabelBounds EulerMeanClassicalWordBounds EulerParameterWordGevrey | |
| 13 | + | |
| 14 | +def uniformAmplitude : ℝ := 1+‖curlOperator‖*(3*(3*cutoffAmplitude*(24*2))*256) | |
| 15 | + | |
| 16 | +theorem uniformAmplitude_pos : 0 < uniformAmplitude := by | |
| 17 | + have h := cutoffAmplitude_nonneg | |
| 18 | + unfold uniformAmplitude | |
| 19 | + positivity | |
| 20 | + | |
| 21 | +theorem velocityAmplitude_le_uniform (β : ℝ) (hβ : |β| ≤ 1) : | |
| 22 | + velocityAmplitude (linear β) ≤ uniformAmplitude := by | |
| 23 | + have hL : ‖linear β‖ ≤ 2 := (linear_norm β).trans (by linarith) | |
| 24 | + have hc := cutoffAmplitude_nonneg | |
| 25 | + calc | |
| 26 | + velocityAmplitude (linear β) ≤ ‖curlOperator‖*(3*(3*cutoffAmplitude*(24*2))*256) := by | |
| 27 | + unfold velocityAmplitude potentialAmplitude | |
| 28 | + gcongr | |
| 29 | + _ ≤ uniformAmplitude := by unfold uniformAmplitude; linarith | |
| 30 | + | |
| 31 | +theorem velocity_uniform_sup (β : ℝ) (hβ : |β| ≤ 1) : | |
| 32 | + HasSupBound (velocity (linear β)) uniformAmplitude 1024 := | |
| 33 | + (velocity_sup_bound (linear β)).mono (velocityAmplitude_nonneg _) (by norm_num) | |
| 34 | + (velocityAmplitude_le_uniform β hβ) le_rfl | |
| 35 | + | |
| 36 | +def uniformL2Amplitude : ℝ := uniformAmplitude*volumeFactor | |
| 37 | + | |
| 38 | +theorem uniformL2Amplitude_nonneg : 0 ≤ uniformL2Amplitude := | |
| 39 | + mul_nonneg uniformAmplitude_pos.le volumeFactor_nonneg | |
| 40 | + | |
| 41 | +theorem field_uniform_jet (β : ℝ) (hβ : |β| ≤ 1) : | |
| 42 | + (field (linear β)).HasJetBound uniformL2Amplitude 1024 := | |
| 43 | + (field_jet_bound (linear β)).mono | |
| 44 | + (mul_nonneg (velocityAmplitude_nonneg _) volumeFactor_nonneg) (by norm_num) | |
| 45 | + (mul_le_mul_of_nonneg_right (velocityAmplitude_le_uniform β hβ) volumeFactor_nonneg) le_rfl | |
| 46 | + | |
| 47 | +def uniformLabelBound : ℝ := | |
| 48 | + 1+sobolevCoefficientAmplitude (Fin 3) 6 1024 uniformL2Amplitude+ | |
| 49 | + sobolevCoefficientRadius (Fin 3) 1024 | |
| 50 | + | |
| 51 | +theorem uniformLabelBound_one : 1 ≤ uniformLabelBound := by | |
| 52 | + have ha := sobolevCoefficientAmplitude_nonneg (ι := Fin 3) 6 1024 uniformL2Amplitude | |
| 53 | + (by norm_num) uniformL2Amplitude_nonneg | |
| 54 | + have hr := sobolevCoefficientRadius_nonneg (ι := Fin 3) 1024 (by norm_num) | |
| 55 | + unfold uniformLabelBound | |
| 56 | + linarith | |
| 57 | + | |
| 58 | +theorem field_uniform_label (β : ℝ) (hβ : |β| ≤ 1) : | |
| 59 | + HasLabelBound uniformLabelBound (field (linear β)) := by | |
| 60 | + have ha := sobolevCoefficientAmplitude_nonneg (ι := Fin 3) 6 1024 uniformL2Amplitude | |
| 61 | + (by norm_num) uniformL2Amplitude_nonneg | |
| 62 | + have hr := sobolevCoefficientRadius_nonneg (ι := Fin 3) 1024 (by norm_num) | |
| 63 | + apply SmoothL2Field.hasLabelBound_of_jet_bound (field (linear β)) uniformL2Amplitude | |
| 64 | + 1024 uniformLabelBound uniformL2Amplitude_nonneg (by norm_num) (field_uniform_jet β hβ) | |
| 65 | + · unfold uniformLabelBound | |
| 66 | + linarith | |
| 67 | + · unfold uniformLabelBound | |
| 68 | + linarith | |
| 69 | + | |
| 70 | +theorem field_uniform_Hq (β : ℝ) (hβ : |β| ≤ 1) (q n : ℕ) : | |
| 71 | + classicalBlockSize direction q (field (linear β)).toLp | |
| 72 | + (field (linear β)).translation_contDiff n ≤ | |
| 73 | + sobolevCoefficientAmplitude (Fin 3) q 1024 uniformL2Amplitude* | |
| 74 | + (sobolevCoefficientRadius (Fin 3) 1024)^n*(n.factorial : ℝ)^2 := | |
| 75 | + SmoothL2Field.classicalBlockSize_of_jet_bound direction (by intro i; simp [direction]) q | |
| 76 | + (field (linear β)) uniformL2Amplitude 1024 uniformL2Amplitude_nonneg (by norm_num) | |
| 77 | + (field_uniform_jet β hβ) n | |
| 78 | + | |
| 79 | +theorem beta_bound (x₀ : ℝ) (hx : 1 ≤ x₀) : |(x₀^2)⁻¹| ≤ 1 := by | |
| 80 | + have hpow : (1 : ℝ) ≤ x₀^2 := one_le_pow₀ hx | |
| 81 | + rw [abs_of_nonneg (inv_nonneg.mpr (sq_nonneg x₀))] | |
| 82 | + exact inv_le_one_of_one_le₀ hpow | |
| 83 | + | |
| 84 | +theorem initial_gradient (x₀ : ℝ) : | |
| 85 | + fderiv ℝ (field (linear ((x₀^2)⁻¹))).field 0=linear ((x₀^2)⁻¹) := | |
| 86 | + velocity_fderiv_plateau _ (linear_trace _) 0 (by simp) | |
| 87 | + | |
| 88 | +end EulerBaseDatum | |
+78 −0 Euler/BaseFirstPacket.lean added View file
| @@ -0,0 +1,78 @@ | ||
| 1 | +import Euler.BasePacketLowBounds | |
| 2 | +import Euler.ParentInitializedState | |
| 3 | +import Euler.ParentFirstPacketLowGuards | |
| 4 | + | |
| 5 | +/-! The first packet over the concrete base solution produces an actual | |
| 6 | +smooth Euler state and its localized source bounds. All analytic input | |
| 7 | +comes from the same initialized correction, graph flow, and error bounds. -/ | |
| 8 | + | |
| 9 | +noncomputable section | |
| 10 | + | |
| 11 | +namespace EulerBaseDatum | |
| 12 | + | |
| 13 | +open Set EulerSmoothLimit EulerParentPacketFrames EulerPacketSupport | |
| 14 | + EulerAllOrderDriftCorrection EulerGraphInvariantFlow EulerPacketTerminalDatum | |
| 15 | + EulerPacketFirstLowBounds EulerMeanHarmonic | |
| 16 | + | |
| 17 | +variable (β : ℝ) (hβ : |β| ≤ 1) (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) | |
| 18 | + (T : ℝ) (hT : 0 < T) (hTB : T ≤ initialTime) | |
| 19 | + | |
| 20 | +def firstPacketMeanData : EulerMeanPacketProvider.Data := | |
| 21 | + (packetBaseParent β hβ ell hell hell1 T hT hTB).meanData | |
| 22 | + (packetBaseLowBounds β hβ ell hell hell1 T hT hTB) | |
| 23 | + | |
| 24 | +theorem firstPacketAgreement : EulerPacketCylinderField.SourceCoefficientAgreement | |
| 25 | + (firstPacketMeanData β hβ ell hell hell1 T hT hTB) | |
| 26 | + (firstPacketData β hβ ell hell hell1 T hT hTB) := | |
| 27 | + (packetBaseParent β hβ ell hell hell1 T hT hTB).sourceAgreement | |
| 28 | + firstNormal firstNormal_unit firstFrame support compact | |
| 29 | + (packetBaseLowBounds β hβ ell hell hell1 T hT hTB) | |
| 30 | + | |
| 31 | +variable (δ : ℝ) (hδ : 0 < δ) (hchild : ℝ) | |
| 32 | + (N : ℕ) (hN : 1 ≤ N) (k : ℝ) (hk : 4 ≤ k) | |
| 33 | + (Q : Budget period hT | |
| 34 | + (forwardInitializedCorrectionData (firstPacketMeanData β hβ ell hell hell1 T hT hTB) | |
| 35 | + (firstPacketData β hβ ell hell hell1 T hT hTB) rfl δ hδ firstCoordinate | |
| 36 | + (subset_refl _) (δ*hchild) (firstPacketAgreement β hβ ell hell hell1 T hT hTB) N hN k hk)) | |
| 37 | + (G : EulerPhysicalGraphFlowBounds.Data period T) | |
| 38 | + (hG : G.A=Q.liftedPacketCoefficient period | |
| 39 | + (forwardInitializedNormalizedField (firstPacketMeanData β hβ ell hell hell1 T hT hTB) | |
| 40 | + (firstPacketData β hβ ell hell hell1 T hT hTB) rfl δ hδ firstCoordinate (subset_refl _) (δ*hchild) N k)) | |
| 41 | + (hgraph : ∀ t q, graphConstraint k firstNormal (G.A.field t q)=0) | |
| 42 | + (nextEll : ℝ) (hnext : 0 < nextEll) (hnext1 : nextEll ≤ 1) | |
| 43 | + | |
| 44 | +def firstPacketState | |
| 45 | + (labels : LabelData ((packetBaseParent β hβ ell hell hell1 T hT hTB).child | |
| 46 | + G k firstNormal hgraph nextEll hnext hnext1)) : | |
| 47 | + SmoothState ((packetBaseParent β hβ ell hell hell1 T hT hTB).child | |
| 48 | + G k firstNormal hgraph nextEll hnext hnext1) := | |
| 49 | + (packetBaseState β hβ ell hell hell1 T hT hTB).forwardChild | |
| 50 | + (packetBaseLowBounds β hβ ell hell hell1 T hT hTB) | |
| 51 | + firstNormal firstNormal_unit firstFrame support compact symmetric | |
| 52 | + δ hδ firstCoordinate (subset_refl _) (δ*hchild) N hN k hk Q G hG hgraph nextEll hnext hnext1 labels | |
| 53 | + | |
| 54 | +def firstPacketLowBounds (hquarter : ell ≤ 1/4) (hδ1 : δ ≤ 1) (hhchild : 0 ≤ hchild) | |
| 55 | + (ev ep : ℝ) | |
| 56 | + (herr : (packetBaseState β hβ ell hell hell1 T hT hTB).evolution.HomogeneousSourceErrors | |
| 57 | + firstNormal firstNormal_unit firstFrame support compact Q | |
| 58 | + (forwardInitializedApproximationResidual (firstPacketMeanData β hβ ell hell hell1 T hT hTB) | |
| 59 | + (firstPacketData β hβ ell hell hell1 T hT hTB) rfl δ hδ firstCoordinate (subset_refl _) (δ*hchild) | |
| 60 | + (firstPacketAgreement β hβ ell hell hell1 T hT hTB) N hN k hk) | |
| 61 | + k δ hchild firstCoordinate ev ep) | |
| 62 | + (hsmall : (initialCoefficientCost+2*initialCoefficientCost*δ*(hchild*firstRatio)+ep)*(T^2/2)+ | |
| 63 | + initialCoefficientCost*T+ | |
| 64 | + boundaryLocalizationC2*(initialCoefficientCost+hchild*firstRatio+ev)*ell^3*T ≤ 1/2) : | |
| 65 | + LowBounds ((packetBaseParent β hβ ell hell hell1 T hT hTB).child | |
| 66 | + G k firstNormal hgraph nextEll hnext hnext1) := | |
| 67 | + (packetBaseState β hβ ell hell hell1 T hT hTB).evolution.firstChildLowBounds | |
| 68 | + (packetBaseLowBounds β hβ ell hell hell1 T hT hTB) | |
| 69 | + firstNormal firstNormal_unit firstFrame support compact δ hδ hδ1 hchild hhchild | |
| 70 | + firstCoordinate (subset_refl _) N hN k hk Q G hG hgraph nextEll hnext hnext1 | |
| 71 | + rfl hquarter (subset_halfBall.trans Metric.ball_subset_closedBall) | |
| 72 | + ev ep initialCoefficientCost initialCoefficientCost herr | |
| 73 | + (firstPacket_primary_size β hβ ell hell hell1 T hT hTB) | |
| 74 | + (firstPacket_primary_flux β hβ ell hell hell1 T hT hTB) | |
| 75 | + (packetBase_physical_strain β hβ ell hell hell1 T hT hTB) | |
| 76 | + (packetBase_physical_force β hβ ell hell hell1 T hT hTB) hsmall | |
| 77 | + | |
| 78 | +end EulerBaseDatum | |
+109 −0 Euler/BaseFirstPacketChoice.lean added View file
| @@ -0,0 +1,109 @@ | ||
| 1 | +import Euler.BaseFirstPacket | |
| 2 | +import Euler.ParentForwardInitialSupport | |
| 3 | +import Euler.BasePacketUniformCosts | |
| 4 | +import Euler.ParentUniformForwardChild | |
| 5 | + | |
| 6 | +/-! One actual first-packet correction, its physical flow, labels and | |
| 7 | +source errors. The uniform scalar frequency guard constructs the record. -/ | |
| 8 | + | |
| 9 | +noncomputable section | |
| 10 | + | |
| 11 | +namespace EulerBaseDatum | |
| 12 | + | |
| 13 | +open Set EulerSmoothLimit EulerParentPacketFrames EulerPacketSupport | |
| 14 | + EulerAllOrderDriftCorrection EulerGraphInvariantFlow EulerPacketTerminalDatum | |
| 15 | + EulerPacketSourceFrequency EulerPacketUniformSource EulerPacketPhysicalLowBounds | |
| 16 | + EulerPacketFirstLowBounds EulerMeanHarmonic | |
| 17 | + | |
| 18 | +variable (β : ℝ) (hβ : |β| ≤ 1) (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) | |
| 19 | + (T : ℝ) (hT : 0 < T) (hTB : T ≤ initialTime) | |
| 20 | + (δ : ℝ) (hδ : 0 < δ) (hchild k : ℝ) (hk : UniversalFrequency k) | |
| 21 | + (nextEll : ℝ) (hnext : 0 < nextEll) (hnext1 : nextEll ≤ 1) | |
| 22 | + | |
| 23 | +section ConstructorInjectivity | |
| 24 | + | |
| 25 | +attribute [local irreducible] Parent.child initialParent | |
| 26 | + | |
| 27 | +structure FirstPacketChoice where | |
| 28 | + hn : 1 ≤ truncation k | |
| 29 | + Q : Budget period hT | |
| 30 | + (forwardInitializedCorrectionData (firstPacketMeanData β hβ ell hell hell1 T hT hTB) | |
| 31 | + (firstPacketData β hβ ell hell hell1 T hT hTB) rfl δ hδ firstCoordinate | |
| 32 | + (subset_refl _) (δ*hchild) (firstPacketAgreement β hβ ell hell hell1 T hT hTB) | |
| 33 | + (truncation k) hn k hk.four) | |
| 34 | + G : EulerPhysicalGraphFlowBounds.Data period T | |
| 35 | + graph : ∀ t q, graphConstraint k firstNormal (G.A.field t q)=0 | |
| 36 | + coefficient : G.A=Q.liftedPacketCoefficient period | |
| 37 | + (forwardInitializedNormalizedField (firstPacketMeanData β hβ ell hell hell1 T hT hTB) | |
| 38 | + (firstPacketData β hβ ell hell hell1 T hT hTB) rfl δ hδ firstCoordinate (subset_refl _) | |
| 39 | + (δ*hchild) (truncation k) k) | |
| 40 | + labels : LabelData ((packetBaseParent β hβ ell hell hell1 T hT hTB).child | |
| 41 | + G k firstNormal graph nextEll hnext hnext1) | |
| 42 | + label_constant : labels.K=k^80 | |
| 43 | + displacement_bound : ∀ (t : Icc (0 : ℝ) T) (x : Space), | |
| 44 | + ‖(G.displacementField k firstNormal ell hell t).field x‖ ≤ k^(-(1/4 : ℝ)) | |
| 45 | + errors : (packetBaseState β hβ ell hell hell1 T hT hTB).evolution.HomogeneousSourceErrors | |
| 46 | + firstNormal firstNormal_unit firstFrame support compact Q | |
| 47 | + (forwardInitializedApproximationResidual (firstPacketMeanData β hβ ell hell hell1 T hT hTB) | |
| 48 | + (firstPacketData β hβ ell hell hell1 T hT hTB) rfl δ hδ firstCoordinate (subset_refl _) | |
| 49 | + (δ*hchild) (firstPacketAgreement β hβ ell hell hell1 T hT hTB) (truncation k) hn k hk.four) | |
| 50 | + k δ hchild firstCoordinate (k^(-(1/4 : ℝ))) (k^(-(1/4 : ℝ))) | |
| 51 | + | |
| 52 | +end ConstructorInjectivity | |
| 53 | + | |
| 54 | +theorem exists_firstPacketChoice (hδ1 : δ ≤ 1) (hh : 0 < hchild) | |
| 55 | + (hfrequency : EulerPacketInitializedOutputCost.uniformConstant* | |
| 56 | + (profileEnvelope (firstParameterSize T δ hchild))^EulerPacketInitializedOutputCost.uniformPower ≤ | |
| 57 | + smallPower k) | |
| 58 | + (hKk : solutionLabelConstant ≤ k) (hinv : ell⁻¹ ≤ k^(3/4 : ℝ)) : | |
| 59 | + Nonempty (FirstPacketChoice β hβ ell hell hell1 T hT hTB δ hδ hchild k hk nextEll hnext hnext1) := by | |
| 60 | + let A := packetBaseParent β hβ ell hell hell1 T hT hTB | |
| 61 | + let S := packetBaseState β hβ ell hell hell1 T hT hTB | |
| 62 | + let H := packetBaseLowBounds β hβ ell hell hell1 T hT hTB | |
| 63 | + let J := firstPacketInputs β hβ ell hell hell1 T hT hTB | |
| 64 | + have hp := firstPacket_uniform_primitives β hβ ell hell hell1 T hT hTB δ hδ hδ1 hchild hh.le | |
| 65 | + obtain ⟨hn,Q,G,hgraph,hG,herror,hdisplacement,LC,hLC⟩ := S.labels.forward_uniform_child S.evolution.inverse H | |
| 66 | + firstNormal firstNormal_unit firstFrame support compact J δ hδ hδ1 firstCoordinate (subset_refl _) | |
| 67 | + (δ*hchild) (mul_pos hδ hh) (profileEnvelope (firstParameterSize T δ hchild)) hp.1 hp.2.1 | |
| 68 | + k hk hfrequency hKk hinv nextEll hnext hnext1 | |
| 69 | + refine ⟨⟨hn,Q,G,hgraph,hG,LC,hLC,hdisplacement,?_⟩⟩ | |
| 70 | + intro t x | |
| 71 | + constructor | |
| 72 | + · erw [A.normalizedPacketVelocity_forwardInitialized H firstNormal firstNormal_unit | |
| 73 | + firstFrame support compact δ hδ firstCoordinate (subset_refl _) (δ*hchild) | |
| 74 | + (truncation k) hn k hk.four Q S.evolution.inverse t] | |
| 75 | + exact (herror t x).1 | |
| 76 | + · erw [A.normalizedPacketPressure_forwardInitialized H firstNormal firstNormal_unit | |
| 77 | + firstFrame support compact δ hδ firstCoordinate (subset_refl _) (δ*hchild) | |
| 78 | + (truncation k) hn k hk.four Q S.evolution.inverse t] | |
| 79 | + conv_lhs => | |
| 80 | + enter [1, 2] | |
| 81 | + erw [forwardPressureTerm_eq_coefficient | |
| 82 | + (D := A.transverseData firstNormal firstNormal_unit firstFrame support compact) | |
| 83 | + firstCoordinate] | |
| 84 | + exact (herror t x).2 | |
| 85 | + | |
| 86 | +namespace FirstPacketChoice | |
| 87 | + | |
| 88 | +variable (F : FirstPacketChoice β hβ ell hell hell1 T hT hTB δ hδ hchild k hk nextEll hnext hnext1) | |
| 89 | + | |
| 90 | +def parent : Parent := (packetBaseParent β hβ ell hell hell1 T hT hTB).child | |
| 91 | + F.G k firstNormal F.graph nextEll hnext hnext1 | |
| 92 | + | |
| 93 | +def state : SmoothState F.parent := | |
| 94 | + firstPacketState β hβ ell hell hell1 T hT hTB δ hδ hchild (truncation k) F.hn k hk.four | |
| 95 | + F.Q F.G F.coefficient F.graph nextEll hnext hnext1 F.labels | |
| 96 | + | |
| 97 | +theorem state_label_constant : F.state.labels.K=k^80 := F.label_constant | |
| 98 | + | |
| 99 | +def lowBounds (hquarter : ell ≤ 1/4) (hδ1 : δ ≤ 1) (hh : 0 ≤ hchild) | |
| 100 | + (hsmall : (initialCoefficientCost+2*initialCoefficientCost*δ*(hchild*firstRatio)+k^(-(1/4 : ℝ)))*(T^2/2)+ | |
| 101 | + initialCoefficientCost*T+ | |
| 102 | + boundaryLocalizationC2*(initialCoefficientCost+hchild*firstRatio+k^(-(1/4 : ℝ)))*ell^3*T ≤ 1/2) : | |
| 103 | + LowBounds F.parent := | |
| 104 | + firstPacketLowBounds β hβ ell hell hell1 T hT hTB δ hδ hchild (truncation k) F.hn k hk.four | |
| 105 | + F.Q F.G F.coefficient F.graph nextEll hnext hnext1 hquarter hδ1 hh | |
| 106 | + (k^(-(1/4 : ℝ))) (k^(-(1/4 : ℝ))) F.errors hsmall | |
| 107 | + | |
| 108 | +end FirstPacketChoice | |
| 109 | +end EulerBaseDatum | |
+126 −0 Euler/BaseFirstPacketEvolution.lean added View file
| @@ -0,0 +1,126 @@ | ||
| 1 | +import Euler.BaseFirstPacketChoice | |
| 2 | +import Euler.BasePacketFrameValues | |
| 3 | +import Euler.ParentPacketStateGeometry | |
| 4 | + | |
| 5 | +/-! The first constructed packet supplies the physical low bounds and | |
| 6 | +the actual center expansion needed by the first normal stage. -/ | |
| 7 | + | |
| 8 | +noncomputable section | |
| 9 | + | |
| 10 | +namespace EulerParentPacketFrames.SmoothState | |
| 11 | + | |
| 12 | +open Set EulerSmoothLimit EulerTransverseFrameCoordinates | |
| 13 | + EulerAllOrderDriftCorrection EulerGraphInvariantFlow EulerPacketTerminalDatum | |
| 14 | + EulerPacketProfileRecursion EulerSpatialCutoffs | |
| 15 | + | |
| 16 | +variable {A : Parent} (S : SmoothState A) (H : LowBounds A) | |
| 17 | + {U : Type} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] | |
| 18 | + (m : Space) (hm : ‖m‖=1) (J : U ≃ₗᵢ[ℝ] referencePlane m) | |
| 19 | + (support : Set Space) (hSupport : IsCompact support) | |
| 20 | + (hSym : ∀ x, -x ∈ support ↔ x ∈ support) | |
| 21 | + (δ : ℝ) (hδ : 0 < δ) (ξ : U) (hs : tsupport innerCutoff ⊆ support) (α : ℝ) | |
| 22 | + (N : ℕ) (hN : 1 ≤ N) (k : ℝ) (hk : 4 ≤ k) | |
| 23 | + | |
| 24 | +/-- Transfer the center error before specializing the parent to its concrete flow. -/ | |
| 25 | +private theorem forwardChild_center_error | |
| 26 | + (Q : Budget period A.T_pos | |
| 27 | + (forwardInitializedCorrectionData (A.meanData H) (A.transverseData m hm J support hSupport) | |
| 28 | + rfl δ hδ ξ hs α (A.sourceAgreement m hm J support hSupport H) N hN k hk)) | |
| 29 | + (G : EulerPhysicalGraphFlowBounds.Data period A.T) | |
| 30 | + (hG : G.A=Q.liftedPacketCoefficient period | |
| 31 | + (forwardInitializedNormalizedField (A.meanData H) (A.transverseData m hm J support hSupport) | |
| 32 | + rfl δ hδ ξ hs α N k)) | |
| 33 | + (hgraph : ∀ t q, graphConstraint k m (G.A.field t q)=0) | |
| 34 | + (nextEll : ℝ) (hnext : 0 < nextEll) (hnext1 : nextEll ≤ 1) | |
| 35 | + (labels : LabelData (A.child G k m hgraph nextEll hnext hnext1)) | |
| 36 | + (C : Icc (0 : ℝ) A.T → Space →L[ℝ] Space) (error : ℝ) | |
| 37 | + (herr : ∀ t, ‖fderiv ℝ | |
| 38 | + (A.normalizedPacketVelocity m hm J support hSupport Q | |
| 39 | + (forwardInitializedApproximationResidual (A.meanData H) | |
| 40 | + (A.transverseData m hm J support hSupport) rfl δ hδ ξ hs α | |
| 41 | + (A.sourceAgreement m hm J support hSupport H) N hN k hk) | |
| 42 | + k S.evolution.inverse t) 0-C t‖ ≤ error) | |
| 43 | + (t : Icc (0 : ℝ) A.T) : | |
| 44 | + ‖fderiv ℝ (S.velocityIncrement | |
| 45 | + (S.forwardChild H m hm J support hSupport hSym δ hδ ξ hs α N hN k hk | |
| 46 | + Q G hG hgraph nextEll hnext hnext1 labels) t) 0-C t‖ ≤ error := by | |
| 47 | + exact S.packetChild_center_error m hm J support hSupport Q | |
| 48 | + (forwardInitializedApproximationResidual (A.meanData H) | |
| 49 | + (A.transverseData m hm J support hSupport) rfl δ hδ ξ hs α | |
| 50 | + (A.sourceAgreement m hm J support hSupport H) N hN k hk) | |
| 51 | + (forwardInitializedNormalizedField (A.meanData H) | |
| 52 | + (A.transverseData m hm J support hSupport) rfl δ hδ ξ hs α N k) rfl | |
| 53 | + (S.odd.forwardCorrectionParity H m hm J support hSupport hSym δ hδ ξ hs α N hN k hk) | |
| 54 | + G hG k (mul_inv_cancel₀ (by linarith : k ≠ 0)) hgraph nextEll hnext hnext1 labels C error herr t | |
| 55 | + | |
| 56 | +end EulerParentPacketFrames.SmoothState | |
| 57 | + | |
| 58 | +namespace EulerBaseDatum.FirstPacketChoice | |
| 59 | + | |
| 60 | +-- Keep type unification from expanding the concrete initial flow. | |
| 61 | +attribute [local irreducible] initialParent | |
| 62 | + | |
| 63 | +open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerParentPacketFrames | |
| 64 | + EulerPacketSupport EulerPacketTerminalDatum EulerPacketSourceFrequency | |
| 65 | + EulerPacketFirstLowBounds EulerPacketPhysicalLowBounds EulerPacketSourceGeometry | |
| 66 | + EulerPacketForwardFactorization EulerPeriodicProfile EulerTransverseFrameCoordinates | |
| 67 | + | |
| 68 | +variable {β : ℝ} {hβ : |β| ≤ 1} {ell : ℝ} {hell : 0 < ell} {hell1 : ell ≤ 1} | |
| 69 | + {T : ℝ} {hT : 0 < T} {hTB : T ≤ initialTime} | |
| 70 | + {δ : ℝ} {hδ : 0 < δ} {hchild k : ℝ} {hk : UniversalFrequency k} | |
| 71 | + {nextEll : ℝ} {hnext : 0 < nextEll} {hnext1 : nextEll ≤ 1} | |
| 72 | + (F : FirstPacketChoice β hβ ell hell hell1 T hT hTB δ hδ hchild k hk nextEll hnext hnext1) | |
| 73 | + | |
| 74 | +theorem physical_bounds (hδ1 : δ ≤ 1) (hh : 0 ≤ hchild) | |
| 75 | + (t : Icc (0 : ℝ) T) (x : Space) : | |
| 76 | + ‖fderiv ℝ (fun y => F.state.evolution.velocity (t,y)) x‖ ≤ | |
| 77 | + initialCoefficientCost+hchild*firstRatio+k^(-(1/4 : ℝ)) ∧ | |
| 78 | + ‖fderiv ℝ (F.state.evolution.force t) x‖ ≤ | |
| 79 | + initialCoefficientCost+2*initialCoefficientCost*(hchild*firstRatio)+k^(-(1/4 : ℝ)) := by | |
| 80 | + let S := packetBaseState β hβ ell hell hell1 T hT hTB | |
| 81 | + let M := firstPacketMeanData β hβ ell hell hell1 T hT hTB | |
| 82 | + let D := firstPacketData β hβ ell hell hell1 T hT hTB | |
| 83 | + let res := forwardInitializedApproximationResidual M D rfl δ hδ firstCoordinate (subset_refl _) | |
| 84 | + (δ*hchild) (firstPacketAgreement β hβ ell hell hell1 T hT hTB) (truncation k) F.hn k hk.four | |
| 85 | + have h := S.evolution.exactHomogeneousPacket_low_bounds | |
| 86 | + firstNormal firstNormal_unit firstFrame support compact F.Q res k (mul_inv_cancel₀ hk.pos.ne') | |
| 87 | + δ hchild firstCoordinate hδ hδ1 hh | |
| 88 | + (k^(-(1/4 : ℝ))) (k^(-(1/4 : ℝ))) initialCoefficientCost initialCoefficientCost initialCoefficientCost | |
| 89 | + F.errors (firstPacket_primary_size β hβ ell hell hell1 T hT hTB) | |
| 90 | + (firstPacket_primary_flux β hβ ell hell hell1 T hT hTB) t x | |
| 91 | + (packetBase_physical_strain β hβ ell hell hell1 T hT hTB t x) | |
| 92 | + (packetBase_physical_force β hβ ell hell hell1 T hT hTB t x) | |
| 93 | + (S.evolution.force_quadratic_upper_of_lowBounds (packetBaseLowBounds β hβ ell hell hell1 T hT hTB) t x) | |
| 94 | + dsimp only [S, M, D, res, firstPacketMeanData, firstPacketData] at h | |
| 95 | + constructor | |
| 96 | + · dsimp only [state, firstPacketState, SmoothState.forwardChild, | |
| 97 | + SmoothState.packetChild, Evolution.child] | |
| 98 | + with_reducible exact h.1 | |
| 99 | + · refine (congrArg (fun M : Space →L[ℝ] Space => ‖M‖) | |
| 100 | + (F.state.evolution.pressure_hessian_eq_force t x).symm).trans_le ?_ | |
| 101 | + dsimp only [state, firstPacketState, SmoothState.forwardChild, | |
| 102 | + SmoothState.packetChild, Evolution.child] | |
| 103 | + with_reducible exact h.2.1 | |
| 104 | + | |
| 105 | +theorem center_error (t : Icc (0 : ℝ) T) : | |
| 106 | + ‖fderiv ℝ ((packetBaseState β hβ ell hell hell1 T hT hTB).velocityIncrement F.state t) 0- | |
| 107 | + ((δ*hchild)*deriv (profile δ) | |
| 108 | + (k*⟪firstNormal,(packetBaseState β hβ ell hell hell1 T hT hTB).evolution.inverse.normalized t 0⟫_ℝ)) • | |
| 109 | + rankOne ℝ (canonicalVelocity (firstPacketData β hβ ell hell hell1 T hT hTB) firstCoordinate t | |
| 110 | + ((packetBaseState β hβ ell hell hell1 T hT hTB).evolution.inverse.normalized t 0)) | |
| 111 | + ((firstPacketData β hβ ell hell hell1 T hT hTB).normal.field t | |
| 112 | + ((packetBaseState β hβ ell hell hell1 T hT hTB).evolution.inverse.normalized t 0))‖ ≤ k^(-(1/4 : ℝ)) := by | |
| 113 | + let S := packetBaseState β hβ ell hell hell1 T hT hTB | |
| 114 | + let H := packetBaseLowBounds β hβ ell hell hell1 T hT hTB | |
| 115 | + let D := firstPacketData β hβ ell hell hell1 T hT hTB | |
| 116 | + let C (s : Icc (0 : ℝ) T) : Space →L[ℝ] Space := shearTerm (δ*hchild) | |
| 117 | + (deriv (profile δ) (k*⟪firstNormal,S.evolution.inverse.normalized s 0⟫_ℝ)) | |
| 118 | + (D.normal.field s (S.evolution.inverse.normalized s 0)) | |
| 119 | + (canonicalVelocity D firstCoordinate s (S.evolution.inverse.normalized s 0)) | |
| 120 | + dsimp only [state, firstPacketState] | |
| 121 | + exact S.forwardChild_center_error H | |
| 122 | + firstNormal firstNormal_unit firstFrame support compact symmetric δ hδ firstCoordinate | |
| 123 | + (subset_refl _) (δ*hchild) (truncation k) F.hn k hk.four F.Q F.G F.coefficient F.graph | |
| 124 | + nextEll hnext hnext1 F.labels C (k^(-(1/4 : ℝ))) (fun s => (F.errors s 0).1) t | |
| 125 | + | |
| 126 | +end EulerBaseDatum.FirstPacketChoice | |
+50 −0 Euler/BaseFirstPacketFrame.lean added View file
| @@ -0,0 +1,50 @@ | ||
| 1 | +import Euler.BaseFirstPacketEvolution | |
| 2 | + | |
| 3 | +/-! The first actual packet has the precise initial frame parameters | |
| 4 | +a=1, sigma=sqrt(beta), and the prescribed polynomial shear. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerBaseDatum.FirstPacketChoice | |
| 9 | + | |
| 10 | +open Set InnerProductSpace EulerSmoothLimit EulerParentPacketFrames EulerPacketSupport | |
| 11 | + EulerPacketSourceFrequency EulerPacketSourceGeometry EulerTransverseFrameCoordinates | |
| 12 | + | |
| 13 | +variable {β : ℝ} {hβ : |β| ≤ 1} {ell : ℝ} {hell : 0 < ell} {hell1 : ell ≤ 1} | |
| 14 | + {T : ℝ} {hT : 0 < T} {hTB : T ≤ initialTime} | |
| 15 | + {δ : ℝ} {hδ : 0 < δ} {hchild k : ℝ} {hk : UniversalFrequency k} | |
| 16 | + {nextEll : ℝ} {hnext : 0 < nextEll} {hnext1 : nextEll ≤ 1} | |
| 17 | + (F : FirstPacketChoice β hβ ell hell hell1 T hT hTB δ hδ hchild k hk nextEll hnext hnext1) | |
| 18 | + {U : Type} [NormedAddCommGroup U] [InnerProductSpace ℝ U] | |
| 19 | + (m : Space) (hm : ‖m‖=1) (R : U ≃ₗᵢ[ℝ] referencePlane m) | |
| 20 | + (S : Set Space) (hS : IsCompact S) | |
| 21 | + | |
| 22 | +def initialFrame : ParentFrame (F.parent.transverseData m hm R S hS) 0 := by | |
| 23 | + let B := packetBaseState β hβ ell hell hell1 T hT hTB | |
| 24 | + have h0 := initialCoefficientCost_nonneg | |
| 25 | + exact B.forwardRenewal F.state rfl firstNormal firstNormal_unit firstFrame support compact | |
| 26 | + m hm R S hS 0 le_rfl initialCoefficientCost initialCoefficientCost (1+initialCoefficientCost) | |
| 27 | + (k^(-(1/4 : ℝ))) h0 (le_add_of_nonneg_right h0) (Real.rpow_nonneg hk.pos.le _) | |
| 28 | + (le_add_of_nonneg_left zero_le_one) (by nlinarith only [h0]) | |
| 29 | + (fun t _ => packetBase_strain_bound β hβ ell hell hell1 T hT hTB (projIcc 0 T hT.le t) 0) | |
| 30 | + (fun t _ => packetBase_curvature_bound β hβ ell hell hell1 T hT hTB (projIcc 0 T hT.le t) 0) | |
| 31 | + δ hδ (δ*hchild) k firstCoordinate | |
| 32 | + (by intro h; have he := firstCoordinate_norm; rw [h,norm_zero] at he; norm_num at he) | |
| 33 | + (fun t _ => F.center_error t) | |
| 34 | + | |
| 35 | +theorem initialFrame_parameters : | |
| 36 | + (F.initialFrame m hm R S hS).a=1 ∧ | |
| 37 | + (F.initialFrame m hm R S hS).sigma=Real.sqrt β ∧ | |
| 38 | + (F.initialFrame m hm R S hS).shear=hchild := by | |
| 39 | + apply first_frame_parameters β hβ ell hell hell1 T hT hTB (F.initialFrame m hm R S hS) hchild | |
| 40 | + · rfl | |
| 41 | + · rfl | |
| 42 | + · rfl | |
| 43 | + · change (δ*hchild)/δ=hchild | |
| 44 | + field_simp | |
| 45 | + | |
| 46 | +theorem initialFrame_costs : | |
| 47 | + (F.initialFrame m hm R S hS).G=1+initialCoefficientCost ∧ | |
| 48 | + (F.initialFrame m hm R S hS).error=k^(-(1/4 : ℝ)) := ⟨rfl,rfl⟩ | |
| 49 | + | |
| 50 | +end EulerBaseDatum.FirstPacketChoice | |
+106 −0 Euler/BaseFirstPacketScales.lean added View file
| @@ -0,0 +1,106 @@ | ||
| 1 | +import Euler.BasePacketFrequencyCost | |
| 2 | +import Euler.PacketUniversalFrequency | |
| 3 | +import Euler.PacketLowConstants | |
| 4 | +import Euler.PacketLowBoundPropagation | |
| 5 | + | |
| 6 | +/-! The literal polynomial first-packet scales satisfy every local, | |
| 7 | +frequency and localized lower-bound guard after the final base choice. -/ | |
| 8 | + | |
| 9 | +noncomputable section | |
| 10 | + | |
| 11 | +namespace EulerBaseDatum | |
| 12 | + | |
| 13 | +open Real Filter EulerPacketBaseScales EulerPacketBaseGuardScales EulerPacketSourceFrequency | |
| 14 | + EulerPacketUniformSource EulerPacketLowConstants EulerPacketLowBoundPropagation | |
| 15 | + EulerPacketFirstLowBounds EulerMeanHarmonic | |
| 16 | +open scoped Topology | |
| 17 | + | |
| 18 | +def literalInitialError (D : ℕ) (X : ℝ) : ℝ := (X^D)^(-(1/4 : ℝ)) | |
| 19 | + | |
| 20 | +def literalInitialPressureCost (D : ℕ) (X : ℝ) : ℝ := | |
| 21 | + 2*initialCoefficientCost*X^(-1010 : ℝ)*(X^1000*firstRatio)+literalInitialError D X | |
| 22 | + | |
| 23 | +theorem literalInitialError_nonneg (D : ℕ) (X : ℝ) (hX : 0 ≤ X) : | |
| 24 | + 0 ≤ literalInitialError D X := rpow_nonneg (pow_nonneg hX D) _ | |
| 25 | + | |
| 26 | +theorem literalInitialError_tendsto_zero (D : ℕ) (hD : 0 < D) : | |
| 27 | + Tendsto (literalInitialError D) atTop (𝓝 0) := by | |
| 28 | + exact (tendsto_rpow_neg_atTop (by norm_num : (0 : ℝ) < 1/4)).comp | |
| 29 | + (tendsto_pow_atTop (Nat.ne_of_gt hD)) | |
| 30 | + | |
| 31 | +theorem literalInitialPressureCost_tendsto_zero (D : ℕ) (hD : 0 < D) : | |
| 32 | + Tendsto (literalInitialPressureCost D) atTop (𝓝 0) := by | |
| 33 | + have hp : Tendsto (fun X : ℝ => X^(-1010 : ℝ)*X^1000) atTop (𝓝 0) := by | |
| 34 | + simpa only [pow_zero,mul_one] using base_power_decay 1 (-1010) 0 1000 (by norm_num) | |
| 35 | + have h := (hp.const_mul (2*initialCoefficientCost*firstRatio)).add | |
| 36 | + (literalInitialError_tendsto_zero D hD) | |
| 37 | + simp only [mul_zero,zero_add] at h | |
| 38 | + convert! h using 1 | |
| 39 | + funext X | |
| 40 | + unfold literalInitialPressureCost | |
| 41 | + ring | |
| 42 | + | |
| 43 | +theorem literal_radius_frequency_bound (D : ℕ) (hD : 2000 ≤ D) (X : ℝ) (hX : 1 ≤ X) : | |
| 44 | + (baseRadius X)⁻¹ ≤ (X^D)^(3/4 : ℝ) := by | |
| 45 | + have hX0 := zero_le_one.trans hX | |
| 46 | + have hDr : (2000 : ℝ) ≤ D := by exact_mod_cast hD | |
| 47 | + unfold baseRadius | |
| 48 | + rw [rpow_neg hX0,inv_inv] | |
| 49 | + calc | |
| 50 | + _ ≤ X^((D : ℝ)*(3/4 : ℝ)) := rpow_le_rpow_of_exponent_le hX (by linarith) | |
| 51 | + _ = _ := by rw [rpow_mul hX0,rpow_natCast] | |
| 52 | + | |
| 53 | +structure FirstScaleGuards (J D : ℕ) (X : ℝ) : Prop where | |
| 54 | + x_one : 1 ≤ X | |
| 55 | + radius_small : baseRadius X ≤ 1/4 | |
| 56 | + local_time : baseHorizon J X ≤ initialTime | |
| 57 | + frequency : UniversalFrequency (X^D) | |
| 58 | + label_frequency : solutionLabelConstant ≤ X^D | |
| 59 | + radius_frequency : (baseRadius X)⁻¹ ≤ (X^D)^(3/4 : ℝ) | |
| 60 | + source_frequency : EulerPacketInitializedOutputCost.uniformConstant* | |
| 61 | + (profileEnvelope (firstParameterSize (baseHorizon J X) (X^(-1010 : ℝ)) (X^1000)))^ | |
| 62 | + EulerPacketInitializedOutputCost.uniformPower ≤ smallPower (X^D) | |
| 63 | + error_small : literalInitialError D X ≤ 1 | |
| 64 | + pressure_small : literalInitialPressureCost D X ≤ 1/4 | |
| 65 | + localized : (initialCoefficientCost+literalInitialPressureCost D X)*((baseHorizon J X)^2/2)+ | |
| 66 | + initialCoefficientCost*baseHorizon J X+ | |
| 67 | + boundaryLocalizationC2*(initialCoefficientCost+X^1000*firstRatio+literalInitialError D X)* | |
| 68 | + (baseRadius X)^3*baseHorizon J X ≤ 1/2 | |
| 69 | + | |
| 70 | +theorem eventually_firstScaleGuards (J : ℕ) (hJ : 1 ≤ J) (D : ℕ) (hD : 2000 ≤ D) | |
| 71 | + (hDfreq : (firstFrequencyPower : ℝ) < (D : ℝ)*(theta/100)) : | |
| 72 | + ∀ᶠ X : ℝ in atTop, FirstScaleGuards J D X := by | |
| 73 | + have hDpos : 0 < D := by omega | |
| 74 | + have hp : Tendsto (fun X : ℝ => X^D) atTop atTop := tendsto_pow_atTop (Nat.ne_of_gt hDpos) | |
| 75 | + filter_upwards [eventually_base_guards J hJ (initialCoefficientCost+1) (initialCoefficientCost+1) | |
| 76 | + gradientConstant boundaryLocalizationC2 initialTime initialTime_pos, | |
| 77 | + hp.eventually universal_frequency_eventually, | |
| 78 | + hp.eventually (eventually_ge_atTop solutionLabelConstant), | |
| 79 | + first_frequency_guard_eventually J hJ D hDfreq, | |
| 80 | + (literalInitialError_tendsto_zero D hDpos).eventually_le_const zero_lt_one, | |
| 81 | + (literalInitialPressureCost_tendsto_zero D hDpos).eventually_le_const (by norm_num : (0 : ℝ) < 1/4)] | |
| 82 | + with X hb hfreq hlabel hsource herr hpressure | |
| 83 | + have hX : 1 ≤ X := hb.1.le | |
| 84 | + have hX0 := zero_le_one.trans hX | |
| 85 | + have hC0 := initialCoefficientCost_nonneg | |
| 86 | + have he0 := literalInitialError_nonneg D X hX0 | |
| 87 | + have hc0 : 0 ≤ initialCoefficientCost+X^1000*firstRatio+literalInitialError D X := by | |
| 88 | + positivity [firstRatio_pos] | |
| 89 | + have hp0 : 0 ≤ literalInitialPressureCost D X := by | |
| 90 | + unfold literalInitialPressureCost | |
| 91 | + positivity [firstRatio_pos] | |
| 92 | + have hcore := (initial_bounds (X^1000) (literalInitialError D X) (one_le_pow₀ hX) herr).1 | |
| 93 | + refine ⟨hX,hb.2.2.2.2.1,hb.2.2.1,hfreq,hlabel,literal_radius_frequency_bound D hD X hX, | |
| 94 | + hsource,herr,hpressure,?_⟩ | |
| 95 | + apply localized_guard J X (initialCoefficientCost+literalInitialPressureCost D X) | |
| 96 | + initialCoefficientCost (initialCoefficientCost+X^1000*firstRatio+literalInitialError D X) | |
| 97 | + (initialCoefficientCost+1) (initialCoefficientCost+1) gradientConstant boundaryLocalizationC2 | |
| 98 | + (baseHorizon J X) (add_nonneg hC0 hp0) hC0 hc0 hb.2.1.le | |
| 99 | + boundaryLocalizationC2_nonneg hb.2.2.2.1.le | |
| 100 | + · linarith only [hpressure] | |
| 101 | + · linarith | |
| 102 | + · linarith only [hcore] | |
| 103 | + · exact le_rfl | |
| 104 | + · exact hb.2.2.2.2.2 | |
| 105 | + | |
| 106 | +end EulerBaseDatum | |
+82 −0 Euler/BaseFirstPacketSupport.lean added View file
| @@ -0,0 +1,82 @@ | ||
| 1 | +import Euler.ParentChoiceInitialSupport | |
| 2 | +import Euler.BaseInductionStage | |
| 3 | + | |
| 4 | +/-! The actual finite initial base of the induction is compactly | |
| 5 | +supported: it is the compact smooth datum plus its first packet's | |
| 6 | +literal compact initial increment. -/ | |
| 7 | + | |
| 8 | +noncomputable section | |
| 9 | + | |
| 10 | +namespace EulerBaseDatum | |
| 11 | + | |
| 12 | +open Set EulerSmoothLimit EulerParentPacketFrames EulerPacketSupport | |
| 13 | + EulerPacketTerminalDatum EulerPacketSourceFrequency | |
| 14 | + | |
| 15 | +theorem packetBase_initial_support (β : ℝ) (hβ : |β| ≤ 1) (ell : ℝ) | |
| 16 | + (hell : 0 < ell) (hell1 : ell ≤ 1) (T : ℝ) (hT : 0 < T) (hTB : T ≤ initialTime) : | |
| 17 | + tsupport (fun x => (packetBaseState β hβ ell hell hell1 T hT hTB).evolution.velocity (0,x)) ⊆ | |
| 18 | + Metric.closedBall 0 2 := by | |
| 19 | + let A := packetBaseParent β hβ ell hell hell1 T hT hTB | |
| 20 | + let S := packetBaseState β hβ ell hell hell1 T hT hTB | |
| 21 | + have he : (fun x => S.evolution.velocity (0,x))=velocity (linear β) := by | |
| 22 | + funext x | |
| 23 | + have hm := S.evolution.velocity_match A.zeroTime x | |
| 24 | + rw [A.position_initial] at hm | |
| 25 | + exact hm.symm.trans (initial_velocity β hβ ell hell hell1 x) | |
| 26 | + rw [he] | |
| 27 | + exact velocity_support _ | |
| 28 | + | |
| 29 | +namespace FirstPacketChoice | |
| 30 | + | |
| 31 | +variable {β : ℝ} {hβ : |β| ≤ 1} {ell : ℝ} {hell : 0 < ell} {hell1 : ell ≤ 1} | |
| 32 | + {T : ℝ} {hT : 0 < T} {hTB : T ≤ initialTime} | |
| 33 | + {δ : ℝ} {hδ : 0 < δ} {hchild k : ℝ} {hk : UniversalFrequency k} | |
| 34 | + {nextEll : ℝ} {hnext : 0 < nextEll} {hnext1 : nextEll ≤ 1} | |
| 35 | + (F : FirstPacketChoice β hβ ell hell hell1 T hT hTB δ hδ hchild k hk nextEll hnext hnext1) | |
| 36 | + | |
| 37 | +theorem initial_support : | |
| 38 | + tsupport (fun x => F.state.evolution.velocity (0,x)) ⊆ Metric.closedBall 0 2 := by | |
| 39 | + let A := packetBaseParent β hβ ell hell hell1 T hT hTB | |
| 40 | + let S := packetBaseState β hβ ell hell hell1 T hT hTB | |
| 41 | + let H := packetBaseLowBounds β hβ ell hell hell1 T hT hTB | |
| 42 | + have hd := A.exactForwardPacket_initial_increment_support H | |
| 43 | + firstNormal firstNormal_unit firstFrame support compact δ hδ firstCoordinate | |
| 44 | + (subset_refl _) (δ*hchild) (truncation k) F.hn k hk.four F.Q S.evolution.inverse | |
| 45 | + rfl (subset_halfBall.trans Metric.ball_subset_closedBall) S.evolution.velocity | |
| 46 | + change tsupport ((fun x => F.state.evolution.velocity (0,x))- | |
| 47 | + (fun x => S.evolution.velocity (0,x))) ⊆ Metric.closedBall 0 (ell/2) at hd | |
| 48 | + exact support_of_difference (fun x => S.evolution.velocity (0,x)) | |
| 49 | + (fun x => F.state.evolution.velocity (0,x)) 2 | |
| 50 | + (packetBase_initial_support β hβ ell hell hell1 T hT hTB) | |
| 51 | + (hd.trans (Metric.closedBall_subset_closedBall (by linarith only [hell1]))) | |
| 52 | + | |
| 53 | +theorem initial_compact : HasCompactSupport (fun x => F.state.evolution.velocity (0,x)) := | |
| 54 | + (isCompact_closedBall (0 : Space) 2).of_isClosed_subset (isClosed_tsupport _) F.initial_support | |
| 55 | + | |
| 56 | +end FirstPacketChoice | |
| 57 | +end EulerBaseDatum | |
| 58 | + | |
| 59 | +namespace EulerPacketInductionScales.Scales | |
| 60 | + | |
| 61 | +open Set EulerSmoothLimit | |
| 62 | + | |
| 63 | +variable {c B : ℝ} (S : Scales c B) | |
| 64 | + | |
| 65 | +theorem firstStage_initial_support : | |
| 66 | + tsupport (fun x => S.firstStage.state.evolution.velocity (0,x)) ⊆ Metric.closedBall 0 2 := | |
| 67 | + (S.first.packet S.j_one).initial_support | |
| 68 | + | |
| 69 | +theorem firstStage_initial_compact : | |
| 70 | + HasCompactSupport (fun x => S.firstStage.state.evolution.velocity (0,x)) := | |
| 71 | + (isCompact_closedBall (0 : Space) 2).of_isClosed_subset (isClosed_tsupport _) S.firstStage_initial_support | |
| 72 | + | |
| 73 | +theorem firstStage_initial_field_support : | |
| 74 | + tsupport (S.firstStage.state.regularity.velocity S.firstStage.parent.zeroTime).field ⊆ | |
| 75 | + Metric.closedBall 0 2 := by | |
| 76 | + have he : (S.firstStage.state.regularity.velocity S.firstStage.parent.zeroTime).field= | |
| 77 | + fun x => S.firstStage.state.evolution.velocity (0,x) := | |
| 78 | + funext (fun x => (S.firstStage.state.regularity.velocity_match S.firstStage.parent.zeroTime x).symm) | |
| 79 | + rw [he] | |
| 80 | + exact S.firstStage_initial_support | |
| 81 | + | |
| 82 | +end EulerPacketInductionScales.Scales | |
+104 −0 Euler/BaseInductionStage.lean added View file
| @@ -0,0 +1,104 @@ | ||
| 1 | +import Euler.PacketInductionStage | |
| 2 | +import Euler.BaseLiteralFirstPacket | |
| 3 | + | |
| 4 | +/-! The first stage of the actual induction is constructed from the | |
| 5 | +literal compact base solution and the first same-Q packet choice. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +namespace EulerPacketInductionScales.Scales | |
| 10 | + | |
| 11 | +open Set Finset Real InnerProductSpace EulerSmoothLimit EulerParentPacketFrames | |
| 12 | + EulerBaseDatum EulerPacketSupport EulerPacketSourceGeometry EulerPacketNormalizedPrimary | |
| 13 | + EulerPacketLowConstants EulerPacketInduction EulerPacketSourceScaleChoice | |
| 14 | + EulerPacketSourceScaleSequence EulerPacketSourceScaleActual EulerPacketBaseGuardScales | |
| 15 | + EulerParentRenewalScale EulerMeanHarmonic | |
| 16 | + | |
| 17 | +-- Limit elaboration of the concrete flow only within this namespace scope. | |
| 18 | +attribute [local irreducible] initialParent | |
| 19 | + | |
| 20 | +variable {c B : ℝ} (S : Scales c B) | |
| 21 | + | |
| 22 | +def firstStage : Stage S 0 := by | |
| 23 | + let F := S.first.packet S.j_one | |
| 24 | + let P := F.initialFrame firstNormal firstNormal_unit firstFrame support compact | |
| 25 | + have hparam := F.initialFrame_parameters firstNormal firstNormal_unit firstFrame support compact | |
| 26 | + have hcost := F.initialFrame_costs firstNormal firstNormal_unit firstFrame support compact | |
| 27 | + have hlow := S.first.lowBounds_values S.j_one | |
| 28 | + have hbounds := initial_bounds (S.X^1000) (literalInitialError S.D S.X) | |
| 29 | + (one_le_pow₀ S.x_one) S.first.error_small | |
| 30 | + have htilt : P.sigma^2*S.X^2=1 := by | |
| 31 | + rw [show P.sigma=sqrt (S.X^(-2 : ℝ)) from hparam.2.1, | |
| 32 | + sq_sqrt (rpow_nonneg S.x_pos.le _),rpow_neg S.x_pos.le] | |
| 33 | + norm_num only [rpow_ofNat] | |
| 34 | + exact inv_mul_cancel₀ (pow_ne_zero _ S.x_pos.ne') | |
| 35 | + refine { | |
| 36 | + parent := S.first.parent S.j_one | |
| 37 | + state := S.first.state S.j_one | |
| 38 | + low := S.first.lowBounds S.j_one | |
| 39 | + time := 0 | |
| 40 | + time_nonneg := le_rfl | |
| 41 | + time_zero := fun _ => rfl | |
| 42 | + time_lower := fun h => (h rfl).elim | |
| 43 | + horizon_eq := ?_ | |
| 44 | + horizon_le := le_rfl | |
| 45 | + scale_eq := rfl | |
| 46 | + label_eq := S.first.state_label S.j_one | |
| 47 | + gradient_bound := ?_ | |
| 48 | + hessian_bound := ?_ | |
| 49 | + exterior_bound := ?_ | |
| 50 | + core_bound := ?_ | |
| 51 | + pressure_bound := ?_ | |
| 52 | + boundary_eq := rfl | |
| 53 | + radius_eq := hlow.2.2.1 | |
| 54 | + frame := P | |
| 55 | + frame_shear := hparam.2.2 | |
| 56 | + frame_bound := ?_ | |
| 57 | + frame_error := ?_ | |
| 58 | + coupling_error := ?_ | |
| 59 | + tilt_lower := ?_ | |
| 60 | + tilt_upper := ?_ | |
| 61 | + compression := fun h => (h rfl).elim } | |
| 62 | + · change baseHorizon S.J S.X=0+2*timeWidth S.J S.X 0 | |
| 63 | + rw [zero_add,baseHorizon_eq_timeWidth S.J S.x_pos] | |
| 64 | + · intro t x | |
| 65 | + have h := (F.physical_bounds S.first.spike_one S.first.shear_pos.le t x).1 | |
| 66 | + dsimp only [FirstScaleGuards.state, previousShear] | |
| 67 | + exact h.trans hbounds.1 | |
| 68 | + · intro t x | |
| 69 | + have h := (F.physical_bounds S.first.spike_one S.first.shear_pos.le t x).2 | |
| 70 | + dsimp only [FirstScaleGuards.state, previousShear, olderShear] | |
| 71 | + simpa only [mul_one] using h.trans hbounds.2 | |
| 72 | + · rw [hlow.1] | |
| 73 | + simp only [sum_range_zero,add_zero,le_refl] | |
| 74 | + · rw [hlow.2.1] | |
| 75 | + simpa only [sum_range_zero,add_zero] using hbounds.1 | |
| 76 | + · rw [hlow.2.2.2] | |
| 77 | + simp only [sum_range_zero,add_zero,le_refl] | |
| 78 | + · change P.G ≤ frameConstant*(1+1) | |
| 79 | + rw [show P.G=1+initialCoefficientCost from hcost.1] | |
| 80 | + have hf := EulerPacketFirstLowBounds.firstRatio_pos | |
| 81 | + have hm := gradient_properties.2.1 | |
| 82 | + have hc := frame_properties.2.1 | |
| 83 | + have h0 := frame_properties.1 | |
| 84 | + linarith only [hf,hm,hc,h0] | |
| 85 | + · exact le_of_eq hcost.2 | |
| 86 | + · change |P.a-1| ≤ 2*∑ i ∈ range 0, renewalCost S.J S.D 4 c frameConstant S.X i | |
| 87 | + rw [show P.a=1 from hparam.1] | |
| 88 | + simp only [sub_self,abs_zero,sum_range_zero,mul_zero,le_refl] | |
| 89 | + · change 1/2 ≤ P.sigma^2*S.X^2 | |
| 90 | + rw [htilt] | |
| 91 | + norm_num | |
| 92 | + · change P.sigma^2*S.X^2 ≤ 2 | |
| 93 | + rw [htilt] | |
| 94 | + norm_num | |
| 95 | + | |
| 96 | +theorem firstStage_time : S.firstStage.time=0 := rfl | |
| 97 | + | |
| 98 | +theorem firstStage_horizon : S.firstStage.parent.T=baseHorizon S.J S.X := rfl | |
| 99 | + | |
| 100 | +theorem firstStage_coupling : S.firstStage.frame.a=1 := | |
| 101 | + ((S.first.packet S.j_one).initialFrame_parameters firstNormal firstNormal_unit firstFrame | |
| 102 | + support compact).1 | |
| 103 | + | |
| 104 | +end EulerPacketInductionScales.Scales | |
+87 −0 Euler/BaseLiteralFirstPacket.lean added View file
| @@ -0,0 +1,87 @@ | ||
| 1 | +import Euler.BaseFirstPacketChoice | |
| 2 | +import Euler.BaseFirstPacketScales | |
| 3 | +import Euler.PacketSourceScaleSequence | |
| 4 | + | |
| 5 | +/-! The literal base scale constructs the first actual smooth Euler | |
| 6 | +packet state and its localized source bounds. -/ | |
| 7 | + | |
| 8 | +noncomputable section | |
| 9 | + | |
| 10 | +namespace EulerBaseDatum.FirstScaleGuards | |
| 11 | + | |
| 12 | +open Real EulerParentPacketFrames EulerPacketBaseGuardScales EulerPacketSourceScaleSequence | |
| 13 | + EulerPacketSourceScaleChoice EulerPacketFirstLowBounds | |
| 14 | + | |
| 15 | +variable {J D : ℕ} {X : ℝ} (H : FirstScaleGuards J D X) | |
| 16 | + | |
| 17 | +include H | |
| 18 | + | |
| 19 | +theorem x_pos : 0 < X := zero_lt_one.trans_le H.x_one | |
| 20 | + | |
| 21 | +theorem tilt_bound : |X^(-2 : ℝ)| ≤ 1 := by | |
| 22 | + rw [abs_of_nonneg (rpow_nonneg H.x_pos.le _)] | |
| 23 | + exact rpow_le_one_of_one_le_of_nonpos H.x_one (by norm_num) | |
| 24 | + | |
| 25 | +theorem core_pos : 0 < baseRadius X := baseRadius_pos H.x_pos | |
| 26 | + | |
| 27 | +theorem core_one : baseRadius X ≤ 1 := H.radius_small.trans (by norm_num) | |
| 28 | + | |
| 29 | +theorem time_pos (hJ : 1 ≤ J) : 0 < baseHorizon J X := baseHorizon_pos J hJ H.x_pos | |
| 30 | + | |
| 31 | +theorem spike_pos : 0 < X^(-1010 : ℝ) := rpow_pos_of_pos H.x_pos _ | |
| 32 | + | |
| 33 | +theorem spike_one : X^(-1010 : ℝ) ≤ 1 := rpow_le_one_of_one_le_of_nonpos H.x_one (by norm_num) | |
| 34 | + | |
| 35 | +theorem shear_pos : 0 < X^1000 := pow_pos H.x_pos _ | |
| 36 | + | |
| 37 | +omit H in | |
| 38 | +theorem nextRadius_pos : 0 < supportScale J X 0 := exp_pos _ | |
| 39 | + | |
| 40 | +theorem nextRadius_one : supportScale J X 0 ≤ 1 := by | |
| 41 | + unfold supportScale | |
| 42 | + apply exp_le_one_iff.mpr | |
| 43 | + exact div_nonpos_of_nonpos_of_nonneg (neg_nonpos.mpr H.x_pos.le) | |
| 44 | + (rpow_nonneg (Nat.cast_nonneg _) _) | |
| 45 | + | |
| 46 | +def packet (hJ : 1 ≤ J) : | |
| 47 | + FirstPacketChoice (X^(-2 : ℝ)) H.tilt_bound (baseRadius X) H.core_pos H.core_one | |
| 48 | + (baseHorizon J X) (H.time_pos hJ) H.local_time | |
| 49 | + (X^(-1010 : ℝ)) H.spike_pos (X^1000) (X^D) H.frequency | |
| 50 | + (supportScale J X 0) nextRadius_pos H.nextRadius_one := | |
| 51 | + Classical.choice (exists_firstPacketChoice (X^(-2 : ℝ)) H.tilt_bound | |
| 52 | + (baseRadius X) H.core_pos H.core_one (baseHorizon J X) (H.time_pos hJ) H.local_time | |
| 53 | + (X^(-1010 : ℝ)) H.spike_pos (X^1000) (X^D) H.frequency | |
| 54 | + (supportScale J X 0) nextRadius_pos H.nextRadius_one H.spike_one H.shear_pos | |
| 55 | + H.source_frequency H.label_frequency H.radius_frequency) | |
| 56 | + | |
| 57 | +def parent (hJ : 1 ≤ J) : Parent := (H.packet hJ).parent | |
| 58 | + | |
| 59 | +def state (hJ : 1 ≤ J) : SmoothState (H.parent hJ) := (H.packet hJ).state | |
| 60 | + | |
| 61 | +theorem state_label (hJ : 1 ≤ J) : (H.state hJ).labels.K=(X^D)^80 := | |
| 62 | + (H.packet hJ).state_label_constant | |
| 63 | + | |
| 64 | +theorem parent_time (hJ : 1 ≤ J) : (H.parent hJ).T=baseHorizon J X := rfl | |
| 65 | + | |
| 66 | +theorem parent_scale (hJ : 1 ≤ J) : (H.parent hJ).ell=supportScale J X 0 := rfl | |
| 67 | + | |
| 68 | +def lowBounds (hJ : 1 ≤ J) : LowBounds (H.parent hJ) := | |
| 69 | + FirstPacketChoice.lowBounds (X^(-2 : ℝ)) H.tilt_bound (baseRadius X) H.core_pos H.core_one | |
| 70 | + (baseHorizon J X) (H.time_pos hJ) H.local_time | |
| 71 | + (X^(-1010 : ℝ)) H.spike_pos (X^1000) (X^D) H.frequency | |
| 72 | + (supportScale J X 0) nextRadius_pos H.nextRadius_one (H.packet hJ) | |
| 73 | + H.radius_small H.spike_one H.shear_pos.le (by | |
| 74 | + simpa only [literalInitialPressureCost,literalInitialError,← add_assoc] using H.localized) | |
| 75 | + | |
| 76 | +theorem lowBounds_values (hJ : 1 ≤ J) : | |
| 77 | + (H.lowBounds hJ).Be=initialCoefficientCost ∧ | |
| 78 | + (H.lowBounds hJ).Bc=initialCoefficientCost+X^1000*firstRatio+literalInitialError D X ∧ | |
| 79 | + (H.lowBounds hJ).r=baseRadius X ∧ | |
| 80 | + (H.lowBounds hJ).K=initialCoefficientCost+literalInitialPressureCost D X := by | |
| 81 | + refine ⟨rfl,rfl,rfl,?_⟩ | |
| 82 | + change initialCoefficientCost+2*initialCoefficientCost*X^(-1010 : ℝ)*(X^1000*firstRatio)+ | |
| 83 | + (X^D)^(-(1/4 : ℝ))=initialCoefficientCost+literalInitialPressureCost D X | |
| 84 | + unfold literalInitialPressureCost literalInitialError | |
| 85 | + ring | |
| 86 | + | |
| 87 | +end EulerBaseDatum.FirstScaleGuards | |
+87 −0 Euler/BasePacketFrameValues.lean added View file
| @@ -0,0 +1,87 @@ | ||
| 1 | +import Euler.BasePacketSetup | |
| 2 | +import Euler.ParentStateGeometry | |
| 3 | +import Euler.ParentEulerLowBounds | |
| 4 | + | |
| 5 | +/-! Exact initial frame parameters for the first normal stage: its | |
| 6 | +coupling is one, tilt is beta, and shear is the prescribed first shear. -/ | |
| 7 | + | |
| 8 | +noncomputable section | |
| 9 | + | |
| 10 | +namespace EulerBaseDatum | |
| 11 | + | |
| 12 | +open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerParentPacketFrames | |
| 13 | + EulerPacketSupport EulerBaseEulerGuards EulerPacketMovingFrame EulerPacketNormalizedPrimary | |
| 14 | + EulerPacketCrossProduct EulerPacketSourceGeometry EulerVolterraConvolution | |
| 15 | + | |
| 16 | +theorem first_basis_cross : cross firstNormal (EuclideanSpace.single 1 1)=EuclideanSpace.single 2 1 := by | |
| 17 | + ext i | |
| 18 | + fin_cases i <;> simp [cross,firstNormal,cross_apply] | |
| 19 | + | |
| 20 | +theorem first_normalizedCoupling (β : ℝ) : | |
| 21 | + normalizedCoupling (linear β) firstNormal (EuclideanSpace.single 1 1)=1 := by | |
| 22 | + simp [normalizedCoupling,unit,firstNormal,EuclideanSpace.inner_single_left, | |
| 23 | + PiLp.add_apply,PiLp.smul_apply] | |
| 24 | + | |
| 25 | +theorem first_normalizedTilt (β : ℝ) : | |
| 26 | + normalizedTilt (linear β) firstNormal (EuclideanSpace.single 1 1)=β := by | |
| 27 | + rw [normalizedTilt,first_normalizedCoupling] | |
| 28 | + have hp : unit firstNormal=firstNormal := by rw [unit,firstNormal_unit,inv_one,one_smul] | |
| 29 | + have hq : unit (EuclideanSpace.single 1 1 : Space)=EuclideanSpace.single 1 1 := by simp [unit] | |
| 30 | + rw [hp,hq,first_basis_cross,linear_q] | |
| 31 | + simp [EuclideanSpace.inner_single_left,PiLp.add_apply,PiLp.smul_apply] | |
| 32 | + | |
| 33 | +variable (β : ℝ) (hβ : |β| ≤ 1) (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) | |
| 34 | + (T : ℝ) (hT : 0 < T) (hTB : T ≤ initialTime) | |
| 35 | + | |
| 36 | +theorem packetBase_centerStrain_initial : | |
| 37 | + (packetBaseParent β hβ ell hell hell1 T hT hTB).centerStrain 0=linear β := by | |
| 38 | + let A := packetBaseParent β hβ ell hell hell1 T hT hTB | |
| 39 | + let S := packetBaseState β hβ ell hell hell1 T hT hTB | |
| 40 | + change A.centerStrain 0=linear β | |
| 41 | + have h0 : (0 : Space) ∈ support := subset_tsupport _ (by | |
| 42 | + simp [Function.mem_support,EulerSpatialCutoffs.innerCutoff_zero]) | |
| 43 | + calc | |
| 44 | + _ = A.strain.field A.zeroTime 0 := by | |
| 45 | + change A.strain.field (projIcc 0 A.T A.T_pos.le 0) 0=A.strain.field A.zeroTime 0 | |
| 46 | + rw [projIcc_of_mem A.T_pos.le (show (0 : ℝ) ∈ Icc 0 A.T from ⟨le_rfl,A.T_pos.le⟩)] | |
| 47 | + rfl | |
| 48 | + _ = A.initialStrain.field 0 := by | |
| 49 | + rw [S.evolution.strain_origin S.odd,S.evolution.initialStrain_eq,smul_zero] | |
| 50 | + rfl | |
| 51 | + _ = linear β := packetBase_initialStrain β hβ ell hell hell1 T hT hTB 0 h0 | |
| 52 | + | |
| 53 | +theorem packetBase_sourceNormal_initial : | |
| 54 | + (packetBaseParent β hβ ell hell hell1 T hT hTB).sourceNormal firstNormal 0=firstNormal := by | |
| 55 | + let A := packetBaseParent β hβ ell hell hell1 T hT hTB | |
| 56 | + calc | |
| 57 | + _ = (A.transverseData firstNormal firstNormal_unit firstFrame support compact).normal.field | |
| 58 | + A.zeroTime 0 := (A.source_normal_eq firstNormal firstNormal_unit firstFrame support compact A.zeroTime).symm | |
| 59 | + _ = _ := source_normal_initial firstNormal firstNormal_unit firstFrame support compact 0 | |
| 60 | + | |
| 61 | +theorem packetBase_sourceVelocity_initial : | |
| 62 | + (packetBaseParent β hβ ell hell hell1 T hT hTB).sourceVelocity | |
| 63 | + firstNormal firstNormal_unit firstFrame support compact firstCoordinate 0=EuclideanSpace.single 1 1 := by | |
| 64 | + change EulerPacketForwardFactorization.uncutVelocity | |
| 65 | + ((packetBaseParent β hβ ell hell hell1 T hT hTB).transverseData | |
| 66 | + firstNormal firstNormal_unit firstFrame support compact) firstCoordinate 0 0=_ | |
| 67 | + rw [EulerPacketForwardFactorization.uncutVelocity_initial] | |
| 68 | + exact (source_frame_initial (G := packetBaseParent β hβ ell hell hell1 T hT hTB) | |
| 69 | + firstNormal firstNormal_unit firstFrame support compact firstCoordinate 0).trans firstCoordinate_map | |
| 70 | + | |
| 71 | +theorem first_frame_parameters {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] | |
| 72 | + {D : EulerTransversePacketProvider.Data U} (P : ParentFrame D 0) (hchild : ℝ) | |
| 73 | + (hB : P.B 0=(packetBaseParent β hβ ell hell hell1 T hT hTB).centerStrain 0) | |
| 74 | + (hm : P.m 0=(packetBaseParent β hβ ell hell hell1 T hT hTB).sourceNormal firstNormal 0) | |
| 75 | + (hv : P.v 0=(packetBaseParent β hβ ell hell hell1 T hT hTB).sourceVelocity | |
| 76 | + firstNormal firstNormal_unit firstFrame support compact firstCoordinate 0) | |
| 77 | + (hc : P.c=hchild) : P.a=1 ∧ P.sigma=Real.sqrt β ∧ P.shear=hchild := by | |
| 78 | + have hB' := hB.trans (packetBase_centerStrain_initial β hβ ell hell hell1 T hT hTB) | |
| 79 | + have hm' := hm.trans (packetBase_sourceNormal_initial β hβ ell hell hell1 T hT hTB) | |
| 80 | + have hv' := hv.trans (packetBase_sourceVelocity_initial β hβ ell hell hell1 T hT hTB) | |
| 81 | + refine ⟨?_,?_,?_⟩ | |
| 82 | + · rw [ParentFrame.a,hB',hm',hv',first_normalizedCoupling] | |
| 83 | + · rw [ParentFrame.sigma,hB',hm',hv',first_normalizedTilt] | |
| 84 | + · rw [ParentFrame.shear,primaryShear,hc,hm',hv',firstNormal_unit] | |
| 85 | + simp | |
| 86 | + | |
| 87 | +end EulerBaseDatum | |
+87 −0 Euler/BasePacketFrequencyCost.lean added View file
| @@ -0,0 +1,87 @@ | ||
| 1 | +import Euler.BasePacketUniformCosts | |
| 2 | +import Euler.PacketBaseGuardScales | |
| 3 | + | |
| 4 | +/-! The manuscript's literal first-packet scales have a fixed monomial | |
| 5 | +frequency cost. The exponent and coefficient do not depend on J or X. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +namespace EulerBaseDatum | |
| 10 | + | |
| 11 | +open Real Filter EulerPacketBaseGuardScales EulerPacketUniformSource EulerPacketSourceFrequency | |
| 12 | + | |
| 13 | +theorem firstParameterSize_literal (J : ℕ) (hJ : 1 ≤ J) (X : ℝ) (hX : 1 ≤ X) : | |
| 14 | + firstParameterSize (baseHorizon J X) (X^(-1010 : ℝ)) (X^1000) ≤ | |
| 15 | + (7+solutionLabelConstant)*X^1010 := by | |
| 16 | + have hX0 := zero_le_one.trans hX | |
| 17 | + have hJr : (1 : ℝ) ≤ J := by exact_mod_cast hJ | |
| 18 | + have hden : 1 ≤ 6*(J : ℝ)^2 := by nlinarith | |
| 19 | + have hi : (6*(J : ℝ)^2)⁻¹ ≤ 1 := inv_le_one_of_one_le₀ hden | |
| 20 | + have hT : (baseHorizon J X)⁻¹ ≤ X^498 := by | |
| 21 | + unfold baseHorizon | |
| 22 | + rw [mul_inv_rev,Real.rpow_neg hX0,inv_inv] | |
| 23 | + norm_num only [Real.rpow_ofNat] | |
| 24 | + exact (mul_le_mul_of_nonneg_left hi (pow_nonneg hX0 498)).trans_eq (mul_one _) | |
| 25 | + have hd : (X^(-1010 : ℝ))⁻¹=X^1010 := by | |
| 26 | + rw [Real.rpow_neg hX0,inv_inv] | |
| 27 | + norm_num only [Real.rpow_ofNat] | |
| 28 | + have ht : X^498 ≤ X^1010 := pow_le_pow_right₀ hX (by norm_num) | |
| 29 | + have hh : X^1000 ≤ X^1010 := pow_le_pow_right₀ hX (by norm_num) | |
| 30 | + have hK := solutionLabelConstant_one | |
| 31 | + have hone : (1 : ℝ) ≤ X^1010 := one_le_pow₀ hX | |
| 32 | + have hc : 4+solutionLabelConstant ≤ (4+solutionLabelConstant)*X^1010 := by | |
| 33 | + simpa only [mul_one] using mul_le_mul_of_nonneg_left hone (by linarith : 0 ≤ 4+solutionLabelConstant) | |
| 34 | + unfold firstParameterSize | |
| 35 | + rw [hd] | |
| 36 | + nlinarith only [hT.trans ht,hh,hc] | |
| 37 | + | |
| 38 | +def firstFrequencyConstant : ℝ := frequencyConstant*(7+solutionLabelConstant)^frequencyPower | |
| 39 | +def firstFrequencyPower : ℕ := 1010*frequencyPower | |
| 40 | + | |
| 41 | +theorem firstFrequencyConstant_pos : 0 < firstFrequencyConstant := by | |
| 42 | + have hK := solutionLabelConstant_one | |
| 43 | + unfold firstFrequencyConstant | |
| 44 | + exact mul_pos frequencyConstant_pos (pow_pos (by linarith) _) | |
| 45 | + | |
| 46 | +theorem first_frequency_cost_bound (J : ℕ) (hJ : 1 ≤ J) (X : ℝ) (hX : 1 ≤ X) : | |
| 47 | + EulerPacketInitializedOutputCost.uniformConstant* | |
| 48 | + (profileEnvelope (firstParameterSize (baseHorizon J X) (X^(-1010 : ℝ)) (X^1000)))^ | |
| 49 | + EulerPacketInitializedOutputCost.uniformPower ≤ firstFrequencyConstant*X^firstFrequencyPower := by | |
| 50 | + have hXpos := zero_lt_one.trans_le hX | |
| 51 | + have hp := (firstParameterSize_bounds (baseHorizon J X) (X^(-1010 : ℝ)) (X^1000) | |
| 52 | + (baseHorizon_pos J hJ hXpos) (Real.rpow_pos_of_pos hXpos _) (pow_nonneg hXpos.le _)).1 | |
| 53 | + apply (frequency_bound _ hp).trans | |
| 54 | + calc | |
| 55 | + _ ≤ frequencyConstant*((7+solutionLabelConstant)*X^1010)^frequencyPower := by | |
| 56 | + apply mul_le_mul_of_nonneg_left _ frequencyConstant_pos.le | |
| 57 | + exact pow_le_pow_left₀ (zero_le_one.trans hp) (firstParameterSize_literal J hJ X hX) _ | |
| 58 | + _ = _ := by | |
| 59 | + unfold firstFrequencyConstant firstFrequencyPower | |
| 60 | + rw [mul_pow,← pow_mul] | |
| 61 | + ring | |
| 62 | + | |
| 63 | +/-- This remaining threshold depends only on the fixed base exponent, | |
| 64 | +not on a parent or on a stage of the subsequent induction. -/ | |
| 65 | +theorem first_frequency_guard_eventually (J : ℕ) (hJ : 1 ≤ J) (D : ℕ) | |
| 66 | + (hD : (firstFrequencyPower : ℝ) < (D : ℝ)*(theta/100)) : | |
| 67 | + ∀ᶠ X : ℝ in atTop, | |
| 68 | + EulerPacketInitializedOutputCost.uniformConstant* | |
| 69 | + (profileEnvelope (firstParameterSize (baseHorizon J X) (X^(-1010 : ℝ)) (X^1000)))^ | |
| 70 | + EulerPacketInitializedOutputCost.uniformPower ≤ smallPower (X^D) := by | |
| 71 | + have hgap : 0 < (D : ℝ)*(theta/100)-(firstFrequencyPower : ℝ) := sub_pos.mpr hD | |
| 72 | + filter_upwards [eventually_ge_atTop (1 : ℝ), | |
| 73 | + (_root_.tendsto_rpow_atTop hgap).eventually_ge_atTop firstFrequencyConstant] with X hX hC | |
| 74 | + have hXp := zero_lt_one.trans_le hX | |
| 75 | + apply (first_frequency_cost_bound J hJ X hX).trans | |
| 76 | + calc | |
| 77 | + _ ≤ X^((D : ℝ)*(theta/100)-(firstFrequencyPower : ℝ))*X^firstFrequencyPower := | |
| 78 | + mul_le_mul_of_nonneg_right hC (pow_nonneg hXp.le _) | |
| 79 | + _ = X^((D : ℝ)*(theta/100)) := by | |
| 80 | + rw [← Real.rpow_natCast X firstFrequencyPower,← Real.rpow_add hXp] | |
| 81 | + congr 1 | |
| 82 | + ring | |
| 83 | + _ = smallPower (X^D) := by | |
| 84 | + unfold smallPower | |
| 85 | + rw [Real.rpow_mul hXp.le,Real.rpow_natCast] | |
| 86 | + | |
| 87 | +end EulerBaseDatum | |
+69 −0 Euler/BasePacketLowBounds.lean added View file
| @@ -0,0 +1,69 @@ | ||
| 1 | +import Euler.BasePacketSetup | |
| 2 | +import Euler.ParentHomogeneousPacketLowBounds | |
| 3 | + | |
| 4 | +/-! The first packet's size and sign hypotheses are proved for the | |
| 5 | +concrete base solution on its actual restricted horizon. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +namespace EulerBaseDatum | |
| 10 | + | |
| 11 | +open Set InnerProductSpace EulerSmoothLimit EulerParentPacketFrames | |
| 12 | + EulerBaseEulerGuards EulerPacketSupport EulerPacketFirstLowBounds | |
| 13 | + | |
| 14 | +variable (β : ℝ) (hβ : |β| ≤ 1) (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) | |
| 15 | + (T : ℝ) (hT : 0 < T) (hTB : T ≤ initialTime) | |
| 16 | + | |
| 17 | +def firstPacketData : EulerTransversePacketProvider.Data FirstPlane := | |
| 18 | + (packetBaseParent β hβ ell hell hell1 T hT hTB).transverseData | |
| 19 | + firstNormal firstNormal_unit firstFrame support compact | |
| 20 | + | |
| 21 | +theorem firstPacket_primary_size (t : Icc (0 : ℝ) T) (x : Space) : | |
| 22 | + ‖(firstPacketData β hβ ell hell hell1 T hT hTB).normal.field t x‖* | |
| 23 | + ‖EulerPacketForwardFactorization.canonicalVelocity | |
| 24 | + (firstPacketData β hβ ell hell hell1 T hT hTB) firstCoordinate t x‖ ≤ firstRatio := by | |
| 25 | + apply primary_size_le (firstPacketData β hβ ell hell hell1 T hT hTB) | |
| 26 | + initialCoefficientCost initialCoefficientCost_nonneg x | |
| 27 | + (fun s => packetBase_strain_bound β hβ ell hell hell1 T hT hTB s x) | |
| 28 | + (packetBase_short T hTB) firstCoordinate | |
| 29 | + · change ‖((packetBaseParent β hβ ell hell hell1 T hT hTB).transverseData | |
| 30 | + firstNormal firstNormal_unit firstFrame support compact).normal.field | |
| 31 | + (packetBaseParent β hβ ell hell hell1 T hT hTB).zeroTime x‖=1 | |
| 32 | + rw [source_normal_initial] | |
| 33 | + exact firstNormal_unit | |
| 34 | + · change ‖((packetBaseParent β hβ ell hell hell1 T hT hTB).transverseData | |
| 35 | + firstNormal firstNormal_unit firstFrame support compact).frame.field | |
| 36 | + (packetBaseParent β hβ ell hell hell1 T hT hTB).zeroTime x firstCoordinate‖=1 | |
| 37 | + rw [source_frame_initial,firstCoordinate_map] | |
| 38 | + simp | |
| 39 | + | |
| 40 | +theorem firstPacket_primary_flux (t : Icc (0 : ℝ) T) (x : Space) : | |
| 41 | + 0 ≤ ⟪(firstPacketData β hβ ell hell hell1 T hT hTB).normal.field t x, | |
| 42 | + (firstPacketData β hβ ell hell hell1 T hT hTB).M.field t x | |
| 43 | + (EulerPacketForwardFactorization.canonicalVelocity | |
| 44 | + (firstPacketData β hβ ell hell hell1 T hT hTB) firstCoordinate t x)⟫_ℝ := by | |
| 45 | + apply primary_flux_nonneg (firstPacketData β hβ ell hell hell1 T hT hTB) x firstCoordinate t | |
| 46 | + intro hx | |
| 47 | + exact (by norm_num : (0 : ℝ) ≤ 1/2).trans | |
| 48 | + (firstPacket_pressure_numerator β hβ ell hell hell1 T hT hTB t x hx) | |
| 49 | + | |
| 50 | +theorem packetBase_physical_strain (t : Icc (0 : ℝ) T) (x : Space) : | |
| 51 | + ‖fderiv ℝ (fun y => (packetBaseState β hβ ell hell hell1 T hT hTB).evolution.velocity (t,y)) x‖ ≤ | |
| 52 | + initialCoefficientCost := by | |
| 53 | + rw [← (packetBaseState β hβ ell hell hell1 T hT hTB).evolution.strain_at_normalized_inverse t x] | |
| 54 | + exact packetBase_strain_bound β hβ ell hell hell1 T hT hTB t _ | |
| 55 | + | |
| 56 | +theorem packetBase_physical_force (t : Icc (0 : ℝ) T) (x : Space) : | |
| 57 | + ‖fderiv ℝ ((packetBaseState β hβ ell hell hell1 T hT hTB).evolution.force t) x‖ ≤ | |
| 58 | + initialCoefficientCost := by | |
| 59 | + let E := (packetBaseState β hβ ell hell hell1 T hT hTB).evolution | |
| 60 | + have h := packetBase_curvature_bound β hβ ell hell hell1 T hT hTB t | |
| 61 | + (ell⁻¹ • E.inverse.field t x) | |
| 62 | + erw [E.curvature_eq] at h | |
| 63 | + change ‖fderiv ℝ (E.force t) | |
| 64 | + ((packetBaseParent β hβ ell hell hell1 T hT hTB).position t (ell • (ell⁻¹ • E.inverse.field t x)))‖ ≤ _ at h | |
| 65 | + simp only [smul_smul,mul_inv_cancel₀ hell.ne',one_smul] at h | |
| 66 | + erw [E.inverse.right_inverse] at h | |
| 67 | + exact h | |
| 68 | + | |
| 69 | +end EulerBaseDatum | |
+142 −0 Euler/BasePacketSetup.lean added View file
| @@ -0,0 +1,142 @@ | ||
| 1 | +import Euler.BaseSmoothState | |
| 2 | +import Euler.ParentPacketForwardInput | |
| 3 | + | |
| 4 | +/-! Concrete support, transverse coordinate and short-time source | |
| 5 | +budgets for the first packet over the compact base Euler solution. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +namespace EulerPacketSupport | |
| 10 | + | |
| 11 | +open Set EulerSmoothLimit EulerSpatialCutoffs | |
| 12 | + | |
| 13 | +def support : Set Space := tsupport innerCutoff | |
| 14 | + | |
| 15 | +theorem compact : IsCompact support := innerCutoff_compactSupport | |
| 16 | + | |
| 17 | +theorem subset_halfBall : support ⊆ Metric.ball 0 (1/2 : ℝ) := innerCutoff_support | |
| 18 | + | |
| 19 | +theorem symmetric (x : Space) : -x ∈ support ↔ x ∈ support := by | |
| 20 | + have hf : innerCutoff ∘ Homeomorph.neg Space=innerCutoff := by | |
| 21 | + funext y | |
| 22 | + exact innerCutoff_even y | |
| 23 | + calc | |
| 24 | + -x ∈ support ↔ x ∈ tsupport (innerCutoff ∘ Homeomorph.neg Space) := by | |
| 25 | + rw [tsupport_comp_eq_preimage] | |
| 26 | + rfl | |
| 27 | + _ ↔ x ∈ support := by rw [hf]; rfl | |
| 28 | + | |
| 29 | +theorem norm_lt (x : Space) (hx : x ∈ support) : ‖x‖ < (1/2 : ℝ) := by | |
| 30 | + simpa only [Metric.mem_ball,dist_zero_right] using subset_halfBall hx | |
| 31 | + | |
| 32 | +end EulerPacketSupport | |
| 33 | + | |
| 34 | +namespace EulerBaseDatum | |
| 35 | + | |
| 36 | +open Set InnerProductSpace EulerSmoothLimit EulerParentPacketFrames | |
| 37 | + EulerTransverseFrameCoordinates EulerBaseEulerGuards EulerPacketSupport | |
| 38 | + | |
| 39 | +def firstNormal : Space := EuclideanSpace.single 0 1 | |
| 40 | + | |
| 41 | +theorem firstNormal_unit : ‖firstNormal‖=1 := by simp [firstNormal] | |
| 42 | + | |
| 43 | +abbrev FirstPlane := referencePlane firstNormal | |
| 44 | + | |
| 45 | +def firstFrame : FirstPlane ≃ₗᵢ[ℝ] referencePlane firstNormal := LinearIsometryEquiv.refl ℝ _ | |
| 46 | + | |
| 47 | +def firstCoordinate : FirstPlane := ⟨EuclideanSpace.single 1 1,by | |
| 48 | + rw [Submodule.mem_orthogonal_singleton_iff_inner_right] | |
| 49 | + simp [firstNormal,EuclideanSpace.inner_single_left]⟩ | |
| 50 | + | |
| 51 | +theorem firstCoordinate_map : (firstFrame firstCoordinate : Space)=EuclideanSpace.single 1 1 := rfl | |
| 52 | + | |
| 53 | +theorem firstCoordinate_norm : ‖firstCoordinate‖=1 := by | |
| 54 | + change ‖(EuclideanSpace.single 1 1 : Space)‖=1 | |
| 55 | + simp | |
| 56 | + | |
| 57 | +variable (β : ℝ) (hβ : |β| ≤ 1) (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) | |
| 58 | + (T : ℝ) (hT : 0 < T) (hTB : T ≤ initialTime) | |
| 59 | + | |
| 60 | +def packetBaseParent : Parent := | |
| 61 | + (initialParent β hβ ell hell hell1).restrictTime T hT hTB | |
| 62 | + | |
| 63 | +def packetBaseState : SmoothState (packetBaseParent β hβ ell hell hell1 T hT hTB) := | |
| 64 | + (initialState β hβ ell hell hell1).restrictTime T hT hTB | |
| 65 | + | |
| 66 | +def packetBaseLowBounds : LowBounds (packetBaseParent β hβ ell hell hell1 T hT hTB) := | |
| 67 | + (initialLowBounds β hβ ell hell hell1).restrictTime T hT hTB | |
| 68 | + | |
| 69 | +theorem packetBase_label_constant : | |
| 70 | + (packetBaseState β hβ ell hell hell1 T hT hTB).labels.K=solutionLabelConstant := rfl | |
| 71 | + | |
| 72 | +theorem packetBase_boundary_zero : | |
| 73 | + (packetBaseLowBounds β hβ ell hell hell1 T hT hTB).L=0 := rfl | |
| 74 | + | |
| 75 | +include hTB in | |
| 76 | +theorem packetBase_short : initialCoefficientCost*T ≤ 1/2 := | |
| 77 | + ((mul_le_mul_of_nonneg_left hTB initialCoefficientCost_nonneg).trans initialTime_small.1).trans | |
| 78 | + (by norm_num) | |
| 79 | + | |
| 80 | +include hTB in | |
| 81 | +theorem packetBase_sign_short : | |
| 82 | + EulerPacketFirstPressureSign.firstSignRate initialCoefficientCost initialCoefficientCost*T ≤ 1/2 := by | |
| 83 | + have hnonneg : 0 ≤ EulerPacketFirstPressureSign.firstSignRate initialCoefficientCost initialCoefficientCost := by | |
| 84 | + unfold EulerPacketFirstPressureSign.firstSignRate | |
| 85 | + positivity [initialCoefficientCost_nonneg] | |
| 86 | + exact ((mul_le_mul_of_nonneg_left hTB hnonneg).trans initialTime_small.2).trans (by norm_num) | |
| 87 | + | |
| 88 | +theorem packetBase_strain_bound (t : Icc (0 : ℝ) T) (x : Space) : | |
| 89 | + ‖(packetBaseParent β hβ ell hell hell1 T hT hTB).strain.field t x‖ ≤ initialCoefficientCost := by | |
| 90 | + change ‖((initialParent β hβ ell hell hell1).restrictTime T hT hTB).strain.field t x‖ ≤ _ | |
| 91 | + erw [Parent.restrictTime_strain] | |
| 92 | + exact initial_strain_bound β hβ ell hell hell1 _ x | |
| 93 | + | |
| 94 | +theorem packetBase_curvature_bound (t : Icc (0 : ℝ) T) (x : Space) : | |
| 95 | + ‖(packetBaseParent β hβ ell hell hell1 T hT hTB).curvature.field t x‖ ≤ initialCoefficientCost := by | |
| 96 | + change ‖((initialParent β hβ ell hell hell1).restrictTime T hT hTB).curvature.field t x‖ ≤ _ | |
| 97 | + erw [Parent.restrictTime_curvature] | |
| 98 | + exact initial_curvature_bound β hβ ell hell hell1 _ x | |
| 99 | + | |
| 100 | +theorem packetBase_initialStrain (x : Space) (hx : x ∈ support) : | |
| 101 | + (packetBaseParent β hβ ell hell hell1 T hT hTB).initialStrain.field x=linear β := by | |
| 102 | + erw [packetBaseParent,Parent.restrictTime_initialStrain] | |
| 103 | + apply initialStrain_plateau β hβ ell hell hell1 | |
| 104 | + rw [norm_smul,Real.norm_eq_abs,abs_of_pos hell] | |
| 105 | + have hb := mul_le_mul_of_nonneg_right hell1 (norm_nonneg x) | |
| 106 | + have hx' := norm_lt x hx | |
| 107 | + nlinarith only [hb,hx'] | |
| 108 | + | |
| 109 | +def firstPacketInputs : | |
| 110 | + ForwardInputs | |
| 111 | + ((packetBaseParent β hβ ell hell hell1 T hT hTB).meanData | |
| 112 | + (packetBaseLowBounds β hβ ell hell hell1 T hT hTB)) | |
| 113 | + ((packetBaseParent β hβ ell hell hell1 T hT hTB).transverseData | |
| 114 | + firstNormal firstNormal_unit firstFrame support compact) := | |
| 115 | + (packetBaseState β hβ ell hell hell1 T hT hTB).labels.forwardInputs | |
| 116 | + (packetBaseLowBounds β hβ ell hell hell1 T hT hTB) | |
| 117 | + firstNormal firstNormal_unit firstFrame support compact | |
| 118 | + initialCoefficientCost initialCoefficientCost_nonneg | |
| 119 | + (fun t x _ => packetBase_strain_bound β hβ ell hell hell1 T hT hTB t x) | |
| 120 | + (Metric.ball 0 (1/2 : ℝ)) Metric.isOpen_ball.measurableSet Metric.isOpen_ball subset_halfBall | |
| 121 | + (fun x hx => le_of_lt (by simpa only [Metric.mem_ball,dist_zero_right] using hx)) | |
| 122 | + (packetBase_short T hTB) T⁻¹ (hTB.trans initialTime_le_one) le_rfl | |
| 123 | + | |
| 124 | +theorem firstPacketInputs_growth : | |
| 125 | + (firstPacketInputs β hβ ell hell hell1 T hT hTB).linear.g=1 := rfl | |
| 126 | + | |
| 127 | +theorem firstPacket_pressure_numerator (t : Icc (0 : ℝ) T) | |
| 128 | + (x : Space) (hx : x ∈ support) : | |
| 129 | + 1/2 ≤ ⟪((packetBaseParent β hβ ell hell hell1 T hT hTB).transverseData | |
| 130 | + firstNormal firstNormal_unit firstFrame support compact).normal.field t x, | |
| 131 | + (packetBaseParent β hβ ell hell hell1 T hT hTB).strain.field t x | |
| 132 | + (EulerPacketForwardFactorization.uncutVelocity | |
| 133 | + ((packetBaseParent β hβ ell hell hell1 T hT hTB).transverseData | |
| 134 | + firstNormal firstNormal_unit firstFrame support compact) firstCoordinate t x)⟫_ℝ := by | |
| 135 | + apply source_numerator_pos (packetBaseState β hβ ell hell hell1 T hT hTB).labels | |
| 136 | + firstNormal firstNormal_unit firstFrame support compact firstCoordinate firstCoordinate_norm x | |
| 137 | + · rw [packetBase_initialStrain β hβ ell hell hell1 T hT hTB x hx,firstCoordinate_map,linear_q] | |
| 138 | + simp [firstNormal,EuclideanSpace.inner_single_left,PiLp.add_apply,PiLp.smul_apply] | |
| 139 | + · exact packetBase_short T hTB | |
| 140 | + · exact packetBase_sign_short T hTB | |
| 141 | + | |
| 142 | +end EulerBaseDatum | |
+70 −0 Euler/BasePacketUniformCosts.lean added View file
| @@ -0,0 +1,70 @@ | ||
| 1 | +import Euler.ParentShortForwardRadius | |
| 2 | +import Euler.PacketSourceUniformEnvelope | |
| 3 | +import Euler.BasePacketSetup | |
| 4 | + | |
| 5 | +/-! The concrete compact base Euler solution supplies a uniform polynomial | |
| 6 | +source envelope for its first packet, independent of beta and the support scale. -/ | |
| 7 | + | |
| 8 | +noncomputable section | |
| 9 | + | |
| 10 | +namespace EulerBaseDatum | |
| 11 | + | |
| 12 | +open Set EulerSmoothLimit EulerPacketSupport EulerParentPacketFrames | |
| 13 | + EulerPacketTerminalDatum EulerPacketCylinderField EulerPacketUniformSource | |
| 14 | + EulerParentInitializedRadius | |
| 15 | + | |
| 16 | +def firstParameterSize (T δ hchild : ℝ) : ℝ := | |
| 17 | + 4+solutionLabelConstant+T⁻¹+δ⁻¹+hchild | |
| 18 | + | |
| 19 | +theorem firstParameterSize_bounds (T δ hchild : ℝ) (hT : 0 < T) (hδ : 0 < δ) | |
| 20 | + (hh : 0 ≤ hchild) : | |
| 21 | + 1 ≤ firstParameterSize T δ hchild ∧ solutionLabelConstant ≤ firstParameterSize T δ hchild ∧ | |
| 22 | + T⁻¹ ≤ firstParameterSize T δ hchild ∧ 2 ≤ firstParameterSize T δ hchild ∧ | |
| 23 | + δ⁻¹ ≤ firstParameterSize T δ hchild ∧ hchild ≤ firstParameterSize T δ hchild := by | |
| 24 | + have hK := solutionLabelConstant_one | |
| 25 | + have hTi := (inv_pos.mpr hT).le | |
| 26 | + have hdi := (inv_pos.mpr hδ).le | |
| 27 | + unfold firstParameterSize | |
| 28 | + exact ⟨by linarith,by linarith,by linarith,by linarith,by linarith,by linarith⟩ | |
| 29 | + | |
| 30 | +variable (β : ℝ) (hβ : |β| ≤ 1) (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) | |
| 31 | + (T : ℝ) (hT : 0 < T) (hTB : T ≤ initialTime) | |
| 32 | + | |
| 33 | +local notation "A" => firstPacketInputs β hβ ell hell hell1 T hT hTB | |
| 34 | +local notation "G" => packetBaseParent β hβ ell hell hell1 T hT hTB | |
| 35 | +local notation "L" => SmoothState.labels (packetBaseState β hβ ell hell hell1 T hT hTB) | |
| 36 | +local notation "H" => packetBaseLowBounds β hβ ell hell hell1 T hT hTB | |
| 37 | +local notation "D" => Parent.transverseData G firstNormal firstNormal_unit firstFrame support compact | |
| 38 | +local notation "BC" => forwardCoefficientBudget period (Parent.meanData G H) D rfl (ForwardInputs.normal A) | |
| 39 | + | |
| 40 | +theorem firstPacket_uniform_primitives (δ : ℝ) (hδ : 0 < δ) (hδ1 : δ ≤ 1) | |
| 41 | + (hchild : ℝ) (hh : 0 ≤ hchild) : | |
| 42 | + let X := firstParameterSize T δ hchild | |
| 43 | + EulerPacketForwardRadius.RadiusPrimitives (A).linear (A).mean (A).normal BC δ firstCoordinate | |
| 44 | + (profileEnvelope X) ∧ | |
| 45 | + (∀ t, (δ*hchild)*(A).linear.g t ≤ profileEnvelope X) ∧ | |
| 46 | + EulerPacketInitializedOutputCost.uniformConstant* | |
| 47 | + (profileEnvelope X)^EulerPacketInitializedOutputCost.uniformPower ≤ | |
| 48 | + frequencyConstant*X^frequencyPower := by | |
| 49 | + let X := firstParameterSize T δ hchild | |
| 50 | + obtain ⟨hX,hK,hTi,h2,hd,hhX⟩ := firstParameterSize_bounds T δ hchild hT hδ hh | |
| 51 | + have hr := (L).shortForward_radius_primitives H firstNormal firstNormal_unit firstFrame support compact | |
| 52 | + initialCoefficientCost initialCoefficientCost_nonneg | |
| 53 | + (fun t x _ => packetBase_strain_bound β hβ ell hell hell1 T hT hTB t x) | |
| 54 | + (packetBase_short T hTB) (Metric.ball 0 (1/2 : ℝ)) Metric.isOpen_ball.measurableSet | |
| 55 | + Metric.isOpen_ball subset_halfBall | |
| 56 | + (fun x hx => le_of_lt (by simpa only [Metric.mem_ball,dist_zero_right] using hx)) | |
| 57 | + T⁻¹ (hTB.trans initialTime_le_one) le_rfl δ firstCoordinate X hK hTi h2 | |
| 58 | + (zero_le_one.trans hX) hd (by simpa only [firstCoordinate_norm] using hX) | |
| 59 | + have hSX : X ≤ sourceEnvelope X := | |
| 60 | + (inputEnvelope_bounds X X hX le_rfl).2.1.trans | |
| 61 | + (EulerPacketSourceRadius.le_sourceRadiusEnvelope _ | |
| 62 | + (zero_le_one.trans (inputEnvelope_bounds X X hX le_rfl).1)) | |
| 63 | + refine ⟨hr.mono (profileEnvelope_bounds X hX).2.1,?_,frequency_bound X hX⟩ | |
| 64 | + intro t | |
| 65 | + change (δ*hchild)*1 ≤ _ | |
| 66 | + rw [mul_one] | |
| 67 | + exact ((mul_le_mul_of_nonneg_right hδ1 hh).trans_eq (one_mul _)).trans | |
| 68 | + (hhX.trans (hSX.trans (profileEnvelope_bounds X hX).2.1)) | |
| 69 | + | |
| 70 | +end EulerBaseDatum | |
+96 −0 Euler/BasePressureCommutator.lean added View file
| @@ -0,0 +1,96 @@ | ||
| 1 | +import Euler.GevreyCorrectionSplit | |
| 2 | + | |
| 3 | +/-! The actual base-order pressure commutator needs only one fewer pressure derivative. -/ | |
| 4 | + | |
| 5 | +noncomputable section | |
| 6 | + | |
| 7 | +namespace EulerBasePressureCommutator | |
| 8 | + | |
| 9 | +open MeasureTheory EulerLiftedGradientSpace EulerCylinderSobolev EulerSpatialSobolevInverse | |
| 10 | + EulerH6Pressure EulerJetProductBounds EulerPacketWeights | |
| 11 | +open scoped Topology | |
| 12 | + | |
| 13 | +variable (period : ℝ) [Fact (0 < period)] | |
| 14 | + | |
| 15 | +/-- Sum of the strictly positive coefficient derivative bounds at the fixed base index six. -/ | |
| 16 | +def baseCoefficientSum {A : SmoothCoefficient period} | |
| 17 | + (K : EulerSpatialSobolevInverse.CoefficientJet period standardDirection 6 A) : ℝ := | |
| 18 | + ∑ l ∈ Finset.range 6, boundLevel period K (l+1) | |
| 19 | + | |
| 20 | +omit [Fact (0 < period)] in | |
| 21 | +theorem baseCoefficientSum_nonneg {A : SmoothCoefficient period} | |
| 22 | + (K : EulerSpatialSobolevInverse.CoefficientJet period standardDirection 6 A) : 0 ≤ baseCoefficientSum period K := | |
| 23 | + Finset.sum_nonneg fun _ _ => boundLevel_nonneg K | |
| 24 | + | |
| 25 | +/-- Every pressure derivative of order at most five is controlled by its genuine H⁵ norm. -/ | |
| 26 | +theorem pressure_level_le_five {p : LiftL2 period} | |
| 27 | + (J : EulerSpatialSobolevInverse.SpatialJet period standardDirection 6 p) {j : ℕ} (hj : j ≤ 5) : | |
| 28 | + levelNorm period J j ≤ sobolevSize period (directions := standardDirection) 5 p := by | |
| 29 | + rw [← blockNorm_zero_eq_size J (by norm_num : 5 ≤ 6)] | |
| 30 | + change levelNorm period J j ≤ ∑ r ∈ Finset.range 6, levelNorm period J r | |
| 31 | + have hmem : j ∈ Finset.range 6 := Finset.mem_range.mpr (by omega) | |
| 32 | + exact Finset.single_le_sum (fun r _ => (levelNorm_nonneg J : 0 ≤ levelNorm period J r)) hmem | |
| 33 | + | |
| 34 | +/-- At each base derivative order, the actual coefficient commutator uses only H⁵ pressure. -/ | |
| 35 | +theorem base_order_bound {A : SmoothCoefficient period} {p : LiftL2 period} | |
| 36 | + (K : EulerSpatialSobolevInverse.CoefficientJet period standardDirection 6 A) | |
| 37 | + (J : EulerSpatialSobolevInverse.SpatialJet period standardDirection 6 p) (r : ℕ) (hr : r ≤ 6) : | |
| 38 | + commutatorBlock K J 0 r ≤ 64 * baseCoefficientSum period K * sobolevSize period (directions := standardDirection) 5 p := by | |
| 39 | + apply (commutatorBlock_bound K J (by omega : r+0 ≤ 6)).trans | |
| 40 | + rw [commutatorConvolution_eq_sum] | |
| 41 | + have hs : (∑ l ∈ Finset.range r, (r.choose (l+1) : ℝ)*coefficientBlock period K 0 (l+1)*blockNorm period J 0 (r-(l+1))) ≤ | |
| 42 | + 64 * (∑ l ∈ Finset.range r, boundLevel period K (l+1)) * sobolevSize period (directions := standardDirection) 5 p := by | |
| 43 | + rw [Finset.mul_sum, Finset.sum_mul] | |
| 44 | + apply Finset.sum_le_sum | |
| 45 | + intro l hl | |
| 46 | + have hj : r-(l+1) ≤ 5 := by have := Finset.mem_range.mp hl; omega | |
| 47 | + have hc : (r.choose (l+1) : ℝ) ≤ 64 := by | |
| 48 | + have h1 : (r.choose (l+1) : ℝ) ≤ (2 : ℝ)^r := by exact_mod_cast Nat.choose_le_two_pow r (l+1) | |
| 49 | + exact h1.trans ((pow_le_pow_right₀ (by norm_num : (1 : ℝ) ≤ 2) hr).trans_eq (by norm_num)) | |
| 50 | + simpa [coefficientBlock, blockNorm] using | |
| 51 | + (mul_le_mul (mul_le_mul_of_nonneg_right hc (boundLevel_nonneg K)) | |
| 52 | + (pressure_level_le_five period J hj) (levelNorm_nonneg J) | |
| 53 | + (mul_nonneg (by norm_num : (0 : ℝ) ≤ 64) (boundLevel_nonneg K))) | |
| 54 | + | |
| 55 | + apply hs.trans | |
| 56 | + apply mul_le_mul_of_nonneg_right _ (sobolevSize_nonneg 5 p) | |
| 57 | + apply mul_le_mul_of_nonneg_left _ (by norm_num : (0 : ℝ) ≤ 64) | |
| 58 | + exact Finset.sum_le_sum_of_subset_of_nonneg (Finset.range_mono hr) (fun _ _ _ => boundLevel_nonneg K) | |
| 59 | + | |
| 60 | +/-- Summing all base orders through six leaves a fixed constant and only H⁵ pressure. -/ | |
| 61 | +theorem base_sum_bound {A : SmoothCoefficient period} {p : LiftL2 period} | |
| 62 | + (K : EulerSpatialSobolevInverse.CoefficientJet period standardDirection 6 A) | |
| 63 | + (J : EulerSpatialSobolevInverse.SpatialJet period standardDirection 6 p) : | |
| 64 | + (∑ r ∈ Finset.range 7, commutatorBlock K J 0 r) ≤ | |
| 65 | + 448 * baseCoefficientSum period K * sobolevSize period (directions := standardDirection) 5 p := by | |
| 66 | + have h := Finset.sum_le_sum (s := Finset.range 7) (fun r hr => base_order_bound period K J r (by have := Finset.mem_range.mp hr; omega)) | |
| 67 | + exact h.trans_eq (by simp only [Finset.sum_const, Finset.card_range, nsmul_eq_mul]; ring) | |
| 68 | + | |
| 69 | +/-- The actual base pressure commutators after an external derivative word. -/ | |
| 70 | +def basePressureBlock {s : ℕ} {A : SmoothCoefficient period} {p : LiftL2 period} | |
| 71 | + (K : EulerSpatialSobolevInverse.CoefficientJet period standardDirection 6 A) | |
| 72 | + (J : EulerSpatialSobolevInverse.SpatialJet period standardDirection s p) (n : ℕ) (hn : n+6 ≤ s) : ℝ := | |
| 73 | + ∑ w : Fin n → Fin 4, ∑ r ∈ Finset.range 7, | |
| 74 | + commutatorBlock K (EulerH6Pressure.SpatialJet.derivativeJet (q := 6) J w hn) 0 r | |
| 75 | + | |
| 76 | +/-- At every external order, the base commutator loses no external derivative. -/ | |
| 77 | +theorem basePressureBlock_bound {s : ℕ} {A : SmoothCoefficient period} {p : LiftL2 period} | |
| 78 | + (K : EulerSpatialSobolevInverse.CoefficientJet period standardDirection 6 A) | |
| 79 | + (J : EulerSpatialSobolevInverse.SpatialJet period standardDirection s p) (n : ℕ) (hn : n+6 ≤ s) : | |
| 80 | + basePressureBlock period K J n hn ≤ 448 * baseCoefficientSum period K * blockNorm period J 5 n := by | |
| 81 | + rw [blockNorm_eq_word_sizes J (by omega : n+5 ≤ s), Finset.mul_sum] | |
| 82 | + exact Finset.sum_le_sum fun w _ => base_sum_bound period K (EulerH6Pressure.SpatialJet.derivativeJet J w hn) | |
| 83 | + | |
| 84 | +/-- The complete finite weighted base pressure commutator is controlled by the unshifted H⁵ pressure sum. -/ | |
| 85 | +theorem basePressure_weighted_bound {s : ℕ} {A : SmoothCoefficient period} {p : LiftL2 period} | |
| 86 | + (K : EulerSpatialSobolevInverse.CoefficientJet period standardDirection 6 A) | |
| 87 | + (J : EulerSpatialSobolevInverse.SpatialJet period standardDirection s p) (N : ℕ) (hN : N+6 ≤ s) | |
| 88 | + (ρ : ℝ) (hρ : 0 < ρ) : | |
| 89 | + (∑ n : Fin (N+1), weight ρ n.val * basePressureBlock period K J n.val (by have := n.isLt; omega)) ≤ | |
| 90 | + 448 * baseCoefficientSum period K * ∑ n ∈ Finset.range (N+1), weight ρ n * blockNorm period J 5 n := by | |
| 91 | + rw [← Fin.sum_univ_eq_sum_range, Finset.mul_sum] | |
| 92 | + exact Finset.sum_le_sum fun n _ => | |
| 93 | + (mul_le_mul_of_nonneg_left (basePressureBlock_bound period K J n.val (by have := n.isLt; omega)) | |
| 94 | + (weight_pos hρ n.val).le).trans_eq (by ring) | |
| 95 | + | |
| 96 | +end EulerBasePressureCommutator | |
+22 −0 Euler/BaseSmoothState.lean added View file
| @@ -0,0 +1,22 @@ | ||
| 1 | +import Euler.BaseEulerState | |
| 2 | +import Euler.ParentState | |
| 3 | + | |
| 4 | +/-! The concrete compactly supported datum supplies the full recursive | |
| 5 | +state: the physical Euler solution, all Sobolev orders, particle labels, | |
| 6 | +and odd symmetry all refer to the same solution. -/ | |
| 7 | + | |
| 8 | +noncomputable section | |
| 9 | + | |
| 10 | +namespace EulerBaseDatum | |
| 11 | + | |
| 12 | +open EulerParentPacketFrames | |
| 13 | + | |
| 14 | +def initialState (β : ℝ) (hβ : |β| ≤ 1) (ell : ℝ) | |
| 15 | + (hell : 0 < ell) (hell1 : ell ≤ 1) : | |
| 16 | + SmoothState (initialParent β hβ ell hell hell1) where | |
| 17 | + evolution := initialEvolution β hβ ell hell hell1 | |
| 18 | + regularity := initialSobolevData β hβ ell hell hell1 | |
| 19 | + labels := initialLabelData β hβ ell hell hell1 | |
| 20 | + odd := initialOddData β hβ ell hell hell1 | |
| 21 | + | |
| 22 | +end EulerBaseDatum | |
+158 −0 Euler/BaseStaticEuler.lean added View file
| @@ -0,0 +1,158 @@ | ||
| 1 | +import Euler.StaticEulerGevrey | |
| 2 | +import Euler.StaticEulerParity | |
| 3 | +import Euler.BaseEulerLabelData | |
| 4 | +import Euler.BaseEulerParity | |
| 5 | +import Euler.ParentEulerState | |
| 6 | + | |
| 7 | +/-! The locally constructed ordinary Euler solution supplies a concrete | |
| 8 | +first parent, its label budget and its genuine particle inverse. All | |
| 9 | +constants and the positive common horizon depend only on the input | |
| 10 | +Gevrey envelope, not on the particular initial datum. -/ | |
| 11 | + | |
| 12 | +noncomputable section | |
| 13 | + | |
| 14 | +namespace EulerStaticEuler | |
| 15 | + | |
| 16 | +open Set EulerSmoothLimit EulerLpTranslation EulerParentPacketFrames | |
| 17 | + EulerTimeIntervalRestriction EulerParameterWordGevrey EulerSmoothFlowGevrey | |
| 18 | +open scoped ContDiff BoundedContinuousFunction | |
| 19 | + | |
| 20 | +variable (P : ℝ) [Fact (0 < P)] | |
| 21 | + | |
| 22 | +def baseTime (C R : ℝ) (hC : 0 ≤ C) (hR : 0 ≤ R) : ℝ := | |
| 23 | + EulerBaseEulerParent.horizon (amplitude P C R hC hR) | |
| 24 | + (outputVelocitySize P C R) (outputRadius R) | |
| 25 | + | |
| 26 | +theorem baseTime_pos (C R : ℝ) (hC : 0 ≤ C) (hR : 0 ≤ R) : | |
| 27 | + 0 < baseTime P C R hC hR := | |
| 28 | + EulerBaseEulerParent.horizon_pos _ _ _ (amplitude_pos P C R hC hR) | |
| 29 | + (outputVelocitySize_nonneg P C R hC hR) (outputRadius_pos R hR).le | |
| 30 | + | |
| 31 | +theorem baseTime_le (C R : ℝ) (hC : 0 ≤ C) (hR : 0 ≤ R) : | |
| 32 | + baseTime P C R hC hR ≤ amplitude P C R hC hR := | |
| 33 | + EulerBaseEulerParent.horizon_le _ _ _ | |
| 34 | + | |
| 35 | +def baseInclusion (C R : ℝ) (hC : 0 ≤ C) (hR : 0 ≤ R) : | |
| 36 | + C(Icc (0 : ℝ) (baseTime P C R hC hR), Icc (0 : ℝ) (amplitude P C R hC hR)) := | |
| 37 | + initialInclusion _ _ (baseTime_le P C R hC hR) | |
| 38 | + | |
| 39 | +def baseLabelConstant (C R : ℝ) (hC : 0 ≤ C) (hR : 0 ≤ R) : ℝ := | |
| 40 | + let T := baseTime P C R hC hR | |
| 41 | + let B := outputVelocitySize P C R | |
| 42 | + let S := outputRadius R | |
| 43 | + let C₁ := outputDerivativeSize P C R hC hR | |
| 44 | + let V := flowRadius B S T S | |
| 45 | + let M := C₁+3*(B*S)*B | |
| 46 | + let A := flowRadius B S T (4*S+S+S) | |
| 47 | + 1+sobolevCoefficientAmplitude (Fin 3) 6 V (T*B)+ | |
| 48 | + sobolevCoefficientAmplitude (Fin 3) 6 V B+ | |
| 49 | + sobolevCoefficientAmplitude (Fin 3) 6 A M+ | |
| 50 | + sobolevCoefficientRadius (Fin 3) V+sobolevCoefficientRadius (Fin 3) A | |
| 51 | + | |
| 52 | +variable (u : SmoothL2Field Space) (C R : ℝ) (hC : 0 ≤ C) (hR : 0 ≤ R) | |
| 53 | + (hu : u.HasJetBound C R) (hdiv : ∀ x, divergence u.field x=0) | |
| 54 | + | |
| 55 | +def baseInput : EulerBaseEulerParent.Input := | |
| 56 | + EulerBaseEulerParent.ofInterval (amplitude P C R hC hR) (amplitude_pos P C R hC hR) | |
| 57 | + (velocityCoefficient P u C R hC hR hu hdiv) | |
| 58 | + (derivativeCoefficient P u C R hC hR hu hdiv) | |
| 59 | + (coefficient_time P u C R hC hR hu hdiv) | |
| 60 | + (fun t x => by | |
| 61 | + have he : ((velocityCoefficient P u C R hC hR hu hdiv).field t : Space → Space)= | |
| 62 | + fun y => localVelocity P u C R hC hR hu hdiv (t,y) := | |
| 63 | + funext (velocityCoefficient_apply P u C R hC hR hu hdiv t) | |
| 64 | + rw [he] | |
| 65 | + exact localVelocity_divergence P u C R hC hR hu hdiv t x) | |
| 66 | + (outputVelocitySize P C R) (outputRadius R) | |
| 67 | + (outputVelocitySize_nonneg P C R hC hR) (outputRadius_pos R hR) | |
| 68 | + (velocityCoefficient_bound P u C R hC hR hu hdiv) | |
| 69 | + | |
| 70 | +theorem baseInput_field (t : Icc (0 : ℝ) (baseTime P C R hC hR)) (x : Space) : | |
| 71 | + (baseInput P u C R hC hR hu hdiv).field.field t x= | |
| 72 | + localVelocity P u C R hC hR hu hdiv (t,x) := | |
| 73 | + velocityCoefficient_apply P u C R hC hR hu hdiv (baseInclusion P C R hC hR t) x | |
| 74 | + | |
| 75 | +def baseL2Data : EulerBaseEulerParent.L2Data (baseInput P u C R hC hR hu hdiv) where | |
| 76 | + velocity t := localField P u C R hC hR hu hdiv (baseInclusion P C R hC hR t) | |
| 77 | + derivative t := localDerivativeField P u C R hC hR hu hdiv (baseInclusion P C R hC hR t) | |
| 78 | + velocity_match t x := | |
| 79 | + (localField_apply P u C R hC hR hu hdiv (baseInclusion P C R hC hR t) x).trans | |
| 80 | + (baseInput_field P u C R hC hR hu hdiv t x).symm | |
| 81 | + derivative_match t x := | |
| 82 | + localDerivativeField_apply P u C R hC hR hu hdiv (baseInclusion P C R hC hR t) x | |
| 83 | + C := outputVelocitySize P C R | |
| 84 | + S := outputRadius R | |
| 85 | + C₁ := outputDerivativeSize P C R hC hR | |
| 86 | + S₁ := outputRadius R | |
| 87 | + C_nonneg := outputVelocitySize_nonneg P C R hC hR | |
| 88 | + S_nonneg := (outputRadius_pos R hR).le | |
| 89 | + C₁_nonneg := outputDerivativeSize_nonneg P C R hC hR | |
| 90 | + S₁_nonneg := (outputRadius_pos R hR).le | |
| 91 | + velocity_bound t := localField_bound P u C R hC hR hu hdiv (baseInclusion P C R hC hR t) | |
| 92 | + derivative_bound t := localDerivativeField_bound P u C R hC hR hu hdiv | |
| 93 | + (baseInclusion P C R hC hR t) | |
| 94 | + | |
| 95 | +variable (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) | |
| 96 | + | |
| 97 | +def baseParent : Parent := (baseInput P u C R hC hR hu hdiv).parent ell hell hell1 | |
| 98 | + | |
| 99 | +def baseLabelData : LabelData (baseParent P u C R hC hR hu hdiv ell hell hell1) := | |
| 100 | + (baseL2Data P u C R hC hR hu hdiv).labelData ell hell hell1 | |
| 101 | + | |
| 102 | +theorem baseLabelData_constant : | |
| 103 | + (baseLabelData P u C R hC hR hu hdiv ell hell hell1).K=baseLabelConstant P C R hC hR := rfl | |
| 104 | + | |
| 105 | +include u hu hdiv ell hell hell1 in | |
| 106 | +theorem baseLabelConstant_one : 1 ≤ baseLabelConstant P C R hC hR := | |
| 107 | + (baseLabelData P u C R hC hR hu hdiv ell hell hell1).K_one | |
| 108 | + | |
| 109 | +def baseInverse : ParticleInverse (baseParent P u C R hC hR hu hdiv ell hell hell1) := | |
| 110 | + (baseInput P u C R hC hR hu hdiv).particleInverse ell hell hell1 | |
| 111 | + | |
| 112 | +theorem baseParent_velocity_match (t : Icc (0 : ℝ) (baseTime P C R hC hR)) (x : Space) : | |
| 113 | + (baseParent P u C R hC hR hu hdiv ell hell hell1).velocity.field t x= | |
| 114 | + localVelocity P u C R hC hR hu hdiv | |
| 115 | + (t,(baseParent P u C R hC hR hu hdiv ell hell hell1).position t x) := by | |
| 116 | + have h := (baseInput P u C R hC hR hu hdiv).parent_velocity ell hell hell1 t x | |
| 117 | + exact h.trans (baseInput_field P u C R hC hR hu hdiv t _) | |
| 118 | + | |
| 119 | +def baseEvolution : Evolution (baseParent P u C R hC hR hu hdiv ell hell hell1) where | |
| 120 | + inverse := baseInverse P u C R hC hR hu hdiv ell hell hell1 | |
| 121 | + velocity := localVelocity P u C R hC hR hu hdiv | |
| 122 | + pressure := localPressure P u C R hC hR hu hdiv | |
| 123 | + force t x := localForce P u C R hC hR hu hdiv (t,x) | |
| 124 | + force_continuous := by | |
| 125 | + have hc : Continuous (fun q : Icc (0 : ℝ) (baseTime P C R hC hR) × Space => | |
| 126 | + ((q.1 : ℝ),q.2)) := | |
| 127 | + (continuous_subtype_val.comp continuous_fst).prodMk continuous_snd | |
| 128 | + exact (localForce_joint_continuous P u C R hC hR hu hdiv).comp hc | |
| 129 | + velocity_match := baseParent_velocity_match P u C R hC hR hu hdiv ell hell hell1 | |
| 130 | + velocity_differentiable t ht x := localVelocity_differentiableAt P u C R hC hR hu hdiv t | |
| 131 | + ⟨ht.1,ht.2.trans_le (baseTime_le P C R hC hR)⟩ x | |
| 132 | + pressure_differentiable t x := | |
| 133 | + (localPressure_smooth P u C R hC hR hu hdiv t).differentiable (by simp) x | |
| 134 | + pressure_gradient t x := localPressure_gradient P u C R hC hR hu hdiv t x | |
| 135 | + momentum_zero t ht x := localMomentum P u C R hC hR hu hdiv t | |
| 136 | + ⟨ht.1,ht.2.trans_le (baseTime_le P C R hC hR)⟩ x | |
| 137 | + divergence_zero t _ x := localVelocity_divergence P u C R hC hR hu hdiv t x | |
| 138 | + | |
| 139 | +theorem baseParent_initial_velocity (x : Space) : | |
| 140 | + (baseParent P u C R hC hR hu hdiv ell hell hell1).velocity.field | |
| 141 | + ⟨0,le_rfl,(baseTime_pos P C R hC hR).le⟩ x=u.field x := by | |
| 142 | + have h := baseParent_velocity_match P u C R hC hR hu hdiv ell hell hell1 | |
| 143 | + ⟨0,le_rfl,(baseTime_pos P C R hC hR).le⟩ x | |
| 144 | + have hz : (baseParent P u C R hC hR hu hdiv ell hell hell1).position | |
| 145 | + ⟨0,le_rfl,(baseTime_pos P C R hC hR).le⟩ x=x := by | |
| 146 | + change x+(baseParent P u C R hC hR hu hdiv ell hell hell1).displacement.field _ x=x | |
| 147 | + rw [(baseParent P u C R hC hR hu hdiv ell hell hell1).initial,add_zero] | |
| 148 | + erw [hz,localVelocity_initial] at h | |
| 149 | + exact h | |
| 150 | + | |
| 151 | +theorem baseOddData (hodd : ∀ x, u.field (-x)= -u.field x) : | |
| 152 | + OddData (baseParent P u C R hC hR hu hdiv ell hell hell1) := by | |
| 153 | + apply (baseInput P u C R hC hR hu hdiv).oddData _ ell hell hell1 | |
| 154 | + intro t x | |
| 155 | + erw [baseInput_field,baseInput_field] | |
| 156 | + exact localVelocity_odd P u C R hC hR hu hdiv hodd t x | |
| 157 | + | |
| 158 | +end EulerStaticEuler | |
+113 −0 Euler/BaseTransportCommutator.lean added View file
| @@ -0,0 +1,113 @@ | ||
| 1 | +import Euler.MixedWordProduct | |
| 2 | + | |
| 3 | +/-! The actual base Sobolev transport commutator with no uncontrolled extra derivative. -/ | |
| 4 | + | |
| 5 | +noncomputable section | |
| 6 | + | |
| 7 | +namespace EulerBaseTransportCommutator | |
| 8 | + | |
| 9 | +open MeasureTheory EulerSobolev EulerLiftedGradientSpace EulerMetricTransport EulerTransportDerivatives | |
| 10 | + EulerCylinderSobolev EulerRealCylinder EulerVectorCylinder EulerGeneralCylinderAlgebra EulerH6Nonlinear | |
| 11 | + EulerMixedH5Product | |
| 12 | +open scoped ContDiff ENNReal Topology | |
| 13 | + | |
| 14 | +variable (period : ℝ) [Fact (0 < period)] | |
| 15 | + | |
| 16 | +/-- The sum of H⁵ norms of the four actual first derivatives. -/ | |
| 17 | +def gradientFiveNorm {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] | |
| 18 | + (f : LiftDomain period → F) : ℝ := | |
| 19 | + ∑ i : Fin 4, liftSobolevNorm period 5 (fieldDerivative period (standardDirection i) f) | |
| 20 | + | |
| 21 | +theorem gradientFiveNorm_nonneg {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] | |
| 22 | + (f : LiftDomain period → F) : 0 ≤ gradientFiveNorm period f := | |
| 23 | + Finset.sum_nonneg fun _ _ => liftSobolevNorm_nonneg period 5 _ | |
| 24 | + | |
| 25 | +theorem derivative_le_gradientFiveNorm {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] | |
| 26 | + (f : LiftDomain period → F) (i : Fin 4) : | |
| 27 | + liftSobolevNorm period 5 (fieldDerivative period (standardDirection i) f) ≤ gradientFiveNorm period f := | |
| 28 | + Finset.single_le_sum (f := fun j : Fin 4 => liftSobolevNorm period 5 (fieldDerivative period (standardDirection j) f)) | |
| 29 | + (fun j _ => liftSobolevNorm_nonneg period 5 (fieldDerivative period (standardDirection j) f)) (Finset.mem_univ i) | |
| 30 | + | |
| 31 | +/-- Six actual derivatives of a field give five derivatives of each first derivative. -/ | |
| 32 | +theorem derivative_memLp_five {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] | |
| 33 | + (f : LiftDomain period → F) | |
| 34 | + (hfL : ∀ j ≤ 6, ∀ w : Fin j → Fin 4, MemLp (iteratedFieldDerivative period w f) 2 (liftMeasure period)) | |
| 35 | + (i : Fin 4) : ∀ j ≤ 5, ∀ w : Fin j → Fin 4, | |
| 36 | + MemLp (iteratedFieldDerivative period w (fieldDerivative period (standardDirection i) f)) 2 (liftMeasure period) := by | |
| 37 | + intro j hj w | |
| 38 | + exact word_memLp period (by omega : 1+j ≤ 6) w (fun _ : Fin 1 => i) f hfL | |
| 39 | + | |
| 40 | +/-- The literal differential commutator D^w(fg)−f D^w g. -/ | |
| 41 | +def scalarCommutator {n : ℕ} (w : Fin n → Fin 4) | |
| 42 | + (f : LiftDomain period → ℝ) (g : LiftDomain period → Vector3) : LiftDomain period → Vector3 := | |
| 43 | + iteratedFieldDerivative period w (fun x => f x • g x) - | |
| 44 | + (fun x => f x • iteratedFieldDerivative period w g x) | |
| 45 | + | |
| 46 | +omit [Fact (0 < period)] in | |
| 47 | +/-- Exact commutator recurrence isolates one actual derivative of the scalar coefficient. -/ | |
| 48 | +theorem scalarCommutator_recurrence {n : ℕ} (w : Fin (n+1) → Fin 4) | |
| 49 | + (f : LiftDomain period → ℝ) (g : LiftDomain period → Vector3) | |
| 50 | + (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) | |
| 51 | + (hg : ∀ x, ContDiff ℝ ∞ (localFieldLift period g x)) : | |
| 52 | + scalarCommutator period w f g = | |
| 53 | + iteratedFieldDerivative period (Fin.init w) | |
| 54 | + (fun x => fieldDerivative period (standardDirection (w (Fin.last n))) f x • g x) + | |
| 55 | + scalarCommutator period (Fin.init w) f (fieldDerivative period (standardDirection (w (Fin.last n))) g) := by | |
| 56 | + unfold scalarCommutator | |
| 57 | + rw [word_init_last period w, fieldDerivative_smul period _ f g hf hg] | |
| 58 | + have hleft : ∀ x, ContDiff ℝ ∞ (localFieldLift period | |
| 59 | + (fun x => fieldDerivative period (standardDirection (w (Fin.last n))) f x • g x) x) := | |
| 60 | + fun x => (fieldDerivative_smooth period _ f hf x).smul (hg x) | |
| 61 | + have hright : ∀ x, ContDiff ℝ ∞ (localFieldLift period | |
| 62 | + (fun x => f x • fieldDerivative period (standardDirection (w (Fin.last n))) g x) x) := | |
| 63 | + fun x => (hf x).smul (fieldDerivative_smooth period _ g hg x) | |
| 64 | + rw [word_add period (Fin.init w) _ _ hleft hright, word_init_last period w g] | |
| 65 | + funext x | |
| 66 | + simp only [Pi.add_apply, Pi.sub_apply] | |
| 67 | + abel | |
| 68 | + | |
| 69 | +/-- The commutator cancels its apparent highest derivative before the L² estimate is applied. -/ | |
| 70 | +theorem mixed_scalarCommutator_bound {n l : ℕ} (hnl : n+l ≤ 6) | |
| 71 | + (w : Fin n → Fin 4) (v : Fin l → Fin 4) | |
| 72 | + (f : LiftDomain period → ℝ) (g : LiftDomain period → Vector3) | |
| 73 | + (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) | |
| 74 | + (hg : ∀ x, ContDiff ℝ ∞ (localFieldLift period g x)) | |
| 75 | + (hfL : ∀ j ≤ 6, ∀ u : Fin j → Fin 4, MemLp (iteratedFieldDerivative period u f) 2 (liftMeasure period)) | |
| 76 | + (hgL : ∀ j ≤ 5, ∀ u : Fin j → Fin 4, MemLp (iteratedFieldDerivative period u g) 2 (liftMeasure period)) : | |
| 77 | + MemLp (scalarCommutator period w f (iteratedFieldDerivative period v g)) 2 (liftMeasure period) ∧ | |
| 78 | + (eLpNorm (scalarCommutator period w f (iteratedFieldDerivative period v g)) 2 (liftMeasure period)).toReal ≤ | |
| 79 | + ((2 : ℝ)^n-1) * mixedConstant period * gradientFiveNorm period f * liftSobolevNorm period 5 g := by | |
| 80 | + induction n generalizing l with | |
| 81 | + | zero => simp [scalarCommutator, iteratedFieldDerivative_zero] | |
| 82 | + | succ n ih => | |
| 83 | + let i := w (Fin.last n) | |
| 84 | + have hgV := iteratedFieldDerivative_smooth period v g hg | |
| 85 | + rw [scalarCommutator_recurrence period w f _ hf hgV] | |
| 86 | + have h1 := mixed_outer_product_bound period (by omega : n+0+l ≤ 5) (Fin.init w) Fin.elim0 v | |
| 87 | + (fieldDerivative period (standardDirection i) f) g (fieldDerivative_smooth period _ f hf) hg | |
| 88 | + (derivative_memLp_five period f hfL i) hgL | |
| 89 | + have h2 := ih (by omega : n+(l+1) ≤ 6) (Fin.init w) (Fin.cons i v) | |
| 90 | + have h3 : (eLpNorm (iteratedFieldDerivative period (Fin.init w) | |
| 91 | + (fun x => fieldDerivative period (standardDirection i) f x • iteratedFieldDerivative period v g x)) | |
| 92 | + 2 (liftMeasure period)).toReal ≤ (2 : ℝ)^n * mixedConstant period * gradientFiveNorm period f * liftSobolevNorm period 5 g := | |
| 93 | + h1.2.trans (mul_le_mul_of_nonneg_right | |
| 94 | + (mul_le_mul_of_nonneg_left (derivative_le_gradientFiveNorm period f i) | |
| 95 | + (mul_nonneg (pow_nonneg (by norm_num) n) (mixedConstant_nonneg period))) | |
| 96 | + (liftSobolevNorm_nonneg period 5 g)) | |
| 97 | + refine ⟨h1.1.add h2.1, ?_⟩ | |
| 98 | + have hh := fieldL2_add_le period _ _ h1.1 h2.1 | |
| 99 | + exact hh.trans ((add_le_add h3 h2.2).trans_eq (by rw [pow_succ]; ring)) | |
| 100 | + | |
| 101 | +/-- The actual base commutator through six derivatives has the source's H⁵×H⁵ bound. -/ | |
| 102 | +theorem scalarCommutator_bound {n : ℕ} (hn : n ≤ 6) (w : Fin n → Fin 4) | |
| 103 | + (f : LiftDomain period → ℝ) (g : LiftDomain period → Vector3) | |
| 104 | + (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) | |
| 105 | + (hg : ∀ x, ContDiff ℝ ∞ (localFieldLift period g x)) | |
| 106 | + (hfL : ∀ j ≤ 6, ∀ u : Fin j → Fin 4, MemLp (iteratedFieldDerivative period u f) 2 (liftMeasure period)) | |
| 107 | + (hgL : ∀ j ≤ 5, ∀ u : Fin j → Fin 4, MemLp (iteratedFieldDerivative period u g) 2 (liftMeasure period)) : | |
| 108 | + MemLp (scalarCommutator period w f g) 2 (liftMeasure period) ∧ | |
| 109 | + (eLpNorm (scalarCommutator period w f g) 2 (liftMeasure period)).toReal ≤ | |
| 110 | + ((2 : ℝ)^n-1) * mixedConstant period * gradientFiveNorm period f * liftSobolevNorm period 5 g := by | |
| 111 | + exact mixed_scalarCommutator_bound period (by omega : n+0 ≤ 6) w Fin.elim0 f g hf hg hfL hgL | |
| 112 | + | |
| 113 | +end EulerBaseTransportCommutator | |
+82 −0 Euler/BaseTransportL2.lean added View file
| @@ -0,0 +1,82 @@ | ||
| 1 | +import Euler.SobolevTransportCommutator | |
| 2 | +import Euler.LowerTransportSource | |
| 3 | + | |
| 4 | +/-! The fixed-base transport commutator estimate with only H⁶ velocity norms. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerBaseTransportL2 | |
| 9 | + | |
| 10 | +open MeasureTheory EulerLiftedGradientSpace EulerCylinderSobolev EulerMetricTransport EulerTransportDerivatives | |
| 11 | + EulerH6Nonlinear EulerVectorCylinder EulerBaseTransportCommutator EulerExternalTransportCommutator | |
| 12 | + EulerFunctionalVelocity EulerMixedH5Product | |
| 13 | +open scoped ContDiff ENNReal Topology | |
| 14 | + | |
| 15 | +variable (period : ℝ) [Fact (0 < period)] | |
| 16 | + | |
| 17 | +/-- The base transport constant depends only on the fixed Sobolev index and cylinder period. -/ | |
| 18 | +def baseTransportConstant : ℝ := (4*63*5460*1365 : ℝ)*mixedConstant period | |
| 19 | + | |
| 20 | +theorem baseTransportConstant_nonneg : 0 ≤ baseTransportConstant period := | |
| 21 | + mul_nonneg (by norm_num) (mixedConstant_nonneg period) | |
| 22 | + | |
| 23 | +/-- The gradient H⁵ sum is controlled by the actual H⁶ norm with a fixed combinatorial factor. -/ | |
| 24 | +theorem gradientFive_le_six {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] | |
| 25 | + (f : LiftDomain period → F) : gradientFiveNorm period f ≤ 5460*liftSobolevNorm period 6 f := by | |
| 26 | + have h := Finset.sum_le_sum (s := (Finset.univ : Finset (Fin 4))) (fun i _ => derivative_H5_le_H6 period i f) | |
| 27 | + exact h.trans_eq (by simp only [Finset.sum_const, Finset.card_univ, Fintype.card_fin, nsmul_eq_mul]; ring) | |
| 28 | + | |
| 29 | +/-- Summing actual L² fields respects the sum of their finite L² norms. -/ | |
| 30 | +theorem fieldL2_sum_le {ι F : Type*} [NormedAddCommGroup F] (S : Finset ι) | |
| 31 | + (f : ι → LiftDomain period → F) (hf : ∀ i ∈ S, MemLp (f i) 2 (liftMeasure period)) : | |
| 32 | + (eLpNorm (∑ i ∈ S, f i) 2 (liftMeasure period)).toReal ≤ | |
| 33 | + ∑ i ∈ S, (eLpNorm (f i) 2 (liftMeasure period)).toReal := by | |
| 34 | + have he := eLpNorm_sum_le (fun i hi => (hf i hi).aestronglyMeasurable) (by norm_num : (1 : ℝ≥0∞) ≤ 2) | |
| 35 | + have hfin : (∑ i ∈ S, eLpNorm (f i) 2 (liftMeasure period)) ≠ ⊤ := | |
| 36 | + ENNReal.sum_ne_top.mpr (fun i hi => (hf i hi).eLpNorm_ne_top) | |
| 37 | + have h := ENNReal.toReal_mono hfin he | |
| 38 | + rw [ENNReal.toReal_sum (fun i hi => (hf i hi).eLpNorm_ne_top)] at h | |
| 39 | + exact h | |
| 40 | + | |
| 41 | +/-- The literal transport commutator through six base derivatives is in L² and bounded using only the two H⁶ norms. -/ | |
| 42 | +theorem transport_base_L2 {n : ℕ} (hn : n ≤ 6) (w : Fin n → Fin 4) | |
| 43 | + (L : Fin 4 → Vector3 →L[ℝ] ℝ) (hL : ∀ i, ‖L i‖ ≤ 1) | |
| 44 | + (f g : LiftDomain period → Vector3) | |
| 45 | + (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) | |
| 46 | + (hg : ∀ x, ContDiff ℝ ∞ (localFieldLift period g x)) | |
| 47 | + (hfL : ∀ j, ∀ a : Fin j → Fin 4, MemLp (iteratedFieldDerivative period a f) 2 (liftMeasure period)) | |
| 48 | + (hgL : ∀ j, ∀ a : Fin j → Fin 4, MemLp (iteratedFieldDerivative period a g) 2 (liftMeasure period)) : | |
| 49 | + MemLp (transportCommutator period w (velocityMap L ∘ f) g) 2 (liftMeasure period) ∧ | |
| 50 | + (eLpNorm (transportCommutator period w (velocityMap L ∘ f) g) 2 (liftMeasure period)).toReal ≤ | |
| 51 | + baseTransportConstant period * liftSobolevNorm period 6 f * liftSobolevNorm period 6 g := by | |
| 52 | + let h := fun i : Fin 4 => scalarCommutator period w (L i ∘ f) (fieldDerivative period (standardDirection i) g) | |
| 53 | + have hs (i : Fin 4) := scalarCommutator_bound period hn w (L i ∘ f) (fieldDerivative period (standardDirection i) g) | |
| 54 | + (postcomp_smooth period (L i) f hf) (fieldDerivative_smooth period _ g hg) | |
| 55 | + (fun j hj a => postcomp_word_memLp period hj (L i) f hf (fun r _ b => hfL r b) a) | |
| 56 | + (fun j _ a => derivative_all_memLp period g hgL i j a) | |
| 57 | + have hgrad (i : Fin 4) : gradientFiveNorm period (L i ∘ f) ≤ 5460*liftSobolevNorm period 6 f := | |
| 58 | + (gradientFive_le_six period (L i ∘ f)).trans (mul_le_mul_of_nonneg_left | |
| 59 | + (postcomp_sobolevNorm_le period 6 (L i) (hL i) f hf (fun j _ a => hfL j a)) (by norm_num)) | |
| 60 | + have hp : (2 : ℝ)^n-1 ≤ 63 := by | |
| 61 | + have h := pow_le_pow_right₀ (by norm_num : (1 : ℝ) ≤ 2) hn | |
| 62 | + norm_num at h | |
| 63 | + linarith | |
| 64 | + have hcoef := mul_le_mul_of_nonneg_right hp (mixedConstant_nonneg period) | |
| 65 | + have hb (i : Fin 4) : (eLpNorm (h i) 2 (liftMeasure period)).toReal ≤ | |
| 66 | + (63*5460*1365*mixedConstant period)*liftSobolevNorm period 6 f*liftSobolevNorm period 6 g := by | |
| 67 | + have h1 := mul_le_mul hcoef (hgrad i) (gradientFiveNorm_nonneg period (L i ∘ f)) | |
| 68 | + (mul_nonneg (by norm_num : (0 : ℝ) ≤ 63) (mixedConstant_nonneg period)) | |
| 69 | + have h2 := mul_le_mul h1 (derivative_H5_le_H6 period i g) (liftSobolevNorm_nonneg period 5 _) | |
| 70 | + (mul_nonneg (mul_nonneg (by norm_num) (mixedConstant_nonneg period)) | |
| 71 | + (mul_nonneg (by norm_num) (liftSobolevNorm_nonneg period 6 f))) | |
| 72 | + exact (hs i).2.trans (h2.trans_eq (by ring)) | |
| 73 | + have heq : transportCommutator period w (velocityMap L ∘ f) g = ∑ i : Fin 4, h i := by | |
| 74 | + rw [transportCommutator_eq_sum period w (velocityMap L ∘ f) g (postcomp_smooth period (velocityMap L) f hf) hg] | |
| 75 | + rfl | |
| 76 | + rw [heq] | |
| 77 | + refine ⟨memLp_finsetSum' Finset.univ (fun i _ => (hs i).1), ?_⟩ | |
| 78 | + have hsum := Finset.sum_le_sum (s := (Finset.univ : Finset (Fin 4))) (fun i _ => hb i) | |
| 79 | + exact (fieldL2_sum_le period Finset.univ h (fun i _ => (hs i).1)).trans | |
| 80 | + (hsum.trans_eq (by simp only [Finset.sum_const, Finset.card_univ, Fintype.card_fin, nsmul_eq_mul]; unfold baseTransportConstant; ring)) | |
| 81 | + | |
| 82 | +end EulerBaseTransportL2 | |
+62 −0 Euler/BaseWordMetric.lean added View file
| @@ -0,0 +1,62 @@ | ||
| 1 | +import Euler.FiniteMetricEnergy | |
| 2 | + | |
| 3 | +/-! Exact identification of the source's base-Sobolev word sum and root metric energy. -/ | |
| 4 | + | |
| 5 | +noncomputable section | |
| 6 | + | |
| 7 | +namespace EulerBaseWordMetric | |
| 8 | + | |
| 9 | +open EulerLiftedGradientSpace EulerSpatialSobolevInverse EulerCylinderSobolev EulerFiniteMetricEnergy | |
| 10 | +open InnerProductSpace | |
| 11 | + | |
| 12 | +/-- A base Sobolev word of any length at most s. -/ | |
| 13 | +abbrev BaseWord (s : ℕ) := Σ n : Fin (s + 1), Fin n.val → Fin 4 | |
| 14 | + | |
| 15 | +variable (period : ℝ) [Fact (0 < period)] | |
| 16 | + | |
| 17 | +/-- The finite family of actual strong derivatives indexed by all base Sobolev words. -/ | |
| 18 | +def baseWordValues {s : ℕ} {f : LiftL2 period} (J : SpatialJet period standardDirection s f) : | |
| 19 | + BaseWord s → LiftL2 period := fun w => J.word w.2 | |
| 20 | + | |
| 21 | +/-- The sigma-indexed family gives exactly the previously proved strong Sobolev sum norm. -/ | |
| 22 | +theorem sum_baseWordValues_norm {s : ℕ} {f : LiftL2 period} | |
| 23 | + (J : SpatialJet period standardDirection s f) : | |
| 24 | + (∑ w : BaseWord s, ‖baseWordValues period J w‖) = J.sobolevNorm := by | |
| 25 | + rw [SpatialJet.sobolevNorm_eq_sum_words] | |
| 26 | + simp only [baseWordValues, Fintype.sum_sigma] | |
| 27 | + exact Fin.sum_univ_eq_sum_range (fun n => ∑ w : Fin n → Fin 4, ‖J.word w‖) (s + 1) | |
| 28 | + | |
| 29 | +/-- The number of base derivative words depends only on the fixed Sobolev index. -/ | |
| 30 | +theorem card_baseWord (s : ℕ) : Fintype.card (BaseWord s) = ∑ n ∈ Finset.range (s + 1), 4 ^ n := by | |
| 31 | + simp only [BaseWord, Fintype.card_sigma, Fintype.card_fun, Fintype.card_fin] | |
| 32 | + exact Fin.sum_univ_eq_sum_range (fun n => 4 ^ n) (s + 1) | |
| 33 | + | |
| 34 | +/-- The source's root-of-sum metric energy for all base Sobolev words. -/ | |
| 35 | +def baseWordMetricNorm {s : ℕ} {f : LiftL2 period} (K : LiftL2 period →L[ℝ] LiftL2 period) | |
| 36 | + (J : SpatialJet period standardDirection s f) : ℝ := familyMetricNorm K (baseWordValues period J) | |
| 37 | + | |
| 38 | +/-- The Sobolev sum is controlled by its metric root with a fixed base-word cardinality constant. -/ | |
| 39 | +theorem sobolevNorm_le_baseWordMetric {s : ℕ} {f : LiftL2 period} | |
| 40 | + (K : LiftL2 period →L[ℝ] LiftL2 period) (J : SpatialJet period standardDirection s f) | |
| 41 | + (c : ℝ) (hc : 0 < c) | |
| 42 | + (hK : ∀ u, c ^ 2 * ‖u‖ ^ 2 ≤ ⟪K u, u⟫_ℝ) : | |
| 43 | + J.sobolevNorm ≤ (Real.sqrt (Fintype.card (BaseWord s) : ℝ) / c) * baseWordMetricNorm period K J := by | |
| 44 | + rw [← sum_baseWordValues_norm period J] | |
| 45 | + have hsum := sum_norm_le_card_sqrt_familyNorm (baseWordValues period J) | |
| 46 | + have hmet := familyMetricNorm_lower K (baseWordValues period J) c hc.le hK | |
| 47 | + have hn : familyNorm (baseWordValues period J) ≤ baseWordMetricNorm period K J / c := by | |
| 48 | + apply (le_div_iff₀ hc).mpr | |
| 49 | + simpa only [baseWordMetricNorm, mul_comm] using hmet | |
| 50 | + have hh := mul_le_mul_of_nonneg_left hn (Real.sqrt_nonneg (Fintype.card (BaseWord s) : ℝ)) | |
| 51 | + exact hsum.trans (hh.trans_eq (by ring)) | |
| 52 | + | |
| 53 | +/-- The metric root is controlled by the actual base Sobolev sum with no extra word-count factor. -/ | |
| 54 | +theorem baseWordMetric_le_sobolevNorm {s : ℕ} {f : LiftL2 period} | |
| 55 | + (K : LiftL2 period →L[ℝ] LiftL2 period) (J : SpatialJet period standardDirection s f) : | |
| 56 | + baseWordMetricNorm period K J ≤ Real.sqrt ‖K‖ * J.sobolevNorm := by | |
| 57 | + have h := familyMetricNorm_upper K (baseWordValues period J) | |
| 58 | + have hn := familyNorm_le_sum_norm (baseWordValues period J) | |
| 59 | + rw [sum_baseWordValues_norm period J] at hn | |
| 60 | + exact h.trans (mul_le_mul_of_nonneg_left hn (Real.sqrt_nonneg _)) | |
| 61 | + | |
| 62 | +end EulerBaseWordMetric | |
+72 −0 Euler/BoundedCoefficientJets.lean added View file
| @@ -0,0 +1,72 @@ | ||
| 1 | +import Euler.BoundedCoefficientSmooth | |
| 2 | +import Mathlib.Analysis.Calculus.ContDiff.Bounds | |
| 3 | + | |
| 4 | +/-! Actual derivatives and factorial bounds for the translated multiplication operators. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerMeanCoefficients | |
| 9 | + | |
| 10 | +open EulerSmoothLimit MeasureTheory InnerProductSpace | |
| 11 | +open scoped ContDiff BoundedContinuousFunction | |
| 12 | + | |
| 13 | +section BoundedFields | |
| 14 | + | |
| 15 | +variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] | |
| 16 | + | |
| 17 | +/-- Evaluating a parameter derivative gives the ordinary spatial derivative at the translated point. -/ | |
| 18 | +theorem BoundedSmoothField.iteratedFDeriv_translation_apply (A : BoundedSmoothField V) | |
| 19 | + (n : ℕ) (a x : Space) (v : Fin n → Space) : | |
| 20 | + (iteratedFDeriv ℝ n (translated A.field) a v) x = | |
| 21 | + iteratedFDeriv ℝ n (A.field : Space → V) (x+a) v := by | |
| 22 | + let ev : (Space →ᵇ V) →L[ℝ] V := BoundedContinuousFunction.evalCLM ℝ x | |
| 23 | + have he := ContinuousLinearMap.iteratedFDeriv_comp_left (𝕜 := ℝ) | |
| 24 | + (E := Space) (F := Space →ᵇ V) (G := V) ev | |
| 25 | + (A.translation_contDiff.contDiffAt (x := a)) (i := n) (by simp) | |
| 26 | + have hv := congrArg (fun L : Space [×n]→L[ℝ] V => L v) he | |
| 27 | + change iteratedFDeriv ℝ n (fun b => A.field (x+b)) a v = | |
| 28 | + (iteratedFDeriv ℝ n (translated A.field) a v) x at hv | |
| 29 | + rw [iteratedFDeriv_comp_add_left] at hv | |
| 30 | + exact hv.symm | |
| 31 | + | |
| 32 | +/-- Passing from pointwise spatial bounds to parameter derivatives in sup norm costs no constant. -/ | |
| 33 | +theorem BoundedSmoothField.norm_iteratedFDeriv_translation_le (A : BoundedSmoothField V) | |
| 34 | + (n : ℕ) (C : ℝ) (hC : 0 ≤ C) | |
| 35 | + (hbound : ∀ x, ‖iteratedFDeriv ℝ n (A.field : Space → V) x‖ ≤ C) (a : Space) : | |
| 36 | + ‖iteratedFDeriv ℝ n (translated A.field) a‖ ≤ C := by | |
| 37 | + apply ContinuousMultilinearMap.opNorm_le_bound hC | |
| 38 | + intro v | |
| 39 | + apply (BoundedContinuousFunction.norm_le (mul_nonneg hC (by positivity))).2 | |
| 40 | + intro x | |
| 41 | + rw [A.iteratedFDeriv_translation_apply] | |
| 42 | + exact ((iteratedFDeriv ℝ n (A.field : Space → V) (x+a)).le_opNorm v).trans | |
| 43 | + (mul_le_mul_of_nonneg_right (hbound (x+a)) (by positivity)) | |
| 44 | + | |
| 45 | +end BoundedFields | |
| 46 | + | |
| 47 | +private local instance : NormedAddCommGroup Field := inferInstance | |
| 48 | +private local instance : NormedSpace ℝ Field := inferInstance | |
| 49 | +private local instance : NormedAddCommGroup (EulerMeanSolenoidal.L2 →L[ℝ] EulerMeanSolenoidal.L2) := inferInstance | |
| 50 | +private local instance : NormedSpace ℝ (EulerMeanSolenoidal.L2 →L[ℝ] EulerMeanSolenoidal.L2) := inferInstance | |
| 51 | + | |
| 52 | +theorem multiplierMap_norm_le_one : ‖multiplierMap‖ ≤ 1 := | |
| 53 | + multiplierMap.opNorm_le_bound zero_le_one (fun A => by | |
| 54 | + simpa only [one_mul, multiplierMap_apply] using multiplier_norm_le A) | |
| 55 | + | |
| 56 | +theorem multiplierTranslation_contDiff (A : BoundedSmoothField (Space →L[ℝ] Space)) : | |
| 57 | + ContDiff ℝ ∞ (fun a => multiplier (translated A.field a)) := by | |
| 58 | + exact (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) (E := Field) | |
| 59 | + (F := EulerMeanSolenoidal.L2 →L[ℝ] EulerMeanSolenoidal.L2) multiplierMap).comp A.translation_contDiff | |
| 60 | + | |
| 61 | +theorem norm_iteratedFDeriv_multiplierTranslation_le | |
| 62 | + (A : BoundedSmoothField (Space →L[ℝ] Space)) (n : ℕ) (C : ℝ) (hC : 0 ≤ C) | |
| 63 | + (hbound : ∀ x, ‖iteratedFDeriv ℝ n (A.field : Space → Space →L[ℝ] Space) x‖ ≤ C) | |
| 64 | + (a : Space) : | |
| 65 | + ‖iteratedFDeriv ℝ n (fun b => multiplier (translated A.field b)) a‖ ≤ C := by | |
| 66 | + have h := ContinuousLinearMap.norm_iteratedFDeriv_comp_left (𝕜 := ℝ) (E := Space) | |
| 67 | + (F := Field) (G := EulerMeanSolenoidal.L2 →L[ℝ] EulerMeanSolenoidal.L2) | |
| 68 | + multiplierMap (A.translation_contDiff.contDiffAt (x := a)) (n := n) (by simp) | |
| 69 | + exact h.trans ((mul_le_mul_of_nonneg_right multiplierMap_norm_le_one (norm_nonneg _)).trans | |
| 70 | + (by simpa only [one_mul] using A.norm_iteratedFDeriv_translation_le n C hC hbound a)) | |
| 71 | + | |
| 72 | +end EulerMeanCoefficients | |
+101 −0 Euler/BoundedCoefficientSmooth.lean added View file
| @@ -0,0 +1,101 @@ | ||
| 1 | +import Euler.MeanCoefficientSpatial | |
| 2 | + | |
| 3 | +/-! All-order parameter regularity of actual bounded smooth coefficient translations. -/ | |
| 4 | + | |
| 5 | +noncomputable section | |
| 6 | + | |
| 7 | +namespace EulerMeanCoefficients | |
| 8 | + | |
| 9 | +open EulerSmoothLimit MeasureTheory InnerProductSpace | |
| 10 | +open scoped ContDiff BoundedContinuousFunction | |
| 11 | + | |
| 12 | +universe u | |
| 13 | + | |
| 14 | +variable {V : Type u} [NormedAddCommGroup V] [NormedSpace ℝ V] | |
| 15 | + | |
| 16 | +theorem fieldDerivativeMap_norm_le (DA : Space →ᵇ (Space →L[ℝ] V)) : | |
| 17 | + ‖fieldDerivativeMap DA‖ ≤ ‖DA‖ := | |
| 18 | + (fieldDerivativeMap DA).opNorm_le_bound (norm_nonneg DA) (fieldDirection_norm_le DA) | |
| 19 | + | |
| 20 | +def derivativeBundlingLinear : (Space →ᵇ (Space →L[ℝ] V)) →ₗ[ℝ] | |
| 21 | + (Space →L[ℝ] (Space →ᵇ V)) where | |
| 22 | + toFun := fieldDerivativeMap | |
| 23 | + map_add' A B := by | |
| 24 | + apply ContinuousLinearMap.ext | |
| 25 | + intro v | |
| 26 | + apply BoundedContinuousFunction.ext | |
| 27 | + intro x | |
| 28 | + rfl | |
| 29 | + map_smul' c A := by | |
| 30 | + apply ContinuousLinearMap.ext | |
| 31 | + intro v | |
| 32 | + apply BoundedContinuousFunction.ext | |
| 33 | + intro x | |
| 34 | + rfl | |
| 35 | + | |
| 36 | +/-- Currying a bounded field of linear maps is itself a bounded linear operation. -/ | |
| 37 | +def derivativeBundling : (Space →ᵇ (Space →L[ℝ] V)) →L[ℝ] | |
| 38 | + (Space →L[ℝ] (Space →ᵇ V)) where | |
| 39 | + toLinearMap := derivativeBundlingLinear | |
| 40 | + cont := AddMonoidHomClass.continuous_of_bound derivativeBundlingLinear 1 (fun A => by | |
| 41 | + change ‖fieldDerivativeMap A‖ ≤ 1 * ‖A‖ | |
| 42 | + simpa only [one_mul] using fieldDerivativeMap_norm_le A) | |
| 43 | + | |
| 44 | +@[simp] theorem derivativeBundling_apply (A : Space →ᵇ (Space →L[ℝ] V)) : | |
| 45 | + derivativeBundling A = fieldDerivativeMap A := rfl | |
| 46 | + | |
| 47 | +/-- A concrete smooth coefficient with globally bounded actual derivatives of every order. -/ | |
| 48 | +structure BoundedSmoothField (V : Type u) [NormedAddCommGroup V] [NormedSpace ℝ V] where | |
| 49 | + field : Space →ᵇ V | |
| 50 | + smooth : ContDiff ℝ ∞ (field : Space → V) | |
| 51 | + bounded : ∀ n : ℕ, ∃ C : ℝ, ∀ x, ‖iteratedFDeriv ℝ n (field : Space → V) x‖ ≤ C | |
| 52 | + | |
| 53 | +namespace BoundedSmoothField | |
| 54 | + | |
| 55 | +def derivative (A : BoundedSmoothField V) : BoundedSmoothField (Space →L[ℝ] V) where | |
| 56 | + field := boundedDerivative A.field A.smooth (Classical.choose (A.bounded 1)) (fun x => by | |
| 57 | + rw [← norm_iteratedFDeriv_one] | |
| 58 | + exact Classical.choose_spec (A.bounded 1) x) | |
| 59 | + smooth := A.smooth.fderiv_right (m := ∞) (by simp) | |
| 60 | + bounded n := by | |
| 61 | + change ∃ C : ℝ, ∀ x, ‖iteratedFDeriv ℝ n (fderiv ℝ (A.field : Space → V)) x‖ ≤ C | |
| 62 | + simpa only [norm_iteratedFDeriv_fderiv] using A.bounded (n+1) | |
| 63 | + | |
| 64 | +@[simp] theorem derivative_field_apply (A : BoundedSmoothField V) (x : Space) : | |
| 65 | + A.derivative.field x = fderiv ℝ (A.field : Space → V) x := rfl | |
| 66 | + | |
| 67 | +theorem translation_hasFDerivAt (A : BoundedSmoothField V) (a : Space) : | |
| 68 | + HasFDerivAt (translated A.field) (fieldDerivativeMap (translated A.derivative.field a)) a := by | |
| 69 | + obtain ⟨M, hM⟩ := A.bounded 2 | |
| 70 | + have hM0 : 0 ≤ M := (norm_nonneg _).trans (hM 0) | |
| 71 | + apply translated_hasFDerivAt A.field A.derivative.field A.smooth (fun _ => rfl) M hM0 | |
| 72 | + intro x | |
| 73 | + rw [← norm_iteratedFDeriv_one, norm_iteratedFDeriv_fderiv] | |
| 74 | + exact hM x | |
| 75 | + | |
| 76 | +theorem translation_fderiv (A : BoundedSmoothField V) : | |
| 77 | + fderiv ℝ (translated A.field) = fun a => derivativeBundling (translated A.derivative.field a) := | |
| 78 | + funext (fun a => (A.translation_hasFDerivAt a).fderiv) | |
| 79 | + | |
| 80 | +private theorem translation_contDiff_nat_aux (n : ℕ) : | |
| 81 | + ∀ (V : Type u) [NormedAddCommGroup V] [NormedSpace ℝ V] (A : BoundedSmoothField V), | |
| 82 | + ContDiff ℝ n (translated A.field) := by | |
| 83 | + induction n with | |
| 84 | + | zero => | |
| 85 | + intro V _ _ A | |
| 86 | + apply contDiff_zero.mpr | |
| 87 | + exact continuous_iff_continuousAt.mpr (fun a => (A.translation_hasFDerivAt a).continuousAt) | |
| 88 | + | succ n ih => | |
| 89 | + intro V _ _ A | |
| 90 | + rw [Nat.cast_add, Nat.cast_one, contDiff_succ_iff_fderiv] | |
| 91 | + refine ⟨fun a => (A.translation_hasFDerivAt a).differentiableAt, by simp, ?_⟩ | |
| 92 | + rw [A.translation_fderiv] | |
| 93 | + exact (derivativeBundling (V := V)).contDiff.comp (ih (Space →L[ℝ] V) A.derivative) | |
| 94 | + | |
| 95 | +/-- Every spatial translation of an actual globally bounded smooth coefficient depends smoothly on its parameter. -/ | |
| 96 | +theorem translation_contDiff (A : BoundedSmoothField V) : ContDiff ℝ ∞ (translated A.field) := | |
| 97 | + contDiff_infty.mpr (fun n => translation_contDiff_nat_aux n V A) | |
| 98 | + | |
| 99 | +end BoundedSmoothField | |
| 100 | + | |
| 101 | +end EulerMeanCoefficients | |
+70 −0 Euler/BoundedEvaluationDifferentiation.lean added View file
| @@ -0,0 +1,70 @@ | ||
| 1 | +import Mathlib.Analysis.Calculus.FDeriv.Prod | |
| 2 | +import Mathlib.Analysis.Calculus.Deriv.Basic | |
| 3 | +import Mathlib.Analysis.Asymptotics.Lemmas | |
| 4 | + | |
| 5 | +/-! Joint differentiation through uniformly bounded evaluation operators. | |
| 6 | +Strong continuity on the derivative vector suffices; operator-norm continuity | |
| 7 | +or differentiability of the whole family of evaluation maps is unnecessary. -/ | |
| 8 | + | |
| 9 | +noncomputable section | |
| 10 | + | |
| 11 | +namespace EulerBoundedEvaluation | |
| 12 | + | |
| 13 | +open Filter Asymptotics ContinuousLinearMap | |
| 14 | +open scoped Topology | |
| 15 | + | |
| 16 | +variable {X H V : Type*} | |
| 17 | + [NormedAddCommGroup X] [NormedSpace ℝ X] | |
| 18 | + [NormedAddCommGroup H] [NormedSpace ℝ H] | |
| 19 | + [NormedAddCommGroup V] [NormedSpace ℝ V] | |
| 20 | + | |
| 21 | +theorem hasFDerivAt (E : X → H →L[ℝ] V) (C : ℝ) (hE : ∀ x, ‖E x‖ ≤ C) | |
| 22 | + (u : ℝ → H) (u' : H) (t : ℝ) (x : X) | |
| 23 | + (hu : HasDerivAt u u' t) (D : X →L[ℝ] V) | |
| 24 | + (hx : HasFDerivAt (fun y => E y (u t)) D x) | |
| 25 | + (hc : ContinuousAt (fun y => E y u') x) : | |
| 26 | + HasFDerivAt (fun q : ℝ × X => E q.2 (u q.1)) | |
| 27 | + (((toSpanSingleton ℝ (E x u')).comp (fst ℝ ℝ X)) + D.comp (snd ℝ ℝ X)) (t,x) := by | |
| 28 | + let l : Filter (ℝ × X) := 𝓝 (t,x) | |
| 29 | + have htend : Tendsto (Prod.fst : ℝ × X → ℝ) l (𝓝 t) := continuous_fst.tendsto (t,x) | |
| 30 | + have hxend : Tendsto (Prod.snd : ℝ × X → X) l (𝓝 x) := continuous_snd.tendsto (t,x) | |
| 31 | + have hfst : (fun q : ℝ × X => q.1-t) =O[l] fun q => q-(t,x) := by | |
| 32 | + apply IsBigO.of_bound 1 | |
| 33 | + exact Filter.Eventually.of_forall (fun q => by | |
| 34 | + change ‖(q-(t,x)).1‖ ≤ 1*‖q-(t,x)‖ | |
| 35 | + rw [one_mul] | |
| 36 | + exact norm_fst_le (q-(t,x))) | |
| 37 | + have hsnd : (fun q : ℝ × X => q.2-x) =O[l] fun q => q-(t,x) := by | |
| 38 | + apply IsBigO.of_bound 1 | |
| 39 | + exact Filter.Eventually.of_forall (fun q => by | |
| 40 | + change ‖(q-(t,x)).2‖ ≤ 1*‖q-(t,x)‖ | |
| 41 | + rw [one_mul] | |
| 42 | + exact norm_snd_le (q-(t,x))) | |
| 43 | + have hr : (fun q : ℝ × X => u q.1-u t-(q.1-t) • u') =o[l] fun q => q-(t,x) := | |
| 44 | + (hu.isLittleO.comp_tendsto htend).trans_isBigO hfst | |
| 45 | + have hbound : (fun q : ℝ × X => E q.2 (u q.1-u t-(q.1-t) • u')) =O[l] | |
| 46 | + fun q => u q.1-u t-(q.1-t) • u' := by | |
| 47 | + apply IsBigO.of_bound C | |
| 48 | + exact Filter.Eventually.of_forall (fun q => | |
| 49 | + ((E q.2).le_opNorm _).trans (mul_le_mul_of_nonneg_right (hE q.2) (norm_nonneg _))) | |
| 50 | + have hfirst := hbound.trans_isLittleO hr | |
| 51 | + have hcont : Tendsto (fun q : ℝ × X => E q.2 u'-E x u') l (𝓝 0) := by | |
| 52 | + simpa only [sub_self,Function.comp_def] using | |
| 53 | + (hc.tendsto.comp hxend).sub_const (E x u') | |
| 54 | + have hsmall : (fun q : ℝ × X => E q.2 u'-E x u') =o[l] fun _ => (1 : ℝ) := | |
| 55 | + (isLittleO_one_iff ℝ).mpr hcont | |
| 56 | + have hsecond : (fun q : ℝ × X => (q.1-t) • (E q.2 u'-E x u')) =o[l] | |
| 57 | + fun q => q-(t,x) := by | |
| 58 | + have h := (isBigO_refl (fun q : ℝ × X => q.1-t) l).smul_isLittleO hsmall | |
| 59 | + simp only [smul_eq_mul,mul_one] at h | |
| 60 | + exact h.trans_isBigO hfst | |
| 61 | + have hthird : (fun q : ℝ × X => E q.2 (u t)-E x (u t)-D (q.2-x)) =o[l] | |
| 62 | + fun q => q-(t,x) := | |
| 63 | + (hx.isLittleO.comp_tendsto hxend).trans_isBigO hsnd | |
| 64 | + apply hasFDerivAt_iff_isLittleO.mpr | |
| 65 | + apply ((hfirst.add hsecond).add hthird).congr_left | |
| 66 | + intro q | |
| 67 | + simp only [map_sub,map_smul,add_apply,comp_apply,toSpanSingleton_apply,coe_fst',coe_snd',smul_sub] | |
| 68 | + module | |
| 69 | + | |
| 70 | +end EulerBoundedEvaluation | |
+258 −0 Euler/BoundedFieldCalculus.lean added View file
| @@ -0,0 +1,258 @@ | ||
| 1 | +import Euler.ContinuousPathComposition | |
| 2 | +import Mathlib.Topology.ContinuousMap.Bounded.Normed | |
| 3 | + | |
| 4 | +/-! | |
| 5 | +# Actual bounded-field bilinear and adjoint calculus | |
| 6 | + | |
| 7 | +Pointwise application/composition are bounded bilinear maps in the genuine | |
| 8 | +uniform field norm, including on a noncompact spatial domain. Lifting these | |
| 9 | +maps to compact time paths preserves their norm bounds. These are the | |
| 10 | +coefficient maps used to construct the actual source forward generator. | |
| 11 | +-/ | |
| 12 | + | |
| 13 | +noncomputable section | |
| 14 | + | |
| 15 | +namespace EulerBoundedFieldCalculus | |
| 16 | + | |
| 17 | +open ContinuousLinearMap EulerTransverseGramInverse EulerOperatorGevreyCalculus EulerGevrey | |
| 18 | +open scoped BoundedContinuousFunction ContDiff | |
| 19 | + | |
| 20 | +variable {α : Type*} [TopologicalSpace α] | |
| 21 | + | |
| 22 | +section Bilinear | |
| 23 | + | |
| 24 | +variable {E F G : Type*} | |
| 25 | + [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 26 | + [NormedAddCommGroup F] [NormedSpace ℝ F] | |
| 27 | + [NormedAddCommGroup G] [NormedSpace ℝ G] | |
| 28 | + | |
| 29 | +private local instance : NormedAddCommGroup (F →L[ℝ] G) := inferInstance | |
| 30 | +private local instance : NormedSpace ℝ (F →L[ℝ] G) := inferInstance | |
| 31 | +private local instance : NormedAddCommGroup (E →L[ℝ] F →L[ℝ] G) := inferInstance | |
| 32 | +private local instance : NormedSpace ℝ (E →L[ℝ] F →L[ℝ] G) := inferInstance | |
| 33 | +private local instance : NormedAddCommGroup (α →ᵇ E) := inferInstance | |
| 34 | +private local instance : NormedSpace ℝ (α →ᵇ E) := inferInstance | |
| 35 | +private local instance : NormedAddCommGroup (α →ᵇ F) := inferInstance | |
| 36 | +private local instance : NormedSpace ℝ (α →ᵇ F) := inferInstance | |
| 37 | +private local instance : NormedAddCommGroup (α →ᵇ G) := inferInstance | |
| 38 | +private local instance : NormedSpace ℝ (α →ᵇ G) := inferInstance | |
| 39 | + | |
| 40 | +/-- The literal pointwise bounded bilinear field. -/ | |
| 41 | +def bilinearValue (B : E →L[ℝ] F →L[ℝ] G) (f : α →ᵇ E) (g : α →ᵇ F) : α →ᵇ G := | |
| 42 | + BoundedContinuousFunction.ofNormedAddCommGroup (fun x => B (f x) (g x)) | |
| 43 | + ((B.continuous.comp f.continuous).clm_apply g.continuous) (‖B‖*‖f‖*‖g‖) | |
| 44 | + (fun x => (B.le_opNorm₂ (f x) (g x)).trans | |
| 45 | + (mul_le_mul (mul_le_mul_of_nonneg_left (f.norm_coe_le_norm x) (norm_nonneg B)) | |
| 46 | + (g.norm_coe_le_norm x) (norm_nonneg _) (mul_nonneg (norm_nonneg B) (norm_nonneg f)))) | |
| 47 | + | |
| 48 | +@[simp] theorem bilinearValue_apply (B : E →L[ℝ] F →L[ℝ] G) (f : α →ᵇ E) (g : α →ᵇ F) (x : α) : | |
| 49 | + bilinearValue B f g x = B (f x) (g x) := rfl | |
| 50 | + | |
| 51 | +theorem bilinearValue_norm (B : E →L[ℝ] F →L[ℝ] G) (f : α →ᵇ E) (g : α →ᵇ F) : | |
| 52 | + ‖bilinearValue B f g‖ ≤ ‖B‖*‖f‖*‖g‖ := | |
| 53 | + BoundedContinuousFunction.norm_ofNormedAddCommGroup_le _ (by positivity) _ | |
| 54 | + | |
| 55 | +/-- Bilinearity is proved on the actual coefficient functions. -/ | |
| 56 | +def bilinearLinear (B : E →L[ℝ] F →L[ℝ] G) : (α →ᵇ E) →ₗ[ℝ] (α →ᵇ F) →ₗ[ℝ] (α →ᵇ G) where | |
| 57 | + toFun f := | |
| 58 | + { toFun := bilinearValue B f | |
| 59 | + map_add' g h := by | |
| 60 | + apply BoundedContinuousFunction.ext | |
| 61 | + intro x | |
| 62 | + exact map_add (B (f x)) (g x) (h x) | |
| 63 | + map_smul' r g := by | |
| 64 | + apply BoundedContinuousFunction.ext | |
| 65 | + intro x | |
| 66 | + exact map_smul (B (f x)) r (g x) } | |
| 67 | + map_add' f g := by | |
| 68 | + apply LinearMap.ext | |
| 69 | + intro h | |
| 70 | + apply BoundedContinuousFunction.ext | |
| 71 | + intro x | |
| 72 | + exact congrArg (fun L : F →L[ℝ] G => L (h x)) (map_add B (f x) (g x)) | |
| 73 | + map_smul' r f := by | |
| 74 | + apply LinearMap.ext | |
| 75 | + intro h | |
| 76 | + apply BoundedContinuousFunction.ext | |
| 77 | + intro x | |
| 78 | + exact congrArg (fun L : F →L[ℝ] G => L (h x)) (map_smul B r (f x)) | |
| 79 | + | |
| 80 | +/-- The actual bilinear map on bounded continuous fields. -/ | |
| 81 | +def bilinearMap (B : E →L[ℝ] F →L[ℝ] G) : (α →ᵇ E) →L[ℝ] (α →ᵇ F) →L[ℝ] (α →ᵇ G) := | |
| 82 | + (bilinearLinear B).mkContinuous₂ ‖B‖ (bilinearValue_norm B) | |
| 83 | + | |
| 84 | +@[simp] theorem bilinearMap_apply (B : E →L[ℝ] F →L[ℝ] G) (f : α →ᵇ E) (g : α →ᵇ F) (x : α) : | |
| 85 | + bilinearMap B f g x = B (f x) (g x) := rfl | |
| 86 | + | |
| 87 | +theorem bilinearMap_norm (B : E →L[ℝ] F →L[ℝ] G) : ‖bilinearMap (α := α) B‖ ≤ ‖B‖ := | |
| 88 | + (bilinearLinear B).mkContinuous₂_norm_le (norm_nonneg B) (bilinearValue_norm B) | |
| 89 | + | |
| 90 | +/-- Pointwise postcomposition preserves the coefficient map's norm bound. -/ | |
| 91 | +theorem postcomposition_norm (L : E →L[ℝ] F) : ‖L.compLeftContinuousBounded α‖ ≤ ‖L‖ := by | |
| 92 | + apply opNorm_le_bound _ (norm_nonneg L) | |
| 93 | + intro f | |
| 94 | + apply (BoundedContinuousFunction.norm_le (mul_nonneg (norm_nonneg L) (norm_nonneg f))).2 | |
| 95 | + intro x | |
| 96 | + exact (L.le_opNorm (f x)).trans (mul_le_mul_of_nonneg_left (f.norm_coe_le_norm x) (norm_nonneg L)) | |
| 97 | + | |
| 98 | +end Bilinear | |
| 99 | + | |
| 100 | +section Composition | |
| 101 | + | |
| 102 | +variable {U E F : Type*} | |
| 103 | + [NormedAddCommGroup U] [NormedSpace ℝ U] | |
| 104 | + [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 105 | + [NormedAddCommGroup F] [NormedSpace ℝ F] | |
| 106 | + | |
| 107 | +private local instance : NormedAddCommGroup (U →L[ℝ] E) := inferInstance | |
| 108 | +private local instance : NormedSpace ℝ (U →L[ℝ] E) := inferInstance | |
| 109 | +private local instance : NormedAddCommGroup (E →L[ℝ] F) := inferInstance | |
| 110 | +private local instance : NormedSpace ℝ (E →L[ℝ] F) := inferInstance | |
| 111 | +private local instance : NormedAddCommGroup (U →L[ℝ] F) := inferInstance | |
| 112 | +private local instance : NormedSpace ℝ (U →L[ℝ] F) := inferInstance | |
| 113 | +private local instance : NormedAddCommGroup (α →ᵇ U →L[ℝ] E) := inferInstance | |
| 114 | +private local instance : NormedSpace ℝ (α →ᵇ U →L[ℝ] E) := inferInstance | |
| 115 | +private local instance : NormedAddCommGroup (α →ᵇ E →L[ℝ] F) := inferInstance | |
| 116 | +private local instance : NormedSpace ℝ (α →ᵇ E →L[ℝ] F) := inferInstance | |
| 117 | +private local instance : NormedAddCommGroup (α →ᵇ U →L[ℝ] F) := inferInstance | |
| 118 | +private local instance : NormedSpace ℝ (α →ᵇ U →L[ℝ] F) := inferInstance | |
| 119 | +private local instance : NormedAddCommGroup ((α →ᵇ U →L[ℝ] E) →L[ℝ] (α →ᵇ U →L[ℝ] F)) := inferInstance | |
| 120 | +private local instance : NormedSpace ℝ ((α →ᵇ U →L[ℝ] E) →L[ℝ] (α →ᵇ U →L[ℝ] F)) := inferInstance | |
| 121 | + | |
| 122 | +/-- The literal composition of two bounded operator fields. -/ | |
| 123 | +def compositionMap : (α →ᵇ E →L[ℝ] F) →L[ℝ] (α →ᵇ U →L[ℝ] E) →L[ℝ] (α →ᵇ U →L[ℝ] F) := | |
| 124 | + bilinearMap (compL ℝ U E F) | |
| 125 | + | |
| 126 | +theorem compositionMap_norm : ‖compositionMap (α := α) (U := U) (E := E) (F := F)‖ ≤ 1 := | |
| 127 | + (bilinearMap_norm (compL ℝ U E F)).trans (norm_compL_le ℝ U E F) | |
| 128 | + | |
| 129 | +@[simp] theorem compositionMap_apply (A : α →ᵇ E →L[ℝ] F) (B : α →ᵇ U →L[ℝ] E) (x : α) : | |
| 130 | + compositionMap A B x = (A x).comp (B x) := rfl | |
| 131 | + | |
| 132 | +variable {K : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 133 | + | |
| 134 | +private local instance : NormedAddCommGroup (C(K,α →ᵇ U →L[ℝ] E)) := inferInstance | |
| 135 | +private local instance : NormedSpace ℝ (C(K,α →ᵇ U →L[ℝ] E)) := inferInstance | |
| 136 | +private local instance : NormedAddCommGroup (C(K,α →ᵇ E →L[ℝ] F)) := inferInstance | |
| 137 | +private local instance : NormedSpace ℝ (C(K,α →ᵇ E →L[ℝ] F)) := inferInstance | |
| 138 | +private local instance : NormedAddCommGroup (C(K,α →ᵇ U →L[ℝ] F)) := inferInstance | |
| 139 | +private local instance : NormedSpace ℝ (C(K,α →ᵇ U →L[ℝ] F)) := inferInstance | |
| 140 | +private local instance : NormedAddCommGroup (C(K,(α →ᵇ U →L[ℝ] E) →L[ℝ] (α →ᵇ U →L[ℝ] F))) := inferInstance | |
| 141 | +private local instance : NormedSpace ℝ (C(K,(α →ᵇ U →L[ℝ] E) →L[ℝ] (α →ᵇ U →L[ℝ] F))) := inferInstance | |
| 142 | +private local instance : NormedAddCommGroup (C(K,α →ᵇ U →L[ℝ] E) →L[ℝ] C(K,α →ᵇ U →L[ℝ] F)) := inferInstance | |
| 143 | +private local instance : NormedSpace ℝ (C(K,α →ᵇ U →L[ℝ] E) →L[ℝ] C(K,α →ᵇ U →L[ℝ] F)) := inferInstance | |
| 144 | + | |
| 145 | +/-- Pointwise spatial composition, uniformly along a compact time path. -/ | |
| 146 | +def pathCompositionMap : C(K,α →ᵇ E →L[ℝ] F) →L[ℝ] | |
| 147 | + C(K,α →ᵇ U →L[ℝ] E) →L[ℝ] C(K,α →ᵇ U →L[ℝ] F) := | |
| 148 | + (EulerContinuousPathCalculus.coefficientMap (K := K) | |
| 149 | + (E := α →ᵇ U →L[ℝ] E) (F := α →ᵇ U →L[ℝ] F)).comp | |
| 150 | + ((compositionMap (α := α) (U := U) (E := E) (F := F)).compLeftContinuous ℝ K) | |
| 151 | + | |
| 152 | +@[simp] theorem pathCompositionMap_apply (A : C(K,α →ᵇ E →L[ℝ] F)) | |
| 153 | + (B : C(K,α →ᵇ U →L[ℝ] E)) (t : K) (x : α) : | |
| 154 | + pathCompositionMap A B t x = (A t x).comp (B t x) := rfl | |
| 155 | + | |
| 156 | +theorem pathCompositionMap_norm : ‖pathCompositionMap (α := α) (K := K) (U := U) (E := E) (F := F)‖ ≤ 1 := by | |
| 157 | + apply opNorm_le_bound _ zero_le_one | |
| 158 | + intro A | |
| 159 | + rw [one_mul] | |
| 160 | + apply opNorm_le_bound _ (norm_nonneg A) | |
| 161 | + intro B | |
| 162 | + apply (ContinuousMap.norm_le _ (mul_nonneg (norm_nonneg A) (norm_nonneg B))).2 | |
| 163 | + intro t | |
| 164 | + apply (BoundedContinuousFunction.norm_le (mul_nonneg (norm_nonneg A) (norm_nonneg B))).2 | |
| 165 | + intro x | |
| 166 | + exact (opNorm_comp_le (A t x) (B t x)).trans | |
| 167 | + (mul_le_mul (((A t).norm_coe_le_norm x).trans (A.norm_coe_le_norm t)) | |
| 168 | + (((B t).norm_coe_le_norm x).trans (B.norm_coe_le_norm t)) (norm_nonneg _) (norm_nonneg A)) | |
| 169 | + | |
| 170 | +variable {P : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P] | |
| 171 | + | |
| 172 | +/-- Genuine smoothness of pointwise field composition in the uniform time-space norm. -/ | |
| 173 | +theorem pathComposition_contDiff (A : P → C(K,α →ᵇ E →L[ℝ] F)) | |
| 174 | + (B : P → C(K,α →ᵇ U →L[ℝ] E)) {n : ℕ∞ω} (hA : ContDiff ℝ n A) (hB : ContDiff ℝ n B) : | |
| 175 | + ContDiff ℝ n (fun y => pathCompositionMap (A y) (B y)) := | |
| 176 | + ((ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := n) | |
| 177 | + (E := C(K,α →ᵇ E →L[ℝ] F)) | |
| 178 | + (F := C(K,α →ᵇ U →L[ℝ] E) →L[ℝ] C(K,α →ᵇ U →L[ℝ] F)) | |
| 179 | + (pathCompositionMap (α := α) (K := K) (U := U) (E := E) (F := F))).comp hA).clm_apply hB | |
| 180 | + | |
| 181 | +/-- The actual field product has the same factorial convolution bound. -/ | |
| 182 | +theorem pathComposition_bound (A : P → C(K,α →ᵇ E →L[ℝ] F)) | |
| 183 | + (B : P → C(K,α →ᵇ U →L[ℝ] E)) (hA : ContDiff ℝ ∞ A) (hB : ContDiff ℝ ∞ B) | |
| 184 | + (R C D : ℝ) (hR : 0 ≤ R) (hC : 0 ≤ C) (hD : 0 ≤ D) (c d : ℕ) | |
| 185 | + (hbA : ∀ n x, ‖iteratedFDeriv ℝ n A x‖ ≤ C*majorant R c n) | |
| 186 | + (hbB : ∀ n x, ‖iteratedFDeriv ℝ n B x‖ ≤ D*majorant R d n) (n : ℕ) (x : P) : | |
| 187 | + ‖iteratedFDeriv ℝ n (fun y => pathCompositionMap (A y) (B y)) x‖ ≤ (3*C*D)*majorant R (c+d) n := | |
| 188 | + bilinear_bound (pathCompositionMap (α := α) (K := K) (U := U) (E := E) (F := F)) | |
| 189 | + (pathCompositionMap_norm (α := α) (K := K) (U := U) (E := E) (F := F)) | |
| 190 | + A B hA hB R C D hR hC hD c d hbA hbB n x | |
| 191 | + | |
| 192 | +end Composition | |
| 193 | + | |
| 194 | +section Adjoint | |
| 195 | + | |
| 196 | +variable {U E : Type*} | |
| 197 | + [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] | |
| 198 | + [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] | |
| 199 | + | |
| 200 | +private local instance : NormedAddCommGroup (U →L[ℝ] E) := inferInstance | |
| 201 | +private local instance : NormedSpace ℝ (U →L[ℝ] E) := inferInstance | |
| 202 | +private local instance : NormedAddCommGroup (E →L[ℝ] U) := inferInstance | |
| 203 | +private local instance : NormedSpace ℝ (E →L[ℝ] U) := inferInstance | |
| 204 | +private local instance : NormedAddCommGroup (α →ᵇ U →L[ℝ] E) := inferInstance | |
| 205 | +private local instance : NormedSpace ℝ (α →ᵇ U →L[ℝ] E) := inferInstance | |
| 206 | +private local instance : NormedAddCommGroup (α →ᵇ E →L[ℝ] U) := inferInstance | |
| 207 | +private local instance : NormedSpace ℝ (α →ᵇ E →L[ℝ] U) := inferInstance | |
| 208 | +private local instance : NormedAddCommGroup ((α →ᵇ U →L[ℝ] E) →L[ℝ] (α →ᵇ E →L[ℝ] U)) := inferInstance | |
| 209 | +private local instance : NormedSpace ℝ ((α →ᵇ U →L[ℝ] E) →L[ℝ] (α →ᵇ E →L[ℝ] U)) := inferInstance | |
| 210 | + | |
| 211 | +/-- The actual adjoint of every bounded coefficient operator. -/ | |
| 212 | +def adjointMap : (α →ᵇ U →L[ℝ] E) →L[ℝ] (α →ᵇ E →L[ℝ] U) := | |
| 213 | + (realAdjoint (U := U) (E := E)).compLeftContinuousBounded α | |
| 214 | + | |
| 215 | +@[simp] theorem adjointMap_apply (A : α →ᵇ U →L[ℝ] E) (x : α) : adjointMap A x = (A x).adjoint := rfl | |
| 216 | + | |
| 217 | +theorem adjointMap_norm : ‖adjointMap (α := α) (U := U) (E := E)‖ ≤ 1 := by | |
| 218 | + apply opNorm_le_bound _ zero_le_one | |
| 219 | + intro A | |
| 220 | + rw [one_mul] | |
| 221 | + apply (BoundedContinuousFunction.norm_le (norm_nonneg A)).2 | |
| 222 | + intro x | |
| 223 | + change ‖(A x).adjoint‖ ≤ ‖A‖ | |
| 224 | + rw [LinearIsometryEquiv.norm_map] | |
| 225 | + exact A.norm_coe_le_norm x | |
| 226 | + | |
| 227 | +variable {K : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 228 | + | |
| 229 | +private local instance : NormedAddCommGroup (C(K,α →ᵇ U →L[ℝ] E)) := inferInstance | |
| 230 | +private local instance : NormedSpace ℝ (C(K,α →ᵇ U →L[ℝ] E)) := inferInstance | |
| 231 | +private local instance : NormedAddCommGroup (C(K,α →ᵇ E →L[ℝ] U)) := inferInstance | |
| 232 | +private local instance : NormedSpace ℝ (C(K,α →ᵇ E →L[ℝ] U)) := inferInstance | |
| 233 | +private local instance : NormedAddCommGroup (C(K,α →ᵇ U →L[ℝ] E) →L[ℝ] C(K,α →ᵇ E →L[ℝ] U)) := inferInstance | |
| 234 | +private local instance : NormedSpace ℝ (C(K,α →ᵇ U →L[ℝ] E) →L[ℝ] C(K,α →ᵇ E →L[ℝ] U)) := inferInstance | |
| 235 | + | |
| 236 | +/-- The bounded adjoint map on entire coefficient paths. -/ | |
| 237 | +def pathAdjointMap : C(K,α →ᵇ U →L[ℝ] E) →L[ℝ] C(K,α →ᵇ E →L[ℝ] U) := | |
| 238 | + (adjointMap (α := α) (U := U) (E := E)).compLeftContinuous ℝ K | |
| 239 | + | |
| 240 | +omit [CompactSpace K] in | |
| 241 | +@[simp] theorem pathAdjointMap_apply (A : C(K,α →ᵇ U →L[ℝ] E)) (t : K) (x : α) : | |
| 242 | + pathAdjointMap A t x = (A t x).adjoint := rfl | |
| 243 | + | |
| 244 | +theorem pathAdjointMap_norm : ‖pathAdjointMap (α := α) (K := K) (U := U) (E := E)‖ ≤ 1 := by | |
| 245 | + apply opNorm_le_bound _ zero_le_one | |
| 246 | + intro A | |
| 247 | + rw [one_mul] | |
| 248 | + apply (ContinuousMap.norm_le _ (norm_nonneg A)).2 | |
| 249 | + intro t | |
| 250 | + apply (BoundedContinuousFunction.norm_le (norm_nonneg A)).2 | |
| 251 | + intro x | |
| 252 | + change ‖(A t x).adjoint‖ ≤ ‖A‖ | |
| 253 | + rw [LinearIsometryEquiv.norm_map] | |
| 254 | + exact ((A t).norm_coe_le_norm x).trans (A.norm_coe_le_norm t) | |
| 255 | + | |
| 256 | +end Adjoint | |
| 257 | + | |
| 258 | +end EulerBoundedFieldCalculus | |
+126 −0 Euler/BoundedFieldForwardGenerator.lean added View file
| @@ -0,0 +1,126 @@ | ||
| 1 | +import Euler.BoundedFieldGramGevrey | |
| 2 | +import Euler.TransverseForwardCoefficientGevrey | |
| 3 | +import Euler.MeanCoefficientPathJets | |
| 4 | + | |
| 5 | +/-! | |
| 6 | +# The actual source forward generator in uniform space-time coefficient norm | |
| 7 | + | |
| 8 | +The Gram inverse is constructed in the bounded-field Banach algebra. This | |
| 9 | +produces the literal source coefficient -2(Q*Q)⁻¹Q*Q₁ and the projected-forcing | |
| 10 | +coefficient (Q*Q)⁻¹Q*. Spatial translation covariance and coefficient estimates | |
| 11 | +are proved for these actual fields. | |
| 12 | +-/ | |
| 13 | + | |
| 14 | +noncomputable section | |
| 15 | + | |
| 16 | +namespace EulerBoundedFieldForwardGenerator | |
| 17 | + | |
| 18 | +open Set ContinuousLinearMap EulerBoundedFieldCalculus EulerBoundedFieldGramInverse | |
| 19 | + EulerTransverseGramInverse EulerOperatorGevreyCalculus EulerGevrey EulerTimeLpGramGevrey | |
| 20 | + EulerTransverseForwardCoefficientGevrey EulerSmoothLimit EulerMeanCoefficients | |
| 21 | +open scoped BoundedContinuousFunction ContDiff | |
| 22 | + | |
| 23 | +variable {α K U E : Type*} [TopologicalSpace α] [TopologicalSpace K] [CompactSpace K] | |
| 24 | + [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] | |
| 25 | + [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] | |
| 26 | + | |
| 27 | +private local instance : NormedAddCommGroup (U →L[ℝ] E) := inferInstance | |
| 28 | +private local instance : NormedSpace ℝ (U →L[ℝ] E) := inferInstance | |
| 29 | +private local instance : NormedAddCommGroup (E →L[ℝ] U) := inferInstance | |
| 30 | +private local instance : NormedSpace ℝ (E →L[ℝ] U) := inferInstance | |
| 31 | +private local instance : NormedAddCommGroup (U →L[ℝ] U) := inferInstance | |
| 32 | +private local instance : NormedSpace ℝ (U →L[ℝ] U) := inferInstance | |
| 33 | +private local instance : NormedAddCommGroup (α →ᵇ U →L[ℝ] E) := inferInstance | |
| 34 | +private local instance : NormedSpace ℝ (α →ᵇ U →L[ℝ] E) := inferInstance | |
| 35 | +private local instance : NormedAddCommGroup (α →ᵇ E →L[ℝ] U) := inferInstance | |
| 36 | +private local instance : NormedSpace ℝ (α →ᵇ E →L[ℝ] U) := inferInstance | |
| 37 | +private local instance : NormedAddCommGroup (α →ᵇ U →L[ℝ] U) := inferInstance | |
| 38 | +private local instance : NormedSpace ℝ (α →ᵇ U →L[ℝ] U) := inferInstance | |
| 39 | +private local instance : NormedAddCommGroup (C(K,α →ᵇ U →L[ℝ] E)) := inferInstance | |
| 40 | +private local instance : NormedSpace ℝ (C(K,α →ᵇ U →L[ℝ] E)) := inferInstance | |
| 41 | +private local instance : NormedAddCommGroup (C(K,α →ᵇ E →L[ℝ] U)) := inferInstance | |
| 42 | +private local instance : NormedSpace ℝ (C(K,α →ᵇ E →L[ℝ] U)) := inferInstance | |
| 43 | +private local instance : NormedAddCommGroup (C(K,α →ᵇ U →L[ℝ] U)) := inferInstance | |
| 44 | +private local instance : NormedSpace ℝ (C(K,α →ᵇ U →L[ℝ] U)) := inferInstance | |
| 45 | + | |
| 46 | +/-- The actual projected-forcing coefficient field. -/ | |
| 47 | +def leftInversePath (c : ℝ) (hc : 0 < c) (Q : C(K,α →ᵇ U →L[ℝ] E)) | |
| 48 | + (hQ : ∀ t x v, c*‖v‖^2 ≤ ‖Q t x v‖^2) : C(K,α →ᵇ E →L[ℝ] U) := | |
| 49 | + pathCompositionMap (inversePath c hc Q hQ) (pathAdjointMap Q) | |
| 50 | + | |
| 51 | +/-- The actual ordinary coefficient in source equation (12). -/ | |
| 52 | +def generatorPath (c : ℝ) (hc : 0 < c) (Q Q₁ : C(K,α →ᵇ U →L[ℝ] E)) | |
| 53 | + (hQ : ∀ t x v, c*‖v‖^2 ≤ ‖Q t x v‖^2) : C(K,α →ᵇ U →L[ℝ] U) := | |
| 54 | + (-2 : ℝ) • pathCompositionMap (leftInversePath c hc Q hQ) Q₁ | |
| 55 | + | |
| 56 | +@[simp] theorem leftInversePath_apply (c : ℝ) (hc : 0 < c) (Q : C(K,α →ᵇ U →L[ℝ] E)) | |
| 57 | + (hQ : ∀ t x v, c*‖v‖^2 ≤ ‖Q t x v‖^2) (t : K) (x : α) : | |
| 58 | + leftInversePath c hc Q hQ t x = (gramInverse (Q t x) c hc (hQ t x)).comp (Q t x).adjoint := rfl | |
| 59 | + | |
| 60 | +@[simp] theorem generatorPath_apply (c : ℝ) (hc : 0 < c) (Q Q₁ : C(K,α →ᵇ U →L[ℝ] E)) | |
| 61 | + (hQ : ∀ t x v, c*‖v‖^2 ≤ ‖Q t x v‖^2) (t : K) (x : α) : | |
| 62 | + generatorPath c hc Q Q₁ hQ t x = | |
| 63 | + (-2 : ℝ) • (gramInverse (Q t x) c hc (hQ t x)).comp ((Q t x).adjoint.comp (Q₁ t x)) := rfl | |
| 64 | + | |
| 65 | +variable {P : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P] | |
| 66 | + | |
| 67 | +/-- Genuine parameter regularity of the actual projected-forcing coefficient. -/ | |
| 68 | +theorem leftInversePath_contDiff (c : ℝ) (hc : 0 < c) (Q : P → C(K,α →ᵇ U →L[ℝ] E)) | |
| 69 | + (hQ : ∀ y t x v, c*‖v‖^2 ≤ ‖Q y t x v‖^2) {n : ℕ∞ω} (hQr : ContDiff ℝ n Q) : | |
| 70 | + ContDiff ℝ n (fun y => leftInversePath c hc (Q y) (hQ y)) := | |
| 71 | + pathComposition_contDiff _ _ (inversePath_contDiff c hc Q hQ hQr) ((pathAdjointMap (α := α) (K := K) (U := U) (E := E)).contDiff.comp hQr) | |
| 72 | + | |
| 73 | +/-- Genuine parameter regularity of the actual source generator. -/ | |
| 74 | +theorem generatorPath_contDiff (c : ℝ) (hc : 0 < c) (Q Q₁ : P → C(K,α →ᵇ U →L[ℝ] E)) | |
| 75 | + (hQ : ∀ y t x v, c*‖v‖^2 ≤ ‖Q y t x v‖^2) {n : ℕ∞ω} | |
| 76 | + (hQr : ContDiff ℝ n Q) (hQ₁r : ContDiff ℝ n Q₁) : | |
| 77 | + ContDiff ℝ n (fun y => generatorPath c hc (Q y) (Q₁ y) (hQ y)) := | |
| 78 | + (pathComposition_contDiff _ Q₁ (leftInversePath_contDiff c hc Q hQ hQr) hQ₁r).const_smul (-2 : ℝ) | |
| 79 | + | |
| 80 | +variable (Q Q₁ : P → C(K,α →ᵇ U →L[ℝ] E)) | |
| 81 | + (c : ℝ) (hc : 0 < c) (hQ : ∀ y t x v, c*‖v‖^2 ≤ ‖Q y t x v‖^2) | |
| 82 | + (hQr : ContDiff ℝ ∞ Q) (hQ₁r : ContDiff ℝ ∞ Q₁) | |
| 83 | + (Rc C₀ C₁ Ri : ℝ) (hRc : 0 ≤ Rc) (hC₀ : 0 ≤ C₀) (hC₁ : 0 ≤ C₁) | |
| 84 | + (hRi : 2*gramCost c C₀ 1*(Rc+1) ≤ Ri) | |
| 85 | + (hbQ : ∀ n x, ‖iteratedFDeriv ℝ n Q x‖ ≤ C₀*majorant Rc 0 n) | |
| 86 | + (hbQ₁ : ∀ n x, ‖iteratedFDeriv ℝ n Q₁ x‖ ≤ C₁*majorant Rc 0 n) | |
| 87 | + | |
| 88 | +include hQr hRc hC₀ hRi hbQ in | |
| 89 | +/-- The projected-forcing coefficient has a polynomial shift-zero amplitude. -/ | |
| 90 | +theorem leftInversePath_bound (n : ℕ) (x : P) : | |
| 91 | + ‖iteratedFDeriv ℝ n (fun y => leftInversePath c hc (Q y) (hQ y)) x‖ ≤ | |
| 92 | + (3*Ri*C₀)*majorant (4*Ri) 0 n := by | |
| 93 | + obtain ⟨hi,hbase⟩ := inverseRadius_bounds c C₀ Rc Ri hc hRc hRi | |
| 94 | + have hrad : 0 ≤ 4*Ri := by positivity | |
| 95 | + have hbQ' (j : ℕ) (y : P) : ‖iteratedFDeriv ℝ j Q y‖ ≤ C₀*majorant (4*Ri) 0 j := | |
| 96 | + (hbQ j y).trans (mul_le_mul_of_nonneg_left (majorant_radius_mono Rc (4*Ri) hRc hbase 0 j) hC₀) | |
| 97 | + have hbAdj := contraction_bound (pathAdjointMap (α := α) (K := K) (U := U) (E := E)) | |
| 98 | + pathAdjointMap_norm Q hQr (4*Ri) C₀ hrad hC₀ 0 hbQ' | |
| 99 | + exact pathComposition_bound (fun y => inversePath c hc (Q y) (hQ y)) | |
| 100 | + (fun y => pathAdjointMap (Q y)) (inversePath_contDiff c hc Q hQ hQr) | |
| 101 | + ((pathAdjointMap (α := α) (K := K) (U := U) (E := E)).contDiff.comp hQr) (4*Ri) Ri C₀ hrad hi hC₀ 0 0 | |
| 102 | + (EulerBoundedFieldGramInverse.inversePath_coefficient_bound Q c hc hQ hQr Rc C₀ hRc hC₀ hbQ Ri hi hRi) | |
| 103 | + hbAdj n x | |
| 104 | + | |
| 105 | +include hQr hQ₁r hRc hC₀ hC₁ hRi hbQ hbQ₁ in | |
| 106 | +/-- The literal generator in (12) satisfies the source's polynomial coefficient bound. -/ | |
| 107 | +theorem generatorPath_bound (n : ℕ) (x : P) : | |
| 108 | + ‖iteratedFDeriv ℝ n (fun y => generatorPath c hc (Q y) (Q₁ y) (hQ y)) x‖ ≤ | |
| 109 | + (18*Ri*C₀*C₁)*majorant (4*Ri) 0 n := by | |
| 110 | + obtain ⟨hi,hbase⟩ := inverseRadius_bounds c C₀ Rc Ri hc hRc hRi | |
| 111 | + have hrad : 0 ≤ 4*Ri := by positivity | |
| 112 | + have hbQ₁' (j : ℕ) (y : P) : ‖iteratedFDeriv ℝ j Q₁ y‖ ≤ C₁*majorant (4*Ri) 0 j := | |
| 113 | + (hbQ₁ j y).trans (mul_le_mul_of_nonneg_left (majorant_radius_mono Rc (4*Ri) hRc hbase 0 j) hC₁) | |
| 114 | + let A := fun y => pathCompositionMap (leftInversePath c hc (Q y) (hQ y)) (Q₁ y) | |
| 115 | + have hAr : ContDiff ℝ ∞ A := pathComposition_contDiff _ Q₁ | |
| 116 | + (leftInversePath_contDiff c hc Q hQ hQr) hQ₁r | |
| 117 | + have hAb : ‖iteratedFDeriv ℝ n A x‖ ≤ (3*(3*Ri*C₀)*C₁)*majorant (4*Ri) 0 n := | |
| 118 | + pathComposition_bound _ Q₁ (leftInversePath_contDiff c hc Q hQ hQr) hQ₁r | |
| 119 | + (4*Ri) (3*Ri*C₀) C₁ hrad (by positivity) hC₁ 0 0 | |
| 120 | + (leftInversePath_bound Q c hc hQ hQr Rc C₀ Ri hRc hC₀ hRi hbQ) hbQ₁' n x | |
| 121 | + change ‖iteratedFDeriv ℝ n (fun y => (-2 : ℝ) • A y) x‖ ≤ _ | |
| 122 | + rw [iteratedFDeriv_const_smul_apply' (hAr.contDiffAt.of_le (by simp)),norm_smul] | |
| 123 | + norm_num only [norm_neg,Real.norm_ofNat] | |
| 124 | + exact (mul_le_mul_of_nonneg_left hAb (by norm_num : (0 : ℝ) ≤ 2)).trans_eq (by ring) | |
| 125 | + | |
| 126 | +end EulerBoundedFieldForwardGenerator | |
+134 −0 Euler/BoundedFieldGramGevrey.lean added View file
| @@ -0,0 +1,134 @@ | ||
| 1 | +import Euler.BoundedFieldGramInverse | |
| 2 | +import Euler.BoundedInverseGevrey | |
| 3 | +import Euler.TimeLpGramGevrey | |
| 4 | +import Euler.GevreyFixedShift | |
| 5 | + | |
| 6 | +/-! Actual factorial estimates for the uniformly bounded space-time Gram inverse. -/ | |
| 7 | + | |
| 8 | +noncomputable section | |
| 9 | + | |
| 10 | +namespace EulerBoundedFieldGramInverse | |
| 11 | + | |
| 12 | +open ContinuousLinearMap EulerBoundedFieldCalculus EulerTransverseGramInverse | |
| 13 | + EulerOperatorGevreyCalculus EulerGevrey EulerTimeLpGramGevrey | |
| 14 | +open scoped BoundedContinuousFunction ContDiff | |
| 15 | + | |
| 16 | +variable {α K P U E : Type*} [TopologicalSpace α] [TopologicalSpace K] [CompactSpace K] | |
| 17 | + [NormedAddCommGroup P] [NormedSpace ℝ P] | |
| 18 | + [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] | |
| 19 | + [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] | |
| 20 | + | |
| 21 | +private local instance : NormedAddCommGroup (U →L[ℝ] E) := inferInstance | |
| 22 | +private local instance : NormedSpace ℝ (U →L[ℝ] E) := inferInstance | |
| 23 | +private local instance : NormedAddCommGroup (E →L[ℝ] U) := inferInstance | |
| 24 | +private local instance : NormedSpace ℝ (E →L[ℝ] U) := inferInstance | |
| 25 | +private local instance : NormedAddCommGroup (U →L[ℝ] U) := inferInstance | |
| 26 | +private local instance : NormedSpace ℝ (U →L[ℝ] U) := inferInstance | |
| 27 | +private local instance : NormedAddCommGroup (α →ᵇ U →L[ℝ] E) := inferInstance | |
| 28 | +private local instance : NormedSpace ℝ (α →ᵇ U →L[ℝ] E) := inferInstance | |
| 29 | +private local instance : NormedAddCommGroup (α →ᵇ E →L[ℝ] U) := inferInstance | |
| 30 | +private local instance : NormedSpace ℝ (α →ᵇ E →L[ℝ] U) := inferInstance | |
| 31 | +private local instance : NormedAddCommGroup (α →ᵇ U →L[ℝ] U) := inferInstance | |
| 32 | +private local instance : NormedSpace ℝ (α →ᵇ U →L[ℝ] U) := inferInstance | |
| 33 | +private local instance : NormedAddCommGroup (C(K,α →ᵇ U →L[ℝ] E)) := inferInstance | |
| 34 | +private local instance : NormedSpace ℝ (C(K,α →ᵇ U →L[ℝ] E)) := inferInstance | |
| 35 | +private local instance : NormedAddCommGroup (C(K,α →ᵇ E →L[ℝ] U)) := inferInstance | |
| 36 | +private local instance : NormedSpace ℝ (C(K,α →ᵇ E →L[ℝ] U)) := inferInstance | |
| 37 | +private local instance : NormedAddCommGroup (C(K,α →ᵇ U →L[ℝ] U)) := inferInstance | |
| 38 | +private local instance : NormedSpace ℝ (C(K,α →ᵇ U →L[ℝ] U)) := inferInstance | |
| 39 | + | |
| 40 | +/-- The actual Gram field has the sharp fixed factorial product bound. -/ | |
| 41 | +theorem gramPath_bound (Q : P → C(K,α →ᵇ U →L[ℝ] E)) (hQ : ContDiff ℝ ∞ Q) | |
| 42 | + (R C : ℝ) (hR : 0 ≤ R) (hC : 0 ≤ C) | |
| 43 | + (hbQ : ∀ n x, ‖iteratedFDeriv ℝ n Q x‖ ≤ C*majorant R 0 n) (n : ℕ) (x : P) : | |
| 44 | + ‖iteratedFDeriv ℝ n (fun y => gramPath (Q y)) x‖ ≤ (3*C^2)*majorant R 0 n := by | |
| 45 | + have hAdj := (pathAdjointMap (α := α) (K := K) (U := U) (E := E)).contDiff.comp hQ | |
| 46 | + have hAdjBound := contraction_bound (pathAdjointMap (α := α) (K := K) (U := U) (E := E)) | |
| 47 | + pathAdjointMap_norm Q hQ R C hR hC 0 hbQ | |
| 48 | + have h := pathComposition_bound (fun y => pathAdjointMap (Q y)) Q hAdj hQ | |
| 49 | + R C C hR hC hC 0 0 hAdjBound hbQ n x | |
| 50 | + have he : 3*C*C = 3*C^2 := by ring | |
| 51 | + have hfun : (fun y => gramPath (Q y)) = (fun y => pathCompositionMap (pathAdjointMap (Q y)) (Q y)) := rfl | |
| 52 | + exact (congrArg (fun g : P → C(K,α →ᵇ U →L[ℝ] U) => ‖iteratedFDeriv ℝ n g x‖) hfun).trans_le | |
| 53 | + (by simpa only [Nat.add_zero,he] using h) | |
| 54 | + | |
| 55 | +private theorem cost_bounds (c C : ℝ) (hc : 0 < c) : | |
| 56 | + 1 ≤ gramCost c C 1 ∧ c⁻¹*(3*C^2) ≤ gramCost c C 1 ∧ c⁻¹ ≤ gramCost c C 1 := by | |
| 57 | + have hi : 0 ≤ c⁻¹ := inv_nonneg.mpr hc.le | |
| 58 | + unfold gramCost | |
| 59 | + constructor | |
| 60 | + · have h : 0 ≤ c⁻¹*(3*C^2+1+1) := by positivity | |
| 61 | + linarith | |
| 62 | + constructor <;> nlinarith [sq_nonneg C] | |
| 63 | + | |
| 64 | +private local instance : NormedAddCommGroup C(K,α →ᵇ U →L[ℝ] U) := inferInstance | |
| 65 | +private local instance : NormedSpace ℝ C(K,α →ᵇ U →L[ℝ] U) := inferInstance | |
| 66 | +private local instance : NormedAddCommGroup (C(K,α →ᵇ U →L[ℝ] U) →L[ℝ] C(K,α →ᵇ U →L[ℝ] U)) := inferInstance | |
| 67 | +private local instance : NormedSpace ℝ (C(K,α →ᵇ U →L[ℝ] U) →L[ℝ] C(K,α →ᵇ U →L[ℝ] U)) := inferInstance | |
| 68 | + | |
| 69 | +/-- The genuinely constructed inverse has one factorial shift in the uniform time-space norm. -/ | |
| 70 | +theorem inversePath_gevrey (Q : P → C(K,α →ᵇ U →L[ℝ] E)) | |
| 71 | + (c : ℝ) (hc : 0 < c) (hLower : ∀ y t x v, c*‖v‖^2 ≤ ‖Q y t x v‖^2) | |
| 72 | + (hQ : ContDiff ℝ ∞ Q) (Rc C : ℝ) (hRc : 0 ≤ Rc) (hC : 0 ≤ C) | |
| 73 | + (hbQ : ∀ n x, ‖iteratedFDeriv ℝ n Q x‖ ≤ C*majorant Rc 0 n) | |
| 74 | + (R : ℝ) (hR : 2*gramCost c C 1*(Rc+1) ≤ R) (n : ℕ) (x : P) : | |
| 75 | + ‖iteratedFDeriv ℝ n (fun y => inversePath c hc (Q y) (hLower y)) x‖ ≤ majorant R 1 n := by | |
| 76 | + let B := fun y => gramPath (Q y) | |
| 77 | + let V := fun y => inversePath c hc (Q y) (hLower y) | |
| 78 | + let M := pathCompositionMap (α := α) (K := K) (U := U) (E := U) (F := U) | |
| 79 | + let A := fun y => M (B y) | |
| 80 | + let I := fun y => M (V y) | |
| 81 | + let onePath : C(K,α →ᵇ U →L[ℝ] U) := | |
| 82 | + ⟨fun _ => BoundedContinuousFunction.const α (ContinuousLinearMap.id ℝ U),continuous_const⟩ | |
| 83 | + have hB : ContDiff ℝ ∞ B := gramPath_contDiff Q hQ | |
| 84 | + have hV : ContDiff ℝ ∞ V := inversePath_contDiff c hc Q hLower hQ | |
| 85 | + have hA : ContDiff ℝ ∞ A := M.contDiff.comp hB | |
| 86 | + have hsolve (y : P) : A y (V y) = onePath := by | |
| 87 | + apply ContinuousMap.ext | |
| 88 | + intro t | |
| 89 | + apply BoundedContinuousFunction.ext | |
| 90 | + intro z | |
| 91 | + apply ContinuousLinearMap.ext | |
| 92 | + intro v | |
| 93 | + exact gram_inverse_apply (Q y t z) c hc (hLower y t z) v | |
| 94 | + have hleft (y : P) (p : C(K,α →ᵇ U →L[ℝ] U)) : I y (A y p) = p := by | |
| 95 | + apply ContinuousMap.ext | |
| 96 | + intro t | |
| 97 | + apply BoundedContinuousFunction.ext | |
| 98 | + intro z | |
| 99 | + apply ContinuousLinearMap.ext | |
| 100 | + intro v | |
| 101 | + exact inverse_gram_apply (Q y t z) c hc (hLower y t z) (p t z v) | |
| 102 | + have hI (y : P) : ‖I y‖ ≤ c⁻¹ := by | |
| 103 | + have h := (M.le_opNorm (V y)).trans | |
| 104 | + (mul_le_mul_of_nonneg_right pathCompositionMap_norm (norm_nonneg (V y))) | |
| 105 | + exact (h.trans_eq (one_mul _)).trans (inversePath_norm c hc (Q y) (hLower y)) | |
| 106 | + have hAall := contraction_bound M pathCompositionMap_norm B hB Rc (3*C^2) hRc | |
| 107 | + (by positivity) 0 (gramPath_bound Q hQ Rc C hRc hC hbQ) | |
| 108 | + have hApos (j : ℕ) (y : P) : ‖iteratedFDeriv ℝ (j+1) A y‖ ≤ | |
| 109 | + (3*C^2)*(Rc^(j+1)*((j+1).factorial : ℝ)^2) := by | |
| 110 | + simpa only [majorant,Nat.add_zero] using hAall (j+1) y | |
| 111 | + obtain ⟨hM,hMC,hMD⟩ := cost_bounds c C hc | |
| 112 | + have hR0 : 0 ≤ R := by nlinarith | |
| 113 | + have hone : ‖onePath‖ ≤ 1 := by | |
| 114 | + apply (ContinuousMap.norm_le _ zero_le_one).2 | |
| 115 | + intro t | |
| 116 | + apply (BoundedContinuousFunction.norm_le zero_le_one).2 | |
| 117 | + intro z | |
| 118 | + exact norm_id_le | |
| 119 | + exact EulerBoundedInverseGevrey.solution_gevrey A V (fun _ : P => onePath) hA hV contDiff_const | |
| 120 | + hsolve I hleft c⁻¹ (3*C^2) 1 (gramCost c C 1) Rc R (by positivity) zero_le_one hM hMC | |
| 121 | + (by simpa only [mul_one] using hMD) hRc hR hI hApos 0 | |
| 122 | + (const_bound onePath R 1 hR0 hone) n x | |
| 123 | + | |
| 124 | +/-- A fixed coefficient radius absorbs the one inverse shift once, before recursive solves. -/ | |
| 125 | +theorem inversePath_coefficient_bound (Q : P → C(K,α →ᵇ U →L[ℝ] E)) | |
| 126 | + (c : ℝ) (hc : 0 < c) (hLower : ∀ y t x v, c*‖v‖^2 ≤ ‖Q y t x v‖^2) | |
| 127 | + (hQ : ContDiff ℝ ∞ Q) (Rc C : ℝ) (hRc : 0 ≤ Rc) (hC : 0 ≤ C) | |
| 128 | + (hbQ : ∀ n x, ‖iteratedFDeriv ℝ n Q x‖ ≤ C*majorant Rc 0 n) | |
| 129 | + (R : ℝ) (hR0 : 0 ≤ R) (hR : 2*gramCost c C 1*(Rc+1) ≤ R) (n : ℕ) (x : P) : | |
| 130 | + ‖iteratedFDeriv ℝ n (fun y => inversePath c hc (Q y) (hLower y)) x‖ ≤ R*majorant (4*R) 0 n := | |
| 131 | + (inversePath_gevrey Q c hc hLower hQ Rc C hRc hC hbQ R hR n x).trans | |
| 132 | + (majorant_one_le_radius_four R hR0 n) | |
| 133 | + | |
| 134 | +end EulerBoundedFieldGramInverse | |
+172 −0 Euler/BoundedFieldGramInverse.lean added View file
| @@ -0,0 +1,172 @@ | ||
| 1 | +import Euler.BoundedFieldCalculus | |
| 2 | +import Euler.HilbertCoerciveParameter | |
| 3 | + | |
| 4 | +/-! | |
| 5 | +# The constructed inverse Gram field in the uniform space-time norm | |
| 6 | + | |
| 7 | +Uniform lower bounds for the pointwise frame construct a bounded continuous | |
| 8 | +inverse field. It forms an actual unit of the bounded-field Banach algebra. | |
| 9 | +The resulting time path and its parameter regularity are therefore proved in | |
| 10 | +the uniform spatial norm, not merely at each fixed spatial label. | |
| 11 | +-/ | |
| 12 | + | |
| 13 | +noncomputable section | |
| 14 | + | |
| 15 | +namespace EulerBoundedFieldGramInverse | |
| 16 | + | |
| 17 | +open ContinuousLinearMap EulerBoundedFieldCalculus EulerTransverseGramInverse | |
| 18 | + EulerCoerciveProjection EulerInverseRegularity | |
| 19 | +open scoped BoundedContinuousFunction ContDiff | |
| 20 | + | |
| 21 | +variable {α U E : Type*} [TopologicalSpace α] | |
| 22 | + [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] | |
| 23 | + [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] | |
| 24 | + | |
| 25 | +private local instance : NormedAddCommGroup (U →L[ℝ] E) := inferInstance | |
| 26 | +private local instance : NormedSpace ℝ (U →L[ℝ] E) := inferInstance | |
| 27 | +private local instance : NormedAddCommGroup (E →L[ℝ] U) := inferInstance | |
| 28 | +private local instance : NormedSpace ℝ (E →L[ℝ] U) := inferInstance | |
| 29 | +private local instance : NormedAddCommGroup (α →ᵇ U →L[ℝ] E) := inferInstance | |
| 30 | +private local instance : NormedSpace ℝ (α →ᵇ U →L[ℝ] E) := inferInstance | |
| 31 | +private local instance : NormedAddCommGroup (α →ᵇ E →L[ℝ] U) := inferInstance | |
| 32 | +private local instance : NormedSpace ℝ (α →ᵇ E →L[ℝ] U) := inferInstance | |
| 33 | + | |
| 34 | +private local instance : NormedRing (U →L[ℝ] U) := inferInstance | |
| 35 | +private local instance : NormedAlgebra ℝ (U →L[ℝ] U) := inferInstance | |
| 36 | +private local instance : NormedRing (α →ᵇ U →L[ℝ] U) := inferInstance | |
| 37 | +private local instance : NormedAlgebra ℝ (α →ᵇ U →L[ℝ] U) := inferInstance | |
| 38 | + | |
| 39 | +/-- The literal positive Gram coefficient field. -/ | |
| 40 | +def gramField (Q : α →ᵇ U →L[ℝ] E) : α →ᵇ U →L[ℝ] U := | |
| 41 | + compositionMap (adjointMap Q) Q | |
| 42 | + | |
| 43 | +@[simp] theorem gramField_apply (Q : α →ᵇ U →L[ℝ] E) (x : α) : gramField Q x = gram (Q x) := rfl | |
| 44 | + | |
| 45 | +variable (Q : α →ᵇ U →L[ℝ] E) (c : ℝ) (hc : 0 < c) | |
| 46 | + (hQ : ∀ x v, c*‖v‖^2 ≤ ‖Q x v‖^2) | |
| 47 | + | |
| 48 | +/-- Continuity of the actual pointwise coercive inverse. -/ | |
| 49 | +theorem inverseField_continuous : Continuous (fun x => gramInverse (Q x) c hc (hQ x)) := by | |
| 50 | + have heq : (fun x => gramInverse (Q x) c hc (hQ x)) = fun x => Ring.inverse (gram (Q x)) := by | |
| 51 | + funext x | |
| 52 | + exact coerciveInverse_eq_ringInverse (gram (Q x)) c hc (gram_coercive (Q x) c (hQ x)) | |
| 53 | + rw [heq,continuous_iff_continuousAt] | |
| 54 | + intro x | |
| 55 | + let e := coerciveEquiv (gram (Q x)) c hc (gram_coercive (Q x) c (hQ x)) | |
| 56 | + have he : (e.toUnit : U →L[ℝ] U) = gram (Q x) := by | |
| 57 | + ext v | |
| 58 | + exact coerciveEquiv_apply (gram (Q x)) c hc (gram_coercive (Q x) c (hQ x)) v | |
| 59 | + have hi := (hasFDerivAt_ringInverse (𝕜 := ℝ) e.toUnit).continuousAt | |
| 60 | + rw [he] at hi | |
| 61 | + exact hi.comp (x := x) (gramField Q).continuous.continuousAt | |
| 62 | + | |
| 63 | +/-- The genuine bounded continuous inverse field, with coercive norm c⁻¹. -/ | |
| 64 | +def inverseField : α →ᵇ U →L[ℝ] U := | |
| 65 | + BoundedContinuousFunction.ofNormedAddCommGroup (fun x => gramInverse (Q x) c hc (hQ x)) | |
| 66 | + (inverseField_continuous Q c hc hQ) c⁻¹ (fun x => gramInverse_norm (Q x) c hc (hQ x)) | |
| 67 | + | |
| 68 | +@[simp] theorem inverseField_apply (x : α) : inverseField Q c hc hQ x = gramInverse (Q x) c hc (hQ x) := rfl | |
| 69 | + | |
| 70 | +theorem inverseField_norm : ‖inverseField Q c hc hQ‖ ≤ c⁻¹ := | |
| 71 | + BoundedContinuousFunction.norm_ofNormedAddCommGroup_le _ (inv_nonneg.mpr hc.le) _ | |
| 72 | + | |
| 73 | +/-- This actual inverse forms a unit in the bounded-field algebra. -/ | |
| 74 | +def gramFieldUnit : (α →ᵇ U →L[ℝ] U)ˣ where | |
| 75 | + val := gramField Q | |
| 76 | + inv := inverseField Q c hc hQ | |
| 77 | + val_inv := by | |
| 78 | + apply BoundedContinuousFunction.ext | |
| 79 | + intro x | |
| 80 | + apply ContinuousLinearMap.ext | |
| 81 | + intro v | |
| 82 | + exact gram_inverse_apply (Q x) c hc (hQ x) v | |
| 83 | + inv_val := by | |
| 84 | + apply BoundedContinuousFunction.ext | |
| 85 | + intro x | |
| 86 | + apply ContinuousLinearMap.ext | |
| 87 | + intro v | |
| 88 | + exact inverse_gram_apply (Q x) c hc (hQ x) v | |
| 89 | + | |
| 90 | +/-- Actual pointwise inversion equals the Banach-algebra inverse. -/ | |
| 91 | +theorem inverseField_eq_ringInverse : inverseField Q c hc hQ = Ring.inverse (gramField Q) := | |
| 92 | + (Ring.inverse_unit (M₀ := α →ᵇ U →L[ℝ] U) (gramFieldUnit Q c hc hQ)).symm | |
| 93 | + | |
| 94 | +section Paths | |
| 95 | + | |
| 96 | +variable {K : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 97 | + | |
| 98 | +private local instance : NormedAddCommGroup (C(K,α →ᵇ U →L[ℝ] E)) := inferInstance | |
| 99 | +private local instance : NormedSpace ℝ (C(K,α →ᵇ U →L[ℝ] E)) := inferInstance | |
| 100 | +private local instance : NormedAddCommGroup (C(K,α →ᵇ U →L[ℝ] U)) := inferInstance | |
| 101 | +private local instance : NormedSpace ℝ (C(K,α →ᵇ U →L[ℝ] U)) := inferInstance | |
| 102 | + | |
| 103 | +/-- The Gram field as an actual uniform time path. -/ | |
| 104 | +def gramPath (Qp : C(K,α →ᵇ U →L[ℝ] E)) : C(K,α →ᵇ U →L[ℝ] U) := | |
| 105 | + pathCompositionMap (pathAdjointMap Qp) Qp | |
| 106 | + | |
| 107 | +@[simp] theorem gramPath_apply (Qp : C(K,α →ᵇ U →L[ℝ] E)) (t : K) : gramPath Qp t = gramField (Qp t) := rfl | |
| 108 | + | |
| 109 | +/-- The constructed inverse is continuous in the spatial uniform norm as time varies. -/ | |
| 110 | +def inversePath (Qp : C(K,α →ᵇ U →L[ℝ] E)) | |
| 111 | + (hLower : ∀ t x v, c*‖v‖^2 ≤ ‖Qp t x v‖^2) : C(K,α →ᵇ U →L[ℝ] U) where | |
| 112 | + toFun t := inverseField (Qp t) c hc (hLower t) | |
| 113 | + continuous_toFun := by | |
| 114 | + have heq : (fun t => inverseField (Qp t) c hc (hLower t)) = fun t => Ring.inverse (gramField (Qp t)) := | |
| 115 | + funext (fun t => inverseField_eq_ringInverse (Qp t) c hc (hLower t)) | |
| 116 | + rw [heq,continuous_iff_continuousAt] | |
| 117 | + intro t | |
| 118 | + exact ((hasFDerivAt_ringInverse (𝕜 := ℝ) (gramFieldUnit (Qp t) c hc (hLower t))).continuousAt).comp | |
| 119 | + (x := t) (gramPath Qp).continuous.continuousAt | |
| 120 | + | |
| 121 | +@[simp] theorem inversePath_apply (Qp : C(K,α →ᵇ U →L[ℝ] E)) | |
| 122 | + (hLower : ∀ t x v, c*‖v‖^2 ≤ ‖Qp t x v‖^2) (t : K) (x : α) : | |
| 123 | + inversePath c hc Qp hLower t x = gramInverse (Qp t x) c hc (hLower t x) := rfl | |
| 124 | + | |
| 125 | +/-- The uniform time-space inverse bound is the same coercive bound. -/ | |
| 126 | +theorem inversePath_norm (Qp : C(K,α →ᵇ U →L[ℝ] E)) | |
| 127 | + (hLower : ∀ t x v, c*‖v‖^2 ≤ ‖Qp t x v‖^2) : ‖inversePath c hc Qp hLower‖ ≤ c⁻¹ := by | |
| 128 | + apply (ContinuousMap.norm_le _ (inv_nonneg.mpr hc.le)).2 | |
| 129 | + intro t | |
| 130 | + exact inverseField_norm (Qp t) c hc (hLower t) | |
| 131 | + | |
| 132 | +/-- The pathwise Gram field is an actual unit of the full time-space Banach algebra. -/ | |
| 133 | +def gramPathUnit (Qp : C(K,α →ᵇ U →L[ℝ] E)) | |
| 134 | + (hLower : ∀ t x v, c*‖v‖^2 ≤ ‖Qp t x v‖^2) : C(K,α →ᵇ U →L[ℝ] U)ˣ where | |
| 135 | + val := gramPath Qp | |
| 136 | + inv := inversePath c hc Qp hLower | |
| 137 | + val_inv := by | |
| 138 | + apply ContinuousMap.ext | |
| 139 | + intro t | |
| 140 | + exact (gramFieldUnit (Qp t) c hc (hLower t)).val_inv | |
| 141 | + inv_val := by | |
| 142 | + apply ContinuousMap.ext | |
| 143 | + intro t | |
| 144 | + exact (gramFieldUnit (Qp t) c hc (hLower t)).inv_val | |
| 145 | + | |
| 146 | +/-- The actual inverse path is the algebra inverse in the uniform time-space norm. -/ | |
| 147 | +theorem inversePath_eq_ringInverse (Qp : C(K,α →ᵇ U →L[ℝ] E)) | |
| 148 | + (hLower : ∀ t x v, c*‖v‖^2 ≤ ‖Qp t x v‖^2) : | |
| 149 | + inversePath c hc Qp hLower = Ring.inverse (gramPath Qp) := | |
| 150 | + (Ring.inverse_unit (M₀ := C(K,α →ᵇ U →L[ℝ] U)) (gramPathUnit c hc Qp hLower)).symm | |
| 151 | + | |
| 152 | +variable {P : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P] | |
| 153 | + | |
| 154 | +/-- Smoothness of the actual uniform Gram coefficient path. -/ | |
| 155 | +theorem gramPath_contDiff (A : P → C(K,α →ᵇ U →L[ℝ] E)) {n : ℕ∞ω} (hA : ContDiff ℝ n A) : | |
| 156 | + ContDiff ℝ n (fun a => gramPath (A a)) := | |
| 157 | + pathComposition_contDiff (fun a => pathAdjointMap (A a)) A ((pathAdjointMap (α := α) (K := K) (U := U) (E := E)).contDiff.comp hA) hA | |
| 158 | + | |
| 159 | +/-- Smoothness of the constructed inverse in the uniform time-space norm. -/ | |
| 160 | +theorem inversePath_contDiff (A : P → C(K,α →ᵇ U →L[ℝ] E)) | |
| 161 | + (hLower : ∀ a t x v, c*‖v‖^2 ≤ ‖A a t x v‖^2) {n : ℕ∞ω} (hA : ContDiff ℝ n A) : | |
| 162 | + ContDiff ℝ n (fun a => inversePath c hc (A a) (hLower a)) := by | |
| 163 | + have heq : (fun a => inversePath c hc (A a) (hLower a)) = Ring.inverse ∘ (fun a => gramPath (A a)) := | |
| 164 | + funext (fun a => inversePath_eq_ringInverse c hc (A a) (hLower a)) | |
| 165 | + rw [heq,contDiff_iff_contDiffAt] | |
| 166 | + intro a | |
| 167 | + exact (contDiffAt_ringInverse ℝ (R := C(K,α →ᵇ U →L[ℝ] U)) | |
| 168 | + (gramPathUnit c hc (A a) (hLower a))).comp a (gramPath_contDiff A hA).contDiffAt | |
| 169 | + | |
| 170 | +end Paths | |
| 171 | + | |
| 172 | +end EulerBoundedFieldGramInverse | |
+87 −0 Euler/BoundedFieldMultilinear.lean added View file
| @@ -0,0 +1,87 @@ | ||
| 1 | +import Euler.BoundedFieldCalculus | |
| 2 | +import Mathlib.Analysis.Normed.Module.Multilinear.Basic | |
| 3 | + | |
| 4 | +/-! A continuous multilinear operation acts on genuine bounded fields in | |
| 5 | +the uniform norm. This includes the finite Faà di Bruno operations. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | + | |
| 10 | +open scoped BigOperators BoundedContinuousFunction | |
| 11 | + | |
| 12 | +namespace EulerBoundedFieldCalculus | |
| 13 | + | |
| 14 | +variable {α ι : Type*} [TopologicalSpace α] [Fintype ι] | |
| 15 | + {V : ι → Type*} [∀ i, NormedAddCommGroup (V i)] [∀ i, NormedSpace ℝ (V i)] | |
| 16 | + {W : Type*} [NormedAddCommGroup W] [NormedSpace ℝ W] | |
| 17 | + | |
| 18 | +private local instance (i : ι) : NormedAddCommGroup (α →ᵇ V i) := inferInstance | |
| 19 | +private local instance (i : ι) : NormedSpace ℝ (α →ᵇ V i) := inferInstance | |
| 20 | +private local instance : NormedAddCommGroup (α →ᵇ W) := inferInstance | |
| 21 | +private local instance : NormedSpace ℝ (α →ᵇ W) := inferInstance | |
| 22 | + | |
| 23 | +def multilinearValue (L : ContinuousMultilinearMap ℝ V W) | |
| 24 | + (f : ∀ i, α →ᵇ V i) : α →ᵇ W := | |
| 25 | + BoundedContinuousFunction.ofNormedAddCommGroup (fun x => L (fun i => f i x)) | |
| 26 | + (L.cont.comp (continuous_pi (fun i => (f i).continuous))) | |
| 27 | + (‖L‖ * ∏ i, ‖f i‖) (fun x => (L.le_opNorm _).trans | |
| 28 | + (mul_le_mul_of_nonneg_left | |
| 29 | + (Finset.prod_le_prod (fun _ _ => norm_nonneg _) | |
| 30 | + (fun i _ => (f i).norm_coe_le_norm x)) (norm_nonneg L))) | |
| 31 | + | |
| 32 | +@[simp] theorem multilinearValue_apply (L : ContinuousMultilinearMap ℝ V W) | |
| 33 | + (f : ∀ i, α →ᵇ V i) (x : α) : | |
| 34 | + multilinearValue L f x = L (fun i => f i x) := rfl | |
| 35 | + | |
| 36 | +theorem multilinearValue_norm (L : ContinuousMultilinearMap ℝ V W) | |
| 37 | + (f : ∀ i, α →ᵇ V i) : | |
| 38 | + ‖multilinearValue L f‖ ≤ ‖L‖ * ∏ i, ‖f i‖ := | |
| 39 | + BoundedContinuousFunction.norm_ofNormedAddCommGroup_le _ | |
| 40 | + (mul_nonneg (norm_nonneg _) (Finset.prod_nonneg (fun _ _ => norm_nonneg _))) _ | |
| 41 | + | |
| 42 | +def multilinearAlgebra (L : ContinuousMultilinearMap ℝ V W) : | |
| 43 | + MultilinearMap ℝ (fun i => α →ᵇ V i) (α →ᵇ W) := by | |
| 44 | + classical | |
| 45 | + refine MultilinearMap.mk' (multilinearValue L) ?_ ?_ | |
| 46 | + · intro f i a b | |
| 47 | + apply BoundedContinuousFunction.ext | |
| 48 | + intro x | |
| 49 | + change L (fun j => Function.update f i (a+b) j x) = | |
| 50 | + L (fun j => Function.update f i a j x) + L (fun j => Function.update f i b j x) | |
| 51 | + have he (c : α →ᵇ V i) : | |
| 52 | + (fun j => Function.update f i c j x) = | |
| 53 | + Function.update (fun j => f j x) i (c x) := by | |
| 54 | + funext j | |
| 55 | + by_cases hj : j = i | |
| 56 | + · subst j; simp | |
| 57 | + · simp [hj] | |
| 58 | + simp only [he, BoundedContinuousFunction.add_apply] | |
| 59 | + exact L.map_update_add _ _ _ _ | |
| 60 | + · intro f i r a | |
| 61 | + apply BoundedContinuousFunction.ext | |
| 62 | + intro x | |
| 63 | + change L (fun j => Function.update f i (r • a) j x) = | |
| 64 | + r • L (fun j => Function.update f i a j x) | |
| 65 | + have he (c : α →ᵇ V i) : | |
| 66 | + (fun j => Function.update f i c j x) = | |
| 67 | + Function.update (fun j => f j x) i (c x) := by | |
| 68 | + funext j | |
| 69 | + by_cases hj : j = i | |
| 70 | + · subst j; simp | |
| 71 | + · simp [hj] | |
| 72 | + simp only [he, BoundedContinuousFunction.smul_apply] | |
| 73 | + exact L.map_update_smul _ _ _ _ | |
| 74 | + | |
| 75 | +def multilinearMap (L : ContinuousMultilinearMap ℝ V W) : | |
| 76 | + ContinuousMultilinearMap ℝ (fun i => α →ᵇ V i) (α →ᵇ W) := | |
| 77 | + (multilinearAlgebra L).mkContinuous ‖L‖ (multilinearValue_norm L) | |
| 78 | + | |
| 79 | +@[simp] theorem multilinearMap_apply (L : ContinuousMultilinearMap ℝ V W) | |
| 80 | + (f : ∀ i, α →ᵇ V i) (x : α) : | |
| 81 | + multilinearMap L f x = L (fun i => f i x) := rfl | |
| 82 | + | |
| 83 | +theorem multilinearMap_norm (L : ContinuousMultilinearMap ℝ V W) : | |
| 84 | + ‖multilinearMap (α := α) L‖ ≤ ‖L‖ := | |
| 85 | + (multilinearAlgebra L).mkContinuous_norm_le (norm_nonneg L) (multilinearValue_norm L) | |
| 86 | + | |
| 87 | +end EulerBoundedFieldCalculus | |
+98 −0 Euler/BoundedFieldPullback.lean added View file
| @@ -0,0 +1,98 @@ | ||
| 1 | +import Euler.SmoothTimeField | |
| 2 | +import Mathlib.Analysis.Calculus.MeanValue | |
| 3 | + | |
| 4 | +/-! Pullback of a bounded field by identity plus a bounded displacement. | |
| 5 | +Uniform spatial Lipschitz control proves continuity in the genuine sup norm. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | + | |
| 10 | +open scoped BoundedContinuousFunction ContDiff NNReal | |
| 11 | + | |
| 12 | +namespace EulerBoundedFieldPullback | |
| 13 | + | |
| 14 | +variable {E V : Type*} [NormedAddCommGroup E] [NormedAddCommGroup V] | |
| 15 | + | |
| 16 | +def pullback (A : E →ᵇ V) (d : E →ᵇ E) : E →ᵇ V := | |
| 17 | + BoundedContinuousFunction.ofNormedAddCommGroup (fun x => A (x+d x)) | |
| 18 | + (A.continuous.comp (continuous_id.add d.continuous)) ‖A‖ | |
| 19 | + (fun x => A.norm_coe_le_norm (x+d x)) | |
| 20 | + | |
| 21 | +@[simp] theorem pullback_apply (A : E →ᵇ V) (d : E →ᵇ E) (x : E) : | |
| 22 | + pullback A d x = A (x+d x) := rfl | |
| 23 | + | |
| 24 | +theorem pullback_norm (A : E →ᵇ V) (d : E →ᵇ E) : | |
| 25 | + ‖pullback A d‖ ≤ ‖A‖ := | |
| 26 | + BoundedContinuousFunction.norm_ofNormedAddCommGroup_le _ (norm_nonneg A) _ | |
| 27 | + | |
| 28 | +theorem pullback_sub_norm (A B : E →ᵇ V) (d e : E →ᵇ E) | |
| 29 | + (L : ℝ≥0) (hL : LipschitzWith L A) : | |
| 30 | + ‖pullback A d - pullback B e‖ ≤ ‖A-B‖ + L * ‖d-e‖ := by | |
| 31 | + apply (BoundedContinuousFunction.norm_le (by positivity)).2 | |
| 32 | + intro x | |
| 33 | + change ‖A (x+d x)-B (x+e x)‖ ≤ _ | |
| 34 | + calc | |
| 35 | + _ ≤ ‖A (x+d x)-A (x+e x)‖ + ‖A (x+e x)-B (x+e x)‖ := | |
| 36 | + norm_sub_le_norm_sub_add_norm_sub _ _ _ | |
| 37 | + _ ≤ L*‖d-e‖ + ‖A-B‖ := by | |
| 38 | + apply add_le_add | |
| 39 | + · have hh := hL.dist_le_mul (x+d x) (x+e x) | |
| 40 | + rw [dist_eq_norm, dist_eq_norm, add_sub_add_left_eq_sub] at hh | |
| 41 | + exact hh.trans (mul_le_mul_of_nonneg_left ((d-e).norm_coe_le_norm x) L.coe_nonneg) | |
| 42 | + · exact (A-B).norm_coe_le_norm (x+e x) | |
| 43 | + _ = _ := add_comm _ _ | |
| 44 | + | |
| 45 | +variable {K : Type*} [TopologicalSpace K] | |
| 46 | + | |
| 47 | +theorem continuous_pullback (A : C(K,E →ᵇ V)) (d : C(K,E →ᵇ E)) | |
| 48 | + (L : ℝ≥0) (hL : ∀ t, LipschitzWith L (A t)) : | |
| 49 | + Continuous (fun t => pullback (A t) (d t)) := by | |
| 50 | + apply continuous_iff_continuousAt.mpr | |
| 51 | + intro t | |
| 52 | + apply tendsto_iff_norm_sub_tendsto_zero.mpr | |
| 53 | + apply squeeze_zero (fun s => norm_nonneg _) | |
| 54 | + (fun s => pullback_sub_norm (A s) (A t) (d s) (d t) L (hL s)) | |
| 55 | + have hzero : Filter.Tendsto | |
| 56 | + (fun s => ‖A s-A t‖ + (L : ℝ)*‖d s-d t‖) (nhds t) (nhds 0) := by | |
| 57 | + have hc : Continuous (fun s => ‖A s-A t‖ + (L : ℝ)*‖d s-d t‖) := | |
| 58 | + ((A.continuous.sub continuous_const).norm).add | |
| 59 | + (continuous_const.mul ((d.continuous.sub continuous_const).norm)) | |
| 60 | + simpa only [sub_self, norm_zero, mul_zero, add_zero] using hc.tendsto t | |
| 61 | + exact hzero | |
| 62 | + | |
| 63 | +def pathPullback (A : C(K,E →ᵇ V)) (d : C(K,E →ᵇ E)) | |
| 64 | + (L : ℝ≥0) (hL : ∀ t, LipschitzWith L (A t)) : C(K,E →ᵇ V) := | |
| 65 | + ⟨fun t => pullback (A t) (d t), continuous_pullback A d L hL⟩ | |
| 66 | + | |
| 67 | +@[simp] theorem pathPullback_apply (A : C(K,E →ᵇ V)) (d : C(K,E →ᵇ E)) | |
| 68 | + (L : ℝ≥0) (hL : ∀ t, LipschitzWith L (A t)) (t : K) (x : E) : | |
| 69 | + pathPullback A d L hL t x = A t (x+d t x) := rfl | |
| 70 | + | |
| 71 | +end EulerBoundedFieldPullback | |
| 72 | + | |
| 73 | +namespace SmoothTimeField | |
| 74 | + | |
| 75 | +universe u | |
| 76 | + | |
| 77 | +variable {K E V : Type u} [TopologicalSpace K] [CompactSpace K] | |
| 78 | + [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 79 | + [NormedAddCommGroup V] [NormedSpace ℝ V] | |
| 80 | + | |
| 81 | +private local instance (n : ℕ) : NormedAddCommGroup (E [×n]→L[ℝ] V) := inferInstance | |
| 82 | +private local instance (n : ℕ) : NormedSpace ℝ (E [×n]→L[ℝ] V) := inferInstance | |
| 83 | +private local instance (n : ℕ) : NormedAddCommGroup (E →ᵇ (E [×n]→L[ℝ] V)) := inferInstance | |
| 84 | +private local instance (n : ℕ) : NormedSpace ℝ (E →ᵇ (E [×n]→L[ℝ] V)) := inferInstance | |
| 85 | + | |
| 86 | +theorem jet_lipschitz (A : SmoothTimeField K E V) (n : ℕ) (t : K) : | |
| 87 | + LipschitzWith ‖A.jet (n+1)‖₊ (A.jet n t) := by | |
| 88 | + have he : (A.jet n t : E → E [×n]→L[ℝ] V) = | |
| 89 | + iteratedFDeriv ℝ n (A.field t : E → V) := funext (A.jet_eq n t) | |
| 90 | + rw [he] | |
| 91 | + apply lipschitzWith_of_nnnorm_fderiv_le | |
| 92 | + (((A.smooth t).iteratedFDeriv_right (m := ∞) (by simp)).differentiable (by simp)) | |
| 93 | + intro x | |
| 94 | + change ‖fderiv ℝ (iteratedFDeriv ℝ n (A.field t : E → V)) x‖ ≤ ‖A.jet (n+1)‖ | |
| 95 | + rw [norm_fderiv_iteratedFDeriv, ← A.jet_eq] | |
| 96 | + exact ((A.jet (n+1) t).norm_coe_le_norm x).trans ((A.jet (n+1)).norm_coe_le_norm t) | |
| 97 | + | |
| 98 | +end SmoothTimeField | |
+62 −0 Euler/BoundedFieldTimeDerivative.lean added View file
| @@ -0,0 +1,62 @@ | ||
| 1 | +import Euler.ContinuousTimeIntegral | |
| 2 | +import Mathlib.Topology.ContinuousMap.Bounded.Normed | |
| 3 | + | |
| 4 | +/-! | |
| 5 | +# Actual time derivatives of uniformly continuous bounded fields | |
| 6 | + | |
| 7 | +Pointwise derivatives identify a derivative in the bounded-field norm when | |
| 8 | +both the field and prescribed derivative are continuous in that norm. The | |
| 9 | +proof uses the Bochner fundamental theorem of calculus and bounded evaluation. | |
| 10 | +-/ | |
| 11 | + | |
| 12 | +noncomputable section | |
| 13 | + | |
| 14 | +namespace EulerBoundedFieldTimeDerivative | |
| 15 | + | |
| 16 | +open Set MeasureTheory ContinuousLinearMap EulerVolterraConvolution | |
| 17 | +open scoped BoundedContinuousFunction | |
| 18 | + | |
| 19 | +variable {X W : Type*} [TopologicalSpace X] [NormedAddCommGroup W] [NormedSpace ℝ W] | |
| 20 | + [CompleteSpace W] | |
| 21 | +variable (T : ℝ) (hT : 0 ≤ T) (A A' : C(Icc (0 : ℝ) T,X →ᵇ W)) | |
| 22 | + | |
| 23 | +/-- Pointwise derivatives imply the exact integral identity in the bounded-field space. -/ | |
| 24 | +theorem integral_eq_sub | |
| 25 | + (hpoint : ∀ t ∈ Icc (0 : ℝ) T, ∀ x : X, | |
| 26 | + HasDerivWithinAt (fun s => extendPath T hT A s x) | |
| 27 | + (extendPath T hT A' t x) (Icc (0 : ℝ) T) t) | |
| 28 | + (t : ℝ) (ht : t ∈ Icc (0 : ℝ) T) : | |
| 29 | + (∫ s in (0 : ℝ)..t, extendPath T hT A' s) = | |
| 30 | + extendPath T hT A t - extendPath T hT A 0 := by | |
| 31 | + apply BoundedContinuousFunction.ext | |
| 32 | + intro x | |
| 33 | + let ev : (X →ᵇ W) →L[ℝ] W := BoundedContinuousFunction.evalCLM ℝ x | |
| 34 | + have hcA := ev.continuous.comp (extendPath_continuous T hT A) | |
| 35 | + have hcA' := ev.continuous.comp (extendPath_continuous T hT A') | |
| 36 | + calc | |
| 37 | + (∫ s in (0 : ℝ)..t, extendPath T hT A' s) x = | |
| 38 | + ∫ s in (0 : ℝ)..t, extendPath T hT A' s x := by | |
| 39 | + exact (ev.intervalIntegral_comp_comm ((extendPath_continuous T hT A').intervalIntegrable 0 t)).symm | |
| 40 | + _ = extendPath T hT A t x - extendPath T hT A 0 x := by | |
| 41 | + apply intervalIntegral.integral_eq_sub_of_hasDerivAt_of_le ht.1 hcA.continuousOn | |
| 42 | + ?_ (hcA'.intervalIntegrable 0 t) | |
| 43 | + intro s hs | |
| 44 | + have hsT : s < T := hs.2.trans_le ht.2 | |
| 45 | + exact (hpoint s ⟨hs.1.le, hsT.le⟩ x).hasDerivAt (Icc_mem_nhds hs.1 hsT) | |
| 46 | + | |
| 47 | +/-- This is a genuine derivative in the uniform bounded-field norm. -/ | |
| 48 | +theorem hasDerivWithinAt | |
| 49 | + (hpoint : ∀ t ∈ Icc (0 : ℝ) T, ∀ x : X, | |
| 50 | + HasDerivWithinAt (fun s => extendPath T hT A s x) | |
| 51 | + (extendPath T hT A' t x) (Icc (0 : ℝ) T) t) | |
| 52 | + (t : ℝ) (ht : t ∈ Icc (0 : ℝ) T) : | |
| 53 | + HasDerivWithinAt (extendPath T hT A) (extendPath T hT A' t) (Icc (0 : ℝ) T) t := by | |
| 54 | + have hc := extendPath_continuous T hT A' | |
| 55 | + have hd := intervalIntegral.integral_hasDerivAt_right (hc.intervalIntegrable 0 t) | |
| 56 | + hc.aestronglyMeasurable.stronglyMeasurableAtFilter hc.continuousAt | |
| 57 | + apply (hd.const_add (extendPath T hT A 0)).hasDerivWithinAt.congr_of_mem ?_ ht | |
| 58 | + intro s hs | |
| 59 | + rw [integral_eq_sub T hT A A' hpoint s hs] | |
| 60 | + abel | |
| 61 | + | |
| 62 | +end EulerBoundedFieldTimeDerivative | |
+98 −0 Euler/BoundedFlowContinuity.lean added View file
| @@ -0,0 +1,98 @@ | ||
| 1 | +import Euler.BoundedLipschitzFlow | |
| 2 | + | |
| 3 | +/-! The actual bounded Lipschitz flow is jointly continuous in both times | |
| 4 | +and the initial point. Reversing its two time arguments gives its genuine | |
| 5 | +continuous inverse, so each fixed-time map is a homeomorphism. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +open Set Function Metric | |
| 10 | +open scoped Topology NNReal | |
| 11 | + | |
| 12 | +namespace EulerBoundedLipschitzFlow.Data | |
| 13 | + | |
| 14 | +variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] | |
| 15 | + (V : EulerBoundedLipschitzFlow.Data E) | |
| 16 | + | |
| 17 | +theorem flow_distance (s t s₀ t₀ : ℝ) (x x₀ : E) : | |
| 18 | + dist (V.flow s t x) (V.flow s₀ t₀ x₀) ≤ | |
| 19 | + (dist x x₀ + V.speedBound*|s-s₀|) * | |
| 20 | + Real.exp (V.lipschitzConstant*|t-s|) + V.speedBound*|t-t₀| := by | |
| 21 | + have hs : dist x₀ (V.flow s₀ s x₀) ≤ V.speedBound*|s-s₀| := by | |
| 22 | + simpa only [V.flow_initial, Real.dist_eq, abs_sub_comm s₀ s] using | |
| 23 | + (V.flow_lipschitz_time s₀ x₀).dist_le_mul s₀ s | |
| 24 | + have hx : dist x (V.flow s₀ s x₀) ≤ dist x x₀ + V.speedBound*|s-s₀| := | |
| 25 | + (dist_triangle x x₀ (V.flow s₀ s x₀)).trans (add_le_add (le_refl _) hs) | |
| 26 | + have hspace := V.flow_distance_initial s t x (V.flow s₀ s x₀) | |
| 27 | + rw [V.flow_cocycle] at hspace | |
| 28 | + have ht : dist (V.flow s₀ t x₀) (V.flow s₀ t₀ x₀) ≤ V.speedBound*|t-t₀| := by | |
| 29 | + simpa only [Real.dist_eq] using (V.flow_lipschitz_time s₀ x₀).dist_le_mul t t₀ | |
| 30 | + calc | |
| 31 | + _ ≤ dist (V.flow s t x) (V.flow s₀ t x₀) + dist (V.flow s₀ t x₀) (V.flow s₀ t₀ x₀) := | |
| 32 | + dist_triangle _ _ _ | |
| 33 | + _ ≤ dist x (V.flow s₀ s x₀) * Real.exp (V.lipschitzConstant*|t-s|) + | |
| 34 | + V.speedBound*|t-t₀| := add_le_add hspace ht | |
| 35 | + _ ≤ _ := add_le_add | |
| 36 | + (mul_le_mul_of_nonneg_right hx (Real.exp_pos _).le) (le_refl _) | |
| 37 | + | |
| 38 | +theorem flow_joint_continuous : | |
| 39 | + Continuous (fun p : ℝ × (ℝ × E) => V.flow p.1 p.2.1 p.2.2) := by | |
| 40 | + apply continuous_iff_continuousAt.mpr | |
| 41 | + intro p₀ | |
| 42 | + apply tendsto_iff_dist_tendsto_zero.2 | |
| 43 | + have hc : Continuous (fun p : ℝ × (ℝ × E) => | |
| 44 | + (dist p.2.2 p₀.2.2 + V.speedBound*|p.1-p₀.1|) * | |
| 45 | + Real.exp (V.lipschitzConstant*|p.2.1-p.1|) + V.speedBound*|p.2.1-p₀.2.1|) := by | |
| 46 | + fun_prop | |
| 47 | + apply squeeze_zero | |
| 48 | + (f := fun p : ℝ × (ℝ × E) => dist (V.flow p.1 p.2.1 p.2.2) | |
| 49 | + (V.flow p₀.1 p₀.2.1 p₀.2.2)) | |
| 50 | + (g := fun p : ℝ × (ℝ × E) => | |
| 51 | + (dist p.2.2 p₀.2.2 + V.speedBound*|p.1-p₀.1|) * | |
| 52 | + Real.exp (V.lipschitzConstant*|p.2.1-p.1|) + V.speedBound*|p.2.1-p₀.2.1|) | |
| 53 | + (fun _ => dist_nonneg) | |
| 54 | + (fun p => V.flow_distance p.1 p.2.1 p₀.1 p₀.2.1 p.2.2 p₀.2.2) | |
| 55 | + simpa only [dist_self, sub_self, abs_zero, mul_zero, add_zero, zero_mul] using | |
| 56 | + hc.tendsto p₀ | |
| 57 | + | |
| 58 | +def flowHomeomorph (s t : ℝ) : E ≃ₜ E where | |
| 59 | + toFun := V.flow s t | |
| 60 | + invFun := V.flow t s | |
| 61 | + left_inv := V.flow_inverse s t | |
| 62 | + right_inv := V.flow_inverse t s | |
| 63 | + continuous_toFun := V.flow_joint_continuous.comp | |
| 64 | + (continuous_const.prodMk (continuous_const.prodMk continuous_id)) | |
| 65 | + continuous_invFun := V.flow_joint_continuous.comp | |
| 66 | + (continuous_const.prodMk (continuous_const.prodMk continuous_id)) | |
| 67 | + | |
| 68 | +def forward (t : ℝ) (x : E) : E := V.flow 0 t x | |
| 69 | + | |
| 70 | +def backward (t : ℝ) (x : E) : E := V.flow t 0 x | |
| 71 | + | |
| 72 | +@[simp] theorem backward_forward (t : ℝ) (x : E) : | |
| 73 | + V.backward t (V.forward t x) = x := V.flow_inverse 0 t x | |
| 74 | + | |
| 75 | +@[simp] theorem forward_backward (t : ℝ) (x : E) : | |
| 76 | + V.forward t (V.backward t x) = x := V.flow_inverse t 0 x | |
| 77 | + | |
| 78 | +@[simp] theorem forward_zero (x : E) : V.forward 0 x = x := V.flow_initial 0 x | |
| 79 | + | |
| 80 | +@[simp] theorem backward_zero (x : E) : V.backward 0 x = x := V.flow_initial 0 x | |
| 81 | + | |
| 82 | +theorem forward_hasDerivAt (t : ℝ) (x : E) : | |
| 83 | + HasDerivAt (fun s => V.forward s x) (V.velocity t (V.forward t x)) t := | |
| 84 | + V.flow_hasDerivAt 0 t x | |
| 85 | + | |
| 86 | +theorem forward_joint_continuous : Continuous (Function.uncurry V.forward) := | |
| 87 | + V.flow_joint_continuous.comp (continuous_const.prodMk continuous_id) | |
| 88 | + | |
| 89 | +theorem backward_joint_continuous : Continuous (Function.uncurry V.backward) := | |
| 90 | + V.flow_joint_continuous.comp | |
| 91 | + (continuous_fst.prodMk (continuous_const.prodMk continuous_snd)) | |
| 92 | + | |
| 93 | +theorem forward_displacement (t : ℝ) (x : E) : | |
| 94 | + dist (V.forward t x) x ≤ V.speedBound*|t| := by | |
| 95 | + simpa only [forward, V.flow_initial, Real.dist_eq, sub_zero] using | |
| 96 | + (V.flow_lipschitz_time 0 x).dist_le_mul t 0 | |
| 97 | + | |
| 98 | +end EulerBoundedLipschitzFlow.Data | |
+20 −0 Euler/BoundedFlowPeriodicity.lean added View file
| @@ -0,0 +1,20 @@ | ||
| 1 | +import Euler.BoundedFlowContinuity | |
| 2 | + | |
| 3 | +/-! Periodicity of the prescribed velocity gives exact translation | |
| 4 | +equivariance of the constructed global flow, by ODE uniqueness. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerBoundedLipschitzFlow.Data | |
| 9 | + | |
| 10 | +variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] | |
| 11 | + (V : EulerBoundedLipschitzFlow.Data E) | |
| 12 | + | |
| 13 | +theorem flow_add_eq (c : E) (hc : ∀ t x, V.velocity t (x+c)=V.velocity t x) | |
| 14 | + (s t : ℝ) (x : E) : V.flow s t (x+c)=V.flow s t x+c := by | |
| 15 | + have h := V.flow_unique s (x+c) (fun r => V.flow s r x+c) | |
| 16 | + (fun r => by simpa only [hc] using (V.flow_hasDerivAt s r x).add_const c) | |
| 17 | + (by rw [V.flow_initial]) | |
| 18 | + exact (congrFun h t).symm | |
| 19 | + | |
| 20 | +end EulerBoundedLipschitzFlow.Data | |
+67 −0 Euler/BoundedInverseGevrey.lean added View file
| @@ -0,0 +1,67 @@ | ||
| 1 | +import Euler.HilbertCoerciveGevrey | |
| 2 | + | |
| 3 | +/-! | |
| 4 | +# Genuine derivative estimates for bounded inverses on normed spaces | |
| 5 | + | |
| 6 | +The triangular derivative estimate only needs an actual bounded left inverse | |
| 7 | +of the frozen operator. This form applies to continuous path spaces as well | |
| 8 | +as Hilbert spaces, without assigning a Hilbert structure to a uniform norm. | |
| 9 | +-/ | |
| 10 | + | |
| 11 | +noncomputable section | |
| 12 | + | |
| 13 | +namespace EulerBoundedInverseGevrey | |
| 14 | + | |
| 15 | +open ContinuousLinearMap Finset EulerGevrey EulerHilbertCoerciveGevrey | |
| 16 | +open scoped ContDiff | |
| 17 | + | |
| 18 | +variable {P E : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P] | |
| 19 | + [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 20 | + | |
| 21 | +/-- Actual smooth solutions of an invertible operator family satisfy the same | |
| 22 | +factorial estimate, using the genuine frozen inverse bound. -/ | |
| 23 | +theorem solution_gevrey | |
| 24 | + (A : P → E →L[ℝ] E) (u f : P → E) | |
| 25 | + (hA : ContDiff ℝ ∞ A) (hu : ContDiff ℝ ∞ u) (hf : ContDiff ℝ ∞ f) | |
| 26 | + (heq : ∀ x, A x (u x) = f x) | |
| 27 | + (inverse : P → E →L[ℝ] E) (hleft : ∀ x v, inverse x (A x v) = v) | |
| 28 | + (I C D M Rc R : ℝ) (hC : 0 ≤ C) (hD : 0 ≤ D) | |
| 29 | + (hM : 1 ≤ M) (hMC : I*C ≤ M) (hMD : I*D ≤ M) | |
| 30 | + (hRc : 0 ≤ Rc) (hR : 2*M*(Rc+1) ≤ R) | |
| 31 | + (hinverse : ∀ x, ‖inverse x‖ ≤ I) | |
| 32 | + (hcoeff : ∀ j x, ‖iteratedFDeriv ℝ (j+1) A x‖ ≤ | |
| 33 | + C*(Rc^(j+1)*((j+1).factorial : ℝ)^2)) | |
| 34 | + (d : ℕ) (hforce : ∀ n x, ‖iteratedFDeriv ℝ n f x‖ ≤ D*majorant R d n) | |
| 35 | + (n : ℕ) (x : P) : | |
| 36 | + ‖iteratedFDeriv ℝ n u x‖ ≤ majorant R (d+1) n := by | |
| 37 | + have hR0 : 0 ≤ R := by nlinarith | |
| 38 | + apply triangular_inverse_majorant M Rc R hM hRc hR d | |
| 39 | + (fun k => majorant R d k) (fun k => ‖iteratedFDeriv ℝ k u x‖) (fun _ => le_rfl) _ n | |
| 40 | + intro k | |
| 41 | + let S : ℝ := ∑ j ∈ range k, (k.choose (j+1) : ℝ)*Rc^(j+1)* | |
| 42 | + ((j+1).factorial : ℝ)^2*‖iteratedFDeriv ℝ (k-(j+1)) u x‖ | |
| 43 | + have hS : 0 ≤ S := by dsimp [S]; positivity | |
| 44 | + have hsum : (∑ j ∈ range k, | |
| 45 | + (k.choose (j+1) : ℝ)*‖iteratedFDeriv ℝ (j+1) A x‖* | |
| 46 | + ‖iteratedFDeriv ℝ (k-(j+1)) u x‖) ≤ C*S := by | |
| 47 | + dsimp [S] | |
| 48 | + rw [mul_sum] | |
| 49 | + apply sum_le_sum | |
| 50 | + intro j _ | |
| 51 | + have h := mul_le_mul_of_nonneg_right | |
| 52 | + (mul_le_mul_of_nonneg_left (hcoeff j x) (by positivity : (0 : ℝ) ≤ k.choose (j+1))) | |
| 53 | + (norm_nonneg (iteratedFDeriv ℝ (k-(j+1)) u x)) | |
| 54 | + convert h using 1 | |
| 55 | + ring | |
| 56 | + have hrec := derivative_recurrence A u f hA hu hf heq x (inverse x) (hleft x) k | |
| 57 | + have hb : ‖iteratedFDeriv ℝ k u x‖ ≤ I*(D*majorant R d k+C*S) := by | |
| 58 | + apply hrec.trans | |
| 59 | + exact (mul_le_mul_of_nonneg_left (add_le_add (hforce k x) hsum) (norm_nonneg (inverse x))).trans | |
| 60 | + (mul_le_mul_of_nonneg_right (hinverse x) | |
| 61 | + (add_nonneg (mul_nonneg hD (majorant_nonneg R hR0 d k)) (mul_nonneg hC hS))) | |
| 62 | + have ha := mul_le_mul_of_nonneg_right hMC hS | |
| 63 | + have hf' := mul_le_mul_of_nonneg_right hMD (majorant_nonneg R hR0 d k) | |
| 64 | + change ‖iteratedFDeriv ℝ k u x‖ ≤ M*(majorant R d k+S) | |
| 65 | + nlinarith | |
| 66 | + | |
| 67 | +end EulerBoundedInverseGevrey | |
+125 −0 Euler/BoundedLipschitzFlow.lean added View file
| @@ -0,0 +1,125 @@ | ||
| 1 | +import Euler.EulerProof | |
| 2 | + | |
| 3 | +/-! | |
| 4 | +# An actual global flow for a bounded, uniformly Lipschitz velocity | |
| 5 | + | |
| 6 | +Existence is the proved global Picard theorem in `EulerPacketExistence`. | |
| 7 | +Uniqueness gives the two-time composition and inverse identities. The | |
| 8 | +bounded velocity and Grönwall estimate will give joint continuity in both | |
| 9 | +times and the initial point. | |
| 10 | +-/ | |
| 11 | + | |
| 12 | +noncomputable section | |
| 13 | + | |
| 14 | +open Set Function Metric | |
| 15 | +open scoped Topology NNReal | |
| 16 | + | |
| 17 | +namespace EulerBoundedLipschitzFlow | |
| 18 | + | |
| 19 | +variable (E : Type*) [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 20 | + | |
| 21 | +structure Data where | |
| 22 | + velocity : ℝ → E → E | |
| 23 | + continuous : Continuous (Function.uncurry velocity) | |
| 24 | + lipschitzConstant : ℝ≥0 | |
| 25 | + lipschitz : ∀ t, LipschitzWith lipschitzConstant (velocity t) | |
| 26 | + speedBound : ℝ≥0 | |
| 27 | + speed : ∀ t x, ‖velocity t x‖ ≤ speedBound | |
| 28 | + | |
| 29 | +namespace Data | |
| 30 | + | |
| 31 | +variable {E} [CompleteSpace E] (V : Data E) | |
| 32 | + | |
| 33 | +theorem curve_exists (s : ℝ) (x : E) : | |
| 34 | + ∃ α : ℝ → E, α s = x ∧ ∀ t, HasDerivAt α (V.velocity t (α t)) t := by | |
| 35 | + have hc : Continuous (Function.uncurry (fun (t : ℝ) (y : E) => V.velocity (t+s) y)) := | |
| 36 | + V.continuous.comp ((continuous_fst.add continuous_const).prodMk continuous_snd) | |
| 37 | + obtain ⟨α, hα0, hα⟩ := EulerPacketExistence.exists_global_solution hc | |
| 38 | + (fun t => V.lipschitz (t+s)) x | |
| 39 | + refine ⟨fun t => α (t-s), by simpa using hα0, ?_⟩ | |
| 40 | + intro t | |
| 41 | + have h := (hα (t-s)).scomp t ((hasDerivAt_id t).sub_const s) | |
| 42 | + simpa only [Function.comp_def, id_eq, sub_add_cancel, one_smul] using h | |
| 43 | + | |
| 44 | +def flow (s t : ℝ) (x : E) : E := (V.curve_exists s x).choose t | |
| 45 | + | |
| 46 | +@[simp] theorem flow_initial (s : ℝ) (x : E) : V.flow s s x = x := | |
| 47 | + (V.curve_exists s x).choose_spec.1 | |
| 48 | + | |
| 49 | +theorem flow_hasDerivAt (s t : ℝ) (x : E) : | |
| 50 | + HasDerivAt (fun r => V.flow s r x) (V.velocity t (V.flow s t x)) t := | |
| 51 | + (V.curve_exists s x).choose_spec.2 t | |
| 52 | + | |
| 53 | +theorem flow_continuous_time (s : ℝ) (x : E) : Continuous (fun t => V.flow s t x) := | |
| 54 | + continuous_iff_continuousAt.mpr (fun t => (V.flow_hasDerivAt s t x).continuousAt) | |
| 55 | + | |
| 56 | +theorem flow_unique (s : ℝ) (x : E) (α : ℝ → E) | |
| 57 | + (hα : ∀ t, HasDerivAt α (V.velocity t (α t)) t) (hαs : α s = x) : | |
| 58 | + α = fun t => V.flow s t x := by | |
| 59 | + apply ODE_solution_unique_univ (v := V.velocity) (s := fun _ => Set.univ) | |
| 60 | + (t₀ := s) (fun t => (V.lipschitz t).lipschitzOnWith) | |
| 61 | + (fun t => ⟨hα t, Set.mem_univ _⟩) | |
| 62 | + (fun t => ⟨V.flow_hasDerivAt s t x, Set.mem_univ _⟩) | |
| 63 | + simpa only [V.flow_initial] using hαs | |
| 64 | + | |
| 65 | +theorem flow_cocycle (r s t : ℝ) (x : E) : | |
| 66 | + V.flow s t (V.flow r s x) = V.flow r t x := by | |
| 67 | + have h := V.flow_unique s (V.flow r s x) (fun t => V.flow r t x) | |
| 68 | + (fun t => V.flow_hasDerivAt r t x) rfl | |
| 69 | + exact (congrFun h t).symm | |
| 70 | + | |
| 71 | +@[simp] theorem flow_inverse (s t : ℝ) (x : E) : | |
| 72 | + V.flow t s (V.flow s t x) = x := by | |
| 73 | + rw [V.flow_cocycle, V.flow_initial] | |
| 74 | + | |
| 75 | +theorem flow_lipschitz_time (s : ℝ) (x : E) : | |
| 76 | + LipschitzWith V.speedBound (fun t => V.flow s t x) := by | |
| 77 | + apply lipschitzWith_of_nnnorm_deriv_le | |
| 78 | + (fun t => (V.flow_hasDerivAt s t x).differentiableAt) | |
| 79 | + intro t | |
| 80 | + rw [(V.flow_hasDerivAt s t x).deriv] | |
| 81 | + exact_mod_cast V.speed t (V.flow s t x) | |
| 82 | + | |
| 83 | +omit [CompleteSpace E] in | |
| 84 | +/-- A two-sided Grönwall estimate for actual global trajectories. -/ | |
| 85 | +theorem trajectory_distance (α β : ℝ → E) | |
| 86 | + (hα : ∀ t, HasDerivAt α (V.velocity t (α t)) t) | |
| 87 | + (hβ : ∀ t, HasDerivAt β (V.velocity t (β t)) t) (a b : ℝ) : | |
| 88 | + dist (α b) (β b) ≤ dist (α a) (β a) * Real.exp (V.lipschitzConstant * |b-a|) := by | |
| 89 | + have hαc : Continuous α := continuous_iff_continuousAt.mpr (fun t => (hα t).continuousAt) | |
| 90 | + have hβc : Continuous β := continuous_iff_continuousAt.mpr (fun t => (hβ t).continuousAt) | |
| 91 | + by_cases hab : a ≤ b | |
| 92 | + · have h := dist_le_of_trajectories_ODE V.lipschitz hαc.continuousOn | |
| 93 | + (fun t _ => (hα t).hasDerivWithinAt) hβc.continuousOn | |
| 94 | + (fun t _ => (hβ t).hasDerivWithinAt) (le_refl (dist (α a) (β a))) b ⟨hab, le_rfl⟩ | |
| 95 | + simpa only [abs_of_nonneg (sub_nonneg.mpr hab)] using h | |
| 96 | + · have hba : b ≤ a := le_of_not_ge hab | |
| 97 | + have hlip (t : ℝ) : LipschitzWith V.lipschitzConstant | |
| 98 | + (fun x => -V.velocity (-t) x) := (V.lipschitz (-t)).neg | |
| 99 | + have hαr (t : ℝ) : | |
| 100 | + HasDerivAt (fun r => α (-r)) (-V.velocity (-t) (α (-t))) t := by | |
| 101 | + simpa only [Function.comp_def, neg_smul, one_smul] using | |
| 102 | + (hα (-t)).scomp t (hasDerivAt_neg t) | |
| 103 | + have hβr (t : ℝ) : | |
| 104 | + HasDerivAt (fun r => β (-r)) (-V.velocity (-t) (β (-t))) t := by | |
| 105 | + simpa only [Function.comp_def, neg_smul, one_smul] using | |
| 106 | + (hβ (-t)).scomp t (hasDerivAt_neg t) | |
| 107 | + have h := dist_le_of_trajectories_ODE hlip | |
| 108 | + (hαc.comp continuous_neg).continuousOn (fun t _ => (hαr t).hasDerivWithinAt) | |
| 109 | + (hβc.comp continuous_neg).continuousOn (fun t _ => (hβr t).hasDerivWithinAt) | |
| 110 | + (le_refl (dist (α (-(-a))) (β (-(-a))))) (-b) ⟨by linarith, le_rfl⟩ | |
| 111 | + have he : -b - (-a) = |b-a| := by | |
| 112 | + rw [abs_of_nonpos (sub_nonpos.mpr hba)] | |
| 113 | + ring | |
| 114 | + simpa only [Function.comp_apply, neg_neg, he] using h | |
| 115 | + | |
| 116 | +theorem flow_distance_initial (s t : ℝ) (x y : E) : | |
| 117 | + dist (V.flow s t x) (V.flow s t y) ≤ | |
| 118 | + dist x y * Real.exp (V.lipschitzConstant * |t-s|) := by | |
| 119 | + simpa only [V.flow_initial] using V.trajectory_distance | |
| 120 | + (fun t => V.flow s t x) (fun t => V.flow s t y) | |
| 121 | + (fun t => V.flow_hasDerivAt s t x) (fun t => V.flow_hasDerivAt s t y) s t | |
| 122 | + | |
| 123 | +end Data | |
| 124 | + | |
| 125 | +end EulerBoundedLipschitzFlow | |
+83 −0 Euler/BoundedMildContinuation.lean added View file
| @@ -0,0 +1,83 @@ | ||
| 1 | +import Euler.QuadraticMildPasting | |
| 2 | + | |
| 3 | +/-! Genuine finite-time continuation of actual viscous mild solutions from an a priori Sobolev bound. -/ | |
| 4 | + | |
| 5 | +noncomputable section | |
| 6 | + | |
| 7 | +namespace EulerBoundedMildContinuation | |
| 8 | + | |
| 9 | +open MeasureTheory Set EulerCylinderSobolevSpace EulerSobolevHeat EulerVolterraConvolution | |
| 10 | + EulerUniformHeatLocal EulerQuadraticSource EulerTimePathGluing EulerQuadraticMildPasting | |
| 11 | +open scoped Topology | |
| 12 | + | |
| 13 | +/-- The next actual time window ends at the smaller of one full step and the terminal time. -/ | |
| 14 | +theorem advance_time_eq (a δ S : ℝ) : a+min δ (S-a) = min (a+δ) S := by | |
| 15 | + by_cases h : δ ≤ S-a | |
| 16 | + · rw [min_eq_left h, min_eq_left (by linarith : a+δ ≤ S)] | |
| 17 | + · rw [min_eq_right (le_of_not_ge h), min_eq_right (by linarith : S ≤ a+δ)] | |
| 18 | + ring | |
| 19 | + | |
| 20 | +/-- Repeated genuine local windows reach each successive point of a fixed finite time grid. -/ | |
| 21 | +theorem advance_grid (S δ a : ℝ) (hδ : 0 ≤ δ) (n : ℕ) | |
| 22 | + (hgrid : min ((n : ℝ)*δ) S ≤ a) : | |
| 23 | + min (((n+1 : ℕ) : ℝ)*δ) S ≤ a+min δ (S-a) := by | |
| 24 | + rw [advance_time_eq] | |
| 25 | + apply le_min | |
| 26 | + · by_cases hn : (n : ℝ)*δ ≤ S | |
| 27 | + · have hna : (n : ℝ)*δ ≤ a := by simpa only [min_eq_left hn] using hgrid | |
| 28 | + apply (min_le_left _ _).trans | |
| 29 | + push_cast | |
| 30 | + nlinarith only [hna] | |
| 31 | + · have hSa : S ≤ a := by simpa only [min_eq_right (le_of_not_ge hn)] using hgrid | |
| 32 | + exact (min_le_right _ _).trans (by linarith) | |
| 33 | + · exact min_le_right _ _ | |
| 34 | + | |
| 35 | +variable (period : ℝ) [Fact (0 < period)] | |
| 36 | + | |
| 37 | +/-- An actual uniform Sobolev bound on partial solutions yields a genuine solution on the whole prescribed interval. | |
| 38 | +The continuation is constructed by finitely many actual local heat solves and exact nonlinear pasting. -/ | |
| 39 | +theorem exists_global_mild_of_bound (q : ℕ) (ν : ℝ) (hν : 0 < ν) (S : ℝ) (hS : 0 < S) | |
| 40 | + (R : ℝ) (hR : 0 ≤ R) (u₀ : SobolevSpace period (q+1)) (hu₀ : ‖u₀‖ ≤ R) | |
| 41 | + (C : Coefficients (Icc (0 : ℝ) S) (SobolevSpace period (q+1)) (SobolevSpace period q)) | |
| 42 | + (hbound : ∀ (T : ℝ) (hT : 0 ≤ T) (hTS : T ≤ S) | |
| 43 | + (u : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))), | |
| 44 | + (∀ t, u t = quadraticDuhamel period ν hν hT hTS C u₀ u t) → ‖u‖ ≤ R) : | |
| 45 | + ∃ u : C(Icc (0 : ℝ) S, SobolevSpace period (q+1)), | |
| 46 | + ‖u‖ ≤ R ∧ u ⟨0,le_rfl,hS.le⟩ = u₀ ∧ | |
| 47 | + ∀ t, u t = quadraticDuhamel period ν hν hS.le le_rfl C u₀ u t := by | |
| 48 | + obtain ⟨δ,hδ,_,hlocal⟩ := exists_uniform_restart_time period q ν hν S hS R hR C | |
| 49 | + have hind : ∀ n : ℕ, ∃ (a : ℝ) (ha : 0 ≤ a) (haS : a ≤ S), | |
| 50 | + min ((n : ℝ)*δ) S ≤ a ∧ | |
| 51 | + ∃ u : C(Icc (0 : ℝ) a, SobolevSpace period (q+1)), | |
| 52 | + ∀ t, u t = quadraticDuhamel period ν hν ha haS C u₀ u t := by | |
| 53 | + intro n | |
| 54 | + induction n with | |
| 55 | + | zero => | |
| 56 | + obtain ⟨u,_,_,hsol⟩ := hlocal 0 0 le_rfl le_rfl (by linarith) hδ.le u₀ hu₀ | |
| 57 | + refine ⟨0,le_rfl,hS.le,?_,u,?_⟩ | |
| 58 | + · simpa only [Nat.cast_zero,zero_mul] using min_le_left (0 : ℝ) S | |
| 59 | + · apply (quadratic_mild_window_iff period ν hν le_rfl hS.le C u₀ u).mpr | |
| 60 | + exact hsol | |
| 61 | + | succ n ih => | |
| 62 | + obtain ⟨a,ha,haS,hgrid,u,hsolu⟩ := ih | |
| 63 | + let b := min δ (S-a) | |
| 64 | + have hb : 0 ≤ b := le_min hδ.le (sub_nonneg.mpr haS) | |
| 65 | + have hbδ : b ≤ δ := min_le_left _ _ | |
| 66 | + have habS : a+b ≤ S := by have h := min_le_right δ (S-a); dsimp [b]; linarith | |
| 67 | + have hu : ‖u ⟨a,ha,le_rfl⟩‖ ≤ R := | |
| 68 | + (u.norm_coe_le_norm _).trans (hbound a ha haS u hsolu) | |
| 69 | + obtain ⟨v,_,hv0,hsolv⟩ := hlocal a b ha hb habS hbδ (u ⟨a,ha,le_rfl⟩) hu | |
| 70 | + let w := gluePath a b ha hb u v hv0.symm | |
| 71 | + have hw := glue_quadratic_mild period ν hν C a b ha hb haS habS u v hv0.symm u₀ hsolu hsolv | |
| 72 | + exact ⟨a+b,add_nonneg ha hb,habS,advance_grid S δ a hδ.le n hgrid,w,hw⟩ | |
| 73 | + obtain ⟨n,hn⟩ := exists_nat_ge (S/δ) | |
| 74 | + have hN : S ≤ (n : ℝ)*δ := (div_le_iff₀ hδ).mp hn | |
| 75 | + obtain ⟨a,ha,haS,hgrid,u,hsol⟩ := hind n | |
| 76 | + have hSa : S ≤ a := by simpa only [min_eq_right hN] using hgrid | |
| 77 | + have he : a = S := le_antisymm haS hSa | |
| 78 | + subst a | |
| 79 | + refine ⟨u,hbound S ha haS u hsol,?_,hsol⟩ | |
| 80 | + have hz := hsol ⟨0,le_rfl,hS.le⟩ | |
| 81 | + simpa only [quadraticDuhamel,mul_zero,Real.toNNReal_zero,heatOperator_zero,intervalIntegral.integral_same,add_zero] using hz | |
| 82 | + | |
| 83 | +end EulerBoundedMildContinuation | |
+58 −0 Euler/BoundedPathFamily.lean added View file
| @@ -0,0 +1,58 @@ | ||
| 1 | +import Euler.ContinuousTimeIntegral | |
| 2 | + | |
| 3 | +/-! Uniform bounds on a genuine time derivative turn a continuous family | |
| 4 | +of paths into a continuous path of bounded fields. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +open scoped BoundedContinuousFunction | |
| 9 | + | |
| 10 | +namespace EulerBoundedPathFamily | |
| 11 | + | |
| 12 | +open Set EulerVolterraConvolution | |
| 13 | + | |
| 14 | +variable {X V : Type*} [TopologicalSpace X] | |
| 15 | + [NormedAddCommGroup V] [NormedSpace ℝ V] | |
| 16 | + (T : ℝ) (hT : 0 ≤ T) (f q : X → C(Icc (0 : ℝ) T,V)) | |
| 17 | + (hf : Continuous f) (C D : ℝ) | |
| 18 | + (hC : ∀ t x, ‖f x t‖ ≤ C) | |
| 19 | + (hD : 0 ≤ D) (hq : ∀ t x, ‖q x t‖ ≤ D) | |
| 20 | + (hd : ∀ x (t : Icc (0 : ℝ) T), | |
| 21 | + HasDerivWithinAt (extendPath T hT (f x)) (q x t) (Icc (0 : ℝ) T) t) | |
| 22 | + | |
| 23 | +def boundedSlice (t : Icc (0 : ℝ) T) : X →ᵇ V := | |
| 24 | + BoundedContinuousFunction.ofNormedAddCommGroup (fun x => f x t) | |
| 25 | + ((ContinuousMap.evalCLM ℝ t).continuous.comp hf) C (hC t) | |
| 26 | + | |
| 27 | +include hq hd in | |
| 28 | +theorem boundedSlice_lipschitz : | |
| 29 | + LipschitzWith ⟨D,hD⟩ (boundedSlice T f hf C hC) := by | |
| 30 | + apply LipschitzWith.of_dist_le_mul | |
| 31 | + intro s t | |
| 32 | + rw [dist_eq_norm] | |
| 33 | + apply (BoundedContinuousFunction.norm_le (mul_nonneg hD dist_nonneg)).2 | |
| 34 | + intro x | |
| 35 | + change ‖f x s - f x t‖ ≤ D * dist s t | |
| 36 | + have h := Convex.norm_image_sub_le_of_norm_hasDerivWithin_le | |
| 37 | + (f := extendPath T hT (f x)) (f' := extendPath T hT (q x)) (C := D) | |
| 38 | + (fun r hr => by simpa only [extendPath, projIcc_of_mem hT hr] using hd x ⟨r,hr⟩) | |
| 39 | + (fun r hr => by simpa only [extendPath, projIcc_of_mem hT hr] using hq ⟨r,hr⟩ x) | |
| 40 | + (convex_Icc (0 : ℝ) T) t.property s.property | |
| 41 | + simpa only [extendPath, | |
| 42 | + projIcc_of_mem hT t.property, projIcc_of_mem hT s.property, | |
| 43 | + dist_eq_norm, Subtype.dist_eq] using h | |
| 44 | + | |
| 45 | +def boundedPath : C(Icc (0 : ℝ) T,X →ᵇ V) where | |
| 46 | + toFun := boundedSlice T f hf C hC | |
| 47 | + continuous_toFun := (boundedSlice_lipschitz T hT f q hf C D hC hD hq hd).continuous | |
| 48 | + | |
| 49 | +@[simp] theorem boundedPath_apply (t : Icc (0 : ℝ) T) (x : X) : | |
| 50 | + boundedPath T hT f q hf C D hC hD hq hd t x = f x t := rfl | |
| 51 | + | |
| 52 | +theorem boundedPath_norm (hCnonneg : 0 ≤ C) : | |
| 53 | + ‖boundedPath T hT f q hf C D hC hD hq hd‖ ≤ C := by | |
| 54 | + apply (ContinuousMap.norm_le _ hCnonneg).2 | |
| 55 | + intro t | |
| 56 | + exact (BoundedContinuousFunction.norm_le hCnonneg).2 (hC t) | |
| 57 | + | |
| 58 | +end EulerBoundedPathFamily | |
+107 −0 Euler/BoundedTensorCoordinates.lean added View file
| @@ -0,0 +1,107 @@ | ||
| 1 | +import Euler.ContinuousBoundedTensor | |
| 2 | +import Euler.SmoothTimeField | |
| 3 | + | |
| 4 | +/-! Continuous bounded coordinate fields reconstruct the actual tensor | |
| 5 | +field. This is a qualitative finite-dimensional construction; subsequent | |
| 6 | +norm estimates can use the actual tensor equality without a coordinate | |
| 7 | +reassembly constant. -/ | |
| 8 | + | |
| 9 | +noncomputable section | |
| 10 | + | |
| 11 | + | |
| 12 | +open scoped ContDiff BoundedContinuousFunction | |
| 13 | + | |
| 14 | +namespace EulerBoundedTensorCoordinates | |
| 15 | + | |
| 16 | +variable {K X E V ι : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 17 | + [TopologicalSpace X] [Fintype ι] | |
| 18 | + [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] | |
| 19 | + [NormedAddCommGroup V] [NormedSpace ℝ V] [FiniteDimensional ℝ V] | |
| 20 | + | |
| 21 | +private local instance (n : ℕ) : NormedAddCommGroup (E [×n]→L[ℝ] V) := inferInstance | |
| 22 | +private local instance (n : ℕ) : NormedSpace ℝ (E [×n]→L[ℝ] V) := inferInstance | |
| 23 | +private local instance (n : ℕ) : NormedAddCommGroup (X →ᵇ (E [×n]→L[ℝ] V)) := inferInstance | |
| 24 | +private local instance (n : ℕ) : NormedSpace ℝ (X →ᵇ (E [×n]→L[ℝ] V)) := inferInstance | |
| 25 | + | |
| 26 | +def coordinates (b : Module.Basis ι ℝ E) (n : ℕ) : | |
| 27 | + (E [×n]→L[ℝ] V) →L[ℝ] ((Fin n → ι) → V) := | |
| 28 | + ContinuousLinearMap.pi (fun w => | |
| 29 | + (ContinuousLinearMap.id ℝ (E [×n]→L[ℝ] V)).flipMultilinear (fun i => b (w i))) | |
| 30 | + | |
| 31 | +omit [FiniteDimensional ℝ E] [FiniteDimensional ℝ V] [Fintype ι] in | |
| 32 | +theorem coordinates_injective (b : Module.Basis ι ℝ E) (n : ℕ) : | |
| 33 | + Function.Injective (coordinates (V := V) b n) := by | |
| 34 | + intro A B h | |
| 35 | + apply ContinuousMultilinearMap.toMultilinearMap_injective | |
| 36 | + apply Module.Basis.ext_multilinear (fun _ : Fin n => b) | |
| 37 | + intro w | |
| 38 | + exact congrFun h w | |
| 39 | + | |
| 40 | +def reassembly (b : Module.Basis ι ℝ E) (n : ℕ) : | |
| 41 | + ((Fin n → ι) → V) →L[ℝ] (E [×n]→L[ℝ] V) := | |
| 42 | + ((coordinates (V := V) b n).toLinearMap.leftInverse).toContinuousLinearMap | |
| 43 | + | |
| 44 | +omit [FiniteDimensional ℝ E] in | |
| 45 | +theorem reassembly_coordinates (b : Module.Basis ι ℝ E) (n : ℕ) (A : E [×n]→L[ℝ] V) : | |
| 46 | + reassembly b n (coordinates b n A) = A := | |
| 47 | + LinearMap.leftInverse_apply_of_inj | |
| 48 | + (LinearMap.ker_eq_bot.mpr (coordinates_injective b n)) A | |
| 49 | + | |
| 50 | +def tupleBounded {j : Type*} [Fintype j] : | |
| 51 | + (j → (X →ᵇ V)) →L[ℝ] (X →ᵇ (j → V)) := by | |
| 52 | + classical | |
| 53 | + exact ∑ i : j, | |
| 54 | + ((ContinuousLinearMap.single ℝ (fun _ : j => V) i).compLeftContinuousBounded X).comp | |
| 55 | + (ContinuousLinearMap.proj i) | |
| 56 | + | |
| 57 | +omit [FiniteDimensional ℝ V] in | |
| 58 | +theorem tupleBounded_apply {j : Type*} [Fintype j] | |
| 59 | + (u : j → (X →ᵇ V)) (x : X) (i : j) : | |
| 60 | + tupleBounded u x i = u i x := by | |
| 61 | + classical | |
| 62 | + simp [tupleBounded] | |
| 63 | + | |
| 64 | +def coordinatePath (b : Module.Basis ι ℝ E) (n : ℕ) | |
| 65 | + (u : (Fin n → ι) → C(K, X →ᵇ V)) : C(K, X →ᵇ (E [×n]→L[ℝ] V)) where | |
| 66 | + toFun t := (reassembly (V := V) b n).compLeftContinuousBounded X | |
| 67 | + (tupleBounded (fun w => u w t)) | |
| 68 | + continuous_toFun := | |
| 69 | + ((reassembly (V := V) b n).compLeftContinuousBounded X).continuous.comp | |
| 70 | + ((tupleBounded (X := X) (V := V)).continuous.comp | |
| 71 | + (continuous_pi (fun w => (u w).continuous))) | |
| 72 | + | |
| 73 | +omit [CompactSpace K] [FiniteDimensional ℝ E] in | |
| 74 | +theorem coordinatePath_eq (b : Module.Basis ι ℝ E) (n : ℕ) | |
| 75 | + (u : (Fin n → ι) → C(K, X →ᵇ V)) (t : K) (x : X) | |
| 76 | + (A : E [×n]→L[ℝ] V) (hu : ∀ w, u w t x = A (fun i => b (w i))) : | |
| 77 | + coordinatePath b n u t x = A := by | |
| 78 | + change reassembly b n (tupleBounded _ x) = A | |
| 79 | + have he : tupleBounded (fun w => u w t) x = coordinates b n A := by | |
| 80 | + funext w | |
| 81 | + rw [tupleBounded_apply] | |
| 82 | + exact hu w | |
| 83 | + rw [he, reassembly_coordinates] | |
| 84 | + | |
| 85 | +end EulerBoundedTensorCoordinates | |
| 86 | + | |
| 87 | +universe u | |
| 88 | + | |
| 89 | +namespace SmoothTimeField | |
| 90 | + | |
| 91 | +open EulerBoundedTensorCoordinates | |
| 92 | + | |
| 93 | +variable {K E V ι : Type u} [TopologicalSpace K] [CompactSpace K] [Fintype ι] | |
| 94 | + [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] | |
| 95 | + [NormedAddCommGroup V] [NormedSpace ℝ V] [FiniteDimensional ℝ V] | |
| 96 | + | |
| 97 | +def ofCoordinateJets (b : Module.Basis ι ℝ E) (f : C(K, E →ᵇ V)) | |
| 98 | + (hf : ∀ t, ContDiff ℝ ∞ (f t : E → V)) | |
| 99 | + (u : (n : ℕ) → (Fin n → ι) → C(K, E →ᵇ V)) | |
| 100 | + (hu : ∀ n w t x, u n w t x = iteratedFDeriv ℝ n (f t : E → V) x (fun i => b (w i))) : | |
| 101 | + SmoothTimeField K E V where | |
| 102 | + field := f | |
| 103 | + smooth := hf | |
| 104 | + jet n := coordinatePath b n (u n) | |
| 105 | + jet_eq n t x := coordinatePath_eq b n (u n) t x _ (fun w => hu n w t x) | |
| 106 | + | |
| 107 | +end SmoothTimeField | |
+68 −0 Euler/CanonicalGraphPotential.lean added View file
| @@ -0,0 +1,68 @@ | ||
| 1 | +import Euler.GraphPressurePotential | |
| 2 | +import Mathlib.MeasureTheory.Integral.Bochner.Set | |
| 3 | + | |
| 4 | +/-! Radial reconstruction of a canonically normalized scalar potential. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerCanonicalGraphPotential | |
| 9 | + | |
| 10 | +open MeasureTheory Set InnerProductSpace EulerLiftedGradientSpace | |
| 11 | +open scoped ContDiff | |
| 12 | + | |
| 13 | +/-- The scalar radial integral of a spatial vector field, based at the origin. -/ | |
| 14 | +def radialPotential (V : Vector3 → Vector3) (x : Vector3) : ℝ := | |
| 15 | + ∫ s in (0 : ℝ)..1, ⟪V (s • x), x⟫_ℝ | |
| 16 | + | |
| 17 | +/-- The radial integral is normalized to vanish at the origin. -/ | |
| 18 | +theorem radialPotential_zero (V : Vector3 → Vector3) : radialPotential V 0 = 0 := by | |
| 19 | + simp [radialPotential] | |
| 20 | + | |
| 21 | +/-- The fundamental theorem of calculus identifies the radial integral with a normalized genuine potential. -/ | |
| 22 | +theorem radialPotential_eq_sub (V : Vector3 → Vector3) (hV : Continuous V) | |
| 23 | + (q : Vector3 → ℝ) (hq : ContDiff ℝ ∞ q) (hgrad : ∀ x, gradient q x = V x) | |
| 24 | + (x : Vector3) : radialPotential V x = q x - q 0 := by | |
| 25 | + have hd (s : ℝ) : HasDerivAt (fun r : ℝ => q (r • x)) ⟪V (s • x), x⟫_ℝ s := by | |
| 26 | + have h := ((hq.differentiable (by simp)) (s • x)).hasFDerivAt.comp_hasDerivAt s | |
| 27 | + ((hasDerivAt_id s).smul_const x) | |
| 28 | + simpa only [Function.comp_def, id_eq, one_smul, ← inner_gradient_left, hgrad] using h | |
| 29 | + have hi : IntervalIntegrable (fun s : ℝ => ⟪V (s • x), x⟫_ℝ) volume 0 1 := | |
| 30 | + ((hV.comp (continuous_id.smul continuous_const)).inner continuous_const).intervalIntegrable 0 1 | |
| 31 | + simpa only [radialPotential, one_smul, zero_smul] using | |
| 32 | + intervalIntegral.integral_eq_sub_of_hasDerivAt (fun s _ => hd s) hi | |
| 33 | + | |
| 34 | +/-- A radial reconstruction of a genuine smooth gradient is itself spatially smooth. -/ | |
| 35 | +theorem radialPotential_smooth (V : Vector3 → Vector3) (hV : Continuous V) | |
| 36 | + (q : Vector3 → ℝ) (hq : ContDiff ℝ ∞ q) (hgrad : ∀ x, gradient q x = V x) : | |
| 37 | + ContDiff ℝ ∞ (radialPotential V) := by | |
| 38 | + have he : radialPotential V = fun x => q x - q 0 := | |
| 39 | + funext (radialPotential_eq_sub V hV q hq hgrad) | |
| 40 | + rw [he] | |
| 41 | + exact hq.sub contDiff_const | |
| 42 | + | |
| 43 | +/-- Radial normalization preserves the actual gradient. -/ | |
| 44 | +theorem radialPotential_gradient (V : Vector3 → Vector3) (hV : Continuous V) | |
| 45 | + (q : Vector3 → ℝ) (hq : ContDiff ℝ ∞ q) (hgrad : ∀ x, gradient q x = V x) | |
| 46 | + (x : Vector3) : gradient (radialPotential V) x = V x := by | |
| 47 | + have he : radialPotential V = fun x => q x - q 0 := | |
| 48 | + funext (radialPotential_eq_sub V hV q hq hgrad) | |
| 49 | + rw [he, gradient, fderiv_sub_const] | |
| 50 | + exact hgrad x | |
| 51 | + | |
| 52 | +/-- A jointly continuous vector field has a jointly continuous radial scalar potential. -/ | |
| 53 | +theorem radialPotential_joint_continuous {T : Type*} [TopologicalSpace T] | |
| 54 | + [FirstCountableTopology T] [LocallyCompactSpace T] | |
| 55 | + (V : T → Vector3 → Vector3) (hV : Continuous V.uncurry) : | |
| 56 | + Continuous (fun p : T × Vector3 => radialPotential (V p.1) p.2) := by | |
| 57 | + have hc : Continuous (fun p : (T × Vector3) × ℝ => | |
| 58 | + ⟪V p.1.1 (p.2 • p.1.2), p.1.2⟫_ℝ) := by | |
| 59 | + exact (hV.comp ((continuous_fst.fst).prodMk | |
| 60 | + (continuous_snd.smul continuous_fst.snd))).inner continuous_fst.snd | |
| 61 | + have hi := continuous_parametric_integral_of_continuous | |
| 62 | + (μ := volume) | |
| 63 | + (f := fun p : T × Vector3 => fun s : ℝ => ⟪V p.1 (s • p.2), p.2⟫_ℝ) | |
| 64 | + hc (isCompact_Icc : IsCompact (Icc (0 : ℝ) 1)) | |
| 65 | + simpa only [radialPotential, intervalIntegral.integral_of_le (zero_le_one : (0 : ℝ) ≤ 1), | |
| 66 | + integral_Icc_eq_integral_Ioc] using hi | |
| 67 | + | |
| 68 | +end EulerCanonicalGraphPotential | |
+88 −0 Euler/CanonicalPacketHorizons.lean added View file
| @@ -0,0 +1,88 @@ | ||
| 1 | +import Euler.PacketFiniteLifespan | |
| 2 | + | |
| 3 | +/-! | |
| 4 | +# Every packet horizon covers the canonical lifespan | |
| 5 | + | |
| 6 | +The horizons of the actual recursive family decrease. If its limiting | |
| 7 | +datum had an evolution through any one of those horizons, comparison | |
| 8 | +with the tail of the packet family would bound the divergent activation | |
| 9 | +gradients. This applies the proved varying-horizon H³ stability theorem. | |
| 10 | +-/ | |
| 11 | + | |
| 12 | +noncomputable section | |
| 13 | + | |
| 14 | +namespace EulerPacketInduction | |
| 15 | + | |
| 16 | +open Set Filter EulerSmoothLimit EulerLpTranslation EulerLpTranslation.SmoothL2Field | |
| 17 | + EulerPhysicalL2Scaling EulerOrdinarySobolev EulerSmoothL2Series | |
| 18 | + EulerPacketSourceScaleSequence | |
| 19 | +open scoped Topology | |
| 20 | + | |
| 21 | +theorem packets_horizon_succ (n : ℕ) : | |
| 22 | + (packets (n+1)).parent.T = (packets n).nextHorizon := by | |
| 23 | + rw [(packets (n+1)).horizon_eq] | |
| 24 | + have ht : (packets (n+1)).time = (packets n).nextTime := | |
| 25 | + stages_time constructionScales le_rfl le_rfl n | |
| 26 | + rw [ht] | |
| 27 | + rfl | |
| 28 | + | |
| 29 | +theorem packets_horizon_antitone : Antitone (fun n => (packets n).parent.T) := by | |
| 30 | + apply antitone_nat_of_succ_le | |
| 31 | + intro n | |
| 32 | + rw [packets_horizon_succ] | |
| 33 | + exact (packets n).nextHorizon_le | |
| 34 | + | |
| 35 | +theorem initialDatum_no_packet_horizon (N : ℕ) : | |
| 36 | + ¬ HasEulerEvolution initialDatum (packets N).parent.T := by | |
| 37 | + rintro ⟨hT,U,hU₀⟩ | |
| 38 | + let durations : ℕ → ℝ := fun n => (packets (n+N)).parent.T | |
| 39 | + let hD : ∀ n, 0 ≤ durations n := fun n => (packets (n+N)).parent.T_pos.le | |
| 40 | + let hDT : ∀ n, durations n ≤ (packets N).parent.T := | |
| 41 | + fun n => packets_horizon_antitone (by omega) | |
| 42 | + let V : ∀ n, Evolution (durations n) (hD n) := | |
| 43 | + fun n => (packets (n+N)).state.regularity.ordinaryEvolution | |
| 44 | + let times : ∀ n, Icc (0 : ℝ) (durations n) := | |
| 45 | + fun n => ⟨(packets (n+N)).time,(packets (n+N)).time_nonneg, | |
| 46 | + (packets (n+N)).time_lt.le⟩ | |
| 47 | + have hfield (n : ℕ) : | |
| 48 | + (((U.restrictTime (durations n) (hD n) (hDT n)).difference (V n)) | |
| 49 | + ⟨0,le_rfl,hD n⟩).field = | |
| 50 | + (fun x => (packets (n+N)).state.evolution.velocity (0,x))-initialDatum.field := by | |
| 51 | + funext x | |
| 52 | + rw [Evolution.difference,fieldSub_field] | |
| 53 | + change ((packets (n+N)).state.regularity.velocity | |
| 54 | + ⟨0,le_rfl,(packets (n+N)).parent.T_pos.le⟩).field x - | |
| 55 | + (U.velocity ⟨0,le_rfl,hT.le⟩).field x = _ | |
| 56 | + rw [hU₀,← (packets (n+N)).state.regularity.velocity_match | |
| 57 | + ⟨0,le_rfl,(packets (n+N)).parent.T_pos.le⟩ x] | |
| 58 | + rfl | |
| 59 | + have hnorm (n : ℕ) : | |
| 60 | + tensorNorm 3 ((U.restrictTime (durations n) (hD n) (hDT n)).difference | |
| 61 | + (V n) ⟨0,le_rfl,hD n⟩) = | |
| 62 | + derivativeSum 3 ((fun x => (packets (n+N)).state.evolution.velocity (0,x)) - | |
| 63 | + initialDatum.field) := by | |
| 64 | + rw [tensorNorm_eq_derivativeSum,hfield] | |
| 65 | + have hlim : Tendsto (fun n => tensorNorm 3 | |
| 66 | + ((U.restrictTime (durations n) (hD n) (hDT n)).difference (V n) | |
| 67 | + ⟨0,le_rfl,hD n⟩)) atTop (𝓝 0) := by | |
| 68 | + simpa only [hnorm, Function.comp_def] using | |
| 69 | + (initialDatum_Hm 3).comp (tendsto_add_atTop_nat N) | |
| 70 | + apply U.no_gradient_escape_of_initial_tendsto_varying durations hD hDT V hlim times | |
| 71 | + have hactual (n : ℕ) : ((V n).velocity (times n)).field = | |
| 72 | + fun x => (packets (n+N)).state.evolution.velocity ((packets (n+N)).time,x) := | |
| 73 | + funext (fun x => ((packets (n+N)).state.regularity.velocity_match (times n) x).symm) | |
| 74 | + have heq : (fun n => ‖fderiv ℝ ((V n).velocity (times n)).field 0‖) = | |
| 75 | + fun n => (packets (n+N)).activationGradient := by | |
| 76 | + funext n | |
| 77 | + rw [hactual] | |
| 78 | + rfl | |
| 79 | + rw [heq] | |
| 80 | + exact packets_gradient_atTop.comp (tendsto_add_atTop_nat N) | |
| 81 | + | |
| 82 | +theorem lifespan_le_packet_horizon (n : ℕ) : | |
| 83 | + lifespan.duration ≤ (packets n).parent.T := by | |
| 84 | + by_contra h | |
| 85 | + exact initialDatum_no_packet_horizon n | |
| 86 | + (lifespan.shorter (packets n).parent.T (packets n).parent.T_pos (lt_of_not_ge h)) | |
| 87 | + | |
| 88 | +end EulerPacketInduction | |
+84 −0 Euler/CanonicalVorticityConfinement.lean added View file
| @@ -0,0 +1,84 @@ | ||
| 1 | +import Euler.CanonicalPacketHorizons | |
| 2 | +import Euler.StageVorticityConfinement | |
| 3 | +import Euler.H3CurlConvergence | |
| 4 | +import Euler.OrdinaryEulerMaximal | |
| 5 | + | |
| 6 | +/-! | |
| 7 | +# Uniformly compact vorticity of the canonical packet solution | |
| 8 | + | |
| 9 | +All finite packet horizons contain the maximal open lifespan. H³ stability | |
| 10 | +therefore passes their common vorticity support to every shorter ordinary | |
| 11 | +Euler evolution, and hence to the canonical maximal field itself. | |
| 12 | +-/ | |
| 13 | + | |
| 14 | +noncomputable section | |
| 15 | + | |
| 16 | +namespace EulerPacketInduction | |
| 17 | + | |
| 18 | +open Set Filter EulerSmoothLimit EulerLpTranslation EulerLpTranslation.SmoothL2Field | |
| 19 | + EulerPhysicalL2Scaling EulerOrdinarySobolev EulerMeanCutoffCurl EulerSmoothL2Series | |
| 20 | +open scoped Topology | |
| 21 | + | |
| 22 | +def canonicalVorticityBall : Set Space := | |
| 23 | + Metric.closedBall 0 (2 + particleDisplacementCap constructionScales le_rfl le_rfl) | |
| 24 | + | |
| 25 | +theorem canonicalVorticityBall_compact : IsCompact canonicalVorticityBall := | |
| 26 | + isCompact_closedBall _ _ | |
| 27 | + | |
| 28 | +theorem evolution_vorticity_support (S : ℝ) (hS : 0 < S) (hSL : S < lifespan.duration) | |
| 29 | + (t : Icc (0 : ℝ) S) : | |
| 30 | + tsupport (vectorCurl ((lifespan.evolution S hS hSL).velocity t).field) ⊆ | |
| 31 | + canonicalVorticityBall := by | |
| 32 | + let U := lifespan.evolution S hS hSL | |
| 33 | + let hST : ∀ n, S ≤ (packets n).parent.T := | |
| 34 | + fun n => hSL.le.trans (lifespan_le_packet_horizon n) | |
| 35 | + let V : ℕ → Evolution S hS.le := fun n => | |
| 36 | + (packets n).state.regularity.ordinaryEvolution.restrictTime S hS.le (hST n) | |
| 37 | + have hfield (n : ℕ) (s : Icc (0 : ℝ) S) : ((V n).velocity s).field = | |
| 38 | + fun x => (packets n).state.evolution.velocity (s,x) := by | |
| 39 | + funext x | |
| 40 | + exact ((packets n).state.regularity.velocity_match | |
| 41 | + ⟨s,s.property.1,s.property.2.trans (hST n)⟩ x).symm | |
| 42 | + have hnorm (n : ℕ) : tensorNorm 3 (U.difference (V n) ⟨0,le_rfl,hS.le⟩) = | |
| 43 | + derivativeSum 3 ((fun x => (packets n).state.evolution.velocity (0,x)) - | |
| 44 | + initialDatum.field) := by | |
| 45 | + rw [tensorNorm_eq_derivativeSum] | |
| 46 | + congr 1 | |
| 47 | + funext x | |
| 48 | + rw [Evolution.difference,fieldSub_field] | |
| 49 | + change ((V n).velocity ⟨0,le_rfl,hS.le⟩).field x - | |
| 50 | + ((lifespan.evolution S hS hSL).velocity ⟨0,le_rfl,hS.le⟩).field x = _ | |
| 51 | + rw [hfield,lifespan.evolution_initial S hS hSL] | |
| 52 | + rfl | |
| 53 | + have hinit : Tendsto (fun n => tensorNorm 3 | |
| 54 | + (U.difference (V n) ⟨0,le_rfl,hS.le⟩)) atTop (𝓝 0) := by | |
| 55 | + simpa only [hnorm] using initialDatum_Hm 3 | |
| 56 | + have hsupport (n : ℕ) : tsupport (vectorCurl ((V n).velocity t).field) ⊆ | |
| 57 | + canonicalVorticityBall := by | |
| 58 | + rw [hfield] | |
| 59 | + exact packets_vorticity_support n ⟨t,t.property.1,t.property.2.trans (hST n)⟩ | |
| 60 | + apply closure_minimal _ Metric.isClosed_closedBall | |
| 61 | + intro x hx | |
| 62 | + by_contra hout | |
| 63 | + have hz (n : ℕ) : vectorCurl ((V n).velocity t).field x = 0 := | |
| 64 | + image_eq_zero_of_notMem_tsupport (fun hm => hout (hsupport n hm)) | |
| 65 | + have hzero : Tendsto (fun n => vectorCurl ((V n).velocity t).field x) atTop (𝓝 0) := by | |
| 66 | + simpa only [hz] using (tendsto_const_nhds : Tendsto (fun _ : ℕ => (0 : Space)) atTop (𝓝 0)) | |
| 67 | + exact hx (tendsto_nhds_unique (U.curl_tendsto_of_initial_h3 V hinit t x) hzero) | |
| 68 | + | |
| 69 | +theorem canonical_vorticity_support (t : lifespan.Time) : | |
| 70 | + tsupport (vectorCurl (lifespan.maximalVelocity t)) ⊆ canonicalVorticityBall := | |
| 71 | + evolution_vorticity_support (lifespan.intermediateHorizon t) | |
| 72 | + (lifespan.intermediateHorizon_pos t) (lifespan.intermediateHorizon_lt t) | |
| 73 | + (lifespan.intermediateTime t) | |
| 74 | + | |
| 75 | +theorem canonical_vorticity_eq_zero_outside (t : lifespan.Time) (x : Space) | |
| 76 | + (hx : x ∉ canonicalVorticityBall) : vectorCurl (lifespan.maximalVelocity t) x = 0 := | |
| 77 | + image_eq_zero_of_notMem_tsupport (fun hm => hx (canonical_vorticity_support t hm)) | |
| 78 | + | |
| 79 | +theorem canonical_vorticity_hasCompactSupport (t : lifespan.Time) : | |
| 80 | + HasCompactSupport (vectorCurl (lifespan.maximalVelocity t)) := | |
| 81 | + canonicalVorticityBall_compact.of_isClosed_subset (isClosed_tsupport _) | |
| 82 | + (canonical_vorticity_support t) | |
| 83 | + | |
| 84 | +end EulerPacketInduction | |
+259 −0 Euler/ChildParticleFieldBounds.lean added View file
| @@ -0,0 +1,259 @@ | ||
| 1 | +import Euler.SmoothL2ClassicalBounds | |
| 2 | +import Euler.SmoothL2GevreyCalculus | |
| 3 | + | |
| 4 | +/-! The actual three fields in the chain rule for X(t,Y(t,a)) have | |
| 5 | +Gevrey L² bounds. The parent is controlled by its physical-label H⁶ | |
| 6 | +norm, and Y preserves volume. The new radius is linear in the inner | |
| 7 | +radius, with only polynomial dependence on the parent and amplitudes. -/ | |
| 8 | + | |
| 9 | +noncomputable section | |
| 10 | + | |
| 11 | +namespace EulerChildParticleFieldBounds | |
| 12 | + | |
| 13 | +open MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerLpTranslation | |
| 14 | + EulerLpTranslation.SmoothL2Field EulerPacketParentLabelBounds EulerGevrey | |
| 15 | +open scoped ContDiff | |
| 16 | + | |
| 17 | +structure Data where | |
| 18 | + parentDisplacement : SmoothL2Field Space | |
| 19 | + parentVelocity : SmoothL2Field Space | |
| 20 | + parentAcceleration : SmoothL2Field Space | |
| 21 | + K : ℝ | |
| 22 | + K_one : 1 ≤ K | |
| 23 | + parentDisplacement_bound : HasLabelBound K parentDisplacement | |
| 24 | + parentVelocity_bound : HasLabelBound K parentVelocity | |
| 25 | + parentAcceleration_bound : HasLabelBound K parentAcceleration | |
| 26 | + displacement : SmoothL2Field Space | |
| 27 | + velocity : SmoothL2Field Space | |
| 28 | + acceleration : SmoothL2Field Space | |
| 29 | + amp : ℝ | |
| 30 | + rad : ℝ | |
| 31 | + amp_one : 1 ≤ amp | |
| 32 | + rad_one : 1 ≤ rad | |
| 33 | + displacement_bound : displacement.HasJetBound amp rad | |
| 34 | + velocity_bound : velocity.HasJetBound amp rad | |
| 35 | + acceleration_bound : acceleration.HasJetBound amp rad | |
| 36 | + displacement_sup : HasSupBound displacement.field amp rad | |
| 37 | + velocity_sup : HasSupBound velocity.field amp rad | |
| 38 | + volume_preserving : MeasurePreserving (fun x => x+displacement.field x) volume volume | |
| 39 | + | |
| 40 | +namespace Data | |
| 41 | + | |
| 42 | +variable (G : Data) | |
| 43 | + | |
| 44 | +def inner (x : Space) : Space := x+G.displacement.field x | |
| 45 | +def compositionRadius (s : ℝ) : ℝ := (1+G.rad)*((1+G.amp)*s+2) | |
| 46 | +def radius : ℝ := G.compositionRadius (16*G.K)+G.rad | |
| 47 | +def firstAmplitude : ℝ := (embeddingCost*G.K)*G.K | |
| 48 | +def secondAmplitude : ℝ := G.firstAmplitude*(4*G.K) | |
| 49 | +def amplitude : ℝ := G.K+G.amp+9*G.firstAmplitude*G.amp+9*G.secondAmplitude*G.amp^2 | |
| 50 | + | |
| 51 | +theorem K_nonneg : 0 ≤ G.K := le_trans zero_le_one G.K_one | |
| 52 | +theorem amp_nonneg : 0 ≤ G.amp := le_trans zero_le_one G.amp_one | |
| 53 | +theorem rad_nonneg : 0 ≤ G.rad := le_trans zero_le_one G.rad_one | |
| 54 | +theorem compositionRadius_nonneg (s : ℝ) (hs : 0 ≤ s) : 0 ≤ G.compositionRadius s := by | |
| 55 | + have := G.amp_nonneg | |
| 56 | + have := G.rad_nonneg | |
| 57 | + unfold compositionRadius | |
| 58 | + positivity | |
| 59 | +theorem radius_nonneg : 0 ≤ G.radius := | |
| 60 | + add_nonneg (G.compositionRadius_nonneg _ (mul_nonneg (by norm_num) G.K_nonneg)) G.rad_nonneg | |
| 61 | +theorem rad_le_radius : G.rad ≤ G.radius := | |
| 62 | + le_add_of_nonneg_left (G.compositionRadius_nonneg _ (mul_nonneg (by norm_num) G.K_nonneg)) | |
| 63 | +theorem firstAmplitude_nonneg : 0 ≤ G.firstAmplitude := | |
| 64 | + mul_nonneg (mul_nonneg embeddingCost_nonneg G.K_nonneg) G.K_nonneg | |
| 65 | +theorem secondAmplitude_nonneg : 0 ≤ G.secondAmplitude := | |
| 66 | + mul_nonneg G.firstAmplitude_nonneg (mul_nonneg (by norm_num) G.K_nonneg) | |
| 67 | +theorem amplitude_nonneg : 0 ≤ G.amplitude := by | |
| 68 | + have := G.K_nonneg | |
| 69 | + have := G.amp_nonneg | |
| 70 | + have := G.firstAmplitude_nonneg | |
| 71 | + have := G.secondAmplitude_nonneg | |
| 72 | + unfold amplitude | |
| 73 | + positivity | |
| 74 | + | |
| 75 | +theorem compositionRadius_le_radius (s : ℝ) (hs : s ≤ 16*G.K) : G.compositionRadius s ≤ G.radius := by | |
| 76 | + calc | |
| 77 | + G.compositionRadius s ≤ G.compositionRadius (16*G.K) := by | |
| 78 | + unfold compositionRadius | |
| 79 | + exact mul_le_mul_of_nonneg_left | |
| 80 | + (add_le_add (mul_le_mul_of_nonneg_left hs (add_nonneg zero_le_one G.amp_nonneg)) (le_refl (2 : ℝ))) | |
| 81 | + (add_nonneg zero_le_one G.rad_nonneg) | |
| 82 | + _ ≤ G.radius := le_add_of_nonneg_right G.rad_nonneg | |
| 83 | + | |
| 84 | +theorem inner_smooth : ContDiff ℝ ∞ G.inner := contDiff_id.add G.displacement.smooth | |
| 85 | +theorem inner_positive (n : ℕ) (hn : 0 < n) (x : Space) : | |
| 86 | + ‖iteratedFDeriv ℝ n G.inner x‖ ≤ (1+G.amp)*(1+G.rad)^n*(n.factorial : ℝ)^2 := | |
| 87 | + positive_id_add_bound G.displacement.field G.displacement.smooth G.amp G.rad | |
| 88 | + G.amp_nonneg G.rad_nonneg G.displacement_sup n hn x | |
| 89 | + | |
| 90 | +def parentComposed (U : SmoothL2Field Space) (hU : HasLabelBound G.K U) : SmoothL2Field Space := | |
| 91 | + composeField G.inner G.inner_smooth G.volume_preserving (1+G.amp) (1+G.rad) | |
| 92 | + (by linarith [G.amp_nonneg]) (by linarith [G.rad_nonneg]) G.inner_positive | |
| 93 | + U G.K G.K G.K_nonneg G.K_nonneg (hasJetBound_of_labelBound U G.K hU) | |
| 94 | + | |
| 95 | +theorem parentComposed_bound (U : SmoothL2Field Space) (hU : HasLabelBound G.K U) : | |
| 96 | + (G.parentComposed U hU).HasJetBound G.K G.radius := by | |
| 97 | + have h := composeField_bound G.inner G.inner_smooth G.volume_preserving (1+G.amp) (1+G.rad) | |
| 98 | + (by linarith [G.amp_nonneg]) (by linarith [G.rad_nonneg]) G.inner_positive | |
| 99 | + U G.K G.K G.K_nonneg G.K_nonneg (hasJetBound_of_labelBound U G.K hU) | |
| 100 | + exact h.mono G.K_nonneg (G.compositionRadius_nonneg G.K G.K_nonneg) le_rfl | |
| 101 | + (G.compositionRadius_le_radius G.K (by nlinarith [G.K_nonneg])) | |
| 102 | + | |
| 103 | +def firstCoefficient (U : SmoothL2Field Space) (x : Space) : Space →L[ℝ] Space := | |
| 104 | + fderiv ℝ U.field (G.inner x) | |
| 105 | +def secondCoefficient (U : SmoothL2Field Space) (x : Space) : Space →L[ℝ] Space →L[ℝ] Space := | |
| 106 | + fderiv ℝ (fderiv ℝ U.field) (G.inner x) | |
| 107 | + | |
| 108 | +theorem firstCoefficient_smooth (U : SmoothL2Field Space) : ContDiff ℝ ∞ (G.firstCoefficient U) := | |
| 109 | + (U.smooth.fderiv_right (m := ∞) (by simp)).comp G.inner_smooth | |
| 110 | +theorem secondCoefficient_smooth (U : SmoothL2Field Space) : ContDiff ℝ ∞ (G.secondCoefficient U) := | |
| 111 | + ((U.smooth.fderiv_right (m := ∞) (by simp)).fderiv_right (m := ∞) (by simp)).comp G.inner_smooth | |
| 112 | + | |
| 113 | +theorem firstCoefficient_bound (U : SmoothL2Field Space) (hU : HasLabelBound G.K U) : | |
| 114 | + HasSupBound (G.firstCoefficient U) G.firstAmplitude G.radius := by | |
| 115 | + have hu : HasSupBound U.field (embeddingCost*G.K) G.K := sup_bound_of_labelBound U G.K hU | |
| 116 | + have hd := hu.derivative (mul_nonneg embeddingCost_nonneg G.K_nonneg) G.K_nonneg | |
| 117 | + have hc := hd.comp G.inner_smooth (U.smooth.fderiv_right (m := ∞) (by simp)) | |
| 118 | + G.firstAmplitude_nonneg (by linarith [G.amp_nonneg]) (by linarith [G.rad_nonneg]) | |
| 119 | + (mul_nonneg (by norm_num) G.K_nonneg) G.inner_positive | |
| 120 | + exact hc.mono G.firstAmplitude_nonneg (G.compositionRadius_nonneg _ (by nlinarith [G.K_nonneg])) | |
| 121 | + le_rfl (G.compositionRadius_le_radius (4*G.K) (by nlinarith [G.K_nonneg])) | |
| 122 | + | |
| 123 | +theorem secondCoefficient_bound (U : SmoothL2Field Space) (hU : HasLabelBound G.K U) : | |
| 124 | + HasSupBound (G.secondCoefficient U) G.secondAmplitude G.radius := by | |
| 125 | + have hu : HasSupBound U.field (embeddingCost*G.K) G.K := sup_bound_of_labelBound U G.K hU | |
| 126 | + have hd := (hu.derivative (mul_nonneg embeddingCost_nonneg G.K_nonneg) G.K_nonneg).derivative | |
| 127 | + G.firstAmplitude_nonneg (mul_nonneg (by norm_num) G.K_nonneg) | |
| 128 | + have hc := hd.comp G.inner_smooth | |
| 129 | + ((U.smooth.fderiv_right (m := ∞) (by simp)).fderiv_right (m := ∞) (by simp)) | |
| 130 | + G.secondAmplitude_nonneg (by linarith [G.amp_nonneg]) (by linarith [G.rad_nonneg]) | |
| 131 | + (by nlinarith [G.K_nonneg]) G.inner_positive | |
| 132 | + have he : (4 : ℝ)*(4*G.K)=16*G.K := by ring | |
| 133 | + rw [he] at hc | |
| 134 | + exact hc.mono G.secondAmplitude_nonneg (G.compositionRadius_nonneg _ (by nlinarith [G.K_nonneg])) | |
| 135 | + le_rfl (G.compositionRadius_le_radius (16*G.K) le_rfl) | |
| 136 | + | |
| 137 | +theorem velocity_bound_radius : G.velocity.HasJetBound G.amp G.radius := | |
| 138 | + G.velocity_bound.mono G.amp_nonneg G.rad_nonneg le_rfl G.rad_le_radius | |
| 139 | +theorem acceleration_bound_radius : G.acceleration.HasJetBound G.amp G.radius := | |
| 140 | + G.acceleration_bound.mono G.amp_nonneg G.rad_nonneg le_rfl G.rad_le_radius | |
| 141 | +theorem displacement_bound_radius : G.displacement.HasJetBound G.amp G.radius := | |
| 142 | + G.displacement_bound.mono G.amp_nonneg G.rad_nonneg le_rfl G.rad_le_radius | |
| 143 | +theorem velocity_sup_radius : HasSupBound G.velocity.field G.amp G.radius := | |
| 144 | + G.velocity_sup.mono G.amp_nonneg G.rad_nonneg le_rfl G.rad_le_radius | |
| 145 | + | |
| 146 | +def firstTerm (U : SmoothL2Field Space) (hU : HasLabelBound G.K U) : SmoothL2Field Space := | |
| 147 | + productField (G.firstCoefficient U) (G.firstCoefficient_smooth U) G.velocity | |
| 148 | + G.firstAmplitude G.amp G.radius G.firstAmplitude_nonneg G.amp_nonneg G.radius_nonneg | |
| 149 | + (G.firstCoefficient_bound U hU) G.velocity_bound_radius | |
| 150 | + | |
| 151 | +theorem firstTerm_bound (U : SmoothL2Field Space) (hU : HasLabelBound G.K U) : | |
| 152 | + (G.firstTerm U hU).HasJetBound (3*G.firstAmplitude*G.amp) G.radius := | |
| 153 | + productField_bound (G.firstCoefficient U) (G.firstCoefficient_smooth U) G.velocity | |
| 154 | + G.firstAmplitude G.amp G.radius G.firstAmplitude_nonneg G.amp_nonneg G.radius_nonneg | |
| 155 | + (G.firstCoefficient_bound U hU) G.velocity_bound_radius | |
| 156 | + | |
| 157 | +def quadraticCoefficient (x : Space) : Space →L[ℝ] Space := | |
| 158 | + G.secondCoefficient G.parentDisplacement x (G.velocity.field x) | |
| 159 | + | |
| 160 | +theorem quadraticCoefficient_smooth : ContDiff ℝ ∞ G.quadraticCoefficient := | |
| 161 | + (G.secondCoefficient_smooth G.parentDisplacement).clm_apply G.velocity.smooth | |
| 162 | + | |
| 163 | +theorem quadraticCoefficient_bound : | |
| 164 | + HasSupBound G.quadraticCoefficient (3*G.secondAmplitude*G.amp) G.radius := | |
| 165 | + (G.secondCoefficient_bound G.parentDisplacement G.parentDisplacement_bound).apply G.velocity_sup_radius | |
| 166 | + (G.secondCoefficient_smooth G.parentDisplacement) G.velocity.smooth G.secondAmplitude_nonneg | |
| 167 | + G.amp_nonneg G.radius_nonneg | |
| 168 | + | |
| 169 | +def quadraticTerm : SmoothL2Field Space := | |
| 170 | + productField G.quadraticCoefficient G.quadraticCoefficient_smooth G.velocity | |
| 171 | + (3*G.secondAmplitude*G.amp) G.amp G.radius | |
| 172 | + (mul_nonneg (mul_nonneg (by norm_num) G.secondAmplitude_nonneg) G.amp_nonneg) G.amp_nonneg G.radius_nonneg | |
| 173 | + G.quadraticCoefficient_bound G.velocity_bound_radius | |
| 174 | + | |
| 175 | +theorem quadraticTerm_bound : | |
| 176 | + G.quadraticTerm.HasJetBound (9*G.secondAmplitude*G.amp^2) G.radius := by | |
| 177 | + have h := productField_bound G.quadraticCoefficient G.quadraticCoefficient_smooth G.velocity | |
| 178 | + (3*G.secondAmplitude*G.amp) G.amp G.radius | |
| 179 | + (mul_nonneg (mul_nonneg (by norm_num) G.secondAmplitude_nonneg) G.amp_nonneg) G.amp_nonneg G.radius_nonneg | |
| 180 | + G.quadraticCoefficient_bound G.velocity_bound_radius | |
| 181 | + have he : 3*(3*G.secondAmplitude*G.amp)*G.amp = 9*G.secondAmplitude*G.amp^2 := by ring | |
| 182 | + rw [he] at h | |
| 183 | + exact h | |
| 184 | + | |
| 185 | +def accelerationTerm : SmoothL2Field Space := | |
| 186 | + productField (G.firstCoefficient G.parentDisplacement) (G.firstCoefficient_smooth G.parentDisplacement) | |
| 187 | + G.acceleration G.firstAmplitude G.amp G.radius G.firstAmplitude_nonneg G.amp_nonneg G.radius_nonneg | |
| 188 | + (G.firstCoefficient_bound G.parentDisplacement G.parentDisplacement_bound) G.acceleration_bound_radius | |
| 189 | + | |
| 190 | +theorem accelerationTerm_bound : | |
| 191 | + G.accelerationTerm.HasJetBound (3*G.firstAmplitude*G.amp) G.radius := | |
| 192 | + productField_bound (G.firstCoefficient G.parentDisplacement) (G.firstCoefficient_smooth G.parentDisplacement) | |
| 193 | + G.acceleration G.firstAmplitude G.amp G.radius G.firstAmplitude_nonneg G.amp_nonneg G.radius_nonneg | |
| 194 | + (G.firstCoefficient_bound G.parentDisplacement G.parentDisplacement_bound) G.acceleration_bound_radius | |
| 195 | + | |
| 196 | +def childDisplacement : SmoothL2Field Space := | |
| 197 | + addField (G.parentComposed G.parentDisplacement G.parentDisplacement_bound) G.displacement | |
| 198 | +def childVelocity : SmoothL2Field Space := | |
| 199 | + addField (addField (G.parentComposed G.parentVelocity G.parentVelocity_bound) G.velocity) | |
| 200 | + (G.firstTerm G.parentDisplacement G.parentDisplacement_bound) | |
| 201 | +def childAcceleration : SmoothL2Field Space := | |
| 202 | + addField (addField (addField (addField (addField | |
| 203 | + (G.parentComposed G.parentAcceleration G.parentAcceleration_bound) | |
| 204 | + (G.firstTerm G.parentVelocity G.parentVelocity_bound)) | |
| 205 | + (G.firstTerm G.parentVelocity G.parentVelocity_bound)) G.quadraticTerm) G.acceleration) G.accelerationTerm | |
| 206 | + | |
| 207 | +theorem childDisplacement_bound : G.childDisplacement.HasJetBound G.amplitude G.radius := by | |
| 208 | + have h := (G.parentComposed_bound G.parentDisplacement G.parentDisplacement_bound).add G.displacement_bound_radius | |
| 209 | + apply h.mono (add_nonneg G.K_nonneg G.amp_nonneg) G.radius_nonneg _ le_rfl | |
| 210 | + have h₁ := mul_nonneg G.firstAmplitude_nonneg G.amp_nonneg | |
| 211 | + have h₂ := mul_nonneg G.secondAmplitude_nonneg (sq_nonneg G.amp) | |
| 212 | + unfold amplitude | |
| 213 | + nlinarith | |
| 214 | + | |
| 215 | +theorem childVelocity_bound : G.childVelocity.HasJetBound G.amplitude G.radius := by | |
| 216 | + have h := ((G.parentComposed_bound G.parentVelocity G.parentVelocity_bound).add G.velocity_bound_radius).add | |
| 217 | + (G.firstTerm_bound G.parentDisplacement G.parentDisplacement_bound) | |
| 218 | + have h₁ := mul_nonneg G.firstAmplitude_nonneg G.amp_nonneg | |
| 219 | + have h₂ := mul_nonneg G.secondAmplitude_nonneg (sq_nonneg G.amp) | |
| 220 | + apply h.mono (by nlinarith [G.K_nonneg,G.amp_nonneg]) G.radius_nonneg _ le_rfl | |
| 221 | + unfold amplitude | |
| 222 | + nlinarith | |
| 223 | + | |
| 224 | +theorem childAcceleration_bound : G.childAcceleration.HasJetBound G.amplitude G.radius := by | |
| 225 | + have h := (((((G.parentComposed_bound G.parentAcceleration G.parentAcceleration_bound).add | |
| 226 | + (G.firstTerm_bound G.parentVelocity G.parentVelocity_bound)).add | |
| 227 | + (G.firstTerm_bound G.parentVelocity G.parentVelocity_bound)).add G.quadraticTerm_bound).add | |
| 228 | + G.acceleration_bound_radius).add G.accelerationTerm_bound | |
| 229 | + have he : G.K+3*G.firstAmplitude*G.amp+3*G.firstAmplitude*G.amp+ | |
| 230 | + 9*G.secondAmplitude*G.amp^2+G.amp+3*G.firstAmplitude*G.amp = G.amplitude := by | |
| 231 | + unfold amplitude | |
| 232 | + ring | |
| 233 | + rw [he] at h | |
| 234 | + exact h | |
| 235 | + | |
| 236 | +theorem childDisplacement_apply (x : Space) : | |
| 237 | + G.childDisplacement.field x = G.parentDisplacement.field (G.inner x)+G.displacement.field x := rfl | |
| 238 | + | |
| 239 | +theorem childVelocity_apply (x : Space) : | |
| 240 | + G.childVelocity.field x = G.parentVelocity.field (G.inner x)+G.velocity.field x+ | |
| 241 | + fderiv ℝ G.parentDisplacement.field (G.inner x) (G.velocity.field x) := rfl | |
| 242 | + | |
| 243 | +theorem childAcceleration_apply (x : Space) : | |
| 244 | + G.childAcceleration.field x = G.parentAcceleration.field (G.inner x)+ | |
| 245 | + fderiv ℝ G.parentVelocity.field (G.inner x) (G.velocity.field x)+ | |
| 246 | + fderiv ℝ G.parentVelocity.field (G.inner x) (G.velocity.field x)+ | |
| 247 | + fderiv ℝ (fderiv ℝ G.parentDisplacement.field) (G.inner x) (G.velocity.field x) (G.velocity.field x)+ | |
| 248 | + G.acceleration.field x+fderiv ℝ G.parentDisplacement.field (G.inner x) (G.acceleration.field x) := rfl | |
| 249 | + | |
| 250 | +theorem child_label_bounds (K : ℝ) | |
| 251 | + (ha : EulerParameterWordGevrey.sobolevCoefficientAmplitude (Fin 3) 6 G.radius G.amplitude ≤ K) | |
| 252 | + (hr : EulerParameterWordGevrey.sobolevCoefficientRadius (Fin 3) G.radius ≤ K) : | |
| 253 | + HasLabelBound K G.childDisplacement ∧ HasLabelBound K G.childVelocity ∧ HasLabelBound K G.childAcceleration := | |
| 254 | + ⟨hasLabelBound_of_jet_bound _ _ _ K G.amplitude_nonneg G.radius_nonneg G.childDisplacement_bound ha hr, | |
| 255 | + hasLabelBound_of_jet_bound _ _ _ K G.amplitude_nonneg G.radius_nonneg G.childVelocity_bound ha hr, | |
| 256 | + hasLabelBound_of_jet_bound _ _ _ K G.amplitude_nonneg G.radius_nonneg G.childAcceleration_bound ha hr⟩ | |
| 257 | + | |
| 258 | +end Data | |
| 259 | +end EulerChildParticleFieldBounds | |
+107 −0 Euler/ChildParticleFieldTime.lean added View file
| @@ -0,0 +1,107 @@ | ||
| 1 | +import Euler.ChildParticleTime | |
| 2 | +import Euler.ChildParticleFieldBounds | |
| 3 | + | |
| 4 | +/-! The L² child fields used in the estimates are exactly the actual | |
| 5 | +first and second time derivatives of the composed particle map. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +namespace EulerChildParticleTime | |
| 10 | + | |
| 11 | +open Set EulerSmoothLimit | |
| 12 | + | |
| 13 | +variable {T : ℝ} | |
| 14 | + | |
| 15 | +/-- Compatibility of two actual realizations of the six input fields. | |
| 16 | +These are literal value identities, not derivative or output assumptions. -/ | |
| 17 | +structure Representation (G : Icc (0 : ℝ) T → EulerChildParticleFieldBounds.Data) | |
| 18 | + (P P₁ P₂ D D₁ D₂ : SmoothTimeField (Icc (0 : ℝ) T) Space Space) : Prop where | |
| 19 | + parentDisplacement : ∀ t x, (G t).parentDisplacement.field x=P.field t x | |
| 20 | + parentVelocity : ∀ t x, (G t).parentVelocity.field x=P₁.field t x | |
| 21 | + parentAcceleration : ∀ t x, (G t).parentAcceleration.field x=P₂.field t x | |
| 22 | + displacement : ∀ t x, (G t).displacement.field x=D.field t x | |
| 23 | + velocity : ∀ t x, (G t).velocity.field x=D₁.field t x | |
| 24 | + acceleration : ∀ t x, (G t).acceleration.field x=D₂.field t x | |
| 25 | + | |
| 26 | +namespace Representation | |
| 27 | + | |
| 28 | +variable {G : Icc (0 : ℝ) T → EulerChildParticleFieldBounds.Data} | |
| 29 | + {P P₁ P₂ D D₁ D₂ : SmoothTimeField (Icc (0 : ℝ) T) Space Space} | |
| 30 | + (H : Representation G P P₁ P₂ D D₁ D₂) | |
| 31 | + | |
| 32 | +include H | |
| 33 | + | |
| 34 | +theorem childDisplacement (t : Icc (0 : ℝ) T) (x : Space) : | |
| 35 | + (G t).childDisplacement.field x=(EulerChildParticleTime.displacement P D).field t x := by | |
| 36 | + rw [EulerChildParticleFieldBounds.Data.childDisplacement_apply,displacement_apply] | |
| 37 | + simp only [EulerChildParticleFieldBounds.Data.inner,H.parentDisplacement,H.displacement] | |
| 38 | + | |
| 39 | +theorem childVelocity (t : Icc (0 : ℝ) T) (x : Space) : | |
| 40 | + (G t).childVelocity.field x=(EulerChildParticleTime.velocity P P₁ D D₁).field t x := by | |
| 41 | + rw [EulerChildParticleFieldBounds.Data.childVelocity_apply,velocity_apply] | |
| 42 | + have he : (G t).parentDisplacement.field = (P.field t : Space → Space) := | |
| 43 | + funext (H.parentDisplacement t) | |
| 44 | + simp only [EulerChildParticleFieldBounds.Data.inner,he,H.parentVelocity,H.displacement,H.velocity] | |
| 45 | + | |
| 46 | +theorem childAcceleration (t : Icc (0 : ℝ) T) (x : Space) : | |
| 47 | + (G t).childAcceleration.field x=(EulerChildParticleTime.acceleration P P₁ P₂ D D₁ D₂).field t x := by | |
| 48 | + rw [EulerChildParticleFieldBounds.Data.childAcceleration_apply,acceleration_apply] | |
| 49 | + have he : (G t).parentDisplacement.field = (P.field t : Space → Space) := | |
| 50 | + funext (H.parentDisplacement t) | |
| 51 | + have he₁ : (G t).parentVelocity.field = (P₁.field t : Space → Space) := | |
| 52 | + funext (H.parentVelocity t) | |
| 53 | + simp only [EulerChildParticleFieldBounds.Data.inner,he,he₁, | |
| 54 | + H.parentAcceleration,H.displacement,H.velocity,H.acceleration] | |
| 55 | + | |
| 56 | +variable {hT : 0 ≤ T} | |
| 57 | + | |
| 58 | +theorem displacement_hasDerivWithinAt | |
| 59 | + (hP : SmoothTimeField.TimeDerivative T hT P P₁) | |
| 60 | + (hD : SmoothTimeField.TimeDerivative T hT D D₁) | |
| 61 | + (t : Icc (0 : ℝ) T) (x : Space) : | |
| 62 | + HasDerivWithinAt (fun s => (G (projIcc 0 T hT s)).childDisplacement.field x) | |
| 63 | + ((G t).childVelocity.field x) (Icc (0 : ℝ) T) t := by | |
| 64 | + have he : (fun s => (G (projIcc 0 T hT s)).childDisplacement.field x) = | |
| 65 | + (fun s => (EulerChildParticleTime.displacement P D).realField T hT s x) := by | |
| 66 | + funext s | |
| 67 | + exact H.childDisplacement (projIcc 0 T hT s) x | |
| 68 | + rw [he,H.childVelocity] | |
| 69 | + exact displacement_time hP hD t x | |
| 70 | + | |
| 71 | +theorem velocity_hasDerivWithinAt | |
| 72 | + (hP : SmoothTimeField.TimeDerivative T hT P P₁) | |
| 73 | + (hP₁ : SmoothTimeField.TimeDerivative T hT P₁ P₂) | |
| 74 | + (hD : SmoothTimeField.TimeDerivative T hT D D₁) | |
| 75 | + (hD₁ : SmoothTimeField.TimeDerivative T hT D₁ D₂) | |
| 76 | + (t : Icc (0 : ℝ) T) (x : Space) : | |
| 77 | + HasDerivWithinAt (fun s => (G (projIcc 0 T hT s)).childVelocity.field x) | |
| 78 | + ((G t).childAcceleration.field x) (Icc (0 : ℝ) T) t := by | |
| 79 | + have he : (fun s => (G (projIcc 0 T hT s)).childVelocity.field x) = | |
| 80 | + (fun s => (EulerChildParticleTime.velocity P P₁ D D₁).realField T hT s x) := by | |
| 81 | + funext s | |
| 82 | + exact H.childVelocity (projIcc 0 T hT s) x | |
| 83 | + rw [he,H.childAcceleration] | |
| 84 | + exact velocity_time hP hP₁ hD hD₁ t x | |
| 85 | + | |
| 86 | +theorem composition_hasDerivWithinAt | |
| 87 | + (hP : SmoothTimeField.TimeDerivative T hT P P₁) | |
| 88 | + (hD : SmoothTimeField.TimeDerivative T hT D D₁) | |
| 89 | + (t : Icc (0 : ℝ) T) (x : Space) : | |
| 90 | + HasDerivWithinAt (fun s => | |
| 91 | + let F := G (projIcc 0 T hT s) | |
| 92 | + (x+F.displacement.field x)+F.parentDisplacement.field (x+F.displacement.field x)) | |
| 93 | + ((G t).childVelocity.field x) (Icc (0 : ℝ) T) t := by | |
| 94 | + have h := (H.displacement_hasDerivWithinAt hP hD t x).const_add x | |
| 95 | + have he : (fun s => x+(G (projIcc 0 T hT s)).childDisplacement.field x) = | |
| 96 | + (fun s => | |
| 97 | + let F := G (projIcc 0 T hT s) | |
| 98 | + (x+F.displacement.field x)+F.parentDisplacement.field (x+F.displacement.field x)) := by | |
| 99 | + funext s | |
| 100 | + rw [EulerChildParticleFieldBounds.Data.childDisplacement_apply] | |
| 101 | + simp only [EulerChildParticleFieldBounds.Data.inner] | |
| 102 | + abel | |
| 103 | + rw [← he] | |
| 104 | + exact h | |
| 105 | + | |
| 106 | +end Representation | |
| 107 | +end EulerChildParticleTime | |
+42 −0 Euler/ChildParticleJacobian.lean added View file
| @@ -0,0 +1,42 @@ | ||
| 1 | +import Euler.ChildParticleTime | |
| 2 | +import Mathlib.LinearAlgebra.Determinant | |
| 3 | + | |
| 4 | +/-! Exact Jacobian composition for the child displacement. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerChildParticleTime | |
| 9 | + | |
| 10 | +variable {K E : Type} [TopologicalSpace K] [CompactSpace K] | |
| 11 | + [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 12 | + | |
| 13 | +theorem displacement_jacobian (P D : SmoothTimeField K E E) (t : K) (x : E) : | |
| 14 | + ContinuousLinearMap.id ℝ E + fderiv ℝ ((displacement P D).field t : E → E) x = | |
| 15 | + (ContinuousLinearMap.id ℝ E + fderiv ℝ (P.field t : E → E) (x+D.field t x)).comp | |
| 16 | + (ContinuousLinearMap.id ℝ E + fderiv ℝ (D.field t : E → E) x) := by | |
| 17 | + have hi := (hasFDerivAt_id x).add ((D.smooth t).differentiable (by simp) x).hasFDerivAt | |
| 18 | + have ho := (hasFDerivAt_id (x+D.field t x)).add | |
| 19 | + ((P.smooth t).differentiable (by simp) (x+D.field t x)).hasFDerivAt | |
| 20 | + have hc := ho.comp x hi | |
| 21 | + have hh := (hasFDerivAt_id x).add | |
| 22 | + (((displacement P D).smooth t).differentiable (by simp) x).hasFDerivAt | |
| 23 | + apply hh.unique | |
| 24 | + apply hc.congr_of_eventuallyEq | |
| 25 | + exact Filter.Eventually.of_forall (fun y => map_composition P D t y) | |
| 26 | + | |
| 27 | +theorem displacement_det_one [FiniteDimensional ℝ E] | |
| 28 | + (P D : SmoothTimeField K E E) (t : K) | |
| 29 | + (hP : ∀ y, (ContinuousLinearMap.id ℝ E + fderiv ℝ (P.field t : E → E) y).det=1) | |
| 30 | + (hD : ∀ y, (ContinuousLinearMap.id ℝ E + fderiv ℝ (D.field t : E → E) y).det=1) | |
| 31 | + (x : E) : | |
| 32 | + (ContinuousLinearMap.id ℝ E + fderiv ℝ ((displacement P D).field t : E → E) x).det=1 := by | |
| 33 | + rw [displacement_jacobian] | |
| 34 | + change LinearMap.det | |
| 35 | + ((ContinuousLinearMap.id ℝ E + fderiv ℝ (P.field t : E → E) (x+D.field t x)).toLinearMap.comp | |
| 36 | + (ContinuousLinearMap.id ℝ E + fderiv ℝ (D.field t : E → E) x).toLinearMap)=1 | |
| 37 | + rw [LinearMap.det_comp] | |
| 38 | + change (ContinuousLinearMap.id ℝ E + fderiv ℝ (P.field t : E → E) (x+D.field t x)).det * | |
| 39 | + (ContinuousLinearMap.id ℝ E + fderiv ℝ (D.field t : E → E) x).det=1 | |
| 40 | + rw [hP,hD,mul_one] | |
| 41 | + | |
| 42 | +end EulerChildParticleTime | |
+77 −0 Euler/ChildParticleSourceBound.lean added View file
| @@ -0,0 +1,77 @@ | ||
| 1 | +import Euler.ChildParticleFieldBounds | |
| 2 | +import Euler.SobolevSourceExponent | |
| 3 | + | |
| 4 | +/-! The explicit polynomial losses of child composition fit the | |
| 5 | +manuscript's C*=10(s+2). This includes the sum of the three actual | |
| 6 | +physical-label Hs word norms, not just a separate bound for each field. -/ | |
| 7 | + | |
| 8 | +noncomputable section | |
| 9 | + | |
| 10 | +namespace EulerChildParticleFieldBounds.Data | |
| 11 | + | |
| 12 | +open EulerPacketParentLabelBounds EulerSobolevSourceExponent EulerMeanClassicalWordBounds | |
| 13 | + | |
| 14 | +variable (G : Data) | |
| 15 | + | |
| 16 | +theorem amplitude_le_power (k : ℝ) (hk1 : 1 ≤ k) | |
| 17 | + (hbig : 2+45*embeddingCost ≤ k) (hK : G.K ≤ k) (hM : G.amp ≤ k) : | |
| 18 | + G.amplitude ≤ k^6 := by | |
| 19 | + have hk0 : 0 ≤ k := zero_le_one.trans hk1 | |
| 20 | + have hk15 : k ≤ k^5 := by simpa using pow_le_pow_right₀ hk1 (show 1 ≤ 5 by omega) | |
| 21 | + have hk35 : k^3 ≤ k^5 := pow_le_pow_right₀ hk1 (by omega) | |
| 22 | + have hprod3 : G.K^2*G.amp ≤ k^3 := by | |
| 23 | + have h := mul_le_mul (pow_le_pow_left₀ G.K_nonneg hK 2) hM G.amp_nonneg (pow_nonneg hk0 2) | |
| 24 | + exact h.trans_eq (by ring) | |
| 25 | + have hprod5 : G.K^3*G.amp^2 ≤ k^5 := by | |
| 26 | + have h := mul_le_mul (pow_le_pow_left₀ G.K_nonneg hK 3) | |
| 27 | + (pow_le_pow_left₀ G.amp_nonneg hM 2) (sq_nonneg G.amp) (pow_nonneg hk0 3) | |
| 28 | + exact h.trans_eq (by ring) | |
| 29 | + have h3 : 9*embeddingCost*(G.K^2*G.amp) ≤ 9*embeddingCost*k^5 := | |
| 30 | + mul_le_mul_of_nonneg_left (hprod3.trans hk35) (mul_nonneg (by norm_num) embeddingCost_nonneg) | |
| 31 | + have h5 : 36*embeddingCost*(G.K^3*G.amp^2) ≤ 36*embeddingCost*k^5 := | |
| 32 | + mul_le_mul_of_nonneg_left hprod5 (mul_nonneg (by norm_num) embeddingCost_nonneg) | |
| 33 | + have hs := add_le_add (add_le_add (add_le_add (hK.trans hk15) (hM.trans hk15)) h3) h5 | |
| 34 | + have he : G.amplitude = G.K+G.amp+9*embeddingCost*(G.K^2*G.amp)+ | |
| 35 | + 36*embeddingCost*(G.K^3*G.amp^2) := by | |
| 36 | + unfold amplitude secondAmplitude firstAmplitude | |
| 37 | + ring | |
| 38 | + calc | |
| 39 | + G.amplitude ≤ (2+45*embeddingCost)*k^5 := by rw [he]; nlinarith [hs] | |
| 40 | + _ ≤ k*k^5 := mul_le_mul_of_nonneg_right hbig (pow_nonneg hk0 5) | |
| 41 | + _ = k^6 := by ring | |
| 42 | + | |
| 43 | +theorem radius_le_power (k : ℝ) (hk : 69 ≤ k) | |
| 44 | + (hK : G.K ≤ k) (hM : G.amp ≤ k) (hR : G.rad ≤ k^2) : G.radius ≤ k^5 := by | |
| 45 | + have hk0 : 0 ≤ k := by linarith | |
| 46 | + have hk1 : 1 ≤ k := by linarith | |
| 47 | + have hk2 : (1 : ℝ) ≤ k^2 := one_le_pow₀ hk1 | |
| 48 | + have hrad : 1+G.rad ≤ 2*k^2 := by linarith | |
| 49 | + have hamp : 1+G.amp ≤ 2*k := by linarith | |
| 50 | + have h16 : 16*G.K ≤ 16*k := mul_le_mul_of_nonneg_left hK (by norm_num) | |
| 51 | + have hm := mul_le_mul hamp h16 (mul_nonneg (by norm_num) G.K_nonneg) (mul_nonneg (by norm_num) hk0) | |
| 52 | + have hinner : (1+G.amp)*(16*G.K)+2 ≤ 34*k^2 := by nlinarith [hm] | |
| 53 | + have hinner0 : 0 ≤ (1+G.amp)*(16*G.K)+2 := by | |
| 54 | + have := G.amp_nonneg | |
| 55 | + have := G.K_nonneg | |
| 56 | + positivity | |
| 57 | + have hprod := mul_le_mul hrad hinner hinner0 (mul_nonneg (by norm_num) (sq_nonneg k)) | |
| 58 | + have hk24 : k^2 ≤ k^4 := pow_le_pow_right₀ hk1 (by omega) | |
| 59 | + have hsum := add_le_add hprod (hR.trans hk24) | |
| 60 | + calc | |
| 61 | + G.radius ≤ 69*k^4 := by unfold radius compositionRadius; nlinarith [hsum] | |
| 62 | + _ ≤ k*k^4 := mul_le_mul_of_nonneg_right hk (pow_nonneg hk0 4) | |
| 63 | + _ = k^5 := by ring | |
| 64 | + | |
| 65 | +theorem source_physical_label_bound (q : ℕ) (k : ℝ) (hk : 69 ≤ k) | |
| 66 | + (hbig : 2+45*embeddingCost ≤ k) (hcost : fixedCost q ≤ k) | |
| 67 | + (hK : G.K ≤ k) (hM : G.amp ≤ k) (hR : G.rad ≤ k^2) (n : ℕ) : | |
| 68 | + classicalBlockSize direction q G.childDisplacement.toLp G.childDisplacement.translation_contDiff n+ | |
| 69 | + classicalBlockSize direction q G.childVelocity.toLp G.childVelocity.translation_contDiff n+ | |
| 70 | + classicalBlockSize direction q G.childAcceleration.toLp G.childAcceleration.translation_contDiff n ≤ | |
| 71 | + (k^(10*(q+2)))^(n+1)*(n.factorial : ℝ)^2 := | |
| 72 | + source_triple_classical_bound q G.childDisplacement G.childVelocity G.childAcceleration k G.amplitude G.radius | |
| 73 | + (by linarith) hcost G.amplitude_nonneg G.radius_nonneg | |
| 74 | + (G.amplitude_le_power k (by linarith) hbig hK hM) (G.radius_le_power k hk hK hM hR) | |
| 75 | + G.childDisplacement_bound G.childVelocity_bound G.childAcceleration_bound n | |
| 76 | + | |
| 77 | +end EulerChildParticleFieldBounds.Data | |
+97 −0 Euler/ChildParticleTime.lean added View file
| @@ -0,0 +1,97 @@ | ||
| 1 | +import Euler.SmoothTimeFieldChain | |
| 2 | + | |
| 3 | +/-! The literal child map X(t,Y(t,a)), its actual velocity, and its | |
| 4 | +actual acceleration, as continuous smooth coefficient paths. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +open scoped ContDiff BoundedContinuousFunction | |
| 9 | + | |
| 10 | +namespace EulerChildParticleTime | |
| 11 | + | |
| 12 | +open Set SmoothTimeField | |
| 13 | + | |
| 14 | +variable {K E : Type} [TopologicalSpace K] [CompactSpace K] | |
| 15 | + [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 16 | + | |
| 17 | +def firstTerm (P D V : SmoothTimeField K E E) : SmoothTimeField K E E := | |
| 18 | + applyField (P.derivative.compDisplacement D) V | |
| 19 | + | |
| 20 | +def secondTerm (P D V : SmoothTimeField K E E) : SmoothTimeField K E E := | |
| 21 | + applyField (applyField (P.derivative.derivative.compDisplacement D) V) V | |
| 22 | + | |
| 23 | +def displacement (P D : SmoothTimeField K E E) : SmoothTimeField K E E := | |
| 24 | + (P.compDisplacement D).add D | |
| 25 | + | |
| 26 | +def velocity (P P₁ D D₁ : SmoothTimeField K E E) : SmoothTimeField K E E := | |
| 27 | + ((P₁.compDisplacement D).add D₁).add (firstTerm P D D₁) | |
| 28 | + | |
| 29 | +def acceleration (P P₁ P₂ D D₁ D₂ : SmoothTimeField K E E) : SmoothTimeField K E E := | |
| 30 | + (((((P₂.compDisplacement D).add (firstTerm P₁ D D₁)).add | |
| 31 | + (firstTerm P₁ D D₁)).add (secondTerm P D D₁)).add D₂).add (firstTerm P D D₂) | |
| 32 | + | |
| 33 | +@[simp] theorem firstTerm_apply (P D V : SmoothTimeField K E E) (t : K) (x : E) : | |
| 34 | + (firstTerm P D V).field t x = fderiv ℝ (P.field t : E → E) (x+D.field t x) (V.field t x) := by | |
| 35 | + change P.derivativeField t (x+D.field t x) (V.field t x) = _ | |
| 36 | + rw [P.derivativeField_eq] | |
| 37 | + | |
| 38 | +@[simp] theorem secondTerm_apply (P D V : SmoothTimeField K E E) (t : K) (x : E) : | |
| 39 | + (secondTerm P D V).field t x = | |
| 40 | + fderiv ℝ (fderiv ℝ (P.field t : E → E)) (x+D.field t x) (V.field t x) (V.field t x) := by | |
| 41 | + change P.derivative.derivativeField t (x+D.field t x) (V.field t x) (V.field t x) = _ | |
| 42 | + rw [P.derivative.derivativeField_eq] | |
| 43 | + have he : (P.derivative.field t : E → E →L[ℝ] E) = fderiv ℝ (P.field t : E → E) := | |
| 44 | + funext (P.derivativeField_eq t) | |
| 45 | + rw [he] | |
| 46 | + | |
| 47 | +@[simp] theorem displacement_apply (P D : SmoothTimeField K E E) (t : K) (x : E) : | |
| 48 | + (displacement P D).field t x = P.field t (x+D.field t x)+D.field t x := rfl | |
| 49 | + | |
| 50 | +@[simp] theorem velocity_apply (P P₁ D D₁ : SmoothTimeField K E E) (t : K) (x : E) : | |
| 51 | + (velocity P P₁ D D₁).field t x = P₁.field t (x+D.field t x)+D₁.field t x+ | |
| 52 | + fderiv ℝ (P.field t : E → E) (x+D.field t x) (D₁.field t x) := by | |
| 53 | + simp only [velocity,SmoothTimeField.add_apply,compDisplacement_apply,firstTerm_apply] | |
| 54 | + | |
| 55 | +@[simp] theorem acceleration_apply (P P₁ P₂ D D₁ D₂ : SmoothTimeField K E E) (t : K) (x : E) : | |
| 56 | + (acceleration P P₁ P₂ D D₁ D₂).field t x = P₂.field t (x+D.field t x)+ | |
| 57 | + fderiv ℝ (P₁.field t : E → E) (x+D.field t x) (D₁.field t x)+ | |
| 58 | + fderiv ℝ (P₁.field t : E → E) (x+D.field t x) (D₁.field t x)+ | |
| 59 | + fderiv ℝ (fderiv ℝ (P.field t : E → E)) (x+D.field t x) (D₁.field t x) (D₁.field t x)+ | |
| 60 | + D₂.field t x+fderiv ℝ (P.field t : E → E) (x+D.field t x) (D₂.field t x) := by | |
| 61 | + simp only [acceleration,SmoothTimeField.add_apply,compDisplacement_apply,firstTerm_apply,secondTerm_apply] | |
| 62 | + | |
| 63 | +theorem map_composition (P D : SmoothTimeField K E E) (t : K) (x : E) : | |
| 64 | + x+(displacement P D).field t x = | |
| 65 | + (x+D.field t x)+P.field t (x+D.field t x) := by | |
| 66 | + rw [displacement_apply] | |
| 67 | + abel | |
| 68 | + | |
| 69 | +section Time | |
| 70 | + | |
| 71 | +variable {T : ℝ} {hT : 0 ≤ T} [CompleteSpace E] | |
| 72 | + {P P₁ P₂ D D₁ D₂ : SmoothTimeField (Icc (0 : ℝ) T) E E} | |
| 73 | + | |
| 74 | +theorem displacement_time (hP : TimeDerivative T hT P P₁) (hD : TimeDerivative T hT D D₁) : | |
| 75 | + TimeDerivative T hT (displacement P D) (velocity P P₁ D D₁) := by | |
| 76 | + have h := (hP.compDisplacement hD).add hD | |
| 77 | + apply h.congr_fields (fun _ _ => rfl) | |
| 78 | + intro t x | |
| 79 | + simp only [velocity,firstTerm,SmoothTimeField.add_apply,applyField_apply,compDisplacement_apply] | |
| 80 | + abel | |
| 81 | + | |
| 82 | +variable [FiniteDimensional ℝ E] | |
| 83 | + | |
| 84 | +theorem velocity_time (hP : TimeDerivative T hT P P₁) (hP₁ : TimeDerivative T hT P₁ P₂) | |
| 85 | + (hD : TimeDerivative T hT D D₁) (hD₁ : TimeDerivative T hT D₁ D₂) : | |
| 86 | + TimeDerivative T hT (velocity P P₁ D D₁) (acceleration P P₁ P₂ D D₁ D₂) := by | |
| 87 | + have hd := SmoothTimeField.TimeDerivative.derivative T hT P P₁ hP | |
| 88 | + have hp := (hd.compDisplacement hD).applyField hD₁ | |
| 89 | + have h := ((hP₁.compDisplacement hD).add hD₁).add hp | |
| 90 | + apply h.congr_fields (fun _ _ => rfl) | |
| 91 | + intro t x | |
| 92 | + simp only [acceleration,firstTerm,secondTerm,SmoothTimeField.add_apply,applyField_apply,compDisplacement_apply, | |
| 93 | + _root_.add_apply] | |
| 94 | + abel | |
| 95 | + | |
| 96 | +end Time | |
| 97 | +end EulerChildParticleTime | |
+49 −0 Euler/ClassicalBridge.lean added View file
| @@ -0,0 +1,49 @@ | ||
| 1 | +import Euler.SolutionDefinitions | |
| 2 | +import Mathlib.Analysis.Calculus.ContDiff.Operations | |
| 3 | + | |
| 4 | +/-! Ordinary spatial smoothness, finite energy, and the pointwise time equation | |
| 5 | +follow from the independent Comparator solution class. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +open Set MeasureTheory | |
| 10 | +open scoped ContDiff Topology | |
| 11 | + | |
| 12 | +namespace Euler.EulerExistenceAndSmoothnessR3 | |
| 13 | + | |
| 14 | +local notation "ℝ³" => EuclideanSpace ℝ (Fin 3) | |
| 15 | + | |
| 16 | +variable {u₀ : ℝ³ → ℝ³} {v : ℝ³ → ℝ → ℝ³} {p : ℝ³ → ℝ → ℝ} | |
| 17 | + (h : EulerExistenceAndSmoothnessR3 u₀ v p) | |
| 18 | + | |
| 19 | +include h | |
| 20 | + | |
| 21 | +theorem velocity_contDiff (t : ℝ) (ht : 0 ≤ t) : ContDiff ℝ ∞ (v · t) := by | |
| 22 | + exact h.velocity_smooth.comp_contDiff (contDiff_id.prodMk contDiff_const) | |
| 23 | + (fun x => ⟨mem_univ x, ht⟩) | |
| 24 | + | |
| 25 | +theorem pressure_contDiff (t : ℝ) (ht : 0 ≤ t) : ContDiff ℝ ∞ (p · t) := by | |
| 26 | + exact h.pressure_smooth.comp_contDiff (contDiff_id.prodMk contDiff_const) | |
| 27 | + (fun x => ⟨mem_univ x, ht⟩) | |
| 28 | + | |
| 29 | +theorem velocity_memLp (t : ℝ) (ht : 0 ≤ t) : MemLp (v · t) 2 volume := by | |
| 30 | + exact (memLp_norm_iff (h.velocity_contDiff t ht).continuous.aestronglyMeasurable).mp | |
| 31 | + (h.integrable t ht) | |
| 32 | + | |
| 33 | +theorem pointwise_euler (x : ℝ³) (t : ℝ) (ht : 0 < t) : | |
| 34 | + HasDerivAt (v x ·) | |
| 35 | + (-fderiv ℝ (v · t) x (v x t) - gradient (p · t) x) t := by | |
| 36 | + have hs : ContDiffOn ℝ ∞ (v x ·) (Ici 0) := | |
| 37 | + h.velocity_smooth.comp (contDiff_const.prodMk contDiff_id).contDiffOn | |
| 38 | + (fun r hr => ⟨mem_univ x, hr⟩) | |
| 39 | + have hd : DifferentiableAt ℝ (v x ·) t := | |
| 40 | + (hs.differentiableOn (by simp) t ht.le).differentiableAt (Ici_mem_nhds ht) | |
| 41 | + have he := h.euler x t ht.le | |
| 42 | + rw [derivWithin_of_mem_nhds (Ici_mem_nhds ht)] at he | |
| 43 | + have he' : deriv (v x ·) t = | |
| 44 | + -fderiv ℝ (v · t) x (v x t) - gradient (p · t) x := by | |
| 45 | + simpa only [sub_eq_add_neg, add_comm] using eq_sub_of_add_eq he | |
| 46 | + rw [← he'] | |
| 47 | + exact hd.hasDerivAt | |
| 48 | + | |
| 49 | +end Euler.EulerExistenceAndSmoothnessR3 | |
+66 −0 Euler/ClassicalDivergence.lean added View file
| @@ -0,0 +1,66 @@ | ||
| 1 | +import Euler.ClassicalPressureCurl | |
| 2 | + | |
| 3 | +/-! Actual smooth representatives of the closed divergence-free space have pointwise lifted divergence zero. -/ | |
| 4 | + | |
| 5 | +noncomputable section | |
| 6 | + | |
| 7 | +namespace EulerClassicalDivergence | |
| 8 | + | |
| 9 | +open MeasureTheory Set InnerProductSpace EulerLiftedGradientSpace EulerMetricTransport | |
| 10 | + EulerTransportDerivatives EulerLiftedWeakDerivative EulerLiftedCurl EulerClassicalPressureCurl | |
| 11 | +open scoped ContDiff Topology | |
| 12 | + | |
| 13 | +variable (period : ℝ) [Fact (0 < period)] | |
| 14 | + | |
| 15 | +/-- A genuine smooth representative of a weakly lifted-divergence-free L² field has zero pointwise lifted divergence. -/ | |
| 16 | +theorem divergenceFree_classical_divergence_zero (κ : ℝ) (m : Vector3) | |
| 17 | + (u : LiftL2 period) (hu : u ∈ divergenceFreeSpace period κ m) | |
| 18 | + (g : LiftDomain period → Vector3) | |
| 19 | + (hrep : (u : LiftDomain period → Vector3) =ᵐ[liftMeasure period] g) | |
| 20 | + (hg : ∀ x, ContDiff ℝ ∞ (localFieldLift period g x)) : | |
| 21 | + ∀ x, (∑ i : Fin 3, (fieldDerivative period (coordinateDirection κ m i) g x) i) = 0 := by | |
| 22 | + let φ := fun (i : Fin 3) (y : LiftDomain period) => g y i | |
| 23 | + let a := coordinateDirection κ m | |
| 24 | + let d := fun (i : Fin 3) => fieldDerivative period (a i) (φ i) | |
| 25 | + let q := fun y => ∑ i : Fin 3, d i y | |
| 26 | + have hφ (i : Fin 3) : ∀ y, ContDiff ℝ ∞ (localFieldLift period (φ i) y) := | |
| 27 | + fun y => (EuclideanSpace.proj i : Vector3 →L[ℝ] ℝ).contDiff.comp (hg y) | |
| 28 | + have hd (i : Fin 3) : ∀ y, ContDiff ℝ ∞ (localFieldLift period (d i) y) := | |
| 29 | + fieldDerivative_smooth period (a i) (φ i) (hφ i) | |
| 30 | + have hq : ∀ y, ContDiff ℝ ∞ (localFieldLift period q y) := by | |
| 31 | + intro y | |
| 32 | + change ContDiff ℝ ∞ (fun z => ∑ i : Fin 3, localFieldLift period (d i) y z) | |
| 33 | + exact ContDiff.sum (fun i _ => hd i y) | |
| 34 | + have hzero := smooth_eq_zero_of_compact_test_integrals period q hq (fun ψ hψc hψ => by | |
| 35 | + have hw := weak_divergence_test_integral period κ m hu ψ ⟨hψc,hψ⟩ | |
| 36 | + have hw' : (∫ y, ∑ i : Fin 3, φ i y * fieldDerivative period (a i) ψ y ∂liftMeasure period) = 0 := by | |
| 37 | + rw [← hw] | |
| 38 | + apply integral_congr_ae | |
| 39 | + filter_upwards [hrep] with y hy | |
| 40 | + rw [hy,EuclideanSpace.inner_eq_star_dotProduct] | |
| 41 | + change (∑ i : Fin 3, g y i * fieldDerivative period (coordinateDirection κ m i) ψ y) = | |
| 42 | + ∑ i : Fin 3, g y i * liftedGradient period κ m ψ y i | |
| 43 | + simp_rw [liftedGradient_component] | |
| 44 | + have hI (i : Fin 3) := scalar_product_integrable period (d i) ψ (hd i) hψ hψc | |
| 45 | + have hJ (i : Fin 3) := scalar_product_integrable period (φ i) (fieldDerivative period (a i) ψ) | |
| 46 | + (hφ i) (fieldDerivative_smooth period (a i) ψ hψ) (fieldDerivative_compact period (a i) ψ hψc) | |
| 47 | + change (∫ y, (∑ i : Fin 3, d i y) * ψ y ∂liftMeasure period) = 0 | |
| 48 | + simp_rw [Finset.sum_mul] | |
| 49 | + rw [integral_finsetSum _ (fun i _ => hI i)] | |
| 50 | + calc | |
| 51 | + _ = ∑ i : Fin 3, -(∫ y, φ i y * fieldDerivative period (a i) ψ y ∂liftMeasure period) := by | |
| 52 | + apply Finset.sum_congr rfl | |
| 53 | + intro i _ | |
| 54 | + exact scalar_integration_by_parts_test period (a i) (φ i) ψ (hφ i) hψ hψc | |
| 55 | + _ = -(∫ y, ∑ i : Fin 3, φ i y * fieldDerivative period (a i) ψ y ∂liftMeasure period) := by | |
| 56 | + rw [integral_finsetSum _ (fun i _ => hJ i),Finset.sum_neg_distrib] | |
| 57 | + _ = 0 := by rw [hw',neg_zero]) | |
| 58 | + intro x | |
| 59 | + calc | |
| 60 | + _ = q x := by | |
| 61 | + apply Finset.sum_congr rfl | |
| 62 | + intro i _ | |
| 63 | + exact (fieldDerivative_linear period (EuclideanSpace.proj i) g hg (a i) x).symm | |
| 64 | + _ = 0 := hzero x | |
| 65 | + | |
| 66 | +end EulerClassicalDivergence | |
+215 −0 Euler/ClassicalPressureCurl.lean added View file
| @@ -0,0 +1,215 @@ | ||
| 1 | +import Euler.EulerProof | |
| 2 | + | |
| 3 | +/-! Classical lifted closedness of actual smooth representatives of the closed L² gradient space. -/ | |
| 4 | + | |
| 5 | +noncomputable section | |
| 6 | + | |
| 7 | +namespace EulerClassicalPressureCurl | |
| 8 | + | |
| 9 | +open MeasureTheory InnerProductSpace EulerLiftedGradientSpace EulerMetricTransport | |
| 10 | + EulerTransportDerivatives EulerLiftedWeakDerivative EulerNoncompactTransport EulerLiftedCurl | |
| 11 | +open scoped ContDiff ENNReal NNReal Topology | |
| 12 | + | |
| 13 | +variable (period : ℝ) [Fact (0 < period)] | |
| 14 | + | |
| 15 | +/-- Product cylinder volume assigns positive measure to every nonempty open set. -/ | |
| 16 | +instance liftMeasure_openPos : MeasureTheory.Measure.IsOpenPosMeasure (liftMeasure period) := by | |
| 17 | + unfold liftMeasure | |
| 18 | + infer_instance | |
| 19 | + | |
| 20 | +omit [Fact (0 < period)] in | |
| 21 | +/-- The scalar directional product rule in the genuine cylinder covering coordinates. -/ | |
| 22 | +theorem fieldDerivative_mul (a : LiftTangent) (f g : LiftDomain period → ℝ) | |
| 23 | + (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) | |
| 24 | + (hg : ∀ x, ContDiff ℝ ∞ (localFieldLift period g x)) (x : LiftDomain period) : | |
| 25 | + fieldDerivative period a (fun y => f y * g y) x = | |
| 26 | + fieldDerivative period a f x * g x + f x * fieldDerivative period a g x := by | |
| 27 | + have h := ((((hf x).differentiable (by simp)) 0).hasFDerivAt.mul | |
| 28 | + (((hg x).differentiable (by simp)) 0).hasFDerivAt).fderiv | |
| 29 | + have he := congrArg (fun L : LiftTangent →L[ℝ] ℝ => L a) h | |
| 30 | + simpa +unfoldPartialApp [fieldDerivative, localFieldLift, Pi.mul_def, mul_comm, add_comm] using he | |
| 31 | + | |
| 32 | +/-- A smooth scalar field times a compact smooth scalar field is integrable. -/ | |
| 33 | +theorem scalar_product_integrable (f g : LiftDomain period → ℝ) | |
| 34 | + (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) | |
| 35 | + (hg : ∀ x, ContDiff ℝ ∞ (localFieldLift period g x)) | |
| 36 | + (hgc : HasCompactSupport g) : | |
| 37 | + Integrable (fun x => f x * g x) (liftMeasure period) := | |
| 38 | + ((smoothField_continuous period f hf).mul (smoothField_continuous period g hg)).integrable_of_hasCompactSupport hgc.mul_left | |
| 39 | + | |
| 40 | +/-- Scalar integration by parts with only the test factor compactly supported. -/ | |
| 41 | +theorem scalar_integration_by_parts_test (a : LiftTangent) (f ψ : LiftDomain period → ℝ) | |
| 42 | + (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift period f x)) | |
| 43 | + (hψ : ∀ x, ContDiff ℝ ∞ (localFieldLift period ψ x)) | |
| 44 | + (hψc : HasCompactSupport ψ) : | |
| 45 | + (∫ x, fieldDerivative period a f x * ψ x ∂liftMeasure period) = | |
| 46 | + -(∫ x, f x * fieldDerivative period a ψ x ∂liftMeasure period) := by | |
| 47 | + let Df := fieldDerivative period a f | |
| 48 | + let Dψ := fieldDerivative period a ψ | |
| 49 | + let F := fun n x => fieldDerivative period a (fun y => spatialCutoff period n y * f y) x * ψ x | |
| 50 | + let G := fun n x => spatialCutoff period n x * (f x * Dψ x) | |
| 51 | + have hDf := fieldDerivative_smooth period a f hf | |
| 52 | + have hDψ := fieldDerivative_smooth period a ψ hψ | |
| 53 | + have hI := scalar_product_integrable period Df ψ hDf hψ hψc | |
| 54 | + have hJ := scalar_product_integrable period f ψ hf hψ hψc | |
| 55 | + have hR := scalar_product_integrable period f Dψ hf hDψ (fieldDerivative_compact period a ψ hψc) | |
| 56 | + have hs (n : ℕ) (x : LiftDomain period) : | |
| 57 | + ContDiff ℝ ∞ (localFieldLift period (fun y => spatialCutoff period n y * f y) x) := | |
| 58 | + (spatialCutoff_smooth period n x).mul (hf x) | |
| 59 | + have hFG (n : ℕ) : (∫ x, F n x ∂liftMeasure period) = -(∫ x, G n x ∂liftMeasure period) := by | |
| 60 | + have h := scalar_integration_by_parts period a | |
| 61 | + (fun y => spatialCutoff period n y * f y) ψ | |
| 62 | + (spatialCutoff_compact period n).mul_right hψc (hs n) hψ | |
| 63 | + simpa only [F, G, Dψ, mul_assoc] using h | |
| 64 | + obtain ⟨M, hM, hMb⟩ := spatialCutoff_derivative_bound period | |
| 65 | + have hDc (n : ℕ) (x : LiftDomain period) : | |
| 66 | + ‖fieldDerivative period a (spatialCutoff period n) x‖ ≤ M * ‖a‖ := by | |
| 67 | + calc | |
| 68 | + _ ≤ M * cutoffScale n * ‖a‖ := hMb n x a | |
| 69 | + _ ≤ M * 1 * ‖a‖ := by gcongr; exact cutoffScale_le_one n | |
| 70 | + _ = _ := by ring | |
| 71 | + have hFm (n : ℕ) : AEStronglyMeasurable (F n) (liftMeasure period) := | |
| 72 | + ((smoothField_continuous period _ (fieldDerivative_smooth period a _ (hs n))).mul | |
| 73 | + (smoothField_continuous period ψ hψ)).aestronglyMeasurable | |
| 74 | + have hFb (n : ℕ) : ∀ᵐ x ∂liftMeasure period, | |
| 75 | + ‖F n x‖ ≤ ‖Df x * ψ x‖ + (M * ‖a‖) * ‖f x * ψ x‖ := by | |
| 76 | + apply Filter.Eventually.of_forall | |
| 77 | + intro x | |
| 78 | + have hc := spatialCutoff_bounds period n x | |
| 79 | + have hcn : ‖spatialCutoff period n x‖ ≤ 1 := by | |
| 80 | + simpa only [Real.norm_eq_abs, abs_of_nonneg hc.1] using hc.2 | |
| 81 | + have he : F n x = fieldDerivative period a (spatialCutoff period n) x * (f x * ψ x) + | |
| 82 | + spatialCutoff period n x * (Df x * ψ x) := by | |
| 83 | + dsimp [F, Df] | |
| 84 | + rw [fieldDerivative_mul period a _ f (spatialCutoff_smooth period n) hf] | |
| 85 | + ring | |
| 86 | + rw [he] | |
| 87 | + calc | |
| 88 | + _ ≤ ‖fieldDerivative period a (spatialCutoff period n) x‖ * ‖f x * ψ x‖ + | |
| 89 | + ‖spatialCutoff period n x‖ * ‖Df x * ψ x‖ := by | |
| 90 | + simpa only [norm_mul] using norm_add_le | |
| 91 | + (fieldDerivative period a (spatialCutoff period n) x * (f x * ψ x)) | |
| 92 | + (spatialCutoff period n x * (Df x * ψ x)) | |
| 93 | + _ ≤ (M * ‖a‖) * ‖f x * ψ x‖ + 1 * ‖Df x * ψ x‖ := by gcongr; exact hDc n x | |
| 94 | + _ = _ := by ring | |
| 95 | + have hFl : ∀ᵐ x ∂liftMeasure period, Filter.Tendsto (fun n => F n x) Filter.atTop (𝓝 (Df x * ψ x)) := by | |
| 96 | + apply Filter.Eventually.of_forall | |
| 97 | + intro x | |
| 98 | + have hdc : Filter.Tendsto (fun n => fieldDerivative period a (spatialCutoff period n) x) | |
| 99 | + Filter.atTop (𝓝 0) := spatialCutoff_derivative_tendsto period x a | |
| 100 | + simp_rw [F, fieldDerivative_mul period a _ f (spatialCutoff_smooth period _) hf] | |
| 101 | + simpa only [zero_mul, one_mul, zero_add] using ((hdc.mul_const (f x)).add | |
| 102 | + ((spatialCutoff_tendsto period x).mul_const (Df x))).mul_const (ψ x) | |
| 103 | + have hFt := tendsto_integral_of_dominated_convergence | |
| 104 | + (fun x => ‖Df x * ψ x‖ + (M * ‖a‖) * ‖f x * ψ x‖) | |
| 105 | + hFm (hI.norm.add (hJ.norm.const_mul (M * ‖a‖))) hFb hFl | |
| 106 | + have hGm (n : ℕ) : AEStronglyMeasurable (G n) (liftMeasure period) := | |
| 107 | + ((smoothField_continuous period _ (spatialCutoff_smooth period n)).mul | |
| 108 | + ((smoothField_continuous period f hf).mul (smoothField_continuous period Dψ hDψ))).aestronglyMeasurable | |
| 109 | + have hGb (n : ℕ) : ∀ᵐ x ∂liftMeasure period, ‖G n x‖ ≤ ‖f x * Dψ x‖ := by | |
| 110 | + apply Filter.Eventually.of_forall | |
| 111 | + intro x | |
| 112 | + have hc := spatialCutoff_bounds period n x | |
| 113 | + have hcn : ‖spatialCutoff period n x‖ ≤ 1 := by | |
| 114 | + simpa only [Real.norm_eq_abs, abs_of_nonneg hc.1] using hc.2 | |
| 115 | + change ‖spatialCutoff period n x * (f x * Dψ x)‖ ≤ ‖f x * Dψ x‖ | |
| 116 | + rw [norm_mul] | |
| 117 | + simpa only [one_mul] using mul_le_mul_of_nonneg_right hcn (norm_nonneg (f x * Dψ x)) | |
| 118 | + have hGl : ∀ᵐ x ∂liftMeasure period, Filter.Tendsto (fun n => G n x) Filter.atTop (𝓝 (f x * Dψ x)) := | |
| 119 | + Filter.Eventually.of_forall (fun x => by | |
| 120 | + simpa only [G, one_mul] using (spatialCutoff_tendsto period x).mul_const (f x * Dψ x)) | |
| 121 | + have hGt := tendsto_integral_of_dominated_convergence (fun x => ‖f x * Dψ x‖) | |
| 122 | + hGm hR.norm hGb hGl | |
| 123 | + have hseq : (fun n => ∫ x, F n x ∂liftMeasure period) = fun n => -(∫ x, G n x ∂liftMeasure period) := funext hFG | |
| 124 | + rw [hseq] at hFt | |
| 125 | + exact tendsto_nhds_unique hFt hGt.neg | |
| 126 | + | |
| 127 | +/-- A smooth scalar cylinder field annihilating every compact smooth test is pointwise zero. -/ | |
| 128 | +theorem smooth_eq_zero_of_compact_test_integrals (q : LiftDomain period → ℝ) | |
| 129 | + (hq : ∀ x, ContDiff ℝ ∞ (localFieldLift period q x)) | |
| 130 | + (htest : ∀ ψ : LiftDomain period → ℝ, HasCompactSupport ψ → | |
| 131 | + (∀ x, ContDiff ℝ ∞ (localFieldLift period ψ x)) → | |
| 132 | + (∫ x, q x * ψ x ∂liftMeasure period) = 0) : | |
| 133 | + ∀ x, q x = 0 := by | |
| 134 | + have hzero (n : ℕ) (x : LiftDomain period) : spatialCutoff period n x * (q x) ^ 2 = 0 := by | |
| 135 | + have hcont : Continuous (fun y => spatialCutoff period n y * (q y) ^ 2) := | |
| 136 | + (smoothField_continuous period _ (spatialCutoff_smooth period n)).mul | |
| 137 | + ((smoothField_continuous period q hq).pow 2) | |
| 138 | + have hcomp : HasCompactSupport (fun y => spatialCutoff period n y * (q y) ^ 2) := | |
| 139 | + (spatialCutoff_compact period n).mul_right | |
| 140 | + have hInt : (∫ y, spatialCutoff period n y * (q y) ^ 2 ∂liftMeasure period) = 0 := by | |
| 141 | + have hh := htest (fun y => spatialCutoff period n y * q y) | |
| 142 | + (spatialCutoff_compact period n).mul_right | |
| 143 | + (fun y => (spatialCutoff_smooth period n y).mul (hq y)) | |
| 144 | + rw [← hh] | |
| 145 | + apply integral_congr_ae | |
| 146 | + exact Filter.Eventually.of_forall (fun y => by ring) | |
| 147 | + have hAE : (fun y => spatialCutoff period n y * (q y) ^ 2) =ᵐ[liftMeasure period] 0 := | |
| 148 | + (integral_eq_zero_iff_of_nonneg | |
| 149 | + (fun y => mul_nonneg (spatialCutoff_bounds period n y).1 (sq_nonneg (q y))) | |
| 150 | + (hcont.integrable_of_hasCompactSupport hcomp)).mp hInt | |
| 151 | + exact congrFun (MeasureTheory.Measure.eq_of_ae_eq hAE hcont continuous_const) x | |
| 152 | + intro x | |
| 153 | + have ht := (spatialCutoff_tendsto period x).mul_const ((q x) ^ 2) | |
| 154 | + have hseq : (fun n => spatialCutoff period n x * (q x) ^ 2) = fun _ : ℕ => 0 := | |
| 155 | + funext (fun n => hzero n x) | |
| 156 | + rw [hseq] at ht | |
| 157 | + have hh : (q x) ^ 2 = 0 := by | |
| 158 | + simpa only [one_mul] using tendsto_nhds_unique ht tendsto_const_nhds | |
| 159 | + exact sq_eq_zero_iff.mp hh | |
| 160 | + | |
| 161 | +/-- Every smooth representative of an element of the closed lifted gradient space is classically closed. -/ | |
| 162 | +theorem gradientSpace_classical_curl_zero (κ : ℝ) (m : Vector3) | |
| 163 | + (p : LiftL2 period) (hp : p ∈ gradientSpace period κ m) | |
| 164 | + (g : LiftDomain period → Vector3) | |
| 165 | + (hrep : (p : LiftDomain period → Vector3) =ᵐ[liftMeasure period] g) | |
| 166 | + (hg : ∀ x, ContDiff ℝ ∞ (localFieldLift period g x)) : | |
| 167 | + ∀ x i j, (fieldDerivative period (coordinateDirection κ m i) g x) j = | |
| 168 | + (fieldDerivative period (coordinateDirection κ m j) g x) i := by | |
| 169 | + intro x i j | |
| 170 | + let φ : LiftDomain period → ℝ := fun y => g y i | |
| 171 | + let χ : LiftDomain period → ℝ := fun y => g y j | |
| 172 | + let a := coordinateDirection κ m j | |
| 173 | + let b := coordinateDirection κ m i | |
| 174 | + have hφ : ∀ y, ContDiff ℝ ∞ (localFieldLift period φ y) := | |
| 175 | + fun y => (EuclideanSpace.proj i : Vector3 →L[ℝ] ℝ).contDiff.comp (hg y) | |
| 176 | + have hχ : ∀ y, ContDiff ℝ ∞ (localFieldLift period χ y) := | |
| 177 | + fun y => (EuclideanSpace.proj j : Vector3 →L[ℝ] ℝ).contDiff.comp (hg y) | |
| 178 | + let q := fun y => fieldDerivative period a φ y - fieldDerivative period b χ y | |
| 179 | + have hqa := fieldDerivative_smooth period a φ hφ | |
| 180 | + have hqb := fieldDerivative_smooth period b χ hχ | |
| 181 | + have hq : ∀ y, ContDiff ℝ ∞ (localFieldLift period q y) := fun y => (hqa y).sub (hqb y) | |
| 182 | + have hzero := smooth_eq_zero_of_compact_test_integrals period q hq (fun ψ hψc hψ => by | |
| 183 | + have hw := gradientSpace_weak_curl_zero period κ m hp i j ψ hψc hψ | |
| 184 | + have hw' : (∫ y, φ y * fieldDerivative period a ψ y - χ y * fieldDerivative period b ψ y | |
| 185 | + ∂liftMeasure period) = 0 := by | |
| 186 | + rw [← hw] | |
| 187 | + apply integral_congr_ae | |
| 188 | + filter_upwards [hrep] with y hy | |
| 189 | + rw [hy] | |
| 190 | + have hDaψ := fieldDerivative_smooth period a ψ hψ | |
| 191 | + have hDbψ := fieldDerivative_smooth period b ψ hψ | |
| 192 | + have hIa := scalar_product_integrable period φ (fieldDerivative period a ψ) hφ hDaψ | |
| 193 | + (fieldDerivative_compact period a ψ hψc) | |
| 194 | + have hIb := scalar_product_integrable period χ (fieldDerivative period b ψ) hχ hDbψ | |
| 195 | + (fieldDerivative_compact period b ψ hψc) | |
| 196 | + rw [integral_sub hIa hIb] at hw' | |
| 197 | + have ha := scalar_integration_by_parts_test period a φ ψ hφ hψ hψc | |
| 198 | + have hb := scalar_integration_by_parts_test period b χ ψ hχ hψ hψc | |
| 199 | + have hJa := scalar_product_integrable period (fieldDerivative period a φ) ψ hqa hψ hψc | |
| 200 | + have hJb := scalar_product_integrable period (fieldDerivative period b χ) ψ hqb hψ hψc | |
| 201 | + change (∫ y, (fieldDerivative period a φ y - fieldDerivative period b χ y) * ψ y | |
| 202 | + ∂liftMeasure period) = 0 | |
| 203 | + simp_rw [sub_mul] | |
| 204 | + rw [integral_sub hJa hJb] | |
| 205 | + linarith) | |
| 206 | + have ha : fieldDerivative period a φ x = (fieldDerivative period a g x) i := | |
| 207 | + fieldDerivative_linear period (EuclideanSpace.proj i) g hg a x | |
| 208 | + have hb : fieldDerivative period b χ x = (fieldDerivative period b g x) j := | |
| 209 | + fieldDerivative_linear period (EuclideanSpace.proj j) g hg b x | |
| 210 | + have hz := hzero x | |
| 211 | + change fieldDerivative period a φ x - fieldDerivative period b χ x = 0 at hz | |
| 212 | + rw [ha, hb] at hz | |
| 213 | + exact (sub_eq_zero.mp hz).symm | |
| 214 | + | |
| 215 | +end EulerClassicalPressureCurl | |
+74 −0 Euler/ClosedIntervalDerivativeExtension.lean added View file
| @@ -0,0 +1,74 @@ | ||
| 1 | +import Mathlib.Analysis.Calculus.Deriv.Add | |
| 2 | +import Mathlib.Analysis.Calculus.Deriv.Mul | |
| 3 | +import Mathlib.Topology.Order.OrderClosed | |
| 4 | + | |
| 5 | +/-! | |
| 6 | +An explicit extension converts one-sided derivatives on a nondegenerate | |
| 7 | +closed time interval into ordinary derivatives there. It uses affine tails | |
| 8 | +whose slopes are the actual endpoint derivatives. | |
| 9 | +-/ | |
| 10 | + | |
| 11 | +noncomputable section | |
| 12 | + | |
| 13 | + | |
| 14 | +namespace EulerClosedIntervalDerivativeExtension | |
| 15 | + | |
| 16 | +open Set Filter | |
| 17 | + | |
| 18 | +variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 19 | + | |
| 20 | +def affineExtension (f : ℝ → E) (g₀ gT : E) (T t : ℝ) : E := | |
| 21 | + if t < 0 then f 0 + t • g₀ else if T < t then f T + (t-T) • gT else f t | |
| 22 | + | |
| 23 | +theorem affineExtension_eq {f : ℝ → E} {g₀ gT : E} {T t : ℝ} | |
| 24 | + (ht : t ∈ Icc 0 T) : affineExtension f g₀ gT T t = f t := by | |
| 25 | + simp only [affineExtension, not_lt.mpr ht.1, not_lt.mpr ht.2, ite_false] | |
| 26 | + | |
| 27 | +theorem affineExtension_eq_left {f : ℝ → E} {g₀ gT : E} {T t : ℝ} | |
| 28 | + (hT : 0 ≤ T) (ht : t ≤ 0) : affineExtension f g₀ gT T t = f 0+t • g₀ := by | |
| 29 | + rcases ht.eq_or_lt with rfl | ht | |
| 30 | + · simp [affineExtension, not_lt.mpr hT] | |
| 31 | + · simp only [affineExtension, ht, ite_true] | |
| 32 | + | |
| 33 | +theorem affineExtension_eq_right {f : ℝ → E} {g₀ gT : E} {T t : ℝ} | |
| 34 | + (hT : 0 ≤ T) (ht : T ≤ t) : affineExtension f g₀ gT T t = f T+(t-T) • gT := by | |
| 35 | + rcases ht.eq_or_lt with rfl | ht | |
| 36 | + · simp [affineExtension, not_lt.mpr hT] | |
| 37 | + · simp only [affineExtension, not_lt.mpr (hT.trans ht.le), ht, ite_false, ite_true] | |
| 38 | + | |
| 39 | +/-- No continuity of the derivative is needed: the matching endpoint slopes | |
| 40 | +and the one-sided derivative suffice. -/ | |
| 41 | +theorem affineExtension_hasDerivAt {f g : ℝ → E} {T t : ℝ} | |
| 42 | + (hT : 0 < T) (ht : t ∈ Icc 0 T) | |
| 43 | + (hf : HasDerivWithinAt f (g t) (Icc 0 T) t) : | |
| 44 | + HasDerivAt (affineExtension f (g 0) (g T) T) (g t) t := by | |
| 45 | + have hwithin : HasDerivWithinAt (affineExtension f (g 0) (g T) T) (g t) (Icc 0 T) t := | |
| 46 | + hf.congr_of_mem (fun _ hs => affineExtension_eq hs) ht | |
| 47 | + by_cases ht0 : t = 0 | |
| 48 | + · subst t | |
| 49 | + have hleft : HasDerivAt (fun s : ℝ => f 0+s • g 0) (g 0) 0 := by | |
| 50 | + simpa only [one_smul, id_eq] using ((hasDerivAt_id (0:ℝ)).smul_const (g 0)).const_add (f 0) | |
| 51 | + have hl := hleft.hasDerivWithinAt.congr_of_mem | |
| 52 | + (fun s (hs : s ∈ Iic (0:ℝ)) => affineExtension_eq_left (gT := g T) hT.le hs) self_mem_Iic | |
| 53 | + have hr := hwithin.mono_of_mem_nhdsWithin (Icc_mem_nhdsGE hT) | |
| 54 | + simpa only [Iic_union_Ici, hasDerivWithinAt_univ] using hl.union hr | |
| 55 | + · by_cases htT : t = T | |
| 56 | + · subst t | |
| 57 | + have hright : HasDerivAt (fun s : ℝ => f T+(s-T) • g T) (g T) T := by | |
| 58 | + simpa only [one_smul, id_eq] using (((hasDerivAt_id T).sub_const T).smul_const (g T)).const_add (f T) | |
| 59 | + have hr := hright.hasDerivWithinAt.congr_of_mem | |
| 60 | + (fun s (hs : s ∈ Ici T) => affineExtension_eq_right (g₀ := g 0) hT.le hs) self_mem_Ici | |
| 61 | + have hl := hwithin.mono_of_mem_nhdsWithin (Icc_mem_nhdsLE hT) | |
| 62 | + simpa only [Iic_union_Ici, hasDerivWithinAt_univ] using hl.union hr | |
| 63 | + · exact hwithin.hasDerivAt (Icc_mem_nhds (lt_of_le_of_ne ht.1 (Ne.symm ht0)) | |
| 64 | + (lt_of_le_of_ne ht.2 htT)) | |
| 65 | + | |
| 66 | +theorem exists_extension {f g : ℝ → E} {T : ℝ} (hT : 0 < T) | |
| 67 | + (hf : ∀ t ∈ Icc 0 T, HasDerivWithinAt f (g t) (Icc 0 T) t) : | |
| 68 | + ∃ F : ℝ → E, EqOn F f (Icc 0 T) ∧ | |
| 69 | + ∀ t ∈ Icc 0 T, HasDerivAt F (g t) t := by | |
| 70 | + refine ⟨affineExtension f (g 0) (g T) T, fun _ ht => affineExtension_eq ht, ?_⟩ | |
| 71 | + intro t ht | |
| 72 | + exact affineExtension_hasDerivAt hT ht (hf t ht) | |
| 73 | + | |
| 74 | +end EulerClosedIntervalDerivativeExtension | |
+86 −0 Euler/ClosedTranslationGraph.lean added View file
| @@ -0,0 +1,86 @@ | ||
| 1 | +import Euler.EulerProof | |
| 2 | + | |
| 3 | +/-! Closed graphs of the genuine strong cylinder translation derivatives. -/ | |
| 4 | + | |
| 5 | +noncomputable section | |
| 6 | + | |
| 7 | +namespace EulerClosedTranslationGraph | |
| 8 | + | |
| 9 | +open MeasureTheory EulerLiftedGradientSpace EulerPressureSpatialRegularity EulerCylinderMollifier | |
| 10 | +open scoped Topology | |
| 11 | + | |
| 12 | +variable (period : ℝ) [Fact (0 < period)] | |
| 13 | + | |
| 14 | +omit [Fact (0 < period)] in | |
| 15 | +/-- A covering-space direction gives an additive one-parameter cylinder translation. -/ | |
| 16 | +theorem translationPath_add (a : LiftTangent) (s t : ℝ) : | |
| 17 | + translationPath period a (s + t) = translationPath period a s + translationPath period a t := by | |
| 18 | + ext <;> simp [translationPath, coveringMap, add_smul] | |
| 19 | + | |
| 20 | +/-- Strong differentiation of a translation orbit at zero determines its derivative everywhere. -/ | |
| 21 | +theorem translation_hasDerivAt_all (a : LiftTangent) (f g : LiftL2 period) | |
| 22 | + (h : HasDerivAt (fun s => translation period (translationPath period a s) f) g 0) (t : ℝ) : | |
| 23 | + HasDerivAt (fun s => translation period (translationPath period a s) f) | |
| 24 | + (translation period (translationPath period a t) g) t := by | |
| 25 | + have hshift : HasDerivAt | |
| 26 | + (fun s => translation period (translationPath period a t) | |
| 27 | + (translation period (translationPath period a s) f)) | |
| 28 | + (translation period (translationPath period a t) g) 0 := | |
| 29 | + (translation period (translationPath period a t)).toContinuousLinearMap.hasFDerivAt.comp_hasDerivAt 0 h | |
| 30 | + have hd := hshift.scomp_of_eq t ((hasDerivAt_id t).sub_const t) (by simp) | |
| 31 | + have hshape : (fun s => translation period (translationPath period a t) | |
| 32 | + (translation period (translationPath period a (s - t)) f)) = | |
| 33 | + fun s => translation period (translationPath period a s) f := by | |
| 34 | + funext s | |
| 35 | + rw [translation_add, ← translationPath_add] | |
| 36 | + rw [show t + (s - t) = s by ring] | |
| 37 | + simpa only [Function.comp_def, id_eq, hshape, one_smul] using hd | |
| 38 | + | |
| 39 | +/-- Convergence of L² fields gives uniform convergence of their entire isometric translation orbits. -/ | |
| 40 | +theorem translation_orbits_tendstoUniformly {ι : Type*} {l : Filter ι} | |
| 41 | + (a : LiftTangent) (f : ι → LiftL2 period) (g : LiftL2 period) | |
| 42 | + (hf : Filter.Tendsto f l (𝓝 g)) : | |
| 43 | + TendstoUniformly (fun n t => translation period (translationPath period a t) (f n)) | |
| 44 | + (fun t => translation period (translationPath period a t) g) l := by | |
| 45 | + apply Metric.tendstoUniformly_iff.mpr | |
| 46 | + intro ε hε | |
| 47 | + have he := hf.eventually (Metric.ball_mem_nhds g hε) | |
| 48 | + filter_upwards [he] with n hn t | |
| 49 | + rw [(translation period (translationPath period a t)).dist_map] | |
| 50 | + simpa only [Metric.mem_ball, dist_comm] using hn | |
| 51 | + | |
| 52 | +/-- The graph of one genuine strong L² translation derivative, as a linear subspace. -/ | |
| 53 | +def translationDerivativeGraph (a : LiftTangent) : Submodule ℝ (LiftL2 period × LiftL2 period) where | |
| 54 | + carrier := {p | HasDerivAt (fun t => translation period (translationPath period a t) p.1) p.2 0} | |
| 55 | + zero_mem' := by | |
| 56 | + change HasDerivAt (fun t => translation period (translationPath period a t) 0) 0 0 | |
| 57 | + simpa only [map_zero] using hasDerivAt_const (0 : ℝ) (0 : LiftL2 period) | |
| 58 | + add_mem' := by | |
| 59 | + intro p q hp hq | |
| 60 | + change HasDerivAt (fun t => translation period (translationPath period a t) (p.1 + q.1)) (p.2 + q.2) 0 | |
| 61 | + simpa only [map_add] using hp.fun_add hq | |
| 62 | + smul_mem' := by | |
| 63 | + intro r p hp | |
| 64 | + change HasDerivAt (fun t => translation period (translationPath period a t) (r • p.1)) (r • p.2) 0 | |
| 65 | + simpa only [map_smul, Pi.smul_def] using hp.const_smul r | |
| 66 | + | |
| 67 | +/-- The strong translation derivative is a closed operator on the actual cylinder L² space. -/ | |
| 68 | +theorem translationDerivativeGraph_closed (a : LiftTangent) : | |
| 69 | + IsClosed (translationDerivativeGraph period a : Set (LiftL2 period × LiftL2 period)) := by | |
| 70 | + apply isSeqClosed_iff_isClosed.mp | |
| 71 | + intro v p hv hvp | |
| 72 | + have hfst : Filter.Tendsto (fun n => (v n).1) Filter.atTop (𝓝 p.1) := | |
| 73 | + (continuous_fst.tendsto p).comp hvp | |
| 74 | + have hsnd : Filter.Tendsto (fun n => (v n).2) Filter.atTop (𝓝 p.2) := | |
| 75 | + (continuous_snd.tendsto p).comp hvp | |
| 76 | + have hder : ∀ᶠ n : ℕ in Filter.atTop, ∀ t : ℝ, | |
| 77 | + HasDerivAt (fun s => translation period (translationPath period a s) (v n).1) | |
| 78 | + (translation period (translationPath period a t) (v n).2) t := | |
| 79 | + Filter.Eventually.of_forall (fun n t => translation_hasDerivAt_all period a (v n).1 (v n).2 (hv n) t) | |
| 80 | + have hlim := hasDerivAt_of_tendstoUniformly | |
| 81 | + (translation_orbits_tendstoUniformly period a (fun n => (v n).2) p.2 hsnd) hder | |
| 82 | + (fun t => (translation period (translationPath period a t)).continuous.continuousAt.tendsto.comp hfst) 0 | |
| 83 | + change HasDerivAt (fun t => translation period (translationPath period a t) p.1) p.2 0 | |
| 84 | + simpa only [translationPath_zero, translation_zero] using hlim | |
| 85 | + | |
| 86 | +end EulerClosedTranslationGraph | |
+92 −0 Euler/CoefficientCostMonotone.lean added View file
| @@ -0,0 +1,92 @@ | ||
| 1 | +import Euler.ParameterSobolevCostMonotone | |
| 2 | +import Euler.CoefficientJetPressureBounds | |
| 3 | +import Euler.PolynomialCostMajorant | |
| 4 | + | |
| 5 | +/-! Joint monotonicity and genuine polynomial formulas for fixed-order | |
| 6 | +coefficient and pressure constants. These give uniform parent-scale bounds. -/ | |
| 7 | + | |
| 8 | +noncomputable section | |
| 9 | + | |
| 10 | +namespace EulerParameterWordGevrey | |
| 11 | + | |
| 12 | +open Finset | |
| 13 | + | |
| 14 | +theorem sobolevCoefficientAmplitude_mono_all {ι : Type*} [Fintype ι] | |
| 15 | + (q : ℕ) {R C S D : ℝ} (hR : 0 ≤ R) (hC : 0 ≤ C) (hRS : R ≤ S) (hCD : C ≤ D) : | |
| 16 | + sobolevCoefficientAmplitude ι q R C ≤ sobolevCoefficientAmplitude ι q S D := by | |
| 17 | + have hS : 0 ≤ S := hR.trans hRS | |
| 18 | + have hD : 0 ≤ D := hC.trans hCD | |
| 19 | + have hr := sobolevCoefficientRadius_nonneg (ι := ι) R hR | |
| 20 | + have hrs : sobolevCoefficientRadius ι R ≤ sobolevCoefficientRadius ι S := by | |
| 21 | + unfold sobolevCoefficientRadius | |
| 22 | + gcongr | |
| 23 | + unfold sobolevCoefficientAmplitude | |
| 24 | + apply mul_le_mul | |
| 25 | + · gcongr | |
| 26 | + · apply sum_le_sum | |
| 27 | + intro k hk | |
| 28 | + exact mul_le_mul_of_nonneg_right (pow_le_pow_left₀ hr hrs k) (sq_nonneg _) | |
| 29 | + · exact sum_nonneg (fun k _ => mul_nonneg (pow_nonneg hr k) (sq_nonneg _)) | |
| 30 | + · positivity | |
| 31 | + | |
| 32 | +def coefficientPolynomial (q : ℕ) (R C : Polynomial ℝ) : Polynomial ℝ := | |
| 33 | + (2 : Polynomial ℝ)^q*C*∑ k ∈ range (q+1), (16*R)^k*Polynomial.C ((k.factorial : ℝ)^2) | |
| 34 | + | |
| 35 | +theorem coefficientPolynomial_eval (q : ℕ) (R C : Polynomial ℝ) (x : ℝ) : | |
| 36 | + (coefficientPolynomial q R C).eval x = | |
| 37 | + sobolevCoefficientAmplitude (Fin 4) q (R.eval x) (C.eval x) := by | |
| 38 | + simp only [coefficientPolynomial,Polynomial.eval_mul,Polynomial.eval_pow,Polynomial.eval_ofNat, | |
| 39 | + Polynomial.eval_finsetSum,Polynomial.eval_C,sobolevCoefficientAmplitude,sobolevCoefficientRadius, | |
| 40 | + Fintype.card_fin,Nat.cast_ofNat,max_eq_right (by norm_num : (1 : ℝ) ≤ 4)] | |
| 41 | + congr 2 | |
| 42 | + funext k | |
| 43 | + rw [show 16*R.eval x=4*(4*R.eval x) by ring] | |
| 44 | + | |
| 45 | +end EulerParameterWordGevrey | |
| 46 | + | |
| 47 | +namespace EulerCoefficientJetPressureBounds | |
| 48 | + | |
| 49 | +theorem productCost_mono {B C : ℝ} (hBC : B ≤ C) (q : ℕ) : productCost B q ≤ productCost C q := by | |
| 50 | + induction q with | |
| 51 | + | zero => exact hBC | |
| 52 | + | succ q ih => | |
| 53 | + simp only [productCost] | |
| 54 | + gcongr | |
| 55 | + | |
| 56 | +theorem pressureCost_mono {c d B C : ℝ} (hc : 0 < c) (hd : 0 < d) (hB : 0 ≤ B) | |
| 57 | + (hci : c⁻¹ ≤ d⁻¹) (hBC : B ≤ C) (q : ℕ) : pressureCost c B q ≤ pressureCost d C q := by | |
| 58 | + have hC : 0 ≤ C := hB.trans hBC | |
| 59 | + induction q with | |
| 60 | + | zero => exact hci | |
| 61 | + | succ q ih => | |
| 62 | + have hp := productCost_nonneg B hB q | |
| 63 | + have hP := productCost_nonneg C hC q | |
| 64 | + have hv := pressureCost_nonneg c B hc hB q | |
| 65 | + have hV := pressureCost_nonneg d C hd hC q | |
| 66 | + have hb := productCost_mono hBC q | |
| 67 | + simp only [pressureCost] | |
| 68 | + gcongr | |
| 69 | + | |
| 70 | +def productPolynomial (B : Polynomial ℝ) : ℕ → Polynomial ℝ | |
| 71 | + | 0 => B | |
| 72 | + | q+1 => B+8*productPolynomial B q | |
| 73 | + | |
| 74 | +def pressurePolynomial (i B : Polynomial ℝ) : ℕ → Polynomial ℝ | |
| 75 | + | 0 => i | |
| 76 | + | q+1 => i+4*(pressurePolynomial i B q*(1+productPolynomial B q*pressurePolynomial i B q)) | |
| 77 | + | |
| 78 | +theorem productPolynomial_eval (B : Polynomial ℝ) (q : ℕ) (x : ℝ) : | |
| 79 | + (productPolynomial B q).eval x=productCost (B.eval x) q := by | |
| 80 | + induction q with | |
| 81 | + | zero => rfl | |
| 82 | + | succ q ih => simp only [productPolynomial,productCost,Polynomial.eval_add, | |
| 83 | + Polynomial.eval_mul,Polynomial.eval_ofNat,ih] | |
| 84 | + | |
| 85 | +theorem pressurePolynomial_eval (i B : Polynomial ℝ) (q : ℕ) (x : ℝ) : | |
| 86 | + (pressurePolynomial i B q).eval x=pressureCost (i.eval x)⁻¹ (B.eval x) q := by | |
| 87 | + induction q with | |
| 88 | + | zero => simp only [pressurePolynomial,pressureCost,inv_inv] | |
| 89 | + | succ q ih => simp only [pressurePolynomial,pressureCost,Polynomial.eval_add, | |
| 90 | + Polynomial.eval_mul,Polynomial.eval_ofNat,Polynomial.eval_one,ih,productPolynomial_eval,inv_inv] | |
| 91 | + | |
| 92 | +end EulerCoefficientJetPressureBounds | |
+136 −0 Euler/CoefficientJetPressureBounds.lean added View file
| @@ -0,0 +1,136 @@ | ||
| 1 | +import Euler.H6Pressure | |
| 2 | + | |
| 3 | +/-! | |
| 4 | +Uniform finite-order product and pressure constants from bounds on the | |
| 5 | +actual coefficient derivative tree. At each fixed Sobolev order these | |
| 6 | +costs are finite polynomials in the coefficient bound and inverse coercivity. | |
| 7 | +-/ | |
| 8 | + | |
| 9 | +noncomputable section | |
| 10 | + | |
| 11 | +namespace EulerCoefficientJetPressureBounds | |
| 12 | + | |
| 13 | +open Finset EulerLiftedGradientSpace EulerSpatialSobolevInverse EulerJetProductBounds | |
| 14 | + | |
| 15 | +def productCost (B : ℝ) : ℕ → ℝ | |
| 16 | + | 0 => B | |
| 17 | + | q+1 => B+8*productCost B q | |
| 18 | + | |
| 19 | +def pressureCost (c B : ℝ) : ℕ → ℝ | |
| 20 | + | 0 => c⁻¹ | |
| 21 | + | q+1 => c⁻¹+4*(pressureCost c B q*(1+productCost B q*pressureCost c B q)) | |
| 22 | + | |
| 23 | +theorem productCost_nonneg (B : ℝ) (hB : 0 ≤ B) (q : ℕ) : 0 ≤ productCost B q := by | |
| 24 | + induction q with | |
| 25 | + | zero => exact hB | |
| 26 | + | succ q ih => simp only [productCost]; positivity | |
| 27 | + | |
| 28 | +theorem pressureCost_nonneg (c B : ℝ) (hc : 0 < c) (hB : 0 ≤ B) (q : ℕ) : | |
| 29 | + 0 ≤ pressureCost c B q := by | |
| 30 | + induction q with | |
| 31 | + | zero => exact inv_nonneg.mpr hc.le | |
| 32 | + | succ q ih => | |
| 33 | + have hp := productCost_nonneg B hB q | |
| 34 | + simp only [pressureCost] | |
| 35 | + positivity | |
| 36 | + | |
| 37 | +variable {P : ℝ} [Fact (0 < P)] {dirs : Fin 4 → LiftTangent} | |
| 38 | + | |
| 39 | +def TreeBound {s : ℕ} {A : SmoothCoefficient P} (K : CoefficientJet P dirs s A) (B : ℝ) : Prop := | |
| 40 | + match K with | |
| 41 | + | .zero A => (A.bound : ℝ) ≤ B | |
| 42 | + | .succ _ lower _ => (A.bound : ℝ) ≤ B ∧ ∀ i, TreeBound (lower i) B | |
| 43 | + | |
| 44 | +omit [Fact (0 < P)] in | |
| 45 | +theorem TreeBound.root {s : ℕ} {A : SmoothCoefficient P} {K : CoefficientJet P dirs s A} | |
| 46 | + {B : ℝ} (hK : TreeBound K B) : (A.bound : ℝ) ≤ B := by | |
| 47 | + cases K with | |
| 48 | + | zero => exact hK | |
| 49 | + | succ => exact hK.1 | |
| 50 | + | |
| 51 | +omit [Fact (0 < P)] in | |
| 52 | +theorem treeBound_of_levels {s : ℕ} {A : SmoothCoefficient P} (K : CoefficientJet P dirs s A) | |
| 53 | + (B : ℝ) (hb : ∀ n, n ≤ s → boundLevel P K n ≤ B) : TreeBound K B := by | |
| 54 | + induction K with | |
| 55 | + | zero A => simpa only [boundLevel,TreeBound] using hb 0 le_rfl | |
| 56 | + | @succ s A dA lower hd ih => | |
| 57 | + refine ⟨?_,?_⟩ | |
| 58 | + · simpa only [boundLevel] using hb 0 (Nat.zero_le _) | |
| 59 | + intro i | |
| 60 | + apply ih i | |
| 61 | + intro n hn | |
| 62 | + have hs : boundLevel P (lower i) n ≤ ∑ j : Fin 4, boundLevel P (lower j) n := | |
| 63 | + single_le_sum (fun j _ => boundLevel_nonneg (lower j)) (mem_univ i) | |
| 64 | + have hh := hb (n+1) (by omega) | |
| 65 | + rw [boundLevel] at hh | |
| 66 | + exact hs.trans hh | |
| 67 | + | |
| 68 | +omit [Fact (0 < P)] in | |
| 69 | +theorem TreeBound.truncate {s : ℕ} {A : SmoothCoefficient P} | |
| 70 | + {K : CoefficientJet P dirs (s+1) A} {B : ℝ} (hK : TreeBound K B) : | |
| 71 | + TreeBound K.truncate B := by | |
| 72 | + induction s generalizing A with | |
| 73 | + | zero => cases K; exact hK.1 | |
| 74 | + | succ s ih => | |
| 75 | + cases K with | |
| 76 | + | succ dA lower hd => | |
| 77 | + exact ⟨hK.1,fun i => ih (hK.2 i)⟩ | |
| 78 | + | |
| 79 | +omit [Fact (0 < P)] in | |
| 80 | +theorem TreeBound.restrict {s : ℕ} {A : SmoothCoefficient P} | |
| 81 | + {K : CoefficientJet P dirs s A} {B : ℝ} (hK : TreeBound K B) | |
| 82 | + (q : ℕ) (hq : q ≤ s) : TreeBound (EulerH6Pressure.CoefficientJet.restrict K q hq) B := by | |
| 83 | + induction q generalizing s A with | |
| 84 | + | zero => | |
| 85 | + rw [EulerH6Pressure.CoefficientJet.restrict,TreeBound] | |
| 86 | + exact hK.root | |
| 87 | + | succ q ih => | |
| 88 | + cases K with | |
| 89 | + | zero => omega | |
| 90 | + | succ dA lower hd => | |
| 91 | + rw [EulerH6Pressure.CoefficientJet.restrict,TreeBound] | |
| 92 | + exact ⟨hK.1,fun i => ih (hK.2 i) (by omega)⟩ | |
| 93 | + | |
| 94 | +omit [Fact (0 < P)] in | |
| 95 | +theorem TreeBound.productConstant_le {s : ℕ} {A : SmoothCoefficient P} | |
| 96 | + {K : CoefficientJet P dirs s A} {B : ℝ} (hK : TreeBound K B) : | |
| 97 | + K.productConstant ≤ productCost B s := by | |
| 98 | + induction s generalizing A with | |
| 99 | + | zero => cases K; simpa only [CoefficientJet.productConstant,productCost,TreeBound] using hK | |
| 100 | + | succ s ih => | |
| 101 | + cases K with | |
| 102 | + | succ dA lower hd => | |
| 103 | + rw [CoefficientJet.productConstant,productCost] | |
| 104 | + calc | |
| 105 | + _ ≤ B+∑ _i : Fin 4, (productCost B s+productCost B s) := | |
| 106 | + add_le_add hK.1 (sum_le_sum (fun i _ => | |
| 107 | + add_le_add (ih hK.truncate) (ih (hK.2 i)))) | |
| 108 | + _ = _ := by norm_num only [sum_const,card_univ,Fintype.card_fin,nsmul_eq_mul]; ring | |
| 109 | + | |
| 110 | +omit [Fact (0 < P)] in | |
| 111 | +theorem TreeBound.pressureConstant_le {s : ℕ} {A : SmoothCoefficient P} | |
| 112 | + {K : CoefficientJet P dirs s A} {B : ℝ} (hK : TreeBound K B) | |
| 113 | + (c : ℝ) (hc : 0 < c) (hB : 0 ≤ B) : K.pressureConstant c ≤ pressureCost c B s := by | |
| 114 | + induction s generalizing A with | |
| 115 | + | zero => cases K; rw [CoefficientJet.pressureConstant,pressureCost] | |
| 116 | + | succ s ih => | |
| 117 | + cases K with | |
| 118 | + | succ dA lower hd => | |
| 119 | + rw [CoefficientJet.pressureConstant,pressureCost] | |
| 120 | + let K₀ := (CoefficientJet.succ dA lower hd).truncate | |
| 121 | + have hp := ih hK.truncate | |
| 122 | + have hp0 : 0 ≤ K₀.pressureConstant c := K₀.pressureConstant_nonneg c hc | |
| 123 | + have hP0 := pressureCost_nonneg c B hc hB s | |
| 124 | + have hC0 := productCost_nonneg B hB s | |
| 125 | + have ht (i : Fin 4) : K₀.pressureConstant c*(1+(lower i).productConstant*K₀.pressureConstant c) ≤ | |
| 126 | + pressureCost c B s*(1+productCost B s*pressureCost c B s) := by | |
| 127 | + have hi := (hK.2 i).productConstant_le | |
| 128 | + have hc0 := (lower i).productConstant_nonneg | |
| 129 | + exact mul_le_mul hp (add_le_add le_rfl (mul_le_mul hi hp hp0 hC0)) | |
| 130 | + (by positivity) hP0 | |
| 131 | + calc | |
| 132 | + _ ≤ c⁻¹+∑ _i : Fin 4, pressureCost c B s*(1+productCost B s*pressureCost c B s) := | |
| 133 | + add_le_add le_rfl (sum_le_sum (fun i _ => ht i)) | |
| 134 | + _ = _ := by norm_num only [sum_const,card_univ,Fintype.card_fin,nsmul_eq_mul] | |
| 135 | + | |
| 136 | +end EulerCoefficientJetPressureBounds | |
+105 −0 Euler/CoefficientPathBounds.lean added View file
| @@ -0,0 +1,105 @@ | ||
| 1 | +import Euler.CoefficientPathSmooth | |
| 2 | +import Euler.ParameterSobolevCoefficient | |
| 3 | +import Euler.H6Pressure | |
| 4 | + | |
| 5 | +/-! | |
| 6 | +The bounds stored in the actual recursive coefficient jet are controlled | |
| 7 | +by the true word derivatives of its bounded-field translation orbit. A | |
| 8 | +single enlargement of the coefficient radius gives fixed-base Sobolev | |
| 9 | +bounds, independent of the jet truncation. | |
| 10 | +-/ | |
| 11 | + | |
| 12 | +noncomputable section | |
| 13 | + | |
| 14 | +namespace EulerCoefficientPath | |
| 15 | + | |
| 16 | +open Set Finset ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace | |
| 17 | + EulerMeanCoefficients EulerMetricTransport EulerTransportDerivatives | |
| 18 | + EulerSpatialSobolevInverse EulerCylinderSobolev EulerJetProductBounds | |
| 19 | + EulerParameterWordGevrey EulerGevrey | |
| 20 | +open scoped ContDiff BoundedContinuousFunction | |
| 21 | + | |
| 22 | +variable {K : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 23 | + | |
| 24 | +def coefficientDirections (i : Fin 4) : Space := (standardDirection i).1 | |
| 25 | + | |
| 26 | +theorem coefficientDirections_norm (i : Fin 4) : ‖coefficientDirections i‖ ≤ 1 := by | |
| 27 | + cases i using Fin.cases <;> simp [coefficientDirections] | |
| 28 | + | |
| 29 | +omit [CompactSpace K] in | |
| 30 | +theorem translateCoefficientPath_zero {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] | |
| 31 | + (A : C(K,Space →ᵇ V)) : translateCoefficientPath A 0 = A := by | |
| 32 | + apply ContinuousMap.ext | |
| 33 | + intro t | |
| 34 | + apply BoundedContinuousFunction.ext | |
| 35 | + intro x | |
| 36 | + change A t (x+0) = A t x | |
| 37 | + rw [add_zero] | |
| 38 | + | |
| 39 | +private local instance : NormedAddCommGroup (Space →L[ℝ] Space) := inferInstance | |
| 40 | +private local instance : NormedSpace ℝ (Space →L[ℝ] Space) := inferInstance | |
| 41 | +private local instance : NormedAddCommGroup (Space →ᵇ Space →L[ℝ] Space) := inferInstance | |
| 42 | +private local instance : NormedSpace ℝ (Space →ᵇ Space →L[ℝ] Space) := inferInstance | |
| 43 | + | |
| 44 | +variable (P : ℝ) [Fact (0 < P)] | |
| 45 | + (A : C(K,Space →ᵇ Space →L[ℝ] Space)) | |
| 46 | + (hA : ContDiff ℝ ∞ (translateCoefficientPath A)) | |
| 47 | + | |
| 48 | +theorem coefficientJet_boundLevel_le_words (s n : ℕ) (t : K) : | |
| 49 | + boundLevel P (coefficientJet P A hA s t) n ≤ | |
| 50 | + wordSum coefficientDirections (translateCoefficientPath A) n 0 := by | |
| 51 | + induction s generalizing A n with | |
| 52 | + | zero => | |
| 53 | + cases n with | |
| 54 | + | zero => | |
| 55 | + rw [wordSum_zero,translateCoefficientPath_zero] | |
| 56 | + simp only [coefficientJet,boundLevel,smoothCoefficient] | |
| 57 | + exact A.norm_coe_le_norm t | |
| 58 | + | succ n => | |
| 59 | + simp only [coefficientJet,boundLevel] | |
| 60 | + exact wordSum_nonneg _ _ _ _ | |
| 61 | + | succ s ih => | |
| 62 | + cases n with | |
| 63 | + | zero => | |
| 64 | + rw [wordSum_zero,translateCoefficientPath_zero] | |
| 65 | + simp only [coefficientJet,boundLevel,smoothCoefficient] | |
| 66 | + exact A.norm_coe_le_norm t | |
| 67 | + | succ n => | |
| 68 | + rw [wordSum_succ coefficientDirections (translateCoefficientPath A) hA n 0] | |
| 69 | + rw [coefficientJet, boundLevel.eq_def] | |
| 70 | + apply sum_le_sum | |
| 71 | + intro i _ | |
| 72 | + have hh := ih (orbitDerivativePath A (coefficientDirections i)) | |
| 73 | + (orbitDerivativePath_orbit A hA (coefficientDirections i)) n | |
| 74 | + have he : translateCoefficientPath (orbitDerivativePath A (coefficientDirections i)) = | |
| 75 | + directional coefficientDirections (translateCoefficientPath A) i := | |
| 76 | + funext (orbitDerivativePath_translation A hA (coefficientDirections i)) | |
| 77 | + rw [he] at hh | |
| 78 | + exact hh | |
| 79 | + | |
| 80 | +theorem coefficientJet_boundLevel_le_tensor (s n : ℕ) (t : K) : | |
| 81 | + boundLevel P (coefficientJet P A hA s t) n ≤ | |
| 82 | + (4 : ℝ)^n*‖iteratedFDeriv ℝ n (translateCoefficientPath A) 0‖ := by | |
| 83 | + have hh := wordSum_le coefficientDirections coefficientDirections_norm (translateCoefficientPath A) n 0 | |
| 84 | + norm_num only [Fintype.card_fin] at hh | |
| 85 | + exact (coefficientJet_boundLevel_le_words P A hA s n t).trans hh | |
| 86 | + | |
| 87 | +theorem coefficientJet_block_le_words (s q n : ℕ) (t : K) : | |
| 88 | + EulerH6Pressure.coefficientBlock P (coefficientJet P A hA s t) q n ≤ | |
| 89 | + EulerParameterWordGevrey.coefficientBlock coefficientDirections q (translateCoefficientPath A) n 0 := by | |
| 90 | + change (2 : ℝ)^q*(∑ r ∈ range (q+1),boundLevel P (coefficientJet P A hA s t) (n+r)) ≤ | |
| 91 | + (2 : ℝ)^q*block coefficientDirections q (translateCoefficientPath A) n 0 | |
| 92 | + rw [block_eq_sum_levels coefficientDirections q (translateCoefficientPath A) hA n 0] | |
| 93 | + exact mul_le_mul_of_nonneg_left | |
| 94 | + (sum_le_sum (fun r _ => coefficientJet_boundLevel_le_words P A hA s (n+r) t)) (by positivity) | |
| 95 | + | |
| 96 | +theorem coefficientJet_block_bound (s q : ℕ) (Rc C : ℝ) (hRc : 0 ≤ Rc) (hC : 0 ≤ C) | |
| 97 | + (hb : ∀ n x, ‖iteratedFDeriv ℝ n (translateCoefficientPath A) x‖ ≤ C*majorant Rc 0 n) | |
| 98 | + (n : ℕ) (t : K) : | |
| 99 | + EulerH6Pressure.coefficientBlock P (coefficientJet P A hA s t) q n ≤ | |
| 100 | + sobolevCoefficientAmplitude (Fin 4) q Rc C * majorant (sobolevCoefficientRadius (Fin 4) Rc) 0 n := | |
| 101 | + (coefficientJet_block_le_words P A hA s q n t).trans | |
| 102 | + (coefficientBlock_of_tensor_bound coefficientDirections coefficientDirections_norm q | |
| 103 | + (translateCoefficientPath A) hA Rc C hRc hC hb n 0) | |
| 104 | + | |
| 105 | +end EulerCoefficientPath | |
+100 −0 Euler/CoefficientPathOrbit.lean added View file
| @@ -0,0 +1,100 @@ | ||
| 1 | +import Euler.MeanCoefficientPathJets | |
| 2 | + | |
| 3 | +/-! A genuinely smooth bounded-coefficient translation orbit supplies | |
| 4 | +actual bounded spatial derivatives, continuously over the time parameter. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerMeanCoefficients | |
| 9 | + | |
| 10 | +open EulerSmoothLimit ContinuousLinearMap | |
| 11 | +open scoped ContDiff BoundedContinuousFunction | |
| 12 | + | |
| 13 | +variable {K V : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 14 | + [NormedAddCommGroup V] [NormedSpace ℝ V] | |
| 15 | + | |
| 16 | +private local instance : NormedAddCommGroup (Space →ᵇ V) := inferInstance | |
| 17 | +private local instance : NormedSpace ℝ (Space →ᵇ V) := inferInstance | |
| 18 | +private local instance : NormedAddCommGroup C(K, Space →ᵇ V) := inferInstance | |
| 19 | +private local instance : NormedSpace ℝ C(K, Space →ᵇ V) := inferInstance | |
| 20 | + | |
| 21 | +theorem coefficientOrbit_smooth (A : C(K, Space →ᵇ V)) | |
| 22 | + (hA : ContDiff ℝ ∞ (translateCoefficientPath A)) (t : K) : | |
| 23 | + ContDiff ℝ ∞ (A t : Space → V) := by | |
| 24 | + let ev : C(K, Space →ᵇ V) →L[ℝ] V := | |
| 25 | + (BoundedContinuousFunction.evalCLM ℝ (0 : Space)).comp (ContinuousMap.evalCLM ℝ t) | |
| 26 | + have h := (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) | |
| 27 | + (E := C(K, Space →ᵇ V)) (F := V) ev).comp hA | |
| 28 | + change ContDiff ℝ ∞ (fun a : Space => A t (0+a)) at h | |
| 29 | + simpa only [zero_add] using h | |
| 30 | + | |
| 31 | +theorem coefficientOrbit_iteratedFDeriv_apply (A : C(K, Space →ᵇ V)) | |
| 32 | + (hA : ContDiff ℝ ∞ (translateCoefficientPath A)) | |
| 33 | + (n : ℕ) (a : Space) (t : K) (x : Space) (v : Fin n → Space) : | |
| 34 | + (iteratedFDeriv ℝ n (translateCoefficientPath A) a v) t x = | |
| 35 | + iteratedFDeriv ℝ n (A t : Space → V) (x+a) v := by | |
| 36 | + let ev : C(K, Space →ᵇ V) →L[ℝ] V := | |
| 37 | + (BoundedContinuousFunction.evalCLM ℝ x).comp (ContinuousMap.evalCLM ℝ t) | |
| 38 | + have he := ContinuousLinearMap.iteratedFDeriv_comp_left (𝕜 := ℝ) | |
| 39 | + (E := Space) (F := C(K, Space →ᵇ V)) (G := V) ev | |
| 40 | + (hA.contDiffAt (x := a)) (i := n) (by simp) | |
| 41 | + have hv := congrArg (fun L : Space [×n]→L[ℝ] V => L v) he | |
| 42 | + change iteratedFDeriv ℝ n (fun b => A t (x+b)) a v = | |
| 43 | + (iteratedFDeriv ℝ n (translateCoefficientPath A) a v) t x at hv | |
| 44 | + rw [iteratedFDeriv_comp_add_left] at hv | |
| 45 | + exact hv.symm | |
| 46 | + | |
| 47 | +theorem coefficientOrbit_fderiv_apply (A : C(K, Space →ᵇ V)) | |
| 48 | + (hA : ContDiff ℝ ∞ (translateCoefficientPath A)) | |
| 49 | + (a v : Space) (t : K) (x : Space) : | |
| 50 | + (fderiv ℝ (translateCoefficientPath A) a v) t x = | |
| 51 | + fderiv ℝ (A t : Space → V) (x+a) v := by | |
| 52 | + simpa only [iteratedFDeriv_one_apply] using | |
| 53 | + coefficientOrbit_iteratedFDeriv_apply A hA 1 a t x (fun _ => v) | |
| 54 | + | |
| 55 | +/-- The derivative is itself an actual continuous path of bounded fields. -/ | |
| 56 | +def orbitDerivativePath (A : C(K, Space →ᵇ V)) (v : Space) : C(K, Space →ᵇ V) := | |
| 57 | + fderiv ℝ (translateCoefficientPath A) 0 v | |
| 58 | + | |
| 59 | +theorem orbitDerivativePath_apply (A : C(K, Space →ᵇ V)) | |
| 60 | + (hA : ContDiff ℝ ∞ (translateCoefficientPath A)) (v : Space) (t : K) (x : Space) : | |
| 61 | + orbitDerivativePath A v t x = fderiv ℝ (A t : Space → V) x v := by | |
| 62 | + unfold orbitDerivativePath | |
| 63 | + simpa only [add_zero] using coefficientOrbit_fderiv_apply A hA 0 v t x | |
| 64 | + | |
| 65 | +theorem orbitDerivativePath_translation (A : C(K, Space →ᵇ V)) | |
| 66 | + (hA : ContDiff ℝ ∞ (translateCoefficientPath A)) (v a : Space) : | |
| 67 | + translateCoefficientPath (orbitDerivativePath A v) a = | |
| 68 | + fderiv ℝ (translateCoefficientPath A) a v := by | |
| 69 | + apply ContinuousMap.ext | |
| 70 | + intro t | |
| 71 | + apply BoundedContinuousFunction.ext | |
| 72 | + intro x | |
| 73 | + change orbitDerivativePath A v t (x+a) = _ | |
| 74 | + rw [orbitDerivativePath_apply A hA,coefficientOrbit_fderiv_apply A hA] | |
| 75 | + | |
| 76 | +theorem orbitDerivativePath_orbit (A : C(K, Space →ᵇ V)) | |
| 77 | + (hA : ContDiff ℝ ∞ (translateCoefficientPath A)) (v : Space) : | |
| 78 | + ContDiff ℝ ∞ (translateCoefficientPath (orbitDerivativePath A v)) := by | |
| 79 | + have he : translateCoefficientPath (orbitDerivativePath A v) = | |
| 80 | + fun a => fderiv ℝ (translateCoefficientPath A) a v := | |
| 81 | + funext (orbitDerivativePath_translation A hA v) | |
| 82 | + rw [he] | |
| 83 | + exact (hA.fderiv_right (m := ∞) (by simp)).clm_apply contDiff_const | |
| 84 | + | |
| 85 | +/-- A single genuine Banach-space derivative at zero controls the spatial | |
| 86 | +derivative uniformly at every time and spatial point. -/ | |
| 87 | +theorem coefficientOrbit_norm_iteratedFDeriv_le (A : C(K, Space →ᵇ V)) | |
| 88 | + (hA : ContDiff ℝ ∞ (translateCoefficientPath A)) (n : ℕ) (t : K) (x : Space) : | |
| 89 | + ‖iteratedFDeriv ℝ n (A t : Space → V) x‖ ≤ | |
| 90 | + ‖iteratedFDeriv ℝ n (translateCoefficientPath A) 0‖ := by | |
| 91 | + apply ContinuousMultilinearMap.opNorm_le_bound (norm_nonneg _) | |
| 92 | + intro v | |
| 93 | + have he := coefficientOrbit_iteratedFDeriv_apply A hA n 0 t x v | |
| 94 | + simp only [add_zero] at he | |
| 95 | + rw [← he] | |
| 96 | + exact (((iteratedFDeriv ℝ n (translateCoefficientPath A) 0 v t).norm_coe_le_norm x).trans | |
| 97 | + ((iteratedFDeriv ℝ n (translateCoefficientPath A) 0 v).norm_coe_le_norm t)).trans | |
| 98 | + ((iteratedFDeriv ℝ n (translateCoefficientPath A) 0).le_opNorm v) | |
| 99 | + | |
| 100 | +end EulerMeanCoefficients | |
+58 −0 Euler/CoefficientPathPressureBounds.lean added View file
| @@ -0,0 +1,58 @@ | ||
| 1 | +import Euler.CoefficientPathWeightedBounds | |
| 2 | +import Euler.CoefficientJetPressureBounds | |
| 3 | +import Euler.H6PressureConstants | |
| 4 | + | |
| 5 | +/-! Actual coefficient-orbit bounds control the fixed H5/H6 pressure | |
| 6 | +constants uniformly over all higher jet truncations. -/ | |
| 7 | + | |
| 8 | +noncomputable section | |
| 9 | + | |
| 10 | +namespace EulerCoefficientPath | |
| 11 | + | |
| 12 | +open Set Finset ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace | |
| 13 | + EulerMeanCoefficients EulerSpatialSobolevInverse EulerJetProductBounds | |
| 14 | + EulerParameterWordGevrey EulerGevrey EulerCoefficientJetPressureBounds EulerCylinderSobolev | |
| 15 | +open scoped ContDiff BoundedContinuousFunction | |
| 16 | + | |
| 17 | +variable (P : ℝ) [Fact (0 < P)] | |
| 18 | + | |
| 19 | +omit [Fact (0 < P)] in | |
| 20 | +theorem boundLevel_le_block_zero {s : ℕ} {A : SmoothCoefficient P} | |
| 21 | + (J : CoefficientJet P standardDirection s A) (q r : ℕ) (hr : r ≤ q) : | |
| 22 | + boundLevel P J r ≤ EulerH6Pressure.coefficientBlock P J q 0 := by | |
| 23 | + let S := ∑ k ∈ range (q+1),boundLevel P J k | |
| 24 | + have hsum : boundLevel P J r ≤ S := by | |
| 25 | + exact single_le_sum (f := fun k => boundLevel P J k) | |
| 26 | + (fun k _ => boundLevel_nonneg (n := k) J) | |
| 27 | + (show r ∈ range (q+1) from mem_range.mpr (by omega)) | |
| 28 | + have hnon : 0 ≤ S := sum_nonneg (fun k _ => boundLevel_nonneg J) | |
| 29 | + have hpow : (1 : ℝ) ≤ (2 : ℝ)^q := one_le_pow₀ (by norm_num) | |
| 30 | + have hh : S ≤ (2 : ℝ)^q*S := by | |
| 31 | + simpa only [one_mul] using mul_le_mul_of_nonneg_right hpow hnon | |
| 32 | + simpa only [EulerH6Pressure.coefficientBlock,Nat.zero_add,S] using hsum.trans hh | |
| 33 | + | |
| 34 | +variable {K : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 35 | + (A : C(K,Space →ᵇ Space →L[ℝ] Space)) | |
| 36 | + (hA : ContDiff ℝ ∞ (translateCoefficientPath A)) | |
| 37 | + (Rc C : ℝ) (hRc : 0 ≤ Rc) (hC : 0 ≤ C) | |
| 38 | + (hb : ∀ n x, ‖iteratedFDeriv ℝ n (translateCoefficientPath A) x‖ ≤ C*majorant Rc 0 n) | |
| 39 | + | |
| 40 | +include hRc hC hb | |
| 41 | + | |
| 42 | +theorem coefficientJet_base_bound (s q r : ℕ) (hr : r ≤ q) (t : K) : | |
| 43 | + boundLevel P (coefficientJet P A hA s t) r ≤ sobolevCoefficientAmplitude (Fin 4) q Rc C := by | |
| 44 | + have hh := (boundLevel_le_block_zero P (coefficientJet P A hA s t) q r hr).trans | |
| 45 | + (coefficientJet_block_bound P A hA s q Rc C hRc hC hb 0 t) | |
| 46 | + simpa only [majorant,Nat.zero_add,pow_zero,Nat.factorial_zero,Nat.cast_one,one_pow,mul_one] using hh | |
| 47 | + | |
| 48 | +theorem coefficientJet_restrictedPressure_bound (s q b : ℕ) (hq : q ≤ s) (hqb : q ≤ b) | |
| 49 | + (c : ℝ) (hc : 0 < c) (t : K) : | |
| 50 | + (EulerH6Pressure.CoefficientJet.restrict (coefficientJet P A hA s t) q hq).pressureConstant c ≤ | |
| 51 | + pressureCost c (sobolevCoefficientAmplitude (Fin 4) b Rc C) q := by | |
| 52 | + apply TreeBound.pressureConstant_le _ c hc (sobolevCoefficientAmplitude_nonneg b Rc C hRc hC) | |
| 53 | + apply treeBound_of_levels | |
| 54 | + intro r hr | |
| 55 | + rw [EulerH6Pressure.coefficient_restrict_level P (coefficientJet P A hA s t) hq hr] | |
| 56 | + exact coefficientJet_base_bound P A hA Rc C hRc hC hb s b r (hr.trans hqb) t | |
| 57 | + | |
| 58 | +end EulerCoefficientPath | |
+131 −0 Euler/CoefficientPathSmooth.lean added View file
| @@ -0,0 +1,131 @@ | ||
| 1 | +import Euler.CoefficientPathOrbit | |
| 2 | +import Euler.LpCylinderRectangular | |
| 3 | +import Euler.AllOrderCorrectionData | |
| 4 | + | |
| 5 | +/-! Genuine bounded smooth cylinder coefficients and all their derivative | |
| 6 | +jets are constructed from the actual coefficient translation orbit. -/ | |
| 7 | + | |
| 8 | +noncomputable section | |
| 9 | + | |
| 10 | +namespace EulerCoefficientPath | |
| 11 | + | |
| 12 | +open Set MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace | |
| 13 | + EulerMeanCoefficients EulerMetricTransport EulerTransportDerivatives | |
| 14 | + EulerSpatialSobolevInverse EulerCylinderSobolev EulerLpCylinderRectangular | |
| 15 | +open scoped ContDiff BoundedContinuousFunction | |
| 16 | + | |
| 17 | +variable {K : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 18 | + | |
| 19 | +section General | |
| 20 | + | |
| 21 | +variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] | |
| 22 | + | |
| 23 | +private local instance : NormedAddCommGroup (Space →ᵇ V) := inferInstance | |
| 24 | +private local instance : NormedSpace ℝ (Space →ᵇ V) := inferInstance | |
| 25 | + | |
| 26 | +theorem cylinder_norm_iteratedFDeriv_le (P : ℝ) (A : C(K, Space →ᵇ V)) | |
| 27 | + (hA : ContDiff ℝ ∞ (translateCoefficientPath A)) | |
| 28 | + (n : ℕ) (t : K) (x : LiftDomain P) (y : LiftTangent) : | |
| 29 | + ‖iteratedFDeriv ℝ n (localFieldLift P (fun z : LiftDomain P => A t z.1) x) y‖ ≤ | |
| 30 | + ‖iteratedFDeriv ℝ n (translateCoefficientPath A) 0‖ := by | |
| 31 | + let f : Space → V := fun z => A t (x.1+z) | |
| 32 | + have hf : ContDiff ℝ ∞ f := | |
| 33 | + (coefficientOrbit_smooth A hA t).comp (contDiff_const.add contDiff_id) | |
| 34 | + have he : localFieldLift P (fun z : LiftDomain P => A t z.1) x = | |
| 35 | + f ∘ (ContinuousLinearMap.fst ℝ Space ℝ) := rfl | |
| 36 | + rw [he,(ContinuousLinearMap.fst ℝ Space ℝ).iteratedFDeriv_comp_right hf y (by simp)] | |
| 37 | + apply (ContinuousMultilinearMap.norm_compContinuousLinearMap_le _ _).trans | |
| 38 | + calc | |
| 39 | + _ ≤ ‖iteratedFDeriv ℝ n f y.1‖ * ∏ _i : Fin n, (1 : ℝ) := by | |
| 40 | + apply mul_le_mul_of_nonneg_left _ (norm_nonneg _) | |
| 41 | + exact Finset.prod_le_prod (fun _ _ => norm_nonneg _) | |
| 42 | + (fun _ _ => ContinuousLinearMap.norm_fst_le ℝ Space ℝ) | |
| 43 | + _ = ‖iteratedFDeriv ℝ n f y.1‖ := by simp only [Finset.prod_const_one,mul_one] | |
| 44 | + _ = ‖iteratedFDeriv ℝ n (A t : Space → V) (x.1+y.1)‖ := by | |
| 45 | + dsimp only [f] | |
| 46 | + rw [iteratedFDeriv_comp_add_left] | |
| 47 | + _ ≤ _ := coefficientOrbit_norm_iteratedFDeriv_le A hA n t (x.1+y.1) | |
| 48 | + | |
| 49 | +theorem cylinder_fieldDerivative (P : ℝ) (A : C(K, Space →ᵇ V)) | |
| 50 | + (hA : ContDiff ℝ ∞ (translateCoefficientPath A)) | |
| 51 | + (t : K) (v : LiftTangent) (x : LiftDomain P) : | |
| 52 | + fieldDerivative P v (fun z : LiftDomain P => A t z.1) x = | |
| 53 | + orbitDerivativePath A v.1 t x.1 := by | |
| 54 | + rw [orbitDerivativePath_apply A hA] | |
| 55 | + have hi : HasFDerivAt (fun h : LiftTangent => x.1+h.1) | |
| 56 | + (ContinuousLinearMap.fst ℝ Space ℝ) 0 := | |
| 57 | + (hasFDerivAt_fst : HasFDerivAt (Prod.fst : LiftTangent → Space) | |
| 58 | + (ContinuousLinearMap.fst ℝ Space ℝ) 0).const_add x.1 | |
| 59 | + have hd := ((coefficientOrbit_smooth A hA t).differentiable (by simp) | |
| 60 | + (x.1+(0 : LiftTangent).1)).hasFDerivAt.comp (0 : LiftTangent) hi | |
| 61 | + have he := congrArg (fun L : LiftTangent →L[ℝ] V => L v) hd.fderiv | |
| 62 | + change (fderiv ℝ (fun h : LiftTangent => A t (x.1+h.1)) 0) v = _ | |
| 63 | + simpa only [Function.comp_def,Prod.fst_zero,add_zero,comp_apply, | |
| 64 | + ContinuousLinearMap.coe_fst'] using he | |
| 65 | + | |
| 66 | +end General | |
| 67 | + | |
| 68 | +private local instance : NormedAddCommGroup (Space →L[ℝ] Space) := inferInstance | |
| 69 | +private local instance : NormedSpace ℝ (Space →L[ℝ] Space) := inferInstance | |
| 70 | +private local instance : NormedAddCommGroup (Space →ᵇ Space →L[ℝ] Space) := inferInstance | |
| 71 | +private local instance : NormedSpace ℝ (Space →ᵇ Space →L[ℝ] Space) := inferInstance | |
| 72 | + | |
| 73 | +section Basic | |
| 74 | + | |
| 75 | +variable (P : ℝ) [Fact (0 < P)] | |
| 76 | + (A : C(K, Space →ᵇ Space →L[ℝ] Space)) | |
| 77 | + (hA : ContDiff ℝ ∞ (translateCoefficientPath A)) | |
| 78 | + | |
| 79 | +def smoothCoefficient (t : K) : SmoothCoefficient P where | |
| 80 | + coefficient x := A t x.1 | |
| 81 | + smooth x := (coefficientOrbit_smooth A hA t).comp (contDiff_const.add contDiff_fst) | |
| 82 | + bound := ‖A t‖₊ | |
| 83 | + norm_bound x := (A t).norm_coe_le_norm x.1 | |
| 84 | + firstBound := ‖iteratedFDeriv ℝ 1 (translateCoefficientPath A) 0‖₊ | |
| 85 | + norm_first x := by | |
| 86 | + rw [← norm_iteratedFDeriv_one] | |
| 87 | + exact cylinder_norm_iteratedFDeriv_le P A hA 1 t x 0 | |
| 88 | + secondBound := ‖iteratedFDeriv ℝ 2 (translateCoefficientPath A) 0‖₊ | |
| 89 | + norm_second x y := by | |
| 90 | + rw [← norm_iteratedFDeriv_one,norm_iteratedFDeriv_fderiv] | |
| 91 | + exact cylinder_norm_iteratedFDeriv_le P A hA 2 t x y | |
| 92 | + | |
| 93 | +omit [Fact (0 < P)] in | |
| 94 | +@[simp] theorem smoothCoefficient_apply (t : K) (x : LiftDomain P) : | |
| 95 | + (smoothCoefficient P A hA t).coefficient x = A t x.1 := rfl | |
| 96 | + | |
| 97 | +end Basic | |
| 98 | + | |
| 99 | +def coefficientJet (P : ℝ) [Fact (0 < P)] | |
| 100 | + (A : C(K, Space →ᵇ Space →L[ℝ] Space)) | |
| 101 | + (hA : ContDiff ℝ ∞ (translateCoefficientPath A)) (q : ℕ) (t : K) : | |
| 102 | + CoefficientJet P standardDirection q (smoothCoefficient P A hA t) := | |
| 103 | + match q with | |
| 104 | + | 0 => .zero _ | |
| 105 | + | n+1 => .succ | |
| 106 | + (fun i => smoothCoefficient P (orbitDerivativePath A (standardDirection i).1) | |
| 107 | + (orbitDerivativePath_orbit A hA (standardDirection i).1) t) | |
| 108 | + (fun i => coefficientJet P (orbitDerivativePath A (standardDirection i).1) | |
| 109 | + (orbitDerivativePath_orbit A hA (standardDirection i).1) n t) | |
| 110 | + (fun i x => (cylinder_fieldDerivative P A hA t (standardDirection i) x).symm) | |
| 111 | + | |
| 112 | +variable (P : ℝ) [Fact (0 < P)] | |
| 113 | + (A : C(K, Space →ᵇ Space →L[ℝ] Space)) | |
| 114 | + (hA : ContDiff ℝ ∞ (translateCoefficientPath A)) | |
| 115 | + | |
| 116 | +theorem smoothCoefficient_operator (t : K) : | |
| 117 | + (smoothCoefficient P A hA t).operator = fullOperatorMap P (A t) := by | |
| 118 | + apply ContinuousLinearMap.ext | |
| 119 | + intro f | |
| 120 | + apply Lp.ext | |
| 121 | + filter_upwards [(smoothCoefficient P A hA t).operator_ae f, | |
| 122 | + EulerLpOperatorField.full_ae (liftMeasure P) (EulerLpCylinderTranslation.fieldLift P (A t)) f] | |
| 123 | + with x h₁ h₂ | |
| 124 | + exact h₁.trans h₂.symm | |
| 125 | + | |
| 126 | +theorem smoothCoefficient_operator_continuous : | |
| 127 | + Continuous (fun t => (smoothCoefficient P A hA t).operator) := by | |
| 128 | + simp_rw [smoothCoefficient_operator] | |
| 129 | + exact (fullOperatorMap P).continuous.comp A.continuous | |
| 130 | + | |
| 131 | +end EulerCoefficientPath | |
+98 −0 Euler/CoefficientPathSobolev.lean added View file
| @@ -0,0 +1,98 @@ | ||
| 1 | +import Euler.CoefficientPathSmooth | |
| 2 | +import Euler.SobolevOperatorCoordinates | |
| 3 | + | |
| 4 | +/-! The constructed coefficient jets act continuously in operator norm | |
| 5 | +on every finite cylinder Sobolev space. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +namespace EulerCoefficientPath | |
| 10 | + | |
| 11 | +open Set MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace | |
| 12 | + EulerMeanCoefficients EulerSpatialSobolevInverse EulerCylinderSobolev | |
| 13 | + EulerCylinderSobolevSpace EulerSobolevCoefficientPressure | |
| 14 | + | |
| 15 | +open scoped ContDiff BoundedContinuousFunction | |
| 16 | + | |
| 17 | +variable {K : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 18 | + | |
| 19 | +private local instance : NormedAddCommGroup (Space →L[ℝ] Space) := inferInstance | |
| 20 | +private local instance : NormedSpace ℝ (Space →L[ℝ] Space) := inferInstance | |
| 21 | +private local instance : NormedAddCommGroup (Space →ᵇ Space →L[ℝ] Space) := inferInstance | |
| 22 | +private local instance : NormedSpace ℝ (Space →ᵇ Space →L[ℝ] Space) := inferInstance | |
| 23 | + | |
| 24 | +variable (P : ℝ) [Fact (0 < P)] | |
| 25 | + (A : C(K, Space →ᵇ Space →L[ℝ] Space)) | |
| 26 | + (hA : ContDiff ℝ ∞ (translateCoefficientPath A)) | |
| 27 | + | |
| 28 | +def sobolevOperator (q : ℕ) (t : K) : SobolevSpace P q →L[ℝ] SobolevSpace P q := | |
| 29 | + coefficientSobolevOperator P (coefficientJet P A hA q t) | |
| 30 | + | |
| 31 | +@[simp] theorem sobolevOperator_value (q : ℕ) (t : K) (u : SobolevSpace P q) : | |
| 32 | + value P (sobolevOperator P A hA q t u) = | |
| 33 | + (smoothCoefficient P A hA t).operator (value P u) := | |
| 34 | + coefficientSobolevOperator_value P (coefficientJet P A hA q t) u | |
| 35 | + | |
| 36 | +theorem sobolevOperator_value_comp (q : ℕ) (t : K) : | |
| 37 | + (valueOperator P q).comp (sobolevOperator P A hA q t) = | |
| 38 | + (smoothCoefficient P A hA t).operator.comp (valueOperator P q) := by | |
| 39 | + apply ContinuousLinearMap.ext | |
| 40 | + intro u | |
| 41 | + exact sobolevOperator_value P A hA q t u | |
| 42 | + | |
| 43 | +theorem sobolevOperator_derivative (q : ℕ) (t : K) (i : Fin 4) | |
| 44 | + (u : SobolevSpace P (q+1)) : | |
| 45 | + derivativeOperator P q i (sobolevOperator P A hA (q+1) t u) = | |
| 46 | + sobolevOperator P A hA q t (derivativeOperator P q i u) + | |
| 47 | + sobolevOperator P (orbitDerivativePath A (standardDirection i).1) | |
| 48 | + (orbitDerivativePath_orbit A hA (standardDirection i).1) q t (truncateOperator P q u) := by | |
| 49 | + apply value_injective P | |
| 50 | + have h₁ := derivativeOperator_hasDerivAt P i (sobolevOperator P A hA (q+1) t u) | |
| 51 | + rw [sobolevOperator_value] at h₁ | |
| 52 | + have h₂ := (smoothCoefficient P A hA t).product_hasDerivAt | |
| 53 | + (smoothCoefficient P (orbitDerivativePath A (standardDirection i).1) | |
| 54 | + (orbitDerivativePath_orbit A hA (standardDirection i).1) t) | |
| 55 | + (standardDirection i) (fun x => (cylinder_fieldDerivative P A hA t (standardDirection i) x).symm) | |
| 56 | + (value P u) (value P (derivativeOperator P q i u)) (derivativeOperator_hasDerivAt P i u) | |
| 57 | + change value P (derivativeOperator P q i (sobolevOperator P A hA (q+1) t u)) = | |
| 58 | + value P (sobolevOperator P A hA q t (derivativeOperator P q i u)) + | |
| 59 | + value P (sobolevOperator P (orbitDerivativePath A (standardDirection i).1) | |
| 60 | + (orbitDerivativePath_orbit A hA (standardDirection i).1) q t (truncateOperator P q u)) | |
| 61 | + simp only [sobolevOperator_value,value_truncateOperator] | |
| 62 | + exact h₁.unique h₂ | |
| 63 | + | |
| 64 | +theorem sobolevOperator_derivative_comp (q : ℕ) (t : K) (i : Fin 4) : | |
| 65 | + (derivativeOperator P q i).comp (sobolevOperator P A hA (q+1) t) = | |
| 66 | + (sobolevOperator P A hA q t).comp (derivativeOperator P q i) + | |
| 67 | + (sobolevOperator P (orbitDerivativePath A (standardDirection i).1) | |
| 68 | + (orbitDerivativePath_orbit A hA (standardDirection i).1) q t).comp (truncateOperator P q) := by | |
| 69 | + apply ContinuousLinearMap.ext | |
| 70 | + intro u | |
| 71 | + exact sobolevOperator_derivative P A hA q t i u | |
| 72 | + | |
| 73 | +private theorem sobolevOperator_continuous_aux (q : ℕ) : | |
| 74 | + ∀ (A : C(K, Space →ᵇ Space →L[ℝ] Space)) | |
| 75 | + (hA : ContDiff ℝ ∞ (translateCoefficientPath A)), | |
| 76 | + Continuous (fun t => sobolevOperator P A hA q t) := by | |
| 77 | + induction q with | |
| 78 | + | zero => | |
| 79 | + intro A hA | |
| 80 | + apply continuous_of_valueComposition P | |
| 81 | + simp_rw [sobolevOperator_value_comp] | |
| 82 | + exact (smoothCoefficient_operator_continuous P A hA).clm_comp_const (valueOperator P 0) | |
| 83 | + | succ q ih => | |
| 84 | + intro A hA | |
| 85 | + apply continuous_of_value_and_derivatives P q | |
| 86 | + · simp_rw [sobolevOperator_value_comp] | |
| 87 | + exact (smoothCoefficient_operator_continuous P A hA).clm_comp_const (valueOperator P (q+1)) | |
| 88 | + · intro i | |
| 89 | + simp_rw [sobolevOperator_derivative_comp] | |
| 90 | + exact ((ih A hA).clm_comp_const (derivativeOperator P q i)).add | |
| 91 | + ((ih (orbitDerivativePath A (standardDirection i).1) | |
| 92 | + (orbitDerivativePath_orbit A hA (standardDirection i).1)).clm_comp_const (truncateOperator P q)) | |
| 93 | + | |
| 94 | +theorem sobolevOperator_continuous (q : ℕ) : | |
| 95 | + Continuous (fun t => sobolevOperator P A hA q t) := | |
| 96 | + sobolevOperator_continuous_aux P q A hA | |
| 97 | + | |
| 98 | +end EulerCoefficientPath | |
+88 −0 Euler/CoefficientPathWeightedBounds.lean added View file
| @@ -0,0 +1,88 @@ | ||
| 1 | +import Euler.CoefficientPathBounds | |
| 2 | +import Euler.SobolevGevreyOperators | |
| 3 | +import Euler.PacketTailBound | |
| 4 | + | |
| 5 | +/-! | |
| 6 | +Cutoff-independent weighted estimates for the actual coefficient jets. | |
| 7 | +The positive-order coefficient normalization is paid once by a fixed | |
| 8 | +coefficient radius, independent of the solution amplitude and grade. | |
| 9 | +-/ | |
| 10 | + | |
| 11 | +noncomputable section | |
| 12 | + | |
| 13 | +namespace EulerCoefficientPath | |
| 14 | + | |
| 15 | +open Set Finset ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace | |
| 16 | + EulerMeanCoefficients EulerSpatialSobolevInverse EulerJetProductBounds | |
| 17 | + EulerParameterWordGevrey EulerGevrey EulerPacketWeights EulerSobolevGevreyOperators | |
| 18 | + EulerPacketTailBound EulerOperatorGevreyCalculus | |
| 19 | +open scoped ContDiff BoundedContinuousFunction | |
| 20 | + | |
| 21 | +def normalizedCoefficientRadius (q : ℕ) (Rc C : ℝ) : ℝ := | |
| 22 | + max 1 (sobolevCoefficientAmplitude (Fin 4) q Rc C) * sobolevCoefficientRadius (Fin 4) Rc | |
| 23 | + | |
| 24 | +theorem normalizedCoefficientRadius_nonneg (q : ℕ) (Rc C : ℝ) (hRc : 0 ≤ Rc) : | |
| 25 | + 0 ≤ normalizedCoefficientRadius q Rc C := | |
| 26 | + mul_nonneg (le_trans zero_le_one (le_max_left _ _)) (sobolevCoefficientRadius_nonneg Rc hRc) | |
| 27 | + | |
| 28 | +theorem amplitude_majorant_le_normalized (q : ℕ) (Rc C : ℝ) (hRc : 0 ≤ Rc) | |
| 29 | + (n : ℕ) (hn : 1 ≤ n) : | |
| 30 | + sobolevCoefficientAmplitude (Fin 4) q Rc C * majorant (sobolevCoefficientRadius (Fin 4) Rc) 0 n ≤ | |
| 31 | + majorant (normalizedCoefficientRadius q Rc C) 0 n := by | |
| 32 | + have hp : sobolevCoefficientAmplitude (Fin 4) q Rc C ≤ | |
| 33 | + (max 1 (sobolevCoefficientAmplitude (Fin 4) q Rc C))^n := | |
| 34 | + (le_max_right _ _).trans (by | |
| 35 | + simpa only [pow_one] using pow_le_pow_right₀ | |
| 36 | + (le_max_left (1 : ℝ) (sobolevCoefficientAmplitude (Fin 4) q Rc C)) hn) | |
| 37 | + calc | |
| 38 | + _ ≤ (max 1 (sobolevCoefficientAmplitude (Fin 4) q Rc C))^n * | |
| 39 | + majorant (sobolevCoefficientRadius (Fin 4) Rc) 0 n := | |
| 40 | + mul_le_mul_of_nonneg_right hp (majorant_nonneg _ (sobolevCoefficientRadius_nonneg Rc hRc) 0 n) | |
| 41 | + _ = _ := by simp only [majorant,normalizedCoefficientRadius,Nat.add_zero,mul_pow]; ring | |
| 42 | + | |
| 43 | +variable {K : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 44 | + (P : ℝ) [Fact (0 < P)] | |
| 45 | + (A : C(K,Space →ᵇ Space →L[ℝ] Space)) | |
| 46 | + (hA : ContDiff ℝ ∞ (translateCoefficientPath A)) | |
| 47 | + | |
| 48 | +theorem coefficientJet_block_normalized (s q : ℕ) (Rc C : ℝ) (hRc : 0 ≤ Rc) (hC : 0 ≤ C) | |
| 49 | + (hb : ∀ n x, ‖iteratedFDeriv ℝ n (translateCoefficientPath A) x‖ ≤ C*majorant Rc 0 n) | |
| 50 | + (R : ℝ) (hR : normalizedCoefficientRadius q Rc C ≤ R) | |
| 51 | + (n : ℕ) (hn : 1 ≤ n) (t : K) : | |
| 52 | + EulerH6Pressure.coefficientBlock P (coefficientJet P A hA s t) q n ≤ | |
| 53 | + R^n*(n.factorial : ℝ)^2 := by | |
| 54 | + have h := (coefficientJet_block_bound P A hA s q Rc C hRc hC hb n t).trans | |
| 55 | + (amplitude_majorant_le_normalized q Rc C hRc n hn) | |
| 56 | + exact h.trans (majorant_radius_mono _ R (normalizedCoefficientRadius_nonneg q Rc C hRc) hR 0 n) | |
| 57 | + | |
| 58 | +private theorem weight_majorant_zero (ρ R : ℝ) (n : ℕ) : | |
| 59 | + weight ρ n*majorant R 0 n = (ρ*R)^n := by | |
| 60 | + unfold weight majorant | |
| 61 | + simp only [Nat.add_zero,mul_pow] | |
| 62 | + field_simp [factorial_cast_ne_zero n] | |
| 63 | + | |
| 64 | +theorem coefficientJet_weighted_bound (s q N : ℕ) (Rc C : ℝ) (hRc : 0 ≤ Rc) (hC : 0 ≤ C) | |
| 65 | + (hb : ∀ n x, ‖iteratedFDeriv ℝ n (translateCoefficientPath A) x‖ ≤ C*majorant Rc 0 n) | |
| 66 | + (ρ : ℝ) (hρ : 0 < ρ) (hsmall : ρ*sobolevCoefficientRadius (Fin 4) Rc ≤ 1/2) (t : K) : | |
| 67 | + weightedCoefficient P (coefficientJet P A hA s t) q N ρ ≤ | |
| 68 | + 2*sobolevCoefficientAmplitude (Fin 4) q Rc C := by | |
| 69 | + have hB := sobolevCoefficientAmplitude_nonneg (ι := Fin 4) q Rc C hRc hC | |
| 70 | + calc | |
| 71 | + _ ≤ ∑ n ∈ range (N+1), weight ρ n * | |
| 72 | + (sobolevCoefficientAmplitude (Fin 4) q Rc C * majorant (sobolevCoefficientRadius (Fin 4) Rc) 0 n) := by | |
| 73 | + apply sum_le_sum | |
| 74 | + intro n _ | |
| 75 | + exact mul_le_mul_of_nonneg_left (coefficientJet_block_bound P A hA s q Rc C hRc hC hb n t) | |
| 76 | + (weight_pos hρ n).le | |
| 77 | + _ = sobolevCoefficientAmplitude (Fin 4) q Rc C * | |
| 78 | + ∑ n ∈ range (N+1), (ρ*sobolevCoefficientRadius (Fin 4) Rc)^n := by | |
| 79 | + rw [mul_sum] | |
| 80 | + apply sum_congr rfl | |
| 81 | + intro n _ | |
| 82 | + rw [← weight_majorant_zero ρ (sobolevCoefficientRadius (Fin 4) Rc) n] | |
| 83 | + ring | |
| 84 | + _ ≤ _ := (mul_le_mul_of_nonneg_left | |
| 85 | + (sum_geometric_le_two _ (mul_nonneg hρ.le (sobolevCoefficientRadius_nonneg Rc hRc)) hsmall (N+1)) | |
| 86 | + hB).trans_eq (mul_comm _ _) | |
| 87 | + | |
| 88 | +end EulerCoefficientPath | |
+148 −0 Euler/CoerciveEndpointBounds.lean added View file
| @@ -0,0 +1,148 @@ | ||
| 1 | +import Euler.EulerProof | |
| 2 | + | |
| 3 | +/-! | |
| 4 | +Quantitative operator algebra for the actual fixed-space endpoint solve. | |
| 5 | +The input called `R` below is an inverse operator; the transverse specialization | |
| 6 | +constructs it by coercivity and discharges all of its norm bounds. | |
| 7 | +-/ | |
| 8 | + | |
| 9 | +noncomputable section | |
| 10 | + | |
| 11 | + | |
| 12 | +namespace EulerCoerciveEndpointBounds | |
| 13 | + | |
| 14 | +open ContinuousLinearMap | |
| 15 | + | |
| 16 | +variable {S E V F G W : Type*} | |
| 17 | + [NormedAddCommGroup S] [InnerProductSpace ℝ S] [CompleteSpace S] | |
| 18 | + [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] | |
| 19 | + [NormedAddCommGroup V] [NormedSpace ℝ V] | |
| 20 | + [NormedAddCommGroup F] [NormedSpace ℝ F] | |
| 21 | + [NormedAddCommGroup G] [NormedSpace ℝ G] | |
| 22 | + [NormedAddCommGroup W] [NormedSpace ℝ W] | |
| 23 | + | |
| 24 | +theorem norm_comp_sub_le (A B : F →L[ℝ] G) (C D : W →L[ℝ] F) : | |
| 25 | + ‖A.comp C - B.comp D‖ ≤ ‖A - B‖ * ‖C‖ + ‖B‖ * ‖C - D‖ := by | |
| 26 | + have he : A.comp C - B.comp D = (A - B).comp C + B.comp (C - D) := by | |
| 27 | + ext x | |
| 28 | + simp only [comp_apply, sub_apply, add_apply, map_sub] | |
| 29 | + abel | |
| 30 | + rw [he] | |
| 31 | + exact (norm_add_le _ _).trans (add_le_add (opNorm_comp_le _ _) (opNorm_comp_le _ _)) | |
| 32 | + | |
| 33 | +/-- The actual algebraic stationary correction in a fixed coordinate space. -/ | |
| 34 | +def correctionOperator (D : S →L[ℝ] E) (R : S →L[ℝ] S) (A : E →L[ℝ] E) : E →L[ℝ] E := | |
| 35 | + D.comp (R.comp (D.adjoint.comp A)) | |
| 36 | + | |
| 37 | +def endpointOperator (D : S →L[ℝ] E) (R : S →L[ℝ] S) (A : E →L[ℝ] E) | |
| 38 | + (L : V →L[ℝ] E) : V →L[ℝ] E := L - (correctionOperator D R A).comp L | |
| 39 | + | |
| 40 | +theorem correctionOperator_norm_le (D : S →L[ℝ] E) (R : S →L[ℝ] S) (A : E →L[ℝ] E) | |
| 41 | + (d r a : ℝ) (hd : ‖D‖ ≤ d) (hr : ‖R‖ ≤ r) (ha : ‖A‖ ≤ a) : | |
| 42 | + ‖correctionOperator D R A‖ ≤ d ^ 2 * r * a := by | |
| 43 | + have hd0 := (norm_nonneg D).trans hd | |
| 44 | + have hr0 := (norm_nonneg R).trans hr | |
| 45 | + have ha0 := (norm_nonneg A).trans ha | |
| 46 | + have hDA : ‖D.adjoint.comp A‖ ≤ d * a := by | |
| 47 | + apply (opNorm_comp_le _ _).trans | |
| 48 | + rw [LinearIsometryEquiv.norm_map] | |
| 49 | + exact mul_le_mul hd ha (norm_nonneg _) hd0 | |
| 50 | + have hRDA : ‖R.comp (D.adjoint.comp A)‖ ≤ r * (d * a) := | |
| 51 | + (opNorm_comp_le _ _).trans (mul_le_mul hr hDA (norm_nonneg _) hr0) | |
| 52 | + exact ((opNorm_comp_le _ _).trans | |
| 53 | + (mul_le_mul hd hRDA (norm_nonneg _) hd0)).trans_eq (by ring) | |
| 54 | + | |
| 55 | +theorem correctionOperator_sub_norm_le | |
| 56 | + (D D' : S →L[ℝ] E) (R R' : S →L[ℝ] S) (A A' : E →L[ℝ] E) | |
| 57 | + (d r a δd δr δa : ℝ) | |
| 58 | + (hd : ‖D‖ ≤ d) (hd' : ‖D'‖ ≤ d) (hr : ‖R‖ ≤ r) (hr' : ‖R'‖ ≤ r) | |
| 59 | + (ha : ‖A‖ ≤ a) (_ha' : ‖A'‖ ≤ a) | |
| 60 | + (hδd : ‖D - D'‖ ≤ δd) (hδr : ‖R - R'‖ ≤ δr) (hδa : ‖A - A'‖ ≤ δa) : | |
| 61 | + ‖correctionOperator D R A - correctionOperator D' R' A'‖ ≤ | |
| 62 | + 2 * d * r * a * δd + d ^ 2 * a * δr + d ^ 2 * r * δa := by | |
| 63 | + have hd0 := (norm_nonneg D).trans hd | |
| 64 | + have hr0 := (norm_nonneg R).trans hr | |
| 65 | + have ha0 := (norm_nonneg A).trans ha | |
| 66 | + have hδd0 := (norm_nonneg (D-D')).trans hδd | |
| 67 | + have hδr0 := (norm_nonneg (R-R')).trans hδr | |
| 68 | + have hδa0 := (norm_nonneg (A-A')).trans hδa | |
| 69 | + have hDA : ‖D.adjoint.comp A‖ ≤ d * a := by | |
| 70 | + apply (opNorm_comp_le _ _).trans | |
| 71 | + rw [LinearIsometryEquiv.norm_map] | |
| 72 | + exact mul_le_mul hd ha (norm_nonneg _) hd0 | |
| 73 | + have hDAδ : ‖D.adjoint.comp A - D'.adjoint.comp A'‖ ≤ δd * a + d * δa := by | |
| 74 | + apply (norm_comp_sub_le _ _ _ _).trans | |
| 75 | + have hh : ‖D.adjoint - D'.adjoint‖ = ‖D-D'‖ := by | |
| 76 | + rw [← map_sub, LinearIsometryEquiv.norm_map] | |
| 77 | + rw [hh, LinearIsometryEquiv.norm_map] | |
| 78 | + exact add_le_add (mul_le_mul hδd ha (norm_nonneg _) hδd0) | |
| 79 | + (mul_le_mul hd' hδa (norm_nonneg _) hd0) | |
| 80 | + have hRDA : ‖R.comp (D.adjoint.comp A)‖ ≤ r * (d * a) := | |
| 81 | + (opNorm_comp_le _ _).trans (mul_le_mul hr hDA (norm_nonneg _) hr0) | |
| 82 | + have hRDAδ : ‖R.comp (D.adjoint.comp A) - R'.comp (D'.adjoint.comp A')‖ ≤ | |
| 83 | + δr * (d * a) + r * (δd * a + d * δa) := by | |
| 84 | + apply (norm_comp_sub_le _ _ _ _).trans | |
| 85 | + exact add_le_add (mul_le_mul hδr hDA (norm_nonneg _) hδr0) | |
| 86 | + (mul_le_mul hr' hDAδ (norm_nonneg _) hr0) | |
| 87 | + apply ((norm_comp_sub_le _ _ _ _).trans | |
| 88 | + (add_le_add (mul_le_mul hδd hRDA (norm_nonneg _) hδd0) | |
| 89 | + (mul_le_mul hd' hRDAδ (norm_nonneg _) hd0))).trans_eq | |
| 90 | + ring | |
| 91 | + | |
| 92 | +theorem endpointOperator_norm_le (D : S →L[ℝ] E) (R : S →L[ℝ] S) (A : E →L[ℝ] E) | |
| 93 | + (L : V →L[ℝ] E) (d r a l : ℝ) | |
| 94 | + (hd : ‖D‖ ≤ d) (hr : ‖R‖ ≤ r) (ha : ‖A‖ ≤ a) (hl : ‖L‖ ≤ l) : | |
| 95 | + ‖endpointOperator D R A L‖ ≤ (1 + d ^ 2 * r * a) * l := by | |
| 96 | + have hs := correctionOperator_norm_le D R A d r a hd hr ha | |
| 97 | + have hs0 := (norm_nonneg _).trans hs | |
| 98 | + apply ((norm_sub_le _ _).trans (add_le_add hl ((opNorm_comp_le _ _).trans | |
| 99 | + (mul_le_mul hs hl (norm_nonneg _) hs0)))).trans_eq | |
| 100 | + ring | |
| 101 | + | |
| 102 | +theorem endpointOperator_sub_norm_le | |
| 103 | + (D D' : S →L[ℝ] E) (R R' : S →L[ℝ] S) (A A' : E →L[ℝ] E) | |
| 104 | + (L L' : V →L[ℝ] E) (d r a l δd δr δa δl : ℝ) | |
| 105 | + (hd : ‖D‖ ≤ d) (hd' : ‖D'‖ ≤ d) (hr : ‖R‖ ≤ r) (hr' : ‖R'‖ ≤ r) | |
| 106 | + (ha : ‖A‖ ≤ a) (ha' : ‖A'‖ ≤ a) (hl : ‖L‖ ≤ l) | |
| 107 | + (hδd : ‖D - D'‖ ≤ δd) (hδr : ‖R - R'‖ ≤ δr) | |
| 108 | + (hδa : ‖A - A'‖ ≤ δa) (hδl : ‖L - L'‖ ≤ δl) : | |
| 109 | + ‖endpointOperator D R A L - endpointOperator D' R' A' L'‖ ≤ | |
| 110 | + (1 + d ^ 2 * r * a) * δl + | |
| 111 | + (2 * d * r * a * δd + d ^ 2 * a * δr + d ^ 2 * r * δa) * l := by | |
| 112 | + have hs := correctionOperator_norm_le D' R' A' d r a hd' hr' ha' | |
| 113 | + have hs0 := (norm_nonneg _).trans hs | |
| 114 | + have hds := correctionOperator_sub_norm_le D D' R R' A A' d r a δd δr δa | |
| 115 | + hd hd' hr hr' ha ha' hδd hδr hδa | |
| 116 | + have hds0 := (norm_nonneg _).trans hds | |
| 117 | + have hprod := (norm_comp_sub_le (correctionOperator D R A) | |
| 118 | + (correctionOperator D' R' A') L L').trans | |
| 119 | + (add_le_add (mul_le_mul hds hl (norm_nonneg _) hds0) | |
| 120 | + (mul_le_mul hs hδl (norm_nonneg _) hs0)) | |
| 121 | + have he : endpointOperator D R A L - endpointOperator D' R' A' L' = | |
| 122 | + (L-L') - ((correctionOperator D R A).comp L - (correctionOperator D' R' A').comp L') := by | |
| 123 | + unfold endpointOperator | |
| 124 | + abel | |
| 125 | + rw [he] | |
| 126 | + exact ((norm_sub_le _ _).trans (add_le_add hδl hprod)).trans_eq (by ring) | |
| 127 | + | |
| 128 | +/-- The transported quadratic form used by the fixed-coordinate inverse. -/ | |
| 129 | +def formOperator (D : S →L[ℝ] E) (A : E →L[ℝ] E) : S →L[ℝ] S := | |
| 130 | + D.adjoint.comp (A.comp D) | |
| 131 | + | |
| 132 | +theorem formOperator_sub_norm_le | |
| 133 | + (D D' : S →L[ℝ] E) (A A' : E →L[ℝ] E) (d a δd δa : ℝ) | |
| 134 | + (hd : ‖D‖ ≤ d) (hd' : ‖D'‖ ≤ d) (ha : ‖A‖ ≤ a) (ha' : ‖A'‖ ≤ a) | |
| 135 | + (hδd : ‖D-D'‖ ≤ δd) (hδa : ‖A-A'‖ ≤ δa) : | |
| 136 | + ‖formOperator D A - formOperator D' A'‖ ≤ 2 * d * a * δd + d ^ 2 * δa := by | |
| 137 | + have had : ‖D.adjoint-D'.adjoint‖ ≤ δd := by | |
| 138 | + rw [← map_sub, LinearIsometryEquiv.norm_map] | |
| 139 | + exact hδd | |
| 140 | + have h := correctionOperator_sub_norm_le D.adjoint D'.adjoint A A' | |
| 141 | + (ContinuousLinearMap.id ℝ S) (ContinuousLinearMap.id ℝ S) d a 1 δd δa 0 | |
| 142 | + (by simpa only [LinearIsometryEquiv.norm_map] using hd) | |
| 143 | + (by simpa only [LinearIsometryEquiv.norm_map] using hd') ha ha' norm_id_le norm_id_le | |
| 144 | + had hδa (by simp) | |
| 145 | + simpa only [correctionOperator, adjoint_adjoint, comp_id, mul_one, mul_zero, add_zero, | |
| 146 | + formOperator] using h | |
| 147 | + | |
| 148 | +end EulerCoerciveEndpointBounds | |
+88 −0 Euler/CommonPressureRepresentative.lean added View file
| @@ -0,0 +1,88 @@ | ||
| 1 | +import Euler.AllOrderSmoothPressure | |
| 2 | +import Euler.SobolevJointEvaluation | |
| 3 | + | |
| 4 | +/-! A canonical, jointly continuous representative of the constructed common signed pressure. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerCommonPressureRepresentative | |
| 9 | + | |
| 10 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace | |
| 11 | + EulerAllOrderCorrectionData EulerAllOrderCorrectionBudget EulerAllOrderPressureCoherence | |
| 12 | + EulerAllOrderSmoothPressure EulerSobolevPointEvaluation EulerSobolevJointEvaluation | |
| 13 | + EulerSmoothPressureRepresentative EulerMetricTransport EulerGraphPressurePotential | |
| 14 | +open scoped ContDiff | |
| 15 | + | |
| 16 | +variable (period : ℝ) [Fact (0 < period)] | |
| 17 | + | |
| 18 | +/-- The canonical pointwise pressure, obtained by bounded evaluation of its actual continuous H3 realization. -/ | |
| 19 | +def pointPressure {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 20 | + (t : Icc (0 : ℝ) T) (x : LiftDomain period) : Vector3 := | |
| 21 | + pointEvaluation period x (restrictOperator period (by omega : 3 ≤ 6) | |
| 22 | + (signedPressurePath period hT A B 6 le_rfl t)) | |
| 23 | + | |
| 24 | +/-- The canonical pointwise pressure represents the constructed common L² pressure. -/ | |
| 25 | +theorem pointPressure_ae {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 26 | + (t : Icc (0 : ℝ) T) : | |
| 27 | + (commonPressure period hT A B t : LiftDomain period → Vector3) =ᵐ[liftMeasure period] | |
| 28 | + pointPressure period hT A B t := | |
| 29 | + representative_ae period (restrictOperator period (by omega : 3 ≤ 6) | |
| 30 | + (signedPressurePath period hT A B 6 le_rfl t)) | |
| 31 | + | |
| 32 | +/-- The canonical pressure is jointly continuous in time and the actual cylinder point. -/ | |
| 33 | +theorem pointPressure_joint_continuous {T : ℝ} (hT : 0 < T) (A : Data period T) | |
| 34 | + (B : Budget period hT A) : | |
| 35 | + Continuous (fun p : Icc (0 : ℝ) T × LiftDomain period => pointPressure period hT A B p.1 p.2) := | |
| 36 | + path_representative_joint_continuous period | |
| 37 | + ((restrictOperator period (by omega : 3 ≤ 6)).compLeftContinuous ℝ (Icc (0 : ℝ) T) | |
| 38 | + (signedPressurePath period hT A B 6 le_rfl)) | |
| 39 | + | |
| 40 | +/-- The canonical pressure is continuous on each spatial slice. -/ | |
| 41 | +theorem pointPressure_continuous {T : ℝ} (hT : 0 < T) (A : Data period T) | |
| 42 | + (B : Budget period hT A) (t : Icc (0 : ℝ) T) : | |
| 43 | + Continuous (pointPressure period hT A B t) := | |
| 44 | + representative_continuous period (restrictOperator period (by omega : 3 ≤ 6) | |
| 45 | + (signedPressurePath period hT A B 6 le_rfl t)) | |
| 46 | + | |
| 47 | +/-- These same canonical representatives are smooth in every spatial coordinate. -/ | |
| 48 | +theorem pointPressure_smooth {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 49 | + (t : Icc (0 : ℝ) T) (x : LiftDomain period) : | |
| 50 | + ContDiff ℝ ∞ (localFieldLift period (pointPressure period hT A B t) x) := by | |
| 51 | + obtain ⟨g, hg, ha⟩ := exists_smooth_representative period (commonPressure period hT A B t) | |
| 52 | + (fun n => pressureJet period hT A B n t) | |
| 53 | + have he : pointPressure period hT A B t = g := | |
| 54 | + representative_eq period _ g (smoothField_continuous period g hg) ha | |
| 55 | + rw [he] | |
| 56 | + exact hg x | |
| 57 | + | |
| 58 | +omit [Fact (0 < period)] in | |
| 59 | +/-- The physical phase graph is a continuous map into the periodic cylinder. -/ | |
| 60 | +theorem cylinderGraph_continuous (k : ℝ) (m : Vector3) : | |
| 61 | + Continuous (cylinderGraph period k m) := by | |
| 62 | + unfold cylinderGraph | |
| 63 | + exact continuous_id.prodMk ((AddCircle.continuous_mk' period).comp | |
| 64 | + (continuous_const.mul (continuous_const.inner continuous_id))) | |
| 65 | + | |
| 66 | +/-- The genuine signed graph pressure-gradient vector field. -/ | |
| 67 | +def graphPressure {T : ℝ} (hT : 0 < T) (A : Data period T) (B : Budget period hT A) | |
| 68 | + (k : ℝ) (t : Icc (0 : ℝ) T) (x : Vector3) : Vector3 := | |
| 69 | + A.κ • pointPressure period hT A B t (cylinderGraph period k A.direction x) | |
| 70 | + | |
| 71 | +/-- The actual graph pressure-gradient field is jointly continuous in time and space. -/ | |
| 72 | +theorem graphPressure_joint_continuous {T : ℝ} (hT : 0 < T) (A : Data period T) | |
| 73 | + (B : Budget period hT A) (k : ℝ) : | |
| 74 | + Continuous (graphPressure period hT A B k).uncurry := | |
| 75 | + ((pointPressure_joint_continuous period hT A B).comp | |
| 76 | + (continuous_fst.prodMk ((cylinderGraph_continuous period k A.direction).comp continuous_snd))).const_smul A.κ | |
| 77 | + | |
| 78 | +/-- Each actual canonical graph field has a genuine smooth potential by the proved lifted gradient-space reconstruction. -/ | |
| 79 | +theorem graphPressure_has_potential {T : ℝ} (hT : 0 < T) (A : Data period T) | |
| 80 | + (B : Budget period hT A) (k : ℝ) (hk : k * A.κ = 1) (t : Icc (0 : ℝ) T) : | |
| 81 | + ∃ q : Vector3 → ℝ, ContDiff ℝ ∞ q ∧ | |
| 82 | + ∀ x, gradient q x = graphPressure period hT A B k t x := | |
| 83 | + gradientSpace_has_graph_potential period A.κ k hk A.direction | |
| 84 | + (commonPressure period hT A B t) (commonPressure_gradient period hT A B t) | |
| 85 | + (pointPressure period hT A B t) (pointPressure_ae period hT A B t) | |
| 86 | + (pointPressure_smooth period hT A B t) | |
| 87 | + | |
| 88 | +end EulerCommonPressureRepresentative | |
+32 −0 Euler/CompactCurlBounds.lean added View file
| @@ -0,0 +1,32 @@ | ||
| 1 | +import Euler.CompactSmoothBounds | |
| 2 | +import Euler.CurlTimeDerivative | |
| 3 | + | |
| 4 | +/-! Joint smoothness bounds the actual spatial vorticity on every fixed | |
| 5 | +compact spatial set and every closed finite time interval. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | + | |
| 10 | +open Set EulerSmoothLimit EulerMeanBoundary EulerMeanCutoffCurl | |
| 11 | + | |
| 12 | +namespace Euler.EulerExistenceAndSmoothnessR3 | |
| 13 | + | |
| 14 | +variable {u₀ : Space → Space} {v : Space → ℝ → Space} {p : Space → ℝ → ℝ} | |
| 15 | + (h : EulerExistenceAndSmoothnessR3 u₀ v p) | |
| 16 | + | |
| 17 | +include h | |
| 18 | + | |
| 19 | +theorem vorticity_bounded_on_compact (K : Set Space) (hK : IsCompact K) (T : ℝ) : | |
| 20 | + ∃ M : ℝ, 0 ≤ M ∧ ∀ t ∈ Icc (0 : ℝ) T, ∀ x ∈ K, | |
| 21 | + ‖vectorCurl (v · t) x‖ ≤ M := by | |
| 22 | + obtain ⟨C, hC⟩ := h.spatial_fderiv_bounded_on_compact K hK T | |
| 23 | + refine ⟨‖ComparatorBridge.curlMatrixCLM‖ * max C 0, | |
| 24 | + mul_nonneg (norm_nonneg ComparatorBridge.curlMatrixCLM) (le_max_right _ _), ?_⟩ | |
| 25 | + intro t ht x hx | |
| 26 | + rw [vectorCurl_eq_matrix _ x ((h.velocity_contDiff t ht.1).differentiable (by simp) x)] | |
| 27 | + change ‖ComparatorBridge.curlMatrixCLM (fderiv ℝ (v · t) x)‖ ≤ _ | |
| 28 | + exact (ComparatorBridge.curlMatrixCLM.le_opNorm _).trans | |
| 29 | + (mul_le_mul_of_nonneg_left ((hC x hx t ht).trans (le_max_left _ _)) | |
| 30 | + (norm_nonneg ComparatorBridge.curlMatrixCLM)) | |
| 31 | + | |
| 32 | +end Euler.EulerExistenceAndSmoothnessR3 | |
+74 −0 Euler/CompactParameterIntegral.lean added View file
| @@ -0,0 +1,74 @@ | ||
| 1 | +import Mathlib.Analysis.Calculus.ParametricIntegral | |
| 2 | +import Mathlib.Analysis.Calculus.ContDiff.Operations | |
| 3 | +import Mathlib.MeasureTheory.Integral.Bochner.Set | |
| 4 | +import Mathlib.Analysis.Normed.Group.Bounded | |
| 5 | + | |
| 6 | +/-! Smooth parameter dependence of an actual integral over a compact interval. -/ | |
| 7 | + | |
| 8 | +noncomputable section | |
| 9 | + | |
| 10 | +universe u | |
| 11 | + | |
| 12 | +namespace EulerCompactParameterIntegral | |
| 13 | + | |
| 14 | +open Set MeasureTheory Filter Metric | |
| 15 | +open scoped ContDiff Topology Interval | |
| 16 | + | |
| 17 | +variable {X : Type} [NormedAddCommGroup X] [NormedSpace ℝ X] [ProperSpace X] | |
| 18 | + {E : Type u} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] | |
| 19 | + | |
| 20 | +def parameterDerivative (F : X × ℝ → E) (p : X × ℝ) : X →L[ℝ] E := | |
| 21 | + (fderiv ℝ F p).comp (ContinuousLinearMap.inl ℝ X ℝ) | |
| 22 | + | |
| 23 | +omit [ProperSpace X] [CompleteSpace E] in | |
| 24 | +theorem parameterDerivative_contDiff (F : X × ℝ → E) (hF : ContDiff ℝ ∞ F) : | |
| 25 | + ContDiff ℝ ∞ (parameterDerivative F) := | |
| 26 | + (contDiff_infty_iff_fderiv.mp hF).2.clm_comp contDiff_const | |
| 27 | + | |
| 28 | +omit [CompleteSpace E] in | |
| 29 | +theorem integral_hasFDerivAt (a b : ℝ) (hab : a ≤ b) (F : X × ℝ → E) | |
| 30 | + (hF : ContDiff ℝ ∞ F) (x : X) : | |
| 31 | + HasFDerivAt (fun y => ∫ t in a..b, F (y,t)) | |
| 32 | + (∫ t in a..b, parameterDerivative F (x,t)) x := by | |
| 33 | + have hd : Continuous (parameterDerivative F) := (parameterDerivative_contDiff F hF).continuous | |
| 34 | + obtain ⟨C, hC⟩ := ((isCompact_closedBall x 1).prod isCompact_Icc).exists_bound_of_continuousOn | |
| 35 | + hd.continuousOn | |
| 36 | + apply hasFDerivAt_integral_of_dominated_of_fderiv_le'' | |
| 37 | + (s := ball x 1) (F' := fun y t => parameterDerivative F (y,t)) | |
| 38 | + (bound := fun _ => C) (ball_mem_nhds x (by norm_num)) | |
| 39 | + · exact Eventually.of_forall fun y => | |
| 40 | + (hF.continuous.comp (continuous_const.prodMk continuous_id)).aestronglyMeasurable | |
| 41 | + · exact (hF.continuous.comp (continuous_const.prodMk continuous_id)).intervalIntegrable a b | |
| 42 | + · exact (hd.comp (continuous_const.prodMk continuous_id)).aestronglyMeasurable | |
| 43 | + · filter_upwards [ae_restrict_mem (measurableSet_uIoc : MeasurableSet (Ι a b))] with t ht | |
| 44 | + intro y hy | |
| 45 | + rw [uIoc_of_le hab] at ht | |
| 46 | + exact hC (y,t) ⟨ball_subset_closedBall hy, ht.1.le, ht.2⟩ | |
| 47 | + · exact intervalIntegrable_const | |
| 48 | + · exact Eventually.of_forall fun t y _ => by | |
| 49 | + have hin : HasFDerivAt (fun v : X => (v,t)) (ContinuousLinearMap.inl ℝ X ℝ) y := | |
| 50 | + (hasFDerivAt_id (𝕜 := ℝ) y).prodMk (hasFDerivAt_const (𝕜 := ℝ) t y) | |
| 51 | + exact ((hF.differentiable (by simp)) (y,t)).hasFDerivAt.comp y hin | |
| 52 | + | |
| 53 | +theorem integral_contDiff_finite (n : ℕ) (a b : ℝ) (hab : a ≤ b) | |
| 54 | + (F : X × ℝ → E) (hF : ContDiff ℝ ∞ F) : | |
| 55 | + ContDiff ℝ n (fun y => ∫ t in a..b, F (y,t)) := by | |
| 56 | + induction n generalizing E with | |
| 57 | + | zero => | |
| 58 | + change ContDiff ℝ 0 _ | |
| 59 | + rw [contDiff_zero] | |
| 60 | + have hi := continuous_parametric_integral_of_continuous | |
| 61 | + (μ := volume) (f := fun y t => F (y,t)) hF.continuous | |
| 62 | + (isCompact_Icc : IsCompact (Icc a b)) | |
| 63 | + simpa only [intervalIntegral.integral_of_le hab, integral_Icc_eq_integral_Ioc] using hi | |
| 64 | + | succ n ih => | |
| 65 | + apply contDiff_succ_iff_hasFDerivAt.mpr | |
| 66 | + refine ⟨fun y => ∫ t in a..b, parameterDerivative F (y,t), ?_, ?_⟩ | |
| 67 | + · exact ih (parameterDerivative F) (parameterDerivative_contDiff F hF) | |
| 68 | + · exact integral_hasFDerivAt a b hab F hF | |
| 69 | + | |
| 70 | +theorem integral_contDiff (a b : ℝ) (hab : a ≤ b) (F : X × ℝ → E) | |
| 71 | + (hF : ContDiff ℝ ∞ F) : ContDiff ℝ ∞ (fun y => ∫ t in a..b, F (y,t)) := | |
| 72 | + contDiff_infty.mpr fun n => integral_contDiff_finite n a b hab F hF | |
| 73 | + | |
| 74 | +end EulerCompactParameterIntegral | |
+72 −0 Euler/CompactPressurePairing.lean added View file
| @@ -0,0 +1,72 @@ | ||
| 1 | +import Euler.MeanWeakCurl | |
| 2 | + | |
| 3 | +/-! Pressure cancellation against compactly supported solenoidal vector tests. | |
| 4 | + | |
| 5 | +The scalar pressure needs only ordinary smoothness. In particular, neither | |
| 6 | +the pressure nor its gradient is assumed to be globally square integrable. | |
| 7 | +-/ | |
| 8 | + | |
| 9 | +noncomputable section | |
| 10 | + | |
| 11 | +namespace EulerComparatorPressure | |
| 12 | + | |
| 13 | +open MeasureTheory InnerProductSpace EulerSmoothLimit EulerVectorCalculus | |
| 14 | + EulerMeanSolenoidal EulerMeanPressure | |
| 15 | +open scoped ContDiff | |
| 16 | + | |
| 17 | +/-- Integration by parts with compact support on the vector test, rather than | |
| 18 | +on the scalar potential. -/ | |
| 19 | +theorem compact_vector_gradient_integration_by_parts (φ : Space → Space) | |
| 20 | + (hφ : ContDiff ℝ ∞ φ) (hc : HasCompactSupport φ) | |
| 21 | + (p : Space → ℝ) (hp : ContDiff ℝ ∞ p) : | |
| 22 | + (∫ x, ⟪φ x, gradient p x⟫_ℝ) = -∫ x, p x * divergence φ x := by | |
| 23 | + let φi (i : Fin 3) (x : Space) := φ x i | |
| 24 | + have hφi (i : Fin 3) : ContDiff ℝ ∞ (φi i) := | |
| 25 | + (EuclideanSpace.proj i : Space →L[ℝ] ℝ).contDiff.comp hφ | |
| 26 | + have hci (i : Fin 3) : HasCompactSupport (φi i) := | |
| 27 | + hc.comp_left (g := fun v : Space => v i) rfl | |
| 28 | + have hi₁ (i : Fin 3) : Integrable (fun x => partialDerivative p i x * φi i x) := | |
| 29 | + ((contDiff_partialDerivative p hp i).continuous.mul | |
| 30 | + (hφi i).continuous).integrable_of_hasCompactSupport (hci i).mul_left | |
| 31 | + have hi₂ (i : Fin 3) : Integrable (fun x => p x * partialDerivative (φi i) i x) := | |
| 32 | + (hp.continuous.mul (contDiff_partialDerivative _ (hφi i) i).continuous).integrable_of_hasCompactSupport | |
| 33 | + ((hci i).fderiv_apply ℝ (EuclideanSpace.single i 1)).mul_left | |
| 34 | + have hibp (i : Fin 3) : (∫ x, partialDerivative p i x * φi i x) = | |
| 35 | + -∫ x, p x * partialDerivative (φi i) i x := | |
| 36 | + scalar_test_ibp p (φi i) hp (hφi i) (hci i) i | |
| 37 | + have hinner (x : Space) : ⟪φ x, gradient p x⟫_ℝ = | |
| 38 | + ∑ i : Fin 3, partialDerivative p i x * φi i x := by | |
| 39 | + rw [real_inner_comm, inner_gradient_left] | |
| 40 | + have hre : ∑ i : Fin 3, φ x i • (EuclideanSpace.single i 1 : Space) = φ x := by | |
| 41 | + simpa only [EuclideanSpace.basisFun_repr, EuclideanSpace.basisFun_apply] using | |
| 42 | + (EuclideanSpace.basisFun (Fin 3) ℝ).sum_repr (φ x) | |
| 43 | + calc | |
| 44 | + fderiv ℝ p x (φ x) = | |
| 45 | + fderiv ℝ p x (∑ i : Fin 3, φ x i • EuclideanSpace.single i 1) := | |
| 46 | + congrArg (fderiv ℝ p x) hre.symm | |
| 47 | + _ = ∑ i : Fin 3, partialDerivative p i x * φi i x := by | |
| 48 | + simp only [map_sum, map_smul, smul_eq_mul, partialDerivative, φi, mul_comm] | |
| 49 | + have hdiv (x : Space) : p x * divergence φ x = | |
| 50 | + ∑ i : Fin 3, p x * partialDerivative (φi i) i x := by | |
| 51 | + rw [divergence_eq_coordinate_sum, Finset.mul_sum] | |
| 52 | + apply Finset.sum_congr rfl | |
| 53 | + intro i _ | |
| 54 | + congr 1 | |
| 55 | + exact (fderiv_coordinate φ x ((hφ.differentiable (by simp)).differentiableAt) | |
| 56 | + i (EuclideanSpace.single i 1)).symm | |
| 57 | + simp_rw [hinner, hdiv] | |
| 58 | + rw [integral_finsetSum _ (fun i _ => hi₁ i), | |
| 59 | + integral_finsetSum _ (fun i _ => hi₂ i)] | |
| 60 | + simp only [hibp, Finset.sum_neg_distrib] | |
| 61 | + | |
| 62 | +/-- An arbitrary smooth scalar pressure cancels against a compact smooth | |
| 63 | +divergence-free vector test. -/ | |
| 64 | +theorem compact_solenoidal_pressure_pairing_zero (φ : Space → Space) | |
| 65 | + (hφ : ContDiff ℝ ∞ φ) (hc : HasCompactSupport φ) | |
| 66 | + (hdiv : ∀ x, divergence φ x = 0) | |
| 67 | + (p : Space → ℝ) (hp : ContDiff ℝ ∞ p) : | |
| 68 | + (∫ x, ⟪φ x, gradient p x⟫_ℝ) = 0 := by | |
| 69 | + rw [compact_vector_gradient_integration_by_parts φ hφ hc p hp] | |
| 70 | + simp only [hdiv, mul_zero, integral_zero, neg_zero] | |
| 71 | + | |
| 72 | +end EulerComparatorPressure | |
+68 −0 Euler/CompactProjectedEulerLaw.lean added View file
| @@ -0,0 +1,68 @@ | ||
| 1 | +import Euler.ProjectedEulerPairing | |
| 2 | +import Euler.CompactProjectedPairing | |
| 3 | +import Euler.CompactSolenoidalDensity | |
| 4 | + | |
| 5 | +/-! | |
| 6 | +# The Comparator solution satisfies the weak projected Euler equation | |
| 7 | + | |
| 8 | +The test family is the dense family of compact smooth solenoidal fields. | |
| 9 | +Only pointwise identification of the supplied smooth `L²` fields with the | |
| 10 | +Comparator velocity is assumed; no time regularity of those fields is used. | |
| 11 | +-/ | |
| 12 | + | |
| 13 | +noncomputable section | |
| 14 | + | |
| 15 | +open Set Filter MeasureTheory InnerProductSpace EulerSmoothLimit EulerLpTranslation | |
| 16 | + EulerLpTranslation.SmoothL2Field EulerMeanSolenoidal EulerOrdinarySobolev | |
| 17 | +open scoped ContDiff Topology | |
| 18 | + | |
| 19 | +namespace Euler.ComparatorBridge | |
| 20 | + | |
| 21 | +private theorem inner_smoothField_eq_integral | |
| 22 | + (g : L2) (φ : Space → Space) (hg : (g : Space → Space) =ᵐ[volume] φ) | |
| 23 | + (A : SmoothL2Field Space) : | |
| 24 | + inner ℝ g A.toLp = ∫ x, inner ℝ (φ x) (A.field x) := by | |
| 25 | + rw [MeasureTheory.L2.inner_def] | |
| 26 | + apply integral_congr_ae | |
| 27 | + filter_upwards [hg, A.toLp_ae] with x hgx hAx | |
| 28 | + rw [hgx, hAx] | |
| 29 | + | |
| 30 | +/-- An arbitrary compact smooth solenoidal representative has the clamped | |
| 31 | +weak projected derivative used by the Sobolev time-upgrade theorem. -/ | |
| 32 | +theorem comparator_compact_rep_pairing_hasDerivAt | |
| 33 | + {u₀ : Space → Space} {v : Space → ℝ → Space} {p : Space → ℝ → ℝ} | |
| 34 | + (h : EulerExistenceAndSmoothnessR3 u₀ v p) {T : ℝ} (hT : 0 < T) | |
| 35 | + (A : Icc (0 : ℝ) T → SmoothL2Field Space) | |
| 36 | + (hA : ∀ s, (A s).field = (v · s)) | |
| 37 | + (g : solenoidalSpace) (φ : Space → Space) | |
| 38 | + (hφ : ContDiff ℝ ∞ φ) (hφc : HasCompactSupport φ) | |
| 39 | + (hφdiv : ∀ x, EulerSmoothLimit.divergence φ x = 0) | |
| 40 | + (hg : ((g : L2) : Space → Space) =ᵐ[volume] φ) | |
| 41 | + (t : ℝ) (ht : t ∈ Ioo 0 T) : | |
| 42 | + HasDerivAt (fun r => inner ℝ (g : L2) (A (projIcc 0 T hT.le r)).toLp) | |
| 43 | + (inner ℝ (g : L2) (projectedRhs (A ⟨t, ht.1.le, ht.2.le⟩)).toLp) t := by | |
| 44 | + have hd := comparator_clamped_compact_pairing_hasDerivAt h hT A hA | |
| 45 | + (g : L2) φ hφ hφc hφdiv hg t ht | |
| 46 | + have hR : -(∫ x, inner ℝ (φ x) (fderiv ℝ (v · t) x (v x t))) = | |
| 47 | + inner ℝ (g : L2) (projectedRhs (A ⟨t, ht.1.le, ht.2.le⟩)).toLp := by | |
| 48 | + rw [EulerCompactProjectedPairing.inner_projectedRhs _ g.property, | |
| 49 | + inner_smoothField_eq_integral _ φ hg] | |
| 50 | + simp only [advectionField_field, hA] | |
| 51 | + rwa [hR] at hd | |
| 52 | + | |
| 53 | +/-- The exact weak projected derivative on the dense compact solenoidal | |
| 54 | +test family. This is derived from the Comparator Euler equation itself. -/ | |
| 55 | +theorem comparator_projected_pairing_hasDerivAt | |
| 56 | + {u₀ : Space → Space} {v : Space → ℝ → Space} {p : Space → ℝ → ℝ} | |
| 57 | + (h : EulerExistenceAndSmoothnessR3 u₀ v p) {T : ℝ} (hT : 0 < T) | |
| 58 | + (A : Icc (0 : ℝ) T → SmoothL2Field Space) | |
| 59 | + (hA : ∀ s, (A s).field = (v · s)) | |
| 60 | + (g : solenoidalSpace) (hg : g ∈ compactSolenoidalTests) | |
| 61 | + (t : ℝ) (ht : t ∈ Ioo 0 T) : | |
| 62 | + HasDerivAt (fun r => inner ℝ (g : L2) (A (projIcc 0 T hT.le r)).toLp) | |
| 63 | + (inner ℝ (g : L2) (projectedRhs (A ⟨t, ht.1.le, ht.2.le⟩)).toLp) t := by | |
| 64 | + obtain ⟨φ, hφ, hφc, hφdiv, hgrep⟩ := compactSolenoidalTests_representation g hg | |
| 65 | + exact comparator_compact_rep_pairing_hasDerivAt h hT A hA g φ | |
| 66 | + hφ hφc hφdiv hgrep t ht | |
| 67 | + | |
| 68 | +end Euler.ComparatorBridge | |
+67 −0 Euler/CompactProjectedPairing.lean added View file
| @@ -0,0 +1,67 @@ | ||
| 1 | +import Euler.OrdinaryHelmholtzField | |
| 2 | + | |
| 3 | +/-! | |
| 4 | +# Pairing the projected Euler right-hand side | |
| 5 | + | |
| 6 | +A solenoidal `L²` test field removes the Helmholtz projection from the | |
| 7 | +Euler right-hand side. For a smooth divergence-free test field, this gives | |
| 8 | +the ordinary spatial integral against advection. Compactly supported smooth | |
| 9 | +tests automatically satisfy the required `L²` assumption. | |
| 10 | +-/ | |
| 11 | + | |
| 12 | +noncomputable section | |
| 13 | + | |
| 14 | +open MeasureTheory InnerProductSpace EulerSmoothLimit EulerLpTranslation | |
| 15 | + EulerLpTranslation.SmoothL2Field EulerMeanSolenoidal EulerOrdinarySobolev | |
| 16 | + EulerVectorCalculus | |
| 17 | +open scoped ContDiff | |
| 18 | + | |
| 19 | +namespace EulerCompactProjectedPairing | |
| 20 | + | |
| 21 | +/-- The Helmholtz projection can be removed in a solenoidal pairing. -/ | |
| 22 | +theorem inner_solenoidalProjection (φ b : L2) (hφ : φ ∈ solenoidalSpace) : | |
| 23 | + ⟪φ, solenoidalProjection b⟫_ℝ = ⟪φ, b⟫_ℝ := by | |
| 24 | + have hz := pressure_pairing_zero (sub_solenoidalProjection_mem_gradient b) hφ | |
| 25 | + rw [real_inner_comm, inner_sub_right] at hz | |
| 26 | + exact (sub_eq_zero.mp hz).symm | |
| 27 | + | |
| 28 | +/-- A solenoidal test sees precisely negative advection in the projected | |
| 29 | +Euler right-hand side. -/ | |
| 30 | +theorem inner_projectedRhs (φ : L2) (hφ : φ ∈ solenoidalSpace) | |
| 31 | + (A : SmoothL2Field Space) : | |
| 32 | + ⟪φ, (projectedRhs A).toLp⟫_ℝ = -⟪φ, (advectionField A A).toLp⟫_ℝ := by | |
| 33 | + rw [projectedRhs_toLp, inner_neg_right, inner_solenoidalProjection _ _ hφ] | |
| 34 | + | |
| 35 | +/-- Integral form of the projected pairing for an arbitrary solenoidal | |
| 36 | +`L²` representative. -/ | |
| 37 | +theorem inner_projectedRhs_eq_integral (φ : Space → Space) | |
| 38 | + (hLp : MemLp φ 2 (volume : Measure Space)) | |
| 39 | + (hφ : hLp.toLp φ ∈ solenoidalSpace) (A : SmoothL2Field Space) : | |
| 40 | + ⟪hLp.toLp φ, (projectedRhs A).toLp⟫_ℝ = | |
| 41 | + -∫ x, ⟪φ x, fderiv ℝ A.field x (A.field x)⟫_ℝ := by | |
| 42 | + rw [inner_projectedRhs _ hφ, MeasureTheory.L2.inner_def] | |
| 43 | + congr 1 | |
| 44 | + apply integral_congr_ae | |
| 45 | + filter_upwards [hLp.coeFn_toLp, (advectionField A A).toLp_ae] with x hφx hAx | |
| 46 | + rw [hφx, hAx, advectionField_field] | |
| 47 | + | |
| 48 | +/-- Smooth divergence-free `L²` tests remove the pressure projection. -/ | |
| 49 | +theorem smooth_inner_projectedRhs_eq_integral (φ : Space → Space) | |
| 50 | + (hs : ContDiff ℝ ∞ φ) (hLp : MemLp φ 2 (volume : Measure Space)) | |
| 51 | + (hdiv : ∀ x, divergence φ x = 0) (A : SmoothL2Field Space) : | |
| 52 | + ⟪hLp.toLp φ, (projectedRhs A).toLp⟫_ℝ = | |
| 53 | + -∫ x, ⟪φ x, fderiv ℝ A.field x (A.field x)⟫_ℝ := | |
| 54 | + inner_projectedRhs_eq_integral φ hLp (smooth_mem_solenoidal φ hs hLp hdiv) A | |
| 55 | + | |
| 56 | +/-- In particular, every compactly supported smooth divergence-free test | |
| 57 | +has the projected Euler pairing required by the Comparator bridge. -/ | |
| 58 | +theorem compact_inner_projectedRhs_eq_integral (φ : Space → Space) | |
| 59 | + (hs : ContDiff ℝ ∞ φ) (hc : HasCompactSupport φ) | |
| 60 | + (hdiv : ∀ x, divergence φ x = 0) (A : SmoothL2Field Space) : | |
| 61 | + ⟪(hs.continuous.memLp_of_hasCompactSupport hc).toLp φ, | |
| 62 | + (projectedRhs A).toLp⟫_ℝ = | |
| 63 | + -∫ x, ⟪φ x, fderiv ℝ A.field x (A.field x)⟫_ℝ := | |
| 64 | + smooth_inner_projectedRhs_eq_integral φ hs | |
| 65 | + (hs.continuous.memLp_of_hasCompactSupport hc) hdiv A | |
| 66 | + | |
| 67 | +end EulerCompactProjectedPairing | |
+50 −0 Euler/CompactSmoothBounds.lean added View file
| @@ -0,0 +1,50 @@ | ||
| 1 | +import Euler.ClassicalBridge | |
| 2 | +import Mathlib.Analysis.Calculus.TangentCone.Prod | |
| 3 | +import Mathlib.Analysis.Normed.Group.Bounded | |
| 4 | + | |
| 5 | +/-! Joint smoothness in the reference bounds spatial derivatives on every fixed | |
| 6 | +compact spatial set and closed finite time interval, including time zero. -/ | |
| 7 | + | |
| 8 | +noncomputable section | |
| 9 | + | |
| 10 | +open Set Filter MeasureTheory ContinuousLinearMap | |
| 11 | +open scoped ContDiff Topology | |
| 12 | + | |
| 13 | +namespace Euler.EulerExistenceAndSmoothnessR3 | |
| 14 | + | |
| 15 | +local notation "ℝ³" => EuclideanSpace ℝ (Fin 3) | |
| 16 | + | |
| 17 | +variable {u₀ : ℝ³ → ℝ³} {v : ℝ³ → ℝ → ℝ³} {p : ℝ³ → ℝ → ℝ} | |
| 18 | + (h : EulerExistenceAndSmoothnessR3 u₀ v p) | |
| 19 | + | |
| 20 | +include h | |
| 21 | + | |
| 22 | +theorem spatial_fderiv_eq_within (x : ℝ³) (t : ℝ) (ht : 0 ≤ t) : | |
| 23 | + fderiv ℝ (v · t) x = | |
| 24 | + (fderivWithin ℝ (Function.uncurry v) (univ ×ˢ Ici 0) (x, t)).comp | |
| 25 | + (inl ℝ ℝ³ ℝ) := by | |
| 26 | + have hd := (h.velocity_smooth.differentiableOn (by simp) (x, t) | |
| 27 | + ⟨mem_univ x, ht⟩).hasFDerivWithinAt | |
| 28 | + exact (hd.comp_hasFDerivAt (f := fun y : ℝ³ => (y, t)) x | |
| 29 | + (hasFDerivAt_prodMk_left (𝕜 := ℝ) x t) | |
| 30 | + (Eventually.of_forall (fun y => ⟨mem_univ y, ht⟩))).fderiv | |
| 31 | + | |
| 32 | +theorem spatial_fderiv_continuousOn : | |
| 33 | + ContinuousOn (fun z : ℝ³ × ℝ => fderiv ℝ (v · z.2) z.1) | |
| 34 | + (univ ×ˢ Ici 0) := by | |
| 35 | + have hc := h.velocity_smooth.continuousOn_fderivWithin | |
| 36 | + (uniqueDiffOn_univ.prod (uniqueDiffOn_Ici 0)) (by simp) | |
| 37 | + apply (hc.clm_comp (continuousOn_const (c := inl ℝ ℝ³ ℝ))).congr | |
| 38 | + intro z hz | |
| 39 | + exact h.spatial_fderiv_eq_within z.1 z.2 hz.2 | |
| 40 | + | |
| 41 | +theorem spatial_fderiv_bounded_on_compact (K : Set ℝ³) (hK : IsCompact K) | |
| 42 | + (T : ℝ) : ∃ C : ℝ, ∀ x ∈ K, ∀ t ∈ Icc (0 : ℝ) T, | |
| 43 | + ‖fderiv ℝ (v · t) x‖ ≤ C := by | |
| 44 | + obtain ⟨C, hC⟩ := (hK.prod isCompact_Icc).exists_bound_of_continuousOn | |
| 45 | + (h.spatial_fderiv_continuousOn.mono | |
| 46 | + (show K ×ˢ Icc (0 : ℝ) T ⊆ univ ×ˢ Ici 0 from | |
| 47 | + fun _ hz => ⟨mem_univ _, hz.2.1⟩)) | |
| 48 | + exact ⟨C, fun x hx t ht => hC (x, t) ⟨hx, ht⟩⟩ | |
| 49 | + | |
| 50 | +end Euler.EulerExistenceAndSmoothnessR3 | |
+32 −0 Euler/CompactSmoothL2Bounds.lean added View file
| @@ -0,0 +1,32 @@ | ||
| 1 | +import Euler.SmoothL2GevreyCalculus | |
| 2 | +import Euler.MeanCutoffDifferenceBound | |
| 3 | + | |
| 4 | +/-! Compact support turns actual uniform tensor bounds into the ordinary | |
| 5 | +L² tensor bounds used in the label Sobolev estimates. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +namespace EulerLpTranslation.SmoothL2Field | |
| 10 | + | |
| 11 | +open Set MeasureTheory EulerSmoothLimit EulerGevrey | |
| 12 | + | |
| 13 | +variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] | |
| 14 | + | |
| 15 | +theorem hasJetBound_of_support_sup (A : SmoothL2Field V) (K : Set Space) | |
| 16 | + (hK : volume K ≠ ⊤) (hs : tsupport A.field ⊆ K) | |
| 17 | + (C R : ℝ) (hC : 0 ≤ C) (hR : 0 ≤ R) (hb : HasSupBound A.field C R) : | |
| 18 | + A.HasJetBound (C*(volume K).toReal^(1/2 : ℝ)) R := by | |
| 19 | + intro n | |
| 20 | + have hzero : ∀ x ∉ K, iteratedFDeriv ℝ n A.field x=0 := by | |
| 21 | + intro x hx | |
| 22 | + by_contra hn | |
| 23 | + exact hx (hs (support_iteratedFDeriv_subset n hn)) | |
| 24 | + have h := EulerMeanBoundary.lpNorm_le_bound_volume (iteratedFDeriv ℝ n A.field) | |
| 25 | + (A.integrable n).aestronglyMeasurable K hK (C*R^n*(n.factorial : ℝ)^2) | |
| 26 | + (by positivity) (hb n) hzero 2 | |
| 27 | + rw [norm_jetLp,toReal_eLpNorm (A.integrable n).aestronglyMeasurable] | |
| 28 | + convert h using 1 | |
| 29 | + norm_num | |
| 30 | + ring | |
| 31 | + | |
| 32 | +end EulerLpTranslation.SmoothL2Field | |
+158 −0 Euler/CompactSmoothTimeField.lean added View file
| @@ -0,0 +1,158 @@ | ||
| 1 | +import Euler.SmoothTimeField | |
| 2 | +import Euler.CompactSupportBoundedPath | |
| 3 | +import Mathlib.Analysis.Calculus.ContDiff.Comp | |
| 4 | +import Mathlib.Analysis.Calculus.TangentCone.Prod | |
| 5 | + | |
| 6 | +/-! Jointly smooth spatially compact families define smooth time fields. | |
| 7 | +The compact support is common to the time slices, so compact joint continuity | |
| 8 | +upgrades to continuity in the uniform spatial norm at every derivative order. -/ | |
| 9 | + | |
| 10 | +noncomputable section | |
| 11 | + | |
| 12 | +open Set Filter | |
| 13 | +open scoped ContDiff BoundedContinuousFunction Topology | |
| 14 | + | |
| 15 | + | |
| 16 | +namespace EulerCompactSmoothTimeField | |
| 17 | + | |
| 18 | +variable {P E V : Type} | |
| 19 | + [NormedAddCommGroup P] [NormedSpace ℝ P] | |
| 20 | + [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 21 | + [NormedAddCommGroup V] [NormedSpace ℝ V] | |
| 22 | + | |
| 23 | +/-- Taking a spatial derivative preserves joint smoothness on an arbitrary | |
| 24 | +parameter set. Only the spatial domain needs unique derivatives. -/ | |
| 25 | +theorem contDiffOn_spatial_fderiv {s : Set P} {u : P × E → V} | |
| 26 | + (hu : ContDiffOn ℝ ∞ u (s ×ˢ univ)) : | |
| 27 | + ContDiffOn ℝ ∞ (fun z : P × E => fderiv ℝ (fun x => u (z.1, x)) z.2) | |
| 28 | + (s ×ˢ univ) := by | |
| 29 | + intro z hz | |
| 30 | + have ha : ContDiffOn ℝ ∞ | |
| 31 | + (fun w : (P × E) × E => u (w.1.1, w.2)) | |
| 32 | + ((s ×ˢ univ) ×ˢ univ) := | |
| 33 | + hu.comp (contDiffOn_fst.fst.prodMk contDiffOn_snd) | |
| 34 | + (fun w hw => ⟨hw.1.1, mem_univ _⟩) | |
| 35 | + have hb := (ha (z, z.2) ⟨hz, mem_univ _⟩).fderivWithin | |
| 36 | + (f := fun (w : P × E) (x : E) => u (w.1, x)) | |
| 37 | + contDiffWithinAt_snd uniqueDiffOn_univ (m := ∞) (by simp) hz | |
| 38 | + (fun _ _ => mem_univ _) | |
| 39 | + simpa only [fderivWithin_univ] using hb | |
| 40 | + | |
| 41 | +/-- Every actual spatial jet is jointly smooth, including at the boundary of | |
| 42 | +the parameter set. -/ | |
| 43 | +theorem contDiffOn_spatial_jet {s : Set P} {u : P × E → V} | |
| 44 | + (hu : ContDiffOn ℝ ∞ u (s ×ˢ univ)) (n : ℕ) : | |
| 45 | + ContDiffOn ℝ ∞ | |
| 46 | + (fun z : P × E => iteratedFDeriv ℝ n (fun x => u (z.1, x)) z.2) | |
| 47 | + (s ×ˢ univ) := by | |
| 48 | + induction n with | |
| 49 | + | zero => | |
| 50 | + simpa [iteratedFDeriv_zero_eq_comp, Function.comp_def] using | |
| 51 | + (continuousMultilinearCurryFin0 ℝ E V).symm.toContinuousLinearEquiv.contDiff.contDiffOn.comp | |
| 52 | + hu (mapsTo_univ _ _) | |
| 53 | + | succ n ih => | |
| 54 | + simp only [iteratedFDeriv_succ_eq_comp_left, Function.comp_def] | |
| 55 | + exact (continuousMultilinearCurryLeftEquiv ℝ (fun _ : Fin (n + 1) => E) V).symm.toContinuousLinearEquiv.contDiff.contDiffOn.comp | |
| 56 | + (contDiffOn_spatial_fderiv ih) (mapsTo_univ _ _) | |
| 57 | + | |
| 58 | +end EulerCompactSmoothTimeField | |
| 59 | + | |
| 60 | +namespace SmoothTimeField | |
| 61 | + | |
| 62 | +variable {K L E V : Type} [TopologicalSpace K] [CompactSpace K] | |
| 63 | + [TopologicalSpace L] [CompactSpace L] | |
| 64 | + [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 65 | + [NormedAddCommGroup V] [NormedSpace ℝ V] | |
| 66 | + | |
| 67 | +/-- Pulling back time by a continuous map preserves all uniform spatial jets. -/ | |
| 68 | +def reparametrize (A : SmoothTimeField K E V) (r : C(L, K)) : SmoothTimeField L E V where | |
| 69 | + field := A.field.comp r | |
| 70 | + smooth t := A.smooth (r t) | |
| 71 | + jet n := (A.jet n).comp r | |
| 72 | + jet_eq n t x := A.jet_eq n (r t) x | |
| 73 | + | |
| 74 | +@[simp] theorem reparametrize_apply (A : SmoothTimeField K E V) (r : C(L, K)) | |
| 75 | + (t : L) (x : E) : (A.reparametrize r).field t x = A.field (r t) x := rfl | |
| 76 | + | |
| 77 | +@[simp] theorem reparametrize_jet_apply (A : SmoothTimeField K E V) (r : C(L, K)) | |
| 78 | + (n : ℕ) (t : L) (x : E) : (A.reparametrize r).jet n t x = A.jet n (r t) x := rfl | |
| 79 | + | |
| 80 | +end SmoothTimeField | |
| 81 | + | |
| 82 | +namespace SmoothTimeField | |
| 83 | + | |
| 84 | +variable {A E V : Type} [TopologicalSpace A] [CompactSpace A] | |
| 85 | + [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 86 | + [NormedAddCommGroup V] [NormedSpace ℝ V] | |
| 87 | + | |
| 88 | +private local instance (n : ℕ) : NormedAddCommGroup (E [×n]→L[ℝ] V) := inferInstance | |
| 89 | +private local instance (n : ℕ) : NormedSpace ℝ (E [×n]→L[ℝ] V) := inferInstance | |
| 90 | +private local instance (n : ℕ) : NormedAddCommGroup (E →ᵇ (E [×n]→L[ℝ] V)) := inferInstance | |
| 91 | +private local instance (n : ℕ) : NormedSpace ℝ (E →ᵇ (E [×n]→L[ℝ] V)) := inferInstance | |
| 92 | + | |
| 93 | +/-- Continuous spatial jets with one common compact support yield a bounded | |
| 94 | +smooth coefficient path. The support condition on derivatives is derived. -/ | |
| 95 | +def ofCompactSupportJets (u : A × E → V) (hu : Continuous u) | |
| 96 | + (hsmooth : ∀ t, ContDiff ℝ ∞ (fun x => u (t, x))) | |
| 97 | + (hjet : ∀ n : ℕ, Continuous | |
| 98 | + (fun z : A × E => iteratedFDeriv ℝ n (fun x => u (z.1, x)) z.2)) | |
| 99 | + (K : Set E) (hK : IsCompact K) | |
| 100 | + (hsupp : ∀ t, tsupport (fun x => u (t, x)) ⊆ K) : SmoothTimeField A E V where | |
| 101 | + field := EulerComparator.compactSupportBoundedPath u hu K hK hsupp | |
| 102 | + smooth := hsmooth | |
| 103 | + jet n := EulerComparator.compactSupportBoundedPath _ (hjet n) K hK | |
| 104 | + (fun t => (tsupport_iteratedFDeriv_subset n).trans (hsupp t)) | |
| 105 | + jet_eq _ _ _ := rfl | |
| 106 | + | |
| 107 | +@[simp] theorem ofCompactSupportJets_apply (u : A × E → V) (hu : Continuous u) | |
| 108 | + (hsmooth : ∀ t, ContDiff ℝ ∞ (fun x => u (t, x))) | |
| 109 | + (hjet : ∀ n : ℕ, Continuous | |
| 110 | + (fun z : A × E => iteratedFDeriv ℝ n (fun x => u (z.1, x)) z.2)) | |
| 111 | + (K : Set E) (hK : IsCompact K) | |
| 112 | + (hsupp : ∀ t, tsupport (fun x => u (t, x)) ⊆ K) (t : A) (x : E) : | |
| 113 | + (ofCompactSupportJets u hu hsmooth hjet K hK hsupp).field t x = u (t, x) := rfl | |
| 114 | + | |
| 115 | +end SmoothTimeField | |
| 116 | + | |
| 117 | +namespace SmoothTimeField | |
| 118 | + | |
| 119 | +variable {P E V : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] | |
| 120 | + [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 121 | + [NormedAddCommGroup V] [NormedSpace ℝ V] | |
| 122 | + | |
| 123 | +/-- A jointly smooth family on a compact parameter set with common compact | |
| 124 | +spatial support has all spatial jets continuous in the uniform norm. -/ | |
| 125 | +def ofContDiffOnCompactSupport (s : Set P) [CompactSpace s] | |
| 126 | + (u : P × E → V) (hu : ContDiffOn ℝ ∞ u (s ×ˢ univ)) | |
| 127 | + (K : Set E) (hK : IsCompact K) | |
| 128 | + (hsupp : ∀ t ∈ s, tsupport (fun x => u (t, x)) ⊆ K) : | |
| 129 | + SmoothTimeField s E V := | |
| 130 | + ofCompactSupportJets (fun z : s × E => u (z.1, z.2)) | |
| 131 | + (hu.continuousOn.comp_continuous | |
| 132 | + ((continuous_subtype_val.comp continuous_fst).prodMk continuous_snd) | |
| 133 | + (fun z => ⟨z.1.property, mem_univ _⟩)) | |
| 134 | + (fun t => by | |
| 135 | + change ContDiff ℝ ∞ (fun x : E => u ((t : P), x)) | |
| 136 | + apply contDiffOn_univ.mp | |
| 137 | + exact hu.comp ((contDiffOn_const (c := (t : P))).prodMk contDiffOn_id) | |
| 138 | + (fun _ _ => ⟨t.property, mem_univ _⟩)) | |
| 139 | + (fun n => (EulerCompactSmoothTimeField.contDiffOn_spatial_jet hu n).continuousOn.comp_continuous | |
| 140 | + ((continuous_subtype_val.comp continuous_fst).prodMk continuous_snd) | |
| 141 | + (fun z => ⟨z.1.property, mem_univ _⟩)) | |
| 142 | + K hK (fun t => hsupp t t.property) | |
| 143 | + | |
| 144 | +@[simp] theorem ofContDiffOnCompactSupport_apply (s : Set P) [CompactSpace s] | |
| 145 | + (u : P × E → V) (hu : ContDiffOn ℝ ∞ u (s ×ˢ univ)) | |
| 146 | + (K : Set E) (hK : IsCompact K) | |
| 147 | + (hsupp : ∀ t ∈ s, tsupport (fun x => u (t, x)) ⊆ K) (t : s) (x : E) : | |
| 148 | + (ofContDiffOnCompactSupport s u hu K hK hsupp).field t x = u (t, x) := rfl | |
| 149 | + | |
| 150 | +@[simp] theorem ofContDiffOnCompactSupport_jet_apply (s : Set P) [CompactSpace s] | |
| 151 | + (u : P × E → V) (hu : ContDiffOn ℝ ∞ u (s ×ˢ univ)) | |
| 152 | + (K : Set E) (hK : IsCompact K) | |
| 153 | + (hsupp : ∀ t ∈ s, tsupport (fun x => u (t, x)) ⊆ K) | |
| 154 | + (n : ℕ) (t : s) (x : E) : | |
| 155 | + (ofContDiffOnCompactSupport s u hu K hK hsupp).jet n t x = | |
| 156 | + iteratedFDeriv ℝ n (fun y => u (t, y)) x := rfl | |
| 157 | + | |
| 158 | +end SmoothTimeField | |
+192 −0 Euler/CompactSolenoidalDensity.lean added View file
| @@ -0,0 +1,192 @@ | ||
| 1 | +import Euler.MeanWeakHarmonicScaling | |
| 2 | + | |
| 3 | +/-! | |
| 4 | +# Compact smooth solenoidal tests determine ordinary L² solenoidal fields | |
| 5 | + | |
| 6 | +The curl-curl identity reduces the orthogonal complement of compact smooth | |
| 7 | +curls inside the solenoidal space to globally weakly harmonic L² fields. | |
| 8 | +-/ | |
| 9 | + | |
| 10 | +noncomputable section | |
| 11 | + | |
| 12 | +namespace Euler.ComparatorBridge | |
| 13 | + | |
| 14 | +open Set MeasureTheory InnerProductSpace Laplacian EulerSmoothLimit EulerVectorCalculus | |
| 15 | + EulerMeanSolenoidal EulerMeanGradientTest EulerMeanVectorIdentities EulerMeanHarmonic | |
| 16 | + EulerMeanCurlIntegration EulerMeanBoundary | |
| 17 | +open scoped ContDiff Topology | |
| 18 | +open Filter | |
| 19 | + | |
| 20 | +/-- A distributionally harmonic vector field on all of ℝ³ vanishes if it lies in L². -/ | |
| 21 | +theorem weakHarmonicOn_univ_eq_zero (u : EulerMeanSolenoidal.L2) | |
| 22 | + (hu : WeakHarmonicOn Set.univ u) : u = 0 := by | |
| 23 | + have hball (n : ℕ) : WeakHarmonicOn | |
| 24 | + (Metric.ball (0 : Space) ((n + 1 : ℕ) : ℝ)) u := by | |
| 25 | + intro φ hc hs _ | |
| 26 | + exact hu φ hc hs (Set.subset_univ _) | |
| 27 | + have hall : ∀ᵐ x ∂volume, ∀ n : ℕ, | |
| 28 | + x ∈ Metric.closedBall (0 : Space) (((n + 1 : ℕ) : ℝ) / 4) → | |
| 29 | + ‖u x‖ ^ 2 ≤ | |
| 30 | + (harmonicQuarterBallConstant * (((n + 1 : ℕ) : ℝ) ^ 3)⁻¹) * ‖u‖ ^ 2 := | |
| 31 | + ae_all_iff.mpr (fun n => weakHarmonic_pointwise_scaled u | |
| 32 | + ((n + 1 : ℕ) : ℝ) (by positivity) (hball n)) | |
| 33 | + have hrad : Tendsto (fun n : ℕ => ((n + 1 : ℕ) : ℝ)) atTop atTop := | |
| 34 | + tendsto_natCast_atTop_atTop.comp (tendsto_add_atTop_nat 1) | |
| 35 | + have hlim : Tendsto (fun n : ℕ => | |
| 36 | + (harmonicQuarterBallConstant * (((n + 1 : ℕ) : ℝ) ^ 3)⁻¹) * ‖u‖ ^ 2) | |
| 37 | + atTop (𝓝 0) := by | |
| 38 | + have hi := (tendsto_inv_atTop_zero : Tendsto (fun r : ℝ => r⁻¹) atTop (𝓝 0)).comp | |
| 39 | + ((tendsto_pow_atTop (by decide : (3 : ℕ) ≠ 0)).comp hrad) | |
| 40 | + simpa using (hi.const_mul harmonicQuarterBallConstant).mul_const (‖u‖ ^ 2) | |
| 41 | + apply Lp.ext | |
| 42 | + filter_upwards [hall, Lp.coeFn_zero Space 2 volume] with x hx hz | |
| 43 | + rw [hz] | |
| 44 | + have hlarge : ∀ᶠ n : ℕ in atTop, 4 * ‖x‖ ≤ ((n + 1 : ℕ) : ℝ) := | |
| 45 | + hrad.eventually (eventually_ge_atTop (4 * ‖x‖)) | |
| 46 | + have hzero : ‖u x‖ ^ 2 ≤ 0 := ge_of_tendsto hlim (hlarge.mono (fun n hn => | |
| 47 | + hx n (by simpa only [Metric.mem_closedBall, dist_zero_right] using | |
| 48 | + (show ‖x‖ ≤ ((n + 1 : ℕ) : ℝ) / 4 by linarith)))) | |
| 49 | + exact norm_eq_zero.mp (sq_eq_zero_iff.mp (le_antisymm hzero (sq_nonneg _))) | |
| 50 | + | |
| 51 | +/-- Taking the L² class of a compact smooth curl is a linear operation. -/ | |
| 52 | +def compactCurlMap : Test →ₗ[ℝ] L2 where | |
| 53 | + toFun f := testValue (curlTest f) | |
| 54 | + map_add' f g := by | |
| 55 | + apply Lp.ext | |
| 56 | + filter_upwards [testValue_ae (curlTest (f + g)), | |
| 57 | + testValue_ae (curlTest f), testValue_ae (curlTest g), | |
| 58 | + Lp.coeFn_add (testValue (curlTest f)) (testValue (curlTest g))] | |
| 59 | + with x hfg hf hg ha | |
| 60 | + rw [hfg, ha] | |
| 61 | + simp only [Pi.add_apply, hf, hg] | |
| 62 | + exact congrFun (vectorCurl_add (f : Space → Space) (g : Space → Space) | |
| 63 | + (f.smooth.differentiable (by simp)) (g.smooth.differentiable (by simp))) x | |
| 64 | + map_smul' c f := by | |
| 65 | + simp only [RingHom.id_apply] | |
| 66 | + apply Lp.ext | |
| 67 | + filter_upwards [testValue_ae (curlTest (c • f)), testValue_ae (curlTest f), | |
| 68 | + Lp.coeFn_smul c (testValue (curlTest f))] with x hcf hf hs | |
| 69 | + rw [hcf, hs] | |
| 70 | + simp only [Pi.smul_apply, hf] | |
| 71 | + exact congrFun (vectorCurl_smul c (f : Space → Space) | |
| 72 | + (f.smooth.differentiable (by simp))) x | |
| 73 | + | |
| 74 | +/-- L² classes of curls of genuine compactly supported smooth vector fields. -/ | |
| 75 | +def compactCurlGenerators : Set L2 := | |
| 76 | + Set.range (fun f : Test => testValue (curlTest f)) | |
| 77 | + | |
| 78 | +/-- The closed linear space generated by compactly supported smooth curls. -/ | |
| 79 | +def compactCurlSpace : Submodule ℝ L2 := | |
| 80 | + (Submodule.span ℝ compactCurlGenerators).topologicalClosure | |
| 81 | + | |
| 82 | +theorem compactCurlSpace_closed : IsClosed (compactCurlSpace : Set L2) := | |
| 83 | + (Submodule.span ℝ compactCurlGenerators).isClosed_topologicalClosure | |
| 84 | + | |
| 85 | +instance : CompleteSpace compactCurlSpace := compactCurlSpace_closed.completeSpace_coe | |
| 86 | + | |
| 87 | +theorem compactCurl_mem_solenoidal (f : Test) : | |
| 88 | + testValue (curlTest f) ∈ solenoidalSpace := | |
| 89 | + curl_mem_solenoidal _ ((contDiff_piLp 2).mp f.smooth) (test_memLp (curlTest f)) | |
| 90 | + | |
| 91 | +theorem compactCurl_mem (f : Test) : testValue (curlTest f) ∈ compactCurlSpace := | |
| 92 | + (Submodule.span ℝ compactCurlGenerators).le_topologicalClosure | |
| 93 | + (Submodule.subset_span ⟨f, rfl⟩) | |
| 94 | + | |
| 95 | +theorem compactCurlSpace_le_solenoidal : compactCurlSpace ≤ solenoidalSpace := by | |
| 96 | + apply (Submodule.span ℝ compactCurlGenerators).topologicalClosure_minimal | |
| 97 | + _ gradientSpace.isClosed_orthogonal | |
| 98 | + apply Submodule.span_le.mpr | |
| 99 | + rintro _ ⟨f, rfl⟩ | |
| 100 | + exact compactCurl_mem_solenoidal f | |
| 101 | + | |
| 102 | +/-- A solenoidal field annihilating compact smooth curls is weakly harmonic. -/ | |
| 103 | +theorem weakHarmonicOn_univ_of_compactCurl_pairing_zero | |
| 104 | + (u : L2) (hu : u ∈ solenoidalSpace) | |
| 105 | + (htest : ∀ f : Test, ⟪u, testValue (curlTest f)⟫_ℝ = 0) : | |
| 106 | + WeakHarmonicOn Set.univ u := by | |
| 107 | + intro φ hc hs _ | |
| 108 | + let f : Test := ⟨φ, hs, hc⟩ | |
| 109 | + have h := solenoidal_curlcurl_pairing u hu f | |
| 110 | + rw [htest (curlTest f)] at h | |
| 111 | + have hz : ⟪u, testValue (laplacianTest f)⟫_ℝ = 0 := by linarith | |
| 112 | + exact (l2_test_pairing u (laplacianTest f)).symm.trans hz | |
| 113 | + | |
| 114 | +/-- Compact smooth curls span the entire solenoidal Hilbert space densely. -/ | |
| 115 | +theorem compactCurlSpace_eq_solenoidal : compactCurlSpace = solenoidalSpace := by | |
| 116 | + have hbot : compactCurlSpace.orthogonal ⊓ solenoidalSpace = ⊥ := by | |
| 117 | + apply eq_bot_iff.mpr | |
| 118 | + intro u hu | |
| 119 | + change u = 0 | |
| 120 | + apply weakHarmonicOn_univ_eq_zero u | |
| 121 | + apply weakHarmonicOn_univ_of_compactCurl_pairing_zero u hu.2 | |
| 122 | + intro f | |
| 123 | + rw [real_inner_comm] | |
| 124 | + exact hu.1 _ (compactCurl_mem f) | |
| 125 | + simpa only [hbot, sup_bot_eq] using | |
| 126 | + (Submodule.sup_orthogonal_inf_of_hasOrthogonalProjection compactCurlSpace_le_solenoidal) | |
| 127 | + | |
| 128 | +/-- Linearity makes the closure of the generator set itself the full solenoidal space. -/ | |
| 129 | +theorem closure_compactCurlGenerators : | |
| 130 | + closure compactCurlGenerators = (solenoidalSpace : Set L2) := by | |
| 131 | + have hspan : Submodule.span ℝ compactCurlGenerators = compactCurlMap.range := by | |
| 132 | + change Submodule.span ℝ (compactCurlMap.range : Set L2) = compactCurlMap.range | |
| 133 | + exact Submodule.span_eq _ | |
| 134 | + calc | |
| 135 | + closure compactCurlGenerators = (compactCurlSpace : Set L2) := by | |
| 136 | + rw [compactCurlSpace, hspan, Submodule.topologicalClosure_coe] | |
| 137 | + rfl | |
| 138 | + _ = (solenoidalSpace : Set L2) := by rw [compactCurlSpace_eq_solenoidal] | |
| 139 | + | |
| 140 | +/-- Compact smooth curl classes regarded as a subset of the solenoidal Hilbert space. -/ | |
| 141 | +def compactSolenoidalTests : Set solenoidalSpace := | |
| 142 | + {u | (u : L2) ∈ compactCurlGenerators} | |
| 143 | + | |
| 144 | +/-- Every member is represented by an actual compact smooth divergence-free field. -/ | |
| 145 | +theorem compactSolenoidalTests_representation (u : solenoidalSpace) | |
| 146 | + (hu : u ∈ compactSolenoidalTests) : | |
| 147 | + ∃ φ : Space → Space, ContDiff ℝ ∞ φ ∧ HasCompactSupport φ ∧ | |
| 148 | + (∀ x, divergence φ x = 0) ∧ ((u : L2) : Space → Space) =ᵐ[volume] φ := by | |
| 149 | + obtain ⟨f, hf⟩ := hu | |
| 150 | + refine ⟨(curlTest f : Space → Space), (curlTest f).smooth, (curlTest f).compact, | |
| 151 | + divergence_curl _ ((contDiff_piLp 2).mp f.smooth), ?_⟩ | |
| 152 | + rw [← hf] | |
| 153 | + exact testValue_ae (curlTest f) | |
| 154 | + | |
| 155 | +/-- A bundled compact smooth solenoidal test has the prescribed L² class. -/ | |
| 156 | +theorem compactSolenoidalTests_testValue (u : solenoidalSpace) | |
| 157 | + (hu : u ∈ compactSolenoidalTests) : | |
| 158 | + ∃ f : Test, (∀ x, divergence (f : Space → Space) x = 0) ∧ | |
| 159 | + testValue f = (u : L2) := by | |
| 160 | + obtain ⟨f, hf⟩ := hu | |
| 161 | + exact ⟨curlTest f, divergence_curl _ ((contDiff_piLp 2).mp f.smooth), hf⟩ | |
| 162 | + | |
| 163 | +/-- The compact test fields form a dense subset of the actual solenoidal L² space. -/ | |
| 164 | +theorem compactSolenoidalTests_dense : Dense compactSolenoidalTests := by | |
| 165 | + apply Subtype.dense_iff.mpr | |
| 166 | + change (solenoidalSpace : Set L2) ⊆ | |
| 167 | + closure (Subtype.val '' {u : solenoidalSpace | (u : L2) ∈ compactCurlGenerators}) | |
| 168 | + have himage : Subtype.val '' | |
| 169 | + {u : solenoidalSpace | (u : L2) ∈ compactCurlGenerators} = compactCurlGenerators := by | |
| 170 | + ext x | |
| 171 | + constructor | |
| 172 | + · rintro ⟨u, hu, rfl⟩ | |
| 173 | + exact hu | |
| 174 | + · intro hx | |
| 175 | + have hxS : x ∈ solenoidalSpace := by | |
| 176 | + change x ∈ (solenoidalSpace : Set L2) | |
| 177 | + rw [← closure_compactCurlGenerators] | |
| 178 | + exact subset_closure hx | |
| 179 | + exact ⟨⟨x, hxS⟩, hx, rfl⟩ | |
| 180 | + rw [himage, closure_compactCurlGenerators] | |
| 181 | + | |
| 182 | +/-- Pairings against compact smooth solenoidal tests determine a solenoidal field. -/ | |
| 183 | +theorem solenoidal_eq_zero_of_compact_test_pairing_zero | |
| 184 | + (u : L2) (hu : u ∈ solenoidalSpace) | |
| 185 | + (htest : ∀ f : Test, (∀ x, divergence (f : Space → Space) x = 0) → | |
| 186 | + ⟪u, testValue f⟫_ℝ = 0) : u = 0 := by | |
| 187 | + apply weakHarmonicOn_univ_eq_zero u | |
| 188 | + apply weakHarmonicOn_univ_of_compactCurl_pairing_zero u hu | |
| 189 | + intro f | |
| 190 | + exact htest (curlTest f) (divergence_curl _ ((contDiff_piLp 2).mp f.smooth)) | |
| 191 | + | |
| 192 | +end Euler.ComparatorBridge | |
+113 −0 Euler/CompactSpatialJets.lean added View file
| @@ -0,0 +1,113 @@ | ||
| 1 | +import Euler.DivCurlRecovery | |
| 2 | +import Mathlib.Analysis.Normed.Group.Bounded | |
| 3 | + | |
| 4 | +/-! Joint spatial coordinate derivatives and uniform energy bounds for | |
| 5 | +families supported in a fixed compact set. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +open Set MeasureTheory Laplacian EulerSmoothLimit EulerVectorCalculus EulerMeanHarmonic | |
| 10 | +open scoped ContDiff Topology | |
| 11 | + | |
| 12 | +namespace EulerComparatorRecovery | |
| 13 | + | |
| 14 | +theorem joint_scalar_partialDerivative_contDiffOn | |
| 15 | + {u : ℝ × Space → ℝ} {S : Set ℝ} | |
| 16 | + (hu : ContDiffOn ℝ ∞ u (S ×ˢ (univ : Set Space))) (i : Fin 3) : | |
| 17 | + ContDiffOn ℝ ∞ (fun z : ℝ × Space => | |
| 18 | + partialDerivative (fun y => u (z.1, y)) i z.2) (S ×ˢ (univ : Set Space)) := by | |
| 19 | + have hd : ContDiffOn ℝ ∞ (fun z : ℝ × Space => | |
| 20 | + fderiv ℝ (fun y => u (z.1, y)) z.2) (S ×ˢ (univ : Set Space)) := by | |
| 21 | + intro z hz | |
| 22 | + have hf : ContDiffWithinAt ℝ ∞ | |
| 23 | + (fun q : (ℝ × Space) × Space => u (q.1.1, q.2)) | |
| 24 | + ((S ×ˢ (univ : Set Space)) ×ˢ (univ : Set Space)) (z, z.2) := by | |
| 25 | + apply (hu z hz).comp (z, z.2) | |
| 26 | + (contDiffWithinAt_fst.fst.prodMk contDiffWithinAt_snd) | |
| 27 | + intro q hq | |
| 28 | + exact ⟨hq.1.1, mem_univ _⟩ | |
| 29 | + have hf' := ContDiffWithinAt.fderivWithin | |
| 30 | + (𝕜 := ℝ) (n := ∞) (m := ∞) | |
| 31 | + (f := fun (z : ℝ × Space) (y : Space) => u (z.1, y)) | |
| 32 | + (s := S ×ˢ (univ : Set Space)) (t := (univ : Set Space)) | |
| 33 | + (g := fun z : ℝ × Space => z.2) | |
| 34 | + hf contDiffWithinAt_snd uniqueDiffOn_univ (by simp) hz | |
| 35 | + (by intro z hz; exact mem_univ _) | |
| 36 | + simpa only [fderivWithin_univ] using hf' | |
| 37 | + exact hd.clm_apply contDiffOn_const | |
| 38 | + | |
| 39 | +theorem joint_wordDerivative_contDiffOn | |
| 40 | + {u : ℝ × Space → ℝ} {S : Set ℝ} | |
| 41 | + (hu : ContDiffOn ℝ ∞ u (S ×ˢ (univ : Set Space))) (word : List (Fin 3)) : | |
| 42 | + ContDiffOn ℝ ∞ (fun z : ℝ × Space => | |
| 43 | + wordDerivative word (fun y => u (z.1, y)) z.2) (S ×ˢ (univ : Set Space)) := by | |
| 44 | + induction word with | |
| 45 | + | nil => exact hu | |
| 46 | + | cons i word ih => exact joint_scalar_partialDerivative_contDiffOn ih i | |
| 47 | + | |
| 48 | +theorem joint_scalar_laplacian_contDiffOn | |
| 49 | + {u : ℝ × Space → ℝ} {S : Set ℝ} | |
| 50 | + (hu : ContDiffOn ℝ ∞ u (S ×ˢ (univ : Set Space))) : | |
| 51 | + ContDiffOn ℝ ∞ (fun z : ℝ × Space => Δ (fun y => u (z.1, y)) z.2) | |
| 52 | + (S ×ˢ (univ : Set Space)) := by | |
| 53 | + have hd : ContDiffOn ℝ ∞ (fun z : ℝ × Space => ∑ i : Fin 3, | |
| 54 | + partialDerivative (partialDerivative (fun y => u (z.1, y)) i) i z.2) | |
| 55 | + (S ×ˢ (univ : Set Space)) := | |
| 56 | + ContDiffOn.sum (fun i _ => joint_scalar_partialDerivative_contDiffOn | |
| 57 | + (joint_scalar_partialDerivative_contDiffOn hu i) i) | |
| 58 | + apply hd.congr | |
| 59 | + intro z hz | |
| 60 | + have hs : ContDiff ℝ ∞ (fun y => u (z.1, y)) := | |
| 61 | + hu.comp_contDiff (contDiff_const.prodMk contDiff_id) (fun y => ⟨hz.1, mem_univ _⟩) | |
| 62 | + exact laplacian_eq_coordinate_sum _ hs z.2 | |
| 63 | + | |
| 64 | +theorem tsupport_wordDerivative_subset (word : List (Fin 3)) (f : Space → ℝ) : | |
| 65 | + tsupport (wordDerivative word f) ⊆ tsupport f := by | |
| 66 | + induction word with | |
| 67 | + | nil => exact Subset.rfl | |
| 68 | + | cons i word ih => | |
| 69 | + exact (tsupport_fderiv_apply_subset ℝ (EuclideanSpace.single i 1)).trans ih | |
| 70 | + | |
| 71 | +theorem uniform_energy_of_compact_support | |
| 72 | + {E : Type*} [NormedAddCommGroup E] | |
| 73 | + (f : ℝ × Space → E) (T : ℝ) (K : Set Space) (hK : IsCompact K) | |
| 74 | + (hf : ContinuousOn f (Icc (0 : ℝ) T ×ˢ K)) | |
| 75 | + (hsupport : ∀ t ∈ Icc (0 : ℝ) T, ∀ x ∉ K, f (t, x) = 0) : | |
| 76 | + ∃ B : ℝ, ∀ t ∈ Icc (0 : ℝ) T, (∫ x, ‖f (t, x)‖ ^ 2) ≤ B := by | |
| 77 | + obtain ⟨C, hC⟩ := (isCompact_Icc.prod hK).exists_bound_of_continuousOn hf | |
| 78 | + refine ⟨(max C 0) ^ 2 * volume.real K, ?_⟩ | |
| 79 | + intro t ht | |
| 80 | + have hind : (fun x => ‖f (t, x)‖ ^ 2) = | |
| 81 | + K.indicator (fun x => ‖f (t, x)‖ ^ 2) := by | |
| 82 | + funext x | |
| 83 | + by_cases hx : x ∈ K | |
| 84 | + · simp only [indicator_of_mem hx] | |
| 85 | + · simp [indicator_of_notMem hx, hsupport t ht x hx] | |
| 86 | + rw [hind, integral_indicator hK.measurableSet] | |
| 87 | + apply (le_abs_self _).trans | |
| 88 | + rw [← Real.norm_eq_abs] | |
| 89 | + apply norm_setIntegral_le_of_norm_le_const hK.measure_lt_top | |
| 90 | + intro x hx | |
| 91 | + rw [Real.norm_eq_abs, abs_of_nonneg (sq_nonneg _)] | |
| 92 | + exact pow_le_pow_left₀ (norm_nonneg _) ((hC (t, x) ⟨ht, hx⟩).trans (le_max_left _ _)) 2 | |
| 93 | + | |
| 94 | +theorem wordDerivative_energy_uniform_of_compact_support | |
| 95 | + (f : ℝ × Space → ℝ) (T : ℝ) (K : Set Space) (hK : IsCompact K) | |
| 96 | + (hf : ContDiffOn ℝ ∞ f (Icc (0 : ℝ) T ×ˢ (univ : Set Space))) | |
| 97 | + (hsupport : ∀ t ∈ Icc (0 : ℝ) T, tsupport (fun x => f (t, x)) ⊆ K) | |
| 98 | + (word : List (Fin 3)) : | |
| 99 | + ∃ B : ℝ, ∀ t ∈ Icc (0 : ℝ) T, | |
| 100 | + (∫ x, wordDerivative word (fun y => f (t, y)) x ^ 2) ≤ B := by | |
| 101 | + obtain ⟨B, hB⟩ := uniform_energy_of_compact_support | |
| 102 | + (fun z : ℝ × Space => wordDerivative word (fun y => f (z.1, y)) z.2) | |
| 103 | + T K hK | |
| 104 | + ((joint_wordDerivative_contDiffOn hf word).continuousOn.mono | |
| 105 | + (by intro z hz; exact ⟨hz.1, mem_univ _⟩)) | |
| 106 | + (by | |
| 107 | + intro t ht x hx | |
| 108 | + exact image_eq_zero_of_notMem_tsupport (fun hn => | |
| 109 | + hx (hsupport t ht (tsupport_wordDerivative_subset word _ hn)))) | |
| 110 | + refine ⟨B, fun t ht => ?_⟩ | |
| 111 | + simpa only [Real.norm_eq_abs, sq_abs] using hB t ht | |
| 112 | + | |
| 113 | +end EulerComparatorRecovery | |
+72 −0 Euler/CompactSupportBoundedPath.lean added View file
| @@ -0,0 +1,72 @@ | ||
| 1 | +import Mathlib.Topology.ContinuousMap.Bounded.Normed | |
| 2 | +import Mathlib.Topology.UniformSpace.HeineCantor | |
| 3 | + | |
| 4 | +/-! Continuous families with a common compact spatial support give continuous paths in the | |
| 5 | +space of bounded continuous functions, equipped with the uniform norm. -/ | |
| 6 | + | |
| 7 | +open Set Filter Topology | |
| 8 | +open scoped BoundedContinuousFunction | |
| 9 | + | |
| 10 | +noncomputable section | |
| 11 | + | |
| 12 | +namespace EulerComparator | |
| 13 | + | |
| 14 | +variable {A E V : Type*} [TopologicalSpace A] [TopologicalSpace E] | |
| 15 | + [NormedAddCommGroup V] | |
| 16 | + | |
| 17 | +/-- A continuous, compactly supported function, regarded as a bounded continuous function. -/ | |
| 18 | +def boundedOfCompactSupport (f : E → V) (hf : Continuous f) | |
| 19 | + (hs : HasCompactSupport f) : E →ᵇ V where | |
| 20 | + toFun := f | |
| 21 | + continuous_toFun := hf | |
| 22 | + map_bounded' := Metric.isBounded_range_iff.mp (hs.isCompact_range hf).isBounded | |
| 23 | + | |
| 24 | +@[simp] theorem boundedOfCompactSupport_apply (f : E → V) (hf : Continuous f) | |
| 25 | + (hs : HasCompactSupport f) (x : E) : boundedOfCompactSupport f hf hs x = f x := rfl | |
| 26 | + | |
| 27 | +/-- Uniformly compact spatial support upgrades joint continuity to continuity in the | |
| 28 | +bounded-continuous-function norm. No compactness assumption on the parameter space is needed. -/ | |
| 29 | +theorem continuous_boundedOfCompactSupport | |
| 30 | + (u : A × E → V) (hu : Continuous u) (K : Set E) (hK : IsCompact K) | |
| 31 | + (hs : ∀ t, tsupport (fun x => u (t, x)) ⊆ K) : | |
| 32 | + Continuous (fun t => boundedOfCompactSupport (fun x => u (t, x)) | |
| 33 | + (hu.comp (continuous_const.prodMk continuous_id)) | |
| 34 | + (hK.of_isClosed_subset (isClosed_tsupport _) (hs t))) := by | |
| 35 | + rw [continuous_iff_continuousAt] | |
| 36 | + intro t | |
| 37 | + apply Metric.continuousAt_iff'.mpr | |
| 38 | + intro ε hε | |
| 39 | + have hε2 : 0 < ε / 2 := half_pos hε | |
| 40 | + obtain ⟨U, hU, hclose⟩ := hK.mem_uniformity_of_prod | |
| 41 | + (f := fun t x => u (t, x)) (s := Set.univ) hu.continuousOn | |
| 42 | + (Set.mem_univ t) (Metric.dist_mem_uniformity hε2) | |
| 43 | + rw [nhdsWithin_univ] at hU | |
| 44 | + filter_upwards [hU] with s hsU | |
| 45 | + apply lt_of_le_of_lt _ (half_lt_self hε) | |
| 46 | + apply (BoundedContinuousFunction.dist_le hε2.le).mpr | |
| 47 | + intro x | |
| 48 | + change dist (u (s, x)) (u (t, x)) ≤ ε / 2 | |
| 49 | + by_cases hx : x ∈ K | |
| 50 | + · exact (hclose s hsU x hx).le | |
| 51 | + · have hsx : u (s, x) = 0 := image_eq_zero_of_notMem_tsupport | |
| 52 | + (f := fun y => u (s, y)) (fun h => hx (hs s h)) | |
| 53 | + have htx : u (t, x) = 0 := image_eq_zero_of_notMem_tsupport | |
| 54 | + (f := fun y => u (t, y)) (fun h => hx (hs t h)) | |
| 55 | + simpa [hsx, htx] using hε2.le | |
| 56 | + | |
| 57 | +/-- A continuous family with one common compact spatial support, bundled as a continuous | |
| 58 | +path of bounded continuous functions. -/ | |
| 59 | +def compactSupportBoundedPath | |
| 60 | + (u : A × E → V) (hu : Continuous u) (K : Set E) (hK : IsCompact K) | |
| 61 | + (hs : ∀ t, tsupport (fun x => u (t, x)) ⊆ K) : C(A, E →ᵇ V) where | |
| 62 | + toFun t := boundedOfCompactSupport (fun x => u (t, x)) | |
| 63 | + (hu.comp (continuous_const.prodMk continuous_id)) | |
| 64 | + (hK.of_isClosed_subset (isClosed_tsupport _) (hs t)) | |
| 65 | + continuous_toFun := continuous_boundedOfCompactSupport u hu K hK hs | |
| 66 | + | |
| 67 | +@[simp] theorem compactSupportBoundedPath_apply | |
| 68 | + (u : A × E → V) (hu : Continuous u) (K : Set E) (hK : IsCompact K) | |
| 69 | + (hs : ∀ t, tsupport (fun x => u (t, x)) ⊆ K) (t : A) (x : E) : | |
| 70 | + compactSupportBoundedPath u hu K hK hs t x = u (t, x) := rfl | |
| 71 | + | |
| 72 | +end EulerComparator | |
+41 −0 Euler/CompactVorticityContradiction.lean added View file
| @@ -0,0 +1,41 @@ | ||
| 1 | +import Euler.CompactCurlBounds | |
| 2 | +import Euler.OrdinaryEulerBKM | |
| 3 | + | |
| 4 | +/-! A classical comparison field with uniformly confined vorticity cannot | |
| 5 | +agree with the maximal ordinary solution throughout a finite lifespan. | |
| 6 | +The contradiction uses the proved Beale--Kato--Majda integral criterion. -/ | |
| 7 | + | |
| 8 | +noncomputable section | |
| 9 | + | |
| 10 | +open Set EulerSmoothLimit EulerLpTranslation EulerLpTranslation.SmoothL2Field | |
| 11 | + EulerOrdinarySobolev EulerVectorCalculus EulerMeanBoundary EulerMeanCutoffCurl | |
| 12 | + | |
| 13 | +namespace Euler.ComparatorBridge | |
| 14 | + | |
| 15 | +variable {A : SmoothL2Field Space} (L : FiniteLifespan A) | |
| 16 | + {v : Space → ℝ → Space} {p : Space → ℝ → ℝ} | |
| 17 | + | |
| 18 | +theorem finiteLifespan_contradiction_of_compact_vorticity | |
| 19 | + (h : EulerExistenceAndSmoothnessR3 A.field v p) | |
| 20 | + (K : Set Space) (hK : IsCompact K) | |
| 21 | + (hmatch : ∀ t : L.Time, L.maximalVelocity t = (v · (t : ℝ))) | |
| 22 | + (hsupport : ∀ (t : L.Time) x, x ∉ K → | |
| 23 | + vectorCurl (L.maximalVelocity t) x = 0) : False := by | |
| 24 | + obtain ⟨M, hM, hbound⟩ := h.vorticity_bounded_on_compact K hK L.duration | |
| 25 | + have hcurl : ∀ (t : L.Time) x, ‖vectorCurl (L.maximalVelocity t) x‖ ≤ M := by | |
| 26 | + intro t x | |
| 27 | + by_cases hx : x ∈ K | |
| 28 | + · rw [hmatch t] | |
| 29 | + exact hbound t ⟨t.property.1, t.property.2.le⟩ x hx | |
| 30 | + · rw [hsupport t x hx, norm_zero] | |
| 31 | + exact hM | |
| 32 | + obtain ⟨S, hS, hSL, t, hlarge⟩ := L.vorticityIntegral_unbounded (M * L.duration) | |
| 33 | + have hbound : ∀ s x, ‖vectorCurl ((L.evolution S hS hSL).velocity s).field x‖ ≤ M := by | |
| 34 | + intro s x | |
| 35 | + rw [← L.maximalVelocity_eq_evolution S hS hSL s] | |
| 36 | + exact hcurl _ x | |
| 37 | + have hupper := (L.evolution S hS hSL).vorticityIntegral_le_const M hbound t | |
| 38 | + have ht : (t : ℝ) ≤ L.duration := t.property.2.trans hSL.le | |
| 39 | + exact (not_lt_of_ge (hupper.trans (mul_le_mul_of_nonneg_left ht hM))) hlarge | |
| 40 | + | |
| 41 | +end Euler.ComparatorBridge | |
+200 −0 Euler/CompactVorticityTimeUpgrade.lean added View file
| @@ -0,0 +1,200 @@ | ||
| 1 | +import Euler.OrdinaryEulerClassicalClass | |
| 2 | +import Euler.OrdinaryCauchyInterpolation | |
| 3 | +import Euler.OrdinaryAdvectionLimit | |
| 4 | +import Euler.WeakHilbertODE | |
| 5 | +import Euler.WeakTimeContinuity | |
| 6 | +import Euler.DevelopmentBridge | |
| 7 | + | |
| 8 | +/-! | |
| 9 | +# Time regularity from the projected weak equation | |
| 10 | + | |
| 11 | +Uniform bounds for the genuine spatial Sobolev norms upgrade strong `L²` | |
| 12 | +continuity to continuity of every spatial jet. This is the interpolation | |
| 13 | +step in the Comparator bridge. In particular, its higher Sobolev | |
| 14 | +continuity conclusion is not assumed in any of its hypotheses. | |
| 15 | +-/ | |
| 16 | + | |
| 17 | +noncomputable section | |
| 18 | + | |
| 19 | + | |
| 20 | +namespace Euler.ComparatorBridge | |
| 21 | + | |
| 22 | +open Set Filter MeasureTheory EulerSmoothLimit EulerLpTranslation | |
| 23 | + EulerLpTranslation.SmoothL2Field EulerMeanSolenoidal EulerOrdinarySobolev | |
| 24 | + EulerSmoothSobolev Finset | |
| 25 | +open scoped ContDiff Topology NNReal | |
| 26 | + | |
| 27 | +/-- A recovered smooth-`L²` representative inherits the Comparator's weak | |
| 28 | +time continuity. No continuity of its higher derivatives is used here. -/ | |
| 29 | +theorem comparator_weak_pairings_continuous | |
| 30 | + {u₀ : Space → Space} {v : Space → ℝ → Space} {p : Space → ℝ → ℝ} | |
| 31 | + (h : EulerExistenceAndSmoothnessR3 u₀ v p) {T : ℝ} | |
| 32 | + (A : Icc (0 : ℝ) T → SmoothL2Field Space) | |
| 33 | + (hA : ∀ t, (A t).field = (v · (t : ℝ))) (φ : L2) : | |
| 34 | + Continuous (fun t => inner ℝ φ (A t).toLp) := by | |
| 35 | + let ι : Icc (0 : ℝ) T → Ici (0 : ℝ) := fun t => ⟨t, t.property.1⟩ | |
| 36 | + have hi : Continuous ι := continuous_subtype_val.subtype_mk _ | |
| 37 | + have he (t : Icc (0 : ℝ) T) : (A t).toLp = h.velocityLp (ι t) := by | |
| 38 | + apply Lp.ext | |
| 39 | + filter_upwards [(A t).toLp_ae, | |
| 40 | + (h.velocity_memLp (t : ℝ) t.property.1).coeFn_toLp] with x hx hy | |
| 41 | + exact hx.trans ((congrFun (hA t) x).trans hy.symm) | |
| 42 | + simpa only [Function.comp_def, ← he] using (h.velocityLp_weakly_continuous φ).comp hi | |
| 43 | + | |
| 44 | +/-- The Comparator's classical divergence constraint gives the genuine | |
| 45 | +Hilbert-space solenoidal constraint on every recovered velocity slice. -/ | |
| 46 | +theorem comparator_velocity_mem_solenoidal | |
| 47 | + {u₀ : Space → Space} {v : Space → ℝ → Space} {p : Space → ℝ → ℝ} | |
| 48 | + (h : EulerExistenceAndSmoothnessR3 u₀ v p) {T : ℝ} | |
| 49 | + (A : Icc (0 : ℝ) T → SmoothL2Field Space) | |
| 50 | + (hA : ∀ t, (A t).field = (v · (t : ℝ))) (t : Icc (0 : ℝ) T) : | |
| 51 | + (A t).toLp ∈ solenoidalSpace := by | |
| 52 | + apply smooth_mem_solenoidal (A t).field (A t).smooth (A t).memLp | |
| 53 | + intro x | |
| 54 | + rw [hA t] | |
| 55 | + exact h.div_free x t t.property.1 | |
| 56 | + | |
| 57 | +/-- The actual tensor Sobolev norm of a difference is controlled by the | |
| 58 | +sum of the two actual norms. -/ | |
| 59 | +theorem tensorNorm_fieldSub_le (A B : SmoothL2Field Space) (q : ℕ) : | |
| 60 | + tensorNorm q (fieldSub A B) ≤ tensorNorm q A + tensorNorm q B := by | |
| 61 | + simp only [tensorNorm, jetLp_fieldSub, ← Finset.sum_add_distrib] | |
| 62 | + exact Finset.sum_le_sum (fun n _ => norm_sub_le _ _) | |
| 63 | + | |
| 64 | +/-- A fixed jet is bounded by the finite tensor norm containing it. -/ | |
| 65 | +theorem jetLp_norm_le_tensorNorm (A : SmoothL2Field Space) (q : ℕ) : | |
| 66 | + ‖A.jetLp q‖ ≤ tensorNorm q A := by | |
| 67 | + exact Finset.single_le_sum (fun n _ => norm_nonneg (A.jetLp n)) | |
| 68 | + (Finset.mem_range.mpr (Nat.lt_succ_self q)) | |
| 69 | + | |
| 70 | +/-- Per-order jet bounds give the finite tensor bounds used below. -/ | |
| 71 | +theorem tensorNorm_uniform_of_jetLp_uniform | |
| 72 | + {K : Type*} (A : K → SmoothL2Field Space) | |
| 73 | + (hb : ∀ n : ℕ, ∃ M : ℝ, ∀ t, ‖(A t).jetLp n‖ ≤ M) : | |
| 74 | + ∀ q : ℕ, ∃ M : ℝ, ∀ t, tensorNorm q (A t) ≤ M := by | |
| 75 | + classical | |
| 76 | + intro q | |
| 77 | + refine ⟨∑ n ∈ Finset.range (q + 1), (hb n).choose, ?_⟩ | |
| 78 | + intro t | |
| 79 | + exact Finset.sum_le_sum (fun n _ => (hb n).choose_spec t) | |
| 80 | + | |
| 81 | +/-- Strong `L²` continuity plus uniform higher spatial Sobolev bounds | |
| 82 | +implies continuity of every actual spatial `L²` jet. -/ | |
| 83 | +theorem jetLp_continuous_of_toLp_continuous | |
| 84 | + {K : Type*} [TopologicalSpace K] (A : K → SmoothL2Field Space) | |
| 85 | + (h0 : Continuous (fun t => (A t).toLp)) | |
| 86 | + (hb : ∀ q : ℕ, ∃ M : ℝ, ∀ t, tensorNorm q (A t) ≤ M) : | |
| 87 | + ∀ q : ℕ, Continuous (fun t => (A t).jetLp q) := by | |
| 88 | + intro q | |
| 89 | + apply continuous_iff_continuousAt.mpr | |
| 90 | + intro s | |
| 91 | + rw [ContinuousAt, tendsto_iff_norm_sub_tendsto_zero] | |
| 92 | + obtain ⟨M, hM⟩ := hb (2 * q) | |
| 93 | + have hbound (t : K) : WordBound (2 * q) (M + M) (fieldSub (A t) (A s)) := by | |
| 94 | + intro n hn w | |
| 95 | + apply (wordBound_tensorNorm (2 * q) (fieldSub (A t) (A s)) n hn w).trans | |
| 96 | + exact (tensorNorm_fieldSub_le (A t) (A s) (2 * q)).trans | |
| 97 | + (add_le_add (hM t) (hM s)) | |
| 98 | + have hi (t : K) : ‖(A t).jetLp q - (A s).jetLp q‖ ≤ | |
| 99 | + wordCount q * Real.sqrt (‖(A t).toLp - (A s).toLp‖ * (M + M)) := by | |
| 100 | + rw [← jetLp_fieldSub] | |
| 101 | + exact (jetLp_norm_le_tensorNorm (fieldSub (A t) (A s)) q).trans | |
| 102 | + (by simpa only [toLp_fieldSub] using | |
| 103 | + tensorNorm_interpolate_zero (fieldSub (A t) (A s)) q (M + M) (hbound t)) | |
| 104 | + have ht : Tendsto (fun t => ‖(A t).toLp - (A s).toLp‖) (𝓝 s) (𝓝 0) := | |
| 105 | + tendsto_iff_norm_sub_tendsto_zero.mp h0.continuousAt | |
| 106 | + apply squeeze_zero (fun _ => norm_nonneg _) hi | |
| 107 | + simpa only [zero_mul, Real.sqrt_zero, mul_zero] using | |
| 108 | + ((ht.mul_const (M + M)).sqrt.const_mul (wordCount q)) | |
| 109 | + | |
| 110 | +/-- A bounded spatial `H²` norm bounds the projected Euler right-hand | |
| 111 | +side in `L²`. This estimate does not use time regularity. -/ | |
| 112 | +theorem projectedRhs_norm_le_of_tensorNorm_le | |
| 113 | + (A : SmoothL2Field Space) (M : ℝ) (hM : tensorNorm 2 A ≤ M) : | |
| 114 | + ‖(projectedRhs A).toLp‖ ≤ 39 * smoothEmbeddingConstant * M ^ 2 := by | |
| 115 | + have hM0 : 0 ≤ M := (tensorNorm_nonneg 2 A).trans hM | |
| 116 | + have hw : WordBound 2 M A := fun n hn w => | |
| 117 | + (wordBound_tensorNorm 2 A n hn w).trans hM | |
| 118 | + rw [projectedRhs_toLp, norm_neg] | |
| 119 | + apply (solenoidalProjection_apply_norm_le _).trans | |
| 120 | + apply (advection_norm_velocity A A ((13 * smoothEmbeddingConstant) * M) | |
| 121 | + (wordBound_pointwise hw)).trans | |
| 122 | + have hc : 0 ≤ (13 * smoothEmbeddingConstant) * M := | |
| 123 | + mul_nonneg (mul_nonneg (by norm_num) smoothEmbeddingConstant_nonneg) hM0 | |
| 124 | + exact (mul_le_mul_of_nonneg_left | |
| 125 | + (wordBound_derivative hw (by norm_num : 1 ≤ 2)) hc).trans_eq (by ring) | |
| 126 | + | |
| 127 | +/-- Uniform spatial bounds supply a uniform bound for the projected | |
| 128 | +right-hand side even before strong time continuity has been established. -/ | |
| 129 | +theorem projectedRhs_uniform_bound | |
| 130 | + {K : Type*} (A : K → SmoothL2Field Space) | |
| 131 | + (hb : ∃ M : ℝ, ∀ t, tensorNorm 2 (A t) ≤ M) : | |
| 132 | + ∃ C : ℝ≥0, ∀ t, ‖(projectedRhs (A t)).toLp‖ ≤ C := by | |
| 133 | + obtain ⟨M, hM⟩ := hb | |
| 134 | + refine ⟨⟨39 * smoothEmbeddingConstant * M ^ 2, ?_⟩, ?_⟩ | |
| 135 | + · exact mul_nonneg (mul_nonneg (by norm_num) smoothEmbeddingConstant_nonneg) | |
| 136 | + (sq_nonneg M) | |
| 137 | + · intro t | |
| 138 | + exact projectedRhs_norm_le_of_tensorNorm_le (A t) M (hM t) | |
| 139 | + | |
| 140 | +/-- A projected Euler equation tested against a dense family is enough to | |
| 141 | +recover the development's full scalar-pressure class. The hypotheses require | |
| 142 | +only weak time continuity and uniform spatial bounds; both strong `L²` time | |
| 143 | +regularity and continuity of every higher spatial Sobolev norm are proved. -/ | |
| 144 | +theorem isSmoothScalarEuler_of_weak_projectedEquation | |
| 145 | + {T : ℝ} (hT : 0 < T) (A : Icc (0 : ℝ) T → SmoothL2Field Space) | |
| 146 | + (hs : ∀ t, (A t).toLp ∈ solenoidalSpace) | |
| 147 | + (hb : ∀ q : ℕ, ∃ M : ℝ, ∀ t, tensorNorm q (A t) ≤ M) | |
| 148 | + (D : Set solenoidalSpace) (hD : Dense D) | |
| 149 | + (hc : ∀ φ ∈ D, Continuous (fun t => inner ℝ (φ : L2) (A t).toLp)) | |
| 150 | + (hd : ∀ φ ∈ D, ∀ t (ht : t ∈ Ioo 0 T), | |
| 151 | + HasDerivAt (fun r => inner ℝ (φ : L2) (A (projIcc 0 T hT.le r)).toLp) | |
| 152 | + (inner ℝ (φ : L2) (projectedRhs (A ⟨t, ht.1.le, ht.2.le⟩)).toLp) t) : | |
| 153 | + IsSmoothScalarEuler (hT := hT.le) A := by | |
| 154 | + let u : ℝ → solenoidalSpace := fun r => | |
| 155 | + ⟨(A (projIcc 0 T hT.le r)).toLp, hs _⟩ | |
| 156 | + have hbs (t : Icc (0 : ℝ) T) : | |
| 157 | + (projectedRhs (A t)).toLp ∈ solenoidalSpace := by | |
| 158 | + rw [projectedRhs_toLp] | |
| 159 | + exact solenoidalSpace.neg_mem (solenoidalProjection_mem _) | |
| 160 | + let b : ℝ → solenoidalSpace := fun r => | |
| 161 | + ⟨(projectedRhs (A (projIcc 0 T hT.le r))).toLp, hbs _⟩ | |
| 162 | + have huc : ∀ φ ∈ D, ContinuousOn (fun r => inner ℝ φ (u r)) (Icc 0 T) := by | |
| 163 | + intro φ hφ | |
| 164 | + exact ((hc φ hφ).comp continuous_projIcc).continuousOn | |
| 165 | + have hud : ∀ φ ∈ D, ∀ t ∈ Ioo 0 T, | |
| 166 | + HasDerivAt (fun r => inner ℝ φ (u r)) (inner ℝ φ (b t)) t := by | |
| 167 | + intro φ hφ t ht | |
| 168 | + change HasDerivAt | |
| 169 | + (fun r => inner ℝ (φ : L2) (A (projIcc 0 T hT.le r)).toLp) | |
| 170 | + (inner ℝ (φ : L2) (projectedRhs (A (projIcc 0 T hT.le t))).toLp) t | |
| 171 | + rw [projIcc_of_mem hT.le ⟨ht.1.le, ht.2.le⟩] | |
| 172 | + exact hd φ hφ t ht | |
| 173 | + obtain ⟨C, hC⟩ := projectedRhs_uniform_bound A (hb 2) | |
| 174 | + have hl : LipschitzOnWith C u (Icc 0 T) := | |
| 175 | + WeakHilbertODE.lipschitzOnWith_of_dense_weak_equation hD hT C huc hud | |
| 176 | + (fun t _ => hC (projIcc 0 T hT.le t)) | |
| 177 | + have hu : Continuous (fun t : Icc (0 : ℝ) T => u t) := | |
| 178 | + continuousOn_iff_continuous_domRestrict.mp hl.continuousOn | |
| 179 | + have h0 : Continuous (fun t => (A t).toLp) := by | |
| 180 | + apply (continuous_subtype_val.comp hu).congr | |
| 181 | + intro t | |
| 182 | + change (A (projIcc 0 T hT.le (t : ℝ))).toLp = (A t).toLp | |
| 183 | + rw [projIcc_of_mem hT.le t.property] | |
| 184 | + have hA := jetLp_continuous_of_toLp_continuous A h0 hb | |
| 185 | + have hbc : Continuous b := by | |
| 186 | + apply Continuous.subtype_mk | |
| 187 | + exact (continuous_toLp (fun t => projectedRhs (A t)) | |
| 188 | + (projectedRhs_continuous A hA 0)).comp continuous_projIcc | |
| 189 | + apply (scalarEuler_iff_projected A).mpr | |
| 190 | + refine ⟨hA, hs, ?_⟩ | |
| 191 | + intro t ht | |
| 192 | + have hdu := WeakHilbertODE.hasDerivAt_of_dense_weak_equation | |
| 193 | + hD huc hbc.continuousOn hud ht | |
| 194 | + have h := solenoidalSpace.subtypeL.hasFDerivAt.comp_hasDerivAt t hdu | |
| 195 | + change HasDerivAt (fun r => (A (projIcc 0 T hT.le r)).toLp) | |
| 196 | + (projectedRhs (A (projIcc 0 T hT.le t))).toLp t at h | |
| 197 | + rw [projIcc_of_mem hT.le ⟨ht.1.le, ht.2.le⟩] at h | |
| 198 | + exact h | |
| 199 | + | |
| 200 | +end Euler.ComparatorBridge | |
+131 −0 Euler/ComparatorEvolutionIdentification.lean added View file
| @@ -0,0 +1,131 @@ | ||
| 1 | +import Euler.ComparatorTimeShift | |
| 2 | +import Euler.EvolutionTimeShift | |
| 3 | +import Euler.OrdinaryEulerUniqueness | |
| 4 | +import Mathlib.Topology.Order.IntermediateValue | |
| 5 | + | |
| 6 | +/-! | |
| 7 | +# Identification after local regularity recovery | |
| 8 | + | |
| 9 | +The only analytic input of this module is a local conversion of a classical | |
| 10 | +Comparator solution with compact initial vorticity into an ordinary smooth | |
| 11 | +Euler evolution. Restarting that conversion at times of agreement, ordinary | |
| 12 | +Euler uniqueness and continuity identify the entire maximal interval. | |
| 13 | +-/ | |
| 14 | + | |
| 15 | +noncomputable section | |
| 16 | + | |
| 17 | + | |
| 18 | +open Set Filter MeasureTheory EulerSmoothLimit EulerLpTranslation | |
| 19 | + EulerLpTranslation.SmoothL2Field EulerOrdinarySobolev EulerVectorCalculus EulerMeanCutoffCurl | |
| 20 | +open scoped ContDiff Topology | |
| 21 | + | |
| 22 | +namespace Euler.ComparatorBridge | |
| 23 | + | |
| 24 | +variable {A : SmoothL2Field Space} | |
| 25 | + {v : Space → ℝ → Space} {p : Space → ℝ → ℝ} | |
| 26 | + | |
| 27 | +/-- Local recovery is needed only at compact-vorticity slices. It asks for | |
| 28 | +an actual ordinary evolution representing the given velocity, so it contains | |
| 29 | +no comparison or uniqueness conclusion. -/ | |
| 30 | +def HasLocalEvolutionAtCompactCurl (v : Space → ℝ → Space) : Prop := | |
| 31 | + ∀ a : ℝ, 0 ≤ a → HasCompactSupport (vectorCurl (v · a)) → | |
| 32 | + ∃ δ : ℝ, ∃ hδ : 0 < δ, ∃ U : Evolution δ hδ.le, | |
| 33 | + ∀ t : Icc (0 : ℝ) δ, (U.velocity t).field = (v · (a + (t : ℝ))) | |
| 34 | + | |
| 35 | +/-- The reusable analytic conversion obligation, before any uniqueness | |
| 36 | +argument: compact initial vorticity gives a short ordinary realization. -/ | |
| 37 | +def CompactCurlLocalUpgrade : Prop := | |
| 38 | + ∀ (u₀ : Space → Space) (v : Space → ℝ → Space) (p : Space → ℝ → ℝ), | |
| 39 | + EulerExistenceAndSmoothnessR3 u₀ v p → HasCompactSupport (vectorCurl u₀) → | |
| 40 | + ∃ δ : ℝ, ∃ hδ : 0 < δ, ∃ U : Evolution δ hδ.le, | |
| 41 | + ∀ t : Icc (0 : ℝ) δ, (U.velocity t).field = (v · (t : ℝ)) | |
| 42 | + | |
| 43 | +theorem hasLocalEvolutionAtCompactCurl_of_upgrade | |
| 44 | + (h : EulerExistenceAndSmoothnessR3 A.field v p) | |
| 45 | + (hupgrade : CompactCurlLocalUpgrade) : HasLocalEvolutionAtCompactCurl v := by | |
| 46 | + intro a ha hc | |
| 47 | + exact hupgrade (v · a) (fun x t => v x (a + t)) (fun x t => p x (a + t)) | |
| 48 | + (h.shiftTime a ha) hc | |
| 49 | + | |
| 50 | +/-- A classical field locally recoverable as an ordinary evolution agrees | |
| 51 | +with every ordinary evolution from the same data whose vorticity stays compact. -/ | |
| 52 | +theorem evolution_field_eq_of_local_evolution | |
| 53 | + {S : ℝ} {hS : 0 ≤ S} (U : Evolution S hS) | |
| 54 | + (h : EulerExistenceAndSmoothnessR3 A.field v p) | |
| 55 | + (hU : U.velocity ⟨0, le_rfl, hS⟩ = A) | |
| 56 | + (hcompact : ∀ t, HasCompactSupport (vectorCurl (U.velocity t).field)) | |
| 57 | + (hlocal : HasLocalEvolutionAtCompactCurl v) : | |
| 58 | + ∀ t : Icc (0 : ℝ) S, (U.velocity t).field = (v · (t : ℝ)) := by | |
| 59 | + let s : Set ℝ := {r | ∀ x, (U.velocity (projIcc 0 S hS r)).field x = | |
| 60 | + v x (projIcc 0 S hS r)} | |
| 61 | + have hcU (x : Space) : Continuous (fun r : ℝ => | |
| 62 | + (U.velocity (projIcc 0 S hS r)).field x) := by | |
| 63 | + have hc := (EulerMeanSobolevBoundedField.continuous_finiteField U.velocity | |
| 64 | + U.velocity_continuous).eval (continuous_const (y := x)) | |
| 65 | + simpa only [EulerMeanSobolevBoundedField.finiteField_apply, Function.comp_def] using | |
| 66 | + hc.comp (continuous_projIcc (a := (0 : ℝ)) (b := S) (h := hS)) | |
| 67 | + have hcv (x : Space) : Continuous (fun r : ℝ => v x (projIcc 0 S hS r)) := by | |
| 68 | + have hc : Continuous (fun r : Icc (0 : ℝ) S => v x r) := | |
| 69 | + h.velocity_smooth.continuousOn.comp_continuous | |
| 70 | + (continuous_const.prodMk continuous_subtype_val) | |
| 71 | + (fun r => ⟨mem_univ x, r.property.1⟩) | |
| 72 | + exact hc.comp continuous_projIcc | |
| 73 | + have hs : IsClosed s := by | |
| 74 | + change IsClosed {r | ∀ x, (U.velocity (projIcc 0 S hS r)).field x = | |
| 75 | + v x (projIcc 0 S hS r)} | |
| 76 | + simpa only [ofPred_forall] using | |
| 77 | + (isClosed_iInter fun x => isClosed_eq (hcU x) (hcv x)) | |
| 78 | + have hzero : (0 : ℝ) ∈ s := by | |
| 79 | + intro x | |
| 80 | + rw [projIcc_of_mem hS ⟨le_rfl, hS⟩] | |
| 81 | + change (U.velocity ⟨0, le_rfl, hS⟩).field x = v x 0 | |
| 82 | + rw [hU] | |
| 83 | + exact (h.initial_condition x).symm | |
| 84 | + have hright : ∀ a ∈ s ∩ Ico 0 S, ∀ b ∈ Ioi a, (s ∩ Ioc a b).Nonempty := by | |
| 85 | + intro a ha b hb | |
| 86 | + have haS : a ∈ Icc (0 : ℝ) S := ⟨ha.2.1, ha.2.2.le⟩ | |
| 87 | + have hmatch : (U.velocity ⟨a, haS⟩).field = (v · a) := by | |
| 88 | + funext x | |
| 89 | + have hx := ha.1 x | |
| 90 | + simpa only [projIcc_of_mem hS haS] using hx | |
| 91 | + have hcurl : HasCompactSupport (vectorCurl (v · a)) := by | |
| 92 | + rw [← hmatch] | |
| 93 | + exact hcompact _ | |
| 94 | + obtain ⟨δ, hδ, W, hW⟩ := hlocal a ha.2.1 hcurl | |
| 95 | + let d := min δ (min (S - a) (b - a)) | |
| 96 | + have hd : 0 < d := lt_min hδ (lt_min (sub_pos.mpr ha.2.2) (sub_pos.mpr hb)) | |
| 97 | + have hdδ : d ≤ δ := min_le_left _ _ | |
| 98 | + have had : a + d ≤ S := by | |
| 99 | + have hh : d ≤ S - a := (min_le_right _ _).trans (min_le_left _ _) | |
| 100 | + linarith | |
| 101 | + have hab : a + d ≤ b := by | |
| 102 | + have hh : d ≤ b - a := (min_le_right _ _).trans (min_le_right _ _) | |
| 103 | + linarith | |
| 104 | + let R := U.shiftTime a ha.2.1 d hd.le had | |
| 105 | + let Q := W.restrictTime d hd.le hdδ | |
| 106 | + have hinit : R.velocity ⟨0, le_rfl, hd.le⟩ = Q.velocity ⟨0, le_rfl, hd.le⟩ := by | |
| 107 | + apply field_ext | |
| 108 | + calc | |
| 109 | + (R.velocity ⟨0, le_rfl, hd.le⟩).field = (v · a) := by | |
| 110 | + simpa only [R, Evolution.shiftTime_initial] using hmatch | |
| 111 | + _ = (Q.velocity ⟨0, le_rfl, hd.le⟩).field := by | |
| 112 | + simpa only [Q, Evolution.restrictTime_initial, add_zero] using | |
| 113 | + (hW ⟨0, le_rfl, hδ.le⟩).symm | |
| 114 | + have heq := Q.velocity_eq_of_initial R (congrArg SmoothL2Field.toLp hinit) | |
| 115 | + ⟨d, hd.le, le_rfl⟩ | |
| 116 | + refine ⟨a + d, ?_, by linarith, hab⟩ | |
| 117 | + intro x | |
| 118 | + have hmem : a + d ∈ Icc (0 : ℝ) S := ⟨add_nonneg ha.2.1 hd.le, had⟩ | |
| 119 | + rw [projIcc_of_mem hS hmem] | |
| 120 | + calc | |
| 121 | + (U.velocity ⟨a + d, hmem⟩).field x = (R.velocity ⟨d, hd.le, le_rfl⟩).field x := rfl | |
| 122 | + _ = (Q.velocity ⟨d, hd.le, le_rfl⟩).field x := congrArg (fun B => B.field x) heq | |
| 123 | + _ = v x (a + d) := congrFun (hW ⟨d, hd.le, hdδ⟩) x | |
| 124 | + have hall : Icc (0 : ℝ) S ⊆ s := | |
| 125 | + (hs.inter isClosed_Icc).Icc_subset_of_forall_exists_gt hzero hright | |
| 126 | + intro t | |
| 127 | + funext x | |
| 128 | + have hx := hall t.property x | |
| 129 | + simpa only [projIcc_of_mem hS t.property] using hx | |
| 130 | + | |
| 131 | +end Euler.ComparatorBridge | |
+46 −0 Euler/ComparatorIdentification.lean added View file
| @@ -0,0 +1,46 @@ | ||
| 1 | +import Euler.ComparatorEvolutionIdentification | |
| 2 | +import Euler.OrdinaryEulerMaximal | |
| 3 | + | |
| 4 | +/-! Local recovery and ordinary uniqueness identify the canonical maximal | |
| 5 | +velocity with every global Comparator solution. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | + | |
| 10 | +open Set EulerSmoothLimit EulerLpTranslation EulerOrdinarySobolev EulerMeanCutoffCurl | |
| 11 | + | |
| 12 | +namespace Euler.ComparatorBridge | |
| 13 | + | |
| 14 | +variable {A : SmoothL2Field Space} (L : FiniteLifespan A) | |
| 15 | + {v : Space → ℝ → Space} {p : Space → ℝ → ℝ} | |
| 16 | + | |
| 17 | +theorem maximalVelocity_eq_of_local_evolution | |
| 18 | + (h : EulerExistenceAndSmoothnessR3 A.field v p) | |
| 19 | + (hcompact : ∀ t : L.Time, HasCompactSupport (vectorCurl (L.maximalVelocity t))) | |
| 20 | + (hlocal : HasLocalEvolutionAtCompactCurl v) : | |
| 21 | + ∀ t : L.Time, L.maximalVelocity t = (v · (t : ℝ)) := by | |
| 22 | + intro t | |
| 23 | + let S := L.intermediateHorizon t | |
| 24 | + have hS : 0 < S := L.intermediateHorizon_pos t | |
| 25 | + have hSL : S < L.duration := L.intermediateHorizon_lt t | |
| 26 | + have hc : ∀ s, HasCompactSupport | |
| 27 | + (vectorCurl ((L.evolution S hS hSL).velocity s).field) := by | |
| 28 | + intro s | |
| 29 | + rw [← L.maximalVelocity_eq_evolution S hS hSL s] | |
| 30 | + exact hcompact _ | |
| 31 | + have he := evolution_field_eq_of_local_evolution (L.evolution S hS hSL) h | |
| 32 | + (L.evolution_initial S hS hSL) hc hlocal (L.intermediateTime t) | |
| 33 | + rw [← L.maximalVelocity_eq_evolution S hS hSL (L.intermediateTime t)] at he | |
| 34 | + exact he | |
| 35 | + | |
| 36 | +/-- The local analytic bridge suffices to identify the Comparator with the | |
| 37 | +canonical maximal solution, without additional time or space assumptions. -/ | |
| 38 | +theorem maximalVelocity_eq_of_compactCurlLocalUpgrade | |
| 39 | + (h : EulerExistenceAndSmoothnessR3 A.field v p) | |
| 40 | + (hcompact : ∀ t : L.Time, HasCompactSupport (vectorCurl (L.maximalVelocity t))) | |
| 41 | + (hupgrade : CompactCurlLocalUpgrade) : | |
| 42 | + ∀ t : L.Time, L.maximalVelocity t = (v · (t : ℝ)) := | |
| 43 | + maximalVelocity_eq_of_local_evolution L h hcompact | |
| 44 | + (hasLocalEvolutionAtCompactCurl_of_upgrade h hupgrade) | |
| 45 | + | |
| 46 | +end Euler.ComparatorBridge | |
+182 −0 Euler/ComparatorLocalCompactVorticity.lean added View file
| @@ -0,0 +1,182 @@ | ||
| 1 | +import Euler.ScalarEulerVorticity | |
| 2 | +import Euler.NoIncomingVorticity | |
| 3 | +import Euler.ReversedVorticityTransport | |
| 4 | +import Euler.TruncationFamily | |
| 5 | +import Euler.TruncatedBackwardFlow | |
| 6 | +import Euler.LocalFlowTrap | |
| 7 | +import Euler.ComparatorTruncationFamily | |
| 8 | + | |
| 9 | +/-! | |
| 10 | +# Short-time compact vorticity from finite-energy truncations | |
| 11 | + | |
| 12 | +The auxiliary characteristics are global flows of compact solenoidal | |
| 13 | +truncations. The construction does not require global trajectories of the | |
| 14 | +untruncated Comparator velocity. | |
| 15 | +-/ | |
| 16 | + | |
| 17 | +noncomputable section | |
| 18 | + | |
| 19 | + | |
| 20 | +open Set MeasureTheory EulerSmoothLimit EulerMeanCutoffCurl | |
| 21 | +open scoped ContDiff Topology | |
| 22 | + | |
| 23 | +namespace Euler.EulerExistenceAndSmoothnessR3 | |
| 24 | + | |
| 25 | +variable {u₀ : Space → Space} {v : Space → ℝ → Space} {p : Space → ℝ → ℝ} | |
| 26 | + (h : EulerExistenceAndSmoothnessR3 u₀ v p) | |
| 27 | + | |
| 28 | +include h | |
| 29 | + | |
| 30 | +/-- One compact spacetime cylinder supplies a common local speed bound and | |
| 31 | +one positive trapping time for every truncation agreeing on that cylinder. -/ | |
| 32 | +theorem exists_local_trapping_constants | |
| 33 | + (hc : HasCompactSupport (vectorCurl u₀)) : | |
| 34 | + ∃ A M δ : ℝ, 0 < A ∧ 0 < M ∧ 0 < δ ∧ δ ≤ 1 ∧ δ * M < 1 ∧ | |
| 35 | + (∀ x ∈ tsupport (vectorCurl u₀), ‖x‖ ≤ A) ∧ | |
| 36 | + (∀ t ∈ Icc (0 : ℝ) 1, ∀ x, ‖x‖ ≤ A + 1 → ‖v x t‖ ≤ M) := by | |
| 37 | + obtain ⟨A, hA, hAbound⟩ := hc.isBounded.exists_pos_norm_le | |
| 38 | + have hcompact : IsCompact (Icc (0 : ℝ) 1 ×ˢ Metric.closedBall (0 : Space) (A + 1)) := | |
| 39 | + isCompact_Icc.prod (isCompact_closedBall _ _) | |
| 40 | + have hv : ContinuousOn (fun z : ℝ × Space => v z.2 z.1) | |
| 41 | + (Icc (0 : ℝ) 1 ×ˢ Metric.closedBall (0 : Space) (A + 1)) := | |
| 42 | + h.velocity_joint_contDiffOn.continuousOn.mono (by | |
| 43 | + intro z hz | |
| 44 | + exact ⟨hz.1.1, mem_univ _⟩) | |
| 45 | + obtain ⟨M, hM, hMb⟩ := (hcompact.image_of_continuousOn hv).isBounded.exists_pos_norm_le | |
| 46 | + let δ : ℝ := min 1 (1 / (2 * M)) | |
| 47 | + have hδ : 0 < δ := lt_min (by norm_num) (by positivity) | |
| 48 | + have hδM : δ * M < 1 := by | |
| 49 | + have hm : δ * M ≤ (1 / (2 * M)) * M := | |
| 50 | + mul_le_mul_of_nonneg_right (min_le_right _ _) hM.le | |
| 51 | + have he : (1 / (2 * M)) * M = 1 / 2 := by field_simp | |
| 52 | + rw [he] at hm | |
| 53 | + linarith | |
| 54 | + refine ⟨A, M, δ, hA, hM, hδ, min_le_left _ _, hδM, hAbound, ?_⟩ | |
| 55 | + intro t ht x hx | |
| 56 | + apply hMb (v x t) | |
| 57 | + refine ⟨(t, x), ⟨ht, ?_⟩, rfl⟩ | |
| 58 | + simpa only [Metric.mem_closedBall, dist_zero_right] using hx | |
| 59 | + | |
| 60 | + | |
| 61 | +omit h in | |
| 62 | +private theorem truncation_realField_agrees | |
| 63 | + (F : ComparatorBridge.FiniteEnergyTruncationFamily v) | |
| 64 | + (R : ℝ) (hR : 0 < R) (r : ℝ) (hr : r ∈ Icc 0 1) | |
| 65 | + (x : Space) (hx : ‖x‖ < R) : | |
| 66 | + (F.coefficient R).realField 1 zero_le_one r x = v x r := by | |
| 67 | + change (F.coefficient R).field (projIcc 0 1 zero_le_one r) x = _ | |
| 68 | + rw [F.agrees R hR _ x hx] | |
| 69 | + simp only [projIcc_of_mem zero_le_one hr] | |
| 70 | + | |
| 71 | +/-- The approximation radius is enlarged to include the one fixed trapping | |
| 72 | +ball. This gives valid approximants even for nonpositive requested radii. -/ | |
| 73 | +def locallyTrappedBackwardFlows | |
| 74 | + (F : ComparatorBridge.FiniteEnergyTruncationFamily v) | |
| 75 | + (A M δ T : ℝ) (hA : 0 < A) (hM : 0 < M) | |
| 76 | + (hδ1 : δ ≤ 1) (hδM : δ * M < 1) (hT : T ∈ Icc 0 δ) | |
| 77 | + (hAbound : ∀ x ∈ tsupport (vectorCurl u₀), ‖x‖ ≤ A) | |
| 78 | + (hspeed : ∀ t ∈ Icc (0 : ℝ) 1, ∀ x, ‖x‖ ≤ A + 1 → ‖v x t‖ ≤ M) : | |
| 79 | + ComparatorBridge.BackwardVorticityFlows T F.energy (A + 1) | |
| 80 | + (tsupport (vectorCurl u₀)) (vectorCurl u₀) (vectorCurl (v · T)) := by | |
| 81 | + let ρ : ℝ → ℝ := fun R => max R (A + 2) | |
| 82 | + have hρ (R : ℝ) : 0 < ρ R := lt_of_lt_of_le (by linarith) (le_max_right _ _) | |
| 83 | + have hT1 : T ≤ 1 := hT.2.trans hδ1 | |
| 84 | + let C (R : ℝ) := F.coefficient (ρ R) | |
| 85 | + let X (R s : ℝ) := ComparatorBridge.TruncatedBackwardFlow.homeomorph (C R) T hT.1 hT1 s | |
| 86 | + let V (R : ℝ) := ComparatorBridge.TruncatedBackwardFlow.velocity (C R) T hT.1 hT1 | |
| 87 | + refine { | |
| 88 | + flow := X | |
| 89 | + velocity := V | |
| 90 | + time_nonneg := hT.1 | |
| 91 | + preserves_volume := ?_ | |
| 92 | + initial_map := ?_ | |
| 93 | + joint_measurable := ?_ | |
| 94 | + velocity_memLp := ?_ | |
| 95 | + energy_bound := ?_ | |
| 96 | + curve_continuous := ?_ | |
| 97 | + speed_continuous := ?_ | |
| 98 | + curve_derivative := ?_ | |
| 99 | + initial_support := subset_tsupport _ | |
| 100 | + transport_nonzero := ?_ | |
| 101 | + forward_trap := ?_ } | |
| 102 | + · intro R s | |
| 103 | + exact ComparatorBridge.TruncatedBackwardFlow.homeomorph_measurePreserving | |
| 104 | + (C R) T hT.1 hT1 volume (F.divergence (ρ R) (hρ R)) s | |
| 105 | + · intro R x | |
| 106 | + exact ComparatorBridge.TruncatedBackwardFlow.homeomorph_zero (C R) T hT.1 hT1 x | |
| 107 | + · intro R | |
| 108 | + exact ComparatorBridge.TruncatedBackwardFlow.action_joint_measurable (C R) T hT.1 hT1 volume | |
| 109 | + · intro R s | |
| 110 | + exact ComparatorBridge.TruncatedBackwardFlow.velocity_memLp | |
| 111 | + (C R) T hT.1 hT1 volume (F.memLp (ρ R) (hρ R)) s | |
| 112 | + · intro R s | |
| 113 | + exact ComparatorBridge.TruncatedBackwardFlow.velocity_energy | |
| 114 | + (C R) T hT.1 hT1 volume F.energy (F.energy_bound (ρ R) (hρ R)) s | |
| 115 | + · intro R x | |
| 116 | + exact (ComparatorBridge.TruncatedBackwardFlow.curve_continuous (C R) T hT.1 hT1 x).continuousOn | |
| 117 | + · intro R x | |
| 118 | + exact (ComparatorBridge.TruncatedBackwardFlow.speed_continuous (C R) T hT.1 hT1 x).continuousOn | |
| 119 | + · intro R x s hs | |
| 120 | + exact ComparatorBridge.TruncatedBackwardFlow.curve_hasDerivAt (C R) T hT.1 hT1 x s hs | |
| 121 | + · intro R x hstay hnz | |
| 122 | + have he : (v · 0) = u₀ := funext h.initial_condition | |
| 123 | + rw [← he] | |
| 124 | + apply h.vorticity_ne_zero_along_reverse_trajectory | |
| 125 | + (fun s => X R s x) T hT.1 | |
| 126 | + (ComparatorBridge.TruncatedBackwardFlow.curve_continuous (C R) T hT.1 hT1 x).continuousOn | |
| 127 | + · intro s hs | |
| 128 | + have hd := ComparatorBridge.TruncatedBackwardFlow.curve_hasDerivAt | |
| 129 | + (C R) T hT.1 hT1 x s hs | |
| 130 | + have hv : V R s (X R s x) = -v (X R s x) (T - s) := by | |
| 131 | + change ComparatorBridge.TruncatedBackwardFlow.velocity (C R) T hT.1 hT1 s (X R s x) = _ | |
| 132 | + rw [ComparatorBridge.TruncatedBackwardFlow.velocity_eq_realField | |
| 133 | + (C R) T hT.1 hT1 s ⟨hs.1.le, hs.2.le⟩] | |
| 134 | + rw [truncation_realField_agrees F (ρ R) (hρ R) (T - s) | |
| 135 | + ⟨sub_nonneg.mpr hs.2.le, by linarith [hs.1]⟩ (X R s x) | |
| 136 | + ((hstay s ⟨hs.1.le, hs.2.le⟩).trans_le (le_max_left _ _))] | |
| 137 | + exact hv ▸ hd | |
| 138 | + · simpa only [X, ComparatorBridge.TruncatedBackwardFlow.homeomorph_zero] using hnz | |
| 139 | + · intro R a ha | |
| 140 | + let Z := ComparatorBridge.TruncatedBackwardFlow.endpointPath (C R) T hT.1 hT1 a | |
| 141 | + have hsmall : T * M < (A + 1) - A := by | |
| 142 | + have hm := mul_le_mul_of_nonneg_right hT.2 hM.le | |
| 143 | + linarith | |
| 144 | + have hz := EulerComparatorLocalFlow.norm_lt_of_local_speed_bound | |
| 145 | + Z ((C R).realField 1 zero_le_one) hM.le (by linarith : A < A + 1) hsmall | |
| 146 | + (ComparatorBridge.TruncatedBackwardFlow.endpointPath_continuous (C R) T hT.1 hT1 a).continuousOn | |
| 147 | + (ComparatorBridge.TruncatedBackwardFlow.endpointPath_hasDerivAt (C R) T hT.1 hT1 a) | |
| 148 | + (by simpa only [Z, ComparatorBridge.TruncatedBackwardFlow.endpointPath_zero] using hAbound a ha) | |
| 149 | + (by | |
| 150 | + intro r hr x hx | |
| 151 | + rw [truncation_realField_agrees F (ρ R) (hρ R) r ⟨hr.1, hr.2.trans hT1⟩ x | |
| 152 | + (lt_of_le_of_lt hx (lt_of_lt_of_le (by linarith) (le_max_right _ _)))] | |
| 153 | + exact hspeed r ⟨hr.1, hr.2.trans hT1⟩ x hx) | |
| 154 | + T ⟨hT.1, le_rfl⟩ | |
| 155 | + simpa only [Z, X, ComparatorBridge.TruncatedBackwardFlow.endpointPath_end] using hz.le | |
| 156 | + | |
| 157 | +/-- Finite-energy solenoidal truncations imply compact vorticity for a | |
| 158 | +uniform positive interval, using only the Comparator solution assumptions. -/ | |
| 159 | +theorem local_compact_vorticity_of_truncationFamily | |
| 160 | + (F : ComparatorBridge.FiniteEnergyTruncationFamily v) | |
| 161 | + (hc : HasCompactSupport (vectorCurl u₀)) : | |
| 162 | + ∃ δ B : ℝ, 0 < δ ∧ ∀ t ∈ Icc 0 δ, | |
| 163 | + tsupport (vectorCurl (v · t)) ⊆ Metric.closedBall (0 : Space) B := by | |
| 164 | + obtain ⟨A, M, δ, hA, hM, hδ, hδ1, hδM, hAbound, hspeed⟩ := | |
| 165 | + h.exists_local_trapping_constants hc | |
| 166 | + refine ⟨δ, A + 1, hδ, ?_⟩ | |
| 167 | + intro t ht | |
| 168 | + let G := h.locallyTrappedBackwardFlows F A M δ t hA hM hδ1 hδM ht hAbound hspeed | |
| 169 | + exact closure_minimal (G.support_subset_closedBall | |
| 170 | + (EulerMeanVectorIdentities.vectorCurl_smooth (v · t) (h.velocity_contDiff t ht.1)).continuous) | |
| 171 | + Metric.isClosed_closedBall | |
| 172 | + | |
| 173 | + | |
| 174 | +/-- Compact initial vorticity stays in one compact ball for a positive time | |
| 175 | +for every Comparator solution. The auxiliary global trajectories are those | |
| 176 | +of the explicitly constructed finite-energy solenoidal truncations. -/ | |
| 177 | +theorem local_compact_vorticity (hc : HasCompactSupport (vectorCurl u₀)) : | |
| 178 | + ∃ δ B : ℝ, 0 < δ ∧ ∀ t ∈ Icc 0 δ, | |
| 179 | + tsupport (vectorCurl (v · t)) ⊆ Metric.closedBall (0 : Space) B := | |
| 180 | + h.local_compact_vorticity_of_truncationFamily h.finiteEnergyTruncationFamily hc | |
| 181 | + | |
| 182 | +end Euler.EulerExistenceAndSmoothnessR3 | |
+99 −0 Euler/ComparatorLocalEvolution.lean added View file
| @@ -0,0 +1,99 @@ | ||
| 1 | +import Euler.ComparatorEvolutionIdentification | |
| 2 | +import Euler.ComparatorLocalCompactVorticity | |
| 3 | +import Euler.ComparatorTruncationFamily | |
| 4 | +import Euler.ComparatorUniformSpatialJets | |
| 5 | +import Euler.DivCurlTensorRecovery | |
| 6 | +import Euler.CompactVorticityTimeUpgrade | |
| 7 | +import Euler.CompactProjectedEulerLaw | |
| 8 | + | |
| 9 | +/-! | |
| 10 | +# The concrete local Comparator-to-development conversion | |
| 11 | + | |
| 12 | +Compact initial vorticity remains in one compact set for a positive time. | |
| 13 | +Elliptic recovery gives all spatial L² derivatives on that interval, and | |
| 14 | +the genuine Euler pairings against dense compact solenoidal tests provide | |
| 15 | +the time regularity needed for an ordinary Euler evolution. | |
| 16 | +-/ | |
| 17 | + | |
| 18 | +noncomputable section | |
| 19 | + | |
| 20 | + | |
| 21 | +namespace Euler.ComparatorBridge | |
| 22 | + | |
| 23 | +open Set MeasureTheory EulerSmoothLimit EulerLpTranslation EulerOrdinarySobolev | |
| 24 | + EulerMeanSolenoidal EulerMeanHarmonic EulerMeanCutoffCurl EulerComparatorRecovery | |
| 25 | +open scoped ContDiff Topology | |
| 26 | + | |
| 27 | +variable {u₀ : Space → Space} {v : Space → ℝ → Space} {p : Space → ℝ → ℝ} | |
| 28 | + | |
| 29 | +/-- Actual ordinary smooth-L² velocity slices recovered from a common compact | |
| 30 | +vorticity support. The fields are definitionally the Comparator velocity. -/ | |
| 31 | +def recoveredVelocity (h : EulerExistenceAndSmoothnessR3 u₀ v p) | |
| 32 | + (T : ℝ) (K : Set Space) (hK : IsCompact K) | |
| 33 | + (hsupport : ∀ t ∈ Icc (0 : ℝ) T, tsupport (vectorCurl (v · t)) ⊆ K) : | |
| 34 | + Icc (0 : ℝ) T → SmoothL2Field Space := fun t => | |
| 35 | + smoothL2Field_of_curl_compact (v · (t : ℝ)) | |
| 36 | + (h.velocity_contDiff t t.property.1) | |
| 37 | + (h.velocity_memLp t t.property.1) | |
| 38 | + (fun x => h.div_free x t t.property.1) | |
| 39 | + (hK.of_isClosed_subset (isClosed_tsupport _) (hsupport t t.property)) | |
| 40 | + | |
| 41 | +@[simp] theorem recoveredVelocity_field (h : EulerExistenceAndSmoothnessR3 u₀ v p) | |
| 42 | + (T : ℝ) (K : Set Space) (hK : IsCompact K) | |
| 43 | + (hsupport : ∀ t ∈ Icc (0 : ℝ) T, tsupport (vectorCurl (v · t)) ⊆ K) | |
| 44 | + (t : Icc (0 : ℝ) T) : | |
| 45 | + (recoveredVelocity h T K hK hsupport t).field = (v · (t : ℝ)) := rfl | |
| 46 | + | |
| 47 | +/-- All genuine spatial L² tensor norms are uniformly bounded on the common | |
| 48 | +compact-vorticity interval. No time regularity of these norms is assumed. -/ | |
| 49 | +theorem recoveredVelocity_jetLp_uniform (h : EulerExistenceAndSmoothnessR3 u₀ v p) | |
| 50 | + (T : ℝ) (K : Set Space) (hK : IsCompact K) | |
| 51 | + (hsupport : ∀ t ∈ Icc (0 : ℝ) T, tsupport (vectorCurl (v · t)) ⊆ K) : | |
| 52 | + ∀ n : ℕ, ∃ M : ℝ, ∀ t, | |
| 53 | + ‖(recoveredVelocity h T K hK hsupport t).jetLp n‖ ≤ M := by | |
| 54 | + intro n | |
| 55 | + refine jetLp_norm_uniform_of_coordinate_energy | |
| 56 | + (recoveredVelocity h T K hK hsupport) ?_ n | |
| 57 | + intro j word | |
| 58 | + obtain ⟨B, hB⟩ := h.component_word_energy_uniform_of_commonCompactCurl | |
| 59 | + T K hK hsupport j word | |
| 60 | + exact ⟨B, fun t => hB t t.property⟩ | |
| 61 | + | |
| 62 | +/-- A Comparator Euler solution with a common compact vorticity support is | |
| 63 | +represented by an actual ordinary evolution throughout that interval. -/ | |
| 64 | +theorem exists_evolution_of_commonCompactCurl | |
| 65 | + (h : EulerExistenceAndSmoothnessR3 u₀ v p) | |
| 66 | + (T : ℝ) (hT : 0 < T) (K : Set Space) (hK : IsCompact K) | |
| 67 | + (hsupport : ∀ t ∈ Icc (0 : ℝ) T, tsupport (vectorCurl (v · t)) ⊆ K) : | |
| 68 | + ∃ U : Evolution T hT.le, | |
| 69 | + ∀ t : Icc (0 : ℝ) T, (U.velocity t).field = (v · (t : ℝ)) := by | |
| 70 | + let A := recoveredVelocity h T K hK hsupport | |
| 71 | + have hA (t : Icc (0 : ℝ) T) : (A t).field = (v · (t : ℝ)) := rfl | |
| 72 | + have hscalar : IsSmoothScalarEuler (hT := hT.le) A := by | |
| 73 | + apply isSmoothScalarEuler_of_weak_projectedEquation hT A | |
| 74 | + (comparator_velocity_mem_solenoidal h A hA) | |
| 75 | + (tensorNorm_uniform_of_jetLp_uniform A | |
| 76 | + (recoveredVelocity_jetLp_uniform h T K hK hsupport)) | |
| 77 | + compactSolenoidalTests compactSolenoidalTests_dense | |
| 78 | + · intro φ _ | |
| 79 | + exact comparator_weak_pairings_continuous h A hA φ | |
| 80 | + · intro φ hφ t ht | |
| 81 | + exact comparator_projected_pairing_hasDerivAt h hT A hA φ hφ t ht | |
| 82 | + obtain ⟨U, hU⟩ := (exists_evolution_iff_scalar (hT := hT.le) hT A).mpr hscalar | |
| 83 | + refine ⟨U, ?_⟩ | |
| 84 | + intro t | |
| 85 | + rw [hU] | |
| 86 | + exact hA t | |
| 87 | + | |
| 88 | +/-- Compact initial vorticity alone supplies the complete local conversion: | |
| 89 | +the truncations, support propagation, spatial recovery, and time regularity | |
| 90 | +are all obtained from the actual Comparator solution assumptions. -/ | |
| 91 | +theorem compactCurlLocalUpgrade : CompactCurlLocalUpgrade := by | |
| 92 | + intro u₀ v p h hc | |
| 93 | + obtain ⟨δ, B, hδ, hsupport⟩ := | |
| 94 | + h.local_compact_vorticity_of_truncationFamily h.finiteEnergyTruncationFamily hc | |
| 95 | + obtain ⟨U, hU⟩ := exists_evolution_of_commonCompactCurl h δ hδ | |
| 96 | + (Metric.closedBall (0 : Space) B) (isCompact_closedBall _ _) hsupport | |
| 97 | + exact ⟨δ, hδ, U, hU⟩ | |
| 98 | + | |
| 99 | +end Euler.ComparatorBridge | |
+128 −0 Euler/ComparatorMaximalFields.lean added View file
| @@ -0,0 +1,128 @@ | ||
| 1 | +import Euler.ComparatorSingularityNorms | |
| 2 | +import Euler.OrdinaryEulerKineticEnergy | |
| 3 | + | |
| 4 | +/-! The canonical maximal fields in the challenge's position-first, real-time | |
| 5 | +convention. Extension by zero outside the lifespan has no role in the equation. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +open Set Filter MeasureTheory InnerProductSpace EulerSmoothLimit EulerLpTranslation | |
| 10 | + EulerLpTranslation.SmoothL2Field EulerOrdinarySobolev EulerMeanSobolevBoundedField | |
| 11 | +open scoped ENNReal Topology ContDiff | |
| 12 | + | |
| 13 | +namespace Euler.ComparatorBridge | |
| 14 | + | |
| 15 | +variable {A : SmoothL2Field Space} (L : FiniteLifespan A) | |
| 16 | + | |
| 17 | +def maximalVelocityExtension (x : Space) (t : ℝ) : Space := | |
| 18 | + if ht : t ∈ Ico (0 : ℝ) L.duration then L.maximalVelocity ⟨t, ht⟩ x else 0 | |
| 19 | + | |
| 20 | +def maximalPressureExtension (x : Space) (t : ℝ) : ℝ := | |
| 21 | + if ht : t ∈ Ico (0 : ℝ) L.duration then L.maximalPressure ⟨t, ht⟩ x else 0 | |
| 22 | + | |
| 23 | +theorem maximalVelocityExtension_eq (t : L.Time) : | |
| 24 | + (maximalVelocityExtension L · (t : ℝ)) = L.maximalVelocity t := by | |
| 25 | + funext x | |
| 26 | + simp only [maximalVelocityExtension, dite_eq_left t.property] | |
| 27 | + | |
| 28 | +theorem maximalPressureExtension_eq (t : L.Time) : | |
| 29 | + (maximalPressureExtension L · (t : ℝ)) = L.maximalPressure t := by | |
| 30 | + funext x | |
| 31 | + simp only [maximalPressureExtension, dite_eq_left t.property] | |
| 32 | + | |
| 33 | +theorem maximalVelocityExtension_initial : (maximalVelocityExtension L · 0) = A.field := | |
| 34 | + (maximalVelocityExtension_eq L L.initialTime).trans L.maximalVelocity_initial | |
| 35 | + | |
| 36 | +theorem maximalVelocityExtension_memLp (t : ℝ) (ht : t ∈ Ico 0 L.duration) : | |
| 37 | + MemLp (maximalVelocityExtension L · t) 2 volume := by | |
| 38 | + rw [maximalVelocityExtension_eq L ⟨t, ht⟩] | |
| 39 | + exact (L.maximalField ⟨t, ht⟩).memLp | |
| 40 | + | |
| 41 | +theorem maximalVelocityExtension_divergence (t : ℝ) (ht : t ∈ Ico 0 L.duration) | |
| 42 | + (x : Space) : Euler.divergence (maximalVelocityExtension L · t) x = 0 := by | |
| 43 | + rw [maximalVelocityExtension_eq L ⟨t, ht⟩] | |
| 44 | + exact L.maximalVelocity_divergence ⟨t, ht⟩ x | |
| 45 | + | |
| 46 | +theorem velocityC1Norm_maximal (t : L.Time) : | |
| 47 | + Euler.velocityC1Norm (maximalVelocityExtension L · (t : ℝ)) = | |
| 48 | + ENNReal.ofReal (L.maximalC1Norm t) := by | |
| 49 | + rw [maximalVelocityExtension_eq] | |
| 50 | + exact velocityC1Norm_eq (L.maximalField t) | |
| 51 | + | |
| 52 | +theorem vorticityNorm_maximal (t : L.Time) : | |
| 53 | + Euler.vorticityNorm (maximalVelocityExtension L · (t : ℝ)) = | |
| 54 | + ENNReal.ofReal (L.maximalVorticityNorm t) := by | |
| 55 | + rw [maximalVelocityExtension_eq] | |
| 56 | + exact vorticityNorm_eq (L.maximalField t) | |
| 57 | + | |
| 58 | +theorem vorticityNorm_maximal_density (t : ℝ) (ht : t ∈ Ico 0 L.duration) : | |
| 59 | + Euler.vorticityNorm (maximalVelocityExtension L · t) = | |
| 60 | + ENNReal.ofReal (L.maximalVorticityDensity t) := by | |
| 61 | + exact (vorticityNorm_maximal L ⟨t, ht⟩).trans | |
| 62 | + (congrArg ENNReal.ofReal (L.maximalVorticityDensity_eq ⟨t, ht⟩)).symm | |
| 63 | + | |
| 64 | +theorem maximalField_kineticEnergy (t : L.Time) : | |
| 65 | + ‖(L.maximalField t).toLp‖ ^ 2 = ‖A.toLp‖ ^ 2 := by | |
| 66 | + change ‖((L.evolution (L.intermediateHorizon t) (L.intermediateHorizon_pos t) | |
| 67 | + (L.intermediateHorizon_lt t)).velocity (L.intermediateTime t)).toLp‖ ^ 2 = _ | |
| 68 | + rw [Evolution.kineticEnergy_conserved, L.evolution_initial] | |
| 69 | + | |
| 70 | +theorem maximalVelocityExtension_energy (t : ℝ) (ht : t ∈ Ico 0 L.duration) : | |
| 71 | + (∫ x, ‖maximalVelocityExtension L x t‖ ^ 2) = ‖A.toLp‖ ^ 2 := by | |
| 72 | + have he := field_inner (L.maximalField ⟨t, ht⟩) (L.maximalField ⟨t, ht⟩) | |
| 73 | + have hf : (∫ x, ‖(L.maximalField ⟨t, ht⟩).field x‖ ^ 2) = | |
| 74 | + ‖(L.maximalField ⟨t, ht⟩).toLp‖ ^ 2 := by | |
| 75 | + simpa only [real_inner_self_eq_norm_sq] using he.symm | |
| 76 | + have hx := congrFun (maximalVelocityExtension_eq L ⟨t, ht⟩) | |
| 77 | + calc | |
| 78 | + _ = ∫ x, ‖(L.maximalField ⟨t, ht⟩).field x‖ ^ 2 := | |
| 79 | + integral_congr_ae (Eventually.of_forall (fun x => congrArg (fun a : Space => ‖a‖ ^ 2) (hx x))) | |
| 80 | + _ = ‖A.toLp‖ ^ 2 := hf.trans (maximalField_kineticEnergy L ⟨t, ht⟩) | |
| 81 | + | |
| 82 | +theorem maximalVelocityExtension_bounded_energy : | |
| 83 | + ∃ E : ℝ, ∀ t ∈ Ico (0 : ℝ) L.duration, | |
| 84 | + (∫ x, ‖maximalVelocityExtension L x t‖ ^ 2) < E := by | |
| 85 | + refine ⟨‖A.toLp‖ ^ 2 + 1, ?_⟩ | |
| 86 | + intro t ht | |
| 87 | + rw [maximalVelocityExtension_energy L t ht] | |
| 88 | + exact lt_add_one _ | |
| 89 | + | |
| 90 | +theorem maximalVelocityExtension_c1_locally_bounded | |
| 91 | + (S : ℝ) (_hS : 0 < S) (hSL : S < L.duration) : | |
| 92 | + (⨆ t ∈ Icc (0 : ℝ) S, Euler.velocityC1Norm (maximalVelocityExtension L · t)) < ⊤ := by | |
| 93 | + have hc : Continuous (fun t : Icc (0 : ℝ) S => | |
| 94 | + L.maximalC1Norm (L.shorterTime S hSL t)) := | |
| 95 | + L.maximalC1Norm_continuous.comp | |
| 96 | + (continuous_subtype_val.subtype_mk (fun t => ⟨t.property.1, t.property.2.trans_lt hSL⟩)) | |
| 97 | + obtain ⟨M, hM⟩ := (isCompact_range hc).bddAbove | |
| 98 | + apply lt_of_le_of_lt (b := ENNReal.ofReal M) _ ENNReal.ofReal_lt_top | |
| 99 | + refine iSup_le (fun t => iSup_le (fun ht => ?_)) | |
| 100 | + exact (velocityC1Norm_maximal L (L.shorterTime S hSL ⟨t, ht⟩)).le.trans | |
| 101 | + (ENNReal.ofReal_le_ofReal (hM ⟨⟨t, ht⟩, rfl⟩)) | |
| 102 | + | |
| 103 | +theorem maximalVelocityExtension_vorticity_locally_integrable | |
| 104 | + (S : ℝ) (hS : 0 < S) (hSL : S < L.duration) : | |
| 105 | + (∫⁻ t in Ico (0 : ℝ) S, Euler.vorticityNorm (maximalVelocityExtension L · t)) < ⊤ := by | |
| 106 | + have he : (∫⁻ t in Ico (0 : ℝ) S, Euler.vorticityNorm (maximalVelocityExtension L · t)) = | |
| 107 | + ∫⁻ t in Ico (0 : ℝ) S, ENNReal.ofReal (L.maximalVorticityDensity t) := by | |
| 108 | + apply setLIntegral_congr_fun measurableSet_Ico | |
| 109 | + intro t ht | |
| 110 | + exact vorticityNorm_maximal_density L t ⟨ht.1, ht.2.trans hSL⟩ | |
| 111 | + rw [he, ← ofReal_integral_eq_lintegral_ofReal | |
| 112 | + ((L.maximalVorticityDensity_continuousOn S hS hSL).integrableOn_Icc.mono_set | |
| 113 | + Ico_subset_Icc_self) | |
| 114 | + (Eventually.of_forall L.maximalVorticityDensity_nonneg)] | |
| 115 | + exact ENNReal.ofReal_lt_top | |
| 116 | + | |
| 117 | +theorem maximalVelocityExtension_c1_limsup : | |
| 118 | + Filter.limsup (fun t : ℝ => Euler.velocityC1Norm (maximalVelocityExtension L · t)) | |
| 119 | + (𝓝[<] L.duration) = ⊤ := by | |
| 120 | + rw [← L.map_time_atTop, ← Filter.limsup_comp] | |
| 121 | + simpa only [Function.comp_def, velocityC1Norm_maximal] using L.maximalC1Norm_limsup_atTop | |
| 122 | + | |
| 123 | +theorem maximalVelocityExtension_vorticity_integral : | |
| 124 | + (∫⁻ t in Ico (0 : ℝ) L.duration, Euler.vorticityNorm (maximalVelocityExtension L · t)) = ⊤ := by | |
| 125 | + rw [setLIntegral_congr_fun measurableSet_Ico (vorticityNorm_maximal_density L)] | |
| 126 | + exact L.vorticity_lintegral_eq_top | |
| 127 | + | |
| 128 | +end Euler.ComparatorBridge | |
+113 −0 Euler/ComparatorMaximalSolution.lean added View file
| @@ -0,0 +1,113 @@ | ||
| 1 | +import Euler.ComparatorSobolevEvolution | |
| 2 | +import Euler.ComparatorMaximalFields | |
| 3 | + | |
| 4 | +/-! The canonical maximal solution in the reference's ordinary-function | |
| 5 | +Sobolev class. All regularity is inherited from its existing shorter evolutions. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +open Set Filter MeasureTheory EulerSmoothLimit EulerLpTranslation | |
| 10 | + EulerLpTranslation.SmoothL2Field EulerOrdinarySobolev | |
| 11 | +open scoped Topology ContDiff | |
| 12 | + | |
| 13 | +namespace Euler.ComparatorBridge | |
| 14 | + | |
| 15 | +variable {A : SmoothL2Field Space} (L : FiniteLifespan A) | |
| 16 | + | |
| 17 | +def maximalDerivativeField (t : L.Time) : SmoothL2Field Space := | |
| 18 | + eulerRhs (L.maximalField t) (L.maximalPressureField t) | |
| 19 | + | |
| 20 | +theorem maximalDerivativeField_eq_evolution (S : ℝ) (hS : 0 < S) | |
| 21 | + (hSL : S < L.duration) (t : Icc (0 : ℝ) S) : | |
| 22 | + maximalDerivativeField L (L.shorterTime S hSL t) = | |
| 23 | + (L.evolution S hS hSL).derivative t := by | |
| 24 | + rw [maximalDerivativeField, L.maximalField_eq_evolution S hS hSL, | |
| 25 | + L.maximalPressureField_eq_evolution S hS hSL, Evolution.derivative_eq_eulerRhs] | |
| 26 | + | |
| 27 | +theorem maximalDerivativeField_jet_continuous (n : ℕ) : | |
| 28 | + Continuous (fun t : L.Time => (maximalDerivativeField L t).jetLp n) := by | |
| 29 | + apply L.continuous_of_shorter_restrictions | |
| 30 | + intro S hS hSL | |
| 31 | + simp only [maximalDerivativeField_eq_evolution L S hS hSL] | |
| 32 | + exact (L.evolution S hS hSL).derivative_continuous n | |
| 33 | + | |
| 34 | +def maximalDerivativeExtension (x : Space) (t : ℝ) : Space := | |
| 35 | + if ht : t ∈ Ico (0 : ℝ) L.duration then (maximalDerivativeField L ⟨t, ht⟩).field x else 0 | |
| 36 | + | |
| 37 | +theorem maximalDerivativeExtension_eq (t : L.Time) : | |
| 38 | + (maximalDerivativeExtension L · (t : ℝ)) = (maximalDerivativeField L t).field := by | |
| 39 | + funext x | |
| 40 | + simp only [maximalDerivativeExtension, dite_eq_left t.property] | |
| 41 | + | |
| 42 | +theorem maximalVelocityExtension_eq_evolution (S : ℝ) (hS : 0 < S) | |
| 43 | + (hSL : S < L.duration) (t : Icc (0 : ℝ) S) : | |
| 44 | + (maximalVelocityExtension L · (t : ℝ)) = ((L.evolution S hS hSL).velocity t).field := | |
| 45 | + (maximalVelocityExtension_eq L (L.shorterTime S hSL t)).trans | |
| 46 | + (L.maximalVelocity_eq_evolution S hS hSL t) | |
| 47 | + | |
| 48 | +theorem maximalVelocityExtension_sobolevSmooth : | |
| 49 | + Euler.SobolevSmoothOn (Ico 0 L.duration) (maximalVelocityExtension L) := | |
| 50 | + sobolevSmoothOn_of_path L.maximalField L.maximalField_jet_continuous _ | |
| 51 | + (maximalVelocityExtension_eq L) | |
| 52 | + | |
| 53 | +theorem maximalDerivativeExtension_sobolevSmooth : | |
| 54 | + Euler.SobolevSmoothOn (Ico 0 L.duration) (maximalDerivativeExtension L) := | |
| 55 | + sobolevSmoothOn_of_path (maximalDerivativeField L) | |
| 56 | + (maximalDerivativeField_jet_continuous L) _ (maximalDerivativeExtension_eq L) | |
| 57 | + | |
| 58 | +theorem maximalVelocityExtension_hasDerivAt (t : ℝ) (ht : t ∈ Ioo 0 L.duration) : | |
| 59 | + HasDerivAt (fun s => Euler.toL2 (maximalVelocityExtension L · s)) | |
| 60 | + (Euler.toL2 (maximalDerivativeExtension L · t)) t := by | |
| 61 | + let s : L.Time := ⟨t, ht.1.le, ht.2⟩ | |
| 62 | + let S := L.intermediateHorizon s | |
| 63 | + have hS : 0 < S := L.intermediateHorizon_pos s | |
| 64 | + have hSL : S < L.duration := L.intermediateHorizon_lt s | |
| 65 | + have htS : t < S := L.time_lt_intermediateHorizon s | |
| 66 | + let r : Icc (0 : ℝ) S := ⟨t, ht.1.le, htS.le⟩ | |
| 67 | + have hd := ((L.evolution S hS hSL).velocityPath_hasDerivWithinAt r).hasDerivAt | |
| 68 | + (Icc_mem_nhds ht.1 htS) | |
| 69 | + rw [Evolution.velocityPath_extend] at hd | |
| 70 | + have he : Euler.toL2 (maximalDerivativeExtension L · t) = | |
| 71 | + ((L.evolution S hS hSL).derivative r).toLp := by | |
| 72 | + change Euler.toL2 (maximalDerivativeExtension L · | |
| 73 | + (L.shorterTime S hSL r : ℝ)) = _ | |
| 74 | + rw [maximalDerivativeExtension_eq L (L.shorterTime S hSL r), toL2_field, | |
| 75 | + maximalDerivativeField_eq_evolution L S hS hSL] | |
| 76 | + rw [he] | |
| 77 | + apply hd.congr_of_eventuallyEq | |
| 78 | + filter_upwards [Ioo_mem_nhds ht.1 htS] with u hu | |
| 79 | + rw [maximalVelocityExtension_eq_evolution L S hS hSL ⟨u, hu.1.le, hu.2.le⟩, | |
| 80 | + toL2_field, projIcc_of_mem hS.le ⟨hu.1.le, hu.2.le⟩] | |
| 81 | + | |
| 82 | +theorem maximal_sobolevSolution : | |
| 83 | + EulerSobolevExistenceAndSmoothnessR3On (Ico 0 L.duration) A.field | |
| 84 | + (maximalVelocityExtension L) (maximalPressureExtension L) := by | |
| 85 | + refine ⟨fun x t ht => maximalVelocityExtension_divergence L t ht x, | |
| 86 | + fun x => congrFun (maximalVelocityExtension_initial L) x, | |
| 87 | + maximalVelocityExtension_sobolevSmooth L, ?_, maximalDerivativeExtension L, | |
| 88 | + maximalDerivativeExtension_sobolevSmooth L, ?_, ?_⟩ | |
| 89 | + · intro t ht | |
| 90 | + have hi : t ∈ Ico 0 L.duration := interior_subset ht | |
| 91 | + rw [maximalPressureExtension_eq L ⟨t, hi⟩] | |
| 92 | + exact (L.maximalPressure_spec ⟨t, hi⟩).1.differentiable (by simp) | |
| 93 | + · intro t ht | |
| 94 | + exact maximalVelocityExtension_hasDerivAt L t (by simpa only [interior_Ico] using ht) | |
| 95 | + · intro x t ht | |
| 96 | + have hi : t ∈ Ico 0 L.duration := interior_subset ht | |
| 97 | + have hd := congrFun (maximalDerivativeExtension_eq L ⟨t, hi⟩) x | |
| 98 | + have hv := congrFun (maximalVelocityExtension_eq L ⟨t, hi⟩) x | |
| 99 | + rw [hd, hv, maximalVelocityExtension_eq L ⟨t, hi⟩, | |
| 100 | + maximalPressureExtension_eq L ⟨t, hi⟩, maximalDerivativeField, eulerRhs_field, | |
| 101 | + (L.maximalPressure_spec ⟨t, hi⟩).2.2 x] | |
| 102 | + change (-fderiv ℝ (L.maximalField ⟨t, hi⟩).field x | |
| 103 | + ((L.maximalField ⟨t, hi⟩).field x) - (L.maximalPressureField ⟨t, hi⟩).field x) + | |
| 104 | + fderiv ℝ (L.maximalField ⟨t, hi⟩).field x ((L.maximalField ⟨t, hi⟩).field x) = _ | |
| 105 | + abel | |
| 106 | + | |
| 107 | +theorem maximal_sobolev_existence_iff (T : ℝ) (hT : 0 < T) : | |
| 108 | + (∃ v p, EulerSobolevExistenceAndSmoothnessR3On (Icc 0 T) A.field v p) ↔ | |
| 109 | + T < L.duration := by | |
| 110 | + rw [exists_sobolevSolution_iff A T hT, L.hasScalarEulerEvolution_iff] | |
| 111 | + exact and_iff_right hT | |
| 112 | + | |
| 113 | +end Euler.ComparatorBridge | |
+46 −0 Euler/ComparatorSingularityNorms.lean added View file
| @@ -0,0 +1,46 @@ | ||
| 1 | +import Euler.SolutionDefinitions | |
| 2 | +import Euler.EulerSingularity | |
| 3 | + | |
| 4 | +/-! The extended spatial suprema in the independent challenge agree with the | |
| 5 | +ordinary development's bounded-function norms on every smooth Sobolev slice. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +open Set MeasureTheory EulerSmoothLimit EulerLpTranslation | |
| 10 | + EulerLpTranslation.SmoothL2Field EulerMeanSobolevBoundedField | |
| 11 | + EulerMeanBoundary EulerMeanCutoffCurl | |
| 12 | +open scoped ENNReal Topology ContDiff BoundedContinuousFunction | |
| 13 | + | |
| 14 | +namespace Euler.ComparatorBridge | |
| 15 | + | |
| 16 | +theorem vorticity_eq_vectorCurl (u : Space → Space) (hu : ContDiff ℝ ∞ u) : | |
| 17 | + Euler.vorticity u = vectorCurl u := by | |
| 18 | + funext x | |
| 19 | + exact (vectorCurl_eq_matrix u x (hu.differentiable (by simp) x)).symm | |
| 20 | + | |
| 21 | +theorem iSup_ofReal_norm_boundedContinuousFunction | |
| 22 | + {X V : Type*} [TopologicalSpace X] [NormedAddCommGroup V] | |
| 23 | + (f : X →ᵇ V) : | |
| 24 | + (⨆ x, ENNReal.ofReal ‖f x‖) = ENNReal.ofReal ‖f‖ := by | |
| 25 | + simpa only [ofReal_norm] using f.enorm_eq_iSup_enorm.symm | |
| 26 | + | |
| 27 | +theorem velocityC1Norm_eq (A : SmoothL2Field Space) : | |
| 28 | + Euler.velocityC1Norm A.field = | |
| 29 | + ENNReal.ofReal (‖finiteField A‖ + ‖finiteField A.derivative‖) := by | |
| 30 | + unfold Euler.velocityC1Norm | |
| 31 | + rw [ENNReal.ofReal_add (norm_nonneg _) (norm_nonneg _)] | |
| 32 | + congr 1 | |
| 33 | + · simpa only [finiteField_apply] using | |
| 34 | + iSup_ofReal_norm_boundedContinuousFunction (finiteField A) | |
| 35 | + · simpa only [finiteField_apply, SmoothL2Field.derivative] using | |
| 36 | + iSup_ofReal_norm_boundedContinuousFunction (finiteField A.derivative) | |
| 37 | + | |
| 38 | +theorem vorticityNorm_eq (A : SmoothL2Field Space) : | |
| 39 | + Euler.vorticityNorm A.field = ENNReal.ofReal (EulerOrdinarySobolev.vorticityNorm A) := by | |
| 40 | + unfold Euler.vorticityNorm EulerOrdinarySobolev.vorticityNorm | |
| 41 | + rw [vorticity_eq_vectorCurl A.field A.smooth] | |
| 42 | + simpa only [finiteField_apply, EulerOrdinarySobolev.vorticityField_apply] using | |
| 43 | + iSup_ofReal_norm_boundedContinuousFunction | |
| 44 | + (finiteField (EulerOrdinarySobolev.vorticityField A)) | |
| 45 | + | |
| 46 | +end Euler.ComparatorBridge | |
+161 −0 Euler/ComparatorSobolevEvolution.lean added View file
| @@ -0,0 +1,161 @@ | ||
| 1 | +import Euler.SolutionDefinitions | |
| 2 | +import Euler.EulerSingularity | |
| 3 | + | |
| 4 | +/-! Repackaging the reference's ordinary functions as the development's smooth | |
| 5 | +L² fields. The scalar Euler equations and time-regularity hypotheses coincide. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +open Set Filter MeasureTheory EulerSmoothLimit EulerLpTranslation | |
| 10 | + EulerLpTranslation.SmoothL2Field EulerOrdinarySobolev | |
| 11 | +open scoped Topology ContDiff | |
| 12 | + | |
| 13 | +namespace Euler.ComparatorBridge | |
| 14 | + | |
| 15 | +theorem toL2_field (A : SmoothL2Field Space) : Euler.toL2 A.field = A.toLp := by | |
| 16 | + simp only [Euler.toL2, dite_eq_left A.memLp, SmoothL2Field.toLp] | |
| 17 | + | |
| 18 | +theorem toL2_jet (A : SmoothL2Field Space) (n : ℕ) : | |
| 19 | + Euler.toL2 (iteratedFDeriv ℝ n A.field) = A.jetLp n := by | |
| 20 | + simp only [Euler.toL2, dite_eq_left (A.integrable n), SmoothL2Field.jetLp] | |
| 21 | + | |
| 22 | +theorem sobolevSmoothOn_of_path {I : Set ℝ} (A : I → SmoothL2Field Space) | |
| 23 | + (hA : ∀ n, Continuous (fun t => (A t).jetLp n)) | |
| 24 | + (v : Space → ℝ → Space) (hv : ∀ t : I, (v · (t : ℝ)) = (A t).field) : | |
| 25 | + Euler.SobolevSmoothOn I v := by | |
| 26 | + refine ⟨?_, ?_, ?_, ?_, ?_⟩ | |
| 27 | + · intro t ht | |
| 28 | + rw [hv ⟨t, ht⟩] | |
| 29 | + exact (A ⟨t, ht⟩).smooth | |
| 30 | + · intro t ht | |
| 31 | + rw [hv ⟨t, ht⟩] | |
| 32 | + exact (A ⟨t, ht⟩).memLp | |
| 33 | + · intro n t ht | |
| 34 | + rw [hv ⟨t, ht⟩] | |
| 35 | + exact (A ⟨t, ht⟩).integrable n | |
| 36 | + · apply continuousOn_iff_continuous_domRestrict.mpr | |
| 37 | + have he : (fun t : I => Euler.toL2 (v · (t : ℝ))) = fun t => (A t).toLp := by | |
| 38 | + funext t | |
| 39 | + rw [hv t, toL2_field] | |
| 40 | + change Continuous (fun t : I => Euler.toL2 (v · (t : ℝ))) | |
| 41 | + rw [he] | |
| 42 | + exact continuous_toLp A (hA 0) | |
| 43 | + · intro n | |
| 44 | + apply continuousOn_iff_continuous_domRestrict.mpr | |
| 45 | + have he : (fun t : I => Euler.toL2 (iteratedFDeriv ℝ n (v · (t : ℝ)))) = | |
| 46 | + fun t => (A t).jetLp n := by | |
| 47 | + funext t | |
| 48 | + rw [hv t, toL2_jet] | |
| 49 | + change Continuous (fun t : I => Euler.toL2 (iteratedFDeriv ℝ n (v · (t : ℝ)))) | |
| 50 | + rw [he] | |
| 51 | + exact hA n | |
| 52 | + | |
| 53 | +end Euler.ComparatorBridge | |
| 54 | + | |
| 55 | +namespace Euler.SobolevSmoothOn | |
| 56 | + | |
| 57 | +variable {I : Set ℝ} {v : Space → ℝ → Space} (h : SobolevSmoothOn I v) | |
| 58 | + | |
| 59 | +def field (t : I) : SmoothL2Field Space where | |
| 60 | + field := (v · (t : ℝ)) | |
| 61 | + smooth := h.spatial_smooth t t.property | |
| 62 | + integrable n := h.jets_integrable n t t.property | |
| 63 | + | |
| 64 | +theorem field_toLp (t : I) : (h.field t).toLp = Euler.toL2 (v · (t : ℝ)) := | |
| 65 | + (ComparatorBridge.toL2_field (h.field t)).symm | |
| 66 | + | |
| 67 | +theorem field_jetLp (t : I) (n : ℕ) : | |
| 68 | + (h.field t).jetLp n = Euler.toL2 (iteratedFDeriv ℝ n (v · (t : ℝ))) := | |
| 69 | + (ComparatorBridge.toL2_jet (h.field t) n).symm | |
| 70 | + | |
| 71 | +theorem field_continuous (n : ℕ) : Continuous (fun t => (h.field t).jetLp n) := by | |
| 72 | + simp only [h.field_jetLp] | |
| 73 | + exact (h.jets_continuous n).domRestrict | |
| 74 | + | |
| 75 | +end Euler.SobolevSmoothOn | |
| 76 | + | |
| 77 | +namespace Euler.ComparatorBridge | |
| 78 | + | |
| 79 | +theorem hasScalarEulerEvolution_of_sobolev | |
| 80 | + {A : SmoothL2Field Space} {T : ℝ} (hT : 0 < T) | |
| 81 | + {v : Space → ℝ → Space} {p : Space → ℝ → ℝ} | |
| 82 | + (h : EulerSobolevExistenceAndSmoothnessR3On (Icc 0 T) A.field v p) : | |
| 83 | + HasScalarEulerEvolution A T := by | |
| 84 | + obtain ⟨w, hw, hd, he⟩ := h.euler | |
| 85 | + refine ⟨hT, h.velocity_smooth.field, ?_, ?_⟩ | |
| 86 | + · refine ⟨h.velocity_smooth.field_continuous, hw.field, (fun t x => p x t), | |
| 87 | + hw.field_continuous, ?_, ?_, ?_, ?_⟩ | |
| 88 | + · intro t ht | |
| 89 | + rw [hw.field_toLp] | |
| 90 | + apply (hd t (by simpa only [interior_Icc] using ht)).congr_of_eventuallyEq | |
| 91 | + filter_upwards [Icc_mem_nhds ht.1 ht.2] with s hs | |
| 92 | + rw [projIcc_of_mem hT.le hs, h.velocity_smooth.field_toLp] | |
| 93 | + · intro t x | |
| 94 | + exact h.div_free x t t.property | |
| 95 | + · intro t ht | |
| 96 | + exact h.pressure_differentiable t (by simpa only [interior_Icc] using ht) | |
| 97 | + · intro t ht x | |
| 98 | + exact add_eq_zero_iff_eq_neg.mpr (he x t (by simpa only [interior_Icc] using ht)) | |
| 99 | + · apply field_ext | |
| 100 | + funext x | |
| 101 | + exact h.initial_condition x | |
| 102 | + | |
| 103 | +def evolutionVelocity {T : ℝ} {hT : 0 ≤ T} (U : Evolution T hT) | |
| 104 | + (x : Space) (t : ℝ) : Space := (U.velocity (projIcc 0 T hT t)).field x | |
| 105 | + | |
| 106 | +def evolutionPressure {T : ℝ} {hT : 0 ≤ T} (U : Evolution T hT) | |
| 107 | + (x : Space) (t : ℝ) : ℝ := U.scalarPressure (projIcc 0 T hT t) x | |
| 108 | + | |
| 109 | +theorem evolution_sobolevSolution {T : ℝ} {hT : 0 ≤ T} | |
| 110 | + (U : Evolution T hT) (A : SmoothL2Field Space) | |
| 111 | + (hinit : U.velocity ⟨0, le_rfl, hT⟩ = A) : | |
| 112 | + EulerSobolevExistenceAndSmoothnessR3On (Icc 0 T) A.field | |
| 113 | + (evolutionVelocity U) (evolutionPressure U) := by | |
| 114 | + have hv (t : Icc (0 : ℝ) T) : | |
| 115 | + (evolutionVelocity U · (t : ℝ)) = (U.velocity t).field := by | |
| 116 | + funext x | |
| 117 | + simp only [evolutionVelocity, projIcc_of_mem hT t.property] | |
| 118 | + let w : Space → ℝ → Space := fun x t => (U.derivative (projIcc 0 T hT t)).field x | |
| 119 | + have hw (t : Icc (0 : ℝ) T) : (w · (t : ℝ)) = (U.derivative t).field := by | |
| 120 | + funext x | |
| 121 | + simp only [w, projIcc_of_mem hT t.property] | |
| 122 | + refine ⟨?_, ?_, sobolevSmoothOn_of_path U.velocity U.velocity_continuous _ hv, ?_, | |
| 123 | + w, sobolevSmoothOn_of_path U.derivative U.derivative_continuous w hw, ?_, ?_⟩ | |
| 124 | + · intro x t ht | |
| 125 | + rw [hv ⟨t, ht⟩] | |
| 126 | + exact EulerMeanClassical.solenoidal_representative_divergence _ (U.solenoidal ⟨t, ht⟩) | |
| 127 | + _ (U.velocity ⟨t, ht⟩).smooth (U.velocity ⟨t, ht⟩).toLp_ae x | |
| 128 | + · intro x | |
| 129 | + change (U.velocity (projIcc 0 T hT 0)).field x = A.field x | |
| 130 | + rw [projIcc_of_mem hT ⟨le_rfl, hT⟩, hinit] | |
| 131 | + · intro t _ | |
| 132 | + exact (U.scalarPressure_spec (projIcc 0 T hT t)).1.differentiable (by simp) | |
| 133 | + · intro t ht | |
| 134 | + have hi : t ∈ Ioo 0 T := by simpa only [interior_Icc] using ht | |
| 135 | + have hd := (U.velocityPath_hasDerivWithinAt ⟨t, hi.1.le, hi.2.le⟩).hasDerivAt | |
| 136 | + (Icc_mem_nhds hi.1 hi.2) | |
| 137 | + rw [U.velocityPath_extend] at hd | |
| 138 | + simpa only [evolutionVelocity, w, toL2_field, projIcc_of_mem hT ⟨hi.1.le, hi.2.le⟩] | |
| 139 | + using hd | |
| 140 | + · intro x t ht | |
| 141 | + have hi : t ∈ Icc 0 T := interior_subset ht | |
| 142 | + rw [hv ⟨t, hi⟩] | |
| 143 | + change (U.derivative (projIcc 0 T hT t)).field x + _ = | |
| 144 | + -gradient (U.scalarPressure (projIcc 0 T hT t)) x | |
| 145 | + rw [projIcc_of_mem hT hi, (U.scalarPressure_spec ⟨t, hi⟩).2.2 x, | |
| 146 | + U.derivative_field] | |
| 147 | + dsimp only [evolutionVelocity] | |
| 148 | + rw [projIcc_of_mem hT hi] | |
| 149 | + abel | |
| 150 | + | |
| 151 | +theorem exists_sobolevSolution_iff (A : SmoothL2Field Space) (T : ℝ) (hT : 0 < T) : | |
| 152 | + (∃ v p, EulerSobolevExistenceAndSmoothnessR3On (Icc 0 T) A.field v p) ↔ | |
| 153 | + HasScalarEulerEvolution A T := by | |
| 154 | + constructor | |
| 155 | + · rintro ⟨v, p, h⟩ | |
| 156 | + exact hasScalarEulerEvolution_of_sobolev hT h | |
| 157 | + · intro h | |
| 158 | + obtain ⟨hpos, U, hinit⟩ := (EulerOrdinarySobolev.hasScalarEulerEvolution_iff A T).mp h | |
| 159 | + exact ⟨evolutionVelocity U, evolutionPressure U, evolution_sobolevSolution U A hinit⟩ | |
| 160 | + | |
| 161 | +end Euler.ComparatorBridge | |
+55 −0 Euler/ComparatorTimeShift.lean added View file
| @@ -0,0 +1,55 @@ | ||
| 1 | +import Euler.ClassicalBridge | |
| 2 | +import Mathlib.Analysis.Calculus.Deriv.Add | |
| 3 | + | |
| 4 | +/-! Time translation preserves the independent whole-space Euler class, | |
| 5 | +including its one-sided initial-time equation and uniform energy bound. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | + | |
| 10 | +open Set MeasureTheory | |
| 11 | +open scoped ContDiff | |
| 12 | + | |
| 13 | +namespace Euler.EulerExistenceAndSmoothnessR3 | |
| 14 | + | |
| 15 | +local notation "ℝ³" => EuclideanSpace ℝ (Fin 3) | |
| 16 | + | |
| 17 | +variable {u₀ : ℝ³ → ℝ³} {v : ℝ³ → ℝ → ℝ³} {p : ℝ³ → ℝ → ℝ} | |
| 18 | + | |
| 19 | +theorem shiftTime (h : EulerExistenceAndSmoothnessR3 u₀ v p) | |
| 20 | + (a : ℝ) (ha : 0 ≤ a) : | |
| 21 | + EulerExistenceAndSmoothnessR3 (v · a) | |
| 22 | + (fun x t => v x (a + t)) (fun x t => p x (a + t)) := by | |
| 23 | + have hv (x : ℝ³) : ContDiffOn ℝ ∞ (v x ·) (Ici 0) := | |
| 24 | + h.velocity_smooth.comp (contDiff_const.prodMk contDiff_id).contDiffOn | |
| 25 | + (fun r hr => ⟨mem_univ x, hr⟩) | |
| 26 | + refine { | |
| 27 | + euler := ?_ | |
| 28 | + div_free := fun x t ht => h.div_free x (a + t) (add_nonneg ha ht) | |
| 29 | + initial_condition := fun x => by simp | |
| 30 | + velocity_smooth := ?_ | |
| 31 | + pressure_smooth := ?_ | |
| 32 | + integrable := fun t ht => h.integrable (a + t) (add_nonneg ha ht) | |
| 33 | + globally_bounded_energy := ?_ } | |
| 34 | + · intro x t ht | |
| 35 | + have hd := ((hv x).differentiableOn (by simp) (a + t) | |
| 36 | + (add_nonneg ha ht)).hasDerivWithinAt | |
| 37 | + have hi : HasDerivWithinAt (fun r : ℝ => a + r) 1 (Ici 0) t := by | |
| 38 | + simpa only [zero_add, id_eq] using ((hasDerivAt_id t).const_add a).hasDerivWithinAt | |
| 39 | + have hc := hd.scomp t hi (fun r hr => add_nonneg ha hr) | |
| 40 | + have he : derivWithin (fun r => v x (a + r)) (Ici 0) t = | |
| 41 | + derivWithin (v x ·) (Ici 0) (a + t) := by | |
| 42 | + simpa only [Function.comp_def, one_smul] using | |
| 43 | + hc.derivWithin (uniqueDiffOn_Ici 0 t ht) | |
| 44 | + rw [he] | |
| 45 | + exact h.euler x (a + t) (add_nonneg ha ht) | |
| 46 | + · exact h.velocity_smooth.comp | |
| 47 | + (contDiff_fst.prodMk (contDiff_const.add contDiff_snd)).contDiffOn | |
| 48 | + (fun z hz => ⟨mem_univ z.1, add_nonneg ha hz.2⟩) | |
| 49 | + · exact h.pressure_smooth.comp | |
| 50 | + (contDiff_fst.prodMk (contDiff_const.add contDiff_snd)).contDiffOn | |
| 51 | + (fun z hz => ⟨mem_univ z.1, add_nonneg ha hz.2⟩) | |
| 52 | + · obtain ⟨E, hE⟩ := h.globally_bounded_energy | |
| 53 | + exact ⟨E, fun t ht => hE (a + t) (add_nonneg ha ht)⟩ | |
| 54 | + | |
| 55 | +end Euler.EulerExistenceAndSmoothnessR3 | |
+105 −0 Euler/ComparatorTruncationFamily.lean added View file
| @@ -0,0 +1,105 @@ | ||
| 1 | +import Euler.ClassicalBridge | |
| 2 | +import Euler.TruncationFamily | |
| 3 | +import Euler.TruncationFamilySmooth | |
| 4 | +import Euler.CompactSmoothTimeField | |
| 5 | + | |
| 6 | +/-! The actual radial-potential truncation of a Comparator Euler solution | |
| 7 | +forms a smooth bounded coefficient family with uniformly bounded energy. | |
| 8 | +No integrability of spatial derivatives of the original solution is needed. -/ | |
| 9 | + | |
| 10 | +noncomputable section | |
| 11 | + | |
| 12 | + | |
| 13 | +open Set MeasureTheory EulerSmoothLimit Euler.ComparatorBridge | |
| 14 | +open scoped ContDiff Topology | |
| 15 | + | |
| 16 | +namespace Euler.ComparatorBridge | |
| 17 | + | |
| 18 | +/-- Square-root reparametrization of the unit time interval. -/ | |
| 19 | +def unitSqrtTime : C(Icc (0 : ℝ) 1, Icc (0 : ℝ) 1) where | |
| 20 | + toFun t := ⟨Real.sqrt t, Real.sqrt_nonneg _, by | |
| 21 | + simpa only [Real.sqrt_one] using Real.sqrt_le_sqrt t.property.2⟩ | |
| 22 | + continuous_toFun := (Real.continuous_sqrt.comp continuous_subtype_val).subtype_mk _ | |
| 23 | + | |
| 24 | +@[simp] theorem unitSqrtTime_apply (t : Icc (0 : ℝ) 1) : | |
| 25 | + (unitSqrtTime t : ℝ) = Real.sqrt t := rfl | |
| 26 | + | |
| 27 | +end Euler.ComparatorBridge | |
| 28 | + | |
| 29 | +namespace Euler.EulerExistenceAndSmoothnessR3 | |
| 30 | + | |
| 31 | +variable {u₀ : Space → Space} {v : Space → ℝ → Space} {p : Space → ℝ → ℝ} | |
| 32 | + (h : EulerExistenceAndSmoothnessR3 u₀ v p) | |
| 33 | + | |
| 34 | +/-- The square-time parametrization is jointly smooth and uniformly supported, | |
| 35 | +so all its spatial jets form continuous bounded time paths. -/ | |
| 36 | +def finiteEnergyTruncationSquareTimeField (R : ℝ) (hR : 0 < R) : | |
| 37 | + SmoothTimeField (Icc (0 : ℝ) 1) Space Space := | |
| 38 | + SmoothTimeField.ofContDiffOnCompactSupport (Icc (0 : ℝ) 1) | |
| 39 | + (fun tx : ℝ × Space => finiteEnergyTruncation (fun y => v y (tx.1 ^ 2)) R tx.2) | |
| 40 | + ((potentialTruncation_square_family_smooth (Function.uncurry v) h.velocity_smooth | |
| 41 | + (truncationCutoff R) (truncationCutoff_smooth R)).comp | |
| 42 | + (contDiff_snd.prodMk contDiff_fst)).contDiffOn | |
| 43 | + (Metric.closedBall 0 (2 * R)) (isCompact_closedBall _ _) | |
| 44 | + (fun t _ht => finiteEnergyTruncation_support (fun y => v y (t ^ 2)) R hR) | |
| 45 | + | |
| 46 | +/-- Reparametrizing by square root recovers the exact physical-time | |
| 47 | +truncation, while retaining continuity of every bounded spatial jet. -/ | |
| 48 | +def finiteEnergyTruncationTimeField (R : ℝ) (hR : 0 < R) : | |
| 49 | + SmoothTimeField (Icc (0 : ℝ) 1) Space Space := | |
| 50 | + (h.finiteEnergyTruncationSquareTimeField R hR).reparametrize unitSqrtTime | |
| 51 | + | |
| 52 | +@[simp] theorem finiteEnergyTruncationTimeField_apply (R : ℝ) (hR : 0 < R) | |
| 53 | + (t : Icc (0 : ℝ) 1) (x : Space) : | |
| 54 | + (h.finiteEnergyTruncationTimeField R hR).field t x = | |
| 55 | + finiteEnergyTruncation (v · (t : ℝ)) R x := by | |
| 56 | + change finiteEnergyTruncation (fun y => v y ((Real.sqrt (t : ℝ)) ^ 2)) R x = _ | |
| 57 | + rw [Real.sq_sqrt t.property.1] | |
| 58 | + | |
| 59 | +theorem finiteEnergyTruncationTimeField_field (R : ℝ) (hR : 0 < R) | |
| 60 | + (t : Icc (0 : ℝ) 1) : | |
| 61 | + ((h.finiteEnergyTruncationTimeField R hR).field t : Space → Space) = | |
| 62 | + finiteEnergyTruncation (v · (t : ℝ)) R := by | |
| 63 | + funext x | |
| 64 | + exact h.finiteEnergyTruncationTimeField_apply R hR t x | |
| 65 | + | |
| 66 | +/-- Every actual Comparator solution supplies the truncation family used by | |
| 67 | +the finite-energy flow argument. The uniform energy is a fixed multiple of | |
| 68 | +the reference solution's energy bound. -/ | |
| 69 | +def finiteEnergyTruncationFamily : FiniteEnergyTruncationFamily v := by | |
| 70 | + classical | |
| 71 | + let coefficient : ℝ → SmoothTimeField (Icc (0 : ℝ) 1) Space Space := fun R => | |
| 72 | + if hR : 0 < R then h.finiteEnergyTruncationTimeField R hR | |
| 73 | + else h.finiteEnergyTruncationTimeField 1 (by norm_num) | |
| 74 | + have hc (R : ℝ) (hR : 0 < R) (t : Icc (0 : ℝ) 1) : | |
| 75 | + ((coefficient R).field t : Space → Space) = | |
| 76 | + finiteEnergyTruncation (v · (t : ℝ)) R := by | |
| 77 | + simp only [coefficient, dite_eq_left hR] | |
| 78 | + exact h.finiteEnergyTruncationTimeField_field R hR t | |
| 79 | + refine | |
| 80 | + { coefficient := coefficient | |
| 81 | + energy := truncationEnergyConstant * h.globally_bounded_energy.choose | |
| 82 | + divergence := ?_ | |
| 83 | + memLp := ?_ | |
| 84 | + energy_bound := ?_ | |
| 85 | + agrees := ?_ } | |
| 86 | + · intro R hR t x | |
| 87 | + rw [hc R hR t] | |
| 88 | + exact finiteEnergyTruncation_divergence _ (h.velocity_contDiff t t.property.1) R x | |
| 89 | + · intro R hR t | |
| 90 | + rw [hc R hR t] | |
| 91 | + exact (finiteEnergyTruncation_energy_bound _ (h.velocity_contDiff t t.property.1) | |
| 92 | + (fun x => h.div_free x t t.property.1) (h.velocity_memLp t t.property.1) R hR).1 | |
| 93 | + · intro R hR t | |
| 94 | + rw [hc R hR t] | |
| 95 | + exact (finiteEnergyTruncation_energy_bound _ (h.velocity_contDiff t t.property.1) | |
| 96 | + (fun x => h.div_free x t t.property.1) (h.velocity_memLp t t.property.1) R hR).2.trans | |
| 97 | + (mul_le_mul_of_nonneg_left | |
| 98 | + (h.globally_bounded_energy.choose_spec t t.property.1).le | |
| 99 | + truncationEnergyConstant_nonneg) | |
| 100 | + · intro R hR t x hx | |
| 101 | + rw [hc R hR t] | |
| 102 | + exact finiteEnergyTruncation_eq _ (h.velocity_contDiff t t.property.1) | |
| 103 | + (fun x => h.div_free x t t.property.1) R hR x hx | |
| 104 | + | |
| 105 | +end Euler.EulerExistenceAndSmoothnessR3 | |
+96 −0 Euler/ComparatorUniformSpatialJets.lean added View file
| @@ -0,0 +1,96 @@ | ||
| 1 | +import Euler.CompactSpatialJets | |
| 2 | +import Euler.ScalarEulerVorticity | |
| 3 | + | |
| 4 | +/-! Uniform spatial derivative energies for a Comparator solution whose | |
| 5 | +vorticity stays in one compact set on a finite time interval. Ordinary joint | |
| 6 | +smoothness supplies the compact source bounds, and elliptic recovery supplies | |
| 7 | +the velocity derivative bounds. -/ | |
| 8 | + | |
| 9 | +noncomputable section | |
| 10 | + | |
| 11 | + | |
| 12 | +open Set MeasureTheory InnerProductSpace Laplacian EulerSmoothLimit EulerVectorCalculus | |
| 13 | + EulerMeanHarmonic EulerMeanVectorIdentities EulerMeanCutoffCurl EulerComparatorRecovery | |
| 14 | +open scoped ContDiff Topology | |
| 15 | + | |
| 16 | +namespace Euler.EulerExistenceAndSmoothnessR3 | |
| 17 | + | |
| 18 | +variable {u₀ : Space → Space} {v : Space → ℝ → Space} {p : Space → ℝ → ℝ} | |
| 19 | + (h : EulerExistenceAndSmoothnessR3 u₀ v p) | |
| 20 | + | |
| 21 | +include h | |
| 22 | + | |
| 23 | +/-- The literal Laplacian of the velocity is the negative curl of its | |
| 24 | +vorticity, by solenoidality and the ordinary curl-curl identity. -/ | |
| 25 | +theorem velocity_laplacian_eq_neg_curl_curl (t : ℝ) (ht : 0 ≤ t) : | |
| 26 | + Δ (v · t) = -vectorCurl (vectorCurl (v · t)) := by | |
| 27 | + have hi := vectorCurl_vectorCurl (v · t) (h.velocity_contDiff t ht) | |
| 28 | + have hg : gradient (EulerSmoothLimit.divergence (v · t)) = 0 := by | |
| 29 | + rw [show EulerSmoothLimit.divergence (v · t) = (fun _ : Space => (0 : ℝ)) from | |
| 30 | + funext (fun x => h.div_free x t ht)] | |
| 31 | + funext x | |
| 32 | + exact gradient_fun_const x 0 | |
| 33 | + rw [hg, zero_sub] at hi | |
| 34 | + rw [hi, neg_neg] | |
| 35 | + | |
| 36 | +/-- Locality of curl places the Laplacian support inside the vorticity support. -/ | |
| 37 | +theorem velocity_laplacian_tsupport_subset (t : ℝ) (ht : 0 ≤ t) : | |
| 38 | + tsupport (Δ (v · t)) ⊆ tsupport (vectorCurl (v · t)) := by | |
| 39 | + rw [h.velocity_laplacian_eq_neg_curl_curl t ht, tsupport_neg] | |
| 40 | + exact vectorCurl_support _ | |
| 41 | + | |
| 42 | +/-- Every scalar component of the actual velocity Laplacian remains jointly | |
| 43 | +smooth through time zero. -/ | |
| 44 | +theorem velocity_laplacian_component_joint_contDiffOn (j : Fin 3) : | |
| 45 | + ContDiffOn ℝ ∞ (fun z : ℝ × Space => Δ (v · z.1) z.2 j) | |
| 46 | + (Ici 0 ×ˢ (univ : Set Space)) := by | |
| 47 | + have hs : ContDiffOn ℝ ∞ (fun z : ℝ × Space => v z.2 z.1 j) | |
| 48 | + (Ici 0 ×ˢ (univ : Set Space)) := | |
| 49 | + (EuclideanSpace.proj j : Space →L[ℝ] ℝ).contDiff.comp_contDiffOn h.velocity_joint_contDiffOn | |
| 50 | + apply (joint_scalar_laplacian_contDiffOn hs).congr | |
| 51 | + intro z hz | |
| 52 | + exact vector_laplacian_coordinate (v · z.1) (h.velocity_contDiff z.1 hz.1) z.2 j | |
| 53 | + | |
| 54 | +/-- Common compact support of vorticity and Comparator joint smoothness | |
| 55 | +uniformly control every scalar coordinate derivative of the Laplacian. -/ | |
| 56 | +theorem laplacian_component_word_energy_uniform_of_commonCompactCurl | |
| 57 | + (T : ℝ) (K : Set Space) (hK : IsCompact K) | |
| 58 | + (hsupport : ∀ t ∈ Icc (0 : ℝ) T, tsupport (vectorCurl (v · t)) ⊆ K) | |
| 59 | + (j : Fin 3) (word : List (Fin 3)) : | |
| 60 | + ∃ B : ℝ, ∀ t ∈ Icc (0 : ℝ) T, | |
| 61 | + (∫ x, wordDerivative word (fun y => Δ (v · t) y j) x ^ 2) ≤ B := by | |
| 62 | + apply wordDerivative_energy_uniform_of_compact_support | |
| 63 | + (fun z : ℝ × Space => Δ (v · z.1) z.2 j) T K hK | |
| 64 | + · exact (h.velocity_laplacian_component_joint_contDiffOn j).mono | |
| 65 | + (by intro z hz; exact ⟨hz.1.1, hz.2⟩) | |
| 66 | + · intro t ht | |
| 67 | + exact (tsupport_comp_subset (g := fun q : Space => q j) rfl (Δ (v · t))).trans | |
| 68 | + ((h.velocity_laplacian_tsupport_subset t ht.1).trans (hsupport t ht)) | |
| 69 | + | |
| 70 | +/-- A Comparator solution with common compact vorticity support has uniform | |
| 71 | +energies for all genuine scalar coordinate derivatives of its velocity. -/ | |
| 72 | +theorem component_word_energy_uniform_of_commonCompactCurl | |
| 73 | + (T : ℝ) (K : Set Space) (hK : IsCompact K) | |
| 74 | + (hsupport : ∀ t ∈ Icc (0 : ℝ) T, tsupport (vectorCurl (v · t)) ⊆ K) | |
| 75 | + (j : Fin 3) (word : List (Fin 3)) : | |
| 76 | + ∃ B : ℝ, ∀ t ∈ Icc (0 : ℝ) T, | |
| 77 | + (∫ x, wordDerivative word (fun y => v y t j) x ^ 2) ≤ B := by | |
| 78 | + let u (t : Icc (0 : ℝ) T) : Space → Space := fun x => v x (t : ℝ) | |
| 79 | + have hsource (a : Fin 3) (w : List (Fin 3)) : ∃ B : ℝ, | |
| 80 | + ∀ t : Icc (0 : ℝ) T, | |
| 81 | + (∫ x, wordDerivative w (fun y => Δ (u t) y a) x ^ 2) ≤ B := by | |
| 82 | + obtain ⟨B, hB⟩ := h.laplacian_component_word_energy_uniform_of_commonCompactCurl | |
| 83 | + T K hK hsupport a w | |
| 84 | + exact ⟨B, fun t => hB t t.property⟩ | |
| 85 | + have henergy : ∃ B : ℝ, ∀ t : Icc (0 : ℝ) T, (∫ x, ‖u t x‖ ^ 2) ≤ B := by | |
| 86 | + obtain ⟨B, hB⟩ := h.globally_bounded_energy | |
| 87 | + exact ⟨B, fun t => (hB t t.property.1).le⟩ | |
| 88 | + obtain ⟨B, hB⟩ := component_wordDerivative_energy_uniform u | |
| 89 | + (fun t => h.velocity_contDiff t t.property.1) | |
| 90 | + (fun t => h.velocity_memLp t t.property.1) | |
| 91 | + (fun t x => h.div_free x t t.property.1) | |
| 92 | + (fun t => hK.of_isClosed_subset (isClosed_tsupport _) (hsupport t t.property)) | |
| 93 | + henergy hsource j word | |
| 94 | + exact ⟨B, fun t ht => hB ⟨t, ht⟩⟩ | |
| 95 | + | |
| 96 | +end Euler.EulerExistenceAndSmoothnessR3 | |
+169 −0 Euler/ConstantCorrectionData.lean added View file
| @@ -0,0 +1,169 @@ | ||
| 1 | +import Euler.AllOrderDriftBudget | |
| 2 | +import Euler.GevreyUniformConstants | |
| 3 | + | |
| 4 | +/-! Actual constant coefficient towers for the ordinary Euler correction | |
| 5 | +equation: identity pressure metric, zero lower-order coefficients, spatial | |
| 6 | +scale one and angular direction zero. No solution is included in the data. -/ | |
| 7 | + | |
| 8 | +noncomputable section | |
| 9 | + | |
| 10 | +namespace EulerConstantCorrection | |
| 11 | + | |
| 12 | +open Set MeasureTheory InnerProductSpace ContinuousLinearMap EulerSmoothLimit | |
| 13 | + EulerLiftedGradientSpace EulerSpatialSobolevInverse EulerCylinderSobolev | |
| 14 | + EulerAllOrderCorrectionData EulerCorrectionEnergyData EulerJetProductBounds | |
| 15 | + EulerH6Pressure EulerSobolevGevreyOperators EulerMetricTransport | |
| 16 | + EulerTransportDerivatives EulerGevreyUniformConstants EulerEnergyMetricPaths | |
| 17 | + EulerVolterraConvolution | |
| 18 | +open scoped ContDiff | |
| 19 | + | |
| 20 | +variable (P : ℝ) [Fact (0 < P)] | |
| 21 | + | |
| 22 | +private local instance : NormedAddCommGroup (Space →L[ℝ] Space) := inferInstance | |
| 23 | +private local instance : NormedSpace ℝ (Space →L[ℝ] Space) := inferInstance | |
| 24 | +private local instance : NormedAddCommGroup (LiftTangent →L[ℝ] Space →L[ℝ] Space) := inferInstance | |
| 25 | +private local instance : NormedSpace ℝ (LiftTangent →L[ℝ] Space →L[ℝ] Space) := inferInstance | |
| 26 | +private local instance : NormedAddCommGroup (LiftTangent →L[ℝ] LiftTangent →L[ℝ] Space →L[ℝ] Space) := inferInstance | |
| 27 | +private local instance : NormedSpace ℝ (LiftTangent →L[ℝ] LiftTangent →L[ℝ] Space →L[ℝ] Space) := inferInstance | |
| 28 | + | |
| 29 | +def coefficient (A : Space →L[ℝ] Space) : SmoothCoefficient P where | |
| 30 | + coefficient _ := A | |
| 31 | + smooth _ := contDiff_const | |
| 32 | + bound := ‖A‖₊ | |
| 33 | + norm_bound _ := le_rfl | |
| 34 | + firstBound := 0 | |
| 35 | + norm_first _ := by | |
| 36 | + change ‖fderiv ℝ (fun _ : LiftTangent => A) 0‖ ≤ 0 | |
| 37 | + simp only [fderiv_const_apply,norm_zero,le_refl] | |
| 38 | + secondBound := 0 | |
| 39 | + norm_second _ y := by | |
| 40 | + change ‖fderiv ℝ (fderiv ℝ (fun _ : LiftTangent => A)) y‖ ≤ 0 | |
| 41 | + simp only [fderiv_fun_const,fderiv_zero,Pi.zero_apply,norm_zero,le_refl] | |
| 42 | + | |
| 43 | +def jet (A : Space →L[ℝ] Space) : | |
| 44 | + (q : ℕ) → EulerSpatialSobolevInverse.CoefficientJet P standardDirection q (coefficient P A) | |
| 45 | + | 0 => .zero _ | |
| 46 | + | q+1 => .succ (fun _ => coefficient P 0) (fun _ => jet 0 q) | |
| 47 | + (fun i _ => by | |
| 48 | + change (0 : Space →L[ℝ] Space)=(fderiv ℝ (fun _ : LiftTangent => A) 0) (standardDirection i) | |
| 49 | + simp) | |
| 50 | + | |
| 51 | +omit [Fact (0 < P)] in | |
| 52 | +theorem jet_boundLevel (A : Space →L[ℝ] Space) (q r : ℕ) : | |
| 53 | + boundLevel P (jet P A q) r = if r=0 then ‖A‖ else 0 := by | |
| 54 | + induction q generalizing A r with | |
| 55 | + | zero => cases r <;> simp [jet,boundLevel,coefficient] | |
| 56 | + | succ q ih => | |
| 57 | + cases r with | |
| 58 | + | zero => simp [jet, boundLevel, coefficient] | |
| 59 | + | succ r => | |
| 60 | + simp only [jet] | |
| 61 | + rw [boundLevel] | |
| 62 | + simp [ih] | |
| 63 | + | |
| 64 | +omit [Fact (0 < P)] in | |
| 65 | +theorem jet_zero_coefficientBlock (q b n : ℕ) : | |
| 66 | + coefficientBlock P (jet P (0 : Space →L[ℝ] Space) q) b n=0 := by | |
| 67 | + simp only [coefficientBlock,jet_boundLevel,norm_zero,ite_self,Finset.sum_const_zero,mul_zero] | |
| 68 | + | |
| 69 | +omit [Fact (0 < P)] in | |
| 70 | +theorem jet_positive_coefficientBlock (A : Space →L[ℝ] Space) (q b n : ℕ) (hn : 0 < n) : | |
| 71 | + coefficientBlock P (jet P A q) b n=0 := by | |
| 72 | + unfold coefficientBlock | |
| 73 | + have hz (r : ℕ) : boundLevel P (jet P A q) (n+r)=0 := by | |
| 74 | + rw [jet_boundLevel,ite_eq_right (by omega)] | |
| 75 | + simp only [hz,Finset.sum_const_zero,mul_zero] | |
| 76 | + | |
| 77 | +omit [Fact (0 < P)] in | |
| 78 | +theorem jet_zero_weightedCoefficient (q b N : ℕ) (ρ : ℝ) : | |
| 79 | + weightedCoefficient P (jet P (0 : Space →L[ℝ] Space) q) b N ρ=0 := by | |
| 80 | + simp only [weightedCoefficient,jet_zero_coefficientBlock,mul_zero,Finset.sum_const_zero] | |
| 81 | + | |
| 82 | +theorem coefficient_operator_id : | |
| 83 | + (coefficient P (ContinuousLinearMap.id ℝ Space)).operator=ContinuousLinearMap.id ℝ (LiftL2 P) := by | |
| 84 | + apply ContinuousLinearMap.ext | |
| 85 | + intro u | |
| 86 | + apply Lp.ext | |
| 87 | + filter_upwards [(coefficient P (ContinuousLinearMap.id ℝ Space)).operator_ae u] with x hx | |
| 88 | + exact hx | |
| 89 | + | |
| 90 | +theorem coefficient_operator_zero : | |
| 91 | + (coefficient P (0 : Space →L[ℝ] Space)).operator=0 := by | |
| 92 | + apply ContinuousLinearMap.ext | |
| 93 | + intro u | |
| 94 | + apply Lp.ext | |
| 95 | + filter_upwards [(coefficient P (0 : Space →L[ℝ] Space)).operator_ae u, | |
| 96 | + Lp.coeFn_zero Space 2 (liftMeasure P)] with x hx hz | |
| 97 | + exact hx.trans hz.symm | |
| 98 | + | |
| 99 | +def tower (T : ℝ) (A : Space →L[ℝ] Space) : CoefficientTower P T where | |
| 100 | + coefficient _ := coefficient P A | |
| 101 | + jet q _ := jet P A q | |
| 102 | + continuous _ := continuous_const | |
| 103 | + | |
| 104 | +def data {T : ℝ} (F R : FieldTower P T) : EulerAllOrderCorrectionData.Data P T where | |
| 105 | + κ := 1 | |
| 106 | + direction := 0 | |
| 107 | + scale_bound := by norm_num | |
| 108 | + direction_bound := by simp only [norm_zero,zero_le_one] | |
| 109 | + metric := tower P T (ContinuousLinearMap.id ℝ Space) | |
| 110 | + metric_continuous := by | |
| 111 | + change Continuous (fun _ : Icc (0 : ℝ) T => (coefficient P (ContinuousLinearMap.id ℝ Space)).operator) | |
| 112 | + exact continuous_const | |
| 113 | + coercivity := 1 | |
| 114 | + coercivity_pos := zero_lt_one | |
| 115 | + metric_pos _ _ v := by | |
| 116 | + change 1*‖v‖^2 ≤ ⟪v,v⟫_ℝ | |
| 117 | + simp only [one_mul,real_inner_self_eq_norm_sq,le_refl] | |
| 118 | + linear := tower P T 0 | |
| 119 | + quadratic _ := tower P T 0 | |
| 120 | + approximation := F | |
| 121 | + residual := R | |
| 122 | + | |
| 123 | +def metricBudget {T : ℝ} (hT : 0 ≤ T) (F R : FieldTower P T) : | |
| 124 | + MetricBudget P T hT ((data P F R).atOrder P 1) where | |
| 125 | + metric _ := coefficient P (ContinuousLinearMap.id ℝ Space) | |
| 126 | + continuous := continuous_const | |
| 127 | + derivative := 0 | |
| 128 | + hasDeriv t _ := by | |
| 129 | + change HasDerivAt (fun _ => (coefficient P (ContinuousLinearMap.id ℝ Space)).operator) 0 t | |
| 130 | + exact hasDerivAt_const t _ | |
| 131 | + c := 1 | |
| 132 | + c_pos := zero_lt_one | |
| 133 | + symmetric _ _ _ _ := rfl | |
| 134 | + coercive _ _ v := by simp only [coefficient,id_apply,one_pow,one_mul,real_inner_self_eq_norm_sq,le_refl] | |
| 135 | + inverse _ _ v := by change v=v; rfl | |
| 136 | + bound := 1 | |
| 137 | + first := 0 | |
| 138 | + time := 0 | |
| 139 | + bound_nonneg := zero_le_one | |
| 140 | + first_nonneg := le_rfl | |
| 141 | + time_nonneg := le_rfl | |
| 142 | + bound_le _ := by simp only [coefficient,coe_nnnorm]; exact norm_id_le | |
| 143 | + first_le _ := le_rfl | |
| 144 | + time_le _ := by simp only [ContinuousMap.zero_apply,norm_zero,le_refl] | |
| 145 | + | |
| 146 | +def pressureBound : ℝ := 9^729 | |
| 147 | + | |
| 148 | +theorem pressureBound_one_le : 1 ≤ pressureBound := | |
| 149 | + one_le_pow₀ (by norm_num : (1 : ℝ) ≤ 9) | |
| 150 | + | |
| 151 | +omit [Fact (0 < P)] in | |
| 152 | +theorem identity_base (q r : ℕ) : | |
| 153 | + boundLevel P (jet P (ContinuousLinearMap.id ℝ Space) q) r ≤ 1 := by | |
| 154 | + rw [jet_boundLevel] | |
| 155 | + split_ifs | |
| 156 | + · exact norm_id_le | |
| 157 | + · exact zero_le_one | |
| 158 | + | |
| 159 | +omit [Fact (0 < P)] in | |
| 160 | +theorem identity_pressure (q : ℕ) (hq : 6 ≤ q) : | |
| 161 | + (EulerH6Pressure.CoefficientJet.restrict (jet P (ContinuousLinearMap.id ℝ Space) q) | |
| 162 | + 5 (by omega)).pressureConstant 1 ≤ pressureBound ∧ | |
| 163 | + (EulerH6Pressure.CoefficientJet.restrict (jet P (ContinuousLinearMap.id ℝ Space) q) | |
| 164 | + 6 hq).pressureConstant 1 ≤ pressureBound := by | |
| 165 | + simpa only [mul_one,pressureBound] using fixed_pressure_constants P hq | |
| 166 | + (jet P (ContinuousLinearMap.id ℝ Space) q) 1 1 zero_lt_one le_rfl (by norm_num) | |
| 167 | + (fun r _ => identity_base P q r) | |
| 168 | + | |
| 169 | +end EulerConstantCorrection | |
+133 −0 Euler/ConstantEulerGraph.lean added View file
| @@ -0,0 +1,133 @@ | ||
| 1 | +import Euler.ConstantCorrectionData | |
| 2 | +import Euler.ExactLiftedGraphPressure | |
| 3 | +import Euler.FieldTowerPhysicalContinuity | |
| 4 | +import Euler.LpSmoothField | |
| 5 | + | |
| 6 | +/-! With spatial scale one and angular direction zero, the zero-angle | |
| 7 | +slice of the actual exact lifted solution solves ordinary three-dimensional | |
| 8 | +Euler. The scalar pressure is the canonical normalized graph potential. -/ | |
| 9 | + | |
| 10 | +noncomputable section | |
| 11 | + | |
| 12 | +namespace EulerConstantEuler | |
| 13 | + | |
| 14 | +open Set MeasureTheory InnerProductSpace ContinuousLinearMap EulerSmoothLimit | |
| 15 | + EulerLiftedGradientSpace EulerAllOrderCorrectionData EulerAllOrderDriftCorrection | |
| 16 | + EulerConstantCorrection EulerMetricTransport EulerGraphPressurePotential | |
| 17 | + EulerVolterraConvolution EulerLagrangian EulerLpTranslation | |
| 18 | +open scoped ContDiff | |
| 19 | + | |
| 20 | +private local instance : NormedAddCommGroup Space := inferInstance | |
| 21 | +private local instance : NormedSpace ℝ Space := inferInstance | |
| 22 | +private local instance : NormedAddCommGroup LiftTangent := inferInstance | |
| 23 | +private local instance : NormedSpace ℝ LiftTangent := inferInstance | |
| 24 | + | |
| 25 | +def inclusion : (ℝ × Space) →L[ℝ] (ℝ × LiftTangent) := | |
| 26 | + (ContinuousLinearMap.id ℝ ℝ).prodMap (ContinuousLinearMap.inl ℝ Space ℝ) | |
| 27 | + | |
| 28 | +@[simp] theorem inclusion_apply (t : ℝ) (x : Space) : inclusion (t,x)=(t,(x,0)) := rfl | |
| 29 | + | |
| 30 | +variable {P T : ℝ} [Fact (0 < P)] {hT : 0 < T} {F R : FieldTower P T} | |
| 31 | + {B : Budget P hT (data P F R)} (S : ExactLiftedPacket P hT (data P F R) B) | |
| 32 | + | |
| 33 | +def velocity (q : ℝ × Space) : Space := S.rawVelocity (q.1,(q.2,0)) | |
| 34 | +def pressure (q : ℝ × Space) : ℝ := S.rawGraphPotential 1 q | |
| 35 | +def force (q : ℝ × Space) : Space := S.rawPressure (q.1,(q.2,0)) | |
| 36 | + | |
| 37 | +theorem velocity_hasFDerivAt (t : ℝ) (ht : t ∈ Ioo 0 T) (x : Space) : | |
| 38 | + HasFDerivAt (velocity S) | |
| 39 | + ((fderiv ℝ S.rawVelocity (t,(x,0))).comp inclusion) (t,x) := by | |
| 40 | + have hu := (S.rawVelocity_hasFDerivAt t ht (x,0)).differentiableAt.hasFDerivAt | |
| 41 | + have hi : HasFDerivAt (inclusion : ℝ × Space → ℝ × LiftTangent) inclusion (t,x) := | |
| 42 | + inclusion.hasFDerivAt | |
| 43 | + exact hu.comp (t,x) hi | |
| 44 | + | |
| 45 | +theorem velocity_joint_continuous : Continuous (velocity S) := by | |
| 46 | + have hc : Continuous (projIcc 0 T hT.le) := continuous_projIcc | |
| 47 | + change Continuous (fun q : ℝ × Space => S.velocity.pointField | |
| 48 | + (projIcc 0 T hT.le q.1) (coveringMap P (q.2,0))) | |
| 49 | + exact S.velocity.pointField_joint_continuous.comp | |
| 50 | + ((hc.comp continuous_fst).prodMk | |
| 51 | + ((EulerLiftedGradientSpace.coveringMap_isOpenQuotient P).continuous.comp | |
| 52 | + (continuous_snd.prodMk continuous_const))) | |
| 53 | + | |
| 54 | +theorem force_joint_continuous : Continuous (force S) := by | |
| 55 | + have hc : Continuous (projIcc 0 T hT.le) := continuous_projIcc | |
| 56 | + change Continuous (fun q : ℝ × Space => S.pressure.pointField | |
| 57 | + (projIcc 0 T hT.le q.1) (coveringMap P (q.2,0))) | |
| 58 | + exact S.pressure.pointField_joint_continuous.comp | |
| 59 | + ((hc.comp continuous_fst).prodMk | |
| 60 | + ((EulerLiftedGradientSpace.coveringMap_isOpenQuotient P).continuous.comp | |
| 61 | + (continuous_snd.prodMk continuous_const))) | |
| 62 | + | |
| 63 | +theorem pressure_joint_continuous : Continuous (pressure S) := by | |
| 64 | + have hc : Continuous (projIcc 0 T hT.le) := continuous_projIcc | |
| 65 | + change Continuous (fun q : ℝ × Space => S.graphPotential 1 (projIcc 0 T hT.le q.1) q.2) | |
| 66 | + have hi : Continuous (fun q : ℝ × Space => (projIcc 0 T hT.le q.1,q.2)) := | |
| 67 | + (hc.comp continuous_fst).prodMk continuous_snd | |
| 68 | + have hh := (S.graphPotential_joint_continuous 1).comp hi | |
| 69 | + exact hh | |
| 70 | + | |
| 71 | +theorem pressure_smooth (t : ℝ) : ContDiff ℝ ∞ (fun x => pressure S (t,x)) := | |
| 72 | + S.rawGraphPotential_smooth 1 (by norm_num [data]) t | |
| 73 | + | |
| 74 | +theorem pressure_gradient (t : ℝ) (x : Space) : | |
| 75 | + _root_.gradient (fun y => pressure S (t,y)) x=force S (t,x) := by | |
| 76 | + have h := S.rawGraphPotential_gradient 1 (by norm_num [data]) t x | |
| 77 | + simpa only [data,pressure,force,one_smul,inner_zero_left,mul_zero] using h | |
| 78 | + | |
| 79 | +theorem pressure_zero (t : ℝ) : pressure S (t,0)=0 := | |
| 80 | + S.graphPotential_zero 1 (projIcc 0 T hT.le t) | |
| 81 | + | |
| 82 | +theorem velocity_divergence (t : ℝ) (x : Space) : | |
| 83 | + divergence (fun y => velocity S (t,y)) x=0 := by | |
| 84 | + rw [divergence_eq_coordinate_sum] | |
| 85 | + have h := S.graphVelocity_divergence 1 (by norm_num [data]) (projIcc 0 T hT.le t) x | |
| 86 | + simpa only [velocity,ExactLiftedPacket.rawVelocity,FieldTower.rawField, | |
| 87 | + cylinderGraph,coveringMap,data,inner_zero_left,mul_zero] using h | |
| 88 | + | |
| 89 | +theorem momentum (t : ℝ) (ht : t ∈ Ioo 0 T) (x : Space) : | |
| 90 | + momentumResidual (velocity S) (pressure S) (t,x)=0 := by | |
| 91 | + unfold momentumResidual | |
| 92 | + rw [(velocity_hasFDerivAt S t ht x).fderiv,comp_apply,inclusion_apply,pressure_gradient] | |
| 93 | + have h := S.raw_normalized_equation t ht (x,0) | |
| 94 | + simp only [data,tower,coefficient,zero_apply,smul_zero,Finset.sum_const_zero, | |
| 95 | + add_zero,transportDirection,one_smul,inner_zero_left,id_apply] at h | |
| 96 | + have hd : (1,(velocity S (t,x),0)) = | |
| 97 | + ((1,0) : ℝ × LiftTangent)+(0,(velocity S (t,x),0)) := by simp | |
| 98 | + rw [hd,map_add] | |
| 99 | + exact h | |
| 100 | + | |
| 101 | +def field (t : Icc (0 : ℝ) T) : SmoothL2Field Space where | |
| 102 | + field := S.velocity.physicalPointField 1 0 t | |
| 103 | + smooth := S.velocity.physicalPointField_smooth 1 0 t | |
| 104 | + integrable n := S.velocity.physicalTensor_memLp 1 0 n t | |
| 105 | + | |
| 106 | +theorem field_apply (t : Icc (0 : ℝ) T) (x : Space) : | |
| 107 | + (field S t).field x=velocity S (t,x) := by | |
| 108 | + simp only [field,FieldTower.physicalPointField,EulerCylinderPhysicalTensor.physicalField, | |
| 109 | + velocity,ExactLiftedPacket.rawVelocity,FieldTower.rawField,cylinderGraph, | |
| 110 | + coveringMap,projIcc_of_mem hT.le t.property,inner_zero_left,mul_zero] | |
| 111 | + | |
| 112 | +theorem field_jetLp (n : ℕ) (t : Icc (0 : ℝ) T) : | |
| 113 | + (field S t).jetLp n=S.velocity.physicalTensorPath 1 0 n t := by | |
| 114 | + apply Lp.ext | |
| 115 | + exact (SmoothL2Field.jetLp_ae _ n).trans (S.velocity.physicalTensorPath_ae 1 0 n t).symm | |
| 116 | + | |
| 117 | +theorem field_jetLp_continuous (n : ℕ) : Continuous (fun t => (field S t).jetLp n) := by | |
| 118 | + simp only [field_jetLp] | |
| 119 | + exact (S.velocity.physicalTensorPath 1 0 n).continuous | |
| 120 | + | |
| 121 | +theorem velocity_smooth (t : ℝ) : ContDiff ℝ ∞ (fun x => velocity S (t,x)) := by | |
| 122 | + have h := S.velocity.physicalPointField_smooth 1 0 (projIcc 0 T hT.le t) | |
| 123 | + change ContDiff ℝ ∞ (fun x => S.velocity.pointField (projIcc 0 T hT.le t) (cylinderGraph P 1 0 x)) at h | |
| 124 | + simpa only [cylinderGraph,inner_zero_left,mul_zero,velocity,ExactLiftedPacket.rawVelocity, | |
| 125 | + FieldTower.rawField,coveringMap] using h | |
| 126 | + | |
| 127 | +theorem force_smooth (t : ℝ) : ContDiff ℝ ∞ (fun x => force S (t,x)) := by | |
| 128 | + have h := S.pressure.physicalPointField_smooth 1 0 (projIcc 0 T hT.le t) | |
| 129 | + change ContDiff ℝ ∞ (fun x => S.pressure.pointField (projIcc 0 T hT.le t) (cylinderGraph P 1 0 x)) at h | |
| 130 | + simpa only [cylinderGraph,inner_zero_left,mul_zero,force,ExactLiftedPacket.rawPressure, | |
| 131 | + FieldTower.rawField,coveringMap] using h | |
| 132 | + | |
| 133 | +end EulerConstantEuler | |
+68 −0 Euler/ContinuousAccelerationForcing.lean added View file
| @@ -0,0 +1,68 @@ | ||
| 1 | +import Euler.ContinuousPathComposition | |
| 2 | + | |
| 3 | +/-! | |
| 4 | +# Actual continuous-time acceleration forcing | |
| 5 | + | |
| 6 | +The expression `Q*(f-2 Q₁v)` is a genuine continuous path. Its smoothness and | |
| 7 | +factorial bound are proved in the uniform time norm and are shared by the | |
| 8 | +mean and transverse strong equations. | |
| 9 | +-/ | |
| 10 | + | |
| 11 | +noncomputable section | |
| 12 | + | |
| 13 | + | |
| 14 | +namespace EulerContinuousAccelerationForcing | |
| 15 | + | |
| 16 | +open ContinuousLinearMap EulerContinuousTimeIntegral EulerContinuousPathCalculus | |
| 17 | + EulerContinuousPathComposition EulerOperatorGevreyCalculus EulerGevrey | |
| 18 | +open scoped ContDiff | |
| 19 | + | |
| 20 | +variable {K P U E : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 21 | + [NormedAddCommGroup P] [NormedSpace ℝ P] | |
| 22 | + [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] | |
| 23 | + [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] | |
| 24 | + | |
| 25 | +/-- The literal continuous forcing in the projected acceleration equation. -/ | |
| 26 | +def forcing (Q Q₁ : P → C(K,U →L[ℝ] E)) (f : P → C(K,E)) (v : P → C(K,U)) (x : P) : C(K,U) := | |
| 27 | + multiplier (adjointMap (Q x)) (f x - (2 : ℝ) • multiplier (Q₁ x) (v x)) | |
| 28 | + | |
| 29 | +/-- Actual uniform-time regularity of the acceleration forcing. -/ | |
| 30 | +theorem forcing_contDiff (Q Q₁ : P → C(K,U →L[ℝ] E)) (f : P → C(K,E)) (v : P → C(K,U)) | |
| 31 | + {n : ℕ∞ω} (hQ : ContDiff ℝ n Q) (hQ₁ : ContDiff ℝ n Q₁) | |
| 32 | + (hf : ContDiff ℝ n f) (hv : ContDiff ℝ n v) : ContDiff ℝ n (forcing Q Q₁ f v) := | |
| 33 | + contDiff_apply (fun x => adjointMap (Q x)) _ (contDiff_adjoint Q hQ) | |
| 34 | + (hf.sub ((contDiff_apply Q₁ v hQ₁ hv).const_smul (2 : ℝ))) | |
| 35 | + | |
| 36 | +/-- One fixed amplitude controls the genuine derivatives at every order. -/ | |
| 37 | +theorem forcing_bound (Q Q₁ : P → C(K,U →L[ℝ] E)) (f : P → C(K,E)) (v : P → C(K,U)) | |
| 38 | + (hQ : ContDiff ℝ ∞ Q) (hQ₁ : ContDiff ℝ ∞ Q₁) | |
| 39 | + (hf : ContDiff ℝ ∞ f) (hv : ContDiff ℝ ∞ v) | |
| 40 | + (R C₀ C₁ F V : ℝ) (hR : 0 ≤ R) (hC₀ : 0 ≤ C₀) (hC₁ : 0 ≤ C₁) | |
| 41 | + (hF : 0 ≤ F) (hV : 0 ≤ V) (d : ℕ) | |
| 42 | + (hbQ : ∀ n x, ‖iteratedFDeriv ℝ n Q x‖ ≤ C₀*majorant R 0 n) | |
| 43 | + (hbQ₁ : ∀ n x, ‖iteratedFDeriv ℝ n Q₁ x‖ ≤ C₁*majorant R 0 n) | |
| 44 | + (hbf : ∀ n x, ‖iteratedFDeriv ℝ n f x‖ ≤ F*majorant R d n) | |
| 45 | + (hbv : ∀ n x, ‖iteratedFDeriv ℝ n v x‖ ≤ V*majorant R d n) | |
| 46 | + (n : ℕ) (x : P) : | |
| 47 | + ‖iteratedFDeriv ℝ n (forcing Q Q₁ f v) x‖ ≤ (3*C₀*(F+6*C₁*V))*majorant R d n := by | |
| 48 | + let w := fun y => multiplier (Q₁ y) (v y) | |
| 49 | + have hw : ContDiff ℝ ∞ w := contDiff_apply Q₁ v hQ₁ hv | |
| 50 | + have hbw (j : ℕ) (y : P) : ‖iteratedFDeriv ℝ j w y‖ ≤ (3*C₁*V)*majorant R d j := by | |
| 51 | + simpa only [Nat.zero_add] using apply_bound Q₁ v hQ₁ hv R C₁ V hR hC₁ hV 0 d hbQ₁ hbv j y | |
| 52 | + have hb2w (j : ℕ) (y : P) : | |
| 53 | + ‖iteratedFDeriv ℝ j (fun z => (2 : ℝ) • w z) y‖ ≤ (6*C₁*V)*majorant R d j := by | |
| 54 | + rw [iteratedFDeriv_const_smul_apply' (hw.contDiffAt.of_le (by simp)), norm_smul] | |
| 55 | + norm_num only [Real.norm_ofNat] | |
| 56 | + nlinarith [hbw j y] | |
| 57 | + let r := fun y => f y - (2 : ℝ) • w y | |
| 58 | + have hr : ContDiff ℝ ∞ r := hf.sub (hw.const_smul (2 : ℝ)) | |
| 59 | + have hbr := sub_bound f (fun y => (2 : ℝ) • w y) hf (hw.const_smul (2 : ℝ)) | |
| 60 | + R F (6*C₁*V) d hbf hb2w | |
| 61 | + have h := apply_bound (fun y => adjointMap (Q y)) r (contDiff_adjoint Q hQ) hr | |
| 62 | + R C₀ (F+6*C₁*V) hR hC₀ (by positivity) 0 d | |
| 63 | + (EulerContinuousPathComposition.adjoint_bound Q hQ R C₀ hR hC₀ 0 hbQ) hbr n x | |
| 64 | + simp only [Nat.zero_add] at h | |
| 65 | + convert h using 1 | |
| 66 | + rfl | |
| 67 | + | |
| 68 | +end EulerContinuousAccelerationForcing | |
+81 −0 Euler/ContinuousAccelerationGevrey.lean added View file
| @@ -0,0 +1,81 @@ | ||
| 1 | +import Euler.ContinuousGramAcceleration | |
| 2 | +import Euler.ContinuousGramGevrey | |
| 3 | +import Euler.ContinuousAccelerationForcing | |
| 4 | + | |
| 5 | +/-! | |
| 6 | +# Uniform-time regularity of actual acceleration | |
| 7 | + | |
| 8 | +The continuous acceleration is the already constructed Gram inverse applied | |
| 9 | +to its literal forcing. Smoothness and factorial estimates therefore apply | |
| 10 | +to the actual continuous path, including its endpoint values. | |
| 11 | +-/ | |
| 12 | + | |
| 13 | +noncomputable section | |
| 14 | + | |
| 15 | +namespace EulerContinuousAccelerationGevrey | |
| 16 | + | |
| 17 | +open Set ContinuousLinearMap EulerContinuousGramAcceleration | |
| 18 | + EulerContinuousGramPath EulerContinuousGramGevrey EulerContinuousAccelerationForcing | |
| 19 | + EulerOperatorGevreyCalculus EulerTimeLpGramGevrey EulerGevrey | |
| 20 | +open scoped ContDiff | |
| 21 | + | |
| 22 | +variable {P U E : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P] | |
| 23 | + [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] | |
| 24 | + [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] | |
| 25 | + | |
| 26 | +variable (T : ℝ) (Q Q₁ : P → C(Icc (0 : ℝ) T,U →L[ℝ] E)) | |
| 27 | + (c : ℝ) (hc : 0 < c) (hLower : ∀ x t v, c*‖v‖^2 ≤ ‖Q x t v‖^2) | |
| 28 | + (v : P → C(Icc (0 : ℝ) T,U)) (f : P → C(Icc (0 : ℝ) T,E)) | |
| 29 | + | |
| 30 | +omit [NormedAddCommGroup P] [NormedSpace ℝ P] in | |
| 31 | +/-- The continuous acceleration is the genuine continuous Gram solve. -/ | |
| 32 | +theorem acceleration_eq_solve : | |
| 33 | + (fun x => accelerationPath T (Q x) (Q₁ x) c hc (hLower x) (v x) (f x)) = | |
| 34 | + fun x => solve T (Q x) c hc (hLower x) (forcing Q Q₁ f v x) := by | |
| 35 | + funext x | |
| 36 | + apply ContinuousMap.ext | |
| 37 | + intro t | |
| 38 | + rfl | |
| 39 | + | |
| 40 | +/-- Actual uniform-time acceleration depends smoothly on the actual coefficients and data. -/ | |
| 41 | +theorem acceleration_contDiff {n : ℕ∞ω} | |
| 42 | + (hQ : ContDiff ℝ n Q) (hQ₁ : ContDiff ℝ n Q₁) | |
| 43 | + (hv : ContDiff ℝ n v) (hf : ContDiff ℝ n f) : | |
| 44 | + ContDiff ℝ n (fun x => accelerationPath T (Q x) (Q₁ x) c hc (hLower x) (v x) (f x)) := | |
| 45 | + Eq.mpr (congrArg (fun g : P → C(Icc (0 : ℝ) T,U) => ContDiff ℝ n g) | |
| 46 | + (acceleration_eq_solve T Q Q₁ c hc hLower v f)) | |
| 47 | + (solve_contDiff T c hc Q hLower (forcing Q Q₁ f v) hQ | |
| 48 | + (forcing_contDiff Q Q₁ f v hQ hQ₁ hf hv)) | |
| 49 | + | |
| 50 | +/-- The actual continuous acceleration has one factorial shift relative to | |
| 51 | +its velocity and forcing data, with a polynomial radius condition. -/ | |
| 52 | +theorem acceleration_gevrey | |
| 53 | + (hQ : ContDiff ℝ ∞ Q) (hQ₁ : ContDiff ℝ ∞ Q₁) | |
| 54 | + (hv : ContDiff ℝ ∞ v) (hf : ContDiff ℝ ∞ f) | |
| 55 | + (Rc R C₀ C₁ Cf Cv : ℝ) (hRc : 0 ≤ Rc) (hR : 0 ≤ R) (hRcR : Rc ≤ R) | |
| 56 | + (hC₀ : 0 ≤ C₀) (hC₁ : 0 ≤ C₁) (hCf : 0 ≤ Cf) (hCv : 0 ≤ Cv) | |
| 57 | + (hstrong : 2*gramCost c C₀ (3*C₀*(Cf+6*C₁*Cv))*(Rc+1) ≤ R) | |
| 58 | + (hQb : ∀ n x, ‖iteratedFDeriv ℝ n Q x‖ ≤ C₀*majorant Rc 0 n) | |
| 59 | + (hQ₁b : ∀ n x, ‖iteratedFDeriv ℝ n Q₁ x‖ ≤ C₁*majorant Rc 0 n) | |
| 60 | + (d : ℕ) | |
| 61 | + (hfb : ∀ n x, ‖iteratedFDeriv ℝ n f x‖ ≤ Cf*majorant R d n) | |
| 62 | + (hvb : ∀ n x, ‖iteratedFDeriv ℝ n v x‖ ≤ Cv*majorant R d n) | |
| 63 | + (n : ℕ) (x : P) : | |
| 64 | + ‖iteratedFDeriv ℝ n | |
| 65 | + (fun y => accelerationPath T (Q y) (Q₁ y) c hc (hLower y) (v y) (f y)) x‖ ≤ | |
| 66 | + majorant R (d+1) n := by | |
| 67 | + have hbQR (k y) : ‖iteratedFDeriv ℝ k Q y‖ ≤ C₀*majorant R 0 k := | |
| 68 | + (hQb k y).trans (mul_le_mul_of_nonneg_left (majorant_radius_mono Rc R hRc hRcR 0 k) hC₀) | |
| 69 | + have hbQ₁R (k y) : ‖iteratedFDeriv ℝ k Q₁ y‖ ≤ C₁*majorant R 0 k := | |
| 70 | + (hQ₁b k y).trans (mul_le_mul_of_nonneg_left (majorant_radius_mono Rc R hRc hRcR 0 k) hC₁) | |
| 71 | + let g := forcing Q Q₁ f v | |
| 72 | + have hg : ContDiff ℝ ∞ g := forcing_contDiff Q Q₁ f v hQ hQ₁ hf hv | |
| 73 | + have hgb : ∀ k y, ‖iteratedFDeriv ℝ k g y‖ ≤ (3*C₀*(Cf+6*C₁*Cv))*majorant R d k := | |
| 74 | + forcing_bound Q Q₁ f v hQ hQ₁ hf hv R C₀ C₁ Cf Cv hR hC₀ hC₁ hCf hCv d | |
| 75 | + hbQR hbQ₁R hfb hvb | |
| 76 | + have hs := EulerContinuousGramGevrey.solution_gevrey T Q c hc hLower hQ | |
| 77 | + Rc C₀ hRc hC₀ hQb g hg (3*C₀*(Cf+6*C₁*Cv)) R (by positivity) hstrong d hgb n x | |
| 78 | + exact (congrArg (fun g : P → C(Icc (0 : ℝ) T,U) => ‖iteratedFDeriv ℝ n g x‖) | |
| 79 | + (acceleration_eq_solve T Q Q₁ c hc hLower v f)).trans_le hs | |
| 80 | + | |
| 81 | +end EulerContinuousAccelerationGevrey | |
+80 −0 Euler/ContinuousAccelerationSobolev.lean added View file
| @@ -0,0 +1,80 @@ | ||
| 1 | +import Euler.ContinuousAccelerationGevrey | |
| 2 | +import Euler.ContinuousGramSobolev | |
| 3 | +import Euler.ParameterSobolevAcceleration | |
| 4 | + | |
| 5 | +/-! | |
| 6 | +# Actual uniform-time acceleration in fixed Sobolev word blocks | |
| 7 | + | |
| 8 | +The genuine continuous Gram solve incurs one factorial shift at the original | |
| 9 | +radius. Time endpoint values are included in the continuous-path norm. | |
| 10 | +-/ | |
| 11 | + | |
| 12 | +noncomputable section | |
| 13 | + | |
| 14 | +namespace EulerContinuousAccelerationSobolev | |
| 15 | + | |
| 16 | +open Set ContinuousLinearMap EulerContinuousTimeIntegral EulerContinuousPathCalculus | |
| 17 | + EulerContinuousPathComposition EulerContinuousGramPath EulerContinuousGramAcceleration | |
| 18 | + EulerContinuousAccelerationForcing EulerContinuousAccelerationGevrey | |
| 19 | + EulerTimeLpGramSobolev EulerParameterWordGevrey EulerGevrey | |
| 20 | +open scoped ContDiff | |
| 21 | + | |
| 22 | +variable {P U E ι : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P] | |
| 23 | + [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] | |
| 24 | + [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] [Fintype ι] | |
| 25 | + | |
| 26 | +theorem forcing_block_bound (directions : ι → P) (hd : ∀ i, ‖directions i‖ ≤ 1) (q : ℕ) | |
| 27 | + (T : ℝ) (Q Q₁ : P → C(Icc (0 : ℝ) T,U →L[ℝ] E)) | |
| 28 | + (f : P → C(Icc (0 : ℝ) T,E)) (v : P → C(Icc (0 : ℝ) T,U)) | |
| 29 | + (hQ : ContDiff ℝ ∞ Q) (hQ₁ : ContDiff ℝ ∞ Q₁) | |
| 30 | + (hf : ContDiff ℝ ∞ f) (hv : ContDiff ℝ ∞ v) | |
| 31 | + (Rc R C₀ C₁ Cf Cv : ℝ) (hRc : 0 ≤ Rc) (hRcR : sobolevCoefficientRadius ι Rc ≤ R) | |
| 32 | + (hC₀ : 0 ≤ C₀) (hC₁ : 0 ≤ C₁) (hCf : 0 ≤ Cf) (hCv : 0 ≤ Cv) | |
| 33 | + (hbQ : ∀ n x, ‖iteratedFDeriv ℝ n Q x‖ ≤ C₀*majorant Rc 0 n) | |
| 34 | + (hbQ₁ : ∀ n x, ‖iteratedFDeriv ℝ n Q₁ x‖ ≤ C₁*majorant Rc 0 n) | |
| 35 | + (d : ℕ) | |
| 36 | + (hbf : ∀ n x, block directions q f n x ≤ Cf*majorant R d n) | |
| 37 | + (hbv : ∀ n x, block directions q v n x ≤ Cv*majorant R d n) | |
| 38 | + (n : ℕ) (x : P) : | |
| 39 | + block directions q (forcing Q Q₁ f v) n x ≤ | |
| 40 | + accelerationBlockAmplitude ι q Rc C₀ C₁ Cf Cv*majorant R d n := by | |
| 41 | + have hAdj := contDiff_adjoint Q hQ | |
| 42 | + exact block_acceleration_forcing_of_tensor directions hd q | |
| 43 | + (fun y => multiplier (adjointMap (Q y))) (fun y => multiplier (Q₁ y)) f v | |
| 44 | + (contDiff_multiplier (fun y => adjointMap (Q y)) hAdj) | |
| 45 | + (contDiff_multiplier Q₁ hQ₁) hf hv Rc R C₀ C₁ Cf Cv hRc hRcR hC₀ hC₁ hCf hCv | |
| 46 | + (multiplier_bound (fun y => adjointMap (Q y)) hAdj Rc C₀ hRc hC₀ 0 | |
| 47 | + (EulerContinuousPathComposition.adjoint_bound Q hQ Rc C₀ hRc hC₀ 0 hbQ)) | |
| 48 | + (multiplier_bound Q₁ hQ₁ Rc C₁ hRc hC₁ 0 hbQ₁) d hbf hbv n x | |
| 49 | + | |
| 50 | +/-- The actual acceleration path has one more grade in the same fixed | |
| 51 | +Sobolev order; there is no additional conversion of external words. -/ | |
| 52 | +theorem acceleration_block_bound (directions : ι → P) (hd : ∀ i, ‖directions i‖ ≤ 1) (q : ℕ) | |
| 53 | + (T : ℝ) (Q Q₁ : P → C(Icc (0 : ℝ) T,U →L[ℝ] E)) | |
| 54 | + (c : ℝ) (hc : 0 < c) (hLower : ∀ x t w, c*‖w‖^2 ≤ ‖Q x t w‖^2) | |
| 55 | + (v : P → C(Icc (0 : ℝ) T,U)) (f : P → C(Icc (0 : ℝ) T,E)) | |
| 56 | + (hQ : ContDiff ℝ ∞ Q) (hQ₁ : ContDiff ℝ ∞ Q₁) | |
| 57 | + (hv : ContDiff ℝ ∞ v) (hf : ContDiff ℝ ∞ f) | |
| 58 | + (Rc R C₀ C₁ Cf Cv : ℝ) (hRc : 0 ≤ Rc) (hRcR : sobolevCoefficientRadius ι Rc ≤ R) | |
| 59 | + (hC₀ : 0 ≤ C₀) (hC₁ : 0 ≤ C₁) (hCf : 0 ≤ Cf) (hCv : 0 ≤ Cv) | |
| 60 | + (hR : 2*gramBlockCost ι q c Rc C₀ (accelerationBlockAmplitude ι q Rc C₀ C₁ Cf Cv)* | |
| 61 | + (sobolevCoefficientRadius ι Rc+1) ≤ R) | |
| 62 | + (hbQ : ∀ n x, ‖iteratedFDeriv ℝ n Q x‖ ≤ C₀*majorant Rc 0 n) | |
| 63 | + (hbQ₁ : ∀ n x, ‖iteratedFDeriv ℝ n Q₁ x‖ ≤ C₁*majorant Rc 0 n) | |
| 64 | + (d : ℕ) | |
| 65 | + (hbf : ∀ n x, block directions q f n x ≤ Cf*majorant R d n) | |
| 66 | + (hbv : ∀ n x, block directions q v n x ≤ Cv*majorant R d n) | |
| 67 | + (n : ℕ) (x : P) : | |
| 68 | + block directions q | |
| 69 | + (fun y => accelerationPath T (Q y) (Q₁ y) c hc (hLower y) (v y) (f y)) n x ≤ | |
| 70 | + majorant R (d+1) n := by | |
| 71 | + have hs := EulerContinuousGramSobolev.solution_block_gevrey directions hd q T Q c hc hLower | |
| 72 | + hQ Rc C₀ hRc hC₀ hbQ (forcing Q Q₁ f v) (forcing_contDiff Q Q₁ f v hQ hQ₁ hf hv) | |
| 73 | + (accelerationBlockAmplitude ι q Rc C₀ C₁ Cf Cv) R | |
| 74 | + (accelerationBlockAmplitude_nonneg q Rc C₀ C₁ Cf Cv hRc hC₀ hC₁ hCf hCv) hR d | |
| 75 | + (forcing_block_bound directions hd q T Q Q₁ f v hQ hQ₁ hf hv | |
| 76 | + Rc R C₀ C₁ Cf Cv hRc hRcR hC₀ hC₁ hCf hCv hbQ hbQ₁ d hbf hbv) n x | |
| 77 | + exact (congrArg (fun g : P → C(Icc (0 : ℝ) T,U) => block directions q g n x) | |
| 78 | + (acceleration_eq_solve T Q Q₁ c hc hLower v f)).trans_le hs | |
| 79 | + | |
| 80 | +end EulerContinuousAccelerationSobolev | |
+163 −0 Euler/ContinuousBoundedTensor.lean added View file
| @@ -0,0 +1,163 @@ | ||
| 1 | +import Euler.FinitePathTensor | |
| 2 | +import Mathlib.Topology.ContinuousMap.Bounded.Normed | |
| 3 | + | |
| 4 | +/-! Transposing a tensor with continuous bounded path values gives an | |
| 5 | +actual continuous path of bounded tensor fields. Finite coordinates prove | |
| 6 | +continuity; the norm estimate uses the original multilinear map directly | |
| 7 | +and therefore has constant one. -/ | |
| 8 | + | |
| 9 | +noncomputable section | |
| 10 | + | |
| 11 | + | |
| 12 | +open scoped ContDiff BoundedContinuousFunction | |
| 13 | + | |
| 14 | +namespace EulerContinuousBoundedTensor | |
| 15 | + | |
| 16 | +variable {K X E V : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 17 | + [TopologicalSpace X] | |
| 18 | + [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] | |
| 19 | + [NormedAddCommGroup V] [NormedSpace ℝ V] [FiniteDimensional ℝ V] | |
| 20 | + | |
| 21 | +private local instance (n : ℕ) : NormedAddCommGroup (E [×n]→L[ℝ] V) := inferInstance | |
| 22 | +private local instance (n : ℕ) : NormedSpace ℝ (E [×n]→L[ℝ] V) := inferInstance | |
| 23 | +private local instance (n : ℕ) : NormedAddCommGroup (X →ᵇ (E [×n]→L[ℝ] V)) := inferInstance | |
| 24 | +private local instance (n : ℕ) : NormedSpace ℝ (X →ᵇ (E [×n]→L[ℝ] V)) := inferInstance | |
| 25 | + | |
| 26 | +private def coordinates (n : ℕ) : | |
| 27 | + (E [×n]→L[ℝ] V) →L[ℝ] ((Fin n → Fin (Module.finrank ℝ E)) → V) := | |
| 28 | + ContinuousLinearMap.pi (fun w => | |
| 29 | + (ContinuousLinearMap.id ℝ (E [×n]→L[ℝ] V)).flipMultilinear | |
| 30 | + (fun i => Module.finBasis ℝ E (w i))) | |
| 31 | + | |
| 32 | +omit [FiniteDimensional ℝ V] in | |
| 33 | +private theorem coordinates_injective (n : ℕ) : | |
| 34 | + Function.Injective (coordinates (E := E) (V := V) n) := by | |
| 35 | + intro A B h | |
| 36 | + apply ContinuousMultilinearMap.toMultilinearMap_injective | |
| 37 | + apply Module.Basis.ext_multilinear (fun _ : Fin n => Module.finBasis ℝ E) | |
| 38 | + intro w | |
| 39 | + exact congrFun h w | |
| 40 | + | |
| 41 | +private def reassembly (n : ℕ) : | |
| 42 | + ((Fin n → Fin (Module.finrank ℝ E)) → V) →L[ℝ] (E [×n]→L[ℝ] V) := | |
| 43 | + ((coordinates (E := E) (V := V) n).toLinearMap.leftInverse).toContinuousLinearMap | |
| 44 | + | |
| 45 | +private theorem reassembly_coordinates (n : ℕ) (A : E [×n]→L[ℝ] V) : | |
| 46 | + reassembly n (coordinates n A) = A := | |
| 47 | + LinearMap.leftInverse_apply_of_inj | |
| 48 | + (LinearMap.ker_eq_bot.mpr (coordinates_injective n)) A | |
| 49 | + | |
| 50 | +private def tupleBounded {ι : Type*} [Fintype ι] : | |
| 51 | + (ι → (X →ᵇ V)) →L[ℝ] (X →ᵇ (ι → V)) := by | |
| 52 | + classical | |
| 53 | + exact ∑ i : ι, | |
| 54 | + ((ContinuousLinearMap.single ℝ (fun _ : ι => V) i).compLeftContinuousBounded X).comp | |
| 55 | + (ContinuousLinearMap.proj i) | |
| 56 | + | |
| 57 | +omit [FiniteDimensional ℝ V] in | |
| 58 | +private theorem tupleBounded_apply {ι : Type*} [Fintype ι] | |
| 59 | + (u : ι → (X →ᵇ V)) (x : X) (i : ι) : | |
| 60 | + tupleBounded u x i = u i x := by | |
| 61 | + classical | |
| 62 | + simp [tupleBounded] | |
| 63 | + | |
| 64 | +def tensorPath (n : ℕ) (A : E [×n]→L[ℝ] C(K, X →ᵇ V)) : | |
| 65 | + C(K, X →ᵇ (E [×n]→L[ℝ] V)) where | |
| 66 | + toFun t := (reassembly (E := E) (V := V) n).compLeftContinuousBounded X | |
| 67 | + (tupleBounded (fun w => A (fun i => Module.finBasis ℝ E (w i)) t)) | |
| 68 | + continuous_toFun := | |
| 69 | + ((reassembly (E := E) (V := V) n).compLeftContinuousBounded X).continuous.comp | |
| 70 | + ((tupleBounded (X := X) (V := V)).continuous.comp | |
| 71 | + (continuous_pi (fun w => (A (fun i => Module.finBasis ℝ E (w i))).continuous))) | |
| 72 | + | |
| 73 | +omit [CompactSpace K] in | |
| 74 | +theorem tensorPath_eq (n : ℕ) (A : E [×n]→L[ℝ] C(K, X →ᵇ V)) (t : K) (x : X) : | |
| 75 | + tensorPath n A t x = (BoundedContinuousFunction.evalCLM ℝ x).compContinuousMultilinearMap | |
| 76 | + ((ContinuousMap.evalCLM ℝ t).compContinuousMultilinearMap A) := by | |
| 77 | + change reassembly n (tupleBounded _ x) = _ | |
| 78 | + have he : tupleBounded (fun w => A (fun i => Module.finBasis ℝ E (w i)) t) x = | |
| 79 | + coordinates n ((BoundedContinuousFunction.evalCLM ℝ x).compContinuousMultilinearMap | |
| 80 | + ((ContinuousMap.evalCLM ℝ t).compContinuousMultilinearMap A)) := by | |
| 81 | + funext w | |
| 82 | + rw [tupleBounded_apply] | |
| 83 | + rfl | |
| 84 | + rw [he, reassembly_coordinates] | |
| 85 | + | |
| 86 | +omit [CompactSpace K] in | |
| 87 | +@[simp] theorem tensorPath_apply (n : ℕ) (A : E [×n]→L[ℝ] C(K, X →ᵇ V)) | |
| 88 | + (t : K) (x : X) (v : Fin n → E) : tensorPath n A t x v = A v t x := by | |
| 89 | + rw [tensorPath_eq] | |
| 90 | + rfl | |
| 91 | + | |
| 92 | +private local instance (n : ℕ) : NormedAddCommGroup (C(K, X →ᵇ (E [×n]→L[ℝ] V))) := inferInstance | |
| 93 | +private local instance (n : ℕ) : NormedSpace ℝ (C(K, X →ᵇ (E [×n]→L[ℝ] V))) := inferInstance | |
| 94 | +private local instance (n : ℕ) : NormedAddCommGroup (E [×n]→L[ℝ] C(K, X →ᵇ V)) := inferInstance | |
| 95 | +private local instance (n : ℕ) : NormedSpace ℝ (E [×n]→L[ℝ] C(K, X →ᵇ V)) := inferInstance | |
| 96 | + | |
| 97 | +theorem tensorPath_norm_le (n : ℕ) (A : E [×n]→L[ℝ] C(K, X →ᵇ V)) : | |
| 98 | + ‖tensorPath n A‖ ≤ ‖A‖ := by | |
| 99 | + apply (ContinuousMap.norm_le _ (norm_nonneg A)).2 | |
| 100 | + intro t | |
| 101 | + apply (BoundedContinuousFunction.norm_le (norm_nonneg A)).2 | |
| 102 | + intro x | |
| 103 | + apply ContinuousMultilinearMap.opNorm_le_bound (norm_nonneg A) | |
| 104 | + intro v | |
| 105 | + rw [tensorPath_apply] | |
| 106 | + exact (((A v t).norm_coe_le_norm x).trans ((A v).norm_coe_le_norm t)).trans (A.le_opNorm v) | |
| 107 | + | |
| 108 | +def tensorPathLinear (n : ℕ) : | |
| 109 | + (E [×n]→L[ℝ] C(K, X →ᵇ V)) →ₗ[ℝ] C(K, X →ᵇ (E [×n]→L[ℝ] V)) where | |
| 110 | + toFun := tensorPath n | |
| 111 | + map_add' A B := by | |
| 112 | + apply ContinuousMap.ext | |
| 113 | + intro t | |
| 114 | + apply BoundedContinuousFunction.ext | |
| 115 | + intro x | |
| 116 | + apply ContinuousMultilinearMap.ext | |
| 117 | + intro v | |
| 118 | + simp only [tensorPath_apply, add_apply, ContinuousMap.add_apply, | |
| 119 | + BoundedContinuousFunction.add_apply] | |
| 120 | + map_smul' c A := by | |
| 121 | + apply ContinuousMap.ext | |
| 122 | + intro t | |
| 123 | + apply BoundedContinuousFunction.ext | |
| 124 | + intro x | |
| 125 | + apply ContinuousMultilinearMap.ext | |
| 126 | + intro v | |
| 127 | + simp only [tensorPath_apply, smul_apply, ContinuousMap.smul_apply, | |
| 128 | + BoundedContinuousFunction.smul_apply, RingHom.id_apply] | |
| 129 | + | |
| 130 | +def tensorPathMap (n : ℕ) : | |
| 131 | + (E [×n]→L[ℝ] C(K, X →ᵇ V)) →L[ℝ] C(K, X →ᵇ (E [×n]→L[ℝ] V)) where | |
| 132 | + toLinearMap := tensorPathLinear n | |
| 133 | + cont := AddMonoidHomClass.continuous_of_bound | |
| 134 | + (tensorPathLinear (K := K) (X := X) (E := E) (V := V) n) 1 | |
| 135 | + (fun A => by | |
| 136 | + change ‖tensorPath n A‖ ≤ 1 * ‖A‖ | |
| 137 | + simpa only [one_mul] using tensorPath_norm_le n A) | |
| 138 | + | |
| 139 | +@[simp] theorem tensorPathMap_apply (n : ℕ) (A : E [×n]→L[ℝ] C(K, X →ᵇ V)) | |
| 140 | + (t : K) (x : X) (v : Fin n → E) : tensorPathMap n A t x v = A v t x := | |
| 141 | + tensorPath_apply n A t x v | |
| 142 | + | |
| 143 | +theorem tensorPathMap_norm_le (n : ℕ) : | |
| 144 | + ‖tensorPathMap (K := K) (X := X) (E := E) (V := V) n‖ ≤ 1 := by | |
| 145 | + apply ContinuousLinearMap.opNorm_le_bound _ zero_le_one | |
| 146 | + intro A | |
| 147 | + change ‖tensorPath n A‖ ≤ 1 * ‖A‖ | |
| 148 | + simpa only [one_mul] using tensorPath_norm_le n A | |
| 149 | + | |
| 150 | +theorem tensorPath_iteratedFDeriv (f : E → C(K, X →ᵇ V)) (hf : ContDiff ℝ ∞ f) | |
| 151 | + (n : ℕ) (a : E) (t : K) (x : X) : | |
| 152 | + tensorPathMap n (iteratedFDeriv ℝ n f a) t x = | |
| 153 | + iteratedFDeriv ℝ n (fun b => f b t x) a := by | |
| 154 | + change tensorPath n (iteratedFDeriv ℝ n f a) t x = _ | |
| 155 | + rw [tensorPath_eq] | |
| 156 | + have ht := (ContinuousMap.evalCLM ℝ t).iteratedFDeriv_comp_left (x := a) hf.contDiffAt | |
| 157 | + (show (n : ℕ∞) ≤ ∞ by simp) | |
| 158 | + rw [← ht] | |
| 159 | + exact ((BoundedContinuousFunction.evalCLM ℝ x).iteratedFDeriv_comp_left | |
| 160 | + ((ContinuousMap.evalCLM ℝ t).contDiff.comp hf).contDiffAt | |
| 161 | + (show (n : ℕ∞) ≤ ∞ by simp)).symm | |
| 162 | + | |
| 163 | +end EulerContinuousBoundedTensor | |
+40 −0 Euler/ContinuousForcingTimeLp.lean added View file
| @@ -0,0 +1,40 @@ | ||
| 1 | +import Euler.ContinuousForcingTranslation | |
| 2 | +import Euler.MeanForcingTranslation | |
| 3 | + | |
| 4 | +/-! | |
| 5 | +# Continuous ordinary forcing jets supply the Bochner hypotheses | |
| 6 | + | |
| 7 | +On the compact time interval, continuous actual spatial L² jets are | |
| 8 | +automatically square integrable. The continuous and Bochner orbit theorems | |
| 9 | +therefore use the same concrete forcing data. | |
| 10 | +-/ | |
| 11 | + | |
| 12 | +noncomputable section | |
| 13 | + | |
| 14 | +namespace EulerContinuousForcing | |
| 15 | + | |
| 16 | +open Set MeasureTheory EulerSmoothLimit EulerLpTranslation EulerTimeLp EulerVolterraConvolution | |
| 17 | + | |
| 18 | +variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] | |
| 19 | + | |
| 20 | +theorem spatialJets_memLp (T : ℝ) (hT : 0 ≤ T) (A : ℝ → SmoothL2Field V) | |
| 21 | + (hA : ∀ n, Continuous (fun t : Icc (0 : ℝ) T => (A t).jetLp n)) (n : ℕ) : | |
| 22 | + MemLp (fun t => (A t).jetLp n) 2 (timeMeasure T) := by | |
| 23 | + let J : C(Icc (0 : ℝ) T,L2Space (Space [×n]→L[ℝ] V)) := | |
| 24 | + spatialJetPath (fun t : Icc (0 : ℝ) T => A t) hA n | |
| 25 | + apply (path_memLp T hT J).ae_eq | |
| 26 | + filter_upwards [ae_restrict_mem measurableSet_Icc] with t ht | |
| 27 | + change (A (projIcc 0 T hT t)).jetLp n = (A t).jetLp n | |
| 28 | + rw [projIcc_of_mem hT ht] | |
| 29 | + | |
| 30 | +theorem forcing_representation (T : ℝ) (hT : 0 ≤ T) (A : ℝ → SmoothL2Field V) | |
| 31 | + (fC : C(Icc (0 : ℝ) T,L2Space V)) (hC : ∀ t, fC t = (A t).toLp) | |
| 32 | + (f : TimeLp T (L2Space V)) | |
| 33 | + (hf : (f : ℝ → L2Space V) =ᵐ[timeMeasure T] extendPath T hT fC) : | |
| 34 | + (f : ℝ → L2Space V) =ᵐ[timeMeasure T] fun t => (A t).toLp := by | |
| 35 | + filter_upwards [hf, ae_restrict_mem measurableSet_Icc] with t ht hmem | |
| 36 | + rw [ht] | |
| 37 | + change fC (projIcc 0 T hT t) = (A t).toLp | |
| 38 | + rw [hC, projIcc_of_mem hT hmem] | |
| 39 | + | |
| 40 | +end EulerContinuousForcing | |
+87 −0 Euler/ContinuousForcingTranslation.lean added View file
| @@ -0,0 +1,87 @@ | ||
| 1 | +import Euler.ContinuousSpatialFamily | |
| 2 | +import Euler.LpSmoothFieldJets | |
| 3 | +import Euler.MeanTimeContinuousTranslation | |
| 4 | + | |
| 5 | +/-! | |
| 6 | +# Actual forcing derivatives in the uniform time norm | |
| 7 | + | |
| 8 | +Continuous paths of the literal ordinary spatial L² jets give genuine | |
| 9 | +smoothness of the forcing translation orbit in C(time,L²). The derivative | |
| 10 | +norm is bounded by the original uniform-time spatial jet norm, with no loss. | |
| 11 | +-/ | |
| 12 | + | |
| 13 | +noncomputable section | |
| 14 | + | |
| 15 | +namespace EulerContinuousForcing | |
| 16 | + | |
| 17 | +open MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerLpTranslation | |
| 18 | + EulerLpDerivative EulerContinuousSpatialFamily | |
| 19 | +open scoped ContDiff | |
| 20 | + | |
| 21 | +variable {K V : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 22 | + [NormedAddCommGroup V] [NormedSpace ℝ V] | |
| 23 | + | |
| 24 | +/-- Ordinary translation applied to every value of an actual continuous L² path. -/ | |
| 25 | +def translate (a : Space) (f : C(K,L2Space V)) : C(K,L2Space V) := | |
| 26 | + (EulerLpTranslation.translation a).toContinuousLinearMap.compLeftContinuous ℝ K f | |
| 27 | + | |
| 28 | +omit [CompactSpace K] in | |
| 29 | +@[simp] theorem translate_apply (a : Space) (f : C(K,L2Space V)) (t : K) : | |
| 30 | + translate a f t = EulerLpTranslation.translation a (f t) := rfl | |
| 31 | + | |
| 32 | +variable (A : K → SmoothL2Field V) | |
| 33 | + (hA : ∀ n, Continuous (fun t => (A t).jetLp n)) | |
| 34 | + (f : C(K,L2Space V)) (hf : ∀ t, f t = (A t).toLp) | |
| 35 | + | |
| 36 | +/-- The original ordinary spatial jet, as a genuine continuous L² path. -/ | |
| 37 | +def spatialJetPath (n : ℕ) : C(K,L2Space (Space [×n]→L[ℝ] V)) := | |
| 38 | + ⟨fun t => (A t).jetLp n, hA n⟩ | |
| 39 | + | |
| 40 | +/-- The actual translation jets form a continuous path because they are | |
| 41 | +bounded linear images of the original ordinary L² spatial jets. -/ | |
| 42 | +def orbitJetPath (n : ℕ) (a : Space) : C(K,Space [×n]→L[ℝ] L2Space V) := | |
| 43 | + (multilinearBundling (P := Space) (V := V) volume n).compLeftContinuous ℝ K | |
| 44 | + (translate a (spatialJetPath A hA n)) | |
| 45 | + | |
| 46 | +include hf in | |
| 47 | +omit [CompactSpace K] in | |
| 48 | +theorem orbitJetPath_eq (n : ℕ) (a : Space) (t : K) : | |
| 49 | + orbitJetPath A hA n a t = iteratedFDeriv ℝ n (fun b : Space => translate b f t) a := by | |
| 50 | + change multilinearBundling (P := Space) (V := V) volume n | |
| 51 | + (EulerLpTranslation.translation a ((A t).jetLp n)) = | |
| 52 | + iteratedFDeriv ℝ n (fun b : Space => EulerLpTranslation.translation b (f t)) a | |
| 53 | + rw [hf t] | |
| 54 | + exact ((A t).iteratedFDeriv_translation_eq n a).symm | |
| 55 | + | |
| 56 | +/-- This package contains only actual pointwise spatial derivatives and their | |
| 57 | +original uniform-time L² bounds. -/ | |
| 58 | +def forcingFamily : SpatialFamily K (L2Space V) where | |
| 59 | + field a := translate a f | |
| 60 | + smooth t := by | |
| 61 | + change ContDiff ℝ ∞ (fun a : Space => EulerLpTranslation.translation a (f t)) | |
| 62 | + rw [hf t] | |
| 63 | + exact (A t).translation_contDiff | |
| 64 | + jet := orbitJetPath A hA | |
| 65 | + jet_eq := orbitJetPath_eq A hA f hf | |
| 66 | + bound n := ‖spatialJetPath A hA n‖ | |
| 67 | + bound_nonneg n := norm_nonneg _ | |
| 68 | + bounded n a t := by | |
| 69 | + change ‖iteratedFDeriv ℝ n (fun b : Space => EulerLpTranslation.translation b (f t)) a‖ ≤ _ | |
| 70 | + rw [hf t] | |
| 71 | + exact ((A t).norm_iteratedFDeriv_translation_le n a).trans | |
| 72 | + ((spatialJetPath A hA n).norm_coe_le_norm t) | |
| 73 | + | |
| 74 | +include hA hf | |
| 75 | + | |
| 76 | +/-- Literal smooth forcing slices with continuous spatial L² jets have a | |
| 77 | +genuinely smooth translation orbit in the uniform time norm. -/ | |
| 78 | +theorem forcing_translation_contDiff : ContDiff ℝ ∞ (fun a : Space => translate a f) := | |
| 79 | + (forcingFamily A hA f hf).contDiff_field | |
| 80 | + | |
| 81 | +/-- Every actual orbit derivative is controlled by the original uniform-time | |
| 82 | +ordinary L² spatial derivative with constant one. -/ | |
| 83 | +theorem forcing_translation_jet_bound (n : ℕ) (a : Space) : | |
| 84 | + ‖iteratedFDeriv ℝ n (fun b : Space => translate b f) a‖ ≤ ‖spatialJetPath A hA n‖ := | |
| 85 | + (forcingFamily A hA f hf).norm_iteratedFDeriv_field_le n a | |
| 86 | + | |
| 87 | +end EulerContinuousForcing | |
+94 −0 Euler/ContinuousGramAcceleration.lean added View file
| @@ -0,0 +1,94 @@ | ||
| 1 | +import Euler.TransverseStrongEstimates | |
| 2 | + | |
| 3 | +/-! | |
| 4 | +# Continuous acceleration from the genuine Gram inverse | |
| 5 | + | |
| 6 | +A continuous velocity and continuous forcing give an actual continuous | |
| 7 | +acceleration path through the previously constructed positive Gram inverse. | |
| 8 | +Its norm and its identification with the strong L² acceleration are proved | |
| 9 | +directly, for arbitrary complete real Hilbert coefficient spaces. | |
| 10 | +-/ | |
| 11 | + | |
| 12 | +noncomputable section | |
| 13 | + | |
| 14 | +namespace EulerContinuousGramAcceleration | |
| 15 | + | |
| 16 | +open Set MeasureTheory ContinuousLinearMap EulerTimeLp EulerVolterraConvolution | |
| 17 | + EulerTransverseGramInverse EulerTransverseGramPath EulerTransverseStrongEstimates | |
| 18 | + | |
| 19 | +variable {U E : Type*} | |
| 20 | + [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] | |
| 21 | + [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] | |
| 22 | + | |
| 23 | +variable (T : ℝ) (Q Q₁ : C(Icc (0 : ℝ) T, U →L[ℝ] E)) | |
| 24 | + (c : ℝ) (hc : 0 < c) (hQ : ∀ t v, c*‖v‖^2 ≤ ‖Q t v‖^2) | |
| 25 | + | |
| 26 | +/-- The actual continuous acceleration recovered from velocity and forcing. -/ | |
| 27 | +def accelerationPath (v : C(Icc (0 : ℝ) T, U)) (f : C(Icc (0 : ℝ) T, E)) : | |
| 28 | + C(Icc (0 : ℝ) T, U) := | |
| 29 | + ⟨fun t => gramInverse (Q t) c hc (hQ t) | |
| 30 | + ((Q t).adjoint (f t-(2 : ℝ) • Q₁ t (v t))), | |
| 31 | + (gramInversePath T Q c hc hQ).continuous.clm_apply | |
| 32 | + ((adjointPath T Q).continuous.clm_apply | |
| 33 | + (f.continuous.sub ((Q₁.continuous.clm_apply v.continuous).const_smul (2 : ℝ))))⟩ | |
| 34 | + | |
| 35 | +@[simp] theorem accelerationPath_apply (v : C(Icc (0 : ℝ) T, U)) | |
| 36 | + (f : C(Icc (0 : ℝ) T, E)) (t : Icc (0 : ℝ) T) : | |
| 37 | + accelerationPath T Q Q₁ c hc hQ v f t = | |
| 38 | + gramInverse (Q t) c hc (hQ t) ((Q t).adjoint (f t-(2 : ℝ) • Q₁ t (v t))) := rfl | |
| 39 | + | |
| 40 | +/-- The strong projected equation holds at every time for this path. -/ | |
| 41 | +theorem accelerationPath_equation (v : C(Icc (0 : ℝ) T, U)) | |
| 42 | + (f : C(Icc (0 : ℝ) T, E)) (t : Icc (0 : ℝ) T) : | |
| 43 | + gram (Q t) (accelerationPath T Q Q₁ c hc hQ v f t) = | |
| 44 | + (Q t).adjoint (f t-(2 : ℝ) • Q₁ t (v t)) := | |
| 45 | + gram_inverse_apply (Q t) c hc (hQ t) _ | |
| 46 | + | |
| 47 | +/-- The continuous acceleration has the same explicit coefficient bound as the L² inverse. -/ | |
| 48 | +theorem accelerationPath_norm (v : C(Icc (0 : ℝ) T, U)) | |
| 49 | + (f : C(Icc (0 : ℝ) T, E)) : | |
| 50 | + ‖accelerationPath T Q Q₁ c hc hQ v f‖ ≤ | |
| 51 | + c⁻¹*‖Q‖*(‖f‖+2*‖Q₁‖*‖v‖) := by | |
| 52 | + apply (ContinuousMap.norm_le _ (by positivity)).2 | |
| 53 | + intro t | |
| 54 | + have hQv : ‖Q₁ t (v t)‖ ≤ ‖Q₁‖*‖v‖ := | |
| 55 | + ((Q₁ t).le_opNorm _).trans | |
| 56 | + (mul_le_mul (Q₁.norm_coe_le_norm t) (v.norm_coe_le_norm t) (norm_nonneg (v t)) (norm_nonneg Q₁)) | |
| 57 | + have hr : ‖f t-(2 : ℝ) • Q₁ t (v t)‖ ≤ ‖f‖+2*‖Q₁‖*‖v‖ := by | |
| 58 | + calc | |
| 59 | + _ ≤ ‖f t‖+‖(2 : ℝ) • Q₁ t (v t)‖ := norm_sub_le _ _ | |
| 60 | + _ = ‖f t‖+2*‖Q₁ t (v t)‖ := by norm_num only [norm_smul, Real.norm_ofNat] | |
| 61 | + _ ≤ ‖f‖+2*(‖Q₁‖*‖v‖) := | |
| 62 | + add_le_add (f.norm_coe_le_norm t) (mul_le_mul_of_nonneg_left hQv (by norm_num)) | |
| 63 | + _ = _ := by ring | |
| 64 | + have hAdj : ‖(Q t).adjoint‖ ≤ ‖Q‖ := by | |
| 65 | + simpa only [LinearIsometryEquiv.norm_map] using Q.norm_coe_le_norm t | |
| 66 | + calc | |
| 67 | + _ ≤ ‖gramInverse (Q t) c hc (hQ t)‖ * | |
| 68 | + ‖(Q t).adjoint (f t-(2 : ℝ) • Q₁ t (v t))‖ := | |
| 69 | + (gramInverse (Q t) c hc (hQ t)).le_opNorm _ | |
| 70 | + _ ≤ c⁻¹*(‖Q‖*‖f t-(2 : ℝ) • Q₁ t (v t)‖) := | |
| 71 | + mul_le_mul (gramInverse_norm (Q t) c hc (hQ t)) | |
| 72 | + (((Q t).adjoint.le_opNorm _).trans | |
| 73 | + (mul_le_mul_of_nonneg_right hAdj (norm_nonneg _))) | |
| 74 | + (norm_nonneg _) (inv_nonneg.mpr hc.le) | |
| 75 | + _ ≤ c⁻¹*(‖Q‖*(‖f‖+2*‖Q₁‖*‖v‖)) := | |
| 76 | + mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_left hr (norm_nonneg Q)) (inv_nonneg.mpr hc.le) | |
| 77 | + _ = _ := by ring | |
| 78 | + | |
| 79 | +/-- Every genuine L² strong acceleration with the given continuous data is | |
| 80 | +almost everywhere this constructed continuous path. -/ | |
| 81 | +theorem accelerationPath_ae (hT : 0 ≤ T) (v a : TimeLp T U) (f : TimeLp T E) | |
| 82 | + (vC : C(Icc (0 : ℝ) T, U)) (fC : C(Icc (0 : ℝ) T, E)) | |
| 83 | + (hv : (v : ℝ → U) =ᵐ[timeMeasure T] extendPath T hT vC) | |
| 84 | + (hf : (f : ℝ → E) =ᵐ[timeMeasure T] extendPath T hT fC) | |
| 85 | + (heq : ∀ᵐ t ∂timeMeasure T, gram (extendPath T hT Q t) (a t) = | |
| 86 | + (extendPath T hT Q t).adjoint (f t-(2 : ℝ) • extendPath T hT Q₁ t (v t))) : | |
| 87 | + (a : ℝ → U) =ᵐ[timeMeasure T] extendPath T hT (accelerationPath T Q Q₁ c hc hQ vC fC) := by | |
| 88 | + filter_upwards [heq, hv, hf] with t ht hvt hft | |
| 89 | + dsimp only [extendPath] at ht hvt hft ⊢ | |
| 90 | + have hi := congrArg (gramInverse (Q (projIcc 0 T hT t)) c hc (hQ _)) ht | |
| 91 | + rw [inverse_gram_apply, hvt, hft] at hi | |
| 92 | + exact hi | |
| 93 | + | |
| 94 | +end EulerContinuousGramAcceleration | |
+148 −0 Euler/ContinuousGramGevrey.lean added View file
| @@ -0,0 +1,148 @@ | ||
| 1 | +import Euler.ContinuousGramPath | |
| 2 | +import Euler.BoundedInverseGevrey | |
| 3 | +import Euler.TimeLpGramGevrey | |
| 4 | + | |
| 5 | +/-! | |
| 6 | +# Uniform-time factorial bounds for the actual Gram inverse | |
| 7 | + | |
| 8 | +The inverse is a genuinely smooth continuous operator path. Applying the | |
| 9 | +frozen-coefficient recurrence in the uniform norm gives actual inverse-path | |
| 10 | +and solution estimates, without a Hilbert structure on the path space. | |
| 11 | +-/ | |
| 12 | + | |
| 13 | +noncomputable section | |
| 14 | + | |
| 15 | +namespace EulerContinuousGramGevrey | |
| 16 | + | |
| 17 | +open Set ContinuousLinearMap EulerContinuousTimeIntegral EulerContinuousPathCalculus | |
| 18 | + EulerContinuousPathComposition EulerContinuousGramPath EulerTransverseGramInverse | |
| 19 | + EulerTransverseGramPath EulerTransverseStrongEstimates EulerOperatorGevreyCalculus | |
| 20 | + EulerTimeLpGramGevrey EulerGevrey | |
| 21 | +open scoped ContDiff | |
| 22 | + | |
| 23 | +private theorem cost_bounds (c C D : ℝ) (hc : 0 < c) (hD : 0 ≤ D) : | |
| 24 | + 1 ≤ gramCost c C D ∧ c⁻¹*(3*C^2) ≤ gramCost c C D ∧ c⁻¹*D ≤ gramCost c C D := by | |
| 25 | + have hi : 0 ≤ c⁻¹ := inv_nonneg.mpr hc.le | |
| 26 | + unfold gramCost | |
| 27 | + constructor | |
| 28 | + · have h : 0 ≤ c⁻¹*(3*C^2+D+1) := by positivity | |
| 29 | + linarith | |
| 30 | + constructor <;> nlinarith [sq_nonneg C] | |
| 31 | + | |
| 32 | +variable {U E : Type*} | |
| 33 | + [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] | |
| 34 | + [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] | |
| 35 | + | |
| 36 | +private local instance : NormedAddCommGroup (U →L[ℝ] U) := inferInstance | |
| 37 | +private local instance : NormedSpace ℝ (U →L[ℝ] U) := inferInstance | |
| 38 | +private local instance (T : ℝ) : NormedAddCommGroup C(Icc (0 : ℝ) T,U →L[ℝ] U) := inferInstance | |
| 39 | +private local instance (T : ℝ) : NormedSpace ℝ C(Icc (0 : ℝ) T,U →L[ℝ] U) := inferInstance | |
| 40 | +private local instance (T : ℝ) : NormedAddCommGroup | |
| 41 | + (C(Icc (0 : ℝ) T,U →L[ℝ] U) →L[ℝ] C(Icc (0 : ℝ) T,U →L[ℝ] U)) := inferInstance | |
| 42 | +private local instance (T : ℝ) : NormedSpace ℝ | |
| 43 | + (C(Icc (0 : ℝ) T,U →L[ℝ] U) →L[ℝ] C(Icc (0 : ℝ) T,U →L[ℝ] U)) := inferInstance | |
| 44 | + | |
| 45 | +/-- Bounded left multiplication on continuous endomorphism paths, as a | |
| 46 | +bounded linear function of the actual coefficient path. -/ | |
| 47 | +def leftMultiplicationMap (T : ℝ) : | |
| 48 | + C(Icc (0 : ℝ) T,U →L[ℝ] U) →L[ℝ] | |
| 49 | + C(Icc (0 : ℝ) T,U →L[ℝ] U) →L[ℝ] C(Icc (0 : ℝ) T,U →L[ℝ] U) := | |
| 50 | + (coefficientMap (K := Icc (0 : ℝ) T) (E := U →L[ℝ] U) (F := U →L[ℝ] U)).comp | |
| 51 | + (compositionLift (K := Icc (0 : ℝ) T) (U := U) (E := U) (F := U)) | |
| 52 | + | |
| 53 | +omit [CompleteSpace U] in | |
| 54 | +theorem leftMultiplicationMap_norm (T : ℝ) : ‖leftMultiplicationMap (U := U) T‖ ≤ 1 := by | |
| 55 | + apply opNorm_le_bound _ zero_le_one | |
| 56 | + intro A | |
| 57 | + simp only [one_mul] | |
| 58 | + apply opNorm_le_bound _ (norm_nonneg A) | |
| 59 | + intro B | |
| 60 | + apply (ContinuousMap.norm_le _ (mul_nonneg (norm_nonneg A) (norm_nonneg B))).2 | |
| 61 | + intro t | |
| 62 | + exact (opNorm_comp_le (A t) (B t)).trans | |
| 63 | + (mul_le_mul (A.norm_coe_le_norm t) (B.norm_coe_le_norm t) (norm_nonneg (B t)) (norm_nonneg A)) | |
| 64 | + | |
| 65 | +variable {P : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P] | |
| 66 | + (T : ℝ) (Q : P → C(Icc (0 : ℝ) T,U →L[ℝ] E)) | |
| 67 | + (c : ℝ) (hc : 0 < c) (hLower : ∀ x t v, c*‖v‖^2 ≤ ‖Q x t v‖^2) | |
| 68 | + (hQ : ContDiff ℝ ∞ Q) | |
| 69 | + (Rc C : ℝ) (hRc : 0 ≤ Rc) (hC : 0 ≤ C) | |
| 70 | + (hbQ : ∀ n x, ‖iteratedFDeriv ℝ n Q x‖ ≤ C*majorant Rc 0 n) | |
| 71 | + | |
| 72 | +include hQ hRc hC hbQ | |
| 73 | + | |
| 74 | +/-- The actual continuous inverse path has one factorial shift, uniformly in time. -/ | |
| 75 | +theorem inversePath_gevrey (R : ℝ) (hR : 2*gramCost c C 1*(Rc+1) ≤ R) (n : ℕ) (x : P) : | |
| 76 | + ‖iteratedFDeriv ℝ n (fun y => gramInversePath T (Q y) c hc (hLower y)) x‖ ≤ | |
| 77 | + majorant R 1 n := by | |
| 78 | + let B := fun y => gramPath T (Q y) | |
| 79 | + let V := fun y => gramInversePath T (Q y) c hc (hLower y) | |
| 80 | + let A := fun y => leftMultiplicationMap (U := U) T (B y) | |
| 81 | + let I := fun y => leftMultiplicationMap (U := U) T (V y) | |
| 82 | + let onePath : C(Icc (0 : ℝ) T,U →L[ℝ] U) := ⟨fun _ => ContinuousLinearMap.id ℝ U, continuous_const⟩ | |
| 83 | + have hB : ContDiff ℝ ∞ B := gramPath_contDiff T Q hQ | |
| 84 | + have hV : ContDiff ℝ ∞ V := gramInversePath_contDiff T c hc Q hLower hQ | |
| 85 | + have hA : ContDiff ℝ ∞ A := | |
| 86 | + ContDiff.comp (g := leftMultiplicationMap (U := U) T) (f := B) | |
| 87 | + (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) | |
| 88 | + (E := C(Icc (0 : ℝ) T,U →L[ℝ] U)) | |
| 89 | + (F := C(Icc (0 : ℝ) T,U →L[ℝ] U) →L[ℝ] C(Icc (0 : ℝ) T,U →L[ℝ] U)) | |
| 90 | + (leftMultiplicationMap (U := U) T)) hB | |
| 91 | + have hsolve (y : P) : A y (V y) = onePath := by | |
| 92 | + apply ContinuousMap.ext | |
| 93 | + intro t | |
| 94 | + apply ContinuousLinearMap.ext | |
| 95 | + intro v | |
| 96 | + exact gram_inverse_apply (Q y t) c hc (hLower y t) v | |
| 97 | + have hleft (y : P) (p : C(Icc (0 : ℝ) T,U →L[ℝ] U)) : I y (A y p) = p := by | |
| 98 | + apply ContinuousMap.ext | |
| 99 | + intro t | |
| 100 | + apply ContinuousLinearMap.ext | |
| 101 | + intro v | |
| 102 | + exact inverse_gram_apply (Q y t) c hc (hLower y t) (p t v) | |
| 103 | + have hI (y : P) : ‖I y‖ ≤ c⁻¹ := by | |
| 104 | + have h := ((leftMultiplicationMap (U := U) T).le_opNorm (V y)).trans | |
| 105 | + (mul_le_mul_of_nonneg_right (leftMultiplicationMap_norm T) (norm_nonneg (V y))) | |
| 106 | + exact (h.trans_eq (one_mul _)).trans (gramInversePath_norm T (Q y) c hc (hLower y)) | |
| 107 | + have hAall := contraction_bound (leftMultiplicationMap (U := U) T) (leftMultiplicationMap_norm T) | |
| 108 | + B hB Rc (3*C^2) hRc (by positivity) 0 (gramPath_bound T Q hQ Rc C hRc hC hbQ) | |
| 109 | + have hApos (j : ℕ) (y : P) : ‖iteratedFDeriv ℝ (j+1) A y‖ ≤ | |
| 110 | + (3*C^2)*(Rc^(j+1)*((j+1).factorial : ℝ)^2) := by | |
| 111 | + simpa only [majorant, Nat.add_zero] using hAall (j+1) y | |
| 112 | + obtain ⟨hM, hMC, hMD⟩ := cost_bounds c C 1 hc zero_le_one | |
| 113 | + have hR0 : 0 ≤ R := by nlinarith | |
| 114 | + have hone : ‖onePath‖ ≤ 1 := by | |
| 115 | + apply (ContinuousMap.norm_le _ zero_le_one).2 | |
| 116 | + intro t | |
| 117 | + exact norm_id_le | |
| 118 | + exact EulerBoundedInverseGevrey.solution_gevrey A V (fun _ : P => onePath) | |
| 119 | + hA hV contDiff_const hsolve I hleft c⁻¹ (3*C^2) 1 (gramCost c C 1) Rc R | |
| 120 | + (by positivity) zero_le_one hM hMC hMD hRc hR hI hApos 0 | |
| 121 | + (const_bound onePath R 1 hR0 hone) n x | |
| 122 | + | |
| 123 | +/-- The actual continuous solution has the same one-shift inverse estimate. -/ | |
| 124 | +theorem solution_gevrey (f : P → C(Icc (0 : ℝ) T,U)) (hf : ContDiff ℝ ∞ f) | |
| 125 | + (D R : ℝ) (hD : 0 ≤ D) (hR : 2*gramCost c C D*(Rc+1) ≤ R) | |
| 126 | + (d : ℕ) (hbf : ∀ n x, ‖iteratedFDeriv ℝ n f x‖ ≤ D*majorant R d n) | |
| 127 | + (n : ℕ) (x : P) : | |
| 128 | + ‖iteratedFDeriv ℝ n (fun y => solve T (Q y) c hc (hLower y) (f y)) x‖ ≤ | |
| 129 | + majorant R (d+1) n := by | |
| 130 | + let A := fun y => multiplier (gramPath T (Q y)) | |
| 131 | + let V := fun y => solve T (Q y) c hc (hLower y) (f y) | |
| 132 | + let I := fun y => solve T (Q y) c hc (hLower y) | |
| 133 | + have hB := gramPath_contDiff T Q hQ | |
| 134 | + have hA : ContDiff ℝ ∞ A := contDiff_multiplier (fun y => gramPath T (Q y)) hB | |
| 135 | + have hV : ContDiff ℝ ∞ V := solve_contDiff T c hc Q hLower f hQ hf | |
| 136 | + have hAall := multiplier_bound (fun y => gramPath T (Q y)) hB Rc (3*C^2) hRc | |
| 137 | + (by positivity) 0 (gramPath_bound T Q hQ Rc C hRc hC hbQ) | |
| 138 | + have hApos (j : ℕ) (y : P) : ‖iteratedFDeriv ℝ (j+1) A y‖ ≤ | |
| 139 | + (3*C^2)*(Rc^(j+1)*((j+1).factorial : ℝ)^2) := by | |
| 140 | + simpa only [majorant, Nat.add_zero] using hAall (j+1) y | |
| 141 | + obtain ⟨hM, hMC, hMD⟩ := cost_bounds c C D hc hD | |
| 142 | + exact EulerBoundedInverseGevrey.solution_gevrey A V f hA hV hf | |
| 143 | + (fun y => solve_equation T (Q y) c hc (hLower y) (f y)) I | |
| 144 | + (fun y => solve_left_inverse T (Q y) c hc (hLower y)) | |
| 145 | + c⁻¹ (3*C^2) D (gramCost c C D) Rc R (by positivity) hD hM hMC hMD hRc hR | |
| 146 | + (fun y => solve_norm T (Q y) c hc (hLower y)) hApos d hbf n x | |
| 147 | + | |
| 148 | +end EulerContinuousGramGevrey | |
+122 −0 Euler/ContinuousGramPath.lean added View file
| @@ -0,0 +1,122 @@ | ||
| 1 | +import Euler.ContinuousPathComposition | |
| 2 | +import Euler.TransverseGramPath | |
| 3 | +import Euler.TransverseStrongEstimates | |
| 4 | + | |
| 5 | +/-! | |
| 6 | +# Genuine inverse Gram calculus in the uniform time norm | |
| 7 | + | |
| 8 | +The previously constructed continuous Gram inverse is an actual inverse in | |
| 9 | +the Banach algebra of continuous operator paths. Its external-parameter | |
| 10 | +smoothness follows from inversion at units of that algebra. No smoothness | |
| 11 | +of a pre-existing inverse is assumed. | |
| 12 | +-/ | |
| 13 | + | |
| 14 | +noncomputable section | |
| 15 | + | |
| 16 | +namespace EulerContinuousGramPath | |
| 17 | + | |
| 18 | +open Set ContinuousLinearMap EulerContinuousTimeIntegral EulerContinuousPathCalculus | |
| 19 | + EulerContinuousPathComposition EulerTransverseGramInverse EulerTransverseGramPath | |
| 20 | + EulerTransverseStrongEstimates EulerOperatorGevreyCalculus EulerGevrey | |
| 21 | +open scoped ContDiff | |
| 22 | + | |
| 23 | +variable {U E : Type*} | |
| 24 | + [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] | |
| 25 | + [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] | |
| 26 | + | |
| 27 | +variable (T : ℝ) (Q : C(Icc (0 : ℝ) T,U →L[ℝ] E)) | |
| 28 | + (c : ℝ) (hc : 0 < c) (hQ : ∀ t v, c*‖v‖^2 ≤ ‖Q t v‖^2) | |
| 29 | + | |
| 30 | +/-- The actual Gram path and its actual continuous inverse form a unit. -/ | |
| 31 | +def gramPathUnit : (C(Icc (0 : ℝ) T,U →L[ℝ] U))ˣ where | |
| 32 | + val := gramPath T Q | |
| 33 | + inv := gramInversePath T Q c hc hQ | |
| 34 | + val_inv := by | |
| 35 | + apply ContinuousMap.ext | |
| 36 | + intro t | |
| 37 | + apply ContinuousLinearMap.ext | |
| 38 | + intro v | |
| 39 | + exact gram_inverse_apply (Q t) c hc (hQ t) v | |
| 40 | + inv_val := by | |
| 41 | + apply ContinuousMap.ext | |
| 42 | + intro t | |
| 43 | + apply ContinuousLinearMap.ext | |
| 44 | + intro v | |
| 45 | + exact inverse_gram_apply (Q t) c hc (hQ t) v | |
| 46 | + | |
| 47 | +/-- The constructed path is exactly Banach-algebra inversion of the Gram coefficient. -/ | |
| 48 | +theorem gramInversePath_eq_ringInverse : | |
| 49 | + gramInversePath T Q c hc hQ = Ring.inverse (gramPath T Q) := | |
| 50 | + (Ring.inverse_unit (M₀ := C(Icc (0 : ℝ) T,U →L[ℝ] U)) (gramPathUnit T Q c hc hQ)).symm | |
| 51 | + | |
| 52 | +/-- The actual inverse acting on continuous forcing paths. -/ | |
| 53 | +def solve : C(Icc (0 : ℝ) T,U) →L[ℝ] C(Icc (0 : ℝ) T,U) := | |
| 54 | + multiplier (gramInversePath T Q c hc hQ) | |
| 55 | + | |
| 56 | +/-- The continuous solution satisfies the actual coefficient equation. -/ | |
| 57 | +theorem solve_equation (f : C(Icc (0 : ℝ) T,U)) : | |
| 58 | + multiplier (gramPath T Q) (solve T Q c hc hQ f) = f := by | |
| 59 | + apply ContinuousMap.ext | |
| 60 | + intro t | |
| 61 | + exact gram_inverse_apply (Q t) c hc (hQ t) (f t) | |
| 62 | + | |
| 63 | +/-- The constructed inverse is also a left inverse in the uniform path space. -/ | |
| 64 | +theorem solve_left_inverse (f : C(Icc (0 : ℝ) T,U)) : | |
| 65 | + solve T Q c hc hQ (multiplier (gramPath T Q) f) = f := by | |
| 66 | + apply ContinuousMap.ext | |
| 67 | + intro t | |
| 68 | + exact inverse_gram_apply (Q t) c hc (hQ t) (f t) | |
| 69 | + | |
| 70 | +/-- The uniform-in-time inverse has the same genuine coercive bound. -/ | |
| 71 | +theorem solve_norm : ‖solve T Q c hc hQ‖ ≤ c⁻¹ := | |
| 72 | + (multiplier_norm (gramInversePath T Q c hc hQ)).trans (gramInversePath_norm T Q c hc hQ) | |
| 73 | + | |
| 74 | +variable {P : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P] | |
| 75 | + | |
| 76 | +/-- The actual Gram path is smoothly parameterized in the uniform time norm. -/ | |
| 77 | +theorem gramPath_contDiff (Qp : P → C(Icc (0 : ℝ) T,U →L[ℝ] E)) {n : ℕ∞ω} | |
| 78 | + (hQp : ContDiff ℝ n Qp) : ContDiff ℝ n (fun x => gramPath T (Qp x)) := | |
| 79 | + contDiff_compose (fun x => adjointMap (Qp x)) Qp (contDiff_adjoint Qp hQp) hQp | |
| 80 | + | |
| 81 | +/-- Actual inverse-path regularity follows from the constructed Banach-algebra unit. -/ | |
| 82 | +theorem gramInversePath_contDiff (Qp : P → C(Icc (0 : ℝ) T,U →L[ℝ] E)) | |
| 83 | + (hLower : ∀ x t v, c*‖v‖^2 ≤ ‖Qp x t v‖^2) {n : ℕ∞ω} | |
| 84 | + (hQp : ContDiff ℝ n Qp) : | |
| 85 | + ContDiff ℝ n (fun x => gramInversePath T (Qp x) c hc (hLower x)) := by | |
| 86 | + have heq : (fun x => gramInversePath T (Qp x) c hc (hLower x)) = | |
| 87 | + Ring.inverse ∘ (fun x => gramPath T (Qp x)) := | |
| 88 | + funext (fun x => gramInversePath_eq_ringInverse T (Qp x) c hc (hLower x)) | |
| 89 | + rw [heq, contDiff_iff_contDiffAt] | |
| 90 | + intro x | |
| 91 | + exact (contDiffAt_ringInverse ℝ (R := C(Icc (0 : ℝ) T,U →L[ℝ] U)) | |
| 92 | + (gramPathUnit T (Qp x) c hc (hLower x))).comp x | |
| 93 | + (gramPath_contDiff T Qp hQp).contDiffAt | |
| 94 | + | |
| 95 | +/-- The genuinely constructed uniform-time solution is smoothly parameterized. -/ | |
| 96 | +theorem solve_contDiff (Qp : P → C(Icc (0 : ℝ) T,U →L[ℝ] E)) | |
| 97 | + (hLower : ∀ x t v, c*‖v‖^2 ≤ ‖Qp x t v‖^2) (f : P → C(Icc (0 : ℝ) T,U)) | |
| 98 | + {n : ℕ∞ω} (hQp : ContDiff ℝ n Qp) (hf : ContDiff ℝ n f) : | |
| 99 | + ContDiff ℝ n (fun x => solve T (Qp x) c hc (hLower x) (f x)) := | |
| 100 | + contDiff_apply (fun x => gramInversePath T (Qp x) c hc (hLower x)) f | |
| 101 | + (gramInversePath_contDiff T c hc Qp hLower hQp) hf | |
| 102 | + | |
| 103 | +/-- The actual Gram coefficient has the uniform factorial product bound. -/ | |
| 104 | +theorem gramPath_bound (Qp : P → C(Icc (0 : ℝ) T,U →L[ℝ] E)) (hQp : ContDiff ℝ ∞ Qp) | |
| 105 | + (R C : ℝ) (hR : 0 ≤ R) (hC : 0 ≤ C) | |
| 106 | + (hb : ∀ n x, ‖iteratedFDeriv ℝ n Qp x‖ ≤ C*majorant R 0 n) (n : ℕ) (x : P) : | |
| 107 | + ‖iteratedFDeriv ℝ n (fun y => gramPath T (Qp y)) x‖ ≤ (3*C^2)*majorant R 0 n := by | |
| 108 | + have h := compose_bound (fun y => adjointMap (Qp y)) Qp | |
| 109 | + (contDiff_adjoint Qp hQp) hQp R C C hR hC hC 0 0 | |
| 110 | + (EulerContinuousPathComposition.adjoint_bound Qp hQp R C hR hC 0 hb) hb n x | |
| 111 | + have he : 3*C*C = 3*C^2 := by ring | |
| 112 | + have hfun : (fun y => gramPath T (Qp y)) = | |
| 113 | + fun y => compose (adjointMap (Qp y)) (Qp y) := by | |
| 114 | + funext y | |
| 115 | + apply ContinuousMap.ext | |
| 116 | + intro t | |
| 117 | + rfl | |
| 118 | + exact (congrArg (fun g : P → C(Icc (0 : ℝ) T,U →L[ℝ] U) => | |
| 119 | + ‖iteratedFDeriv ℝ n g x‖) hfun).trans_le | |
| 120 | + (by simpa only [Nat.add_zero, he] using h) | |
| 121 | + | |
| 122 | +end EulerContinuousGramPath | |
+49 −0 Euler/ContinuousGramSobolev.lean added View file
| @@ -0,0 +1,49 @@ | ||
| 1 | +import Euler.ContinuousGramGevrey | |
| 2 | +import Euler.TimeLpGramSobolev | |
| 3 | + | |
| 4 | +/-! The actual uniform-time Gram inverse in fixed Sobolev word blocks. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerContinuousGramSobolev | |
| 9 | + | |
| 10 | +open Set ContinuousLinearMap EulerContinuousTimeIntegral EulerContinuousPathCalculus | |
| 11 | + EulerContinuousPathComposition EulerTransverseGramPath EulerContinuousGramPath EulerTimeLpGramSobolev | |
| 12 | + EulerParameterWordGevrey EulerGevrey | |
| 13 | +open scoped ContDiff | |
| 14 | + | |
| 15 | +variable {P U E ι : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P] | |
| 16 | + [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] | |
| 17 | + [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] [Fintype ι] | |
| 18 | + | |
| 19 | +/-- The continuous Gram solve is bounded in the same fixed Sobolev order and | |
| 20 | +external radius as its input, with one factorial shift and a fixed cost. -/ | |
| 21 | +theorem solution_block_gevrey (directions : ι → P) | |
| 22 | + (hd : ∀ i, ‖directions i‖ ≤ 1) (q : ℕ) (T : ℝ) | |
| 23 | + (Q : P → C(Icc (0 : ℝ) T,U →L[ℝ] E)) | |
| 24 | + (c : ℝ) (hc : 0 < c) (hLower : ∀ x t v, c*‖v‖^2 ≤ ‖Q x t v‖^2) | |
| 25 | + (hQ : ContDiff ℝ ∞ Q) | |
| 26 | + (Rc C : ℝ) (hRc : 0 ≤ Rc) (hC : 0 ≤ C) | |
| 27 | + (hbQ : ∀ n x, ‖iteratedFDeriv ℝ n Q x‖ ≤ C*majorant Rc 0 n) | |
| 28 | + (f : P → C(Icc (0 : ℝ) T,U)) (hf : ContDiff ℝ ∞ f) | |
| 29 | + (D R : ℝ) (hD : 0 ≤ D) | |
| 30 | + (hR : 2*gramBlockCost ι q c Rc C D*(sobolevCoefficientRadius ι Rc+1) ≤ R) | |
| 31 | + (d : ℕ) (hbf : ∀ n x, block directions q f n x ≤ D*majorant R d n) | |
| 32 | + (n : ℕ) (x : P) : | |
| 33 | + block directions q (fun y => solve T (Q y) c hc (hLower y) (f y)) n x ≤ | |
| 34 | + majorant R (d+1) n := by | |
| 35 | + let A := fun y => multiplier (gramPath T (Q y)) | |
| 36 | + let V := fun y => solve T (Q y) c hc (hLower y) (f y) | |
| 37 | + let I := fun y => solve T (Q y) c hc (hLower y) | |
| 38 | + have hB := gramPath_contDiff T Q hQ | |
| 39 | + have hA : ContDiff ℝ ∞ A := contDiff_multiplier (fun y => gramPath T (Q y)) hB | |
| 40 | + have hV : ContDiff ℝ ∞ V := solve_contDiff T c hc Q hLower f hQ hf | |
| 41 | + have hAall := multiplier_bound (fun y => gramPath T (Q y)) hB Rc (3*C^2) hRc | |
| 42 | + (by positivity) 0 (gramPath_bound T Q hQ Rc C hRc hC hbQ) | |
| 43 | + exact inverse_block_gevrey_of_tensor directions hd q A V f hA hV hf | |
| 44 | + (fun y => solve_equation T (Q y) c hc (hLower y) (f y)) I | |
| 45 | + (fun y => solve_left_inverse T (Q y) c hc (hLower y)) | |
| 46 | + c⁻¹ Rc (3*C^2) D R hRc (by positivity) hD | |
| 47 | + (fun y => solve_norm T (Q y) c hc (hLower y)) hAall hR d hbf n x | |
| 48 | + | |
| 49 | +end EulerContinuousGramSobolev | |
+27 −0 Euler/ContinuousInverseDerivative.lean added View file
| @@ -0,0 +1,27 @@ | ||
| 1 | +import Mathlib.Analysis.Calculus.FDeriv.OfCompLeft | |
| 2 | + | |
| 3 | +/-! An actual continuous inverse has the inverse Jacobian as its derivative. | |
| 4 | +This is the easy half of the inverse function theorem; no differentiability | |
| 5 | +of the inverse is an independent assumption. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +open scoped Topology | |
| 10 | + | |
| 11 | +namespace EulerContinuousInverseDerivative | |
| 12 | + | |
| 13 | +variable {E F : Type*} | |
| 14 | + [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 15 | + [NormedAddCommGroup F] [NormedSpace ℝ F] | |
| 16 | + | |
| 17 | +theorem hasFDerivAt_inverse | |
| 18 | + (X : F → E) (Y : E → F) (x : E) | |
| 19 | + (J : F →L[ℝ] E) (I : E →L[ℝ] F) | |
| 20 | + (hY : ContinuousAt Y x) (hX : HasFDerivAt X J (Y x)) | |
| 21 | + (hXY : ∀ᶠ y in 𝓝 x, X (Y y) = y) | |
| 22 | + (hI : Function.LeftInverse I J) : HasFDerivAt Y I x := by | |
| 23 | + have h := HasFDerivAt.of_comp_of_leftInverse (f'symm := I) | |
| 24 | + hY hX (hasFDerivAt_id x) hXY hI | |
| 25 | + simpa only [ContinuousLinearMap.comp_id] using h | |
| 26 | + | |
| 27 | +end EulerContinuousInverseDerivative | |
+103 −0 Euler/ContinuousPathCalculus.lean added View file
| @@ -0,0 +1,103 @@ | ||
| 1 | +import Euler.ContinuousTimeIntegral | |
| 2 | +import Euler.OperatorGevreyCalculus | |
| 3 | + | |
| 4 | +/-! | |
| 5 | +# Genuine coefficient calculus on continuous path spaces | |
| 6 | + | |
| 7 | +Pointwise multiplication by an operator-valued continuous path depends | |
| 8 | +bounded-linearly on that path. Its operator norm, actual parameter | |
| 9 | +derivatives, and factorial estimates therefore come directly from the | |
| 10 | +coefficient, with no loss in the coefficient amplitude. | |
| 11 | +-/ | |
| 12 | + | |
| 13 | +noncomputable section | |
| 14 | + | |
| 15 | +namespace EulerContinuousPathCalculus | |
| 16 | + | |
| 17 | +open ContinuousLinearMap EulerContinuousTimeIntegral EulerOperatorGevreyCalculus EulerGevrey | |
| 18 | +open scoped ContDiff | |
| 19 | + | |
| 20 | +variable {K E F : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 21 | + [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 22 | + [NormedAddCommGroup F] [NormedSpace ℝ F] | |
| 23 | + | |
| 24 | +private local instance : NormedAddCommGroup (E →L[ℝ] F) := inferInstance | |
| 25 | +private local instance : NormedSpace ℝ (E →L[ℝ] F) := inferInstance | |
| 26 | +private local instance : NormedAddCommGroup C(K,E) := inferInstance | |
| 27 | +private local instance : NormedSpace ℝ C(K,E) := inferInstance | |
| 28 | +private local instance : NormedAddCommGroup C(K,F) := inferInstance | |
| 29 | +private local instance : NormedSpace ℝ C(K,F) := inferInstance | |
| 30 | +private local instance : NormedAddCommGroup C(K,E →L[ℝ] F) := inferInstance | |
| 31 | +private local instance : NormedSpace ℝ C(K,E →L[ℝ] F) := inferInstance | |
| 32 | +private local instance : NormedAddCommGroup (C(K,E) →L[ℝ] C(K,F)) := inferInstance | |
| 33 | +private local instance : NormedSpace ℝ (C(K,E) →L[ℝ] C(K,F)) := inferInstance | |
| 34 | + | |
| 35 | +/-- The actual coefficient-to-continuous-multiplier map is linear. -/ | |
| 36 | +def coefficientLinear : C(K,E →L[ℝ] F) →ₗ[ℝ] (C(K,E) →L[ℝ] C(K,F)) where | |
| 37 | + toFun := multiplier | |
| 38 | + map_add' A B := by | |
| 39 | + apply ContinuousLinearMap.ext | |
| 40 | + intro p | |
| 41 | + apply ContinuousMap.ext | |
| 42 | + intro t | |
| 43 | + rfl | |
| 44 | + map_smul' r A := by | |
| 45 | + apply ContinuousLinearMap.ext | |
| 46 | + intro p | |
| 47 | + apply ContinuousMap.ext | |
| 48 | + intro t | |
| 49 | + rfl | |
| 50 | + | |
| 51 | +/-- A bounded linear map in the actual uniform coefficient norm. -/ | |
| 52 | +def coefficientMap : C(K,E →L[ℝ] F) →L[ℝ] (C(K,E) →L[ℝ] C(K,F)) where | |
| 53 | + toLinearMap := coefficientLinear | |
| 54 | + cont := AddMonoidHomClass.continuous_of_bound (coefficientLinear (K := K) (E := E) (F := F)) | |
| 55 | + 1 (fun A => by | |
| 56 | + change ‖multiplier A‖ ≤ (1 : ℝ)*‖A‖ | |
| 57 | + simpa only [one_mul] using multiplier_norm A) | |
| 58 | + | |
| 59 | +@[simp] theorem coefficientMap_apply (A : C(K,E →L[ℝ] F)) : coefficientMap A = multiplier A := rfl | |
| 60 | + | |
| 61 | +/-- Coefficient lifting to continuous paths is a norm contraction. -/ | |
| 62 | +theorem coefficientMap_norm : ‖coefficientMap (K := K) (E := E) (F := F)‖ ≤ 1 := by | |
| 63 | + apply opNorm_le_bound _ zero_le_one | |
| 64 | + intro A | |
| 65 | + simpa only [coefficientMap_apply, one_mul] using multiplier_norm A | |
| 66 | + | |
| 67 | +variable {P : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P] | |
| 68 | + | |
| 69 | +/-- Genuine parameter regularity of the continuous multiplier. -/ | |
| 70 | +theorem contDiff_multiplier (A : P → C(K,E →L[ℝ] F)) {n : ℕ∞ω} (hA : ContDiff ℝ n A) : | |
| 71 | + ContDiff ℝ n (fun x => multiplier (A x)) := by | |
| 72 | + change ContDiff ℝ n ((coefficientMap (K := K) (E := E) (F := F)) ∘ A) | |
| 73 | + exact ContDiff.comp (g := coefficientMap (K := K) (E := E) (F := F)) (f := A) | |
| 74 | + (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := n) | |
| 75 | + (E := C(K,E →L[ℝ] F)) (F := C(K,E) →L[ℝ] C(K,F)) coefficientMap) hA | |
| 76 | + | |
| 77 | +/-- Actual derivative estimates of the continuous multiplier have no amplitude loss. -/ | |
| 78 | +theorem multiplier_bound (A : P → C(K,E →L[ℝ] F)) (hA : ContDiff ℝ ∞ A) | |
| 79 | + (R C : ℝ) (hR : 0 ≤ R) (hC : 0 ≤ C) (d : ℕ) | |
| 80 | + (hb : ∀ n x, ‖iteratedFDeriv ℝ n A x‖ ≤ C*majorant R d n) (n : ℕ) (x : P) : | |
| 81 | + ‖iteratedFDeriv ℝ n (fun y => multiplier (A y)) x‖ ≤ C*majorant R d n := | |
| 82 | + contraction_bound (coefficientMap (K := K) (E := E) (F := F)) coefficientMap_norm | |
| 83 | + A hA R C hR hC d hb n x | |
| 84 | + | |
| 85 | +/-- Pointwise application to a continuous path is genuinely smooth. -/ | |
| 86 | +theorem contDiff_apply (A : P → C(K,E →L[ℝ] F)) (f : P → C(K,E)) | |
| 87 | + {n : ℕ∞ω} (hA : ContDiff ℝ n A) (hf : ContDiff ℝ n f) : | |
| 88 | + ContDiff ℝ n (fun x => multiplier (A x) (f x)) := | |
| 89 | + (contDiff_multiplier A hA).clm_apply hf | |
| 90 | + | |
| 91 | +/-- The actual pointwise product obeys the fixed factorial product estimate. -/ | |
| 92 | +theorem apply_bound (A : P → C(K,E →L[ℝ] F)) (f : P → C(K,E)) | |
| 93 | + (hA : ContDiff ℝ ∞ A) (hf : ContDiff ℝ ∞ f) | |
| 94 | + (R C D : ℝ) (hR : 0 ≤ R) (hC : 0 ≤ C) (hD : 0 ≤ D) (c d : ℕ) | |
| 95 | + (hA_bound : ∀ n x, ‖iteratedFDeriv ℝ n A x‖ ≤ C*majorant R c n) | |
| 96 | + (hf_bound : ∀ n x, ‖iteratedFDeriv ℝ n f x‖ ≤ D*majorant R d n) | |
| 97 | + (n : ℕ) (x : P) : | |
| 98 | + ‖iteratedFDeriv ℝ n (fun y => multiplier (A y) (f y)) x‖ ≤ | |
| 99 | + (3*C*D)*majorant R (c+d) n := | |
| 100 | + clm_apply_bound (fun y => multiplier (A y)) f (contDiff_multiplier A hA) hf | |
| 101 | + R C D hR hC hD c d (multiplier_bound A hA R C hR hC c hA_bound) hf_bound n x | |
| 102 | + | |
| 103 | +end EulerContinuousPathCalculus | |
+152 −0 Euler/ContinuousPathComposition.lean added View file
| @@ -0,0 +1,152 @@ | ||
| 1 | +import Euler.ContinuousPathCalculus | |
| 2 | +import Euler.TransverseGramInverse | |
| 3 | + | |
| 4 | +/-! | |
| 5 | +# Actual composition and adjoint calculus on continuous paths | |
| 6 | + | |
| 7 | +The pointwise operator operations are built from bounded maps in the uniform | |
| 8 | +norm. Their regularity and factorial bounds are consequently genuine | |
| 9 | +derivative statements in that norm. | |
| 10 | +-/ | |
| 11 | + | |
| 12 | +noncomputable section | |
| 13 | + | |
| 14 | +namespace EulerContinuousPathComposition | |
| 15 | + | |
| 16 | +open ContinuousLinearMap EulerContinuousTimeIntegral EulerContinuousPathCalculus | |
| 17 | + EulerTransverseGramInverse EulerOperatorGevreyCalculus EulerGevrey | |
| 18 | +open scoped ContDiff | |
| 19 | + | |
| 20 | +variable {K : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 21 | + | |
| 22 | +section Normed | |
| 23 | + | |
| 24 | +variable {U E F : Type*} | |
| 25 | + [NormedAddCommGroup U] [NormedSpace ℝ U] | |
| 26 | + [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 27 | + [NormedAddCommGroup F] [NormedSpace ℝ F] | |
| 28 | + | |
| 29 | +private local instance : NormedAddCommGroup (E →L[ℝ] F) := inferInstance | |
| 30 | +private local instance : NormedSpace ℝ (E →L[ℝ] F) := inferInstance | |
| 31 | +private local instance : NormedAddCommGroup (U →L[ℝ] E) := inferInstance | |
| 32 | +private local instance : NormedSpace ℝ (U →L[ℝ] E) := inferInstance | |
| 33 | +private local instance : NormedAddCommGroup (U →L[ℝ] F) := inferInstance | |
| 34 | +private local instance : NormedSpace ℝ (U →L[ℝ] F) := inferInstance | |
| 35 | +private local instance : NormedAddCommGroup ((U →L[ℝ] E) →L[ℝ] U →L[ℝ] F) := inferInstance | |
| 36 | +private local instance : NormedSpace ℝ ((U →L[ℝ] E) →L[ℝ] U →L[ℝ] F) := inferInstance | |
| 37 | +private local instance : NormedAddCommGroup C(K,E →L[ℝ] F) := inferInstance | |
| 38 | +private local instance : NormedSpace ℝ C(K,E →L[ℝ] F) := inferInstance | |
| 39 | +private local instance : NormedAddCommGroup C(K,U →L[ℝ] E) := inferInstance | |
| 40 | +private local instance : NormedSpace ℝ C(K,U →L[ℝ] E) := inferInstance | |
| 41 | +private local instance : NormedAddCommGroup C(K,U →L[ℝ] F) := inferInstance | |
| 42 | +private local instance : NormedSpace ℝ C(K,U →L[ℝ] F) := inferInstance | |
| 43 | +private local instance : NormedAddCommGroup C(K,(U →L[ℝ] E) →L[ℝ] U →L[ℝ] F) := inferInstance | |
| 44 | +private local instance : NormedSpace ℝ C(K,(U →L[ℝ] E) →L[ℝ] U →L[ℝ] F) := inferInstance | |
| 45 | + | |
| 46 | +/-- A fixed bounded map acts pointwise on continuous paths with the same norm bound. -/ | |
| 47 | +theorem postcomposition_norm (A : E →L[ℝ] F) : | |
| 48 | + ‖A.compLeftContinuous ℝ K‖ ≤ ‖A‖ := by | |
| 49 | + apply opNorm_le_bound _ (norm_nonneg A) | |
| 50 | + intro p | |
| 51 | + apply (ContinuousMap.norm_le _ (mul_nonneg (norm_nonneg A) (norm_nonneg p))).2 | |
| 52 | + intro t | |
| 53 | + exact (A.le_opNorm (p t)).trans | |
| 54 | + (mul_le_mul_of_nonneg_left (p.norm_coe_le_norm t) (norm_nonneg A)) | |
| 55 | + | |
| 56 | +/-- Lift the actual operator composition bilinear map to the coefficient path. -/ | |
| 57 | +def compositionLift : C(K,E →L[ℝ] F) →L[ℝ] C(K,(U →L[ℝ] E) →L[ℝ] U →L[ℝ] F) := | |
| 58 | + (compL ℝ U E F).compLeftContinuous ℝ K | |
| 59 | + | |
| 60 | +include U E F in | |
| 61 | +theorem compositionLift_norm : ‖compositionLift (K := K) (U := U) (E := E) (F := F)‖ ≤ 1 := | |
| 62 | + (postcomposition_norm (K := K) (compL ℝ U E F)).trans (norm_compL_le ℝ U E F) | |
| 63 | + | |
| 64 | +/-- Literal pointwise composition of two continuous coefficient paths. -/ | |
| 65 | +def compose (A : C(K,E →L[ℝ] F)) (B : C(K,U →L[ℝ] E)) : C(K,U →L[ℝ] F) := | |
| 66 | + multiplier (compositionLift A) B | |
| 67 | + | |
| 68 | +@[simp] theorem compose_apply (A : C(K,E →L[ℝ] F)) (B : C(K,U →L[ℝ] E)) (t : K) : | |
| 69 | + compose A B t = (A t).comp (B t) := rfl | |
| 70 | + | |
| 71 | +variable {P : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P] | |
| 72 | + | |
| 73 | +/-- Actual uniform-norm smoothness of pointwise composition. -/ | |
| 74 | +theorem contDiff_compose (A : P → C(K,E →L[ℝ] F)) (B : P → C(K,U →L[ℝ] E)) | |
| 75 | + {n : ℕ∞ω} (hA : ContDiff ℝ n A) (hB : ContDiff ℝ n B) : | |
| 76 | + ContDiff ℝ n (fun x => compose (A x) (B x)) := by | |
| 77 | + have hLift : ContDiff ℝ n (fun x => compositionLift (U := U) (A x)) := | |
| 78 | + ContDiff.comp (g := compositionLift (K := K) (U := U) (E := E) (F := F)) (f := A) | |
| 79 | + (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := n) | |
| 80 | + (E := C(K,E →L[ℝ] F)) (F := C(K,(U →L[ℝ] E) →L[ℝ] U →L[ℝ] F)) | |
| 81 | + (compositionLift (K := K) (U := U) (E := E) (F := F))) hA | |
| 82 | + exact contDiff_apply (fun x => compositionLift (U := U) (A x)) B hLift hB | |
| 83 | + | |
| 84 | +/-- Pointwise composition has the same fixed factorial product constant. -/ | |
| 85 | +theorem compose_bound (A : P → C(K,E →L[ℝ] F)) (B : P → C(K,U →L[ℝ] E)) | |
| 86 | + (hA : ContDiff ℝ ∞ A) (hB : ContDiff ℝ ∞ B) | |
| 87 | + (R C D : ℝ) (hR : 0 ≤ R) (hC : 0 ≤ C) (hD : 0 ≤ D) (c d : ℕ) | |
| 88 | + (hbA : ∀ n x, ‖iteratedFDeriv ℝ n A x‖ ≤ C*majorant R c n) | |
| 89 | + (hbB : ∀ n x, ‖iteratedFDeriv ℝ n B x‖ ≤ D*majorant R d n) | |
| 90 | + (n : ℕ) (x : P) : | |
| 91 | + ‖iteratedFDeriv ℝ n (fun y => compose (A y) (B y)) x‖ ≤ | |
| 92 | + (3*C*D)*majorant R (c+d) n := by | |
| 93 | + have hLift : ContDiff ℝ ∞ (fun x => compositionLift (U := U) (A x)) := | |
| 94 | + ContDiff.comp (g := compositionLift (K := K) (U := U) (E := E) (F := F)) (f := A) | |
| 95 | + (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) | |
| 96 | + (E := C(K,E →L[ℝ] F)) (F := C(K,(U →L[ℝ] E) →L[ℝ] U →L[ℝ] F)) | |
| 97 | + (compositionLift (K := K) (U := U) (E := E) (F := F))) hA | |
| 98 | + have hbLift := contraction_bound (compositionLift (K := K) (U := U) (E := E) (F := F)) | |
| 99 | + compositionLift_norm A hA R C hR hC c hbA | |
| 100 | + exact apply_bound (fun y => compositionLift (U := U) (A y)) B hLift hB | |
| 101 | + R C D hR hC hD c d hbLift hbB n x | |
| 102 | + | |
| 103 | +end Normed | |
| 104 | + | |
| 105 | +section Hilbert | |
| 106 | + | |
| 107 | +variable {U E : Type*} | |
| 108 | + [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] | |
| 109 | + [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] | |
| 110 | + | |
| 111 | +private local instance : NormedAddCommGroup (U →L[ℝ] E) := inferInstance | |
| 112 | +private local instance : NormedSpace ℝ (U →L[ℝ] E) := inferInstance | |
| 113 | +private local instance : NormedAddCommGroup (E →L[ℝ] U) := inferInstance | |
| 114 | +private local instance : NormedSpace ℝ (E →L[ℝ] U) := inferInstance | |
| 115 | +private local instance : NormedAddCommGroup C(K,U →L[ℝ] E) := inferInstance | |
| 116 | +private local instance : NormedSpace ℝ C(K,U →L[ℝ] E) := inferInstance | |
| 117 | +private local instance : NormedAddCommGroup C(K,E →L[ℝ] U) := inferInstance | |
| 118 | +private local instance : NormedSpace ℝ C(K,E →L[ℝ] U) := inferInstance | |
| 119 | + | |
| 120 | +/-- Actual adjoint at every parameter in the compact path domain. -/ | |
| 121 | +def adjointMap : C(K,U →L[ℝ] E) →L[ℝ] C(K,E →L[ℝ] U) := | |
| 122 | + (realAdjoint (U := U) (E := E)).compLeftContinuous ℝ K | |
| 123 | + | |
| 124 | +omit [CompactSpace K] in | |
| 125 | +@[simp] theorem adjointMap_apply (A : C(K,U →L[ℝ] E)) (t : K) : | |
| 126 | + adjointMap A t = (A t).adjoint := rfl | |
| 127 | + | |
| 128 | +theorem adjointMap_norm : ‖adjointMap (K := K) (U := U) (E := E)‖ ≤ 1 := by | |
| 129 | + apply (postcomposition_norm (K := K) (realAdjoint (U := U) (E := E))).trans | |
| 130 | + apply opNorm_le_bound _ zero_le_one | |
| 131 | + intro A | |
| 132 | + change ‖A.adjoint‖ ≤ (1 : ℝ)*‖A‖ | |
| 133 | + simp only [LinearIsometryEquiv.norm_map, one_mul, le_refl] | |
| 134 | + | |
| 135 | +variable {P : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P] | |
| 136 | + | |
| 137 | +theorem contDiff_adjoint (A : P → C(K,U →L[ℝ] E)) {n : ℕ∞ω} (hA : ContDiff ℝ n A) : | |
| 138 | + ContDiff ℝ n (fun x => adjointMap (A x)) := | |
| 139 | + ContDiff.comp (g := adjointMap (K := K) (U := U) (E := E)) (f := A) | |
| 140 | + (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := n) | |
| 141 | + (E := C(K,U →L[ℝ] E)) (F := C(K,E →L[ℝ] U)) | |
| 142 | + (adjointMap (K := K) (U := U) (E := E))) hA | |
| 143 | + | |
| 144 | +theorem adjoint_bound (A : P → C(K,U →L[ℝ] E)) (hA : ContDiff ℝ ∞ A) | |
| 145 | + (R C : ℝ) (hR : 0 ≤ R) (hC : 0 ≤ C) (d : ℕ) | |
| 146 | + (hb : ∀ n x, ‖iteratedFDeriv ℝ n A x‖ ≤ C*majorant R d n) (n : ℕ) (x : P) : | |
| 147 | + ‖iteratedFDeriv ℝ n (fun y => adjointMap (A y)) x‖ ≤ C*majorant R d n := | |
| 148 | + contraction_bound (adjointMap (K := K) (U := U) (E := E)) adjointMap_norm A hA R C hR hC d hb n x | |
| 149 | + | |
| 150 | +end Hilbert | |
| 151 | + | |
| 152 | +end EulerContinuousPathComposition | |
+239 −0 Euler/ContinuousSpatialFamily.lean added View file
| @@ -0,0 +1,239 @@ | ||
| 1 | +import Euler.MeanCutoffTaylor | |
| 2 | +import Euler.ContinuousPathComposition | |
| 3 | + | |
| 4 | +/-! | |
| 5 | +# Actual spatial derivatives in the uniform norm on continuous paths | |
| 6 | + | |
| 7 | +A family of continuous paths whose pointwise spatial derivatives are actual | |
| 8 | +continuous paths, with uniform bounds, is smooth in the uniform path norm. | |
| 9 | +The proof uses a quadratic Taylor remainder and loses no derivative-bound | |
| 10 | +constant. No uniform-path differentiability is assumed. | |
| 11 | +-/ | |
| 12 | + | |
| 13 | +noncomputable section | |
| 14 | + | |
| 15 | +namespace EulerContinuousSpatialFamily | |
| 16 | + | |
| 17 | +open ContinuousLinearMap EulerSmoothLimit Filter | |
| 18 | +open scoped ContDiff Topology | |
| 19 | + | |
| 20 | +universe u v | |
| 21 | + | |
| 22 | +section Bundling | |
| 23 | + | |
| 24 | +variable {K : Type u} [TopologicalSpace K] [CompactSpace K] | |
| 25 | + {V : Type v} [NormedAddCommGroup V] [NormedSpace ℝ V] | |
| 26 | + | |
| 27 | +private local instance : NormedAddCommGroup (Space →L[ℝ] V) := inferInstance | |
| 28 | +private local instance : NormedSpace ℝ (Space →L[ℝ] V) := inferInstance | |
| 29 | +private local instance : NormedAddCommGroup C(K,V) := inferInstance | |
| 30 | +private local instance : NormedSpace ℝ C(K,V) := inferInstance | |
| 31 | +private local instance : NormedAddCommGroup C(K,Space →L[ℝ] V) := inferInstance | |
| 32 | +private local instance : NormedSpace ℝ C(K,Space →L[ℝ] V) := inferInstance | |
| 33 | +private local instance : NormedAddCommGroup (Space →L[ℝ] C(K,V)) := inferInstance | |
| 34 | +private local instance : NormedSpace ℝ (Space →L[ℝ] C(K,V)) := inferInstance | |
| 35 | + | |
| 36 | +def direction (D : C(K,Space →L[ℝ] V)) (a : Space) : C(K,V) := | |
| 37 | + ⟨fun t => D t a, D.continuous.clm_apply continuous_const⟩ | |
| 38 | + | |
| 39 | +theorem direction_norm_le (D : C(K,Space →L[ℝ] V)) (a : Space) : | |
| 40 | + ‖direction D a‖ ≤ ‖D‖*‖a‖ := by | |
| 41 | + apply (ContinuousMap.norm_le _ (mul_nonneg (norm_nonneg D) (norm_nonneg a))).2 | |
| 42 | + intro t | |
| 43 | + exact ((D t).le_opNorm a).trans | |
| 44 | + (mul_le_mul_of_nonneg_right (D.norm_coe_le_norm t) (norm_nonneg a)) | |
| 45 | + | |
| 46 | +def derivativeLinear (D : C(K,Space →L[ℝ] V)) : Space →ₗ[ℝ] C(K,V) where | |
| 47 | + toFun := direction D | |
| 48 | + map_add' a b := by ext t; exact (D t).map_add a b | |
| 49 | + map_smul' c a := by ext t; exact (D t).map_smul c a | |
| 50 | + | |
| 51 | +def derivativeMap (D : C(K,Space →L[ℝ] V)) : Space →L[ℝ] C(K,V) where | |
| 52 | + toLinearMap := derivativeLinear D | |
| 53 | + cont := AddMonoidHomClass.continuous_of_bound (derivativeLinear D) ‖D‖ | |
| 54 | + (direction_norm_le D) | |
| 55 | + | |
| 56 | +@[simp] theorem derivativeMap_apply (D : C(K,Space →L[ℝ] V)) (a : Space) (t : K) : | |
| 57 | + derivativeMap D a t = D t a := rfl | |
| 58 | + | |
| 59 | +theorem derivativeMap_norm_le (D : C(K,Space →L[ℝ] V)) : ‖derivativeMap D‖ ≤ ‖D‖ := | |
| 60 | + (derivativeMap D).opNorm_le_bound (norm_nonneg D) (direction_norm_le D) | |
| 61 | + | |
| 62 | +def derivativeBundlingLinear : C(K,Space →L[ℝ] V) →ₗ[ℝ] (Space →L[ℝ] C(K,V)) where | |
| 63 | + toFun := derivativeMap | |
| 64 | + map_add' D E := by ext a t; rfl | |
| 65 | + map_smul' c D := by ext a t; rfl | |
| 66 | + | |
| 67 | +def derivativeBundling : C(K,Space →L[ℝ] V) →L[ℝ] (Space →L[ℝ] C(K,V)) where | |
| 68 | + toLinearMap := derivativeBundlingLinear | |
| 69 | + cont := AddMonoidHomClass.continuous_of_bound (derivativeBundlingLinear (K := K) (V := V)) 1 | |
| 70 | + (fun D => by | |
| 71 | + change ‖derivativeMap D‖ ≤ 1*‖D‖ | |
| 72 | + simpa only [one_mul] using derivativeMap_norm_le D) | |
| 73 | + | |
| 74 | +theorem derivativeBundling_norm_le_one : ‖derivativeBundling (K := K) (V := V)‖ ≤ 1 := by | |
| 75 | + apply opNorm_le_bound _ zero_le_one | |
| 76 | + intro D | |
| 77 | + change ‖derivativeMap D‖ ≤ 1*‖D‖ | |
| 78 | + simpa only [one_mul] using derivativeMap_norm_le D | |
| 79 | + | |
| 80 | +end Bundling | |
| 81 | + | |
| 82 | +/-- Actual continuous spatial derivative paths and finite uniform bounds. | |
| 83 | +The `jet_eq` field identifies every supplied jet with the ordinary derivative. -/ | |
| 84 | +structure SpatialFamily (K : Type u) [TopologicalSpace K] [CompactSpace K] | |
| 85 | + (V : Type v) [NormedAddCommGroup V] [NormedSpace ℝ V] where | |
| 86 | + field : Space → C(K,V) | |
| 87 | + smooth : ∀ t, ContDiff ℝ ∞ (fun a => field a t) | |
| 88 | + jet : (n : ℕ) → Space → C(K,Space [×n]→L[ℝ] V) | |
| 89 | + jet_eq : ∀ n a t, jet n a t = iteratedFDeriv ℝ n (fun b => field b t) a | |
| 90 | + bound : ℕ → ℝ | |
| 91 | + bound_nonneg : ∀ n, 0 ≤ bound n | |
| 92 | + bounded : ∀ n a t, ‖iteratedFDeriv ℝ n (fun b => field b t) a‖ ≤ bound n | |
| 93 | + | |
| 94 | +namespace SpatialFamily | |
| 95 | + | |
| 96 | +variable {K : Type u} [TopologicalSpace K] [CompactSpace K] | |
| 97 | + {V : Type v} [NormedAddCommGroup V] [NormedSpace ℝ V] | |
| 98 | + | |
| 99 | +private local instance : NormedAddCommGroup (Space →L[ℝ] V) := inferInstance | |
| 100 | +private local instance : NormedSpace ℝ (Space →L[ℝ] V) := inferInstance | |
| 101 | +private local instance : NormedAddCommGroup C(K,V) := inferInstance | |
| 102 | +private local instance : NormedSpace ℝ C(K,V) := inferInstance | |
| 103 | +private local instance : NormedAddCommGroup C(K,Space →L[ℝ] V) := inferInstance | |
| 104 | +private local instance : NormedSpace ℝ C(K,Space →L[ℝ] V) := inferInstance | |
| 105 | +private local instance : NormedAddCommGroup (Space →L[ℝ] C(K,V)) := inferInstance | |
| 106 | +private local instance : NormedSpace ℝ (Space →L[ℝ] C(K,V)) := inferInstance | |
| 107 | + | |
| 108 | +def derivativeField (A : SpatialFamily K V) (a : Space) : C(K,Space →L[ℝ] V) := | |
| 109 | + (continuousMultilinearCurryFin1 ℝ Space V).toContinuousLinearEquiv.toContinuousLinearMap.compLeftContinuous ℝ K | |
| 110 | + (A.jet 1 a) | |
| 111 | + | |
| 112 | +theorem derivativeField_eq (A : SpatialFamily K V) (a : Space) (t : K) : | |
| 113 | + A.derivativeField a t = fderiv ℝ (fun b => A.field b t) a := by | |
| 114 | + change continuousMultilinearCurryFin1 ℝ Space V (A.jet 1 a t) = _ | |
| 115 | + rw [A.jet_eq] | |
| 116 | + apply ContinuousLinearMap.ext | |
| 117 | + intro v | |
| 118 | + rw [continuousMultilinearCurryFin1_apply, iteratedFDeriv_one_apply] | |
| 119 | + simp | |
| 120 | + | |
| 121 | +def derivativeJet (A : SpatialFamily K V) (n : ℕ) (a : Space) : | |
| 122 | + C(K,Space [×n]→L[ℝ] (Space →L[ℝ] V)) := | |
| 123 | + (continuousMultilinearCurryRightEquiv' ℝ n Space V).toContinuousLinearEquiv.toContinuousLinearMap.compLeftContinuous ℝ K | |
| 124 | + (A.jet (n+1) a) | |
| 125 | + | |
| 126 | +theorem derivativeJet_eq (A : SpatialFamily K V) (n : ℕ) (a : Space) (t : K) : | |
| 127 | + A.derivativeJet n a t = iteratedFDeriv ℝ n (fderiv ℝ (fun b => A.field b t)) a := by | |
| 128 | + change continuousMultilinearCurryRightEquiv' ℝ n Space V (A.jet (n+1) a t) = _ | |
| 129 | + rw [A.jet_eq, iteratedFDeriv_succ_eq_comp_right] | |
| 130 | + exact (continuousMultilinearCurryRightEquiv' ℝ n Space V).apply_symm_apply _ | |
| 131 | + | |
| 132 | +def derivative (A : SpatialFamily K V) : SpatialFamily K (Space →L[ℝ] V) where | |
| 133 | + field := A.derivativeField | |
| 134 | + smooth t := by | |
| 135 | + have he : (fun a => A.derivativeField a t) = fderiv ℝ (fun a => A.field a t) := | |
| 136 | + funext (fun a => A.derivativeField_eq a t) | |
| 137 | + rw [he] | |
| 138 | + exact (A.smooth t).fderiv_right (m := ∞) (by simp) | |
| 139 | + jet := A.derivativeJet | |
| 140 | + jet_eq n a t := by | |
| 141 | + have he : (fun b => A.derivativeField b t) = fderiv ℝ (fun b => A.field b t) := | |
| 142 | + funext (fun b => A.derivativeField_eq b t) | |
| 143 | + rw [he] | |
| 144 | + exact A.derivativeJet_eq n a t | |
| 145 | + bound n := A.bound (n+1) | |
| 146 | + bound_nonneg n := A.bound_nonneg (n+1) | |
| 147 | + bounded n a t := by | |
| 148 | + have he : (fun b => A.derivativeField b t) = fderiv ℝ (fun b => A.field b t) := | |
| 149 | + funext (fun b => A.derivativeField_eq b t) | |
| 150 | + rw [he, norm_iteratedFDeriv_fderiv] | |
| 151 | + exact A.bounded (n+1) a t | |
| 152 | + | |
| 153 | +@[simp] theorem derivative_bound (A : SpatialFamily K V) (n : ℕ) : | |
| 154 | + A.derivative.bound n = A.bound (n+1) := rfl | |
| 155 | + | |
| 156 | +theorem taylor_bound (A : SpatialFamily K V) (a b : Space) : | |
| 157 | + ‖A.field b-A.field a-derivativeMap (A.derivative.field a) (b-a)‖ ≤ | |
| 158 | + A.bound 2*‖b-a‖^2 := by | |
| 159 | + apply (ContinuousMap.norm_le _ (mul_nonneg (A.bound_nonneg 2) (sq_nonneg _))).2 | |
| 160 | + intro t | |
| 161 | + change ‖A.field b t-A.field a t-A.derivativeField a t (b-a)‖ ≤ _ | |
| 162 | + rw [A.derivativeField_eq] | |
| 163 | + have hD (x : Space) : ‖fderiv ℝ (fderiv ℝ (fun y => A.field y t)) x‖ ≤ A.bound 2 := by | |
| 164 | + simpa only [← norm_iteratedFDeriv_one, norm_iteratedFDeriv_fderiv] using A.bounded 2 x t | |
| 165 | + have h := EulerMeanBoundary.norm_linearization_remainder_le | |
| 166 | + (fun x => A.field x t) (A.smooth t) (A.bound 2) (A.bound_nonneg 2) hD a (b-a) | |
| 167 | + simpa only [add_sub_cancel] using h | |
| 168 | + | |
| 169 | +/-- Genuine differentiability in the uniform path norm, from the pointwise Taylor estimate. -/ | |
| 170 | +theorem hasFDerivAt_field (A : SpatialFamily K V) (a : Space) : | |
| 171 | + HasFDerivAt A.field (derivativeMap (A.derivative.field a)) a := by | |
| 172 | + apply hasFDerivAt_iff_tendsto.mpr | |
| 173 | + apply squeeze_zero (fun b => mul_nonneg (inv_nonneg.mpr (norm_nonneg _)) (norm_nonneg _)) | |
| 174 | + (g := fun b : Space => A.bound 2*‖b-a‖) | |
| 175 | + · intro b | |
| 176 | + calc | |
| 177 | + _ ≤ ‖b-a‖⁻¹*(A.bound 2*‖b-a‖^2) := mul_le_mul_of_nonneg_left | |
| 178 | + (A.taylor_bound a b) (inv_nonneg.mpr (norm_nonneg _)) | |
| 179 | + _ = A.bound 2*‖b-a‖ := by | |
| 180 | + by_cases h : ‖b-a‖ = 0 | |
| 181 | + · simp only [h, inv_zero, zero_mul, mul_zero] | |
| 182 | + · field_simp | |
| 183 | + · have hc : Continuous (fun b : Space => A.bound 2*‖b-a‖) := by fun_prop | |
| 184 | + simpa only [sub_self, norm_zero, mul_zero] using hc.tendsto a | |
| 185 | + | |
| 186 | +theorem fderiv_field (A : SpatialFamily K V) : | |
| 187 | + fderiv ℝ A.field = fun a => derivativeBundling (A.derivative.field a) := | |
| 188 | + funext (fun a => (A.hasFDerivAt_field a).fderiv) | |
| 189 | + | |
| 190 | +private theorem contDiff_field_aux (n : ℕ) : | |
| 191 | + ∀ (V : Type v) [NormedAddCommGroup V] [NormedSpace ℝ V] (A : SpatialFamily K V), | |
| 192 | + ContDiff ℝ n A.field := by | |
| 193 | + induction n with | |
| 194 | + | zero => | |
| 195 | + intro V _ _ A | |
| 196 | + exact contDiff_zero.mpr (continuous_iff_continuousAt.mpr | |
| 197 | + (fun a => (A.hasFDerivAt_field a).continuousAt)) | |
| 198 | + | succ n ih => | |
| 199 | + intro V _ _ A | |
| 200 | + rw [Nat.cast_add, Nat.cast_one, contDiff_succ_iff_fderiv] | |
| 201 | + refine ⟨fun a => (A.hasFDerivAt_field a).differentiableAt, by simp, ?_⟩ | |
| 202 | + rw [A.fderiv_field] | |
| 203 | + exact (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := (n : ℕ∞ω)) | |
| 204 | + (E := C(K,Space →L[ℝ] V)) (F := Space →L[ℝ] C(K,V)) | |
| 205 | + (derivativeBundling (K := K) (V := V))).comp (ih (Space →L[ℝ] V) A.derivative) | |
| 206 | + | |
| 207 | +/-- All ordinary pointwise derivatives produce genuine uniform-path smoothness. -/ | |
| 208 | +theorem contDiff_field (A : SpatialFamily K V) : ContDiff ℝ ∞ A.field := | |
| 209 | + contDiff_infty.mpr (fun n => contDiff_field_aux n V A) | |
| 210 | + | |
| 211 | +private theorem norm_iteratedFDeriv_field_aux (n : ℕ) : | |
| 212 | + ∀ (V : Type v) [NormedAddCommGroup V] [NormedSpace ℝ V] (A : SpatialFamily K V) (a : Space), | |
| 213 | + ‖iteratedFDeriv ℝ n A.field a‖ ≤ A.bound n := by | |
| 214 | + induction n with | |
| 215 | + | zero => | |
| 216 | + intro V _ _ A a | |
| 217 | + rw [norm_iteratedFDeriv_zero] | |
| 218 | + apply (ContinuousMap.norm_le _ (A.bound_nonneg 0)).2 | |
| 219 | + intro t | |
| 220 | + simpa only [norm_iteratedFDeriv_zero] using A.bounded 0 a t | |
| 221 | + | succ n ih => | |
| 222 | + intro V _ _ A a | |
| 223 | + rw [← norm_iteratedFDeriv_fderiv, A.fderiv_field] | |
| 224 | + have h := ContinuousLinearMap.norm_iteratedFDeriv_comp_left (𝕜 := ℝ) (E := Space) | |
| 225 | + (F := C(K,Space →L[ℝ] V)) (G := Space →L[ℝ] C(K,V)) | |
| 226 | + (derivativeBundling (K := K) (V := V)) | |
| 227 | + (A.derivative.contDiff_field.contDiffAt (x := a)) (n := n) (by simp) | |
| 228 | + exact h.trans ((mul_le_mul_of_nonneg_right | |
| 229 | + (derivativeBundling_norm_le_one (K := K) (V := V)) (norm_nonneg _)).trans | |
| 230 | + (by simpa only [one_mul, derivative_bound] using ih (Space →L[ℝ] V) A.derivative a)) | |
| 231 | + | |
| 232 | +/-- The original pointwise uniform derivative bound holds without any additional factor. -/ | |
| 233 | +theorem norm_iteratedFDeriv_field_le (A : SpatialFamily K V) (n : ℕ) (a : Space) : | |
| 234 | + ‖iteratedFDeriv ℝ n A.field a‖ ≤ A.bound n := | |
| 235 | + norm_iteratedFDeriv_field_aux n V A a | |
| 236 | + | |
| 237 | +end SpatialFamily | |
| 238 | + | |
| 239 | +end EulerContinuousSpatialFamily | |
+134 −0 Euler/ContinuousTimeIntegral.lean added View file
| @@ -0,0 +1,134 @@ | ||
| 1 | +import Euler.TimeH1OperatorProduct | |
| 2 | + | |
| 3 | +/-! | |
| 4 | +# Bounded operators on continuous time paths | |
| 5 | + | |
| 6 | +The multiplier and initial integral are actual continuous linear maps. The | |
| 7 | +primitive has the prescribed derivative, including the one-sided endpoint | |
| 8 | +statements, and the uniform bound is exactly the interval length. | |
| 9 | +-/ | |
| 10 | + | |
| 11 | +noncomputable section | |
| 12 | + | |
| 13 | + | |
| 14 | +namespace EulerContinuousTimeIntegral | |
| 15 | + | |
| 16 | +open Set ContinuousLinearMap EulerVolterraConvolution | |
| 17 | +open scoped Topology Interval | |
| 18 | + | |
| 19 | +variable {K E F : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 20 | + [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 21 | + [NormedAddCommGroup F] [NormedSpace ℝ F] | |
| 22 | + | |
| 23 | +/-- Pointwise multiplication by an operator-valued continuous path. -/ | |
| 24 | +def multiplierLinear (A : C(K,E →L[ℝ] F)) : C(K,E) →ₗ[ℝ] C(K,F) where | |
| 25 | + toFun f := ⟨fun t => A t (f t), A.continuous.clm_apply f.continuous⟩ | |
| 26 | + map_add' f g := by ext t; exact map_add (A t) (f t) (g t) | |
| 27 | + map_smul' r f := by ext t; exact map_smul (A t) r (f t) | |
| 28 | + | |
| 29 | +/-- The multiplier has the literal coefficient bound. -/ | |
| 30 | +theorem multiplierLinear_bound (A : C(K,E →L[ℝ] F)) (f : C(K,E)) : | |
| 31 | + ‖multiplierLinear A f‖ ≤ ‖A‖ * ‖f‖ := by | |
| 32 | + apply (ContinuousMap.norm_le _ (mul_nonneg (norm_nonneg A) (norm_nonneg f))).2 | |
| 33 | + intro t | |
| 34 | + exact ((A t).le_opNorm (f t)).trans | |
| 35 | + (mul_le_mul (A.norm_coe_le_norm t) (f.norm_coe_le_norm t) (norm_nonneg _) (norm_nonneg A)) | |
| 36 | + | |
| 37 | +/-- The genuine bounded multiplier on continuous time paths. -/ | |
| 38 | +def multiplier (A : C(K,E →L[ℝ] F)) : C(K,E) →L[ℝ] C(K,F) := | |
| 39 | + (multiplierLinear A).mkContinuous ‖A‖ (multiplierLinear_bound A) | |
| 40 | + | |
| 41 | +@[simp] theorem multiplier_apply (A : C(K,E →L[ℝ] F)) (f : C(K,E)) (t : K) : | |
| 42 | + multiplier A f t = A t (f t) := rfl | |
| 43 | + | |
| 44 | +/-- No derivative-dependent loss enters continuous path multiplication. -/ | |
| 45 | +theorem multiplier_norm (A : C(K,E →L[ℝ] F)) : ‖multiplier A‖ ≤ ‖A‖ := | |
| 46 | + (multiplierLinear A).mkContinuous_norm_le (norm_nonneg A) (multiplierLinear_bound A) | |
| 47 | + | |
| 48 | +section Primitive | |
| 49 | + | |
| 50 | +variable [CompleteSpace E] (T : ℝ) (hT : 0 ≤ T) | |
| 51 | + | |
| 52 | +/-- The literal zero-initial-time integral. -/ | |
| 53 | +def realIntegral (f : C(Icc (0 : ℝ) T,E)) : ℝ → E := | |
| 54 | + fun t => ∫ s in (0 : ℝ)..t, extendPath T hT f s | |
| 55 | + | |
| 56 | +/-- The integral has the actual classical derivative. -/ | |
| 57 | +theorem realIntegral_hasDerivAt (f : C(Icc (0 : ℝ) T,E)) (t : ℝ) : | |
| 58 | + HasDerivAt (realIntegral T hT f) (extendPath T hT f t) t := by | |
| 59 | + have hc := extendPath_continuous T hT f | |
| 60 | + exact intervalIntegral.integral_hasDerivAt_right (hc.intervalIntegrable 0 t) | |
| 61 | + hc.aestronglyMeasurable.stronglyMeasurableAtFilter hc.continuousAt | |
| 62 | + | |
| 63 | +/-- The actual integral is a continuous time path. -/ | |
| 64 | +def integralLinear : C(Icc (0 : ℝ) T,E) →ₗ[ℝ] C(Icc (0 : ℝ) T,E) where | |
| 65 | + toFun f := ⟨fun t => realIntegral T hT f t, | |
| 66 | + ((show Differentiable ℝ (realIntegral T hT f) from fun t => | |
| 67 | + (realIntegral_hasDerivAt T hT f t).differentiableAt).continuous).comp continuous_subtype_val⟩ | |
| 68 | + map_add' f g := by | |
| 69 | + ext t | |
| 70 | + exact intervalIntegral.integral_add ((extendPath_continuous T hT f).intervalIntegrable 0 t) | |
| 71 | + ((extendPath_continuous T hT g).intervalIntegrable 0 t) | |
| 72 | + map_smul' r f := by | |
| 73 | + ext t | |
| 74 | + exact intervalIntegral.integral_smul r (extendPath T hT f) | |
| 75 | + | |
| 76 | +/-- The uniform norm of the primitive is bounded by time length times the input norm. -/ | |
| 77 | +theorem integralLinear_bound (f : C(Icc (0 : ℝ) T,E)) : | |
| 78 | + ‖integralLinear T hT f‖ ≤ T*‖f‖ := by | |
| 79 | + apply (ContinuousMap.norm_le _ (mul_nonneg hT (norm_nonneg f))).2 | |
| 80 | + intro t | |
| 81 | + have hp : ‖realIntegral T hT f t‖ ≤ ‖f‖ * (t : ℝ) := by | |
| 82 | + simpa only [realIntegral, extendPath, sub_zero, abs_of_nonneg t.property.1] using | |
| 83 | + (intervalIntegral.norm_integral_le_of_norm_le_const | |
| 84 | + (fun s (_ : s ∈ Ι (0 : ℝ) (t : ℝ)) => f.norm_coe_le_norm (projIcc 0 T hT s))) | |
| 85 | + exact hp.trans (by nlinarith [t.property.2, norm_nonneg f]) | |
| 86 | + | |
| 87 | +/-- The zero-initial-time integral as a bounded linear operator. -/ | |
| 88 | +def integral : C(Icc (0 : ℝ) T,E) →L[ℝ] C(Icc (0 : ℝ) T,E) := | |
| 89 | + (integralLinear T hT).mkContinuous T (integralLinear_bound T hT) | |
| 90 | + | |
| 91 | +@[simp] theorem integral_apply (f : C(Icc (0 : ℝ) T,E)) (t : Icc (0 : ℝ) T) : | |
| 92 | + integral T hT f t = realIntegral T hT f t := rfl | |
| 93 | + | |
| 94 | +/-- The exact operator bound for the initial primitive. -/ | |
| 95 | +theorem integral_norm : ‖integral (E := E) T hT‖ ≤ T := by | |
| 96 | + apply opNorm_le_bound _ hT | |
| 97 | + intro f | |
| 98 | + exact integralLinear_bound T hT f | |
| 99 | + | |
| 100 | +@[simp] theorem integral_initial (f : C(Icc (0 : ℝ) T,E)) : | |
| 101 | + integral T hT f ⟨0,le_rfl,hT⟩ = 0 := by | |
| 102 | + exact intervalIntegral.integral_same | |
| 103 | + | |
| 104 | +/-- The primitive has the prescribed within-interval derivative at every time. -/ | |
| 105 | +theorem integral_hasDerivWithinAt (f : C(Icc (0 : ℝ) T,E)) (t : Icc (0 : ℝ) T) : | |
| 106 | + HasDerivWithinAt (extendPath T hT (integral T hT f)) (f t) (Icc (0 : ℝ) T) t := by | |
| 107 | + have hd : HasDerivWithinAt (realIntegral T hT f) (f t) (Icc (0 : ℝ) T) t := by | |
| 108 | + simpa only [extendPath, projIcc_of_mem hT t.property] using | |
| 109 | + (realIntegral_hasDerivAt T hT f t).hasDerivWithinAt (s := Icc (0 : ℝ) T) | |
| 110 | + apply hd.congr_of_mem _ t.property | |
| 111 | + intro s hs | |
| 112 | + simp only [extendPath, projIcc_of_mem hT hs, integral_apply] | |
| 113 | + | |
| 114 | +/-- A path with this derivative is its initial value plus the actual integral. -/ | |
| 115 | +theorem eq_initial_add_integral (f : C(Icc (0 : ℝ) T,E)) (a : ℝ → E) | |
| 116 | + (ha : ∀ t : Icc (0 : ℝ) T, HasDerivWithinAt a (f t) (Icc (0 : ℝ) T) t) | |
| 117 | + (t : Icc (0 : ℝ) T) : a t = a 0 + integral T hT f t := by | |
| 118 | + have hd : ∀ s ∈ Icc (0 : ℝ) T, | |
| 119 | + HasDerivWithinAt (fun r => a r - realIntegral T hT f r) 0 (Icc (0 : ℝ) T) s := by | |
| 120 | + intro s hs | |
| 121 | + have hp := (ha ⟨s,hs⟩).sub (realIntegral_hasDerivAt T hT f s).hasDerivWithinAt | |
| 122 | + change HasDerivWithinAt (a - realIntegral T hT f) 0 (Icc (0 : ℝ) T) s | |
| 123 | + simpa only [extendPath, projIcc_of_mem hT hs, sub_self] using hp | |
| 124 | + have hb := Convex.norm_image_sub_le_of_norm_hasDerivWithin_le (C := 0) hd | |
| 125 | + (fun s hs => by simp) (convex_Icc (0 : ℝ) T) | |
| 126 | + (show (0 : ℝ) ∈ Icc 0 T from ⟨le_rfl,hT⟩) t.property | |
| 127 | + have he : a t - realIntegral T hT f t = a 0 := by | |
| 128 | + simpa only [zero_mul, norm_le_zero_iff, sub_eq_zero, realIntegral, | |
| 129 | + intervalIntegral.integral_same, sub_zero] using hb | |
| 130 | + exact sub_eq_iff_eq_add.mp he | |
| 131 | + | |
| 132 | +end Primitive | |
| 133 | + | |
| 134 | +end EulerContinuousTimeIntegral | |
+82 −0 Euler/ContinuousTimeWeight.lean added View file
| @@ -0,0 +1,82 @@ | ||
| 1 | +import Euler.ContinuousTimeIntegral | |
| 2 | + | |
| 3 | +/-! | |
| 4 | +# Actual profile normalization of continuous time paths | |
| 5 | + | |
| 6 | +A positive scalar time profile gives inverse bounded linear scaling maps. | |
| 7 | +The norm of a normalized path is bounded directly by its profile estimate; | |
| 8 | +no quotient of the maximum and minimum profile enters that estimate. | |
| 9 | +-/ | |
| 10 | + | |
| 11 | +noncomputable section | |
| 12 | + | |
| 13 | + | |
| 14 | +namespace EulerContinuousTimeWeight | |
| 15 | + | |
| 16 | +open Set ContinuousLinearMap EulerContinuousTimeIntegral | |
| 17 | + | |
| 18 | +variable {K E : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 19 | + [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 20 | + | |
| 21 | +/-- Multiplication by the literal scalar profile. -/ | |
| 22 | +def weight (g : C(K,ℝ)) : C(K,E) →L[ℝ] C(K,E) := | |
| 23 | + multiplier ⟨fun t => g t • ContinuousLinearMap.id ℝ E, | |
| 24 | + g.continuous.smul continuous_const⟩ | |
| 25 | + | |
| 26 | +@[simp] theorem weight_apply (g : C(K,ℝ)) (f : C(K,E)) (t : K) : | |
| 27 | + weight g f t = g t • f t := rfl | |
| 28 | + | |
| 29 | +/-- The reciprocal of a positive continuous profile is an actual continuous path. -/ | |
| 30 | +def reciprocal (g : C(K,ℝ)) (hg : ∀ t, 0 < g t) : C(K,ℝ) := | |
| 31 | + ⟨fun t => (g t)⁻¹, g.continuous.inv₀ (fun t => (hg t).ne')⟩ | |
| 32 | + | |
| 33 | +/-- Profile division as a genuine bounded linear map. -/ | |
| 34 | +def normalize (g : C(K,ℝ)) (hg : ∀ t, 0 < g t) : C(K,E) →L[ℝ] C(K,E) := | |
| 35 | + weight (reciprocal g hg) | |
| 36 | + | |
| 37 | +@[simp] theorem normalize_apply (g : C(K,ℝ)) (hg : ∀ t, 0 < g t) (f : C(K,E)) (t : K) : | |
| 38 | + normalize g hg f t = (g t)⁻¹ • f t := rfl | |
| 39 | + | |
| 40 | +/-- Weighting and normalization are actual inverse operators. -/ | |
| 41 | +theorem normalize_weight (g : C(K,ℝ)) (hg : ∀ t, 0 < g t) (f : C(K,E)) : | |
| 42 | + normalize g hg (weight g f) = f := by | |
| 43 | + ext t | |
| 44 | + simp only [normalize_apply, weight_apply, smul_smul, inv_mul_cancel₀ (hg t).ne', one_smul] | |
| 45 | + | |
| 46 | +/-- Normalization and weighting are inverse in the other order too. -/ | |
| 47 | +theorem weight_normalize (g : C(K,ℝ)) (hg : ∀ t, 0 < g t) (f : C(K,E)) : | |
| 48 | + weight g (normalize g hg f) = f := by | |
| 49 | + ext t | |
| 50 | + simp only [normalize_apply, weight_apply, smul_smul, mul_inv_cancel₀ (hg t).ne', one_smul] | |
| 51 | + | |
| 52 | +/-- Literal pointwise control of a weighted path, with no profile extremum. -/ | |
| 53 | +theorem weight_pointwise_bound (g : C(K,ℝ)) (hg : ∀ t, 0 ≤ g t) (f : C(K,E)) (t : K) : | |
| 54 | + ‖weight g f t‖ ≤ g t * ‖f‖ := by | |
| 55 | + rw [weight_apply, norm_smul, Real.norm_eq_abs, abs_of_nonneg (hg t)] | |
| 56 | + exact mul_le_mul_of_nonneg_left (f.norm_coe_le_norm t) (hg t) | |
| 57 | + | |
| 58 | +/-- A pointwise profile bound gives the normalized uniform norm directly. -/ | |
| 59 | +theorem normalize_norm_le (g : C(K,ℝ)) (hg : ∀ t, 0 < g t) | |
| 60 | + (f : C(K,E)) (D : ℝ) (hD : 0 ≤ D) (hf : ∀ t, ‖f t‖ ≤ D*g t) : | |
| 61 | + ‖normalize g hg f‖ ≤ D := by | |
| 62 | + apply (ContinuousMap.norm_le _ hD).2 | |
| 63 | + intro t | |
| 64 | + rw [normalize_apply, norm_smul, Real.norm_eq_abs, abs_of_pos (inv_pos.mpr (hg t))] | |
| 65 | + calc | |
| 66 | + _ ≤ (g t)⁻¹ * (D*g t) := mul_le_mul_of_nonneg_left (hf t) (inv_nonneg.mpr (hg t).le) | |
| 67 | + _ = D := by field_simp [(hg t).ne'] | |
| 68 | + | |
| 69 | +/-- Scalar normalization commutes with every coefficient multiplier. -/ | |
| 70 | +theorem normalize_multiplier (g : C(K,ℝ)) (hg : ∀ t, 0 < g t) | |
| 71 | + (A : C(K,E →L[ℝ] E)) (f : C(K,E)) : | |
| 72 | + normalize g hg (multiplier A f) = multiplier A (normalize g hg f) := by | |
| 73 | + ext t | |
| 74 | + simp only [normalize_apply, multiplier_apply, map_smul] | |
| 75 | + | |
| 76 | +/-- Scalar weighting commutes with every coefficient multiplier. -/ | |
| 77 | +theorem weight_multiplier (g : C(K,ℝ)) (A : C(K,E →L[ℝ] E)) (f : C(K,E)) : | |
| 78 | + weight g (multiplier A f) = multiplier A (weight g f) := by | |
| 79 | + ext t | |
| 80 | + simp only [weight_apply, multiplier_apply, map_smul] | |
| 81 | + | |
| 82 | +end EulerContinuousTimeWeight | |
+109 −0 Euler/CorrectionAssemblyCommon.lean added View file
| @@ -0,0 +1,109 @@ | ||
| 1 | +import Euler.CorrectionAssemblyCompatibility | |
| 2 | +import Euler.ClassicalDivergence | |
| 3 | +import Euler.SobolevJointEvaluation | |
| 4 | + | |
| 5 | +/-! A common actual smooth lifted correction assembled from finite solves and proved uniqueness. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +namespace EulerCorrectionAssembly | |
| 10 | + | |
| 11 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 12 | + EulerSpatialSobolevInverse EulerCorrectionOperators EulerAllOrderCorrectionData | |
| 13 | + EulerVolterraConvolution EulerMetricTransport EulerTransportDerivatives | |
| 14 | + EulerSmoothPressureRepresentative EulerClassicalDivergence EulerSobolevPointEvaluation | |
| 15 | + EulerSobolevJointEvaluation | |
| 16 | +open scoped ContDiff | |
| 17 | + | |
| 18 | +variable (period : ℝ) [Fact (0 < period)] | |
| 19 | +variable {T : ℝ} {hT : 0 < T} {A : Data period T} | |
| 20 | + | |
| 21 | +/-- The actual common continuous L² path, defined from the base finite correction. -/ | |
| 22 | +def FiniteFamily.commonPath (F : FiniteFamily period hT A) : C(Icc (0 : ℝ) T, LiftL2 period) := | |
| 23 | + (valueOperator period 7).compLeftContinuous ℝ (Icc (0 : ℝ) T) (F.solution 6 le_rfl) | |
| 24 | + | |
| 25 | +/-- Every supplied finite correction realizes the common actual L² path. -/ | |
| 26 | +theorem FiniteFamily.value_common (F : FiniteFamily period hT A) (C : ComparisonData period hT A) | |
| 27 | + (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : | |
| 28 | + value period (F.solution q hq t) = F.commonPath period t := | |
| 29 | + F.value_base period C q hq t | |
| 30 | + | |
| 31 | +/-- The common correction has zero initial trace. -/ | |
| 32 | +theorem FiniteFamily.commonPath_initial (F : FiniteFamily period hT A) : | |
| 33 | + F.commonPath period ⟨0, le_rfl, hT.le⟩ = 0 := by | |
| 34 | + change value period (F.solution 6 le_rfl ⟨0, le_rfl, hT.le⟩) = 0 | |
| 35 | + rw [F.initial] | |
| 36 | + rfl | |
| 37 | + | |
| 38 | +/-- The common correction satisfies the actual closed lifted divergence constraint. -/ | |
| 39 | +theorem FiniteFamily.commonPath_divergence (F : FiniteFamily period hT A) (t : Icc (0 : ℝ) T) : | |
| 40 | + F.commonPath period t ∈ divergenceFreeSpace period A.κ A.direction := | |
| 41 | + F.divergence 6 le_rfl t | |
| 42 | + | |
| 43 | +/-- The common correction has an actual strong spatial jet at every derivative order. -/ | |
| 44 | +def FiniteFamily.commonJet (F : FiniteFamily period hT A) (C : ComparisonData period hT A) | |
| 45 | + (n : ℕ) (t : Icc (0 : ℝ) T) : SpatialJet period standardDirection n (F.commonPath period t) := by | |
| 46 | + rw [← F.value_common period C (n+6) (by omega) t] | |
| 47 | + exact EulerH6Pressure.SpatialJet.restrict | |
| 48 | + (toJet period (F.solution (n+6) (by omega) t)) n (by omega) | |
| 49 | + | |
| 50 | +/-- The common L² path satisfies the actual nonlinear inviscid equation. -/ | |
| 51 | +theorem FiniteFamily.commonPath_hasDerivAt (F : FiniteFamily period hT A) | |
| 52 | + (t : ℝ) (ht : t ∈ Ioo 0 T) : | |
| 53 | + HasDerivAt (extendPath T hT.le (F.commonPath period)) | |
| 54 | + (value period (((A.atOrder period 6).coefficients period le_rfl).apply | |
| 55 | + ⟨t, ht.1.le, ht.2.le⟩ (F.solution 6 le_rfl ⟨t, ht.1.le, ht.2.le⟩))) t := | |
| 56 | + F.equation 6 le_rfl t ht | |
| 57 | + | |
| 58 | +/-- Every other genuine finite-order correction realizes this same common field. | |
| 59 | +Consequently bounds proved for any particular finite solver may be transferred to the assembled solution. -/ | |
| 60 | +theorem FiniteFamily.realizes_common (F : FiniteFamily period hT A) (C : ComparisonData period hT A) | |
| 61 | + (q : ℕ) (hq : 6 ≤ q) (u : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) | |
| 62 | + (hi : u ⟨0, le_rfl, hT.le⟩ = 0) | |
| 63 | + (hd : ∀ t, value period (u t) ∈ divergenceFreeSpace period A.κ A.direction) | |
| 64 | + (hu : ∀ t (ht : t ∈ Ioo 0 T), | |
| 65 | + HasDerivAt (fun r => value period (extendPath T hT.le u r)) | |
| 66 | + (value period (((A.atOrder period q).coefficients period hq).apply | |
| 67 | + ⟨t, ht.1.le, ht.2.le⟩ (u ⟨t, ht.1.le, ht.2.le⟩))) t) | |
| 68 | + (t : Icc (0 : ℝ) T) : value period (u t) = F.commonPath period t := by | |
| 69 | + rw [F.unique_at_order period C q hq u hi hd hu] | |
| 70 | + exact F.value_common period C q hq t | |
| 71 | + | |
| 72 | +/-- Bounded H3 evaluation fixes a canonical actual pointwise representative of the common correction. -/ | |
| 73 | +def FiniteFamily.pointField (F : FiniteFamily period hT A) | |
| 74 | + (t : Icc (0 : ℝ) T) (x : LiftDomain period) : Vector3 := | |
| 75 | + pointEvaluation period x (restrictOperator period (by omega : 3 ≤ 7) (F.solution 6 le_rfl t)) | |
| 76 | + | |
| 77 | +/-- The canonical common field is an actual representative of its L² path. -/ | |
| 78 | +theorem FiniteFamily.pointField_ae (F : FiniteFamily period hT A) (t : Icc (0 : ℝ) T) : | |
| 79 | + (F.commonPath period t : LiftDomain period → Vector3) =ᵐ[liftMeasure period] F.pointField period t := | |
| 80 | + representative_ae period (restrictOperator period (by omega : 3 ≤ 7) (F.solution 6 le_rfl t)) | |
| 81 | + | |
| 82 | +/-- The canonical common field is jointly continuous in time and the cylinder point. -/ | |
| 83 | +theorem FiniteFamily.pointField_joint_continuous (F : FiniteFamily period hT A) : | |
| 84 | + Continuous (F.pointField period).uncurry := | |
| 85 | + path_representative_joint_continuous period | |
| 86 | + ((restrictOperator period (by omega : 3 ≤ 7)).compLeftContinuous ℝ (Icc (0 : ℝ) T) | |
| 87 | + (F.solution 6 le_rfl)) | |
| 88 | + | |
| 89 | +/-- Proved compatibility and all finite genuine jets make the canonical common field spatially smooth. -/ | |
| 90 | +theorem FiniteFamily.pointField_smooth (F : FiniteFamily period hT A) (C : ComparisonData period hT A) | |
| 91 | + (t : Icc (0 : ℝ) T) (x : LiftDomain period) : | |
| 92 | + ContDiff ℝ ∞ (localFieldLift period (F.pointField period t) x) := by | |
| 93 | + obtain ⟨g, hg, ha⟩ := exists_smooth_representative period (F.commonPath period t) | |
| 94 | + (fun n => F.commonJet period C n t) | |
| 95 | + have he : F.pointField period t = g := | |
| 96 | + representative_eq period _ g (smoothField_continuous period g hg) ha | |
| 97 | + rw [he] | |
| 98 | + exact hg x | |
| 99 | + | |
| 100 | +/-- The canonical smooth field has pointwise zero lifted divergence. -/ | |
| 101 | +theorem FiniteFamily.pointField_divergence (F : FiniteFamily period hT A) (C : ComparisonData period hT A) | |
| 102 | + (t : Icc (0 : ℝ) T) (x : LiftDomain period) : | |
| 103 | + (∑ i : Fin 3, (fieldDerivative period (coordinateDirection A.κ A.direction i) | |
| 104 | + (F.pointField period t) x) i) = 0 := | |
| 105 | + divergenceFree_classical_divergence_zero period A.κ A.direction (F.commonPath period t) | |
| 106 | + (F.commonPath_divergence period t) (F.pointField period t) (F.pointField_ae period t) | |
| 107 | + (F.pointField_smooth period C t) x | |
| 108 | + | |
| 109 | +end EulerCorrectionAssembly | |
+80 −0 Euler/CorrectionAssemblyCompatibility.lean added View file
| @@ -0,0 +1,80 @@ | ||
| 1 | +import Euler.CorrectionAssemblyData | |
| 2 | + | |
| 3 | +/-! Compatibility of independently supplied actual finite-order corrections, proved from their equations. -/ | |
| 4 | + | |
| 5 | +noncomputable section | |
| 6 | + | |
| 7 | +namespace EulerCorrectionAssembly | |
| 8 | + | |
| 9 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace | |
| 10 | + EulerCorrectionOperators EulerCorrectionLowerData EulerAllOrderCorrectionData | |
| 11 | + EulerCorrectionStabilityBudget EulerInviscidCorrectionCompatibility | |
| 12 | + EulerInviscidCorrectionUniqueness EulerVolterraConvolution | |
| 13 | + | |
| 14 | +variable (period : ℝ) [Fact (0 < period)] | |
| 15 | +variable {T : ℝ} {hT : 0 < T} {A : Data period T} | |
| 16 | + | |
| 17 | +/-- Adjacent supplied finite corrections coincide after restriction, by actual inviscid uniqueness. -/ | |
| 18 | +theorem FiniteFamily.compatible (F : FiniteFamily period hT A) (C : ComparisonData period hT A) | |
| 19 | + (q : ℕ) (hq : 6 ≤ q) : | |
| 20 | + (truncateOperator period (q+1)).compLeftContinuous ℝ (Icc (0 : ℝ) T) | |
| 21 | + (F.solution (q+1) (hq.trans (Nat.le_succ q))) = F.solution q hq := by | |
| 22 | + have hs : StabilityBudget period hT.le | |
| 23 | + (lowerData period (A.atOrder period (q+1)) (A.metric.jet q) (A.linear.jet q) | |
| 24 | + (fun i => (A.quadratic i).jet q) (A.metric.continuous q) (A.linear.continuous q) | |
| 25 | + (fun i => (A.quadratic i).continuous q)) := by | |
| 26 | + rw [A.lower_atOrder period q] | |
| 27 | + exact C.stabilityBudget period q | |
| 28 | + apply inviscid_corrections_compatible period hq T hT.le (A.atOrder period (q+1)) | |
| 29 | + (A.metric.jet q) (A.linear.jet q) (fun i => (A.quadratic i).jet q) | |
| 30 | + (A.metric.continuous q) (A.linear.continuous q) (fun i => (A.quadratic i).continuous q) | |
| 31 | + (F.solution (q+1) (hq.trans (Nat.le_succ q))) | |
| 32 | + (F.equation (q+1) (hq.trans (Nat.le_succ q))) hs (F.solution q hq) | |
| 33 | + · simpa only [A.lower_atOrder period q] using F.equation q hq | |
| 34 | + · rw [F.initial, F.initial, map_zero] | |
| 35 | + · intro t | |
| 36 | + change value period (A.approximation.realization ((q+1)+1) t) ∈ _ | |
| 37 | + rw [A.approximation.value_eq] | |
| 38 | + exact C.divergence t | |
| 39 | + · exact F.divergence (q+1) (hq.trans (Nat.le_succ q)) | |
| 40 | + · exact F.divergence q hq | |
| 41 | + | |
| 42 | +/-- Adjacent actual finite corrections have the same underlying L² field. -/ | |
| 43 | +theorem FiniteFamily.value_succ (F : FiniteFamily period hT A) (C : ComparisonData period hT A) | |
| 44 | + (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : | |
| 45 | + value period (F.solution (q+1) (hq.trans (Nat.le_succ q)) t) = | |
| 46 | + value period (F.solution q hq t) := | |
| 47 | + congrArg (fun f => value period (f t)) (F.compatible period C q hq) | |
| 48 | + | |
| 49 | +/-- All supplied finite corrections have the same actual base L² field. -/ | |
| 50 | +theorem FiniteFamily.value_base (F : FiniteFamily period hT A) (C : ComparisonData period hT A) | |
| 51 | + (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : | |
| 52 | + value period (F.solution q hq t) = value period (F.solution 6 le_rfl t) := by | |
| 53 | + exact Nat.le_induction (P := fun n hn => value period (F.solution n hn t) = | |
| 54 | + value period (F.solution 6 le_rfl t)) rfl | |
| 55 | + (fun n hn ih => (F.value_succ period C n hn t).trans ih) q hq | |
| 56 | + | |
| 57 | +/-- Every other actual finite-order correction with zero trace and the same genuine PDE and divergence condition equals the supplied finite correction. | |
| 58 | +No comparison estimate or compatibility is assumed. -/ | |
| 59 | +theorem FiniteFamily.unique_at_order (F : FiniteFamily period hT A) (C : ComparisonData period hT A) | |
| 60 | + (q : ℕ) (hq : 6 ≤ q) (u : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) | |
| 61 | + (hi : u ⟨0, le_rfl, hT.le⟩ = 0) | |
| 62 | + (hd : ∀ t, value period (u t) ∈ divergenceFreeSpace period A.κ A.direction) | |
| 63 | + (hu : ∀ t (ht : t ∈ Ioo 0 T), | |
| 64 | + HasDerivAt (fun r => value period (extendPath T hT.le u r)) | |
| 65 | + (value period (((A.atOrder period q).coefficients period hq).apply | |
| 66 | + ⟨t, ht.1.le, ht.2.le⟩ (u ⟨t, ht.1.le, ht.2.le⟩))) t) : | |
| 67 | + u = F.solution q hq := by | |
| 68 | + apply inviscid_correction_unique period hq T hT.le (A.atOrder period q) | |
| 69 | + (C.stabilityBudget period q) u (F.solution q hq) | |
| 70 | + · rw [hi, F.initial] | |
| 71 | + · exact hu | |
| 72 | + · exact F.equation q hq | |
| 73 | + · intro t | |
| 74 | + change value period (A.approximation.realization (q+1) t) ∈ _ | |
| 75 | + rw [A.approximation.value_eq] | |
| 76 | + exact C.divergence t | |
| 77 | + · exact hd | |
| 78 | + · exact F.divergence q hq | |
| 79 | + | |
| 80 | +end EulerCorrectionAssembly | |
+94 −0 Euler/CorrectionAssemblyData.lean added View file
| @@ -0,0 +1,94 @@ | ||
| 1 | +import Euler.AllOrderCorrectionData | |
| 2 | +import Euler.GevreyStabilityBudget | |
| 3 | + | |
| 4 | +/-! Actual finite correction families and input comparison bounds, independent of any Gevrey radius-loss budget. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerCorrectionAssembly | |
| 9 | + | |
| 10 | +open MeasureTheory Set EulerLiftedGradientSpace EulerLiftedPressure EulerCylinderSobolevSpace | |
| 11 | + EulerCorrectionOperators EulerCorrectionEnergyData EulerAllOrderCorrectionData | |
| 12 | + EulerCorrectionStabilityBudget EulerGevreyStabilityBudget EulerVolterraConvolution | |
| 13 | + | |
| 14 | +variable (period : ℝ) [Fact (0 < period)] | |
| 15 | + | |
| 16 | +/-- One genuine inverse metric and actual base coefficient bounds provide stability at every finite Sobolev order. | |
| 17 | +No shrinking-radius condition or smallness of the approximate velocity is required. -/ | |
| 18 | +def stabilityBudgetOfBase {T : ℝ} (hT : 0 < T) (A : Data period T) | |
| 19 | + (K : MetricBudget period T hT.le (A.atOrder period 1)) | |
| 20 | + (R : C(Icc (0 : ℝ) T, ℝ)) | |
| 21 | + (S : SpatialBudget period (by norm_num : 6 ≤ 8) (A.atOrder period 8) 2 R) | |
| 22 | + (q : ℕ) : StabilityBudget period hT.le (A.atOrder period q) where | |
| 23 | + metric := K.metric | |
| 24 | + continuous := K.continuous | |
| 25 | + derivative := K.derivative | |
| 26 | + hasDeriv := K.hasDeriv | |
| 27 | + c := K.c | |
| 28 | + c_pos := K.c_pos | |
| 29 | + symmetric := K.symmetric | |
| 30 | + coercive := K.coercive | |
| 31 | + inverse := K.inverse | |
| 32 | + bound := K.bound | |
| 33 | + first := K.first | |
| 34 | + time := K.time | |
| 35 | + linear := S.A0 | |
| 36 | + quadratic := S.A2 | |
| 37 | + bound_le t := (coefficientOperator_norm_le (K.metric t).coefficient | |
| 38 | + (K.metric t).measurable (K.metric t).bound (K.metric t).norm_bound).trans (K.bound_le t) | |
| 39 | + first_le := K.first_le | |
| 40 | + time_le := K.time_le | |
| 41 | + linear_le t := (coefficient_bound_le_weighted period (A.linear.jet 8 t) 2 (R t) | |
| 42 | + (S.radius_pos t)).trans (S.linear t) | |
| 43 | + quadratic_le t := (Finset.sum_le_sum (fun i (_ : i ∈ (Finset.univ : Finset (Fin 3))) => | |
| 44 | + coefficient_bound_le_weighted period ((A.quadratic i).jet 8 t) 2 (R t) | |
| 45 | + (S.radius_pos t))).trans (S.quadratic t) | |
| 46 | + | |
| 47 | +/-- Genuine input bounds sufficient to compare any finite solutions of the same prescribed data. | |
| 48 | +This contains no correction, compatibility, solution-energy or radius-loss assumption. -/ | |
| 49 | +structure ComparisonData {T : ℝ} (hT : 0 < T) (A : Data period T) where | |
| 50 | + /-- The actual common inverse metric and its time derivative. -/ | |
| 51 | + metric : MetricBudget period T hT.le (A.atOrder period 1) | |
| 52 | + /-- A radius used solely to state the actual base coefficient bounds. -/ | |
| 53 | + radius : C(Icc (0 : ℝ) T, ℝ) | |
| 54 | + /-- Genuine base-order spatial bounds; their background bounds need not be small. -/ | |
| 55 | + spatial : SpatialBudget period (by norm_num : 6 ≤ 8) (A.atOrder period 8) 2 radius | |
| 56 | + /-- The prescribed approximate solution obeys the actual lifted divergence constraint. -/ | |
| 57 | + divergence : ∀ t, A.approximation.field t ∈ divergenceFreeSpace period A.κ A.direction | |
| 58 | + | |
| 59 | +/-- The supplied genuine comparison data construct a stability budget at any order. -/ | |
| 60 | +def ComparisonData.stabilityBudget {T : ℝ} {hT : 0 < T} {A : Data period T} | |
| 61 | + (C : ComparisonData period hT A) (q : ℕ) : StabilityBudget period hT.le (A.atOrder period q) := | |
| 62 | + stabilityBudgetOfBase period hT A C.metric C.radius C.spatial q | |
| 63 | + | |
| 64 | +/-- An actual finite-order correction family supplied by separate finite-existence theorems. | |
| 65 | +Only its paths, zero initial data, divergence constraints and literal PDEs are inputs; compatibility is not assumed. -/ | |
| 66 | +structure FiniteFamily {T : ℝ} (hT : 0 < T) (A : Data period T) where | |
| 67 | + /-- A genuine continuous finite Sobolev correction at each order. -/ | |
| 68 | + solution : ∀ q, 6 ≤ q → C(Icc (0 : ℝ) T, SobolevSpace period (q+1)) | |
| 69 | + /-- Every correction starts from zero. -/ | |
| 70 | + initial : ∀ q hq, solution q hq ⟨0, le_rfl, hT.le⟩ = 0 | |
| 71 | + /-- Every correction satisfies the actual lifted divergence constraint. -/ | |
| 72 | + divergence : ∀ q hq t, value period (solution q hq t) ∈ divergenceFreeSpace period A.κ A.direction | |
| 73 | + /-- Every correction satisfies the literal projected inviscid equation at interior times. -/ | |
| 74 | + equation : ∀ q hq t (ht : t ∈ Ioo 0 T), | |
| 75 | + HasDerivAt (fun r => value period (extendPath T hT.le (solution q hq) r)) | |
| 76 | + (value period (((A.atOrder period q).coefficients period hq).apply | |
| 77 | + ⟨t, ht.1.le, ht.2.le⟩ (solution q hq ⟨t, ht.1.le, ht.2.le⟩))) t | |
| 78 | + | |
| 79 | +/-- Choose an actual finite correction family from proved finite-existence statements. | |
| 80 | +This is an assembly helper conditional on finite existence, not an independent source existence theorem. -/ | |
| 81 | +def finiteFamilyOfExists {T : ℝ} (hT : 0 < T) (A : Data period T) | |
| 82 | + (H : ∀ q (hq : 6 ≤ q), ∃ e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1)), | |
| 83 | + e ⟨0, le_rfl, hT.le⟩ = 0 ∧ | |
| 84 | + (∀ t, value period (e t) ∈ divergenceFreeSpace period A.κ A.direction) ∧ | |
| 85 | + ∀ t (ht : t ∈ Ioo 0 T), | |
| 86 | + HasDerivAt (fun r => value period (extendPath T hT.le e r)) | |
| 87 | + (value period (((A.atOrder period q).coefficients period hq).apply | |
| 88 | + ⟨t, ht.1.le, ht.2.le⟩ (e ⟨t, ht.1.le, ht.2.le⟩))) t) : FiniteFamily period hT A where | |
| 89 | + solution q hq := Classical.choose (H q hq) | |
| 90 | + initial q hq := (Classical.choose_spec (H q hq)).1 | |
| 91 | + divergence q hq := (Classical.choose_spec (H q hq)).2.1 | |
| 92 | + equation q hq := (Classical.choose_spec (H q hq)).2.2 | |
| 93 | + | |
| 94 | +end EulerCorrectionAssembly | |
+130 −0 Euler/CorrectionAssemblyParity.lean added View file
| @@ -0,0 +1,130 @@ | ||
| 1 | +import Euler.InviscidCorrectionParity | |
| 2 | +import Euler.CorrectionAssemblyRealizations | |
| 3 | + | |
| 4 | +/-! Odd parity of the actual common correction and pressure assembled from finite genuine solutions. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerCorrectionAssembly | |
| 9 | + | |
| 10 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace | |
| 11 | + EulerCorrectionOperators EulerAllOrderCorrectionData EulerCylinderReflection | |
| 12 | + EulerSobolevReflection EulerCorrectionParity EulerInviscidCorrectionParity | |
| 13 | + | |
| 14 | +variable (period : ℝ) [Fact (0 < period)] | |
| 15 | +variable {T : ℝ} {hT : 0 < T} {A : Data period T} | |
| 16 | + | |
| 17 | +/-- The prescribed source's actual joint spatial-angular parities. | |
| 18 | +The metric and linear coefficients are even, the quadratic coefficient is odd, | |
| 19 | +and the approximate velocity and residual are odd as actual L² fields. -/ | |
| 20 | +structure ParityData (A : Data period T) where | |
| 21 | + /-- The actual pressure metric is even. -/ | |
| 22 | + metric : ∀ t x, (A.metric.coefficient t).coefficient (-x) = | |
| 23 | + (A.metric.coefficient t).coefficient x | |
| 24 | + /-- The actual linear coefficient is even. -/ | |
| 25 | + linear : ∀ t x, (A.linear.coefficient t).coefficient (-x) = | |
| 26 | + (A.linear.coefficient t).coefficient x | |
| 27 | + /-- Each actual quadratic coefficient is odd. -/ | |
| 28 | + quadratic : ∀ t i x, ((A.quadratic i).coefficient t).coefficient (-x) = | |
| 29 | + -((A.quadratic i).coefficient t).coefficient x | |
| 30 | + /-- The prescribed approximate velocity is an odd actual field. -/ | |
| 31 | + approximation : ∀ t, -reflection period (A.approximation.field t) = A.approximation.field t | |
| 32 | + /-- The prescribed residual is an odd actual field. -/ | |
| 33 | + residual : ∀ t, -reflection period (A.residual.field t) = A.residual.field t | |
| 34 | + | |
| 35 | +/-- Oddness of the actual common L² field forces oddness of every Sobolev realization. -/ | |
| 36 | +theorem fieldTower_realization_odd (f : FieldTower period T) | |
| 37 | + (hf : ∀ t, -reflection period (f.field t) = f.field t) (q : ℕ) (t : Icc (0 : ℝ) T) : | |
| 38 | + oddReflection period q (f.realization q t) = f.realization q t := by | |
| 39 | + apply value_injective period | |
| 40 | + rw [value_oddReflection, f.value_eq] | |
| 41 | + exact hf t | |
| 42 | + | |
| 43 | +/-- Genuine PDE uniqueness makes every finite correction odd from the prescribed input parity. -/ | |
| 44 | +theorem FiniteFamily.solution_odd (F : FiniteFamily period hT A) | |
| 45 | + (C : ComparisonData period hT A) (P : ParityData period A) | |
| 46 | + (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : | |
| 47 | + oddReflection period (q+1) (F.solution q hq t) = F.solution q hq t := by | |
| 48 | + apply inviscid_correction_odd period hq T hT.le (A.atOrder period q) | |
| 49 | + (C.stabilityBudget period q) P.metric P.linear P.quadratic | |
| 50 | + (fieldTower_realization_odd period A.approximation P.approximation (q+1)) | |
| 51 | + (fieldTower_realization_odd period A.residual P.residual q) (F.solution q hq) | |
| 52 | + (F.initial q hq) (F.equation q hq) _ (F.divergence q hq) t | |
| 53 | + intro s | |
| 54 | + change value period (A.approximation.realization (q+1) s) ∈ | |
| 55 | + divergenceFreeSpace period A.κ A.direction | |
| 56 | + rw [A.approximation.value_eq] | |
| 57 | + exact C.divergence s | |
| 58 | + | |
| 59 | +/-- The actual assembled continuous L² correction is odd. -/ | |
| 60 | +theorem FiniteFamily.commonPath_odd (F : FiniteFamily period hT A) | |
| 61 | + (C : ComparisonData period hT A) (P : ParityData period A) (t : Icc (0 : ℝ) T) : | |
| 62 | + -reflection period (F.commonPath period t) = F.commonPath period t := by | |
| 63 | + have h := congrArg (value period (q := 7)) (F.solution_odd period C P 6 le_rfl t) | |
| 64 | + rw [value_oddReflection] at h | |
| 65 | + exact h | |
| 66 | + | |
| 67 | +/-- A continuous representative of an actual odd L² field is pointwise odd. -/ | |
| 68 | +theorem continuous_representative_odd (u : LiftL2 period) (g : LiftDomain period → Vector3) | |
| 69 | + (hu : -reflection period u = u) (hg : Continuous g) | |
| 70 | + (hrep : (u : LiftDomain period → Vector3) =ᵐ[liftMeasure period] g) : | |
| 71 | + ∀ x, g (-x) = -g x := by | |
| 72 | + have hr : reflection period u = -u := by | |
| 73 | + simpa only [neg_neg] using congrArg Neg.neg hu | |
| 74 | + have ha : (fun x => g (-x)) =ᵐ[liftMeasure period] fun x => -g x := by | |
| 75 | + filter_upwards [reflection_ae period u, | |
| 76 | + (measurePreserving_reflection period).quasiMeasurePreserving.ae hrep, | |
| 77 | + hrep, Lp.coeFn_neg u] with x h1 h2 h3 h4 | |
| 78 | + rw [hr] at h1 | |
| 79 | + rw [← h2, ← h3, ← h1, h4] | |
| 80 | + rfl | |
| 81 | + exact congrFun (MeasureTheory.Measure.eq_of_ae_eq ha (hg.comp continuous_neg) hg.neg) | |
| 82 | + | |
| 83 | +/-- The canonical smooth correction is odd at every spatial and angular point. -/ | |
| 84 | +theorem FiniteFamily.pointField_odd (F : FiniteFamily period hT A) | |
| 85 | + (C : ComparisonData period hT A) (P : ParityData period A) | |
| 86 | + (t : Icc (0 : ℝ) T) (x : LiftDomain period) : | |
| 87 | + F.pointField period t (-x) = -F.pointField period t x := by | |
| 88 | + have hc : Continuous (F.pointField period t) := | |
| 89 | + EulerMetricTransport.smoothField_continuous period (F.pointField period t) | |
| 90 | + (F.pointField_smooth period C t) | |
| 91 | + exact continuous_representative_odd period (F.commonPath period t) (F.pointField period t) | |
| 92 | + (F.commonPath_odd period C P t) hc (F.pointField_ae period t) x | |
| 93 | + | |
| 94 | +/-- The actual signed coercive pressure is odd at every finite Sobolev order. -/ | |
| 95 | +theorem FiniteFamily.signedPressurePath_odd (F : FiniteFamily period hT A) | |
| 96 | + (C : ComparisonData period hT A) (P : ParityData period A) | |
| 97 | + (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : | |
| 98 | + oddReflection period q (F.signedPressurePath period q hq t) = | |
| 99 | + F.signedPressurePath period q hq t := by | |
| 100 | + exact inviscid_correction_pressure_odd period hq (A.atOrder period q) t | |
| 101 | + (P.metric t) (P.linear t) (P.quadratic t) | |
| 102 | + (fieldTower_realization_odd period A.approximation P.approximation (q+1) t) | |
| 103 | + (fieldTower_realization_odd period A.residual P.residual q t) | |
| 104 | + (F.solution q hq t) (F.solution_odd period C P q hq t) | |
| 105 | + | |
| 106 | +/-- The actual assembled signed pressure gradient is odd in L². -/ | |
| 107 | +theorem FiniteFamily.commonPressure_odd (F : FiniteFamily period hT A) | |
| 108 | + (C : ComparisonData period hT A) (P : ParityData period A) (t : Icc (0 : ℝ) T) : | |
| 109 | + -reflection period (F.commonPressure period t) = F.commonPressure period t := by | |
| 110 | + have h := congrArg (value period (q := 6)) (F.signedPressurePath_odd period C P 6 le_rfl t) | |
| 111 | + rw [value_oddReflection] at h | |
| 112 | + exact h | |
| 113 | + | |
| 114 | +/-- Every realization of the assembled correction tower is odd. -/ | |
| 115 | +theorem FiniteFamily.fieldTower_odd (F : FiniteFamily period hT A) | |
| 116 | + (C : ComparisonData period hT A) (P : ParityData period A) | |
| 117 | + (q : ℕ) (t : Icc (0 : ℝ) T) : | |
| 118 | + oddReflection period q ((F.fieldTower period C).realization q t) = | |
| 119 | + (F.fieldTower period C).realization q t := | |
| 120 | + fieldTower_realization_odd period (F.fieldTower period C) (F.commonPath_odd period C P) q t | |
| 121 | + | |
| 122 | +/-- Every realization of the actual assembled signed pressure tower is odd. -/ | |
| 123 | +theorem FiniteFamily.pressureTower_odd (F : FiniteFamily period hT A) | |
| 124 | + (C : ComparisonData period hT A) (P : ParityData period A) | |
| 125 | + (q : ℕ) (t : Icc (0 : ℝ) T) : | |
| 126 | + oddReflection period q ((F.pressureTower period C).realization q t) = | |
| 127 | + (F.pressureTower period C).realization q t := | |
| 128 | + fieldTower_realization_odd period (F.pressureTower period C) (F.commonPressure_odd period C P) q t | |
| 129 | + | |
| 130 | +end EulerCorrectionAssembly | |
+105 −0 Euler/CorrectionAssemblyPressure.lean added View file
| @@ -0,0 +1,105 @@ | ||
| 1 | +import Euler.CorrectionAssemblyCommon | |
| 2 | +import Euler.CorrectionSourceRestriction | |
| 3 | + | |
| 4 | +/-! Coherence and all-order regularity of the actual pressure associated with a finite correction family. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerCorrectionAssembly | |
| 9 | + | |
| 10 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 11 | + EulerSpatialSobolevInverse EulerCorrectionOperators EulerCorrectionLowerData | |
| 12 | + EulerCorrectionSourceRestriction EulerAllOrderCorrectionData EulerSobolevCoefficientPressure | |
| 13 | + EulerVolterraConvolution | |
| 14 | + | |
| 15 | +variable (period : ℝ) [Fact (0 < period)] | |
| 16 | +variable {T : ℝ} {hT : 0 < T} {A : Data period T} | |
| 17 | + | |
| 18 | +/-- The actual continuous nonlinear raw source of each finite correction. -/ | |
| 19 | +def FiniteFamily.rawSourcePath (F : FiniteFamily period hT A) (q : ℕ) (hq : 6 ≤ q) : | |
| 20 | + C(Icc (0 : ℝ) T, SobolevSpace period q) := | |
| 21 | + rawPath period hq (A.atOrder period q) (F.solution q hq) | |
| 22 | + | |
| 23 | +/-- The actual signed coercive pressure of each finite correction. -/ | |
| 24 | +def FiniteFamily.signedPressurePath (F : FiniteFamily period hT A) (q : ℕ) (hq : 6 ≤ q) : | |
| 25 | + C(Icc (0 : ℝ) T, SobolevSpace period q) := | |
| 26 | + pressurePath period hq (A.atOrder period q) (F.solution q hq) | |
| 27 | + | |
| 28 | +/-- Proved correction compatibility gives exact restriction of the actual nonlinear sources. -/ | |
| 29 | +theorem FiniteFamily.rawSourcePath_truncate (F : FiniteFamily period hT A) (C : ComparisonData period hT A) | |
| 30 | + (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : | |
| 31 | + truncateOperator period q (F.rawSourcePath period (q+1) (hq.trans (Nat.le_succ q)) t) = | |
| 32 | + F.rawSourcePath period q hq t := by | |
| 33 | + have h := truncate_rawSource period hq (A.atOrder period (q+1)) | |
| 34 | + (A.metric.jet q) (A.linear.jet q) (fun i => (A.quadratic i).jet q) | |
| 35 | + (A.metric.continuous q) (A.linear.continuous q) (fun i => (A.quadratic i).continuous q) | |
| 36 | + t (F.solution (q+1) (hq.trans (Nat.le_succ q)) t) | |
| 37 | + rw [A.lower_atOrder period q] at h | |
| 38 | + have he := congrArg (fun f => f t) (F.compatible period C q hq) | |
| 39 | + change truncateOperator period (q+1) (F.solution (q+1) (hq.trans (Nat.le_succ q)) t) = | |
| 40 | + F.solution q hq t at he | |
| 41 | + rw [he] at h | |
| 42 | + exact h | |
| 43 | + | |
| 44 | +/-- Adjacent nonlinear source realizations have the same actual L² value. -/ | |
| 45 | +theorem FiniteFamily.rawSourcePath_value_succ (F : FiniteFamily period hT A) (C : ComparisonData period hT A) | |
| 46 | + (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : | |
| 47 | + value period (F.rawSourcePath period (q+1) (hq.trans (Nat.le_succ q)) t) = | |
| 48 | + value period (F.rawSourcePath period q hq t) := | |
| 49 | + congrArg (value period (q := q)) (F.rawSourcePath_truncate period C q hq t) | |
| 50 | + | |
| 51 | +/-- The genuine signed coercive pressures agree at adjacent Sobolev orders. -/ | |
| 52 | +theorem FiniteFamily.signedPressurePath_value_succ (F : FiniteFamily period hT A) | |
| 53 | + (C : ComparisonData period hT A) (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : | |
| 54 | + value period (F.signedPressurePath period (q+1) (hq.trans (Nat.le_succ q)) t) = | |
| 55 | + value period (F.signedPressurePath period q hq t) := by | |
| 56 | + change -value period (pressureSobolevOperator period (A.metric.jet (q+1) t) A.κ A.direction | |
| 57 | + A.coercivity A.coercivity_pos (A.metric_pos t) | |
| 58 | + (F.rawSourcePath period (q+1) (hq.trans (Nat.le_succ q)) t)) = | |
| 59 | + -value period (pressureSobolevOperator period (A.metric.jet q t) A.κ A.direction | |
| 60 | + A.coercivity A.coercivity_pos (A.metric_pos t) (F.rawSourcePath period q hq t)) | |
| 61 | + rw [pressureSobolevOperator_value, pressureSobolevOperator_value, F.rawSourcePath_value_succ period C] | |
| 62 | + | |
| 63 | +/-- Every finite signed pressure is a realization of the same actual base pressure. -/ | |
| 64 | +theorem FiniteFamily.signedPressurePath_value_base (F : FiniteFamily period hT A) | |
| 65 | + (C : ComparisonData period hT A) (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : | |
| 66 | + value period (F.signedPressurePath period q hq t) = | |
| 67 | + value period (F.signedPressurePath period 6 le_rfl t) := by | |
| 68 | + exact Nat.le_induction (P := fun n hn => value period (F.signedPressurePath period n hn t) = | |
| 69 | + value period (F.signedPressurePath period 6 le_rfl t)) rfl | |
| 70 | + (fun n hn ih => (F.signedPressurePath_value_succ period C n hn t).trans ih) q hq | |
| 71 | + | |
| 72 | +/-- The actual common signed correction pressure is a continuous L² path. -/ | |
| 73 | +def FiniteFamily.commonPressure (F : FiniteFamily period hT A) : C(Icc (0 : ℝ) T, LiftL2 period) := | |
| 74 | + (valueOperator period 6).compLeftContinuous ℝ (Icc (0 : ℝ) T) (F.signedPressurePath period 6 le_rfl) | |
| 75 | + | |
| 76 | +/-- Each finite pressure realizes the common actual signed pressure field. -/ | |
| 77 | +theorem FiniteFamily.signedPressurePath_value_common (F : FiniteFamily period hT A) | |
| 78 | + (C : ComparisonData period hT A) (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : | |
| 79 | + value period (F.signedPressurePath period q hq t) = F.commonPressure period t := | |
| 80 | + F.signedPressurePath_value_base period C q hq t | |
| 81 | + | |
| 82 | +/-- The actual common pressure lies in the closed lifted gradient space. -/ | |
| 83 | +theorem FiniteFamily.commonPressure_gradient (F : FiniteFamily period hT A) (t : Icc (0 : ℝ) T) : | |
| 84 | + F.commonPressure period t ∈ gradientSpace period A.κ A.direction := | |
| 85 | + (A.atOrder period 6).pressure_mem_gradient period le_rfl t (F.solution 6 le_rfl t) | |
| 86 | + | |
| 87 | +/-- The actual common pressure has genuine strong spatial jets of every order. -/ | |
| 88 | +def FiniteFamily.pressureJet (F : FiniteFamily period hT A) (C : ComparisonData period hT A) | |
| 89 | + (n : ℕ) (t : Icc (0 : ℝ) T) : SpatialJet period standardDirection n (F.commonPressure period t) := by | |
| 90 | + rw [← F.signedPressurePath_value_common period C (n+6) (by omega) t] | |
| 91 | + exact EulerH6Pressure.SpatialJet.restrict | |
| 92 | + (toJet period (F.signedPressurePath period (n+6) (by omega) t)) n (by omega) | |
| 93 | + | |
| 94 | +/-- The common correction satisfies the literal equation with its reconstructed actual signed pressure. -/ | |
| 95 | +theorem FiniteFamily.commonPath_pressure_equation (F : FiniteFamily period hT A) | |
| 96 | + (t : ℝ) (ht : t ∈ Ioo 0 T) : | |
| 97 | + HasDerivAt (extendPath T hT.le (F.commonPath period)) | |
| 98 | + (-value period (F.rawSourcePath period 6 le_rfl ⟨t, ht.1.le, ht.2.le⟩) - | |
| 99 | + (A.metric.coefficient ⟨t, ht.1.le, ht.2.le⟩).operator | |
| 100 | + (F.commonPressure period ⟨t, ht.1.le, ht.2.le⟩)) t := by | |
| 101 | + have h := F.commonPath_hasDerivAt period t ht | |
| 102 | + rw [(A.atOrder period 6).source_value period le_rfl] at h | |
| 103 | + exact h | |
| 104 | + | |
| 105 | +end EulerCorrectionAssembly | |
+89 −0 Euler/CorrectionAssemblyPressureParity.lean added View file
| @@ -0,0 +1,89 @@ | ||
| 1 | +import Euler.CorrectionAssemblyParity | |
| 2 | +import Euler.CorrectionAssemblyReconstruction | |
| 3 | + | |
| 4 | +/-! Pointwise parity and canonical normalization of the assembled actual pressure. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerGraphPressurePotential | |
| 9 | + | |
| 10 | +open EulerLiftedGradientSpace | |
| 11 | + | |
| 12 | +/-- The physical phase graph respects joint spatial and angular reflection. -/ | |
| 13 | +theorem cylinderGraph_neg (period k : ℝ) (m x : Vector3) : | |
| 14 | + cylinderGraph period k m (-x) = -cylinderGraph period k m x := by | |
| 15 | + simp [cylinderGraph] | |
| 16 | + | |
| 17 | +end EulerGraphPressurePotential | |
| 18 | + | |
| 19 | +namespace EulerCanonicalGraphPotential | |
| 20 | + | |
| 21 | +open EulerLiftedGradientSpace | |
| 22 | + | |
| 23 | +/-- The canonical radial scalar potential of an odd vector field is even. | |
| 24 | +This identity does not need a choice of additive gauge or a potential-existence assumption. -/ | |
| 25 | +theorem radialPotential_even (V : Vector3 → Vector3) | |
| 26 | + (hV : ∀ x, V (-x) = -V x) (x : Vector3) : | |
| 27 | + radialPotential V (-x) = radialPotential V x := by | |
| 28 | + simp only [radialPotential, smul_neg, hV, inner_neg_neg] | |
| 29 | + | |
| 30 | +end EulerCanonicalGraphPotential | |
| 31 | + | |
| 32 | +namespace EulerCorrectionAssembly | |
| 33 | + | |
| 34 | +open MeasureTheory Set EulerLiftedGradientSpace EulerAllOrderCorrectionData | |
| 35 | + EulerGraphPressurePotential EulerCanonicalGraphPotential | |
| 36 | +open scoped ContDiff | |
| 37 | + | |
| 38 | +variable (period : ℝ) [Fact (0 < period)] | |
| 39 | +variable {T : ℝ} {hT : 0 < T} {A : Data period T} | |
| 40 | + | |
| 41 | +/-- The canonical pressure representative is pointwise odd, as a consequence | |
| 42 | +of genuine PDE uniqueness and parity of the prescribed data. -/ | |
| 43 | +theorem FiniteFamily.pointPressure_odd (F : FiniteFamily period hT A) | |
| 44 | + (C : ComparisonData period hT A) (P : ParityData period A) | |
| 45 | + (t : Icc (0 : ℝ) T) (x : LiftDomain period) : | |
| 46 | + F.pointPressure period t (-x) = -F.pointPressure period t x := | |
| 47 | + continuous_representative_odd period (F.commonPressure period t) | |
| 48 | + (F.pointPressure period t) (F.commonPressure_odd period C P t) | |
| 49 | + (Continuous.uncurry_left t (F.pointPressure_joint_continuous period)) | |
| 50 | + (F.pointPressure_ae period t) x | |
| 51 | + | |
| 52 | +/-- The actual signed pressure-gradient vector on the physical phase graph is odd. -/ | |
| 53 | +theorem FiniteFamily.graphPressure_odd (F : FiniteFamily period hT A) | |
| 54 | + (C : ComparisonData period hT A) (P : ParityData period A) (k : ℝ) | |
| 55 | + (t : Icc (0 : ℝ) T) (x : Vector3) : | |
| 56 | + F.graphPressure period k t (-x) = -F.graphPressure period k t x := by | |
| 57 | + unfold FiniteFamily.graphPressure | |
| 58 | + rw [cylinderGraph_neg, F.pointPressure_odd period C P, smul_neg] | |
| 59 | + | |
| 60 | +/-- The origin-normalized scalar pressure is even at every time. | |
| 61 | +In particular parity is an exact identity, not merely equality modulo a constant. -/ | |
| 62 | +theorem FiniteFamily.normalizedGraphPotential_even (F : FiniteFamily period hT A) | |
| 63 | + (C : ComparisonData period hT A) (P : ParityData period A) (k : ℝ) | |
| 64 | + (t : Icc (0 : ℝ) T) (x : Vector3) : | |
| 65 | + F.normalizedGraphPotential period k t (-x) = | |
| 66 | + F.normalizedGraphPotential period k t x := | |
| 67 | + radialPotential_even _ (F.graphPressure_odd period C P k t) x | |
| 68 | + | |
| 69 | +/-- Any smooth potential of the same graph field agrees with the canonical | |
| 70 | +radial potential after subtracting its value at the origin. -/ | |
| 71 | +theorem FiniteFamily.normalizedGraphPotential_eq_sub (F : FiniteFamily period hT A) | |
| 72 | + (k : ℝ) (t : Icc (0 : ℝ) T) (q : Vector3 → ℝ) | |
| 73 | + (hq : ContDiff ℝ ∞ q) | |
| 74 | + (hgrad : ∀ x, gradient q x = F.graphPressure period k t x) (x : Vector3) : | |
| 75 | + F.normalizedGraphPotential period k t x = q x - q 0 := | |
| 76 | + radialPotential_eq_sub _ | |
| 77 | + (Continuous.uncurry_left t (F.graphPressure_joint_continuous period k)) q hq hgrad x | |
| 78 | + | |
| 79 | +/-- The constructed scalar pressure is the unique smooth potential of its | |
| 80 | +graph field with the prescribed zero value at the origin. -/ | |
| 81 | +theorem FiniteFamily.normalizedGraphPotential_unique (F : FiniteFamily period hT A) | |
| 82 | + (k : ℝ) (t : Icc (0 : ℝ) T) (q : Vector3 → ℝ) | |
| 83 | + (hq : ContDiff ℝ ∞ q) | |
| 84 | + (hgrad : ∀ x, gradient q x = F.graphPressure period k t x) (hq0 : q 0 = 0) : | |
| 85 | + F.normalizedGraphPotential period k t = q := by | |
| 86 | + funext x | |
| 87 | + rw [F.normalizedGraphPotential_eq_sub period k t q hq hgrad x, hq0, sub_zero] | |
| 88 | + | |
| 89 | +end EulerCorrectionAssembly | |
+50 −0 Euler/CorrectionAssemblyRealizations.lean added View file
| @@ -0,0 +1,50 @@ | ||
| 1 | +import Euler.CorrectionAssemblyPressure | |
| 2 | + | |
| 3 | +/-! Genuine continuous Sobolev realizations of the assembled correction and its actual pressure at every order. -/ | |
| 4 | + | |
| 5 | +noncomputable section | |
| 6 | + | |
| 7 | +namespace EulerCorrectionAssembly | |
| 8 | + | |
| 9 | +open Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerAllOrderCorrectionData | |
| 10 | + | |
| 11 | +variable (period : ℝ) [Fact (0 < period)] | |
| 12 | +variable {T : ℝ} {hT : 0 < T} {A : Data period T} | |
| 13 | + | |
| 14 | +/-- The assembled correction as one actual L² field with continuous Sobolev realizations at every order. -/ | |
| 15 | +def FiniteFamily.fieldTower (F : FiniteFamily period hT A) (C : ComparisonData period hT A) : | |
| 16 | + FieldTower period T where | |
| 17 | + field := F.commonPath period | |
| 18 | + realization q := (restrictOperator period (by omega : q ≤ (q+6)+1)).compLeftContinuous ℝ | |
| 19 | + (Icc (0 : ℝ) T) (F.solution (q+6) (by omega)) | |
| 20 | + value_eq q t := F.value_common period C (q+6) (by omega) t | |
| 21 | + | |
| 22 | +/-- The actual signed pressure as one L² field with continuous Sobolev realizations at every order. -/ | |
| 23 | +def FiniteFamily.pressureTower (F : FiniteFamily period hT A) (C : ComparisonData period hT A) : | |
| 24 | + FieldTower period T where | |
| 25 | + field := F.commonPressure period | |
| 26 | + realization q := (restrictOperator period (by omega : q ≤ q+6)).compLeftContinuous ℝ | |
| 27 | + (Icc (0 : ℝ) T) (F.signedPressurePath period (q+6) (by omega)) | |
| 28 | + value_eq q t := F.signedPressurePath_value_common period C (q+6) (by omega) t | |
| 29 | + | |
| 30 | +/-- Each finite solution is exactly the common tower's realization at that same Sobolev order. -/ | |
| 31 | +theorem FiniteFamily.solution_eq_realization (F : FiniteFamily period hT A) (C : ComparisonData period hT A) | |
| 32 | + (q : ℕ) (hq : 6 ≤ q) : | |
| 33 | + F.solution q hq = (F.fieldTower period C).realization (q+1) := by | |
| 34 | + apply ContinuousMap.ext | |
| 35 | + intro t | |
| 36 | + apply value_injective period | |
| 37 | + exact (F.value_common period C q hq t).trans | |
| 38 | + ((F.fieldTower period C).value_eq (q+1) t).symm | |
| 39 | + | |
| 40 | +/-- Every finite signed pressure is exactly the common pressure tower's realization at that order. -/ | |
| 41 | +theorem FiniteFamily.signedPressurePath_eq_realization (F : FiniteFamily period hT A) | |
| 42 | + (C : ComparisonData period hT A) (q : ℕ) (hq : 6 ≤ q) : | |
| 43 | + F.signedPressurePath period q hq = (F.pressureTower period C).realization q := by | |
| 44 | + apply ContinuousMap.ext | |
| 45 | + intro t | |
| 46 | + apply value_injective period | |
| 47 | + exact (F.signedPressurePath_value_common period C q hq t).trans | |
| 48 | + ((F.pressureTower period C).value_eq q t).symm | |
| 49 | + | |
| 50 | +end EulerCorrectionAssembly | |
+105 −0 Euler/CorrectionAssemblyReconstruction.lean added View file
| @@ -0,0 +1,105 @@ | ||
| 1 | +import Euler.CorrectionAssemblyPressure | |
| 2 | +import Euler.CanonicalGraphPotential | |
| 3 | +import Euler.CommonPressureRepresentative | |
| 4 | + | |
| 5 | +/-! Canonical smooth pressure reconstruction for the generic finite-solution assembly. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +namespace EulerCorrectionAssembly | |
| 10 | + | |
| 11 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerAllOrderCorrectionData | |
| 12 | + EulerMetricTransport EulerSmoothPressureRepresentative EulerSobolevPointEvaluation | |
| 13 | + EulerSobolevJointEvaluation EulerGraphPressurePotential EulerCanonicalGraphPotential | |
| 14 | + | |
| 15 | +open scoped ContDiff | |
| 16 | + | |
| 17 | +variable (period : ℝ) [Fact (0 < period)] | |
| 18 | +variable {T : ℝ} {hT : 0 < T} {A : Data period T} | |
| 19 | + | |
| 20 | +/-- Bounded evaluation of the actual finite pressure fixes a canonical common pressure representative. -/ | |
| 21 | +def FiniteFamily.pointPressure (F : FiniteFamily period hT A) | |
| 22 | + (t : Icc (0 : ℝ) T) (x : LiftDomain period) : Vector3 := | |
| 23 | + pointEvaluation period x (restrictOperator period (by omega : 3 ≤ 6) | |
| 24 | + (F.signedPressurePath period 6 le_rfl t)) | |
| 25 | + | |
| 26 | +/-- The canonical pressure represents the actual common signed L² pressure. -/ | |
| 27 | +theorem FiniteFamily.pointPressure_ae (F : FiniteFamily period hT A) (t : Icc (0 : ℝ) T) : | |
| 28 | + (F.commonPressure period t : LiftDomain period → Vector3) =ᵐ[liftMeasure period] | |
| 29 | + F.pointPressure period t := | |
| 30 | + representative_ae period (restrictOperator period (by omega : 3 ≤ 6) | |
| 31 | + (F.signedPressurePath period 6 le_rfl t)) | |
| 32 | + | |
| 33 | +/-- The canonical pressure is jointly continuous in time and the cylinder point. -/ | |
| 34 | +theorem FiniteFamily.pointPressure_joint_continuous (F : FiniteFamily period hT A) : | |
| 35 | + Continuous (F.pointPressure period).uncurry := | |
| 36 | + path_representative_joint_continuous period | |
| 37 | + ((restrictOperator period (by omega : 3 ≤ 6)).compLeftContinuous ℝ (Icc (0 : ℝ) T) | |
| 38 | + (F.signedPressurePath period 6 le_rfl)) | |
| 39 | + | |
| 40 | +/-- Proved pressure coherence supplies spatial smoothness of the canonical pressure representative. -/ | |
| 41 | +theorem FiniteFamily.pointPressure_smooth (F : FiniteFamily period hT A) (C : ComparisonData period hT A) | |
| 42 | + (t : Icc (0 : ℝ) T) (x : LiftDomain period) : | |
| 43 | + ContDiff ℝ ∞ (localFieldLift period (F.pointPressure period t) x) := by | |
| 44 | + obtain ⟨g, hg, ha⟩ := exists_smooth_representative period (F.commonPressure period t) | |
| 45 | + (fun n => F.pressureJet period C n t) | |
| 46 | + have he : F.pointPressure period t = g := | |
| 47 | + representative_eq period _ g (smoothField_continuous period g hg) ha | |
| 48 | + rw [he] | |
| 49 | + exact hg x | |
| 50 | + | |
| 51 | +/-- The genuine signed pressure-gradient vector field on the oscillatory physical graph. -/ | |
| 52 | +def FiniteFamily.graphPressure (F : FiniteFamily period hT A) (k : ℝ) | |
| 53 | + (t : Icc (0 : ℝ) T) (x : Vector3) : Vector3 := | |
| 54 | + A.κ • F.pointPressure period t (cylinderGraph period k A.direction x) | |
| 55 | + | |
| 56 | +/-- The actual graph pressure-gradient field is jointly continuous. -/ | |
| 57 | +theorem FiniteFamily.graphPressure_joint_continuous (F : FiniteFamily period hT A) (k : ℝ) : | |
| 58 | + Continuous (F.graphPressure period k).uncurry := | |
| 59 | + ((F.pointPressure_joint_continuous period).comp | |
| 60 | + (continuous_fst.prodMk | |
| 61 | + ((EulerCommonPressureRepresentative.cylinderGraph_continuous period k A.direction).comp continuous_snd))).const_smul A.κ | |
| 62 | + | |
| 63 | +/-- The actual common pressure has a genuine smooth scalar potential on each reciprocal-frequency graph. -/ | |
| 64 | +theorem FiniteFamily.graphPressure_has_potential (F : FiniteFamily period hT A) | |
| 65 | + (C : ComparisonData period hT A) (k : ℝ) (hk : k * A.κ = 1) (t : Icc (0 : ℝ) T) : | |
| 66 | + ∃ q : Vector3 → ℝ, ContDiff ℝ ∞ q ∧ | |
| 67 | + ∀ x, gradient q x = F.graphPressure period k t x := | |
| 68 | + gradientSpace_has_graph_potential period A.κ k hk A.direction | |
| 69 | + (F.commonPressure period t) (F.commonPressure_gradient period t) | |
| 70 | + (F.pointPressure period t) (F.pointPressure_ae period t) (F.pointPressure_smooth period C t) | |
| 71 | + | |
| 72 | +/-- The actual graph pressure reconstructed by a canonical radial integral based at the origin. -/ | |
| 73 | +def FiniteFamily.normalizedGraphPotential (F : FiniteFamily period hT A) (k : ℝ) | |
| 74 | + (t : Icc (0 : ℝ) T) (x : Vector3) : ℝ := | |
| 75 | + radialPotential (F.graphPressure period k t) x | |
| 76 | + | |
| 77 | +/-- The reconstructed scalar pressure has zero value at the origin at every time. -/ | |
| 78 | +theorem FiniteFamily.normalizedGraphPotential_zero (F : FiniteFamily period hT A) (k : ℝ) | |
| 79 | + (t : Icc (0 : ℝ) T) : F.normalizedGraphPotential period k t 0 = 0 := | |
| 80 | + radialPotential_zero _ | |
| 81 | + | |
| 82 | +/-- The normalized scalar pressure is jointly continuous, including both endpoint time slices. -/ | |
| 83 | +theorem FiniteFamily.normalizedGraphPotential_joint_continuous (F : FiniteFamily period hT A) (k : ℝ) : | |
| 84 | + Continuous (F.normalizedGraphPotential period k).uncurry := | |
| 85 | + radialPotential_joint_continuous _ (F.graphPressure_joint_continuous period k) | |
| 86 | + | |
| 87 | +/-- The normalized scalar pressure is spatially smooth at every time. -/ | |
| 88 | +theorem FiniteFamily.normalizedGraphPotential_smooth (F : FiniteFamily period hT A) | |
| 89 | + (C : ComparisonData period hT A) (k : ℝ) (hk : k * A.κ = 1) (t : Icc (0 : ℝ) T) : | |
| 90 | + ContDiff ℝ ∞ (F.normalizedGraphPotential period k t) := by | |
| 91 | + obtain ⟨q, hq, hg⟩ := F.graphPressure_has_potential period C k hk t | |
| 92 | + exact radialPotential_smooth _ | |
| 93 | + (Continuous.uncurry_left t (F.graphPressure_joint_continuous period k)) q hq hg | |
| 94 | + | |
| 95 | +/-- The canonical scalar pressure has the actual signed graph pressure as its gradient. -/ | |
| 96 | +theorem FiniteFamily.normalizedGraphPotential_gradient (F : FiniteFamily period hT A) | |
| 97 | + (C : ComparisonData period hT A) (k : ℝ) (hk : k * A.κ = 1) | |
| 98 | + (t : Icc (0 : ℝ) T) (x : Vector3) : | |
| 99 | + gradient (F.normalizedGraphPotential period k t) x = | |
| 100 | + A.κ • F.pointPressure period t (cylinderGraph period k A.direction x) := by | |
| 101 | + obtain ⟨q, hq, hg⟩ := F.graphPressure_has_potential period C k hk t | |
| 102 | + exact radialPotential_gradient _ | |
| 103 | + (Continuous.uncurry_left t (F.graphPressure_joint_continuous period k)) q hq hg x | |
| 104 | + | |
| 105 | +end EulerCorrectionAssembly | |
+115 −0 Euler/CorrectionAssemblySourceTower.lean added View file
| @@ -0,0 +1,115 @@ | ||
| 1 | +import Euler.AllOrderDriftCorrection | |
| 2 | +import Euler.AllOrderDriftPressure | |
| 3 | + | |
| 4 | +/-! Continuous all-order realizations of the actual nonlinear source and time derivative. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerCorrectionAssembly | |
| 9 | + | |
| 10 | +open Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerAllOrderCorrectionData | |
| 11 | + EulerCorrectionOperators EulerSobolevCoefficientPressure EulerInviscidSobolevEvolution | |
| 12 | + | |
| 13 | +variable (period : ℝ) [Fact (0 < period)] | |
| 14 | +variable {T : ℝ} {hT : 0 < T} {A : Data period T} | |
| 15 | + | |
| 16 | +local instance sourceTowerGroup (q : ℕ) : NormedAddCommGroup (SobolevSpace period q) := inferInstance | |
| 17 | +local instance sourceTowerSpace (q : ℕ) : NormedSpace ℝ (SobolevSpace period q) := inferInstance | |
| 18 | + | |
| 19 | +theorem FiniteFamily.rawSourcePath_value_base (F : FiniteFamily period hT A) | |
| 20 | + (C : ComparisonData period hT A) (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : | |
| 21 | + value period (F.rawSourcePath period q hq t) = | |
| 22 | + value period (F.rawSourcePath period 6 le_rfl t) := by | |
| 23 | + exact Nat.le_induction (P := fun n hn => value period (F.rawSourcePath period n hn t) = | |
| 24 | + value period (F.rawSourcePath period 6 le_rfl t)) rfl | |
| 25 | + (fun n hn ih => (F.rawSourcePath_value_succ period C n hn t).trans ih) q hq | |
| 26 | + | |
| 27 | +/-- One actual source field, represented continuously at every finite order. -/ | |
| 28 | +def FiniteFamily.rawSourceTower (F : FiniteFamily period hT A) | |
| 29 | + (C : ComparisonData period hT A) : FieldTower period T where | |
| 30 | + field := (valueOperator period 6).compLeftContinuous ℝ (Icc (0 : ℝ) T) | |
| 31 | + (F.rawSourcePath period 6 le_rfl) | |
| 32 | + realization q := (restrictOperator period (by omega : q ≤ q+6)).compLeftContinuous ℝ | |
| 33 | + (Icc (0 : ℝ) T) (F.rawSourcePath period (q+6) (by omega)) | |
| 34 | + value_eq q t := F.rawSourcePath_value_base period C (q+6) (by omega) t | |
| 35 | + | |
| 36 | +theorem FiniteFamily.rawSourcePath_eq_realization (F : FiniteFamily period hT A) | |
| 37 | + (C : ComparisonData period hT A) (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : | |
| 38 | + F.rawSourcePath period q hq t = (F.rawSourceTower period C).realization q t := by | |
| 39 | + apply value_injective period | |
| 40 | + exact (F.rawSourcePath_value_base period C q hq t).trans | |
| 41 | + ((F.rawSourceTower period C).value_eq q t).symm | |
| 42 | + | |
| 43 | +/-- The literal signed pressure equation defines a continuous all-order | |
| 44 | +field, subsequently identified with the genuine time derivative. -/ | |
| 45 | +def FiniteFamily.timeDerivativeTower (F : FiniteFamily period hT A) | |
| 46 | + (C : ComparisonData period hT A) : FieldTower period T where | |
| 47 | + field := -(F.rawSourceTower period C).field - | |
| 48 | + ⟨fun t => (A.metric.coefficient t).operator (F.commonPressure period t), | |
| 49 | + A.metric_continuous.clm_apply (F.commonPressure period).continuous⟩ | |
| 50 | + realization q := -(F.rawSourceTower period C).realization q - | |
| 51 | + ⟨fun t => coefficientSobolevOperator period (A.metric.jet q t) | |
| 52 | + ((F.pressureTower period C).realization q t), | |
| 53 | + (A.metric.continuous q).clm_apply ((F.pressureTower period C).realization q).continuous⟩ | |
| 54 | + value_eq q t := by | |
| 55 | + change -value period ((F.rawSourceTower period C).realization q t) - | |
| 56 | + value period (coefficientSobolevOperator period (A.metric.jet q t) | |
| 57 | + ((F.pressureTower period C).realization q t)) = _ | |
| 58 | + rw [coefficientSobolevOperator_value, (F.rawSourceTower period C).value_eq, | |
| 59 | + (F.pressureTower period C).value_eq] | |
| 60 | + rfl | |
| 61 | + | |
| 62 | +/-- The source returned by the constructed finite solver is exactly the | |
| 63 | +corresponding realization of the common derivative field. -/ | |
| 64 | +theorem FiniteFamily.source_eq_timeDerivativeTower (F : FiniteFamily period hT A) | |
| 65 | + (C : ComparisonData period hT A) (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : | |
| 66 | + ((A.atOrder period q).coefficients period hq).apply t (F.solution q hq t) = | |
| 67 | + (F.timeDerivativeTower period C).realization q t := by | |
| 68 | + rw [CorrectionData.source_sobolev] | |
| 69 | + change -F.rawSourcePath period q hq t - | |
| 70 | + coefficientSobolevOperator period (A.metric.jet q t) (F.signedPressurePath period q hq t) = _ | |
| 71 | + rw [F.rawSourcePath_eq_realization period C q hq t, | |
| 72 | + F.signedPressurePath_eq_realization period C q hq] | |
| 73 | + rfl | |
| 74 | + | |
| 75 | +end EulerCorrectionAssembly | |
| 76 | + | |
| 77 | +namespace EulerAllOrderDriftCorrection | |
| 78 | + | |
| 79 | +open Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerAllOrderCorrectionData | |
| 80 | + EulerCorrectionOperators EulerVolterraConvolution EulerCorrectionAssembly | |
| 81 | + | |
| 82 | +variable (period : ℝ) [Fact (0 < period)] | |
| 83 | +variable {T : ℝ} {hT : 0 < T} {A : Data period T} | |
| 84 | + | |
| 85 | +def Budget.rawSourceTower (B : Budget period hT A) : FieldTower period T := | |
| 86 | + (B.family period).rawSourceTower period (B.comparisonData period) | |
| 87 | + | |
| 88 | +def Budget.timeDerivativeTower (B : Budget period hT A) : FieldTower period T := | |
| 89 | + (B.family period).timeDerivativeTower period (B.comparisonData period) | |
| 90 | + | |
| 91 | +theorem Budget.rawSource_eq_realization (B : Budget period hT A) | |
| 92 | + (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : | |
| 93 | + (A.atOrder period q).rawSource period hq t ((B.fieldTower period).realization (q+1) t) = | |
| 94 | + (B.rawSourceTower period).realization q t := by | |
| 95 | + rw [← B.solution_eq_realization period q hq] | |
| 96 | + exact (B.family period).rawSourcePath_eq_realization period (B.comparisonData period) q hq t | |
| 97 | + | |
| 98 | +theorem Budget.source_eq_timeDerivativeTower (B : Budget period hT A) | |
| 99 | + (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : | |
| 100 | + ((A.atOrder period q).coefficients period hq).apply t | |
| 101 | + ((B.fieldTower period).realization (q+1) t) = | |
| 102 | + (B.timeDerivativeTower period).realization q t := by | |
| 103 | + rw [← B.solution_eq_realization period q hq] | |
| 104 | + exact (B.family period).source_eq_timeDerivativeTower period (B.comparisonData period) q hq t | |
| 105 | + | |
| 106 | +/-- At every interior time, this continuous all-order field is the actual | |
| 107 | +time derivative of the constructed common correction. -/ | |
| 108 | +theorem Budget.fieldTower_hasDerivAt_timeDerivativeTower (B : Budget period hT A) | |
| 109 | + (q : ℕ) (hq : 6 ≤ q) (t : ℝ) (ht : t ∈ Ioo 0 T) : | |
| 110 | + HasDerivAt (extendPath T hT.le ((B.fieldTower period).realization q)) | |
| 111 | + ((B.timeDerivativeTower period).realization q ⟨t, ht.1.le, ht.2.le⟩) t := by | |
| 112 | + simpa only [B.source_eq_timeDerivativeTower period q hq] using | |
| 113 | + B.fieldTower_hasDerivAt period q hq t ht | |
| 114 | + | |
| 115 | +end EulerAllOrderDriftCorrection | |
+71 −0 Euler/CorrectionAssemblyTime.lean added View file
| @@ -0,0 +1,71 @@ | ||
| 1 | +import Euler.CorrectionAssemblyReconstruction | |
| 2 | +import Euler.InviscidSobolevEvolution | |
| 3 | +import Euler.SobolevPointMultiplication | |
| 4 | + | |
| 5 | +/-! Genuine pointwise time differentiation of the generically assembled correction. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +namespace EulerCorrectionAssembly | |
| 10 | + | |
| 11 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerAllOrderCorrectionData | |
| 12 | + EulerCorrectionOperators EulerVolterraConvolution EulerSobolevPointEvaluation | |
| 13 | + EulerSobolevJointEvaluation EulerSobolevPointMultiplication EulerSobolevCoefficientPressure | |
| 14 | + EulerQuadraticSourceLimit EulerInviscidSobolevEvolution | |
| 15 | + | |
| 16 | +variable (period : ℝ) [Fact (0 < period)] | |
| 17 | +variable {T : ℝ} {hT : 0 < T} {A : Data period T} | |
| 18 | + | |
| 19 | +/-- The canonical pointwise nonlinear raw source of the actual common correction. -/ | |
| 20 | +def FiniteFamily.pointRawSource (F : FiniteFamily period hT A) | |
| 21 | + (t : Icc (0 : ℝ) T) (x : LiftDomain period) : Vector3 := | |
| 22 | + pointEvaluation period x (restrictOperator period (by omega : 3 ≤ 6) | |
| 23 | + (F.rawSourcePath period 6 le_rfl t)) | |
| 24 | + | |
| 25 | +/-- The canonical actual time derivative, defined by bounded evaluation of the genuine continuous Sobolev source. -/ | |
| 26 | +def FiniteFamily.pointTimeDerivative (F : FiniteFamily period hT A) | |
| 27 | + (t : Icc (0 : ℝ) T) (x : LiftDomain period) : Vector3 := | |
| 28 | + pointEvaluation period x (restrictOperator period (by omega : 3 ≤ 6) | |
| 29 | + (((A.atOrder period 6).coefficients period le_rfl).apply t (F.solution 6 le_rfl t))) | |
| 30 | + | |
| 31 | +/-- The actual pointwise time derivative is jointly continuous in time and space. -/ | |
| 32 | +theorem FiniteFamily.pointTimeDerivative_joint_continuous (F : FiniteFamily period hT A) : | |
| 33 | + Continuous (F.pointTimeDerivative period).uncurry := | |
| 34 | + path_representative_joint_continuous period | |
| 35 | + ((restrictOperator period (by omega : 3 ≤ 6)).compLeftContinuous ℝ (Icc (0 : ℝ) T) | |
| 36 | + (sourcePath ((A.atOrder period 6).coefficients period le_rfl) (F.solution 6 le_rfl))) | |
| 37 | + | |
| 38 | +/-- The pointwise time derivative is the literal raw-source and signed-pressure expression. -/ | |
| 39 | +theorem FiniteFamily.pointTimeDerivative_eq_pressure (F : FiniteFamily period hT A) | |
| 40 | + (t : Icc (0 : ℝ) T) (x : LiftDomain period) : | |
| 41 | + F.pointTimeDerivative period t x = -F.pointRawSource period t x - | |
| 42 | + (A.metric.coefficient t).coefficient x (F.pointPressure period t x) := by | |
| 43 | + unfold FiniteFamily.pointTimeDerivative | |
| 44 | + rw [EulerInviscidSobolevEvolution.CorrectionData.source_sobolev] | |
| 45 | + simp only [map_sub, map_neg] | |
| 46 | + rw [pointEvaluation_coefficient period (by omega : 3 ≤ 6) ((A.atOrder period 6).metric.coefficient t) | |
| 47 | + ((A.atOrder period 6).metric.jet t)] | |
| 48 | + rfl | |
| 49 | + | |
| 50 | +/-- The canonical common field has its genuine pointwise first time derivative at every interior time. -/ | |
| 51 | +theorem FiniteFamily.pointField_hasDerivAt (F : FiniteFamily period hT A) | |
| 52 | + (x : LiftDomain period) (t : ℝ) (ht : t ∈ Ioo 0 T) : | |
| 53 | + HasDerivAt (fun r => F.pointField period (projIcc 0 T hT.le r) x) | |
| 54 | + (F.pointTimeDerivative period ⟨t, ht.1.le, ht.2.le⟩ x) t := by | |
| 55 | + have hd := sobolev_hasDerivAt period T hT.le | |
| 56 | + ((A.atOrder period 6).coefficients period le_rfl) (F.solution 6 le_rfl) | |
| 57 | + (F.equation 6 le_rfl) t ht | |
| 58 | + have he := (((pointEvaluation period x).comp (restrictOperator period (by omega : 3 ≤ 6))).hasFDerivAt).comp_hasDerivAt t hd | |
| 59 | + simpa only [Function.comp_def, ContinuousLinearMap.comp_apply, restrictOperator_truncate, | |
| 60 | + FiniteFamily.pointField, FiniteFamily.pointTimeDerivative, extendPath] using he | |
| 61 | + | |
| 62 | +/-- The actual pointwise correction equation uses the reconstructed signed pressure and literal matrix multiplication. -/ | |
| 63 | +theorem FiniteFamily.pointField_hasDerivAt_pressure (F : FiniteFamily period hT A) | |
| 64 | + (x : LiftDomain period) (t : ℝ) (ht : t ∈ Ioo 0 T) : | |
| 65 | + HasDerivAt (fun r => F.pointField period (projIcc 0 T hT.le r) x) | |
| 66 | + (-F.pointRawSource period ⟨t, ht.1.le, ht.2.le⟩ x - | |
| 67 | + (A.metric.coefficient ⟨t, ht.1.le, ht.2.le⟩).coefficient x | |
| 68 | + (F.pointPressure period ⟨t, ht.1.le, ht.2.le⟩ x)) t := by | |
| 69 | + simpa only [F.pointTimeDerivative_eq_pressure period] using F.pointField_hasDerivAt period x t ht | |
| 70 | + | |
| 71 | +end EulerCorrectionAssembly | |
+94 −0 Euler/CorrectionBudgetRestriction.lean added View file
| @@ -0,0 +1,94 @@ | ||
| 1 | +import Euler.CorrectionEnergyData | |
| 2 | +import Euler.CorrectionTimeRestriction | |
| 3 | + | |
| 4 | +/-! Genuine coefficient and metric budgets persist under restriction to a partial time interval. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerCorrectionBudgetRestriction | |
| 9 | + | |
| 10 | +open Set EulerCorrectionOperators EulerCorrectionEnergyData EulerQuadraticSource EulerVolterraConvolution | |
| 11 | +open scoped Topology | |
| 12 | + | |
| 13 | +/-- Clamped restriction agrees with the original continuous path at every time in the shorter interval. -/ | |
| 14 | +theorem extend_restriction_eq {E : Type*} [NormedAddCommGroup E] {T S : ℝ} | |
| 15 | + (hT : 0 ≤ T) (hS : 0 ≤ S) (hTS : T ≤ S) (f : C(Icc (0 : ℝ) S,E)) | |
| 16 | + (t : ℝ) (ht : t ∈ Icc 0 T) : | |
| 17 | + extendPath T hT (f.comp (timeInclusion hTS)) t = extendPath S hS f t := by | |
| 18 | + unfold extendPath | |
| 19 | + simp only [projIcc_of_mem _ ht, projIcc_of_mem _ (show t ∈ Icc 0 S from ⟨ht.1,ht.2.trans hTS⟩)] | |
| 20 | + rfl | |
| 21 | + | |
| 22 | +/-- Restriction of a genuine time derivative gives the same genuine derivative in the shorter interval. -/ | |
| 23 | +theorem hasDerivAt_restriction {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 24 | + {T S : ℝ} (hT : 0 ≤ T) (hS : 0 ≤ S) (hTS : T ≤ S) | |
| 25 | + (f f' : C(Icc (0 : ℝ) S,E)) | |
| 26 | + (hf : ∀ t ∈ Ioo 0 S, HasDerivAt (extendPath S hS f) (extendPath S hS f' t) t) | |
| 27 | + (t : ℝ) (ht : t ∈ Ioo 0 T) : | |
| 28 | + HasDerivAt (extendPath T hT (f.comp (timeInclusion hTS))) | |
| 29 | + (extendPath T hT (f'.comp (timeInclusion hTS)) t) t := by | |
| 30 | + rw [extend_restriction_eq hT hS hTS f' t ⟨ht.1.le,ht.2.le⟩] | |
| 31 | + apply (hf t ⟨ht.1,ht.2.trans_le hTS⟩).congr_of_eventuallyEq | |
| 32 | + filter_upwards [Ioo_mem_nhds ht.1 ht.2] with r hr | |
| 33 | + exact extend_restriction_eq hT hS hTS f r ⟨hr.1.le,hr.2.le⟩ | |
| 34 | + | |
| 35 | +variable (period : ℝ) [Fact (0 < period)] | |
| 36 | + | |
| 37 | +/-- Every concrete spatial budget restricts with exactly the same numerical constants. -/ | |
| 38 | +def SpatialBudget.restrict {q : ℕ} {T S : ℝ} {hq : 6 ≤ q+1} | |
| 39 | + {D : CorrectionData period (q+1) (Icc (0 : ℝ) S)} {N : ℕ} {R : C(Icc (0 : ℝ) S,ℝ)} | |
| 40 | + (B : SpatialBudget period hq D N R) (hTS : T ≤ S) : | |
| 41 | + SpatialBudget period hq (D.comp period (timeInclusion hTS)) N (R.comp (timeInclusion hTS)) where | |
| 42 | + Rc := B.Rc | |
| 43 | + M := B.M | |
| 44 | + B := B.B | |
| 45 | + B0 := B.B0 | |
| 46 | + B1 := B.B1 | |
| 47 | + A0 := B.A0 | |
| 48 | + A2 := B.A2 | |
| 49 | + residual := B.residual | |
| 50 | + Rc_nonneg := B.Rc_nonneg | |
| 51 | + M_one_le := B.M_one_le | |
| 52 | + B_nonneg := B.B_nonneg | |
| 53 | + B0_nonneg := B.B0_nonneg | |
| 54 | + B1_nonneg := B.B1_nonneg | |
| 55 | + A0_nonneg := B.A0_nonneg | |
| 56 | + A2_nonneg := B.A2_nonneg | |
| 57 | + residual_pos := B.residual_pos | |
| 58 | + radius_pos t := B.radius_pos (timeInclusion hTS t) | |
| 59 | + inverse_five t := B.inverse_five (timeInclusion hTS t) | |
| 60 | + inverse_six t := B.inverse_six (timeInclusion hTS t) | |
| 61 | + radius_small t := B.radius_small (timeInclusion hTS t) | |
| 62 | + metric_derivatives t := B.metric_derivatives (timeInclusion hTS t) | |
| 63 | + metric_base t := B.metric_base (timeInclusion hTS t) | |
| 64 | + background t := B.background (timeInclusion hTS t) | |
| 65 | + background_derivative t := B.background_derivative (timeInclusion hTS t) | |
| 66 | + linear t := B.linear (timeInclusion hTS t) | |
| 67 | + quadratic t := B.quadratic (timeInclusion hTS t) | |
| 68 | + residual_bound t := B.residual_bound (timeInclusion hTS t) | |
| 69 | + | |
| 70 | +/-- The actual inverse metric and its genuine derivative restrict with unchanged numerical budgets. -/ | |
| 71 | +def MetricBudget.restrict {q : ℕ} {T S : ℝ} {hS : 0 ≤ S} | |
| 72 | + {D : CorrectionData period (q+1) (Icc (0 : ℝ) S)} | |
| 73 | + (K : MetricBudget period S hS D) (hT : 0 ≤ T) (hTS : T ≤ S) : | |
| 74 | + MetricBudget period T hT (D.comp period (timeInclusion hTS)) where | |
| 75 | + metric t := K.metric (timeInclusion hTS t) | |
| 76 | + continuous := K.continuous.comp (timeInclusion hTS).continuous | |
| 77 | + derivative := K.derivative.comp (timeInclusion hTS) | |
| 78 | + hasDeriv t ht := hasDerivAt_restriction hT hS hTS (K.operatorPath period) K.derivative K.hasDeriv t ht | |
| 79 | + c := K.c | |
| 80 | + c_pos := K.c_pos | |
| 81 | + symmetric t := K.symmetric (timeInclusion hTS t) | |
| 82 | + coercive t := K.coercive (timeInclusion hTS t) | |
| 83 | + inverse t := K.inverse (timeInclusion hTS t) | |
| 84 | + bound := K.bound | |
| 85 | + first := K.first | |
| 86 | + time := K.time | |
| 87 | + bound_nonneg := K.bound_nonneg | |
| 88 | + first_nonneg := K.first_nonneg | |
| 89 | + time_nonneg := K.time_nonneg | |
| 90 | + bound_le t := K.bound_le (timeInclusion hTS t) | |
| 91 | + first_le t := K.first_le (timeInclusion hTS t) | |
| 92 | + time_le t := K.time_le (timeInclusion hTS t) | |
| 93 | + | |
| 94 | +end EulerCorrectionBudgetRestriction | |
+46 −0 Euler/CorrectionContinuation.lean added View file
| @@ -0,0 +1,46 @@ | ||
| 1 | +import Euler.BoundedMildContinuation | |
| 2 | +import Euler.CorrectionTimeRestriction | |
| 3 | + | |
| 4 | +/-! Actual divergence-free continuation of the concrete viscous correction equation. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerCorrectionContinuation | |
| 9 | + | |
| 10 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCorrectionOperators | |
| 11 | + EulerQuadraticSource EulerDivergenceFreeHeat EulerBoundedMildContinuation | |
| 12 | +open scoped Topology | |
| 13 | + | |
| 14 | +variable (period : ℝ) [Fact (0 < period)] | |
| 15 | + | |
| 16 | +/-- Every actual partial zero-initial correction solution preserves the lifted divergence constraint. -/ | |
| 17 | +theorem correction_mild_divergenceFree {q : ℕ} (hq : 6 ≤ q) (ν : ℝ) (hν : 0 < ν) | |
| 18 | + {T S : ℝ} (hT : 0 ≤ T) (hTS : T ≤ S) | |
| 19 | + (D : CorrectionData period q (Icc (0 : ℝ) S)) | |
| 20 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) | |
| 21 | + (hsol : ∀ t, e t = quadraticDuhamel period ν hν hT hTS (D.coefficients period hq) 0 e t) : | |
| 22 | + ∀ t, value period (e t) ∈ divergenceFreeSpace period D.κ D.direction := by | |
| 23 | + let F := ((D.coefficients period hq).comp (timeInclusion hTS)).apply | |
| 24 | + have hF : Continuous (fun p : Icc (0 : ℝ) T × SobolevSpace period (q+1) => F p.1 p.2) := | |
| 25 | + ((D.coefficients period hq).comp (timeInclusion hTS)).continuous | |
| 26 | + have hz := mild_solution_preserves_gradient_zero period D.κ D.direction ν hν T hT 0 | |
| 27 | + (map_zero _) F hF (fun t u => D.source_gradient_zero period hq (timeInclusion hTS t) u) e hsol | |
| 28 | + intro t | |
| 29 | + exact (gradientEvaluation_zero_iff period D.κ D.direction (e t)).mp (hz t) | |
| 30 | + | |
| 31 | +/-- A genuine a-priori Sobolev bound continues the actual zero-initial viscous Euler correction across the prescribed interval. -/ | |
| 32 | +theorem exists_global_correction_of_bound {q : ℕ} (hq : 6 ≤ q) (ν : ℝ) (hν : 0 < ν) | |
| 33 | + (S : ℝ) (hS : 0 < S) (R : ℝ) (hR : 0 ≤ R) | |
| 34 | + (D : CorrectionData period q (Icc (0 : ℝ) S)) | |
| 35 | + (hbound : ∀ (T : ℝ) (hT : 0 ≤ T) (hTS : T ≤ S) | |
| 36 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))), | |
| 37 | + (∀ t, e t = quadraticDuhamel period ν hν hT hTS (D.coefficients period hq) 0 e t) → ‖e‖ ≤ R) : | |
| 38 | + ∃ e : C(Icc (0 : ℝ) S, SobolevSpace period (q+1)), | |
| 39 | + ‖e‖ ≤ R ∧ e ⟨0,le_rfl,hS.le⟩ = 0 ∧ | |
| 40 | + (∀ t, value period (e t) ∈ divergenceFreeSpace period D.κ D.direction) ∧ | |
| 41 | + ∀ t, e t = quadraticDuhamel period ν hν hS.le le_rfl (D.coefficients period hq) 0 e t := by | |
| 42 | + obtain ⟨e,he,hi,hsol⟩ := exists_global_mild_of_bound period q ν hν S hS R hR 0 | |
| 43 | + (by simpa only [norm_zero] using hR) (D.coefficients period hq) hbound | |
| 44 | + exact ⟨e,he,hi,correction_mild_divergenceFree period hq ν hν hS.le le_rfl D e hsol,hsol⟩ | |
| 45 | + | |
| 46 | +end EulerCorrectionContinuation | |
+111 −0 Euler/CorrectionDifference.lean added View file
| @@ -0,0 +1,111 @@ | ||
| 1 | +import Euler.SobolevL2Stability | |
| 2 | +import Euler.GevreyCorrectionSplit | |
| 3 | + | |
| 4 | +/-! Exact nonlinear correction differences and their genuine L² lower-order bounds. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerCorrectionDifference | |
| 9 | + | |
| 10 | +open MeasureTheory EulerLiftedGradientSpace EulerSpatialSobolevInverse EulerCylinderSobolev | |
| 11 | + EulerCylinderSobolevSpace EulerSobolevL2Product EulerSobolevTransport EulerCorrectionOperators | |
| 12 | + EulerSobolevCoefficientPressure EulerSobolevL2Stability | |
| 13 | +open scoped Topology | |
| 14 | + | |
| 15 | +variable (period : ℝ) [Fact (0 < period)] | |
| 16 | + | |
| 17 | +/-- The actual lower-order part of the difference of two correction equations. -/ | |
| 18 | +def differenceRemainder {q : ℕ} {T : Type*} [TopologicalSpace T] | |
| 19 | + (D : CorrectionData period q T) (hq : 6 ≤ q) (t : T) | |
| 20 | + (u v : SobolevSpace period (q+1)) : SobolevSpace period q := | |
| 21 | + transportBilinear period hq (velocityComponents D.κ D.direction) | |
| 22 | + (velocityComponents_norm D.κ D.direction D.scale_bound D.direction_bound) (u-v) (D.approximation t+v) + | |
| 23 | + coefficientSobolevOperator period (D.linear.jet t) (truncateOperator period q (u-v)) + | |
| 24 | + algebraicBilinear period hq (fun i => coefficientSobolevOperator period ((D.quadratic i).jet t)) | |
| 25 | + (D.approximation t+u) (u-v) + | |
| 26 | + algebraicBilinear period hq (fun i => coefficientSobolevOperator period ((D.quadratic i).jet t)) | |
| 27 | + (u-v) (D.approximation t+v) | |
| 28 | + | |
| 29 | +/-- Exact bilinear subtraction exposes one cancellable top transport and the actual lower-order difference. -/ | |
| 30 | +theorem rawSource_sub {q : ℕ} {T : Type*} [TopologicalSpace T] | |
| 31 | + (D : CorrectionData period q T) (hq : 6 ≤ q) (t : T) | |
| 32 | + (u v : SobolevSpace period (q+1)) : | |
| 33 | + D.rawSource period hq t u-D.rawSource period hq t v = | |
| 34 | + transportBilinear period hq (velocityComponents D.κ D.direction) | |
| 35 | + (velocityComponents_norm D.κ D.direction D.scale_bound D.direction_bound) (D.approximation t+u) (u-v)+ | |
| 36 | + differenceRemainder period D hq t u v := by | |
| 37 | + let B := eulerBilinear period hq (velocityComponents D.κ D.direction) | |
| 38 | + (velocityComponents_norm D.κ D.direction D.scale_bound D.direction_bound) | |
| 39 | + (fun i => coefficientSobolevOperator period ((D.quadratic i).jet t)) | |
| 40 | + let A := (coefficientSobolevOperator period (D.linear.jet t)).comp (truncateOperator period q) | |
| 41 | + change (D.residual t+linearize B A (D.approximation t) u+B u u)- | |
| 42 | + (D.residual t+linearize B A (D.approximation t) v+B v v)=_ | |
| 43 | + dsimp only [B,A] | |
| 44 | + simp only [differenceRemainder,linearize_apply,eulerBilinear,add_apply,map_add,map_sub,sub_apply, | |
| 45 | + ContinuousLinearMap.comp_apply] | |
| 46 | + abel | |
| 47 | + | |
| 48 | +/-- The actual algebraic quadratic term has an L² bound in its second input. -/ | |
| 49 | +theorem algebraic_norm {q : ℕ} (hq : 6 ≤ q) (C : Fin 3 → SmoothCoefficient period) | |
| 50 | + (K : ∀ i, CoefficientJet period standardDirection q (C i)) | |
| 51 | + (u v : SobolevSpace period (q+1)) : | |
| 52 | + ‖value period (algebraicBilinear period hq (fun i => coefficientSobolevOperator period (K i)) u v)‖ ≤ | |
| 53 | + ((∑ i : Fin 3, ((C i).bound : ℝ))*sobolevEmbeddingConstant period q)*‖u‖*‖value period v‖ := by | |
| 54 | + rw [algebraicBilinear_apply] | |
| 55 | + change ‖(valueOperator period q) (∑ i : Fin 3, _)‖ ≤ _ | |
| 56 | + rw [map_sum] | |
| 57 | + change ‖∑ i : Fin 3, value period (coefficientSobolevOperator period (K i) (coordinateProduct period hq i u v))‖ ≤ _ | |
| 58 | + have h := (norm_sum_le _ _).trans (Finset.sum_le_sum (fun i (_ : i ∈ (Finset.univ : Finset (Fin 3))) => | |
| 59 | + coordinate_coefficient_norm period hq (C i) (K i) i u v)) | |
| 60 | + simpa only [Finset.sum_mul] using h | |
| 61 | + | |
| 62 | +/-- The same actual algebraic quadratic term has an L² bound in its first input. -/ | |
| 63 | +theorem algebraic_reverse_norm {q : ℕ} (hq : 6 ≤ q) (C : Fin 3 → SmoothCoefficient period) | |
| 64 | + (K : ∀ i, CoefficientJet period standardDirection q (C i)) | |
| 65 | + (u v : SobolevSpace period (q+1)) : | |
| 66 | + ‖value period (algebraicBilinear period hq (fun i => coefficientSobolevOperator period (K i)) u v)‖ ≤ | |
| 67 | + ((∑ i : Fin 3, ((C i).bound : ℝ))*sobolevEmbeddingConstant period q)*‖v‖*‖value period u‖ := by | |
| 68 | + rw [algebraicBilinear_apply] | |
| 69 | + change ‖(valueOperator period q) (∑ i : Fin 3, _)‖ ≤ _ | |
| 70 | + rw [map_sum] | |
| 71 | + change ‖∑ i : Fin 3, value period (coefficientSobolevOperator period (K i) (coordinateProduct period hq i u v))‖ ≤ _ | |
| 72 | + have h := (norm_sum_le _ _).trans (Finset.sum_le_sum (fun i (_ : i ∈ (Finset.univ : Finset (Fin 3))) => | |
| 73 | + coordinate_coefficient_reverse_norm period hq (C i) (K i) i u v)) | |
| 74 | + simpa only [Finset.sum_mul] using h | |
| 75 | + | |
| 76 | +/-- The actual lower-order nonlinear difference is Lipschitz in L² with only fixed higher Sobolev norms in the coefficient. -/ | |
| 77 | +theorem differenceRemainder_norm {q : ℕ} {T : Type*} [TopologicalSpace T] | |
| 78 | + (D : CorrectionData period q T) (hq : 6 ≤ q) (t : T) | |
| 79 | + (u v : SobolevSpace period (q+1)) : | |
| 80 | + ‖value period (differenceRemainder period D hq t u v)‖ ≤ | |
| 81 | + (((D.linear.coefficient t).bound : ℝ)+ | |
| 82 | + 4*sobolevEmbeddingConstant period q*‖D.approximation t+v‖+ | |
| 83 | + (∑ i : Fin 3, (((D.quadratic i).coefficient t).bound : ℝ))*sobolevEmbeddingConstant period q* | |
| 84 | + (‖D.approximation t+u‖+‖D.approximation t+v‖))*‖value period (u-v)‖ := by | |
| 85 | + let d := u-v | |
| 86 | + let L := velocityComponents D.κ D.direction | |
| 87 | + let hL := velocityComponents_norm D.κ D.direction D.scale_bound D.direction_bound | |
| 88 | + let C := fun i => coefficientSobolevOperator period ((D.quadratic i).jet t) | |
| 89 | + have htrans := transport_reverse_norm period hq L hL d (D.approximation t+v) | |
| 90 | + have halg1 := algebraic_norm period hq (fun i => (D.quadratic i).coefficient t) | |
| 91 | + (fun i => (D.quadratic i).jet t) (D.approximation t+u) d | |
| 92 | + have halg2 := algebraic_reverse_norm period hq (fun i => (D.quadratic i).coefficient t) | |
| 93 | + (fun i => (D.quadratic i).jet t) d (D.approximation t+v) | |
| 94 | + have hlin : ‖value period (coefficientSobolevOperator period (D.linear.jet t) (truncateOperator period q d))‖ ≤ | |
| 95 | + ((D.linear.coefficient t).bound : ℝ)*‖value period d‖ := by | |
| 96 | + rw [coefficientSobolevOperator_value,value_truncateOperator] | |
| 97 | + exact ((D.linear.coefficient t).operator.le_opNorm _).trans | |
| 98 | + (mul_le_mul_of_nonneg_right (EulerLiftedPressure.coefficientOperator_norm_le | |
| 99 | + (D.linear.coefficient t).coefficient (D.linear.coefficient t).measurable | |
| 100 | + (D.linear.coefficient t).bound (D.linear.coefficient t).norm_bound) (norm_nonneg _)) | |
| 101 | + have hsum : ‖value period (differenceRemainder period D hq t u v)‖ ≤ | |
| 102 | + ‖value period (transportBilinear period hq L hL d (D.approximation t+v))‖+ | |
| 103 | + ‖value period (coefficientSobolevOperator period (D.linear.jet t) (truncateOperator period q d))‖+ | |
| 104 | + ‖value period (algebraicBilinear period hq C (D.approximation t+u) d)‖+ | |
| 105 | + ‖value period (algebraicBilinear period hq C d (D.approximation t+v))‖ := by | |
| 106 | + change ‖(_+_+_+_ : LiftL2 period)‖ ≤ _ | |
| 107 | + exact (norm_add_le _ _).trans (add_le_add | |
| 108 | + ((norm_add_le _ _).trans (add_le_add (norm_add_le _ _) le_rfl)) le_rfl) | |
| 109 | + exact hsum.trans ((add_le_add (add_le_add (add_le_add htrans hlin) halg1) halg2).trans_eq (by dsimp [d]; ring)) | |
| 110 | + | |
| 111 | +end EulerCorrectionDifference | |
+126 −0 Euler/CorrectionDifferenceMetric.lean added View file
| @@ -0,0 +1,126 @@ | ||
| 1 | +import Euler.CorrectionDifferencePDE | |
| 2 | +import Euler.SobolevDifferenceEnergy | |
| 3 | + | |
| 4 | +/-! The actual nonlinear viscosity-difference PDE implies a fixed squared metric energy inequality. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerCorrectionDifferenceMetric | |
| 9 | + | |
| 10 | +open MeasureTheory Set InnerProductSpace EulerLiftedGradientSpace EulerLiftedPressure | |
| 11 | + EulerSpatialSobolevInverse EulerCylinderSobolevSpace EulerCorrectionOperators EulerCorrectionDifference | |
| 12 | + EulerCorrectionDifferencePDE EulerCorrectionStabilityConstants EulerSobolevTransport | |
| 13 | + EulerSobolevMetricTransport EulerSobolevHeatGenerator EulerMetricHeatEnergy EulerSobolevL2Product | |
| 14 | + EulerSquaredMetricStability EulerSobolevDifferenceEnergy | |
| 15 | +open scoped Topology | |
| 16 | + | |
| 17 | +variable (period : ℝ) [Fact (0 < period)] | |
| 18 | + | |
| 19 | +/-- The existing Sobolev normed-group instance for the literal metric difference equation. -/ | |
| 20 | +local instance metricSobolevGroup (q : ℕ) : NormedAddCommGroup (SobolevSpace period q) := inferInstance | |
| 21 | +/-- The existing real Sobolev module instance for the literal metric difference equation. -/ | |
| 22 | +local instance metricSobolevSpace (q : ℕ) : NormedSpace ℝ (SobolevSpace period q) := inferInstance | |
| 23 | + | |
| 24 | +/-- The actual correction-difference PDE gives the quantitative squared L² metric bound, with no assumed energy inequality. -/ | |
| 25 | +theorem difference_metric_deriv_bound {q : ℕ} {T : Type*} [TopologicalSpace T] | |
| 26 | + (D : CorrectionData period q T) (hq : 6 ≤ q) (τ : T) | |
| 27 | + (u v : SobolevSpace period (q+1)) (A : SmoothCoefficient period) | |
| 28 | + (K : ℝ → LiftL2 period →L[ℝ] LiftL2 period) (e : ℝ → LiftL2 period) | |
| 29 | + (t ν μ c Kb Kx Kt A0 A2 Z R : ℝ) (K' : LiftL2 period →L[ℝ] LiftL2 period) | |
| 30 | + (hc : 0 < c) (hν : 0 ≤ ν) (hν1 : ν ≤ 1) | |
| 31 | + (hKv : K t=A.operator) (hev : e t=value period (u-v)) | |
| 32 | + (hK : HasDerivAt K K' t) (he : HasDerivAt e (differenceRhs period D hq ν μ τ u v) t) | |
| 33 | + (hKb : ‖A.operator‖ ≤ Kb) (hKx : (A.firstBound : ℝ) ≤ Kx) (hKt : ‖K'‖ ≤ Kt) | |
| 34 | + (hA0 : ((D.linear.coefficient τ).bound : ℝ) ≤ A0) | |
| 35 | + (hA2 : (∑ i : Fin 3, (((D.quadratic i).coefficient τ).bound : ℝ)) ≤ A2) | |
| 36 | + (hZ : ‖D.approximation τ‖ ≤ Z) (hu : ‖u‖ ≤ R) (hv : ‖v‖ ≤ R) | |
| 37 | + (hsym : ∀ x a b, ⟪A.coefficient x a,b⟫_ℝ=⟪a,A.coefficient x b⟫_ℝ) | |
| 38 | + (hpos : ∀ x a, c^2*‖a‖^2 ≤ ⟪A.coefficient x a,a⟫_ℝ) | |
| 39 | + (hinv : ∀ x a, A.coefficient x ((D.metric.coefficient τ).coefficient x a)=a) | |
| 40 | + (hz : value period (D.approximation τ) ∈ divergenceFreeSpace period D.κ D.direction) | |
| 41 | + (hud : value period u ∈ divergenceFreeSpace period D.κ D.direction) | |
| 42 | + (hvd : value period v ∈ divergenceFreeSpace period D.κ D.direction) : | |
| 43 | + deriv (fun s => ⟪K s (e s),e s⟫_ℝ) t ≤ | |
| 44 | + growthConstant c Kb Kx Kt (velocityBound period q Z R) (lowerConstant period q A0 A2 Z R)* | |
| 45 | + ⟪K t (e t),e t⟫_ℝ+defectConstant Kb R*|ν-μ|^2 := by | |
| 46 | + let d := u-v | |
| 47 | + let top := value period (transportBilinear period hq (velocityComponents D.κ D.direction) | |
| 48 | + (velocityComponents_norm D.κ D.direction D.scale_bound D.direction_bound) (D.approximation τ+u) d) | |
| 49 | + let p := value period (D.pressure period hq τ u)-value period (D.pressure period hq τ v) | |
| 50 | + let F := -value period (differenceRemainder period D hq τ u v)+ | |
| 51 | + (ν-μ) • laplacianEvaluation period (q+1) (by omega) v | |
| 52 | + let L := lowerConstant period q A0 A2 Z R | |
| 53 | + let V := velocityBound period q Z R | |
| 54 | + have hr0 := (norm_nonneg u).trans hu | |
| 55 | + have hz0 := (norm_nonneg (D.approximation τ)).trans hZ | |
| 56 | + have ha00 := (D.linear.coefficient τ).bound.coe_nonneg.trans hA0 | |
| 57 | + have ha20 := (Finset.sum_nonneg (fun i _ => ((D.quadratic i).coefficient τ).bound.coe_nonneg)).trans hA2 | |
| 58 | + have hL : 0 ≤ L := lowerConstant_nonneg period q A0 A2 Z R ha00 ha20 hz0 hr0 | |
| 59 | + have hV : 0 ≤ V := velocityBound_nonneg period q Z R hz0 hr0 | |
| 60 | + have hkx0 := A.firstBound.coe_nonneg.trans hKx | |
| 61 | + have hkb0 := (norm_nonneg A.operator).trans hKb | |
| 62 | + have hkt0 := (norm_nonneg K').trans hKt | |
| 63 | + have heq : differenceRhs period D hq ν μ τ u v+top+(D.metric.coefficient τ).operator p = | |
| 64 | + F+ν • laplacianEvaluation period (q+1) (by omega) d := by | |
| 65 | + dsimp only [differenceRhs,top,p,F,d] | |
| 66 | + abel | |
| 67 | + have hdiv : value period d ∈ divergenceFreeSpace period D.κ D.direction := | |
| 68 | + (divergenceFreeSpace period D.κ D.direction).sub_mem hud hvd | |
| 69 | + have hpgrad : p ∈ gradientSpace period D.κ D.direction := | |
| 70 | + (gradientSpace period D.κ D.direction).sub_mem (D.pressure_mem_gradient period hq τ u) | |
| 71 | + (D.pressure_mem_gradient period hq τ v) | |
| 72 | + have hp : ⟪K t (e t),(D.metric.coefficient τ).operator p⟫_ℝ=0 := by | |
| 73 | + rw [hKv,hev] | |
| 74 | + exact metric_pressure_cancellation period D.κ D.direction A.coefficient (D.metric.coefficient τ).coefficient | |
| 75 | + A.measurable (D.metric.coefficient τ).measurable A.bound (D.metric.coefficient τ).bound | |
| 76 | + A.norm_bound (D.metric.coefficient τ).norm_bound hsym hinv hdiv hpgrad | |
| 77 | + have ht : |⟪K t (e t),top⟫_ℝ| ≤ (Kx*V)*‖e t‖^2 := by | |
| 78 | + rw [hKv,hev] | |
| 79 | + exact difference_transport_bound period D hq τ A u v Kx Z R hKx hZ hu hsym hz hud | |
| 80 | + have hheat : ⟪K t (e t),laplacianEvaluation period (q+1) (by omega) d⟫_ℝ ≤ | |
| 81 | + (2*Kx^2/c^2)*‖e t‖^2 := by | |
| 82 | + rw [hKv,hev] | |
| 83 | + exact difference_heat_bound period (by omega : 2 ≤ q+1) A d c Kx hc hKx hpos | |
| 84 | + have hforce : ‖F‖ ≤ L*‖e t‖+|ν-μ| *(4*R) := by | |
| 85 | + rw [hev] | |
| 86 | + have hrem := differenceRemainder_uniform period D hq τ u v A0 A2 Z R hA0 hA2 hZ hu hv | |
| 87 | + have hlap := (laplacianEvaluation_bound period (by omega : 2 ≤ q+1) v).trans | |
| 88 | + (mul_le_mul_of_nonneg_left hv (by norm_num : (0 : ℝ) ≤ 4)) | |
| 89 | + have hh := norm_add_le (-value period (differenceRemainder period D hq τ u v)) | |
| 90 | + ((ν-μ) • laplacianEvaluation period (q+1) (by omega) v) | |
| 91 | + rw [norm_neg,norm_smul,Real.norm_eq_abs] at hh | |
| 92 | + exact hh.trans (add_le_add hrem (mul_le_mul_of_nonneg_left hlap (abs_nonneg _))) | |
| 93 | + have hcoer : c^2*‖e t‖^2 ≤ ⟪K t (e t),e t⟫_ℝ := by | |
| 94 | + rw [hKv] | |
| 95 | + exact coefficientOperator_coercive A.coefficient A.measurable A.bound A.norm_bound (c^2) hpos (e t) | |
| 96 | + have hsymL : ∀ a b, ⟪K t a,b⟫_ℝ=⟪a,K t b⟫_ℝ := by | |
| 97 | + rw [hKv] | |
| 98 | + exact coefficientOperator_inner_swap A.coefficient A.measurable A.bound A.norm_bound hsym | |
| 99 | + have hgen := metric_derivative_bound K e t ν c (Kx*V) (2*Kx^2/c^2) L |ν-μ| (4*R) K' | |
| 100 | + (differenceRhs period D hq ν μ τ u v) top ((D.metric.coefficient τ).operator p) F | |
| 101 | + (laplacianEvaluation period (q+1) (by omega) d) hc hν (mul_nonneg hkx0 hV) (by positivity) hL | |
| 102 | + hK he hsymL hcoer heq hp ht hheat hforce | |
| 103 | + have he0 : 0 ≤ ⟪K t (e t),e t⟫_ℝ := (mul_nonneg (sq_nonneg c) (sq_nonneg ‖e t‖)).trans hcoer | |
| 104 | + have hkn : ‖K t‖ ≤ Kb := by rw [hKv]; exact hKb | |
| 105 | + have hg : (‖K'‖+2*(Kx*V)+2*ν*(2*Kx^2/c^2)+2*‖K t‖*L+1)/c^2 ≤ | |
| 106 | + growthConstant c Kb Kx Kt V L := by | |
| 107 | + unfold growthConstant | |
| 108 | + apply div_le_div_of_nonneg_right _ (sq_nonneg c) | |
| 109 | + have hh : 2*ν*(2*Kx^2/c^2) ≤ 4*Kx^2/c^2 := by | |
| 110 | + calc | |
| 111 | + _ = ν*(4*Kx^2/c^2) := by ring | |
| 112 | + _ ≤ 1*(4*Kx^2/c^2) := mul_le_mul_of_nonneg_right hν1 (by positivity) | |
| 113 | + _ = _ := one_mul _ | |
| 114 | + have hk : 2*‖K t‖*L ≤ 2*Kb*L := by | |
| 115 | + have h := mul_le_mul_of_nonneg_right hkn (mul_nonneg (by norm_num : (0 : ℝ) ≤ 2) hL) | |
| 116 | + nlinarith only [h] | |
| 117 | + have hsum := add_le_add (add_le_add (add_le_add hKt (le_refl (2*(Kx*V)))) hh) hk | |
| 118 | + exact (add_le_add hsum (le_refl 1)).trans_eq (by ring) | |
| 119 | + have hd : (‖K t‖*(4*R))^2 ≤ defectConstant Kb R := by | |
| 120 | + have h := mul_le_mul_of_nonneg_right hkn (mul_nonneg (by norm_num : (0 : ℝ) ≤ 4) hr0) | |
| 121 | + exact pow_le_pow_left₀ (mul_nonneg (norm_nonneg (K t)) | |
| 122 | + (mul_nonneg (by norm_num : (0 : ℝ) ≤ 4) hr0)) h 2 | |
| 123 | + exact hgen.trans (add_le_add (mul_le_mul_of_nonneg_right hg he0) | |
| 124 | + (mul_le_mul_of_nonneg_right hd (sq_nonneg _))) | |
| 125 | + | |
| 126 | +end EulerCorrectionDifferenceMetric | |
+77 −0 Euler/CorrectionDifferencePDE.lean added View file
| @@ -0,0 +1,77 @@ | ||
| 1 | +import Euler.CorrectionDifference | |
| 2 | +import Euler.CorrectionMildEquation | |
| 3 | + | |
| 4 | +/-! The exact viscosity-difference equation of two genuine nonlinear mild corrections. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerCorrectionDifferencePDE | |
| 9 | + | |
| 10 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCorrectionOperators | |
| 11 | + EulerQuadraticSource EulerCorrectionContinuation EulerCorrectionDifference EulerSobolevTransport | |
| 12 | + EulerSobolevMetricTransport EulerSobolevHeatGenerator EulerVolterraConvolution | |
| 13 | +open scoped Topology | |
| 14 | + | |
| 15 | +variable (period : ℝ) [Fact (0 < period)] | |
| 16 | + | |
| 17 | +/-- The existing Sobolev normed-group instance, fixed explicitly for difference-equation elaboration. -/ | |
| 18 | +local instance differenceSobolevGroup (q : ℕ) : NormedAddCommGroup (SobolevSpace period q) := inferInstance | |
| 19 | +/-- The existing real Sobolev module instance, fixed explicitly for difference-equation elaboration. -/ | |
| 20 | +local instance differenceSobolevSpace (q : ℕ) : NormedSpace ℝ (SobolevSpace period q) := inferInstance | |
| 21 | + | |
| 22 | +/-- The literal right side of the viscosity-difference equation, including its genuine pressure difference. -/ | |
| 23 | +def differenceRhs {q : ℕ} {T : Type*} [TopologicalSpace T] | |
| 24 | + (D : CorrectionData period q T) (hq : 6 ≤ q) (ν μ : ℝ) (t : T) | |
| 25 | + (u v : SobolevSpace period (q+1)) : LiftL2 period := | |
| 26 | + ν • laplacianEvaluation period (q+1) (by omega) (u-v)+ | |
| 27 | + (ν-μ) • laplacianEvaluation period (q+1) (by omega) v- | |
| 28 | + value period (transportBilinear period hq (velocityComponents D.κ D.direction) | |
| 29 | + (velocityComponents_norm D.κ D.direction D.scale_bound D.direction_bound) (D.approximation t+u) (u-v))- | |
| 30 | + value period (differenceRemainder period D hq t u v)- | |
| 31 | + (D.metric.coefficient t).operator (value period (D.pressure period hq t u)-value period (D.pressure period hq t v)) | |
| 32 | + | |
| 33 | +/-- Exact vector subtraction for a bilinear evolution with two viscosities. -/ | |
| 34 | +theorem vector_difference_identity {H : Type*} [AddCommGroup H] [Module ℝ H] | |
| 35 | + (ν μ : ℝ) (a b ru rv top rem pu pv : H) (hraw : ru-rv=top+rem) : | |
| 36 | + ν • (a-b)+(ν-μ) • b-top-rem-(pu-pv) = | |
| 37 | + (ν • a-ru-pu)-(μ • b-rv-pv) := by | |
| 38 | + have hr : ru=rv+(top+rem) := (sub_eq_iff_eq_add.mp hraw).trans (add_comm _ _) | |
| 39 | + rw [hr,smul_sub,sub_smul] | |
| 40 | + abel | |
| 41 | + | |
| 42 | +/-- The exposed difference equation is exactly the subtraction of the two actual PDE right sides. -/ | |
| 43 | +theorem differenceRhs_eq_sub {q : ℕ} {T : Type*} [TopologicalSpace T] | |
| 44 | + (D : CorrectionData period q T) (hq : 6 ≤ q) (ν μ : ℝ) (t : T) | |
| 45 | + (u v : SobolevSpace period (q+1)) : | |
| 46 | + differenceRhs period D hq ν μ t u v = | |
| 47 | + (ν • laplacianEvaluation period (q+1) (by omega) u-value period (D.rawSource period hq t u)- | |
| 48 | + (D.metric.coefficient t).operator (value period (D.pressure period hq t u)))- | |
| 49 | + (μ • laplacianEvaluation period (q+1) (by omega) v-value period (D.rawSource period hq t v)- | |
| 50 | + (D.metric.coefficient t).operator (value period (D.pressure period hq t v))) := by | |
| 51 | + have hraw := congrArg (valueOperator period q) (rawSource_sub period D hq t u v) | |
| 52 | + change value period (D.rawSource period hq t u)-value period (D.rawSource period hq t v) = | |
| 53 | + value period (transportBilinear period hq (velocityComponents D.κ D.direction) | |
| 54 | + (velocityComponents_norm D.κ D.direction D.scale_bound D.direction_bound) | |
| 55 | + (D.approximation t+u) (u-v))+value period (differenceRemainder period D hq t u v) at hraw | |
| 56 | + have hlap := (laplacianEvaluation period (q+1) (by omega)).map_sub u v | |
| 57 | + have hp := (D.metric.coefficient t).operator.map_sub | |
| 58 | + (value period (D.pressure period hq t u)) (value period (D.pressure period hq t v)) | |
| 59 | + unfold differenceRhs | |
| 60 | + rw [hlap,hp] | |
| 61 | + exact vector_difference_identity ν μ _ _ _ _ _ _ _ _ hraw | |
| 62 | + | |
| 63 | +/-- Subtracting two actual mild correction equations gives the literal transport-pressure-heat difference equation. -/ | |
| 64 | +theorem correction_difference_hasDerivAt {q : ℕ} (hq : 6 ≤ q) (ν μ : ℝ) (hν : 0 < ν) (hμ : 0 < μ) | |
| 65 | + (T : ℝ) (hT : 0 ≤ T) (D : CorrectionData period q (Icc (0 : ℝ) T)) | |
| 66 | + (u v : C(Icc (0 : ℝ) T,SobolevSpace period (q+1))) | |
| 67 | + (hu : ∀ t, u t = quadraticDuhamel period ν hν hT le_rfl (D.coefficients period hq) 0 u t) | |
| 68 | + (hv : ∀ t, v t = quadraticDuhamel period μ hμ hT le_rfl (D.coefficients period hq) 0 v t) | |
| 69 | + (t : ℝ) (ht : t ∈ Ioo 0 T) : | |
| 70 | + HasDerivAt (fun s => value period (extendPath T hT u s)-value period (extendPath T hT v s)) | |
| 71 | + (differenceRhs period D hq ν μ ⟨t,ht.1.le,ht.2.le⟩ (u ⟨t,ht.1.le,ht.2.le⟩) (v ⟨t,ht.1.le,ht.2.le⟩)) t := by | |
| 72 | + have hu' := correction_mild_hasDerivAt period hq ν hν hT le_rfl D u hu t ht | |
| 73 | + have hv' := correction_mild_hasDerivAt period hq μ hμ hT le_rfl D v hv t ht | |
| 74 | + apply (hu'.sub hv').congr_deriv | |
| 75 | + exact (differenceRhs_eq_sub period D hq ν μ ⟨t,ht.1.le,ht.2.le⟩ _ _).symm | |
| 76 | + | |
| 77 | +end EulerCorrectionDifferencePDE | |
+106 −0 Euler/CorrectionEnergyBootstrap.lean added View file
| @@ -0,0 +1,106 @@ | ||
| 1 | +import Euler.CorrectionEnergyScalar | |
| 2 | + | |
| 3 | +/-! The actual nonlinear viscous correction closes its shrinking-radius Gevrey bootstrap from the constructed mild equation. -/ | |
| 4 | + | |
| 5 | +noncomputable section | |
| 6 | + | |
| 7 | +namespace EulerCorrectionEnergyBootstrap | |
| 8 | + | |
| 9 | +open MeasureTheory Set InnerProductSpace EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 10 | + EulerSpatialSobolevInverse EulerCorrectionOperators EulerSobolevCoefficientPressure EulerCorrectionLowerData | |
| 11 | + EulerCorrectionEnergyData EulerCorrectionEnergyMajorants EulerCorrectionMildEnergy EulerCorrectionEnergyScalar | |
| 12 | + EulerEnergyMetricPaths EulerGevreyMetricEstimate EulerTimeLp EulerVolterraConvolution EulerSobolevHeat | |
| 13 | + EulerIntegralEnergyBootstrap | |
| 14 | +open scoped Topology | |
| 15 | + | |
| 16 | +/-- Increasing the single scalar coefficient preserves the signed radius term in the genuine energy estimate. -/ | |
| 17 | +theorem raise_energy_constant (C0 C X Y r b R B : ℝ) (hC : C0 ≤ C) | |
| 18 | + (hX : 0 ≤ X) (hY : 0 ≤ Y) (hr : 0 ≤ r) (hR : 0 ≤ R) (hB : 0 ≤ B) : | |
| 19 | + C0*(X+X^2+r)+(b+C0*R*(B+X))*Y ≤ C*(X+X^2+r)+(b+C*R*(B+X))*Y := by | |
| 20 | + have h1 := mul_le_mul_of_nonneg_right hC (add_nonneg (add_nonneg hX (sq_nonneg X)) hr) | |
| 21 | + have h2 := mul_le_mul_of_nonneg_right hC (mul_nonneg (mul_nonneg hR (add_nonneg hB hX)) hY) | |
| 22 | + nlinarith only [h1,h2] | |
| 23 | + | |
| 24 | +variable (period : ℝ) [Fact (0 < period)] | |
| 25 | + | |
| 26 | +/-- Every actual zero-initial nonlinear correction mild solution satisfies the closed Gevrey estimate. | |
| 27 | +The proof derives its full-order all-subinterval energy inequality, source bound, pressure cancellation, and maximal regularity rather than assuming them. -/ | |
| 28 | +theorem correction_mild_bootstrap {q : ℕ} (hq : 6 ≤ q) (T : ℝ) (hT : 0 ≤ T) | |
| 29 | + (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) | |
| 30 | + (KG : ∀ t, CoefficientJet period standardDirection q (D.metric.coefficient t)) | |
| 31 | + (KL : ∀ t, CoefficientJet period standardDirection q (D.linear.coefficient t)) | |
| 32 | + (KQ : ∀ i t, CoefficientJet period standardDirection q ((D.quadratic i).coefficient t)) | |
| 33 | + (hGq : Continuous (fun t => coefficientSobolevOperator period (KG t))) | |
| 34 | + (hLq : Continuous (fun t => coefficientSobolevOperator period (KL t))) | |
| 35 | + (hQq : ∀ i, Continuous (fun t => coefficientSobolevOperator period (KQ i t))) | |
| 36 | + (hG : Continuous (fun t => (D.metric.coefficient t).operator)) | |
| 37 | + (N : ℕ) (hN : N+6 ≤ q+1) (R Rdot : C(Icc (0 : ℝ) T, ℝ)) | |
| 38 | + (S : SpatialBudget period (by omega : 6 ≤ q+1) D N R) (K : MetricBudget period T hT D) | |
| 39 | + (C Δ ρ0 : ℝ) (hC : combinedConstant period S K ≤ C) (hΔ : 0 < Δ) (hΔ1 : Δ ≤ 1) (hρ0 : 0 < ρ0) | |
| 40 | + (hdecay : 2*C*(S.B0+Δ)*T ≤ ρ0/2) (hscale : ρ0*S.Rc ≤ 1) | |
| 41 | + (hsmall : 2*S.residual*Real.exp (3*C*T) ≤ Δ/2) | |
| 42 | + (hR : ∀ t, R t = ρ0-2*C*(S.B0+Δ)*t.val) | |
| 43 | + (hRdot : ∀ t, Rdot t = -2*C*(S.B0+Δ)) | |
| 44 | + (ν : ℝ) (hν : 0 < ν) (hν1 : ν ≤ 1) | |
| 45 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) | |
| 46 | + (hsol : ∀ t : Icc (0 : ℝ) T, | |
| 47 | + e t = heatOperator period (q+1) (2*ν*t.val).toNNReal 0 + | |
| 48 | + ∫ r in (0 : ℝ)..t.val, heatKernel period q ν hν r | |
| 49 | + (extendPath T hT (forcingPath period hq (lowerData period D KG KL KQ hGq hLq hQq) e) (t.val-r))) | |
| 50 | + (hz : ∀ t, value period (D.approximation t) ∈ divergenceFreeSpace period D.κ D.direction) | |
| 51 | + (he : ∀ t, value period (e t) ∈ divergenceFreeSpace period D.κ D.direction) : | |
| 52 | + ∀ t : Icc (0 : ℝ) T, | |
| 53 | + energyNorm period N hN (R t) (K.operatorPath period t) (e t) ≤ 2*S.residual*Real.exp (3*C*t.val) ∧ | |
| 54 | + energyNorm period N hN (R t) (K.operatorPath period t) (e t) ≤ Δ/2 := by | |
| 55 | + let X := energyPath period N hN T R (K.operatorPath period) e | |
| 56 | + let Y := lossPath period N hN T R (K.operatorPath period) e | |
| 57 | + let A := correctionRhs period S hN K Rdot e | |
| 58 | + have hCp : 0 < C := (combinedConstant_pos period S K).trans_le hC | |
| 59 | + have hRd : ∀ t ∈ Ioo 0 T, HasDerivAt (extendPath T hT R) (extendPath T hT Rdot t) t := by | |
| 60 | + intro t ht | |
| 61 | + exact affine_radius_derivative T hT R Rdot ρ0 (2*C*(S.B0+Δ)) hR | |
| 62 | + (fun τ => (hRdot τ).trans (by ring)) t ht | |
| 63 | + have hinit : extendPath T hT X 0 ≤ 2*S.residual := by | |
| 64 | + have he0 := zero_mild_trace period ν hν T hT | |
| 65 | + (forcingPath period hq (lowerData period D KG KL KQ hGq hLq hQq) e) e hsol | |
| 66 | + change X (projIcc 0 T hT 0) ≤ _ | |
| 67 | + rw [projIcc_of_mem hT ⟨le_rfl,hT⟩] | |
| 68 | + change energyPath period N hN T R (K.operatorPath period) e ⟨0,le_rfl,hT⟩ ≤ _ | |
| 69 | + rw [energyPath_apply,he0,energyNorm_zero] | |
| 70 | + exact mul_nonneg (by norm_num : (0 : ℝ) ≤ 2) S.residual_pos.le | |
| 71 | + have hint : ∀ s ∈ Icc (0 : ℝ) T, ∀ t ∈ Icc (0 : ℝ) T, s ≤ t → | |
| 72 | + extendPath T hT X t-extendPath T hT X s ≤ ∫ r in s..t, extendPath T hT A r := by | |
| 73 | + intro s hs t ht hst | |
| 74 | + have h := correction_mild_integral period hq T hT D KG KL KQ hGq hLq hQq hG N hN R Rdot S K hRd | |
| 75 | + ν hν hν1 0 e hsol hz he s t hs.1 hst ht.2 | |
| 76 | + change X (projIcc 0 T hT t)-X (projIcc 0 T hT s) ≤ _ | |
| 77 | + rw [projIcc_of_mem hT ht,projIcc_of_mem hT hs] | |
| 78 | + exact h | |
| 79 | + have hineq : ∀ t ∈ Ico (0 : ℝ) T, | |
| 80 | + extendPath T hT A t ≤ C*(extendPath T hT X t+(extendPath T hT X t)^2+S.residual)+ | |
| 81 | + ((-2*C*(S.B0+Δ))/(ρ0-2*C*(S.B0+Δ)*t)+ | |
| 82 | + C*((ρ0-2*C*(S.B0+Δ)*t)⁻¹+S.Rc)*(S.B0+extendPath T hT X t))*extendPath T hT Y t := by | |
| 83 | + intro t ht | |
| 84 | + let τ : Icc (0 : ℝ) T := ⟨t,ht.1,ht.2.le⟩ | |
| 85 | + have h := correctionRhs_bound period S hN K Rdot e τ | |
| 86 | + have h' := raise_energy_constant (combinedConstant period S K) C (X τ) (Y τ) S.residual | |
| 87 | + (Rdot τ/R τ) ((R τ)⁻¹+S.Rc) S.B0 hC (energy_nonneg period S hN K e τ) | |
| 88 | + (loss_nonneg period S hN K e τ) S.residual_pos.le | |
| 89 | + (add_nonneg (inv_nonneg.mpr (S.radius_pos τ).le) S.Rc_nonneg) S.B0_nonneg | |
| 90 | + have hh := h.trans h' | |
| 91 | + change A (projIcc 0 T hT t) ≤ C*(X (projIcc 0 T hT t)+(X (projIcc 0 T hT t))^2+S.residual)+ | |
| 92 | + ((-2*C*(S.B0+Δ))/(ρ0-2*C*(S.B0+Δ)*t)+C*((ρ0-2*C*(S.B0+Δ)*t)⁻¹+S.Rc)* | |
| 93 | + (S.B0+X (projIcc 0 T hT t)))*Y (projIcc 0 T hT t) | |
| 94 | + rw [projIcc_of_mem hT ⟨ht.1,ht.2.le⟩] | |
| 95 | + simpa only [hR τ,hRdot τ] using hh | |
| 96 | + have hclosed := close_integral_energy_estimate (extendPath T hT X) (extendPath T hT A) (extendPath T hT Y) | |
| 97 | + C S.B0 Δ S.residual ρ0 T S.Rc hCp S.B0_nonneg hΔ hΔ1 S.residual_pos hρ0 hT S.Rc_nonneg hdecay hscale hsmall | |
| 98 | + (extendPath_continuous T hT X).continuousOn (extendPath_continuous T hT A).continuousOn hinit hint | |
| 99 | + (fun t _ => loss_nonneg period S hN K e (projIcc 0 T hT t)) hineq | |
| 100 | + intro t | |
| 101 | + have h := hclosed t.val t.property | |
| 102 | + change X (projIcc 0 T hT t.val) ≤ _ ∧ X (projIcc 0 T hT t.val) ≤ _ at h | |
| 103 | + rw [projIcc_of_mem hT t.property] at h | |
| 104 | + simpa only [X,energyPath_apply] using h | |
| 105 | + | |
| 106 | +end EulerCorrectionEnergyBootstrap | |
+117 −0 Euler/CorrectionEnergyBound.lean added View file
| @@ -0,0 +1,117 @@ | ||
| 1 | +import Euler.CorrectionEnergyTime | |
| 2 | +import Euler.EnergyMetricPaths | |
| 3 | +import Euler.GevreyMetricForcing | |
| 4 | + | |
| 5 | +/-! The actual nonlinear Bochner forcing is bounded by a continuous metric-energy polynomial, with constants independent of the external cutoff. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +namespace EulerCorrectionEnergyBound | |
| 10 | + | |
| 11 | +open MeasureTheory Set InnerProductSpace EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 12 | + EulerSpatialSobolevInverse EulerCorrectionOperators EulerCorrectionEnergyTime EulerEnergyMetricPaths | |
| 13 | + EulerGevreyMetricEstimate EulerGevreyCorrectionBound EulerH6Pressure EulerSobolevGevreyOperators | |
| 14 | + EulerSobolevTransportCommutator EulerSobolevTransport EulerH6Nonlinear EulerGevreyMetricComparison EulerTimeLp EulerVolterraConvolution EulerSobolevWordValueIdentity | |
| 15 | + EulerRegularizedTopBlocks EulerGevreyOrderZero EulerTimeCorrectionSource EulerWeightedCylinderEnergy | |
| 16 | +open scoped Topology | |
| 17 | + | |
| 18 | +variable (period : ℝ) [Fact (0 < period)] | |
| 19 | + | |
| 20 | +/-- A local concrete normed-group instance for the actual Sobolev energy scale. -/ | |
| 21 | +local instance boundTimeGroup (q : ℕ) : NormedAddCommGroup (SobolevSpace period q) := inferInstance | |
| 22 | + | |
| 23 | +/-- A local concrete real normed-space instance for the actual Sobolev energy scale. -/ | |
| 24 | +local instance boundTimeSpace (q : ℕ) : NormedSpace ℝ (SobolevSpace period q) := inferInstance | |
| 25 | + | |
| 26 | +/-- The explicit scalar majorant for the genuine seven-term nonlinear metric forcing. -/ | |
| 27 | +def forcingPolynomial (B M B0 B1 A0 A2 residual cM Rc ρ X Y : ℝ) : ℝ := | |
| 28 | + sourceConstant B M*residual+ | |
| 29 | + ((sourceConstant B M*(productConstant period 3*B1+A0+2*A2*productConstant period 3*B0)+transportConstant period B M*B0)* | |
| 30 | + metricAmplification cM)*X+ | |
| 31 | + ((sourceConstant B M*A2*productConstant period 3+transportConstant period B M)*(metricAmplification cM)^2)*X^2+ | |
| 32 | + ((lossConstant period M*(ρ⁻¹+Rc))*(metricAmplification cM)^2)*(B0+X)*Y | |
| 33 | + | |
| 34 | +/-- The literal spatial correction array has the actual metric polynomial bound for every valid higher representative. -/ | |
| 35 | +theorem correctionArray_bound {q : ℕ} (hq : 6 ≤ q+1) {T : ℝ} | |
| 36 | + (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) | |
| 37 | + (K6 : ∀ t, CoefficientJet period standardDirection 6 (D.metric.coefficient t)) | |
| 38 | + (N : ℕ) (hN : N+6 ≤ q+1) (τ : Icc (0 : ℝ) T) | |
| 39 | + (ρ Rc M B : ℝ) (hρ : 0 < ρ) (hRc : 0 ≤ Rc) (hM : 1 ≤ M) (hB : 0 ≤ B) | |
| 40 | + (hbase5 : (EulerH6Pressure.CoefficientJet.restrict (D.metric.jet τ) 5 (by omega)).pressureConstant D.coercivity ≤ M) | |
| 41 | + (hbase6 : (EulerH6Pressure.CoefficientJet.restrict (D.metric.jet τ) 6 hq).pressureConstant D.coercivity ≤ M) | |
| 42 | + (hsmall : 4*M*(ρ*Rc) ≤ 1) | |
| 43 | + (hcoeff : ∀ l, 1 ≤ l → l ≤ N → coefficientBlock period (D.metric.jet τ) 6 l ≤ Rc^l*(l.factorial : ℝ)^2) | |
| 44 | + (hG : ∀ r ≤ 6, EulerJetProductBounds.boundLevel period (D.metric.jet τ) r ≤ B) | |
| 45 | + (hG0 : ∀ r ≤ 6, EulerJetProductBounds.boundLevel period (K6 τ) r ≤ B) | |
| 46 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) (V : SobolevSpace period ((q+1)+1)) | |
| 47 | + (hV : truncateOperator period (q+1) V = e τ) | |
| 48 | + (B0 B1 A0 A2 residual : ℝ) (hA2 : 0 ≤ A2) | |
| 49 | + (hz : weightedNorm period 6 N ρ (D.approximation τ) ≤ B0) | |
| 50 | + (hdz : (∑ i : Fin 4, weightedNorm period 6 N ρ (derivativeOperator period (q+1) i (D.approximation τ))) ≤ B1) | |
| 51 | + (hC0 : weightedCoefficient period (D.linear.jet τ) 6 N ρ ≤ A0) | |
| 52 | + (hC : (∑ i : Fin 3, weightedCoefficient period ((D.quadratic i).jet τ) 6 N ρ) ≤ A2) | |
| 53 | + (hr : weightedNorm period 6 N ρ (D.residual τ) ≤ residual) | |
| 54 | + (KM : LiftL2 period →L[ℝ] LiftL2 period) (cM : ℝ) (hcM : 0 < cM) | |
| 55 | + (hKM : ∀ v, cM^2*‖v‖^2 ≤ ⟪KM v,v⟫_ℝ) : | |
| 56 | + weightedForcingSum ρ (fun I : ExternalWord N => I.1.val) | |
| 57 | + (correctionArray period hq D K6 N hN e V τ) ≤ | |
| 58 | + forcingPolynomial period B M B0 B1 A0 A2 residual cM Rc ρ | |
| 59 | + (energyNorm period N (by omega : N+6 ≤ (q+1)+1) ρ KM V) | |
| 60 | + (energyLoss period N (by omega : N+6 ≤ (q+1)+1) ρ KM V) := by | |
| 61 | + have h := correctionForcing_metric period hq (D.metric.jet τ) (K6 τ) D.κ D.direction D.coercivity | |
| 62 | + D.coercivity_pos (D.metric_pos τ) N hN ρ Rc M B hρ hRc hM hB hbase5 hbase6 hsmall hcoeff hG hG0 | |
| 63 | + (velocityComponents D.κ D.direction) (velocityComponents_norm D.κ D.direction D.scale_bound D.direction_bound) | |
| 64 | + (D.linear.coefficient τ) (D.linear.jet τ) (fun i => (D.quadratic i).coefficient τ) (fun i => (D.quadratic i).jet τ) | |
| 65 | + (D.approximation τ) V (D.residual τ) B0 B1 A0 A2 residual hA2 hz hdz hC0 hC hr KM cM hcM hKM | |
| 66 | + simpa only [correctionArray, lowerOrderPath, orderZeroPath, ContinuousMap.coe_mk, CoefficientPath.operatorPath, EulerGevreyPressureTransport.transportPressure, hV, forcingPolynomial] using h | |
| 67 | + | |
| 68 | +/-- The literal polynomial majorant is continuous along the positive radius and actual continuous metric energies. -/ | |
| 69 | +def forcingBoundPath {q : ℕ} (N : ℕ) (hN : N+6 ≤ q+1) (T : ℝ) | |
| 70 | + (R : C(Icc (0 : ℝ) T, ℝ)) (hR : ∀ t, 0 < R t) | |
| 71 | + (K : C(Icc (0 : ℝ) T, LiftL2 period →L[ℝ] LiftL2 period)) | |
| 72 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) | |
| 73 | + (B M B0 B1 A0 A2 residual cM Rc : ℝ) : C(Icc (0 : ℝ) T, ℝ) := by | |
| 74 | + let X := energyPath period N hN T R K e | |
| 75 | + let Y := lossPath period N hN T R K e | |
| 76 | + refine ⟨fun t => forcingPolynomial period B M B0 B1 A0 A2 residual cM Rc (R t) (X t) (Y t), ?_⟩ | |
| 77 | + have hi : Continuous (fun t => (R t)⁻¹) := R.continuous.inv₀ (fun t => (hR t).ne') | |
| 78 | + unfold forcingPolynomial | |
| 79 | + fun_prop | |
| 80 | + | |
| 81 | +/-- The actual constructed full-order Bochner forcing obeys the continuous spatial majorant almost everywhere. -/ | |
| 82 | +theorem weightedCorrectionForcing_bound {q : ℕ} (hq : 6 ≤ q+1) (T : ℝ) (hT : 0 ≤ T) | |
| 83 | + (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) | |
| 84 | + (hGc : Continuous (fun t => (D.metric.coefficient t).operator)) | |
| 85 | + (K6 : ∀ t, CoefficientJet period standardDirection 6 (D.metric.coefficient t)) | |
| 86 | + (N : ℕ) (hN : N+6 ≤ q+1) (R : C(Icc (0 : ℝ) T, ℝ)) (hR : ∀ t, 0 < R t) | |
| 87 | + (Rc M B : ℝ) (hRc : 0 ≤ Rc) (hM : 1 ≤ M) (hB : 0 ≤ B) | |
| 88 | + (hbase5 : ∀ t, (EulerH6Pressure.CoefficientJet.restrict (D.metric.jet t) 5 (by omega)).pressureConstant D.coercivity ≤ M) | |
| 89 | + (hbase6 : ∀ t, (EulerH6Pressure.CoefficientJet.restrict (D.metric.jet t) 6 hq).pressureConstant D.coercivity ≤ M) | |
| 90 | + (hsmall : ∀ t, 4*M*(R t*Rc) ≤ 1) | |
| 91 | + (hcoeff : ∀ t l, 1 ≤ l → l ≤ N → coefficientBlock period (D.metric.jet t) 6 l ≤ Rc^l*(l.factorial : ℝ)^2) | |
| 92 | + (hG : ∀ t r, r ≤ 6 → EulerJetProductBounds.boundLevel period (D.metric.jet t) r ≤ B) | |
| 93 | + (hG0 : ∀ t r, r ≤ 6 → EulerJetProductBounds.boundLevel period (K6 t) r ≤ B) | |
| 94 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) (U : TimeLp T (SobolevSpace period (2+q))) | |
| 95 | + (hU : Filter.Tendsto (fun n => pathLp T hT (maximalApproximation period q T n e)) Filter.atTop (𝓝 U)) | |
| 96 | + (B0 B1 A0 A2 residual : ℝ) (hA2 : 0 ≤ A2) | |
| 97 | + (hz : ∀ t, weightedNorm period 6 N (R t) (D.approximation t) ≤ B0) | |
| 98 | + (hdz : ∀ t, (∑ i : Fin 4, weightedNorm period 6 N (R t) (derivativeOperator period (q+1) i (D.approximation t))) ≤ B1) | |
| 99 | + (hC0 : ∀ t, weightedCoefficient period (D.linear.jet t) 6 N (R t) ≤ A0) | |
| 100 | + (hC : ∀ t, (∑ i : Fin 3, weightedCoefficient period ((D.quadratic i).jet t) 6 N (R t)) ≤ A2) | |
| 101 | + (hr : ∀ t, weightedNorm period 6 N (R t) (D.residual t) ≤ residual) | |
| 102 | + (K : C(Icc (0 : ℝ) T, LiftL2 period →L[ℝ] LiftL2 period)) (cM : ℝ) (hcM : 0 < cM) | |
| 103 | + (hKM : ∀ t v, cM^2*‖v‖^2 ≤ ⟪K t v,v⟫_ℝ) : | |
| 104 | + (weightedCorrectionForcing period hq T hT D hGc N hN R e U : ℝ → ℝ) ≤ᵐ[timeMeasure T] | |
| 105 | + extendPath T hT (forcingBoundPath period N hN T R hR K e B M B0 B1 A0 A2 residual cM Rc) := by | |
| 106 | + filter_upwards [weightedCorrectionForcing_ae period hq T hT D hGc K6 N hN R e U hU, | |
| 107 | + reindexMaximalTime_restriction period T hT e U hU, | |
| 108 | + maximal_metric_paths period N hN T hT R K e U hU] with t hforce hv hmetric | |
| 109 | + let τ := projIcc 0 T hT t | |
| 110 | + have h := correctionArray_bound period hq D K6 N hN τ (R τ) Rc M B (hR τ) hRc hM hB | |
| 111 | + (hbase5 τ) (hbase6 τ) (hsmall τ) (hcoeff τ) (hG τ) (hG0 τ) e | |
| 112 | + (reindexMaximalTime period q T U t) hv B0 B1 A0 A2 residual hA2 (hz τ) (hdz τ) (hC0 τ) (hC τ) (hr τ) | |
| 113 | + (K τ) cM hcM (hKM τ) | |
| 114 | + rw [hmetric.1, hmetric.2] at h | |
| 115 | + exact hforce.le.trans h | |
| 116 | + | |
| 117 | +end EulerCorrectionEnergyBound | |
+175 −0 Euler/CorrectionEnergyData.lean added View file
| @@ -0,0 +1,175 @@ | ||
| 1 | +import Euler.CorrectionEnergyBound | |
| 2 | +import Euler.GevreyGrowthBudget | |
| 3 | +import Euler.NonlinearEnergyConstants | |
| 4 | + | |
| 5 | +/-! Concrete coefficient and background budgets for the actual nonlinear correction energy theorem. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +namespace EulerCorrectionEnergyData | |
| 10 | + | |
| 11 | +open MeasureTheory Set InnerProductSpace EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 12 | + EulerSpatialSobolevInverse EulerCorrectionOperators EulerCorrectionEnergyTime EulerCorrectionEnergyBound | |
| 13 | + EulerEnergyMetricPaths EulerGevreyMetricEstimate EulerGevreyGrowthCoefficient EulerGevreyRestriction | |
| 14 | + EulerH6Pressure EulerSobolevGevreyOperators EulerRegularizedMetricPaths EulerNonlinearEnergyConstants | |
| 15 | + EulerTimeLp EulerVolterraConvolution | |
| 16 | +open scoped Topology | |
| 17 | + | |
| 18 | +variable (period : ℝ) [Fact (0 < period)] | |
| 19 | + | |
| 20 | +/-- Actual derivative and residual norm budgets at the chosen cutoff; no energy or nonlinear forcing estimate is assumed. -/ | |
| 21 | +structure SpatialBudget {q : ℕ} {T : ℝ} (hq : 6 ≤ q+1) | |
| 22 | + (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) (N : ℕ) (R : C(Icc (0 : ℝ) T, ℝ)) where | |
| 23 | + /-- Coefficient derivative radius. -/ | |
| 24 | + Rc : ℝ | |
| 25 | + /-- Proven fixed-base pressure inverse bound. -/ | |
| 26 | + M : ℝ | |
| 27 | + /-- Base coefficient derivative bound. -/ | |
| 28 | + B : ℝ | |
| 29 | + /-- Background velocity norm bound. -/ | |
| 30 | + B0 : ℝ | |
| 31 | + /-- Background derivative norm bound. -/ | |
| 32 | + B1 : ℝ | |
| 33 | + /-- Linear coefficient norm bound. -/ | |
| 34 | + A0 : ℝ | |
| 35 | + /-- Quadratic coefficient norm bound. -/ | |
| 36 | + A2 : ℝ | |
| 37 | + /-- Approximate-equation residual norm bound. -/ | |
| 38 | + residual : ℝ | |
| 39 | + /-- The coefficient radius is nonnegative. -/ | |
| 40 | + Rc_nonneg : 0 ≤ Rc | |
| 41 | + /-- The pressure bound is at least one. -/ | |
| 42 | + M_one_le : 1 ≤ M | |
| 43 | + /-- The base coefficient budget is nonnegative. -/ | |
| 44 | + B_nonneg : 0 ≤ B | |
| 45 | + /-- The background budget is nonnegative. -/ | |
| 46 | + B0_nonneg : 0 ≤ B0 | |
| 47 | + /-- The background derivative budget is nonnegative. -/ | |
| 48 | + B1_nonneg : 0 ≤ B1 | |
| 49 | + /-- The linear budget is nonnegative. -/ | |
| 50 | + A0_nonneg : 0 ≤ A0 | |
| 51 | + /-- The quadratic budget is nonnegative. -/ | |
| 52 | + A2_nonneg : 0 ≤ A2 | |
| 53 | + /-- The residual budget is strictly positive. -/ | |
| 54 | + residual_pos : 0 < residual | |
| 55 | + /-- The actual radius stays positive. -/ | |
| 56 | + radius_pos : ∀ t, 0 < R t | |
| 57 | + /-- The actual H⁵ projected inverse has the fixed bound. -/ | |
| 58 | + inverse_five : ∀ t, (EulerH6Pressure.CoefficientJet.restrict (D.metric.jet t) 5 (by omega)).pressureConstant D.coercivity ≤ M | |
| 59 | + /-- The actual H⁶ projected inverse has the fixed bound. -/ | |
| 60 | + inverse_six : ∀ t, (EulerH6Pressure.CoefficientJet.restrict (D.metric.jet t) 6 hq).pressureConstant D.coercivity ≤ M | |
| 61 | + /-- The coefficient series is in the proved inverse absorption regime. -/ | |
| 62 | + radius_small : ∀ t, 4*M*(R t*Rc) ≤ 1 | |
| 63 | + /-- Actual higher coefficient derivatives satisfy the factorial estimate. -/ | |
| 64 | + metric_derivatives : ∀ t l, 1 ≤ l → l ≤ N → coefficientBlock period (D.metric.jet t) 6 l ≤ Rc^l*(l.factorial : ℝ)^2 | |
| 65 | + /-- Actual base coefficient derivatives satisfy the fixed budget. -/ | |
| 66 | + metric_base : ∀ t r, r ≤ 6 → EulerJetProductBounds.boundLevel period (D.metric.jet t) r ≤ B | |
| 67 | + /-- The actual approximate velocity has the background norm budget. -/ | |
| 68 | + background : ∀ t, weightedNorm period 6 N (R t) (D.approximation t) ≤ B0 | |
| 69 | + /-- The actual approximate velocity derivatives have the background derivative budget. -/ | |
| 70 | + background_derivative : ∀ t, (∑ i : Fin 4, weightedNorm period 6 N (R t) (derivativeOperator period (q+1) i (D.approximation t))) ≤ B1 | |
| 71 | + /-- Actual linear multiplier derivatives have the linear budget. -/ | |
| 72 | + linear : ∀ t, weightedCoefficient period (D.linear.jet t) 6 N (R t) ≤ A0 | |
| 73 | + /-- Actual quadratic multiplier derivatives have the quadratic budget. -/ | |
| 74 | + quadratic : ∀ t, (∑ i : Fin 3, weightedCoefficient period ((D.quadratic i).jet t) 6 N (R t)) ≤ A2 | |
| 75 | + /-- The literal approximate-equation residual has the residual budget. -/ | |
| 76 | + residual_bound : ∀ t, weightedNorm period 6 N (R t) (D.residual t) ≤ residual | |
| 77 | + | |
| 78 | +/-- An actual inverse metric and its uniform first spatial and time derivative budgets. -/ | |
| 79 | +structure MetricBudget {q : ℕ} (T : ℝ) (hT : 0 ≤ T) | |
| 80 | + (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) where | |
| 81 | + /-- Actual spatial inverse metric at each time. -/ | |
| 82 | + metric : Icc (0 : ℝ) T → SmoothCoefficient period | |
| 83 | + /-- Its actual L² multiplier path is continuous. -/ | |
| 84 | + continuous : Continuous (fun t => (metric t).operator) | |
| 85 | + /-- Actual time derivative of the L² metric operator. -/ | |
| 86 | + derivative : C(Icc (0 : ℝ) T, LiftL2 period →L[ℝ] LiftL2 period) | |
| 87 | + /-- The stated time derivative is the genuine derivative at every interior time. -/ | |
| 88 | + hasDeriv : ∀ t ∈ Ioo 0 T, HasDerivAt (extendPath T hT (metricOperatorPath period T metric continuous)) | |
| 89 | + (extendPath T hT derivative t) t | |
| 90 | + /-- Positive square-root coercivity constant. -/ | |
| 91 | + c : ℝ | |
| 92 | + /-- Strict metric coercivity. -/ | |
| 93 | + c_pos : 0 < c | |
| 94 | + /-- Pointwise symmetry of the actual metric. -/ | |
| 95 | + symmetric : ∀ t x v w, ⟪(metric t).coefficient x v,w⟫_ℝ = ⟪v,(metric t).coefficient x w⟫_ℝ | |
| 96 | + /-- Pointwise positive lower bound for the actual metric. -/ | |
| 97 | + coercive : ∀ t x v, c^2*‖v‖^2 ≤ ⟪(metric t).coefficient x v,v⟫_ℝ | |
| 98 | + /-- The actual metric inverts the coefficient in the pressure equation. -/ | |
| 99 | + inverse : ∀ t x v, (metric t).coefficient x ((D.metric.coefficient t).coefficient x v) = v | |
| 100 | + /-- Uniform metric multiplier bound. -/ | |
| 101 | + bound : ℝ | |
| 102 | + /-- Uniform first spatial derivative bound. -/ | |
| 103 | + first : ℝ | |
| 104 | + /-- Uniform time derivative operator bound. -/ | |
| 105 | + time : ℝ | |
| 106 | + /-- The multiplier budget is nonnegative. -/ | |
| 107 | + bound_nonneg : 0 ≤ bound | |
| 108 | + /-- The spatial derivative budget is nonnegative. -/ | |
| 109 | + first_nonneg : 0 ≤ first | |
| 110 | + /-- The time derivative budget is nonnegative. -/ | |
| 111 | + time_nonneg : 0 ≤ time | |
| 112 | + /-- The actual multiplier witness is bounded uniformly. -/ | |
| 113 | + bound_le : ∀ t, ((metric t).bound : ℝ) ≤ bound | |
| 114 | + /-- The actual first derivative witness is bounded uniformly. -/ | |
| 115 | + first_le : ∀ t, ((metric t).firstBound : ℝ) ≤ first | |
| 116 | + /-- The actual time derivative is bounded uniformly. -/ | |
| 117 | + time_le : ∀ t, ‖derivative t‖ ≤ time | |
| 118 | + | |
| 119 | +/-- The canonical genuine base-order coefficient jet. -/ | |
| 120 | +def baseMetricJet {q : ℕ} (hq : 6 ≤ q+1) {T : ℝ} | |
| 121 | + (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) (t : Icc (0 : ℝ) T) : | |
| 122 | + CoefficientJet period standardDirection 6 (D.metric.coefficient t) := | |
| 123 | + EulerH6Pressure.CoefficientJet.restrict (D.metric.jet t) 6 hq | |
| 124 | + | |
| 125 | +/-- The actual metric budget determines its concrete continuous L² multiplier path. -/ | |
| 126 | +def MetricBudget.operatorPath {q : ℕ} {T : ℝ} {hT : 0 ≤ T} | |
| 127 | + {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} (K : MetricBudget period T hT D) : | |
| 128 | + C(Icc (0 : ℝ) T, LiftL2 period →L[ℝ] LiftL2 period) := metricOperatorPath period T K.metric K.continuous | |
| 129 | + | |
| 130 | +/-- The actual metric operator is coercive with the same pointwise constant. -/ | |
| 131 | +theorem MetricBudget.operator_coercive {q : ℕ} {T : ℝ} {hT : 0 ≤ T} | |
| 132 | + {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} (K : MetricBudget period T hT D) | |
| 133 | + (t : Icc (0 : ℝ) T) (v : LiftL2 period) : K.c^2*‖v‖^2 ≤ ⟪K.operatorPath period t v,v⟫_ℝ := | |
| 134 | + EulerLiftedPressure.coefficientOperator_coercive (K.metric t).coefficient (K.metric t).measurable | |
| 135 | + (K.metric t).bound (K.metric t).norm_bound (K.c^2) (K.coercive t) v | |
| 136 | + | |
| 137 | +/-- The actual canonical base jet inherits the given derivative budget. -/ | |
| 138 | +theorem SpatialBudget.base_bound {q : ℕ} {T : ℝ} {hq : 6 ≤ q+1} | |
| 139 | + {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} {N : ℕ} {R : C(Icc (0 : ℝ) T, ℝ)} | |
| 140 | + (S : SpatialBudget period hq D N R) (t : Icc (0 : ℝ) T) (r : ℕ) (hr : r ≤ 6) : | |
| 141 | + EulerJetProductBounds.boundLevel period (baseMetricJet period hq D t) r ≤ S.B := by | |
| 142 | + change EulerJetProductBounds.boundLevel period (EulerH6Pressure.CoefficientJet.restrict (D.metric.jet t) 6 hq) r ≤ S.B | |
| 143 | + rw [EulerH6Pressure.coefficient_restrict_level period (D.metric.jet t) hq hr] | |
| 144 | + exact S.metric_base t r hr | |
| 145 | + | |
| 146 | +/-- The fixed constant part of the actual metric-growth majorant. -/ | |
| 147 | +def MetricBudget.growth0 {q : ℕ} {T : ℝ} {hT : 0 ≤ T} | |
| 148 | + {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} (K : MetricBudget period T hT D) (B0 : ℝ) : ℝ := | |
| 149 | + growthBudgetBase K.c K.time K.first + growthBudgetSlope K.c K.first*sobolevEmbeddingConstant period 6*B0 | |
| 150 | + | |
| 151 | +/-- The fixed linear part of the actual metric-growth majorant. -/ | |
| 152 | +def MetricBudget.growth1 {q : ℕ} {T : ℝ} {hT : 0 ≤ T} | |
| 153 | + {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} (K : MetricBudget period T hT D) : ℝ := | |
| 154 | + growthBudgetSlope K.c K.first*sobolevEmbeddingConstant period 6*metricAmplification K.c | |
| 155 | + | |
| 156 | +/-- The fixed coefficient multiplying the actual forcing norm. -/ | |
| 157 | +def MetricBudget.multiplier {q : ℕ} {T : ℝ} {hT : 0 ≤ T} | |
| 158 | + {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} (K : MetricBudget period T hT D) : ℝ := K.bound/K.c | |
| 159 | + | |
| 160 | +/-- All fixed metric-growth and forcing coefficients are nonnegative. -/ | |
| 161 | +theorem MetricBudget.constants_nonneg {q : ℕ} {T : ℝ} {hT : 0 ≤ T} | |
| 162 | + {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} (K : MetricBudget period T hT D) (B0 : ℝ) (hB0 : 0 ≤ B0) : | |
| 163 | + 0 ≤ K.growth0 period B0 ∧ 0 ≤ K.growth1 period ∧ 0 ≤ K.multiplier := by | |
| 164 | + have he := sobolevEmbeddingConstant_nonneg period 6 | |
| 165 | + have hm : 0 ≤ metricAmplification K.c := (by norm_num : (0 : ℝ) ≤ 1).trans (metricAmplification_one_le K.c_pos) | |
| 166 | + have ht := K.time_nonneg | |
| 167 | + have hl := K.first_nonneg | |
| 168 | + have hk := K.bound_nonneg | |
| 169 | + have hc := K.c_pos.le | |
| 170 | + unfold MetricBudget.growth0 MetricBudget.growth1 MetricBudget.multiplier growthBudgetBase growthBudgetSlope | |
| 171 | + constructor | |
| 172 | + · positivity | |
| 173 | + constructor <;> positivity | |
| 174 | + | |
| 175 | +end EulerCorrectionEnergyData | |
+124 −0 Euler/CorrectionEnergyMajorants.lean added View file
| @@ -0,0 +1,124 @@ | ||
| 1 | +import Euler.CorrectionEnergyData | |
| 2 | +import Euler.TimeLpSubintervalBound | |
| 3 | + | |
| 4 | +/-! Continuous scalar majorants derived from actual coefficient budgets and actual nonlinear time fields. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerCorrectionEnergyMajorants | |
| 9 | + | |
| 10 | +open MeasureTheory Set InnerProductSpace EulerLiftedGradientSpace EulerCylinderSobolevSpace | |
| 11 | + EulerCorrectionOperators EulerCorrectionEnergyData EulerCorrectionEnergyTime EulerCorrectionEnergyBound | |
| 12 | + EulerEnergyMetricPaths EulerGevreyMetricEstimate EulerGevreyGrowthCoefficient EulerGevreyRestriction | |
| 13 | + EulerNonlinearEnergyConstants EulerTimeLpSubintervalBound EulerTimeLp EulerVolterraConvolution | |
| 14 | + EulerRegularizedTopBlocks EulerWeightedCylinderEnergy | |
| 15 | +open scoped Topology | |
| 16 | + | |
| 17 | +variable (period : ℝ) [Fact (0 < period)] | |
| 18 | + | |
| 19 | +/-- Actual metric energy is nonnegative along every positive-radius solution path. -/ | |
| 20 | +theorem energy_nonneg {q : ℕ} {T : ℝ} {hq : 6 ≤ q+1} | |
| 21 | + {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} {N : ℕ} {R : C(Icc (0 : ℝ) T, ℝ)} | |
| 22 | + (S : SpatialBudget period hq D N R) (hN : N+6 ≤ q+1) {hT : 0 ≤ T} (K : MetricBudget period T hT D) | |
| 23 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) (t : Icc (0 : ℝ) T) : | |
| 24 | + 0 ≤ energyPath period N hN T R (K.operatorPath period) e t := by | |
| 25 | + rw [energyPath_apply] | |
| 26 | + exact energyNorm_nonneg period N hN (R t) (S.radius_pos t) _ _ | |
| 27 | + | |
| 28 | +/-- Actual metric radius loss is nonnegative along the same solution path. -/ | |
| 29 | +theorem loss_nonneg {q : ℕ} {T : ℝ} {hq : 6 ≤ q+1} | |
| 30 | + {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} {N : ℕ} {R : C(Icc (0 : ℝ) T, ℝ)} | |
| 31 | + (S : SpatialBudget period hq D N R) (hN : N+6 ≤ q+1) {hT : 0 ≤ T} (K : MetricBudget period T hT D) | |
| 32 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) (t : Icc (0 : ℝ) T) : | |
| 33 | + 0 ≤ lossPath period N hN T R (K.operatorPath period) e t := by | |
| 34 | + rw [lossPath_apply] | |
| 35 | + exact energyLoss_nonneg period N hN (R t) (S.radius_pos t) _ _ | |
| 36 | + | |
| 37 | +/-- The actual total velocity has the genuine metric-energy pointwise bound. -/ | |
| 38 | +theorem velocity_bound {q : ℕ} {T : ℝ} {hq : 6 ≤ q+1} | |
| 39 | + {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} {N : ℕ} {R : C(Icc (0 : ℝ) T, ℝ)} | |
| 40 | + (S : SpatialBudget period hq D N R) (hN : N+6 ≤ q+1) {hT : 0 ≤ T} (K : MetricBudget period T hT D) | |
| 41 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) (t : Icc (0 : ℝ) T) : | |
| 42 | + ∀ᵐ x ∂liftMeasure period, ‖value period (velocityPath period D e t) x‖ ≤ | |
| 43 | + metricVelocityBound period K.c S.B0 (energyPath period N hN T R (K.operatorPath period) e t) := by | |
| 44 | + have hz : EulerSobolevGevreyOperators.weightedNorm period 6 N (R t) | |
| 45 | + (truncateOperator period (q+1) (D.approximation t)) ≤ S.B0 := by | |
| 46 | + rw [weightedNorm_truncate period 6 N hN] | |
| 47 | + exact S.background t | |
| 48 | + rw [energyPath_apply] | |
| 49 | + exact velocity_ae_metric period N hN (R t) (S.radius_pos t) (K.operatorPath period t) | |
| 50 | + (truncateOperator period (q+1) (D.approximation t)) (e t) K.c S.B0 K.c_pos (K.operator_coercive period t) hz | |
| 51 | + | |
| 52 | +/-- Adding the actual divergence-free approximation and error preserves the lifted constraint. -/ | |
| 53 | +theorem velocity_divergenceFree {q : ℕ} {T : ℝ} | |
| 54 | + (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) | |
| 55 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) | |
| 56 | + (hz : ∀ t, value period (D.approximation t) ∈ divergenceFreeSpace period D.κ D.direction) | |
| 57 | + (he : ∀ t, value period (e t) ∈ divergenceFreeSpace period D.κ D.direction) (t : Icc (0 : ℝ) T) : | |
| 58 | + value period (velocityPath period D e t) ∈ divergenceFreeSpace period D.κ D.direction := | |
| 59 | + (divergenceFreeSpace period D.κ D.direction).add_mem (hz t) (he t) | |
| 60 | + | |
| 61 | +/-- The fixed affine continuous majorant of actual metric growth. -/ | |
| 62 | +def growthPath {q : ℕ} {T : ℝ} {hq : 6 ≤ q+1} | |
| 63 | + {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} {N : ℕ} {R : C(Icc (0 : ℝ) T, ℝ)} | |
| 64 | + (S : SpatialBudget period hq D N R) (hN : N+6 ≤ q+1) {hT : 0 ≤ T} (K : MetricBudget period T hT D) | |
| 65 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) : C(Icc (0 : ℝ) T, ℝ) := | |
| 66 | + ⟨fun t => K.growth0 period S.B0 + K.growth1 period * energyPath period N hN T R (K.operatorPath period) e t, | |
| 67 | + continuous_const.add (continuous_const.mul (energyPath period N hN T R (K.operatorPath period) e).continuous)⟩ | |
| 68 | + | |
| 69 | +/-- The signed radius derivative divided by the actual positive radius. -/ | |
| 70 | +def radiusLossPath {T : ℝ} (R Rdot : C(Icc (0 : ℝ) T, ℝ)) (hR : ∀ t, 0 < R t) : C(Icc (0 : ℝ) T, ℝ) := | |
| 71 | + ⟨fun t => Rdot t/R t, Rdot.continuous.div R.continuous (fun t => (hR t).ne')⟩ | |
| 72 | + | |
| 73 | +/-- The literal continuous nonlinear forcing majorant. -/ | |
| 74 | +def forcingMajorant {q : ℕ} {T : ℝ} {hq : 6 ≤ q+1} | |
| 75 | + {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} {N : ℕ} {R : C(Icc (0 : ℝ) T, ℝ)} | |
| 76 | + (S : SpatialBudget period hq D N R) (hN : N+6 ≤ q+1) {hT : 0 ≤ T} (K : MetricBudget period T hT D) | |
| 77 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) : C(Icc (0 : ℝ) T, ℝ) := | |
| 78 | + forcingBoundPath period N hN T R S.radius_pos (K.operatorPath period) e | |
| 79 | + S.B S.M S.B0 S.B1 S.A0 S.A2 S.residual K.c S.Rc | |
| 80 | + | |
| 81 | +/-- The actual metric-growth coefficient is bounded by the continuous affine majorant. -/ | |
| 82 | +theorem growthPath_bound {q : ℕ} {T : ℝ} {hq : 6 ≤ q+1} | |
| 83 | + {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} {N : ℕ} {R : C(Icc (0 : ℝ) T, ℝ)} | |
| 84 | + (S : SpatialBudget period hq D N R) (hN : N+6 ≤ q+1) {hT : 0 ≤ T} (K : MetricBudget period T hT D) | |
| 85 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) (ν : ℝ) (hν : ν ≤ 1) (t : Icc (0 : ℝ) T) : | |
| 86 | + viscousGrowthCoefficient period (K.metric t) (K.derivative t) D.κ D.direction K.c ν | |
| 87 | + (metricVelocityBound period K.c S.B0 (energyPath period N hN T R (K.operatorPath period) e t)) ≤ | |
| 88 | + growthPath period S hN K e t := | |
| 89 | + viscousGrowth_fixed_metric period (K.metric t) (K.derivative t) D.κ D.direction K.c ν K.time K.first S.B0 | |
| 90 | + (energyPath period N hN T R (K.operatorPath period) e t) K.c_pos hν D.scale_bound D.direction_bound | |
| 91 | + (K.time_le t) (K.first_le t) S.B0_nonneg (energy_nonneg period S hN K e t) | |
| 92 | + | |
| 93 | +/-- The actual full-order nonlinear forcing has the continuous majorant derived from its genuine coefficient budgets. -/ | |
| 94 | +theorem forcingMajorant_bound {q : ℕ} {T : ℝ} {hq : 6 ≤ q+1} | |
| 95 | + {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} {N : ℕ} {R : C(Icc (0 : ℝ) T, ℝ)} | |
| 96 | + (S : SpatialBudget period hq D N R) (hN : N+6 ≤ q+1) {hT : 0 ≤ T} (K : MetricBudget period T hT D) | |
| 97 | + (hG : Continuous (fun t => (D.metric.coefficient t).operator)) | |
| 98 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) (U : TimeLp T (SobolevSpace period (2+q))) | |
| 99 | + (hU : Filter.Tendsto (fun n => pathLp T hT (maximalApproximation period q T n e)) Filter.atTop (𝓝 U)) : | |
| 100 | + (weightedCorrectionForcing period hq T hT D hG N hN R e U : ℝ → ℝ) ≤ᵐ[timeMeasure T] | |
| 101 | + extendPath T hT (forcingMajorant period S hN K e) := | |
| 102 | + weightedCorrectionForcing_bound period hq T hT D hG (baseMetricJet period hq D) N hN R S.radius_pos | |
| 103 | + S.Rc S.M S.B S.Rc_nonneg S.M_one_le S.B_nonneg S.inverse_five S.inverse_six S.radius_small | |
| 104 | + S.metric_derivatives S.metric_base (S.base_bound period) e U hU S.B0 S.B1 S.A0 S.A2 S.residual S.A2_nonneg | |
| 105 | + S.background S.background_derivative S.linear S.quadratic S.residual_bound (K.operatorPath period) K.c K.c_pos | |
| 106 | + (K.operator_coercive period) | |
| 107 | + | |
| 108 | +/-- The explicit cutoff-independent constant in the scalar shrinking-radius estimate. -/ | |
| 109 | +def combinedConstant {q : ℕ} {T : ℝ} {hq : 6 ≤ q+1} | |
| 110 | + {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} {N : ℕ} {R : C(Icc (0 : ℝ) T, ℝ)} | |
| 111 | + (S : SpatialBudget period hq D N R) {hT : 0 ≤ T} (K : MetricBudget period T hT D) : ℝ := | |
| 112 | + energyConstant period (K.growth0 period S.B0) (K.growth1 period) (K.multiplier period) | |
| 113 | + S.B S.M S.B0 S.B1 S.A0 S.A2 K.c | |
| 114 | + | |
| 115 | +/-- The actual combined constant is strictly positive. -/ | |
| 116 | +theorem combinedConstant_pos {q : ℕ} {T : ℝ} {hq : 6 ≤ q+1} | |
| 117 | + {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} {N : ℕ} {R : C(Icc (0 : ℝ) T, ℝ)} | |
| 118 | + (S : SpatialBudget period hq D N R) {hT : 0 ≤ T} (K : MetricBudget period T hT D) : | |
| 119 | + 0 < combinedConstant period S K := by | |
| 120 | + obtain ⟨hg0,hg1,hk⟩ := K.constants_nonneg period S.B0 S.B0_nonneg | |
| 121 | + exact energyConstant_pos period _ _ _ _ _ _ _ _ _ _ hg0 hg1 hk S.B_nonneg | |
| 122 | + (zero_le_one.trans S.M_one_le) S.B0_nonneg S.B1_nonneg S.A0_nonneg S.A2_nonneg K.c_pos | |
| 123 | + | |
| 124 | +end EulerCorrectionEnergyMajorants | |
+73 −0 Euler/CorrectionEnergyRestriction.lean added View file
| @@ -0,0 +1,73 @@ | ||
| 1 | +import Euler.CorrectionLowerData | |
| 2 | + | |
| 3 | +/-! The constructed higher nonlinear source and pressure restrict exactly to the actual lower mild equation. -/ | |
| 4 | + | |
| 5 | +noncomputable section | |
| 6 | + | |
| 7 | +namespace EulerCorrectionEnergyRestriction | |
| 8 | + | |
| 9 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 10 | + EulerSpatialSobolevInverse EulerSobolevCoefficientPressure EulerCorrectionOperators EulerSobolevTransport | |
| 11 | + EulerCorrectionEnergyTime EulerCorrectionLowerData EulerTimeCorrectionSource EulerSobolevWordValueIdentity | |
| 12 | + EulerTimeLp EulerVolterraConvolution EulerRegularizedTopBlocks | |
| 13 | +open scoped Topology | |
| 14 | + | |
| 15 | +variable (period : ℝ) [Fact (0 < period)] | |
| 16 | + | |
| 17 | +/-- The actual higher raw nonlinear time field restricts to the actual continuous source of the lower equation. -/ | |
| 18 | +theorem rawTime_restriction {q : ℕ} (hq : 6 ≤ q) (T : ℝ) (hT : 0 ≤ T) | |
| 19 | + (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) | |
| 20 | + (KG : ∀ t, CoefficientJet period standardDirection q (D.metric.coefficient t)) | |
| 21 | + (KL : ∀ t, CoefficientJet period standardDirection q (D.linear.coefficient t)) | |
| 22 | + (KQ : ∀ i t, CoefficientJet period standardDirection q ((D.quadratic i).coefficient t)) | |
| 23 | + (hG : Continuous (fun t => coefficientSobolevOperator period (KG t))) | |
| 24 | + (hL : Continuous (fun t => coefficientSobolevOperator period (KL t))) | |
| 25 | + (hQ : ∀ i, Continuous (fun t => coefficientSobolevOperator period (KQ i t))) | |
| 26 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) (U : TimeLp T (SobolevSpace period (2+q))) | |
| 27 | + (hU : Filter.Tendsto (fun n => pathLp T hT (maximalApproximation period q T n e)) Filter.atTop (𝓝 U)) : | |
| 28 | + (fun t => truncateOperator period q (rawTime period (by omega : 6 ≤ q+1) T hT D e U t)) =ᵐ[timeMeasure T] | |
| 29 | + extendPath T hT (rawPath period hq (lowerData period D KG KL KQ hG hL hQ) e) := by | |
| 30 | + have h := rawSourceTime_restriction period hq T hT (velocityComponents D.κ D.direction) | |
| 31 | + (velocityComponents_norm D.κ D.direction D.scale_bound D.direction_bound) | |
| 32 | + D.linear D.quadratic KL KQ D.approximation D.residual e (reindexMaximalTime period q T U) | |
| 33 | + (reindexMaximalTime_restriction period T hT e U hU) | |
| 34 | + filter_upwards [h] with t ht | |
| 35 | + exact ht.trans (rawPath_lower period hq D KG KL KQ hG hL hQ e (projIcc 0 T hT t)).symm | |
| 36 | + | |
| 37 | +/-- The actual full-order projected time forcing restricts to the literal lower mild source without a source-regularity premise. -/ | |
| 38 | +theorem sourceTime_restriction {q : ℕ} (hq : 6 ≤ q) (T : ℝ) (hT : 0 ≤ T) | |
| 39 | + (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) | |
| 40 | + (KG : ∀ t, CoefficientJet period standardDirection q (D.metric.coefficient t)) | |
| 41 | + (KL : ∀ t, CoefficientJet period standardDirection q (D.linear.coefficient t)) | |
| 42 | + (KQ : ∀ i t, CoefficientJet period standardDirection q ((D.quadratic i).coefficient t)) | |
| 43 | + (hG : Continuous (fun t => coefficientSobolevOperator period (KG t))) | |
| 44 | + (hL : Continuous (fun t => coefficientSobolevOperator period (KL t))) | |
| 45 | + (hQ : ∀ i, Continuous (fun t => coefficientSobolevOperator period (KQ i t))) | |
| 46 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) (U : TimeLp T (SobolevSpace period (2+q))) | |
| 47 | + (hU : Filter.Tendsto (fun n => pathLp T hT (maximalApproximation period q T n e)) Filter.atTop (𝓝 U)) : | |
| 48 | + (fun t => truncateOperator period q (sourceTime period (by omega : 6 ≤ q+1) T hT D e U t)) =ᵐ[timeMeasure T] | |
| 49 | + extendPath T hT (forcingPath period hq (lowerData period D KG KL KQ hG hL hQ) e) := | |
| 50 | + projectedTime_restriction period T hT D.metric KG D.κ D.direction D.coercivity D.coercivity_pos D.metric_pos | |
| 51 | + (rawTime period (by omega : 6 ≤ q+1) T hT D e U) | |
| 52 | + (extendPath T hT (rawPath period hq (lowerData period D KG KL KQ hG hL hQ) e)) | |
| 53 | + (rawTime_restriction period hq T hT D KG KL KQ hG hL hQ e U hU) | |
| 54 | + | |
| 55 | +/-- The actual full-order signed pressure restricts exactly to the continuous pressure in the lower correction equation. -/ | |
| 56 | +theorem signedPressureTime_restriction {q : ℕ} (hq : 6 ≤ q) (T : ℝ) (hT : 0 ≤ T) | |
| 57 | + (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) | |
| 58 | + (KG : ∀ t, CoefficientJet period standardDirection q (D.metric.coefficient t)) | |
| 59 | + (KL : ∀ t, CoefficientJet period standardDirection q (D.linear.coefficient t)) | |
| 60 | + (KQ : ∀ i t, CoefficientJet period standardDirection q ((D.quadratic i).coefficient t)) | |
| 61 | + (hG : Continuous (fun t => coefficientSobolevOperator period (KG t))) | |
| 62 | + (hL : Continuous (fun t => coefficientSobolevOperator period (KL t))) | |
| 63 | + (hQ : ∀ i, Continuous (fun t => coefficientSobolevOperator period (KQ i t))) | |
| 64 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) (U : TimeLp T (SobolevSpace period (2+q))) | |
| 65 | + (hU : Filter.Tendsto (fun n => pathLp T hT (maximalApproximation period q T n e)) Filter.atTop (𝓝 U)) : | |
| 66 | + (fun t => truncateOperator period q (signedPressureTime period (by omega : 6 ≤ q+1) T hT D e U t)) =ᵐ[timeMeasure T] | |
| 67 | + extendPath T hT (pressurePath period hq (lowerData period D KG KL KQ hG hL hQ) e) := | |
| 68 | + pressureTime_restriction period T hT D.metric KG D.κ D.direction D.coercivity D.coercivity_pos D.metric_pos | |
| 69 | + (rawTime period (by omega : 6 ≤ q+1) T hT D e U) | |
| 70 | + (extendPath T hT (rawPath period hq (lowerData period D KG KL KQ hG hL hQ) e)) | |
| 71 | + (rawTime_restriction period hq T hT D KG KL KQ hG hL hQ e U hU) | |
| 72 | + | |
| 73 | +end EulerCorrectionEnergyRestriction | |
+73 −0 Euler/CorrectionEnergyScalar.lean added View file
| @@ -0,0 +1,73 @@ | ||
| 1 | +import Euler.CorrectionMildEnergy | |
| 2 | +import Euler.IntegralEnergyBootstrap | |
| 3 | + | |
| 4 | +/-! The actual correction energy right-hand side has the scalar shrinking-radius form, including its exact zero initial trace. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerCorrectionEnergyScalar | |
| 9 | + | |
| 10 | +open MeasureTheory Set InnerProductSpace EulerLiftedGradientSpace EulerCylinderSobolevSpace | |
| 11 | + EulerCorrectionOperators EulerCorrectionEnergyData EulerCorrectionEnergyMajorants EulerCorrectionMildEnergy | |
| 12 | + EulerEnergyMetricPaths EulerGevreyMetricEstimate EulerNonlinearEnergyConstants EulerTimeLpSubintervalBound | |
| 13 | + EulerTimeLp EulerVolterraConvolution EulerSobolevHeat EulerGevreyMetricComparison EulerGevreyDifferentiatedEquation | |
| 14 | + EulerWeightedCylinderEnergy EulerFiniteMetricEnergy | |
| 15 | +open scoped Topology | |
| 16 | + | |
| 17 | +variable (period : ℝ) [Fact (0 < period)] | |
| 18 | + | |
| 19 | +/-- The actual scalar correction right-hand side is bounded by the source's nonlinear shrinking-radius expression. -/ | |
| 20 | +theorem correctionRhs_bound {q : ℕ} {T : ℝ} {hq : 6 ≤ q+1} | |
| 21 | + {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} {N : ℕ} {R : C(Icc (0 : ℝ) T, ℝ)} | |
| 22 | + (S : SpatialBudget period hq D N R) (hN : N+6 ≤ q+1) {hT : 0 ≤ T} (K : MetricBudget period T hT D) | |
| 23 | + (Rdot : C(Icc (0 : ℝ) T, ℝ)) (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) (t : Icc (0 : ℝ) T) : | |
| 24 | + let X := energyPath period N hN T R (K.operatorPath period) e t | |
| 25 | + let Y := lossPath period N hN T R (K.operatorPath period) e t | |
| 26 | + let C := combinedConstant period S K | |
| 27 | + correctionRhs period S hN K Rdot e t ≤ C*(X+X^2+S.residual)+ | |
| 28 | + (Rdot t/R t+C*((R t)⁻¹+S.Rc)*(S.B0+X))*Y := by | |
| 29 | + obtain ⟨hg0,hg1,hk⟩ := K.constants_nonneg period S.B0 S.B0_nonneg | |
| 30 | + exact actual_scalar_bound period (K.growth0 period S.B0) (K.growth1 period) (K.multiplier period) | |
| 31 | + S.B S.M S.B0 S.B1 S.A0 S.A2 K.c S.Rc (R t) S.residual | |
| 32 | + (energyPath period N hN T R (K.operatorPath period) e t) | |
| 33 | + (lossPath period N hN T R (K.operatorPath period) e t) (Rdot t/R t) | |
| 34 | + hg0 hg1 hk S.B_nonneg (zero_le_one.trans S.M_one_le) S.B0_nonneg S.B1_nonneg S.A0_nonneg S.A2_nonneg K.c_pos | |
| 35 | + S.Rc_nonneg (S.radius_pos t) S.residual_pos.le (energy_nonneg period S hN K e t) (loss_nonneg period S hN K e t) | |
| 36 | + | |
| 37 | +/-- Zero is exactly zero in the genuine finite metric energy. -/ | |
| 38 | +theorem energyNorm_zero {q : ℕ} (N : ℕ) (hN : N+6 ≤ q) (ρ : ℝ) | |
| 39 | + (K : LiftL2 period →L[ℝ] LiftL2 period) : energyNorm period N hN ρ K (0 : SobolevSpace period q) = 0 := by | |
| 40 | + unfold energyNorm weightedMetricSum | |
| 41 | + apply Finset.sum_eq_zero | |
| 42 | + intro I _ | |
| 43 | + have hzero : energyValues period 6 N hN (0 : SobolevSpace period q) I = fun _ => 0 := by | |
| 44 | + funext a | |
| 45 | + rw [← energyWordOperator_apply, map_zero] | |
| 46 | + rw [hzero] | |
| 47 | + simp [familyMetricNorm, familyEnergy] | |
| 48 | + | |
| 49 | +/-- The actual zero-initial mild formula has zero trace, without a separately assumed initial-value identity. -/ | |
| 50 | +theorem zero_mild_trace {q : ℕ} (ν : ℝ) (hν : 0 < ν) (T : ℝ) (hT : 0 ≤ T) | |
| 51 | + (f : C(Icc (0 : ℝ) T, SobolevSpace period q)) (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) | |
| 52 | + (hsol : ∀ t : Icc (0 : ℝ) T, e t = heatOperator period (q+1) (2*ν*t.val).toNNReal 0 + | |
| 53 | + ∫ r in (0 : ℝ)..t.val, heatKernel period q ν hν r (extendPath T hT f (t.val-r))) : | |
| 54 | + e ⟨0,le_rfl,hT⟩ = 0 := by | |
| 55 | + have h := hsol ⟨0,le_rfl,hT⟩ | |
| 56 | + simpa only [map_zero, intervalIntegral.integral_same, add_zero] using h | |
| 57 | + | |
| 58 | +/-- A prescribed affine radius has its genuine time derivative at every interior point after clamped extension. -/ | |
| 59 | +theorem affine_radius_derivative (T : ℝ) (hT : 0 ≤ T) (R Rdot : C(Icc (0 : ℝ) T, ℝ)) | |
| 60 | + (ρ0 A : ℝ) (hR : ∀ t, R t = ρ0-A*t.val) (hRdot : ∀ t, Rdot t = -A) | |
| 61 | + (t : ℝ) (ht : t ∈ Ioo 0 T) : | |
| 62 | + HasDerivAt (extendPath T hT R) (extendPath T hT Rdot t) t := by | |
| 63 | + have hm : HasDerivAt (fun r : ℝ => A*r) A t := by | |
| 64 | + simpa only [id_eq, mul_one] using (hasDerivAt_id t).const_mul A | |
| 65 | + have ha : HasDerivAt (fun r : ℝ => ρ0-A*r) (-A) t := HasDerivAt.const_sub ρ0 hm | |
| 66 | + have he : extendPath T hT R =ᶠ[𝓝 t] fun r => ρ0-A*r := by | |
| 67 | + filter_upwards [Ioo_mem_nhds ht.1 ht.2] with r hr | |
| 68 | + change R (projIcc 0 T hT r) = _ | |
| 69 | + rw [projIcc_of_mem hT ⟨hr.1.le,hr.2.le⟩] | |
| 70 | + exact hR ⟨r,hr.1.le,hr.2.le⟩ | |
| 71 | + exact (ha.congr_of_eventuallyEq he).congr_deriv (hRdot (projIcc 0 T hT t)).symm | |
| 72 | + | |
| 73 | +end EulerCorrectionEnergyScalar | |
+143 −0 Euler/CorrectionEnergyTime.lean added View file
| @@ -0,0 +1,143 @@ | ||
| 1 | +import Euler.ProjectedForcingFields | |
| 2 | +import Euler.RegularizedForcingRepresentative | |
| 3 | +import Euler.SobolevWordValueIdentity | |
| 4 | +import Euler.TimeCorrectionStrongIdentity | |
| 5 | +import Euler.RegularizedMetricPaths | |
| 6 | + | |
| 7 | +/-! Constructed nonlinear time fields and their exact full-order metric forcing for the Euler correction. -/ | |
| 8 | + | |
| 9 | +noncomputable section | |
| 10 | + | |
| 11 | +namespace EulerCorrectionEnergyTime | |
| 12 | + | |
| 13 | +open MeasureTheory Set InnerProductSpace EulerLiftedGradientSpace EulerCylinderSobolevSpace | |
| 14 | + EulerCylinderSobolev EulerSpatialSobolevInverse EulerCorrectionOperators EulerTimeCorrectionSource | |
| 15 | + EulerTimeCorrectionStrongIdentity EulerSobolevWordValueIdentity EulerTimeLp EulerVolterraConvolution | |
| 16 | + EulerRegularizedEnergyFamily EulerRegularizedForcingRepresentative EulerRegularizedMetricPaths | |
| 17 | + EulerRegularizedTopBlocks EulerTransportL2Time EulerWeightedForcingTime EulerSobolevEnergyPaths | |
| 18 | + EulerEnergyWordCoordinates EulerProjectedEnergyForcing EulerGevreyCorrectionForcing | |
| 19 | + EulerGevreyMetricComparison EulerBaseWordMetric EulerSobolevTransport EulerSobolevCoefficientPressure | |
| 20 | + EulerMildTopWord EulerFiniteMetricEnergy EulerWeightedCylinderEnergy | |
| 21 | +open scoped Topology | |
| 22 | + | |
| 23 | +variable (period : ℝ) [Fact (0 < period)] | |
| 24 | + | |
| 25 | +/-- A local concrete normed-group instance for the actual cylinder Sobolev scale. -/ | |
| 26 | +local instance correctionTimeGroup (q : ℕ) : NormedAddCommGroup (SobolevSpace period q) := inferInstance | |
| 27 | + | |
| 28 | +/-- A local concrete real normed-space instance for the actual cylinder Sobolev scale. -/ | |
| 29 | +local instance correctionTimeSpace (q : ℕ) : NormedSpace ℝ (SobolevSpace period q) := inferInstance | |
| 30 | + | |
| 31 | +/-- The actual continuous background-plus-error velocity at the energy level. -/ | |
| 32 | +def velocityPath {q : ℕ} {T : ℝ} (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) | |
| 33 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) : C(Icc (0 : ℝ) T, SobolevSpace period (q+1)) := | |
| 34 | + (truncateOperator period (q+1)).compLeftContinuous ℝ (Icc (0 : ℝ) T) D.approximation + e | |
| 35 | + | |
| 36 | +/-- The actual continuous order-zero source along the original energy-level solution. -/ | |
| 37 | +def lowerOrderPath {q : ℕ} (hq : 6 ≤ q+1) {T : ℝ} (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) | |
| 38 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) : C(Icc (0 : ℝ) T, SobolevSpace period (q+1)) := | |
| 39 | + orderZeroPath period hq T (velocityComponents D.κ D.direction) | |
| 40 | + (velocityComponents_norm D.κ D.direction D.scale_bound D.direction_bound) | |
| 41 | + D.linear.operatorPath (fun i => (D.quadratic i).operatorPath) D.approximation D.residual e | |
| 42 | + | |
| 43 | +/-- The genuine full energy-order nonlinear raw time field, constructed using maximal regularity. -/ | |
| 44 | +def rawTime {q : ℕ} (hq : 6 ≤ q+1) (T : ℝ) (hT : 0 ≤ T) | |
| 45 | + (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) | |
| 46 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) (U : TimeLp T (SobolevSpace period (2+q))) : | |
| 47 | + TimeLp T (SobolevSpace period (q+1)) := | |
| 48 | + rawSourceTime period hq T hT (velocityComponents D.κ D.direction) | |
| 49 | + (velocityComponents_norm D.κ D.direction D.scale_bound D.direction_bound) | |
| 50 | + D.linear.operatorPath (fun i => (D.quadratic i).operatorPath) D.approximation D.residual e | |
| 51 | + (reindexMaximalTime period q T U) | |
| 52 | + | |
| 53 | +/-- The actual full energy-order projected nonlinear forcing belongs to Bochner L² time. -/ | |
| 54 | +def sourceTime {q : ℕ} (hq : 6 ≤ q+1) (T : ℝ) (hT : 0 ≤ T) | |
| 55 | + (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) | |
| 56 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) (U : TimeLp T (SobolevSpace period (2+q))) : | |
| 57 | + TimeLp T (SobolevSpace period (q+1)) := | |
| 58 | + projectedTime period T hT D.metric D.κ D.direction D.coercivity D.coercivity_pos D.metric_pos | |
| 59 | + (rawTime period hq T hT D e U) | |
| 60 | + | |
| 61 | +/-- The actual signed coercive pressure has full energy-order Bochner regularity. -/ | |
| 62 | +def signedPressureTime {q : ℕ} (hq : 6 ≤ q+1) (T : ℝ) (hT : 0 ≤ T) | |
| 63 | + (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) | |
| 64 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) (U : TimeLp T (SobolevSpace period (2+q))) : | |
| 65 | + TimeLp T (SobolevSpace period (q+1)) := | |
| 66 | + pressureTime period T hT D.metric D.κ D.direction D.coercivity D.coercivity_pos D.metric_pos | |
| 67 | + (rawTime period hq T hT D e U) | |
| 68 | + | |
| 69 | +/-- The actual limiting weighted word forcing constructed from the genuine correction time fields. -/ | |
| 70 | +def weightedCorrectionForcing {q : ℕ} (hq : 6 ≤ q+1) (T : ℝ) (hT : 0 ≤ T) | |
| 71 | + (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) | |
| 72 | + (hG : Continuous (fun t => (D.metric.coefficient t).operator)) | |
| 73 | + (N : ℕ) (hN : N+6 ≤ q+1) (R : C(Icc (0 : ℝ) T, ℝ)) | |
| 74 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) (U : TimeLp T (SobolevSpace period (2+q))) : TimeLp T ℝ := | |
| 75 | + weightedForcingTime T hT (fun I : ExternalWord N => gevreyWeightPath T R I.1.val) | |
| 76 | + (forcingFamilyTime period energyLength energyWord (energyLength_le hN) T hT | |
| 77 | + (transportL2Path period (by omega : 3 ≤ q+1) D.κ D.direction T (velocityPath period D e)) | |
| 78 | + (metricOperatorPath period T D.metric.coefficient hG) U | |
| 79 | + (sourceTime period hq T hT D e U) (signedPressureTime period hq T hT D e U)) | |
| 80 | + | |
| 81 | +/-- The seven literal spatial correction terms evaluated on an actual higher Sobolev representative. -/ | |
| 82 | +def correctionArray {q : ℕ} (hq : 6 ≤ q+1) {T : ℝ} | |
| 83 | + (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) | |
| 84 | + (K6 : ∀ t, CoefficientJet period standardDirection 6 (D.metric.coefficient t)) | |
| 85 | + (N : ℕ) (hN : N+6 ≤ q+1) (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) | |
| 86 | + (V : SobolevSpace period ((q+1)+1)) (τ : Icc (0 : ℝ) T) : ExternalWord N → BaseWord 6 → LiftL2 period := | |
| 87 | + let f := lowerOrderPath period hq D e τ | |
| 88 | + correctionForcing period hq (D.metric.jet τ) (K6 τ) N hN (velocityComponents D.κ D.direction) | |
| 89 | + (velocityComponents_norm D.κ D.direction D.scale_bound D.direction_bound) | |
| 90 | + (D.approximation τ+V) V f | |
| 91 | + (pressureSobolevOperator period (D.metric.jet τ) D.κ D.direction D.coercivity D.coercivity_pos (D.metric_pos τ) f) | |
| 92 | + (pressureSobolevOperator period (D.metric.jet τ) D.κ D.direction D.coercivity D.coercivity_pos (D.metric_pos τ) | |
| 93 | + (transportBilinear period hq (velocityComponents D.κ D.direction) | |
| 94 | + (velocityComponents_norm D.κ D.direction D.scale_bound D.direction_bound) (D.approximation τ+V) V)) | |
| 95 | + | |
| 96 | +/-- The constructed actual weighted time forcing is exactly the seven genuine correction terms almost everywhere. -/ | |
| 97 | +theorem weightedCorrectionForcing_ae {q : ℕ} (hq : 6 ≤ q+1) (T : ℝ) (hT : 0 ≤ T) | |
| 98 | + (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) | |
| 99 | + (hG : Continuous (fun t => (D.metric.coefficient t).operator)) | |
| 100 | + (K6 : ∀ t, CoefficientJet period standardDirection 6 (D.metric.coefficient t)) | |
| 101 | + (N : ℕ) (hN : N+6 ≤ q+1) (R : C(Icc (0 : ℝ) T, ℝ)) | |
| 102 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) (U : TimeLp T (SobolevSpace period (2+q))) | |
| 103 | + (hU : Filter.Tendsto (fun n => pathLp T hT (maximalApproximation period q T n e)) Filter.atTop (𝓝 U)) : | |
| 104 | + (weightedCorrectionForcing period hq T hT D hG N hN R e U : ℝ → ℝ) =ᵐ[timeMeasure T] | |
| 105 | + fun t => weightedForcingSum (R (projIcc 0 T hT t)) (fun I : ExternalWord N => I.1.val) | |
| 106 | + (correctionArray period hq D K6 N hN e (reindexMaximalTime period q T U t) (projIcc 0 T hT t)) := by | |
| 107 | + let V := reindexMaximalTime period q T U | |
| 108 | + let A := transportL2Path period (by omega : 3 ≤ q+1) D.κ D.direction T (velocityPath period D e) | |
| 109 | + let G := metricOperatorPath period T D.metric.coefficient hG | |
| 110 | + let F := sourceTime period hq T hT D e U | |
| 111 | + let P := signedPressureTime period hq T hT D e U | |
| 112 | + let raw := rawTime period hq T hT D e U | |
| 113 | + have hV := reindexMaximalTime_restriction period T hT e U hU | |
| 114 | + have hr := rawSourceTime_transport_ae period hq T hT (velocityComponents D.κ D.direction) | |
| 115 | + (velocityComponents_norm D.κ D.direction D.scale_bound D.direction_bound) | |
| 116 | + D.linear.operatorPath (fun i => (D.quadratic i).operatorPath) D.approximation D.residual e V hV | |
| 117 | + have hv := transport_velocity_value_ae period T hT D.approximation e V hV | |
| 118 | + filter_upwards [weighted_forcing_ae period energyLength energyWord (energyLength_le hN) T hT | |
| 119 | + (fun I : ExternalWord N => gevreyWeightPath T R I.1.val) A G U F P, | |
| 120 | + hr, hv, reindexMaximalTime_value period q T U, | |
| 121 | + projectedTime_ae period T hT D.metric D.κ D.direction D.coercivity D.coercivity_pos D.metric_pos raw, | |
| 122 | + pressureTime_ae period T hT D.metric D.κ D.direction D.coercivity D.coercivity_pos D.metric_pos raw] | |
| 123 | + with t hweight hraw hvel hVU hF hP | |
| 124 | + change weightedForcingTime T hT _ (forcingFamilyTime period energyLength energyWord (energyLength_le hN) T hT A G U F P) t = _ | |
| 125 | + rw [hweight] | |
| 126 | + apply Finset.sum_congr rfl | |
| 127 | + intro I _ | |
| 128 | + apply congrArg (fun v : BaseWord 6 → LiftL2 period => EulerPacketWeights.weight (R (projIcc 0 T hT t)) I.1.val * familyNorm v) | |
| 129 | + funext a | |
| 130 | + let τ := projIcc 0 T hT t | |
| 131 | + change word period (F t) (energyLength_le hN I a) (energyWord I a) + | |
| 132 | + transportL2Path period (by omega : 3 ≤ q+1) D.κ D.direction T (velocityPath period D e) τ | |
| 133 | + (boundedWordBlock period 1 (energyLength I a) (by have := energyLength_le hN I a; omega) (energyWord I a) (U t)) + | |
| 134 | + (D.metric.coefficient τ).operator (word period (P t) (energyLength_le hN I a) (energyWord I a)) = _ | |
| 135 | + rw [transportL2Path_apply] | |
| 136 | + exact EulerProjectedForcingFields.forcing_word_of_actual_fields period hq (D.metric.jet τ) (K6 τ) N hN | |
| 137 | + D.κ D.direction D.coercivity D.coercivity_pos (D.metric_pos τ) | |
| 138 | + (velocityComponents_norm D.κ D.direction D.scale_bound D.direction_bound) | |
| 139 | + (velocityPath period D e τ) (D.approximation τ+V t) (V t) (U t) hvel hVU.symm | |
| 140 | + (lowerOrderPath period hq D e τ) (raw t) (F t) (P t) hraw hF hP I a | |
| 141 | + (by have := energyLength_le hN I a; omega) | |
| 142 | + | |
| 143 | +end EulerCorrectionEnergyTime | |
+68 −0 Euler/CorrectionFamilyCompactness.lean added View file
| @@ -0,0 +1,68 @@ | ||
| 1 | +import Euler.ViscosityCauchy | |
| 2 | +import Euler.SobolevCauchyInterpolation | |
| 3 | +import Euler.SobolevPathLimits | |
| 4 | + | |
| 5 | +/-! Strong lower-Sobolev compactness of an actual uniformly bounded correction family. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +namespace EulerCorrectionFamilyCompactness | |
| 10 | + | |
| 11 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCorrectionOperators | |
| 12 | + EulerQuadraticSource EulerCorrectionStabilityBudget EulerViscosityCauchy | |
| 13 | + EulerSobolevCauchyInterpolation EulerSobolevPathLimits | |
| 14 | +open scoped Topology | |
| 15 | + | |
| 16 | +variable (period : ℝ) [Fact (0 < period)] | |
| 17 | + | |
| 18 | +/-- The inherited Sobolev normed-group instance for family compactness. -/ | |
| 19 | +local instance familySobolevGroup (q : ℕ) : NormedAddCommGroup (SobolevSpace period q) := inferInstance | |
| 20 | +/-- The inherited real Sobolev module instance for family compactness. -/ | |
| 21 | +local instance familySobolevSpace (q : ℕ) : NormedSpace ℝ (SobolevSpace period q) := inferInstance | |
| 22 | + | |
| 23 | +/-- The actual one-order restriction equals the original truncation map. -/ | |
| 24 | +theorem restrict_eq_truncate (q : ℕ) : restrictOperator period (Nat.le_succ q)=truncateOperator period q := by | |
| 25 | + apply ContinuousLinearMap.ext | |
| 26 | + intro f | |
| 27 | + apply value_injective period | |
| 28 | + rfl | |
| 29 | + | |
| 30 | +/-- Actual strong lower-order Sobolev compactness retains the trace, divergence constraint and common norm bound. -/ | |
| 31 | +theorem exists_limit_with_constraints {s q : ℕ} (hqs : q < s) (T : ℝ) (hT : 0 ≤ T) | |
| 32 | + (κ : ℝ) (m : Vector3) (u : ℕ → C(Icc (0 : ℝ) T,SobolevSpace period s)) (M : ℝ) | |
| 33 | + (huM : ∀ n, ‖u n‖ ≤ M) (hu0 : ∀ n, u n ⟨0,le_rfl,hT⟩=0) | |
| 34 | + (hud : ∀ n t, value period (u n t) ∈ divergenceFreeSpace period κ m) | |
| 35 | + (hCauchy : CauchySeq (fun n => (valueOperator period s).compLeftContinuous ℝ (Icc (0 : ℝ) T) (u n))) : | |
| 36 | + ∃ e : C(Icc (0 : ℝ) T,SobolevSpace period q), | |
| 37 | + Filter.Tendsto (fun n => (restrictOperator period hqs.le).compLeftContinuous ℝ (Icc (0 : ℝ) T) (u n)) | |
| 38 | + Filter.atTop (𝓝 e) ∧ | |
| 39 | + e ⟨0,le_rfl,hT⟩=0 ∧ (∀ t, value period (e t) ∈ divergenceFreeSpace period κ m) ∧ ‖e‖ ≤ M := by | |
| 40 | + have hM : 0 ≤ M := (norm_nonneg (u 0)).trans (huM 0) | |
| 41 | + obtain ⟨e,hlimit⟩ := exists_limit_restrict_of_value period hqs T M hM u huM hCauchy | |
| 42 | + let ul := fun n => (restrictOperator period hqs.le).compLeftContinuous ℝ (Icc (0 : ℝ) T) (u n) | |
| 43 | + have hul (n : ℕ) : ‖ul n‖ ≤ M := (restrict_path_norm period hqs.le T (u n)).trans (huM n) | |
| 44 | + have hi : e ⟨0,le_rfl,hT⟩=0 := limit_zero_trace period T ⟨0,le_rfl,hT⟩ ul e hlimit (fun n => by | |
| 45 | + change restrictOperator period hqs.le (u n ⟨0,le_rfl,hT⟩)=0 | |
| 46 | + rw [hu0 n,map_zero]) | |
| 47 | + have hd : ∀ t, value period (e t) ∈ divergenceFreeSpace period κ m := | |
| 48 | + limit_divergenceFree period T κ m ul e hlimit hud | |
| 49 | + exact ⟨e,hlimit,hi,hd,limit_norm_bound period T M ul e hlimit hul⟩ | |
| 50 | + | |
| 51 | +/-- Genuine uniformly bounded correction solutions with Cauchy viscosities have an actual strong lower-Sobolev limit with the original trace and divergence constraint. -/ | |
| 52 | +theorem exists_correction_family_limit {q : ℕ} (hq : 6 ≤ q) (T : ℝ) (hT : 0 ≤ T) | |
| 53 | + (D : CorrectionData period q (Icc (0 : ℝ) T)) (B : StabilityBudget period hT D) | |
| 54 | + (ν : ℕ → ℝ) (hν : ∀ n, 0 < ν n) (hν1 : ∀ n, ν n ≤ 1) (hνc : CauchySeq ν) | |
| 55 | + (u : ℕ → C(Icc (0 : ℝ) T,SobolevSpace period (q+1))) (M : ℝ) (huM : ∀ n, ‖u n‖ ≤ M) | |
| 56 | + (hu0 : ∀ n, u n ⟨0,le_rfl,hT⟩=0) | |
| 57 | + (hu : ∀ n t, u n t = quadraticDuhamel period (ν n) (hν n) hT le_rfl (D.coefficients period hq) 0 (u n) t) | |
| 58 | + (hz : ∀ t, value period (D.approximation t) ∈ divergenceFreeSpace period D.κ D.direction) | |
| 59 | + (hud : ∀ n t, value period (u n t) ∈ divergenceFreeSpace period D.κ D.direction) : | |
| 60 | + ∃ e : C(Icc (0 : ℝ) T,SobolevSpace period q), | |
| 61 | + Filter.Tendsto (fun n => (truncateOperator period q).compLeftContinuous ℝ (Icc (0 : ℝ) T) (u n)) | |
| 62 | + Filter.atTop (𝓝 e) ∧ | |
| 63 | + e ⟨0,le_rfl,hT⟩=0 ∧ (∀ t, value period (e t) ∈ divergenceFreeSpace period D.κ D.direction) ∧ ‖e‖ ≤ M := by | |
| 64 | + have hCauchy := correction_family_cauchy period hq T hT D B ν hν hν1 hνc u M huM hu hz hud | |
| 65 | + have h := exists_limit_with_constraints period (Nat.lt_succ_self q) T hT D.κ D.direction u M huM hu0 hud hCauchy | |
| 66 | + simpa only [restrict_eq_truncate period q] using h | |
| 67 | + | |
| 68 | +end EulerCorrectionFamilyCompactness | |
+52 −0 Euler/CorrectionLimitDerivative.lean added View file
| @@ -0,0 +1,52 @@ | ||
| 1 | +import Euler.CorrectionSourceRestriction | |
| 2 | +import Euler.QuadraticSourceLimit | |
| 3 | +import Euler.ViscosityDefect | |
| 4 | +import Euler.ViscosityCauchy | |
| 5 | + | |
| 6 | +/-! The actual viscous derivative expressed using the identical lower-order nonlinear source. -/ | |
| 7 | + | |
| 8 | +noncomputable section | |
| 9 | + | |
| 10 | +namespace EulerCorrectionLimitDerivative | |
| 11 | + | |
| 12 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 13 | + EulerSpatialSobolevInverse EulerCorrectionOperators EulerSobolevCoefficientPressure EulerCorrectionLowerData | |
| 14 | + EulerCorrectionSourceRestriction EulerQuadraticSource EulerQuadraticSourceLimit | |
| 15 | + EulerViscosityDefect EulerViscosityCauchy EulerVolterraConvolution EulerMildEquationBridge EulerSobolevHeatGenerator | |
| 16 | +open scoped Topology | |
| 17 | + | |
| 18 | +variable (period : ℝ) [Fact (0 < period)] | |
| 19 | + | |
| 20 | +/-- The inherited normed group on each actual Sobolev value space. -/ | |
| 21 | +local instance limitDerivativeGroup (s : ℕ) : NormedAddCommGroup (SobolevSpace period s) := inferInstance | |
| 22 | + | |
| 23 | +/-- The inherited real normed space on each actual Sobolev value space. -/ | |
| 24 | +local instance limitDerivativeSpace (s : ℕ) : NormedSpace ℝ (SobolevSpace period s) := inferInstance | |
| 25 | + | |
| 26 | +/-- The actual derivative of a high-order mild correction equals viscosity plus the literal lower-order nonlinear source. -/ | |
| 27 | +theorem lower_mild_value_derivative {q : ℕ} (hq : 6 ≤ q) (T : ℝ) (hT : 0 ≤ T) | |
| 28 | + (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) | |
| 29 | + (KG : ∀ t, CoefficientJet period standardDirection q (D.metric.coefficient t)) | |
| 30 | + (KL : ∀ t, CoefficientJet period standardDirection q (D.linear.coefficient t)) | |
| 31 | + (KQ : ∀ i t, CoefficientJet period standardDirection q ((D.quadratic i).coefficient t)) | |
| 32 | + (hG : Continuous (fun t => coefficientSobolevOperator period (KG t))) | |
| 33 | + (hL : Continuous (fun t => coefficientSobolevOperator period (KL t))) | |
| 34 | + (hQ : ∀ i, Continuous (fun t => coefficientSobolevOperator period (KQ i t))) | |
| 35 | + (ν : ℝ) (hν : 0 < ν) (u : C(Icc (0 : ℝ) T,SobolevSpace period ((q+1)+1))) | |
| 36 | + (hsol : ∀ t, u t = quadraticDuhamel period ν hν hT le_rfl | |
| 37 | + (D.coefficients period (by omega : 6 ≤ q+1)) 0 u t) | |
| 38 | + (r : ℝ) (hr : r ∈ Ioo 0 T) : | |
| 39 | + HasDerivAt (fun x => value period (extendPath T hT u x)) | |
| 40 | + (ν • laplacianEvaluation period ((q+1)+1) (by omega) (u ⟨r,hr.1.le,hr.2.le⟩) + | |
| 41 | + value period (((lowerData period D KG KL KQ hG hL hQ).coefficients period hq).apply | |
| 42 | + ⟨r,hr.1.le,hr.2.le⟩ (truncateOperator period (q+1) (u ⟨r,hr.1.le,hr.2.le⟩)))) r := by | |
| 43 | + let τ : Icc (0 : ℝ) T := ⟨r,hr.1.le,hr.2.le⟩ | |
| 44 | + have hx := viscous_mild_hasDerivAt period (by omega : 2 ≤ q+1) ν hν T hT 0 | |
| 45 | + (D.coefficients period (by omega : 6 ≤ q+1)).apply | |
| 46 | + (D.coefficients period (by omega : 6 ≤ q+1)).continuous u hsol r hr | |
| 47 | + have hs := congrArg (value period (q := q)) (truncate_source period hq D KG KL KQ hG hL hQ τ (u τ)) | |
| 48 | + rw [value_truncateOperator] at hs | |
| 49 | + apply hx.congr_deriv | |
| 50 | + exact congrArg (fun v => ν • laplacianEvaluation period ((q+1)+1) (by omega) (u τ)+v) hs | |
| 51 | + | |
| 52 | +end EulerCorrectionLimitDerivative | |
+75 −0 Euler/CorrectionLimitEquation.lean added View file
| @@ -0,0 +1,75 @@ | ||
| 1 | +import Euler.CorrectionSourceRestriction | |
| 2 | +import Euler.QuadraticSourceLimit | |
| 3 | +import Euler.IntegralPathLimit | |
| 4 | +import Euler.SobolevPathLimits | |
| 5 | +import Euler.ViscosityDefect | |
| 6 | +import Euler.CorrectionLimitPathDerivative | |
| 7 | +import Euler.ViscousPathDerivative | |
| 8 | +import Euler.ViscousSourcePathLimit | |
| 9 | + | |
| 10 | +/-! The literal inviscid correction equation follows from the actual strongly convergent viscous family. -/ | |
| 11 | + | |
| 12 | +noncomputable section | |
| 13 | + | |
| 14 | +namespace EulerCorrectionLimitEquation | |
| 15 | + | |
| 16 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 17 | + EulerSpatialSobolevInverse EulerCorrectionOperators EulerSobolevCoefficientPressure EulerCorrectionLowerData | |
| 18 | + EulerCorrectionSourceRestriction EulerQuadraticSource EulerQuadraticSourceLimit EulerIntegralPathLimit | |
| 19 | + EulerSobolevPathLimits EulerViscosityDefect EulerViscosityCauchy EulerVolterraConvolution | |
| 20 | + EulerMildEquationBridge EulerSobolevHeatGenerator EulerCorrectionLimitPathDerivative | |
| 21 | + EulerViscousPathDerivative EulerViscousSourcePathLimit | |
| 22 | +open scoped Topology | |
| 23 | + | |
| 24 | +variable (period : ℝ) [Fact (0 < period)] | |
| 25 | + | |
| 26 | +/-- The inherited normed group on each actual Sobolev value space. -/ | |
| 27 | +local instance limitEquationGroup (s : ℕ) : NormedAddCommGroup (SobolevSpace period s) := inferInstance | |
| 28 | + | |
| 29 | +/-- The inherited real normed space on each actual Sobolev value space. -/ | |
| 30 | +local instance limitEquationSpace (s : ℕ) : NormedSpace ℝ (SobolevSpace period s) := inferInstance | |
| 31 | + | |
| 32 | +/-- A genuine bounded viscous family converging one Sobolev order lower solves the actual inviscid correction equation at the limit. | |
| 33 | +The nonlinear source restriction and convergence, the vanishing viscosity term, and the integral passage are proved internally. -/ | |
| 34 | +theorem correction_limit_equation {q : ℕ} (hq : 6 ≤ q) (T : ℝ) (hT : 0 ≤ T) | |
| 35 | + (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) | |
| 36 | + (KG : ∀ t, CoefficientJet period standardDirection q (D.metric.coefficient t)) | |
| 37 | + (KL : ∀ t, CoefficientJet period standardDirection q (D.linear.coefficient t)) | |
| 38 | + (KQ : ∀ i t, CoefficientJet period standardDirection q ((D.quadratic i).coefficient t)) | |
| 39 | + (hG : Continuous (fun t => coefficientSobolevOperator period (KG t))) | |
| 40 | + (hL : Continuous (fun t => coefficientSobolevOperator period (KL t))) | |
| 41 | + (hQ : ∀ i, Continuous (fun t => coefficientSobolevOperator period (KQ i t))) | |
| 42 | + (u : ℕ → C(Icc (0 : ℝ) T,SobolevSpace period ((q+1)+1))) | |
| 43 | + (e : C(Icc (0 : ℝ) T,SobolevSpace period (q+1))) (M : ℝ) (huM : ∀ n, ‖u n‖ ≤ M) | |
| 44 | + (hconv : Filter.Tendsto (fun n => (truncateOperator period (q+1)).compLeftContinuous ℝ (Icc (0 : ℝ) T) (u n)) | |
| 45 | + Filter.atTop (𝓝 e)) | |
| 46 | + (hsol : ∀ n t, u n t = quadraticDuhamel period (viscositySequence n) (viscositySequence_pos n) hT le_rfl | |
| 47 | + (D.coefficients period (by omega : 6 ≤ q+1)) 0 (u n) t) | |
| 48 | + (t : ℝ) (ht : t ∈ Ioo 0 T) : | |
| 49 | + HasDerivAt (fun r => value period (extendPath T hT e r)) | |
| 50 | + (value period (((lowerData period D KG KL KQ hG hL hQ).coefficients period hq).apply | |
| 51 | + ⟨t,ht.1.le,ht.2.le⟩ (e ⟨t,ht.1.le,ht.2.le⟩))) t := by | |
| 52 | + let Dlow := lowerData period D KG KL KQ hG hL hQ | |
| 53 | + let g := valuePath period T (sourcePath (Dlow.coefficients period hq) e) | |
| 54 | + let f := fun n => viscousSourcePath period (by omega : 2 ≤ (q+1)+1) | |
| 55 | + (viscositySequence n) T (Dlow.coefficients period hq) (u n) | |
| 56 | + have hf : Filter.Tendsto f Filter.atTop (𝓝 g) := | |
| 57 | + viscousSourcePath_tendsto period (by omega : 2 ≤ (q+1)+1) T | |
| 58 | + (Dlow.coefficients period hq) u e M huM hconv | |
| 59 | + have huval := valuePath_tendsto_of_truncate period T u e hconv | |
| 60 | + have hd : ∀ n r, r ∈ Ioo 0 T → HasDerivAt (extendPath T hT (valuePath period T (u n))) | |
| 61 | + (extendPath T hT (f n) r) r := by | |
| 62 | + intro n r hr | |
| 63 | + exact lower_mild_path_derivative period hq T hT D KG KL KQ hG hL hQ | |
| 64 | + (viscositySequence n) (viscositySequence_pos n) (u n) (hsol n) r hr | |
| 65 | + have heq : ∀ τ, valuePath period T e τ = valuePath period T e ⟨0,le_rfl,hT⟩ + | |
| 66 | + pathIntegralOperator T hT 0 τ.val g := | |
| 67 | + integral_equation_limit T hT (fun n => valuePath period T (u n)) f (valuePath period T e) g huval hf | |
| 68 | + (fun n => integral_equation_of_hasDerivAt T hT (valuePath period T (u n)) (f n) (hd n)) | |
| 69 | + have hder := hasDerivAt_of_integral_equation T hT (valuePath period T e) g heq t ht | |
| 70 | + change HasDerivAt (fun r => value period (extendPath T hT e r)) | |
| 71 | + (value period ((Dlow.coefficients period hq).apply (projIcc 0 T hT t) (e (projIcc 0 T hT t)))) t at hder | |
| 72 | + rw [projIcc_of_mem hT ⟨ht.1.le,ht.2.le⟩] at hder | |
| 73 | + exact hder | |
| 74 | + | |
| 75 | +end EulerCorrectionLimitEquation | |
+49 −0 Euler/CorrectionLimitPathDerivative.lean added View file
| @@ -0,0 +1,49 @@ | ||
| 1 | +import Euler.CorrectionLimitDerivative | |
| 2 | +import Euler.ViscousPathDerivative | |
| 3 | +import Euler.QuadraticSourceLimit | |
| 4 | +import Euler.ViscosityDefect | |
| 5 | +import Euler.ViscosityCauchy | |
| 6 | + | |
| 7 | +/-! The actual viscous derivative expressed using the identical lower-order nonlinear source. -/ | |
| 8 | + | |
| 9 | +noncomputable section | |
| 10 | + | |
| 11 | +namespace EulerCorrectionLimitPathDerivative | |
| 12 | + | |
| 13 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 14 | + EulerSpatialSobolevInverse EulerCorrectionOperators EulerSobolevCoefficientPressure EulerCorrectionLowerData | |
| 15 | + EulerCorrectionSourceRestriction EulerQuadraticSource EulerQuadraticSourceLimit | |
| 16 | + EulerViscosityDefect EulerViscosityCauchy EulerVolterraConvolution EulerMildEquationBridge EulerSobolevHeatGenerator | |
| 17 | +open scoped Topology | |
| 18 | + | |
| 19 | +variable (period : ℝ) [Fact (0 < period)] | |
| 20 | + | |
| 21 | +/-- The inherited normed group on each actual Sobolev value space. -/ | |
| 22 | +local instance limitDerivativeGroup (s : ℕ) : NormedAddCommGroup (SobolevSpace period s) := inferInstance | |
| 23 | + | |
| 24 | +/-- The inherited real normed space on each actual Sobolev value space. -/ | |
| 25 | +local instance limitDerivativeSpace (s : ℕ) : NormedSpace ℝ (SobolevSpace period s) := inferInstance | |
| 26 | + | |
| 27 | +/-- The actual derivative of a high-order mild correction equals viscosity plus the literal lower-order nonlinear source. -/ | |
| 28 | +theorem lower_mild_path_derivative {q : ℕ} (hq : 6 ≤ q) (T : ℝ) (hT : 0 ≤ T) | |
| 29 | + (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) | |
| 30 | + (KG : ∀ t, CoefficientJet period standardDirection q (D.metric.coefficient t)) | |
| 31 | + (KL : ∀ t, CoefficientJet period standardDirection q (D.linear.coefficient t)) | |
| 32 | + (KQ : ∀ i t, CoefficientJet period standardDirection q ((D.quadratic i).coefficient t)) | |
| 33 | + (hG : Continuous (fun t => coefficientSobolevOperator period (KG t))) | |
| 34 | + (hL : Continuous (fun t => coefficientSobolevOperator period (KL t))) | |
| 35 | + (hQ : ∀ i, Continuous (fun t => coefficientSobolevOperator period (KQ i t))) | |
| 36 | + (ν : ℝ) (hν : 0 < ν) (u : C(Icc (0 : ℝ) T,SobolevSpace period ((q+1)+1))) | |
| 37 | + (hsol : ∀ t, u t = quadraticDuhamel period ν hν hT le_rfl | |
| 38 | + (D.coefficients period (by omega : 6 ≤ q+1)) 0 u t) | |
| 39 | + (r : ℝ) (hr : r ∈ Ioo 0 T) : | |
| 40 | + HasDerivAt (extendPath T hT (valuePath period T u)) | |
| 41 | + (extendPath T hT (viscousDefect period (by omega : 2 ≤ (q+1)+1) ν T u + | |
| 42 | + valuePath period T (sourcePath ((lowerData period D KG KL KQ hG hL hQ).coefficients period hq) | |
| 43 | + ((truncateOperator period (q+1)).compLeftContinuous ℝ (Icc (0 : ℝ) T) u))) r) r := by | |
| 44 | + exact EulerViscousPathDerivative.hasDerivAt_path period (by omega : 2 ≤ (q+1)+1) ν T hT u | |
| 45 | + (sourcePath ((lowerData period D KG KL KQ hG hL hQ).coefficients period hq) | |
| 46 | + ((truncateOperator period (q+1)).compLeftContinuous ℝ (Icc (0 : ℝ) T) u)) r hr | |
| 47 | + (EulerCorrectionLimitDerivative.lower_mild_value_derivative period hq T hT D KG KL KQ hG hL hQ ν hν u hsol r hr) | |
| 48 | + | |
| 49 | +end EulerCorrectionLimitPathDerivative | |
+89 −0 Euler/CorrectionLowerData.lean added View file
| @@ -0,0 +1,89 @@ | ||
| 1 | +import Euler.CorrectionEnergyTime | |
| 2 | +import Euler.GevreyCorrectionSplit | |
| 3 | + | |
| 4 | +/-! The actual lower Sobolev equation and its continuous source and pressure paths. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerCorrectionLowerData | |
| 9 | + | |
| 10 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 11 | + EulerSpatialSobolevInverse EulerSobolevCoefficientPressure EulerCorrectionOperators EulerQuadraticSource | |
| 12 | + EulerTimeCorrectionSource EulerGevreyOrderZero EulerTimeLp EulerVolterraConvolution | |
| 13 | +open scoped Topology | |
| 14 | + | |
| 15 | +variable (period : ℝ) [Fact (0 < period)] | |
| 16 | + | |
| 17 | +/-- A local normed-group instance for the concrete lower Sobolev scale. -/ | |
| 18 | +local instance lowerDataGroup (q : ℕ) : NormedAddCommGroup (SobolevSpace period q) := inferInstance | |
| 19 | + | |
| 20 | +/-- A local real normed-space instance for the concrete lower Sobolev scale. -/ | |
| 21 | +local instance lowerDataSpace (q : ℕ) : NormedSpace ℝ (SobolevSpace period q) := inferInstance | |
| 22 | + | |
| 23 | +/-- The same genuine correction coefficients and background restricted by one Sobolev order. -/ | |
| 24 | +def lowerData {q : ℕ} {T : ℝ} (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) | |
| 25 | + (KG : ∀ t, CoefficientJet period standardDirection q (D.metric.coefficient t)) | |
| 26 | + (KL : ∀ t, CoefficientJet period standardDirection q (D.linear.coefficient t)) | |
| 27 | + (KQ : ∀ i t, CoefficientJet period standardDirection q ((D.quadratic i).coefficient t)) | |
| 28 | + (hG : Continuous (fun t => coefficientSobolevOperator period (KG t))) | |
| 29 | + (hL : Continuous (fun t => coefficientSobolevOperator period (KL t))) | |
| 30 | + (hQ : ∀ i, Continuous (fun t => coefficientSobolevOperator period (KQ i t))) : | |
| 31 | + CorrectionData period q (Icc (0 : ℝ) T) where | |
| 32 | + κ := D.κ | |
| 33 | + direction := D.direction | |
| 34 | + scale_bound := D.scale_bound | |
| 35 | + direction_bound := D.direction_bound | |
| 36 | + metric := ⟨D.metric.coefficient, KG, hG⟩ | |
| 37 | + coercivity := D.coercivity | |
| 38 | + coercivity_pos := D.coercivity_pos | |
| 39 | + metric_pos := D.metric_pos | |
| 40 | + linear := ⟨D.linear.coefficient, KL, hL⟩ | |
| 41 | + quadratic i := ⟨(D.quadratic i).coefficient, KQ i, hQ i⟩ | |
| 42 | + approximation := (truncateOperator period (q+1)).compLeftContinuous ℝ (Icc (0 : ℝ) T) D.approximation | |
| 43 | + residual := (truncateOperator period q).compLeftContinuous ℝ (Icc (0 : ℝ) T) D.residual | |
| 44 | + | |
| 45 | +/-- The actual nonlinear raw source along a continuous Sobolev path is continuous. -/ | |
| 46 | +def rawPath {q : ℕ} (hq : 6 ≤ q) {T : ℝ} (D : CorrectionData period q (Icc (0 : ℝ) T)) | |
| 47 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) : C(Icc (0 : ℝ) T, SobolevSpace period q) := | |
| 48 | + ⟨fun t => D.rawSource period hq t (e t), | |
| 49 | + (((D.coefficients period hq).forcing.continuous.add | |
| 50 | + ((D.coefficients period hq).linear.continuous.clm_apply e.continuous)).add | |
| 51 | + (((D.coefficients period hq).quadratic.continuous.clm_apply e.continuous).clm_apply e.continuous))⟩ | |
| 52 | + | |
| 53 | +/-- The actual projected nonlinear mild forcing along the continuous solution. -/ | |
| 54 | +def forcingPath {q : ℕ} (hq : 6 ≤ q) {T : ℝ} (D : CorrectionData period q (Icc (0 : ℝ) T)) | |
| 55 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) : C(Icc (0 : ℝ) T, SobolevSpace period q) := | |
| 56 | + ⟨fun t => (D.coefficients period hq).apply t (e t), | |
| 57 | + ((D.coefficients period hq).projection.continuous.clm_apply (rawPath period hq D e).continuous).neg⟩ | |
| 58 | + | |
| 59 | +/-- The actual signed coercive pressure along the continuous solution is continuous. -/ | |
| 60 | +def pressurePath {q : ℕ} (hq : 6 ≤ q) {T : ℝ} (D : CorrectionData period q (Icc (0 : ℝ) T)) | |
| 61 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) : C(Icc (0 : ℝ) T, SobolevSpace period q) := | |
| 62 | + ⟨fun t => D.pressure period hq t (e t), | |
| 63 | + ((positivePressurePath period T D.metric D.κ D.direction D.coercivity D.coercivity_pos D.metric_pos).continuous.clm_apply | |
| 64 | + (rawPath period hq D e).continuous).neg⟩ | |
| 65 | + | |
| 66 | +/-- The actual lower raw source is exactly the lower restriction used by the constructed Bochner source. -/ | |
| 67 | +theorem rawPath_lower {q : ℕ} (hq : 6 ≤ q) {T : ℝ} | |
| 68 | + (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) | |
| 69 | + (KG : ∀ t, CoefficientJet period standardDirection q (D.metric.coefficient t)) | |
| 70 | + (KL : ∀ t, CoefficientJet period standardDirection q (D.linear.coefficient t)) | |
| 71 | + (KQ : ∀ i t, CoefficientJet period standardDirection q ((D.quadratic i).coefficient t)) | |
| 72 | + (hG : Continuous (fun t => coefficientSobolevOperator period (KG t))) | |
| 73 | + (hL : Continuous (fun t => coefficientSobolevOperator period (KL t))) | |
| 74 | + (hQ : ∀ i, Continuous (fun t => coefficientSobolevOperator period (KQ i t))) | |
| 75 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) (t : Icc (0 : ℝ) T) : | |
| 76 | + rawPath period hq (lowerData period D KG KL KQ hG hL hQ) e t = | |
| 77 | + lowerRawValue period hq T (EulerSobolevTransport.velocityComponents D.κ D.direction) | |
| 78 | + (EulerSobolevTransport.velocityComponents_norm D.κ D.direction D.scale_bound D.direction_bound) | |
| 79 | + D.linear D.quadratic KL KQ D.approximation D.residual e t := | |
| 80 | + correctionData_rawSource_split period (lowerData period D KG KL KQ hG hL hQ) hq t (e t) | |
| 81 | + | |
| 82 | +/-- The actual continuous pressure path lies in the genuine lifted gradient space at every time. -/ | |
| 83 | +theorem pressurePath_gradient {q : ℕ} (hq : 6 ≤ q) {T : ℝ} | |
| 84 | + (D : CorrectionData period q (Icc (0 : ℝ) T)) | |
| 85 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) (t : Icc (0 : ℝ) T) : | |
| 86 | + value period (pressurePath period hq D e t) ∈ gradientSpace period D.κ D.direction := | |
| 87 | + D.pressure_mem_gradient period hq t (e t) | |
| 88 | + | |
| 89 | +end EulerCorrectionLowerData | |
+84 −0 Euler/CorrectionMildEnergy.lean added View file
| @@ -0,0 +1,84 @@ | ||
| 1 | +import Euler.CorrectionEnergyMajorants | |
| 2 | +import Euler.CorrectionEnergyRestriction | |
| 3 | +import Euler.MildMajorantEnergy | |
| 4 | + | |
| 5 | +/-! Actual nonlinear correction mild solutions obey the full-order continuous scalar integral energy estimate. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +namespace EulerCorrectionMildEnergy | |
| 10 | + | |
| 11 | +open MeasureTheory Set InnerProductSpace EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 12 | + EulerSpatialSobolevInverse EulerCorrectionOperators EulerSobolevCoefficientPressure EulerCorrectionLowerData | |
| 13 | + EulerCorrectionEnergyRestriction EulerCorrectionEnergyTime EulerCorrectionEnergyData EulerCorrectionEnergyMajorants | |
| 14 | + EulerEnergyMetricPaths EulerGevreyMetricEstimate EulerMildMajorantEnergy EulerEnergyWordCoordinates | |
| 15 | + EulerTimeLpSubintervalBound EulerTimeLp EulerVolterraConvolution EulerSobolevHeat EulerSobolevMaximalRegularity | |
| 16 | +open scoped Topology | |
| 17 | + | |
| 18 | +variable (period : ℝ) [Fact (0 < period)] | |
| 19 | + | |
| 20 | +/-- The actual continuous scalar right-hand side of the nonlinear correction energy estimate. -/ | |
| 21 | +def correctionRhs {q : ℕ} {T : ℝ} {hq : 6 ≤ q+1} | |
| 22 | + {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} {N : ℕ} {R : C(Icc (0 : ℝ) T, ℝ)} | |
| 23 | + (S : SpatialBudget period hq D N R) (hN : N+6 ≤ q+1) {hT : 0 ≤ T} (K : MetricBudget period T hT D) | |
| 24 | + (Rdot : C(Icc (0 : ℝ) T, ℝ)) (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) : C(Icc (0 : ℝ) T, ℝ) := | |
| 25 | + scalarEnergyRhs T (growthPath period S hN K e) (radiusLossPath R Rdot S.radius_pos) | |
| 26 | + (ContinuousMap.const _ (K.multiplier period)) | |
| 27 | + (energyPath period N hN T R (K.operatorPath period) e) | |
| 28 | + (lossPath period N hN T R (K.operatorPath period) e) (forcingMajorant period S hN K e) | |
| 29 | + | |
| 30 | +/-- The actual nonlinear lower mild equation yields the full energy-order scalar integral bound on every subinterval. | |
| 31 | +Maximal regularity, the higher nonlinear source, the pressure, and their constraints are all constructed or proved inside the argument. -/ | |
| 32 | +theorem correction_mild_integral {q : ℕ} (hq : 6 ≤ q) (T : ℝ) (hT : 0 ≤ T) | |
| 33 | + (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) | |
| 34 | + (KG : ∀ t, CoefficientJet period standardDirection q (D.metric.coefficient t)) | |
| 35 | + (KL : ∀ t, CoefficientJet period standardDirection q (D.linear.coefficient t)) | |
| 36 | + (KQ : ∀ i t, CoefficientJet period standardDirection q ((D.quadratic i).coefficient t)) | |
| 37 | + (hGq : Continuous (fun t => coefficientSobolevOperator period (KG t))) | |
| 38 | + (hLq : Continuous (fun t => coefficientSobolevOperator period (KL t))) | |
| 39 | + (hQq : ∀ i, Continuous (fun t => coefficientSobolevOperator period (KQ i t))) | |
| 40 | + (hG : Continuous (fun t => (D.metric.coefficient t).operator)) | |
| 41 | + (N : ℕ) (hN : N+6 ≤ q+1) (R Rdot : C(Icc (0 : ℝ) T, ℝ)) | |
| 42 | + (S : SpatialBudget period (by omega : 6 ≤ q+1) D N R) (K : MetricBudget period T hT D) | |
| 43 | + (hRd : ∀ t ∈ Ioo 0 T, HasDerivAt (extendPath T hT R) (extendPath T hT Rdot t) t) | |
| 44 | + (ν : ℝ) (hν : 0 < ν) (hν1 : ν ≤ 1) (e₀ : SobolevSpace period (q+1)) | |
| 45 | + (e : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) | |
| 46 | + (hsol : ∀ t : Icc (0 : ℝ) T, | |
| 47 | + e t = heatOperator period (q+1) (2*ν*t.val).toNNReal e₀ + | |
| 48 | + ∫ r in (0 : ℝ)..t.val, heatKernel period q ν hν r | |
| 49 | + (extendPath T hT (forcingPath period hq (lowerData period D KG KL KQ hGq hLq hQq) e) (t.val-r))) | |
| 50 | + (hz : ∀ t, value period (D.approximation t) ∈ divergenceFreeSpace period D.κ D.direction) | |
| 51 | + (he : ∀ t, value period (e t) ∈ divergenceFreeSpace period D.κ D.direction) | |
| 52 | + (s t : ℝ) (h0s : 0 ≤ s) (hst : s ≤ t) (htT : t ≤ T) : | |
| 53 | + energyPath period N hN T R (K.operatorPath period) e ⟨t,h0s.trans hst,htT⟩ - | |
| 54 | + energyPath period N hN T R (K.operatorPath period) e ⟨s,h0s,hst.trans htT⟩ ≤ | |
| 55 | + ∫ r in s..t, extendPath T hT (correctionRhs period S hN K Rdot e) r := by | |
| 56 | + let Dlow := lowerData period D KG KL KQ hGq hLq hQq | |
| 57 | + let f := forcingPath period hq Dlow e | |
| 58 | + let p := pressurePath period hq Dlow e | |
| 59 | + obtain ⟨U,hU⟩ := exists_maximal_mild_limit period ν hν T hT e₀ f e hsol | |
| 60 | + let F := sourceTime period (by omega : 6 ≤ q+1) T hT D e U | |
| 61 | + let P := signedPressureTime period (by omega : 6 ≤ q+1) T hT D e U | |
| 62 | + let X := energyPath period N hN T R (K.operatorPath period) e | |
| 63 | + let Y := lossPath period N hN T R (K.operatorPath period) e | |
| 64 | + let k : C(Icc (0 : ℝ) T, ℝ) := ContinuousMap.const _ (K.multiplier period) | |
| 65 | + have hF := sourceTime_restriction period hq T hT D KG KL KQ hGq hLq hQq e U hU | |
| 66 | + have hP := signedPressureTime_restriction period hq T hT D KG KL KQ hGq hLq hQq e U hU | |
| 67 | + have henergy := mild_majorized_energy_subinterval period (by omega : 3 ≤ q+1) T hT s t h0s hst htT | |
| 68 | + energyLength energyWord (energyLength_le hN) (fun I : EulerGevreyMetricComparison.ExternalWord N => I.1.val) | |
| 69 | + ν hν D.κ D.direction K.c K.c_pos R Rdot S.radius_pos hRd K.metric D.metric.coefficient | |
| 70 | + K.continuous hG K.derivative K.hasDeriv K.symmetric K.coercive K.inverse | |
| 71 | + (fun τ => metricVelocityBound period K.c S.B0 (X τ)) (velocityPath period D e) e e₀ f p hsol he | |
| 72 | + (pressurePath_gradient period hq Dlow e) | |
| 73 | + (velocity_divergenceFree period D e hz he) (velocity_bound period S hN K e) | |
| 74 | + U F P hU hF hP (growthPath period S hN K e) (radiusLossPath R Rdot S.radius_pos) k | |
| 75 | + (growthPath_bound period S hN K e ν hν1) (fun _ => rfl) | |
| 76 | + (fun τ => div_le_div_of_nonneg_right (K.bound_le τ) K.c_pos.le) | |
| 77 | + have hforce := forcingMajorant_bound period S hN K hG e U hU | |
| 78 | + have hk : ∀ τ, 0 ≤ k τ := fun _ => (K.constants_nonneg period S.B0 S.B0_nonneg).2.2 | |
| 79 | + exact scalar_rhs_subinterval T hT s t h0s hst htT | |
| 80 | + (growthPath period S hN K e) (radiusLossPath R Rdot S.radius_pos) k X Y | |
| 81 | + (forcingMajorant period S hN K e) hk | |
| 82 | + (weightedCorrectionForcing period (by omega : 6 ≤ q+1) T hT D hG N hN R e U) hforce henergy | |
| 83 | + | |
| 84 | +end EulerCorrectionMildEnergy | |
+38 −0 Euler/CorrectionMildEquation.lean added View file
| @@ -0,0 +1,38 @@ | ||
| 1 | +import Euler.CorrectionContinuation | |
| 2 | +import Euler.EulerCorrectionEquation | |
| 3 | + | |
| 4 | +/-! Every actual continued mild correction obeys the literal viscous PDE with its genuine coercive pressure. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerCorrectionContinuation | |
| 9 | + | |
| 10 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCorrectionOperators | |
| 11 | + EulerQuadraticSource EulerMildEquationBridge EulerSobolevHeatGenerator EulerVolterraConvolution | |
| 12 | +open scoped Topology | |
| 13 | + | |
| 14 | +variable (period : ℝ) [Fact (0 < period)] | |
| 15 | + | |
| 16 | +/-- The literal PDE follows at every interior time from any actual correction mild solution. -/ | |
| 17 | +theorem correction_mild_hasDerivAt {q : ℕ} (hq : 6 ≤ q) (ν : ℝ) (hν : 0 < ν) | |
| 18 | + {T S : ℝ} (hT : 0 ≤ T) (hTS : T ≤ S) | |
| 19 | + (D : CorrectionData period q (Icc (0 : ℝ) S)) | |
| 20 | + (e : C(Icc (0 : ℝ) T,SobolevSpace period (q+1))) | |
| 21 | + (hsol : ∀ t, e t = quadraticDuhamel period ν hν hT hTS (D.coefficients period hq) 0 e t) | |
| 22 | + (t : ℝ) (ht : t ∈ Ioo 0 T) : | |
| 23 | + HasDerivAt (fun r => value period (extendPath T hT e r)) | |
| 24 | + (ν • laplacianEvaluation period (q+1) (by omega) (e ⟨t,ht.1.le,ht.2.le⟩) - | |
| 25 | + value period (D.rawSource period hq (timeInclusion hTS ⟨t,ht.1.le,ht.2.le⟩) (e ⟨t,ht.1.le,ht.2.le⟩)) - | |
| 26 | + (D.metric.coefficient (timeInclusion hTS ⟨t,ht.1.le,ht.2.le⟩)).operator | |
| 27 | + (value period (D.pressure period hq (timeInclusion hTS ⟨t,ht.1.le,ht.2.le⟩) (e ⟨t,ht.1.le,ht.2.le⟩)))) t := by | |
| 28 | + let F := ((D.coefficients period hq).comp (timeInclusion hTS)).apply | |
| 29 | + have hF : Continuous (fun p : Icc (0 : ℝ) T × SobolevSpace period (q+1) => F p.1 p.2) := | |
| 30 | + ((D.coefficients period hq).comp (timeInclusion hTS)).continuous | |
| 31 | + have hp := viscous_mild_hasDerivAt period (by omega : 2 ≤ q) ν hν T hT 0 F hF e hsol t ht | |
| 32 | + change HasDerivAt _ (ν • laplacianEvaluation period (q+1) _ (e ⟨t,ht.1.le,ht.2.le⟩) + | |
| 33 | + value period ((D.coefficients period hq).apply (timeInclusion hTS ⟨t,ht.1.le,ht.2.le⟩) (e ⟨t,ht.1.le,ht.2.le⟩))) t at hp | |
| 34 | + rw [D.source_value period hq] at hp | |
| 35 | + convert hp using 1 | |
| 36 | + abel | |
| 37 | + | |
| 38 | +end EulerCorrectionContinuation | |
+115 −0 Euler/CorrectionOperators.lean added View file
| @@ -0,0 +1,115 @@ | ||
| 1 | +import Euler.SobolevTransport | |
| 2 | +import Euler.SobolevCoefficientPressure | |
| 3 | +import Euler.QuadraticCoefficients | |
| 4 | + | |
| 5 | +/-! The literal transport and order-zero quadratic operators in the Euler correction equation. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +namespace EulerCorrectionOperators | |
| 10 | + | |
| 11 | +open MeasureTheory EulerLiftedGradientSpace EulerPressureSpatialRegularity EulerSpatialSobolevInverse | |
| 12 | + EulerCylinderSobolev EulerCylinderSobolevSpace EulerSobolevL2Product EulerSobolevTransport | |
| 13 | + EulerSobolevCoefficientPressure EulerVectorCylinder EulerMetricTransport | |
| 14 | +open scoped Topology ContDiff ENNReal | |
| 15 | + | |
| 16 | +variable {X Y : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] | |
| 17 | + [NormedAddCommGroup Y] [NormedSpace ℝ Y] | |
| 18 | + | |
| 19 | +/-- Postcompose an actual continuous bilinear map by an actual bounded operator. -/ | |
| 20 | +def postcompose (A : Y →L[ℝ] Y) (B : X →L[ℝ] X →L[ℝ] Y) : X →L[ℝ] X →L[ℝ] Y := | |
| 21 | + (ContinuousLinearMap.compL ℝ X Y Y A).comp B | |
| 22 | + | |
| 23 | +@[simp] theorem postcompose_apply (A : Y →L[ℝ] Y) (B : X →L[ℝ] X →L[ℝ] Y) (u v : X) : | |
| 24 | + postcompose A B u v = A (B u v) := rfl | |
| 25 | + | |
| 26 | +/-- Linearization of a quadratic term about the actual approximate solution. -/ | |
| 27 | +def linearize (B : X →L[ℝ] X →L[ℝ] Y) (C : X →L[ℝ] Y) (z : X) : X →L[ℝ] Y := | |
| 28 | + B z + B.flip z + C | |
| 29 | + | |
| 30 | +@[simp] theorem linearize_apply (B : X →L[ℝ] X →L[ℝ] Y) (C : X →L[ℝ] Y) (z e : X) : | |
| 31 | + linearize B C z e = B z e + B e z + C e := rfl | |
| 32 | + | |
| 33 | +/-- The correction source is exactly the difference of the full quadratic equations. -/ | |
| 34 | +theorem quadratic_correction_identity (B : X →L[ℝ] X →L[ℝ] Y) (C : X →L[ℝ] Y) (z e : X) : | |
| 35 | + C (z+e) + B (z+e) (z+e) - (C z + B z z) = linearize B C z e + B e e := by | |
| 36 | + simp only [linearize_apply, map_add, add_apply] | |
| 37 | + abel | |
| 38 | + | |
| 39 | +/-- Continuous data give continuous linearized operators. -/ | |
| 40 | +theorem linearize_continuous {T : Type*} [TopologicalSpace T] | |
| 41 | + (B : T → X →L[ℝ] X →L[ℝ] Y) (C : T → X →L[ℝ] Y) (z : T → X) | |
| 42 | + (hB : Continuous B) (hC : Continuous C) (hz : Continuous z) : | |
| 43 | + Continuous (fun t => linearize (B t) (C t) (z t)) := by | |
| 44 | + have hflip : Continuous (fun t => (B t).flip) := (ContinuousLinearMap.flipₗᵢ ℝ X X Y).continuous.comp hB | |
| 45 | + exact ((hB.clm_apply hz).add (hflip.clm_apply hz)).add hC | |
| 46 | + | |
| 47 | +variable (period : ℝ) [Fact (0 < period)] | |
| 48 | + | |
| 49 | +local instance sobolevGroup (q : ℕ) : NormedAddCommGroup (SobolevSpace period q) := inferInstance | |
| 50 | +local instance sobolevRealSpace (q : ℕ) : NormedSpace ℝ (SobolevSpace period q) := inferInstance | |
| 51 | +local instance sobolevBilinearGroup (q : ℕ) : SeminormedAddCommGroup | |
| 52 | + (SobolevSpace period (q+1) →L[ℝ] SobolevSpace period (q+1) →L[ℝ] SobolevSpace period q) := inferInstance | |
| 53 | + | |
| 54 | +/-- The actual derivative-free coordinate product on the input Sobolev level. -/ | |
| 55 | +def coordinateProduct {q : ℕ} (hq : 6 ≤ q) (i : Fin 3) : | |
| 56 | + SobolevSpace period (q+1) →L[ℝ] SobolevSpace period (q+1) →L[ℝ] SobolevSpace period q := | |
| 57 | + (productHqBilinear period hq (coordinate 3 i) (coordinate_norm_le 3 i)).bilinearComp | |
| 58 | + (truncateOperator period q) (truncateOperator period q) | |
| 59 | + | |
| 60 | +@[simp] theorem coordinateProduct_apply {q : ℕ} (hq : 6 ≤ q) (i : Fin 3) | |
| 61 | + (u v : SobolevSpace period (q+1)) : | |
| 62 | + coordinateProduct period hq i u v = productHq period hq (coordinate 3 i) (coordinate_norm_le 3 i) | |
| 63 | + (truncateOperator period q u) (truncateOperator period q v) := rfl | |
| 64 | + | |
| 65 | +/-- The actual order-zero quadratic coefficient terms, Σ Cᵢ(uᵢ v). -/ | |
| 66 | +def algebraicBilinear {q : ℕ} (hq : 6 ≤ q) | |
| 67 | + (C : Fin 3 → SobolevSpace period q →L[ℝ] SobolevSpace period q) : | |
| 68 | + SobolevSpace period (q+1) →L[ℝ] SobolevSpace period (q+1) →L[ℝ] SobolevSpace period q := | |
| 69 | + ∑ i : Fin 3, postcompose (C i) (coordinateProduct period hq i) | |
| 70 | + | |
| 71 | +theorem algebraicBilinear_apply {q : ℕ} (hq : 6 ≤ q) | |
| 72 | + (C : Fin 3 → SobolevSpace period q →L[ℝ] SobolevSpace period q) | |
| 73 | + (u v : SobolevSpace period (q+1)) : | |
| 74 | + algebraicBilinear period hq C u v = ∑ i : Fin 3, C i (coordinateProduct period hq i u v) := by | |
| 75 | + simp only [algebraicBilinear, sum_apply, postcompose_apply] | |
| 76 | + | |
| 77 | +/-- The full bilinear nonlinearity of the transformed Euler equation. -/ | |
| 78 | +def eulerBilinear {q : ℕ} (hq : 6 ≤ q) | |
| 79 | + (L : Fin 4 → Vector3 →L[ℝ] ℝ) (hL : ∀ i, ‖L i‖ ≤ 1) | |
| 80 | + (C : Fin 3 → SobolevSpace period q →L[ℝ] SobolevSpace period q) : | |
| 81 | + SobolevSpace period (q+1) →L[ℝ] SobolevSpace period (q+1) →L[ℝ] SobolevSpace period q := | |
| 82 | + transportBilinear period hq L hL + algebraicBilinear period hq C | |
| 83 | + | |
| 84 | +/-- Actual coefficient multiplication gives precisely the classical order-zero quadratic field. -/ | |
| 85 | +theorem algebraicBilinear_ae {q : ℕ} (hq : 6 ≤ q) | |
| 86 | + (C : Fin 3 → SmoothCoefficient period) (K : ∀ i, CoefficientJet period standardDirection q (C i)) | |
| 87 | + (u v : SobolevSpace period (q+1)) (f g : LiftDomain period → Vector3) | |
| 88 | + (hu : (value period u : LiftDomain period → Vector3) =ᵐ[liftMeasure period] f) | |
| 89 | + (hv : (value period v : LiftDomain period → Vector3) =ᵐ[liftMeasure period] g) : | |
| 90 | + (value period (algebraicBilinear period hq (fun i => coefficientSobolevOperator period (K i)) u v) : | |
| 91 | + LiftDomain period → Vector3) =ᵐ[liftMeasure period] | |
| 92 | + (fun x => ∑ i : Fin 3, f x i • (C i).coefficient x (g x)) := by | |
| 93 | + rw [algebraicBilinear_apply] | |
| 94 | + change ((valueOperator period q) (∑ i : Fin 3, _) : LiftDomain period → Vector3) =ᵐ[liftMeasure period] _ | |
| 95 | + rw [map_sum] | |
| 96 | + have hi (i : Fin 3) : | |
| 97 | + (value period (coefficientSobolevOperator period (K i) (coordinateProduct period hq i u v)) : | |
| 98 | + LiftDomain period → Vector3) =ᵐ[liftMeasure period] | |
| 99 | + (fun x => f x i • (C i).coefficient x (g x)) := by | |
| 100 | + rw [coefficientSobolevOperator_value] | |
| 101 | + have hpr := productHq_ae period hq (coordinate 3 i) (coordinate_norm_le 3 i) | |
| 102 | + (truncateOperator period q u) (truncateOperator period q v) | |
| 103 | + filter_upwards [(C i).operator_ae (value period (coordinateProduct period hq i u v)), hpr, hu, hv] | |
| 104 | + with x h1 h2 h3 h4 | |
| 105 | + rw [h1] | |
| 106 | + change (C i).coefficient x (value period (productHq period hq (coordinate 3 i) (coordinate_norm_le 3 i) | |
| 107 | + (truncateOperator period q u) (truncateOperator period q v)) x) = _ | |
| 108 | + rw [h2, value_truncateOperator, value_truncateOperator, h3, h4, map_smul] | |
| 109 | + rfl | |
| 110 | + filter_upwards [Lp.coeFn_finsetSum Finset.univ (fun i : Fin 3 => value period | |
| 111 | + (coefficientSobolevOperator period (K i) (coordinateProduct period hq i u v))), ae_all_iff.mpr hi] with x hx hall | |
| 112 | + simp only [Finset.sum_apply] at hx | |
| 113 | + exact hx.trans (Finset.sum_congr rfl (fun i _ => hall i)) | |
| 114 | + | |
| 115 | +end EulerCorrectionOperators | |
+156 −0 Euler/CorrectionParity.lean added View file
| @@ -0,0 +1,156 @@ | ||
| 1 | +import Euler.SobolevParityOperators | |
| 2 | +import Euler.EulerCorrectionEquation | |
| 3 | + | |
| 4 | +/-! Joint odd symmetry of the actual correction source and its coercive pressure. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerCorrectionParity | |
| 9 | + | |
| 10 | +open MeasureTheory InnerProductSpace EulerLiftedGradientSpace EulerPressureSpatialRegularity | |
| 11 | + EulerSpatialSobolevInverse EulerCylinderSobolev EulerCylinderSobolevSpace | |
| 12 | + EulerSobolevCoefficientPressure EulerSobolevTransport EulerCorrectionOperators | |
| 13 | + EulerCylinderReflection EulerGradientReflection EulerSobolevReflection EulerSobolevParityOperators | |
| 14 | + | |
| 15 | +variable {X Y : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] | |
| 16 | + [NormedAddCommGroup Y] [NormedSpace ℝ Y] | |
| 17 | + | |
| 18 | +/-- Exact equivariance of the residual plus the linearized quadratic increment. -/ | |
| 19 | +theorem linearized_source_equivariant (R : X →L[ℝ] X) (S : Y →L[ℝ] Y) | |
| 20 | + (B : X →L[ℝ] X →L[ℝ] Y) (C : X →L[ℝ] Y) (z : X) (r : Y) | |
| 21 | + (hB : ∀ u v, S (B u v) = B (R u) (R v)) (hC : ∀ u, S (C u) = C (R u)) | |
| 22 | + (hz : R z = z) (hr : S r = r) (e : X) : | |
| 23 | + S (r + linearize B C z e + B e e) = r + linearize B C z (R e) + B (R e) (R e) := by | |
| 24 | + simp only [linearize_apply, map_add, hB, hC, hz, hr] | |
| 25 | + | |
| 26 | +variable (period : ℝ) [Fact (0 < period)] | |
| 27 | + | |
| 28 | +/-- The inherited Sobolev additive normed-group instance. -/ | |
| 29 | +local instance correctionParityGroup (q : ℕ) : NormedAddCommGroup (SobolevSpace period q) := inferInstance | |
| 30 | +/-- The inherited real Sobolev module instance. -/ | |
| 31 | +local instance correctionParitySpace (q : ℕ) : NormedSpace ℝ (SobolevSpace period q) := inferInstance | |
| 32 | + | |
| 33 | +/-- Signed reflection on Sobolev fields has the literal signed L² value. -/ | |
| 34 | +theorem value_oddReflection {q : ℕ} (u : SobolevSpace period q) : | |
| 35 | + value period (oddReflection period q u) = -reflection period (value period u) := by | |
| 36 | + change -value period (sobolevReflection period q u) = _ | |
| 37 | + rw [value_sobolevReflection] | |
| 38 | + | |
| 39 | +/-- Actual almost-everywhere odd parity is precisely a fixed point of signed reflection. -/ | |
| 40 | +theorem oddReflection_fixed_of_ae {q : ℕ} (u : SobolevSpace period q) | |
| 41 | + (hu : ∀ᵐ x ∂liftMeasure period, value period u (-x) = -value period u x) : | |
| 42 | + oddReflection period q u = u := by | |
| 43 | + apply value_injective period | |
| 44 | + rw [value_oddReflection] | |
| 45 | + have hh : reflection period (value period u) = -value period u := by | |
| 46 | + apply Lp.ext | |
| 47 | + filter_upwards [reflection_ae period (value period u), Lp.coeFn_neg (value period u), hu] | |
| 48 | + with x h1 h2 h3 | |
| 49 | + rw [h1, h2] | |
| 50 | + exact h3 | |
| 51 | + rw [hh, neg_neg] | |
| 52 | + | |
| 53 | +/-- Signed reflection commutes with restriction to the next Sobolev order. -/ | |
| 54 | +theorem truncate_oddReflection {q : ℕ} (u : SobolevSpace period (q+1)) : | |
| 55 | + truncateOperator period q (oddReflection period (q+1) u) = | |
| 56 | + oddReflection period q (truncateOperator period q u) := by | |
| 57 | + simp only [oddReflection_apply, map_neg] | |
| 58 | + exact congrArg Neg.neg (truncate_reflection period u) | |
| 59 | + | |
| 60 | +/-- An actual even coefficient commutes with signed reflection. -/ | |
| 61 | +theorem coefficient_oddReflection {q : ℕ} {A : SmoothCoefficient period} | |
| 62 | + (K : CoefficientJet period standardDirection q A) | |
| 63 | + (hA : ∀ x, A.coefficient (-x) = A.coefficient x) (u : SobolevSpace period q) : | |
| 64 | + oddReflection period q (coefficientSobolevOperator period K u) = | |
| 65 | + coefficientSobolevOperator period K (oddReflection period q u) := by | |
| 66 | + simp only [oddReflection_apply, map_neg] | |
| 67 | + exact congrArg Neg.neg (coefficient_reflection period K hA u) | |
| 68 | + | |
| 69 | +/-- The actual pressure inverse commutes with signed reflection for an even metric. -/ | |
| 70 | +theorem pressure_oddReflection {q : ℕ} {A : SmoothCoefficient period} | |
| 71 | + (K : CoefficientJet period standardDirection q A) | |
| 72 | + (hA : ∀ x, A.coefficient (-x) = A.coefficient x) | |
| 73 | + (κ : ℝ) (m : Vector3) (c : ℝ) (hc : 0 < c) | |
| 74 | + (hpos : ∀ x v, c * ‖v‖ ^ 2 ≤ ⟪A.coefficient x v,v⟫_ℝ) (u : SobolevSpace period q) : | |
| 75 | + oddReflection period q (pressureSobolevOperator period K κ m c hc hpos u) = | |
| 76 | + pressureSobolevOperator period K κ m c hc hpos (oddReflection period q u) := by | |
| 77 | + simp only [oddReflection_apply, map_neg] | |
| 78 | + exact congrArg Neg.neg (pressureSobolev_reflection period K hA κ m c hc hpos u) | |
| 79 | + | |
| 80 | +/-- The actual pressure-corrected source commutes with signed reflection. -/ | |
| 81 | +theorem projectedSource_oddReflection {q : ℕ} {A : SmoothCoefficient period} | |
| 82 | + (K : CoefficientJet period standardDirection q A) | |
| 83 | + (hA : ∀ x, A.coefficient (-x) = A.coefficient x) | |
| 84 | + (κ : ℝ) (m : Vector3) (c : ℝ) (hc : 0 < c) | |
| 85 | + (hpos : ∀ x v, c * ‖v‖ ^ 2 ≤ ⟪A.coefficient x v,v⟫_ℝ) (u : SobolevSpace period q) : | |
| 86 | + oddReflection period q (projectedSourceOperator period K κ m c hc hpos u) = | |
| 87 | + projectedSourceOperator period K κ m c hc hpos (oddReflection period q u) := by | |
| 88 | + simp only [oddReflection_apply, map_neg] | |
| 89 | + exact congrArg Neg.neg (projectedSource_reflection period K hA κ m c hc hpos u) | |
| 90 | + | |
| 91 | +/-- The literal non-pressure correction source has odd-reflection symmetry | |
| 92 | +under the source's actual even linear and odd quadratic coefficients. -/ | |
| 93 | +theorem rawSource_oddReflection {q : ℕ} (hq : 6 ≤ q) {T : Type*} [TopologicalSpace T] | |
| 94 | + (D : CorrectionData period q T) (t : T) | |
| 95 | + (hL : ∀ x, (D.linear.coefficient t).coefficient (-x) = (D.linear.coefficient t).coefficient x) | |
| 96 | + (hQ : ∀ i x, ((D.quadratic i).coefficient t).coefficient (-x) = -((D.quadratic i).coefficient t).coefficient x) | |
| 97 | + (hz : oddReflection period (q+1) (D.approximation t) = D.approximation t) | |
| 98 | + (hr : oddReflection period q (D.residual t) = D.residual t) | |
| 99 | + (e : SobolevSpace period (q+1)) : | |
| 100 | + oddReflection period q (D.rawSource period hq t e) = | |
| 101 | + D.rawSource period hq t (oddReflection period (q+1) e) := by | |
| 102 | + let L := velocityComponents D.κ D.direction | |
| 103 | + let hLnorm := velocityComponents_norm D.κ D.direction D.scale_bound D.direction_bound | |
| 104 | + let F := eulerBilinear period hq L hLnorm (fun i => coefficientSobolevOperator period ((D.quadratic i).jet t)) | |
| 105 | + let C := (coefficientSobolevOperator period (D.linear.jet t)).comp (truncateOperator period q) | |
| 106 | + have hF (u v : SobolevSpace period (q+1)) : oddReflection period q (F u v) = | |
| 107 | + F (oddReflection period (q+1) u) (oddReflection period (q+1) v) := | |
| 108 | + eulerBilinear_oddReflection period hq L hLnorm (fun i => (D.quadratic i).coefficient t) | |
| 109 | + (fun i => (D.quadratic i).jet t) hQ u v | |
| 110 | + have hC (u : SobolevSpace period (q+1)) : oddReflection period q (C u) = C (oddReflection period (q+1) u) := | |
| 111 | + (coefficient_oddReflection period (D.linear.jet t) hL (truncateOperator period q u)).trans | |
| 112 | + (congrArg (coefficientSobolevOperator period (D.linear.jet t)) (truncate_oddReflection period u).symm) | |
| 113 | + exact linearized_source_equivariant (oddReflection period (q+1)) (oddReflection period q) F C | |
| 114 | + (D.approximation t) (D.residual t) hF hC hz hr e | |
| 115 | + | |
| 116 | +/-- The genuine correction pressure transforms by signed reflection, | |
| 117 | +with its sign fixed by the actual pressure definition. -/ | |
| 118 | +theorem correction_pressure_oddReflection {q : ℕ} (hq : 6 ≤ q) {T : Type*} [TopologicalSpace T] | |
| 119 | + (D : CorrectionData period q T) (t : T) | |
| 120 | + (hG : ∀ x, (D.metric.coefficient t).coefficient (-x) = (D.metric.coefficient t).coefficient x) | |
| 121 | + (hL : ∀ x, (D.linear.coefficient t).coefficient (-x) = (D.linear.coefficient t).coefficient x) | |
| 122 | + (hQ : ∀ i x, ((D.quadratic i).coefficient t).coefficient (-x) = -((D.quadratic i).coefficient t).coefficient x) | |
| 123 | + (hz : oddReflection period (q+1) (D.approximation t) = D.approximation t) | |
| 124 | + (hr : oddReflection period q (D.residual t) = D.residual t) | |
| 125 | + (e : SobolevSpace period (q+1)) : | |
| 126 | + oddReflection period q (D.pressure period hq t e) = | |
| 127 | + D.pressure period hq t (oddReflection period (q+1) e) := by | |
| 128 | + change oddReflection period q (-(pressureSobolevOperator period (D.metric.jet t) D.κ D.direction | |
| 129 | + D.coercivity D.coercivity_pos (D.metric_pos t) (D.rawSource period hq t e))) = _ | |
| 130 | + rw [map_neg] | |
| 131 | + exact congrArg Neg.neg ((pressure_oddReflection period (D.metric.jet t) hG D.κ D.direction | |
| 132 | + D.coercivity D.coercivity_pos (D.metric_pos t) (D.rawSource period hq t e)).trans | |
| 133 | + (congrArg (pressureSobolevOperator period (D.metric.jet t) D.κ D.direction D.coercivity D.coercivity_pos | |
| 134 | + (D.metric_pos t)) (rawSource_oddReflection period hq D t hL hQ hz hr e))) | |
| 135 | + | |
| 136 | +/-- The literal projected nonlinear correction equation has the required | |
| 137 | +odd symmetry, derived from the concrete parity of its prescribed fields. -/ | |
| 138 | +theorem correction_source_oddReflection {q : ℕ} (hq : 6 ≤ q) {T : Type*} [TopologicalSpace T] | |
| 139 | + (D : CorrectionData period q T) (t : T) | |
| 140 | + (hG : ∀ x, (D.metric.coefficient t).coefficient (-x) = (D.metric.coefficient t).coefficient x) | |
| 141 | + (hL : ∀ x, (D.linear.coefficient t).coefficient (-x) = (D.linear.coefficient t).coefficient x) | |
| 142 | + (hQ : ∀ i x, ((D.quadratic i).coefficient t).coefficient (-x) = -((D.quadratic i).coefficient t).coefficient x) | |
| 143 | + (hz : oddReflection period (q+1) (D.approximation t) = D.approximation t) | |
| 144 | + (hr : oddReflection period q (D.residual t) = D.residual t) | |
| 145 | + (e : SobolevSpace period (q+1)) : | |
| 146 | + oddReflection period q ((D.coefficients period hq).apply t e) = | |
| 147 | + (D.coefficients period hq).apply t (oddReflection period (q+1) e) := by | |
| 148 | + change oddReflection period q (-(projectedSourceOperator period (D.metric.jet t) D.κ D.direction | |
| 149 | + D.coercivity D.coercivity_pos (D.metric_pos t) (D.rawSource period hq t e))) = _ | |
| 150 | + rw [map_neg] | |
| 151 | + exact congrArg Neg.neg ((projectedSource_oddReflection period (D.metric.jet t) hG D.κ D.direction | |
| 152 | + D.coercivity D.coercivity_pos (D.metric_pos t) (D.rawSource period hq t e)).trans | |
| 153 | + (congrArg (projectedSourceOperator period (D.metric.jet t) D.κ D.direction D.coercivity D.coercivity_pos | |
| 154 | + (D.metric_pos t)) (rawSource_oddReflection period hq D t hL hQ hz hr e))) | |
| 155 | + | |
| 156 | +end EulerCorrectionParity | |
+106 −0 Euler/CorrectionResidualCancellation.lean added View file
| @@ -0,0 +1,106 @@ | ||
| 1 | +import Euler.InviscidSobolevEvolution | |
| 2 | + | |
| 3 | +/-! Adding the actual correction removes a genuine approximate-solution residual. -/ | |
| 4 | + | |
| 5 | +noncomputable section | |
| 6 | + | |
| 7 | +namespace EulerCorrectionResidualCancellation | |
| 8 | + | |
| 9 | +open MeasureTheory Set EulerLiftedGradientSpace EulerCylinderSobolevSpace | |
| 10 | + EulerCorrectionOperators EulerQuadraticSource EulerVolterraConvolution | |
| 11 | + EulerInviscidSobolevEvolution EulerSobolevCoefficientPressure | |
| 12 | +open scoped Topology | |
| 13 | + | |
| 14 | +variable (period : ℝ) [Fact (0 < period)] | |
| 15 | + | |
| 16 | +/-- The inherited Sobolev group structure for exact residual cancellation. -/ | |
| 17 | +local instance residualSobolevGroup (q : ℕ) : NormedAddCommGroup (SobolevSpace period q) := inferInstance | |
| 18 | +/-- The inherited real Sobolev module structure for exact residual cancellation. -/ | |
| 19 | +local instance residualSobolevSpace (q : ℕ) : NormedSpace ℝ (SobolevSpace period q) := inferInstance | |
| 20 | + | |
| 21 | +/-- The actual linear coefficient plus the full transport-and-algebraic quadratic nonlinearity. -/ | |
| 22 | +def nonlinearity {q : ℕ} {T : Type*} [TopologicalSpace T] | |
| 23 | + (D : CorrectionData period q T) (hq : 6 ≤ q) (t : T) | |
| 24 | + (u : SobolevSpace period (q+1)) : SobolevSpace period q := | |
| 25 | + coefficientSobolevOperator period (D.linear.jet t) (truncateOperator period q u) + | |
| 26 | + (D.coefficients period hq).quadratic t u u | |
| 27 | + | |
| 28 | +/-- The actual raw correction source is exactly the prescribed residual plus the full nonlinear increment about the prescribed approximation. -/ | |
| 29 | +theorem rawSource_eq_residual_increment {q : ℕ} {T : Type*} [TopologicalSpace T] | |
| 30 | + (D : CorrectionData period q T) (hq : 6 ≤ q) (t : T) (e : SobolevSpace period (q+1)) : | |
| 31 | + D.rawSource period hq t e = D.residual t + | |
| 32 | + nonlinearity period D hq t (D.approximation t+e) - | |
| 33 | + nonlinearity period D hq t (D.approximation t) := by | |
| 34 | + let B := (D.coefficients period hq).quadratic t | |
| 35 | + let A := (coefficientSobolevOperator period (D.linear.jet t)).comp (truncateOperator period q) | |
| 36 | + change D.residual t + linearize B A (D.approximation t) e + B e e = | |
| 37 | + D.residual t + (A (D.approximation t+e) + B (D.approximation t+e) (D.approximation t+e)) - | |
| 38 | + (A (D.approximation t) + B (D.approximation t) (D.approximation t)) | |
| 39 | + simp only [linearize_apply,map_add,add_apply] | |
| 40 | + abel | |
| 41 | + | |
| 42 | +/-- The signed approximate and correction equations cancel the residual and add their actual pressures. -/ | |
| 43 | +theorem residual_cancellation {q : ℕ} {T : Type*} [TopologicalSpace T] | |
| 44 | + (D : CorrectionData period q T) (hq : 6 ≤ q) (t : T) | |
| 45 | + (e : SobolevSpace period (q+1)) (pa : SobolevSpace period q) : | |
| 46 | + (D.residual t-nonlinearity period D hq t (D.approximation t)- | |
| 47 | + coefficientSobolevOperator period (D.metric.jet t) pa) + | |
| 48 | + (-D.rawSource period hq t e- | |
| 49 | + coefficientSobolevOperator period (D.metric.jet t) (D.pressure period hq t e)) = | |
| 50 | + -nonlinearity period D hq t (D.approximation t+e)- | |
| 51 | + coefficientSobolevOperator period (D.metric.jet t) (pa+D.pressure period hq t e) := by | |
| 52 | + rw [rawSource_eq_residual_increment period D hq t e,map_add] | |
| 53 | + abel | |
| 54 | + | |
| 55 | +/-- The actual continuous corrected path is the prescribed approximation plus the constructed error. -/ | |
| 56 | +def correctedPath {q : ℕ} {T : ℝ} (D : CorrectionData period q (Icc (0 : ℝ) T)) | |
| 57 | + (e : C(Icc (0 : ℝ) T,SobolevSpace period (q+1))) : | |
| 58 | + C(Icc (0 : ℝ) T,SobolevSpace period (q+1)) := D.approximation+e | |
| 59 | + | |
| 60 | +/-- A zero initial correction preserves the actual initial field. -/ | |
| 61 | +theorem correctedPath_initial {q : ℕ} (T : ℝ) (hT : 0 ≤ T) | |
| 62 | + (D : CorrectionData period q (Icc (0 : ℝ) T)) | |
| 63 | + (e : C(Icc (0 : ℝ) T,SobolevSpace period (q+1))) (he : e ⟨0,le_rfl,hT⟩=0) : | |
| 64 | + correctedPath period D e ⟨0,le_rfl,hT⟩=D.approximation ⟨0,le_rfl,hT⟩ := by | |
| 65 | + change D.approximation ⟨0,le_rfl,hT⟩+e ⟨0,le_rfl,hT⟩=_ | |
| 66 | + rw [he,add_zero] | |
| 67 | + | |
| 68 | +/-- The corrected path retains the genuine lifted divergence constraint by addition in its closed subspace. -/ | |
| 69 | +theorem correctedPath_divergenceFree {q : ℕ} {T : ℝ} | |
| 70 | + (D : CorrectionData period q (Icc (0 : ℝ) T)) | |
| 71 | + (e : C(Icc (0 : ℝ) T,SobolevSpace period (q+1))) | |
| 72 | + (hz : ∀ t, value period (D.approximation t) ∈ divergenceFreeSpace period D.κ D.direction) | |
| 73 | + (he : ∀ t, value period (e t) ∈ divergenceFreeSpace period D.κ D.direction) (t : Icc (0 : ℝ) T) : | |
| 74 | + value period (correctedPath period D e t) ∈ divergenceFreeSpace period D.κ D.direction := | |
| 75 | + (divergenceFreeSpace period D.κ D.direction).add_mem (hz t) (he t) | |
| 76 | + | |
| 77 | +/-- Adding a genuine approximate pressure to the actual correction pressure preserves membership in the lifted gradient space. -/ | |
| 78 | +theorem corrected_pressure_mem_gradient {q : ℕ} {T : Type*} [TopologicalSpace T] | |
| 79 | + (D : CorrectionData period q T) (hq : 6 ≤ q) (t : T) | |
| 80 | + (e : SobolevSpace period (q+1)) (pa : SobolevSpace period q) | |
| 81 | + (hpa : value period pa ∈ gradientSpace period D.κ D.direction) : | |
| 82 | + value period (pa+D.pressure period hq t e) ∈ gradientSpace period D.κ D.direction := | |
| 83 | + (gradientSpace period D.κ D.direction).add_mem hpa (D.pressure_mem_gradient period hq t e) | |
| 84 | + | |
| 85 | +/-- Actual approximate and correction derivatives give the zero-residual nonlinear equation for their sum, with the sum of their genuine pressures. -/ | |
| 86 | +theorem correctedPath_hasDerivAt {q : ℕ} (hq : 6 ≤ q) (T : ℝ) (hT : 0 ≤ T) | |
| 87 | + (D : CorrectionData period q (Icc (0 : ℝ) T)) | |
| 88 | + (e : C(Icc (0 : ℝ) T,SobolevSpace period (q+1))) | |
| 89 | + (pa : C(Icc (0 : ℝ) T,SobolevSpace period q)) (t : ℝ) (ht : t ∈ Ioo 0 T) | |
| 90 | + (hz : HasDerivAt (fun r => truncateOperator period q (extendPath T hT D.approximation r)) | |
| 91 | + (D.residual ⟨t,ht.1.le,ht.2.le⟩- | |
| 92 | + nonlinearity period D hq ⟨t,ht.1.le,ht.2.le⟩ (D.approximation ⟨t,ht.1.le,ht.2.le⟩)- | |
| 93 | + coefficientSobolevOperator period (D.metric.jet ⟨t,ht.1.le,ht.2.le⟩) (pa ⟨t,ht.1.le,ht.2.le⟩)) t) | |
| 94 | + (he : HasDerivAt (fun r => truncateOperator period q (extendPath T hT e r)) | |
| 95 | + (-D.rawSource period hq ⟨t,ht.1.le,ht.2.le⟩ (e ⟨t,ht.1.le,ht.2.le⟩)- | |
| 96 | + coefficientSobolevOperator period (D.metric.jet ⟨t,ht.1.le,ht.2.le⟩) | |
| 97 | + (D.pressure period hq ⟨t,ht.1.le,ht.2.le⟩ (e ⟨t,ht.1.le,ht.2.le⟩))) t) : | |
| 98 | + HasDerivAt (fun r => truncateOperator period q (extendPath T hT (correctedPath period D e) r)) | |
| 99 | + (-nonlinearity period D hq ⟨t,ht.1.le,ht.2.le⟩ (correctedPath period D e ⟨t,ht.1.le,ht.2.le⟩)- | |
| 100 | + coefficientSobolevOperator period (D.metric.jet ⟨t,ht.1.le,ht.2.le⟩) | |
| 101 | + (pa ⟨t,ht.1.le,ht.2.le⟩+D.pressure period hq ⟨t,ht.1.le,ht.2.le⟩ (e ⟨t,ht.1.le,ht.2.le⟩))) t := by | |
| 102 | + have h := (hz.add he).congr_deriv | |
| 103 | + (residual_cancellation period D hq ⟨t,ht.1.le,ht.2.le⟩ (e ⟨t,ht.1.le,ht.2.le⟩) (pa ⟨t,ht.1.le,ht.2.le⟩)) | |
| 104 | + convert h using 1 <;> rfl | |
| 105 | + | |
| 106 | +end EulerCorrectionResidualCancellation | |
+63 −0 Euler/CorrectionSmoothTimeField.lean added View file
| @@ -0,0 +1,63 @@ | ||
| 1 | +import Euler.FieldTowerSmoothTimeField | |
| 2 | +import Euler.AllOrderDriftPressureBounds | |
| 3 | +import Euler.SmoothTimeFieldAlgebra | |
| 4 | +import Euler.LiftedSmoothTimeField | |
| 5 | + | |
| 6 | +/-! The constructed all-order correction and its true time derivative | |
| 7 | +are actual smooth bounded cover coefficients. Their quantitative bounds | |
| 8 | +come from the checked weighted Sobolev estimates. -/ | |
| 9 | + | |
| 10 | +noncomputable section | |
| 11 | + | |
| 12 | + | |
| 13 | +namespace EulerAllOrderDriftCorrection | |
| 14 | + | |
| 15 | +open Set EulerLiftedGradientSpace EulerAllOrderCorrectionData EulerCylinderSobolevSpace | |
| 16 | + EulerCylinderCoordinates EulerLiftedSmoothTimeField | |
| 17 | +open scoped ContDiff BoundedContinuousFunction | |
| 18 | + | |
| 19 | +variable (P : ℝ) [Fact (0 < P)] {T : ℝ} {hT : 0 < T} {A : Data P T} | |
| 20 | + | |
| 21 | +private local instance (n : ℕ) : NormedAddCommGroup (LiftTangent [×n]→L[ℝ] Vector3) := inferInstance | |
| 22 | +private local instance (n : ℕ) : NormedSpace ℝ (LiftTangent [×n]→L[ℝ] Vector3) := inferInstance | |
| 23 | +private local instance (n : ℕ) : NormedAddCommGroup | |
| 24 | + (LiftTangent →ᵇ (LiftTangent [×n]→L[ℝ] Vector3)) := inferInstance | |
| 25 | +private local instance (n : ℕ) : NormedSpace ℝ | |
| 26 | + (LiftTangent →ᵇ (LiftTangent [×n]→L[ℝ] Vector3)) := inferInstance | |
| 27 | + | |
| 28 | +def Budget.correctionCoefficient (B : Budget P hT A) : | |
| 29 | + SmoothTimeField (Icc (0 : ℝ) T) LiftTangent Vector3 := | |
| 30 | + (B.fieldTower P).toSmoothTimeField | |
| 31 | + | |
| 32 | +def Budget.correctionDerivativeCoefficient (B : Budget P hT A) : | |
| 33 | + SmoothTimeField (Icc (0 : ℝ) T) LiftTangent Vector3 := | |
| 34 | + (B.timeDerivativeTower P).toSmoothTimeField | |
| 35 | + | |
| 36 | +theorem Budget.correctionCoefficient_timeDerivative (B : Budget P hT A) : | |
| 37 | + SmoothTimeField.TimeDerivative T hT.le (B.correctionCoefficient P) | |
| 38 | + (B.correctionDerivativeCoefficient P) := | |
| 39 | + (B.fieldTower P).toSmoothTimeField_timeDerivative_of_interior (B.timeDerivativeTower P) | |
| 40 | + hT.le 6 (by norm_num) (B.fieldTower_hasDerivAt_timeDerivativeTower P 6 le_rfl) | |
| 41 | + | |
| 42 | +theorem Budget.correctionCoefficient_jet_bound (B : Budget P hT A) (n : ℕ) : | |
| 43 | + ‖(B.correctionCoefficient P).jet n‖ ≤ | |
| 44 | + (sobolevEmbeddingConstant P 3 * B.correctionSize P) * | |
| 45 | + (‖coordinateEquiv.symm.toContinuousLinearMap‖ * (B.reducedRadius P)⁻¹)^n * | |
| 46 | + (n.factorial : ℝ)^2 := | |
| 47 | + (B.fieldTower P).toSmoothTimeField_jet_weighted n (B.reducedRadius P) | |
| 48 | + (B.correctionSize P) (B.reducedRadius_pos P) (B.correctionSize_nonneg P) | |
| 49 | + (B.fieldTower_reducedNorm P (n+6) n le_rfl) | |
| 50 | + | |
| 51 | +theorem Budget.correctionDerivativeCoefficient_jet_bound (B : Budget P hT A) | |
| 52 | + (C : ℝ) (hC : 0 ≤ C) | |
| 53 | + (hb : ∀ (n : ℕ) (t : Icc (0 : ℝ) T), | |
| 54 | + EulerSobolevGevreyOperators.weightedNorm P 6 n (B.reducedRadius P) | |
| 55 | + ((B.timeDerivativeTower P).realization (n+6) t) ≤ C) (n : ℕ) : | |
| 56 | + ‖(B.correctionDerivativeCoefficient P).jet n‖ ≤ | |
| 57 | + (sobolevEmbeddingConstant P 3 * C) * | |
| 58 | + (‖coordinateEquiv.symm.toContinuousLinearMap‖ * (B.reducedRadius P)⁻¹)^n * | |
| 59 | + (n.factorial : ℝ)^2 := | |
| 60 | + (B.timeDerivativeTower P).toSmoothTimeField_jet_weighted n (B.reducedRadius P) | |
| 61 | + C (B.reducedRadius_pos P) hC (hb n) | |
| 62 | + | |
| 63 | +end EulerAllOrderDriftCorrection | |
+76 −0 Euler/CorrectionSourceRestriction.lean added View file
| @@ -0,0 +1,76 @@ | ||
| 1 | +import Euler.CorrectionLowerData | |
| 2 | +import Euler.SobolevCorrectionCompatibility | |
| 3 | + | |
| 4 | +/-! The actual nonlinear correction source is identical across compatible Sobolev levels. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerCorrectionSourceRestriction | |
| 9 | + | |
| 10 | +open Set EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev | |
| 11 | + EulerSpatialSobolevInverse EulerSobolevCoefficientPressure EulerSobolevTransport EulerAsymmetricTransport | |
| 12 | + EulerSobolevNonlinearCompatibility EulerSobolevCorrectionCompatibility EulerCorrectionOperators | |
| 13 | + EulerCorrectionLowerData EulerGevreyOrderZero | |
| 14 | +open scoped Topology | |
| 15 | + | |
| 16 | +variable (period : ℝ) [Fact (0 < period)] | |
| 17 | + | |
| 18 | +/-- The actual quadratic transport field restricts to the same lower-order transport. -/ | |
| 19 | +theorem truncate_transport {q : ℕ} (hq : 6 ≤ q) | |
| 20 | + (L : Fin 4 → Vector3 →L[ℝ] ℝ) (hL : ∀ i, ‖L i‖ ≤ 1) | |
| 21 | + (u v : SobolevSpace period ((q+1)+1)) : | |
| 22 | + truncateOperator period q (transportBilinear period (by omega : 6 ≤ q+1) L hL u v) = | |
| 23 | + transportBilinear period hq L hL (truncateOperator period (q+1) u) (truncateOperator period (q+1) v) := by | |
| 24 | + have h := restrict_asymmetricTransport period (by omega : 6 ≤ q+1) hq (by omega : q ≤ q+1) | |
| 25 | + L hL (truncateOperator period (q+1) u) v | |
| 26 | + rw [asymmetricTransport_eq period (by omega : 6 ≤ q+1) L hL u v] at h | |
| 27 | + exact h.trans (asymmetricTransport_eq period hq L hL | |
| 28 | + (truncateOperator period (q+1) u) (truncateOperator period (q+1) v)) | |
| 29 | + | |
| 30 | +/-- Restricting the literal nonlinear raw source gives the raw source of the actual lower data. -/ | |
| 31 | +theorem truncate_rawSource {q : ℕ} (hq : 6 ≤ q) {T : ℝ} | |
| 32 | + (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) | |
| 33 | + (KG : ∀ t, CoefficientJet period standardDirection q (D.metric.coefficient t)) | |
| 34 | + (KL : ∀ t, CoefficientJet period standardDirection q (D.linear.coefficient t)) | |
| 35 | + (KQ : ∀ i t, CoefficientJet period standardDirection q ((D.quadratic i).coefficient t)) | |
| 36 | + (hG : Continuous (fun t => coefficientSobolevOperator period (KG t))) | |
| 37 | + (hL : Continuous (fun t => coefficientSobolevOperator period (KL t))) | |
| 38 | + (hQ : ∀ i, Continuous (fun t => coefficientSobolevOperator period (KQ i t))) | |
| 39 | + (t : Icc (0 : ℝ) T) (u : SobolevSpace period ((q+1)+1)) : | |
| 40 | + truncateOperator period q (D.rawSource period (by omega : 6 ≤ q+1) t u) = | |
| 41 | + (lowerData period D KG KL KQ hG hL hQ).rawSource period hq t (truncateOperator period (q+1) u) := by | |
| 42 | + let L := velocityComponents D.κ D.direction | |
| 43 | + have hL1 := velocityComponents_norm D.κ D.direction D.scale_bound D.direction_bound | |
| 44 | + have ht := truncate_transport period hq L hL1 (D.approximation t+u) u | |
| 45 | + have hf := restrict_orderZeroSource period (by omega : 6 ≤ q+1) hq (by omega : q ≤ q+1) | |
| 46 | + L hL1 (D.linear.coefficient t) (D.linear.jet t) (KL t) (fun i => (D.quadratic i).coefficient t) | |
| 47 | + (fun i => (D.quadratic i).jet t) (fun i => KQ i t) (D.approximation t) (D.residual t) | |
| 48 | + (truncateOperator period (q+1) u) | |
| 49 | + rw [correctionData_rawSource_split period D (by omega : 6 ≤ q+1),map_add] | |
| 50 | + rw [correctionData_rawSource_split period (lowerData period D KG KL KQ hG hL hQ) hq] | |
| 51 | + exact congrArg₂ (fun x y : SobolevSpace period q => x+y) ht hf | |
| 52 | + | |
| 53 | +/-- The actual projected nonlinear mild source commutes exactly with Sobolev restriction. -/ | |
| 54 | +theorem truncate_source {q : ℕ} (hq : 6 ≤ q) {T : ℝ} | |
| 55 | + (D : CorrectionData period (q+1) (Icc (0 : ℝ) T)) | |
| 56 | + (KG : ∀ t, CoefficientJet period standardDirection q (D.metric.coefficient t)) | |
| 57 | + (KL : ∀ t, CoefficientJet period standardDirection q (D.linear.coefficient t)) | |
| 58 | + (KQ : ∀ i t, CoefficientJet period standardDirection q ((D.quadratic i).coefficient t)) | |
| 59 | + (hG : Continuous (fun t => coefficientSobolevOperator period (KG t))) | |
| 60 | + (hL : Continuous (fun t => coefficientSobolevOperator period (KL t))) | |
| 61 | + (hQ : ∀ i, Continuous (fun t => coefficientSobolevOperator period (KQ i t))) | |
| 62 | + (t : Icc (0 : ℝ) T) (u : SobolevSpace period ((q+1)+1)) : | |
| 63 | + truncateOperator period q ((D.coefficients period (by omega : 6 ≤ q+1)).apply t u) = | |
| 64 | + ((lowerData period D KG KL KQ hG hL hQ).coefficients period hq).apply t (truncateOperator period (q+1) u) := by | |
| 65 | + change truncateOperator period q (-projectedSourceOperator period (D.metric.jet t) D.κ D.direction | |
| 66 | + D.coercivity D.coercivity_pos (D.metric_pos t) (D.rawSource period (by omega : 6 ≤ q+1) t u)) = | |
| 67 | + -projectedSourceOperator period (KG t) D.κ D.direction D.coercivity D.coercivity_pos (D.metric_pos t) | |
| 68 | + ((lowerData period D KG KL KQ hG hL hQ).rawSource period hq t (truncateOperator period (q+1) u)) | |
| 69 | + rw [map_neg] | |
| 70 | + have hp := restrict_projectedSource period (by omega : q ≤ q+1) (D.metric.jet t) (KG t) | |
| 71 | + D.κ D.direction D.coercivity D.coercivity_pos (D.metric_pos t) (D.rawSource period (by omega : 6 ≤ q+1) t u) | |
| 72 | + exact (congrArg Neg.neg hp).trans | |
| 73 | + (congrArg (fun v => -projectedSourceOperator period (KG t) D.κ D.direction D.coercivity D.coercivity_pos (D.metric_pos t) v) | |
| 74 | + (truncate_rawSource period hq D KG KL KQ hG hL hQ t u)) | |
| 75 | + | |
| 76 | +end EulerCorrectionSourceRestriction | |
+98 −0 Euler/CorrectionStabilityBudget.lean added View file
| @@ -0,0 +1,98 @@ | ||
| 1 | +import Euler.CorrectionDifferenceMetric | |
| 2 | + | |
| 3 | +/-! Concrete coefficient and inverse-metric data for actual vanishing-viscosity stability. -/ | |
| 4 | + | |
| 5 | +noncomputable section | |
| 6 | + | |
| 7 | +namespace EulerCorrectionStabilityBudget | |
| 8 | + | |
| 9 | +open MeasureTheory Set InnerProductSpace EulerLiftedGradientSpace EulerCylinderSobolevSpace | |
| 10 | + EulerSpatialSobolevInverse EulerCorrectionOperators EulerCorrectionStabilityConstants EulerVolterraConvolution | |
| 11 | +open scoped Topology | |
| 12 | + | |
| 13 | +variable (period : ℝ) [Fact (0 < period)] | |
| 14 | + | |
| 15 | +/-- Actual coefficient and inverse-metric budgets for L² comparison; no PDE estimate or solution comparison is a field. -/ | |
| 16 | +structure StabilityBudget {q : ℕ} {T : ℝ} (hT : 0 ≤ T) (D : CorrectionData period q (Icc (0 : ℝ) T)) where | |
| 17 | + /-- The actual inverse metric coefficient. -/ | |
| 18 | + metric : Icc (0 : ℝ) T → SmoothCoefficient period | |
| 19 | + /-- The actual metric multiplier is continuous in time. -/ | |
| 20 | + continuous : Continuous (fun t => (metric t).operator) | |
| 21 | + /-- The genuine time derivative of the metric multiplier. -/ | |
| 22 | + derivative : C(Icc (0 : ℝ) T,LiftL2 period →L[ℝ] LiftL2 period) | |
| 23 | + /-- Interior differentiation of the actual metric path. -/ | |
| 24 | + hasDeriv : ∀ t ∈ Ioo 0 T, HasDerivAt | |
| 25 | + (fun s => (metric (projIcc 0 T hT s)).operator) (extendPath T hT derivative t) t | |
| 26 | + /-- Positive square-root coercivity constant. -/ | |
| 27 | + c : ℝ | |
| 28 | + /-- Strict coercivity. -/ | |
| 29 | + c_pos : 0 < c | |
| 30 | + /-- Pointwise metric symmetry. -/ | |
| 31 | + symmetric : ∀ t x a b, ⟪(metric t).coefficient x a,b⟫_ℝ=⟪a,(metric t).coefficient x b⟫_ℝ | |
| 32 | + /-- Pointwise positive lower bound. -/ | |
| 33 | + coercive : ∀ t x a, c^2*‖a‖^2 ≤ ⟪(metric t).coefficient x a,a⟫_ℝ | |
| 34 | + /-- The actual metric inverts the pressure coefficient. -/ | |
| 35 | + inverse : ∀ t x a, (metric t).coefficient x ((D.metric.coefficient t).coefficient x a)=a | |
| 36 | + /-- Uniform metric operator bound. -/ | |
| 37 | + bound : ℝ | |
| 38 | + /-- Uniform metric first spatial derivative bound. -/ | |
| 39 | + first : ℝ | |
| 40 | + /-- Uniform metric time derivative bound. -/ | |
| 41 | + time : ℝ | |
| 42 | + /-- Uniform linear-coefficient bound. -/ | |
| 43 | + linear : ℝ | |
| 44 | + /-- Uniform sum of quadratic-coefficient bounds. -/ | |
| 45 | + quadratic : ℝ | |
| 46 | + /-- The actual metric operator satisfies its budget. -/ | |
| 47 | + bound_le : ∀ t, ‖(metric t).operator‖ ≤ bound | |
| 48 | + /-- The actual first spatial derivative witness satisfies its budget. -/ | |
| 49 | + first_le : ∀ t, ((metric t).firstBound : ℝ) ≤ first | |
| 50 | + /-- The actual time derivative satisfies its budget. -/ | |
| 51 | + time_le : ∀ t, ‖derivative t‖ ≤ time | |
| 52 | + /-- The actual linear coefficient satisfies its budget. -/ | |
| 53 | + linear_le : ∀ t, ((D.linear.coefficient t).bound : ℝ) ≤ linear | |
| 54 | + /-- The actual quadratic coefficients satisfy their common budget. -/ | |
| 55 | + quadratic_le : ∀ t, (∑ i : Fin 3, (((D.quadratic i).coefficient t).bound : ℝ)) ≤ quadratic | |
| 56 | + | |
| 57 | +/-- The actual continuous metric multiplier path determined by the concrete budget. -/ | |
| 58 | +def StabilityBudget.operatorPath {q : ℕ} {T : ℝ} {hT : 0 ≤ T} | |
| 59 | + {D : CorrectionData period q (Icc (0 : ℝ) T)} (B : StabilityBudget period hT D) : | |
| 60 | + C(Icc (0 : ℝ) T,LiftL2 period →L[ℝ] LiftL2 period) := ⟨fun t => (B.metric t).operator,B.continuous⟩ | |
| 61 | + | |
| 62 | +/-- The fixed squared-energy growth coefficient obtained from the actual background path and a solution norm bound. -/ | |
| 63 | +def StabilityBudget.growth {q : ℕ} {T : ℝ} {hT : 0 ≤ T} | |
| 64 | + {D : CorrectionData period q (Icc (0 : ℝ) T)} (B : StabilityBudget period hT D) (R : ℝ) : ℝ := | |
| 65 | + growthConstant B.c B.bound B.first B.time (velocityBound period q ‖D.approximation‖ R) | |
| 66 | + (lowerConstant period q B.linear B.quadratic ‖D.approximation‖ R) | |
| 67 | + | |
| 68 | +/-- The explicit finite-interval Lipschitz coefficient for viscosity in continuous L². -/ | |
| 69 | +def StabilityBudget.comparisonConstant {q : ℕ} {T : ℝ} {hT : 0 ≤ T} | |
| 70 | + {D : CorrectionData period q (Icc (0 : ℝ) T)} (B : StabilityBudget period hT D) (R : ℝ) : ℝ := | |
| 71 | + Real.sqrt (defectConstant B.bound R*T*Real.exp (B.growth period R*T))/B.c | |
| 72 | + | |
| 73 | +/-- All budget signs follow from the actual norm bounds on the nonempty time interval. -/ | |
| 74 | +theorem StabilityBudget.nonneg {q : ℕ} {T : ℝ} {hT : 0 ≤ T} | |
| 75 | + {D : CorrectionData period q (Icc (0 : ℝ) T)} (B : StabilityBudget period hT D) : | |
| 76 | + 0 ≤ B.bound ∧ 0 ≤ B.first ∧ 0 ≤ B.time ∧ 0 ≤ B.linear ∧ 0 ≤ B.quadratic := by | |
| 77 | + let t : Icc (0 : ℝ) T := ⟨0,le_rfl,hT⟩ | |
| 78 | + exact ⟨(norm_nonneg _).trans (B.bound_le t), | |
| 79 | + (B.metric t).firstBound.coe_nonneg.trans (B.first_le t), | |
| 80 | + (norm_nonneg _).trans (B.time_le t), | |
| 81 | + (D.linear.coefficient t).bound.coe_nonneg.trans (B.linear_le t), | |
| 82 | + (Finset.sum_nonneg (fun i _ => ((D.quadratic i).coefficient t).bound.coe_nonneg)).trans (B.quadratic_le t)⟩ | |
| 83 | + | |
| 84 | +/-- The actual fixed growth coefficient is nonnegative for every nonnegative solution bound. -/ | |
| 85 | +theorem StabilityBudget.growth_nonneg {q : ℕ} {T : ℝ} {hT : 0 ≤ T} | |
| 86 | + {D : CorrectionData period q (Icc (0 : ℝ) T)} (B : StabilityBudget period hT D) (R : ℝ) (hR : 0 ≤ R) : | |
| 87 | + 0 ≤ B.growth period R := by | |
| 88 | + obtain ⟨hb,hf,ht,hl,hq⟩ := B.nonneg period | |
| 89 | + exact growthConstant_nonneg B.c B.bound B.first B.time _ _ hb hf ht | |
| 90 | + (velocityBound_nonneg period q ‖D.approximation‖ R (norm_nonneg D.approximation) hR) | |
| 91 | + (lowerConstant_nonneg period q B.linear B.quadratic ‖D.approximation‖ R hl hq (norm_nonneg D.approximation) hR) | |
| 92 | + | |
| 93 | +/-- The explicit comparison coefficient is nonnegative. -/ | |
| 94 | +theorem StabilityBudget.comparisonConstant_nonneg {q : ℕ} {T : ℝ} {hT : 0 ≤ T} | |
| 95 | + {D : CorrectionData period q (Icc (0 : ℝ) T)} (B : StabilityBudget period hT D) (R : ℝ) : | |
| 96 | + 0 ≤ B.comparisonConstant period R := div_nonneg (Real.sqrt_nonneg _) B.c_pos.le | |
| 97 | + | |
| 98 | +end EulerCorrectionStabilityBudget | |
+73 −0 Euler/CorrectionStabilityConstants.lean added View file
| @@ -0,0 +1,73 @@ | ||
| 1 | +import Euler.CorrectionDifference | |
| 2 | + | |
| 3 | +/-! Fixed, actual coefficient budgets for L² viscosity stability. -/ | |
| 4 | + | |
| 5 | +noncomputable section | |
| 6 | + | |
| 7 | +namespace EulerCorrectionStabilityConstants | |
| 8 | + | |
| 9 | +open MeasureTheory EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCorrectionOperators | |
| 10 | + EulerCorrectionDifference EulerSobolevL2Product | |
| 11 | +open scoped Topology | |
| 12 | + | |
| 13 | +/-- The fixed L² Lipschitz coefficient of all non-top-transport difference terms. -/ | |
| 14 | +def lowerConstant (period : ℝ) [Fact (0 < period)] (q : ℕ) (A0 A2 Z R : ℝ) : ℝ := | |
| 15 | + A0+(4+2*A2)*sobolevEmbeddingConstant period q*(Z+R) | |
| 16 | + | |
| 17 | +/-- A fixed pointwise bound for the actual background-plus-error advecting velocity. -/ | |
| 18 | +def velocityBound (period : ℝ) [Fact (0 < period)] (q : ℕ) (Z R : ℝ) : ℝ := | |
| 19 | + sobolevEmbeddingConstant period q*(Z+R) | |
| 20 | + | |
| 21 | +/-- The squared-metric growth coefficient after the genuine transport and heat cancellations. -/ | |
| 22 | +def growthConstant (c Kb Kx Kt V L : ℝ) : ℝ := | |
| 23 | + (Kt+2*Kx*V+4*Kx^2/c^2+2*Kb*L+1)/c^2 | |
| 24 | + | |
| 25 | +/-- The fixed coefficient of the squared viscosity difference. -/ | |
| 26 | +def defectConstant (Kb R : ℝ) : ℝ := (Kb*(4*R))^2 | |
| 27 | + | |
| 28 | +variable (period : ℝ) [Fact (0 < period)] | |
| 29 | + | |
| 30 | +/-- Nonnegative actual coefficient and norm budgets give a nonnegative lower-order Lipschitz constant. -/ | |
| 31 | +theorem lowerConstant_nonneg (q : ℕ) (A0 A2 Z R : ℝ) | |
| 32 | + (hA0 : 0 ≤ A0) (hA2 : 0 ≤ A2) (hZ : 0 ≤ Z) (hR : 0 ≤ R) : | |
| 33 | + 0 ≤ lowerConstant period q A0 A2 Z R := by | |
| 34 | + unfold lowerConstant | |
| 35 | + have := sobolevEmbeddingConstant_nonneg period q | |
| 36 | + positivity | |
| 37 | + | |
| 38 | +/-- The actual pointwise velocity budget is nonnegative. -/ | |
| 39 | +theorem velocityBound_nonneg (q : ℕ) (Z R : ℝ) (hZ : 0 ≤ Z) (hR : 0 ≤ R) : | |
| 40 | + 0 ≤ velocityBound period q Z R := | |
| 41 | + mul_nonneg (sobolevEmbeddingConstant_nonneg period q) (add_nonneg hZ hR) | |
| 42 | + | |
| 43 | +/-- Actual higher Sobolev and coefficient bounds give the lower-order difference estimate in L². -/ | |
| 44 | +theorem differenceRemainder_uniform {q : ℕ} {T : Type*} [TopologicalSpace T] | |
| 45 | + (D : CorrectionData period q T) (hq : 6 ≤ q) (t : T) | |
| 46 | + (u v : SobolevSpace period (q+1)) (A0 A2 Z R : ℝ) | |
| 47 | + (hA0 : ((D.linear.coefficient t).bound : ℝ) ≤ A0) | |
| 48 | + (hA2 : (∑ i : Fin 3, (((D.quadratic i).coefficient t).bound : ℝ)) ≤ A2) | |
| 49 | + (hZ : ‖D.approximation t‖ ≤ Z) (hu : ‖u‖ ≤ R) (hv : ‖v‖ ≤ R) : | |
| 50 | + ‖value period (differenceRemainder period D hq t u v)‖ ≤ | |
| 51 | + lowerConstant period q A0 A2 Z R*‖value period (u-v)‖ := by | |
| 52 | + have hz0 := (norm_nonneg (D.approximation t)).trans hZ | |
| 53 | + have hr0 := (norm_nonneg u).trans hu | |
| 54 | + have ha20 : 0 ≤ A2 := (Finset.sum_nonneg (fun i _ => ((D.quadratic i).coefficient t).bound.coe_nonneg)).trans hA2 | |
| 55 | + have hzu : ‖D.approximation t+u‖ ≤ Z+R := (norm_add_le _ _).trans (add_le_add hZ hu) | |
| 56 | + have hzv : ‖D.approximation t+v‖ ≤ Z+R := (norm_add_le _ _).trans (add_le_add hZ hv) | |
| 57 | + apply (differenceRemainder_norm period D hq t u v).trans | |
| 58 | + apply mul_le_mul_of_nonneg_right _ (norm_nonneg _) | |
| 59 | + have h1 := mul_le_mul_of_nonneg_left hzv (mul_nonneg (by norm_num : (0 : ℝ) ≤ 4) | |
| 60 | + (sobolevEmbeddingConstant_nonneg period q)) | |
| 61 | + have h2 := mul_le_mul (mul_le_mul_of_nonneg_right hA2 (sobolevEmbeddingConstant_nonneg period q)) | |
| 62 | + (add_le_add hzu hzv) (add_nonneg (norm_nonneg _) (norm_nonneg _)) | |
| 63 | + (mul_nonneg ha20 (sobolevEmbeddingConstant_nonneg period q)) | |
| 64 | + unfold lowerConstant | |
| 65 | + nlinarith | |
| 66 | + | |
| 67 | +omit [Fact (0 < period)] in | |
| 68 | +/-- The actual fixed growth coefficient is nonnegative. -/ | |
| 69 | +theorem growthConstant_nonneg (c Kb Kx Kt V L : ℝ) | |
| 70 | + (hKb : 0 ≤ Kb) (hKx : 0 ≤ Kx) (hKt : 0 ≤ Kt) (hV : 0 ≤ V) (hL : 0 ≤ L) : | |
| 71 | + 0 ≤ growthConstant c Kb Kx Kt V L := by unfold growthConstant; positivity | |
| 72 | + | |
| 73 | +end EulerCorrectionStabilityConstants | |
+119 −0 Euler/CorrectionTime.lean added View file
| @@ -0,0 +1,119 @@ | ||
| 1 | +import Euler.CorrectionOperators | |
| 2 | +import Euler.SobolevPressureTime | |
| 3 | +import Euler.QuadraticHeatLocal | |
| 4 | + | |
| 5 | +/-! The actual time-dependent coefficients and nonlinear source of the lifted Euler correction. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +namespace EulerCorrectionOperators | |
| 10 | + | |
| 11 | +open MeasureTheory InnerProductSpace Set EulerLiftedGradientSpace EulerPressureSpatialRegularity | |
| 12 | + EulerSpatialSobolevInverse EulerCylinderSobolev EulerCylinderSobolevSpace | |
| 13 | + EulerSobolevCoefficientPressure EulerQuadraticSource | |
| 14 | +open scoped Topology | |
| 15 | + | |
| 16 | +variable {X Y T : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] | |
| 17 | + [NormedAddCommGroup Y] [NormedSpace ℝ Y] [TopologicalSpace T] | |
| 18 | + | |
| 19 | +/-- Continuous coefficient multipliers act continuously on any fixed genuine bilinear product. -/ | |
| 20 | +theorem postcompose_continuous (A : T → Y →L[ℝ] Y) (hA : Continuous A) | |
| 21 | + (B : X →L[ℝ] X →L[ℝ] Y) : Continuous (fun t => postcompose (A t) B) := | |
| 22 | + ((ContinuousLinearMap.compL ℝ X Y Y).continuous.comp hA).clm_comp_const B | |
| 23 | + | |
| 24 | +variable (period : ℝ) [Fact (0 < period)] | |
| 25 | + | |
| 26 | +local instance timeSobolevGroup (q : ℕ) : NormedAddCommGroup (SobolevSpace period q) := inferInstance | |
| 27 | +local instance timeSobolevRealSpace (q : ℕ) : NormedSpace ℝ (SobolevSpace period q) := inferInstance | |
| 28 | +local instance timeSobolevBilinearGroup (q : ℕ) : SeminormedAddCommGroup | |
| 29 | + (SobolevSpace period (q+1) →L[ℝ] SobolevSpace period (q+1) →L[ℝ] SobolevSpace period q) := inferInstance | |
| 30 | + | |
| 31 | +/-- Time continuity of the actual order-zero quadratic terms. -/ | |
| 32 | +theorem algebraicBilinear_continuous {q : ℕ} (hq : 6 ≤ q) | |
| 33 | + (C : T → Fin 3 → SobolevSpace period q →L[ℝ] SobolevSpace period q) | |
| 34 | + (hC : ∀ i, Continuous (fun t => C t i)) : Continuous (fun t => algebraicBilinear period hq (C t)) := by | |
| 35 | + apply continuous_finsetSum | |
| 36 | + intro i _ | |
| 37 | + exact postcompose_continuous (fun t => C t i) (hC i) (coordinateProduct period hq i) | |
| 38 | + | |
| 39 | +/-- Time continuity of the literal transport-plus-algebraic Euler nonlinearity. -/ | |
| 40 | +theorem eulerBilinear_continuous {q : ℕ} (hq : 6 ≤ q) | |
| 41 | + (L : Fin 4 → Vector3 →L[ℝ] ℝ) (hL : ∀ i, ‖L i‖ ≤ 1) | |
| 42 | + (C : T → Fin 3 → SobolevSpace period q →L[ℝ] SobolevSpace period q) | |
| 43 | + (hC : ∀ i, Continuous (fun t => C t i)) : Continuous (fun t => eulerBilinear period hq L hL (C t)) := by | |
| 44 | + have ht : Continuous (fun _ : T => EulerSobolevTransport.transportBilinear period hq L hL) := continuous_const | |
| 45 | + exact ht.add (algebraicBilinear_continuous period hq C hC) | |
| 46 | + | |
| 47 | +/-- The actual Sobolev pressure projection as a continuous coefficient path. -/ | |
| 48 | +def pressureProjectionPath {q : ℕ} | |
| 49 | + (G : T → SmoothCoefficient period) (K : ∀ t, CoefficientJet period standardDirection q (G t)) | |
| 50 | + (κ : ℝ) (m : Vector3) (c : ℝ) (hc : 0 < c) | |
| 51 | + (hpos : ∀ t x v, c*‖v‖^2 ≤ ⟪(G t).coefficient x v, v⟫_ℝ) | |
| 52 | + (hG : Continuous (fun t => coefficientSobolevOperator period (K t))) : | |
| 53 | + C(T, SobolevSpace period q →L[ℝ] SobolevSpace period q) where | |
| 54 | + toFun t := projectedSourceOperator period (K t) κ m c hc (hpos t) | |
| 55 | + continuous_toFun := continuous_iff_continuousAt.mpr fun t => | |
| 56 | + projectedSource_continuousAt period G K κ m c hc hpos t hG.continuousAt | |
| 57 | + | |
| 58 | +/-- Concrete coefficient data for equation (17): actual pressure, actual transport, and actual order-zero coefficient multipliers. -/ | |
| 59 | +def correctionCoefficients {q : ℕ} (hq : 6 ≤ q) | |
| 60 | + (G : T → SmoothCoefficient period) (K : ∀ t, CoefficientJet period standardDirection q (G t)) | |
| 61 | + (κ : ℝ) (m : Vector3) (c : ℝ) (hc : 0 < c) | |
| 62 | + (hpos : ∀ t x v, c*‖v‖^2 ≤ ⟪(G t).coefficient x v, v⟫_ℝ) | |
| 63 | + (hG : Continuous (fun t => coefficientSobolevOperator period (K t))) | |
| 64 | + (L : Fin 4 → Vector3 →L[ℝ] ℝ) (hL : ∀ i, ‖L i‖ ≤ 1) | |
| 65 | + (C₀ : C(T, SobolevSpace period q →L[ℝ] SobolevSpace period q)) | |
| 66 | + (C : Fin 3 → C(T, SobolevSpace period q →L[ℝ] SobolevSpace period q)) | |
| 67 | + (z : C(T, SobolevSpace period (q+1))) (r : C(T, SobolevSpace period q)) : | |
| 68 | + Coefficients T (SobolevSpace period (q+1)) (SobolevSpace period q) where | |
| 69 | + projection := pressureProjectionPath period G K κ m c hc hpos hG | |
| 70 | + forcing := r | |
| 71 | + linear := ⟨fun t => linearize (eulerBilinear period hq L hL (fun i => C i t)) | |
| 72 | + ((C₀ t).comp (truncateOperator period q)) (z t), | |
| 73 | + linearize_continuous _ _ _ (eulerBilinear_continuous period hq L hL _ (fun i => (C i).continuous)) | |
| 74 | + (C₀.continuous.clm_comp_const (truncateOperator period q)) z.continuous⟩ | |
| 75 | + quadratic := ⟨fun t => eulerBilinear period hq L hL (fun i => C i t), | |
| 76 | + eulerBilinear_continuous period hq L hL _ (fun i => (C i).continuous)⟩ | |
| 77 | + | |
| 78 | +/-- The correction is exactly pressure applied to the residual and the nonlinear increment about z. -/ | |
| 79 | +theorem correction_source_identity {q : ℕ} (hq : 6 ≤ q) | |
| 80 | + (G : T → SmoothCoefficient period) (K : ∀ t, CoefficientJet period standardDirection q (G t)) | |
| 81 | + (κ : ℝ) (m : Vector3) (c : ℝ) (hc : 0 < c) | |
| 82 | + (hpos : ∀ t x v, c*‖v‖^2 ≤ ⟪(G t).coefficient x v, v⟫_ℝ) | |
| 83 | + (hG : Continuous (fun t => coefficientSobolevOperator period (K t))) | |
| 84 | + (L : Fin 4 → Vector3 →L[ℝ] ℝ) (hL : ∀ i, ‖L i‖ ≤ 1) | |
| 85 | + (C₀ : C(T, SobolevSpace period q →L[ℝ] SobolevSpace period q)) | |
| 86 | + (C : Fin 3 → C(T, SobolevSpace period q →L[ℝ] SobolevSpace period q)) | |
| 87 | + (z : C(T, SobolevSpace period (q+1))) (r : C(T, SobolevSpace period q)) | |
| 88 | + (t : T) (e : SobolevSpace period (q+1)) : | |
| 89 | + (correctionCoefficients period hq G K κ m c hc hpos hG L hL C₀ C z r).apply t e = | |
| 90 | + -(projectedSourceOperator period (K t) κ m c hc (hpos t) | |
| 91 | + (r t + C₀ t (truncateOperator period q e) + | |
| 92 | + eulerBilinear period hq L hL (fun i => C i t) (z t+e) (z t+e) - | |
| 93 | + eulerBilinear period hq L hL (fun i => C i t) (z t) (z t))) := by | |
| 94 | + change -(projectedSourceOperator period (K t) κ m c hc (hpos t) | |
| 95 | + (r t + linearize (eulerBilinear period hq L hL (fun i => C i t)) | |
| 96 | + ((C₀ t).comp (truncateOperator period q)) (z t) e + | |
| 97 | + eulerBilinear period hq L hL (fun i => C i t) e e)) = _ | |
| 98 | + congr 2 | |
| 99 | + simp only [linearize_apply, map_add, add_apply, ContinuousLinearMap.comp_apply] | |
| 100 | + abel | |
| 101 | + | |
| 102 | +/-- The actual nonlinear correction source is divergence-free for every input. -/ | |
| 103 | +theorem correction_source_gradient_zero {q : ℕ} (hq : 6 ≤ q) | |
| 104 | + (G : T → SmoothCoefficient period) (K : ∀ t, CoefficientJet period standardDirection q (G t)) | |
| 105 | + (κ : ℝ) (m : Vector3) (c : ℝ) (hc : 0 < c) | |
| 106 | + (hpos : ∀ t x v, c*‖v‖^2 ≤ ⟪(G t).coefficient x v, v⟫_ℝ) | |
| 107 | + (hG : Continuous (fun t => coefficientSobolevOperator period (K t))) | |
| 108 | + (L : Fin 4 → Vector3 →L[ℝ] ℝ) (hL : ∀ i, ‖L i‖ ≤ 1) | |
| 109 | + (C₀ : C(T, SobolevSpace period q →L[ℝ] SobolevSpace period q)) | |
| 110 | + (C : Fin 3 → C(T, SobolevSpace period q →L[ℝ] SobolevSpace period q)) | |
| 111 | + (z : C(T, SobolevSpace period (q+1))) (r : C(T, SobolevSpace period q)) | |
| 112 | + (t : T) (e : SobolevSpace period (q+1)) : | |
| 113 | + gradientProjection period κ m (value period | |
| 114 | + ((correctionCoefficients period hq G K κ m c hc hpos hG L hL C₀ C z r).apply t e)) = 0 := by | |
| 115 | + rw [correction_source_identity] | |
| 116 | + change gradientProjection period κ m (-value period (projectedSourceOperator period (K t) κ m c hc (hpos t) _)) = 0 | |
| 117 | + rw [map_neg, projectedSource_gradient_zero, neg_zero] | |
| 118 | + | |
| 119 | +end EulerCorrectionOperators | |
+55 −0 Euler/CorrectionTimeRestriction.lean added View file
| @@ -0,0 +1,55 @@ | ||
| 1 | +import Euler.EulerCorrectionLocal | |
| 2 | + | |
| 3 | +/-! Actual correction coefficient data restricted along continuous time maps. -/ | |
| 4 | + | |
| 5 | +noncomputable section | |
| 6 | + | |
| 7 | +namespace EulerCorrectionOperators | |
| 8 | + | |
| 9 | +open Set EulerCylinderSobolevSpace EulerSpatialSobolevInverse EulerSobolevCoefficientPressure | |
| 10 | + EulerQuadraticSource | |
| 11 | +open scoped Topology | |
| 12 | + | |
| 13 | +variable (period : ℝ) [Fact (0 < period)] | |
| 14 | + | |
| 15 | +/-- Restrict the actual spatial coefficient and its jet along a continuous parameter map. -/ | |
| 16 | +def CoefficientPath.comp {q : ℕ} {T U : Type*} [TopologicalSpace T] [TopologicalSpace U] | |
| 17 | + (A : CoefficientPath period q T) (f : C(U,T)) : CoefficientPath period q U where | |
| 18 | + coefficient t := A.coefficient (f t) | |
| 19 | + jet t := A.jet (f t) | |
| 20 | + continuous := A.continuous.comp f.continuous | |
| 21 | + | |
| 22 | +/-- Restrict every actual coefficient, background field, and residual along the same time map. -/ | |
| 23 | +def CorrectionData.comp {q : ℕ} {T U : Type*} [TopologicalSpace T] [TopologicalSpace U] | |
| 24 | + (D : CorrectionData period q T) (f : C(U,T)) : CorrectionData period q U where | |
| 25 | + κ := D.κ | |
| 26 | + direction := D.direction | |
| 27 | + scale_bound := D.scale_bound | |
| 28 | + direction_bound := D.direction_bound | |
| 29 | + metric := D.metric.comp period f | |
| 30 | + coercivity := D.coercivity | |
| 31 | + coercivity_pos := D.coercivity_pos | |
| 32 | + metric_pos t := D.metric_pos (f t) | |
| 33 | + linear := D.linear.comp period f | |
| 34 | + quadratic i := (D.quadratic i).comp period f | |
| 35 | + approximation := D.approximation.comp f | |
| 36 | + residual := D.residual.comp f | |
| 37 | + | |
| 38 | +/-- The restricted correction source is the original actual source at the restricted time. -/ | |
| 39 | +theorem CorrectionData.comp_source {q : ℕ} {T U : Type*} [TopologicalSpace T] [TopologicalSpace U] | |
| 40 | + (D : CorrectionData period q T) (f : C(U,T)) (hq : 6 ≤ q) | |
| 41 | + (t : U) (u : SobolevSpace period (q+1)) : | |
| 42 | + ((D.comp period f).coefficients period hq).apply t u = | |
| 43 | + (D.coefficients period hq).apply (f t) u := rfl | |
| 44 | + | |
| 45 | +/-- Restricting the concrete data gives precisely the same nonlinear mild equation on a shorter interval. -/ | |
| 46 | +theorem CorrectionData.comp_quadraticDuhamel {q : ℕ} (hq : 6 ≤ q) | |
| 47 | + (ν : ℝ) (hν : 0 < ν) {T S : ℝ} (hT : 0 ≤ T) (hTS : T ≤ S) | |
| 48 | + (D : CorrectionData period q (Icc (0 : ℝ) S)) | |
| 49 | + (u₀ : SobolevSpace period (q+1)) (u : C(Icc (0 : ℝ) T, SobolevSpace period (q+1))) | |
| 50 | + (t : Icc (0 : ℝ) T) : | |
| 51 | + quadraticDuhamel period ν hν hT le_rfl | |
| 52 | + ((D.comp period (timeInclusion hTS)).coefficients period hq) u₀ u t = | |
| 53 | + quadraticDuhamel period ν hν hT hTS (D.coefficients period hq) u₀ u t := rfl | |
| 54 | + | |
| 55 | +end EulerCorrectionOperators | |
+101 −0 Euler/CorrectionViscosityStability.lean added View file
| @@ -0,0 +1,101 @@ | ||
| 1 | +import Euler.CorrectionStabilityBudget | |
| 2 | + | |
| 3 | +/-! Genuine finite-interval Lipschitz comparison of actual correction solutions at different viscosities. -/ | |
| 4 | + | |
| 5 | +noncomputable section | |
| 6 | + | |
| 7 | +namespace EulerCorrectionViscosityStability | |
| 8 | + | |
| 9 | +open MeasureTheory Set InnerProductSpace EulerLiftedGradientSpace EulerLiftedPressure | |
| 10 | + EulerCylinderSobolevSpace EulerCorrectionOperators EulerQuadraticSource EulerVolterraConvolution | |
| 11 | + EulerSobolevHeat EulerCorrectionDifferencePDE EulerCorrectionDifferenceMetric EulerCorrectionStabilityConstants | |
| 12 | + EulerCorrectionStabilityBudget EulerSquaredMetricStability EulerMetricEnergyEvolution | |
| 13 | +open scoped Topology | |
| 14 | + | |
| 15 | +variable (period : ℝ) [Fact (0 < period)] | |
| 16 | + | |
| 17 | +/-- The existing Sobolev normed-group instance for the actual viscosity comparison. -/ | |
| 18 | +local instance comparisonSobolevGroup (q : ℕ) : NormedAddCommGroup (SobolevSpace period q) := inferInstance | |
| 19 | +/-- The existing real Sobolev module instance for the actual viscosity comparison. -/ | |
| 20 | +local instance comparisonSobolevSpace (q : ℕ) : NormedSpace ℝ (SobolevSpace period q) := inferInstance | |
| 21 | + | |
| 22 | +/-- Two actual zero-initial correction mild solutions obey a pointwise L² Lipschitz estimate in viscosity. | |
| 23 | +The differential energy inequality is derived from their literal equations and the actual spatial cancellations. -/ | |
| 24 | +theorem correction_viscosity_pointwise {q : ℕ} (hq : 6 ≤ q) (T : ℝ) (hT : 0 ≤ T) | |
| 25 | + (D : CorrectionData period q (Icc (0 : ℝ) T)) (B : StabilityBudget period hT D) | |
| 26 | + (ν μ : ℝ) (hν : 0 < ν) (hμ : 0 < μ) (hν1 : ν ≤ 1) | |
| 27 | + (u v : C(Icc (0 : ℝ) T,SobolevSpace period (q+1))) (R : ℝ) | |
| 28 | + (huR : ‖u‖ ≤ R) (hvR : ‖v‖ ≤ R) | |
| 29 | + (hu : ∀ t, u t = quadraticDuhamel period ν hν hT le_rfl (D.coefficients period hq) 0 u t) | |
| 30 | + (hv : ∀ t, v t = quadraticDuhamel period μ hμ hT le_rfl (D.coefficients period hq) 0 v t) | |
| 31 | + (hz : ∀ t, value period (D.approximation t) ∈ divergenceFreeSpace period D.κ D.direction) | |
| 32 | + (hud : ∀ t, value period (u t) ∈ divergenceFreeSpace period D.κ D.direction) | |
| 33 | + (hvd : ∀ t, value period (v t) ∈ divergenceFreeSpace period D.κ D.direction) : | |
| 34 | + ∀ t, ‖value period (u t)-value period (v t)‖ ≤ B.comparisonConstant period R*|ν-μ| := by | |
| 35 | + let K := fun s : ℝ => (B.metric (projIcc 0 T hT s)).operator | |
| 36 | + let e := fun s : ℝ => value period (extendPath T hT u s)-value period (extendPath T hT v s) | |
| 37 | + let E := fun s : ℝ => ⟪K s (e s),e s⟫_ℝ | |
| 38 | + have hR : 0 ≤ R := (norm_nonneg u).trans huR | |
| 39 | + have hKc : Continuous K := B.continuous.comp continuous_projIcc | |
| 40 | + have hec : Continuous e := ((valueOperator period (q+1)).continuous.comp (extendPath_continuous T hT u)).sub | |
| 41 | + ((valueOperator period (q+1)).continuous.comp (extendPath_continuous T hT v)) | |
| 42 | + have hEc : Continuous E := (hKc.clm_apply hec).inner (𝕜 := ℝ) hec | |
| 43 | + have hKv (t : Icc (0 : ℝ) T) : K t.val=(B.metric t).operator := by | |
| 44 | + simp only [K,projIcc_of_mem hT t.property] | |
| 45 | + have hev (t : Icc (0 : ℝ) T) : e t.val=value period (u t-v t) := by | |
| 46 | + change value period (u (projIcc 0 T hT t.val))-value period (v (projIcc 0 T hT t.val))=_ | |
| 47 | + rw [projIcc_of_mem hT t.property] | |
| 48 | + rfl | |
| 49 | + have hzero : E 0 ≤ 0 := by | |
| 50 | + have hu0 := hu ⟨0,le_rfl,hT⟩ | |
| 51 | + have hv0 := hv ⟨0,le_rfl,hT⟩ | |
| 52 | + simp only [quadraticDuhamel,mul_zero,Real.toNNReal_zero,heatOperator_zero, | |
| 53 | + intervalIntegral.integral_same,add_zero] at hu0 hv0 | |
| 54 | + have he0 : e 0=0 := by rw [hev ⟨0,le_rfl,hT⟩,hu0,hv0,sub_self]; rfl | |
| 55 | + simp only [E,he0,map_zero,inner_zero_left,le_refl] | |
| 56 | + have hder (t : ℝ) (ht : t ∈ Ioo 0 T) : HasDerivAt E (deriv E t) t := by | |
| 57 | + let τ : Icc (0 : ℝ) T := ⟨t,ht.1.le,ht.2.le⟩ | |
| 58 | + have he' := correction_difference_hasDerivAt period hq ν μ hν hμ T hT D u v hu hv t ht | |
| 59 | + have hs : ∀ a b, ⟪K t a,b⟫_ℝ=⟪a,K t b⟫_ℝ := by | |
| 60 | + rw [hKv τ] | |
| 61 | + exact coefficientOperator_inner_swap (B.metric τ).coefficient (B.metric τ).measurable | |
| 62 | + (B.metric τ).bound (B.metric τ).norm_bound (B.symmetric τ) | |
| 63 | + have hd := metric_energy_hasDerivAt K e t (extendPath T hT B.derivative t) | |
| 64 | + (differenceRhs period D hq ν μ τ (u τ) (v τ)) (B.hasDeriv t ht) he' hs | |
| 65 | + exact hd.differentiableAt.hasDerivAt | |
| 66 | + have hineq (t : ℝ) (ht : t ∈ Ioo 0 T) : | |
| 67 | + deriv E t ≤ B.growth period R*E t+defectConstant B.bound R*|ν-μ|^2 := by | |
| 68 | + let τ : Icc (0 : ℝ) T := ⟨t,ht.1.le,ht.2.le⟩ | |
| 69 | + have hd := correction_difference_hasDerivAt period hq ν μ hν hμ T hT D u v hu hv t ht | |
| 70 | + have htime : ‖extendPath T hT B.derivative t‖ ≤ B.time := by | |
| 71 | + change ‖B.derivative (projIcc 0 T hT t)‖ ≤ _ | |
| 72 | + exact B.time_le _ | |
| 73 | + exact difference_metric_deriv_bound period D hq τ (u τ) (v τ) (B.metric τ) K e t ν μ | |
| 74 | + B.c B.bound B.first B.time B.linear B.quadratic ‖D.approximation‖ R (extendPath T hT B.derivative t) | |
| 75 | + B.c_pos hν.le hν1 (hKv τ) (hev τ) (B.hasDeriv t ht) hd (B.bound_le τ) (B.first_le τ) htime | |
| 76 | + (B.linear_le τ) (B.quadratic_le τ) (D.approximation.norm_coe_le_norm τ) | |
| 77 | + ((u.norm_coe_le_norm τ).trans huR) ((v.norm_coe_le_norm τ).trans hvR) | |
| 78 | + (B.symmetric τ) (B.coercive τ) (B.inverse τ) (hz τ) (hud τ) (hvd τ) | |
| 79 | + have hbound := linear_growth_bound E (deriv E) (B.growth period R) | |
| 80 | + (defectConstant B.bound R*|ν-μ|^2) T (B.growth_nonneg period R hR) | |
| 81 | + (mul_nonneg (sq_nonneg _) (sq_nonneg _)) hT hEc.continuousOn hzero hder hineq | |
| 82 | + intro t | |
| 83 | + have hc : B.c^2*‖value period (u t-v t)‖^2 ≤ E t.val := by | |
| 84 | + change _ ≤ ⟪K t.val (e t.val),e t.val⟫_ℝ | |
| 85 | + rw [hKv t,hev t] | |
| 86 | + exact coefficientOperator_coercive (B.metric t).coefficient (B.metric t).measurable | |
| 87 | + (B.metric t).bound (B.metric t).norm_bound (B.c^2) (B.coercive t) _ | |
| 88 | + let P := defectConstant B.bound R*T*Real.exp (B.growth period R*T) | |
| 89 | + have hP : 0 ≤ P := mul_nonneg (mul_nonneg (sq_nonneg _) hT) (Real.exp_pos _).le | |
| 90 | + have hsqrt := Real.sq_sqrt hP | |
| 91 | + have heB : E t.val ≤ P*|ν-μ|^2 := (hbound t.val t.property).trans_eq (by dsimp [P]; ring) | |
| 92 | + have hn : B.c*‖value period (u t-v t)‖ ≤ Real.sqrt P*|ν-μ| := by | |
| 93 | + have hleft := mul_nonneg B.c_pos.le (norm_nonneg (value period (u t-v t))) | |
| 94 | + have hright := mul_nonneg (Real.sqrt_nonneg P) (abs_nonneg (ν-μ)) | |
| 95 | + nlinarith | |
| 96 | + change ‖value period (u t-v t)‖ ≤ B.comparisonConstant period R*|ν-μ| | |
| 97 | + have hdiv : ‖value period (u t-v t)‖ ≤ (Real.sqrt P*|ν-μ|)/B.c := | |
| 98 | + (le_div_iff₀ B.c_pos).mpr (by nlinarith only [hn]) | |
| 99 | + exact hdiv.trans_eq (by unfold StabilityBudget.comparisonConstant; dsimp [P]; ring) | |
| 100 | + | |
| 101 | +end EulerCorrectionViscosityStability | |
+52 −0 Euler/CurlMatrixSymmetry.lean added View file
| @@ -0,0 +1,52 @@ | ||
| 1 | +import Euler.MeanBoundaryOperator | |
| 2 | +import Mathlib.Analysis.InnerProductSpace.Symmetric | |
| 3 | + | |
| 4 | +noncomputable section | |
| 5 | + | |
| 6 | +open EulerSmoothLimit | |
| 7 | +open scoped RealInnerProductSpace | |
| 8 | + | |
| 9 | +namespace EulerMeanBoundary | |
| 10 | + | |
| 11 | +/-- The curl vanishes precisely when the real derivative matrix is symmetric. -/ | |
| 12 | +theorem curlMatrix_eq_zero_iff_isSymmetric (A : Space →L[ℝ] Space) : | |
| 13 | + curlMatrix A = 0 ↔ A.IsSymmetric := by | |
| 14 | + constructor | |
| 15 | + · intro h | |
| 16 | + have hc (i : Fin 3) : | |
| 17 | + (A (EuclideanSpace.single (i+1) 1)) (i+2) - | |
| 18 | + (A (EuclideanSpace.single (i+2) 1)) (i+1) = 0 := by | |
| 19 | + exact congrArg (fun v : Space => v i) h | |
| 20 | + have h0 := hc 0 | |
| 21 | + have h1 := hc 1 | |
| 22 | + have h2 := hc 2 | |
| 23 | + change (A (EuclideanSpace.single 1 1)) 2 - (A (EuclideanSpace.single 2 1)) 1 = 0 at h0 | |
| 24 | + change (A (EuclideanSpace.single 2 1)) 0 - (A (EuclideanSpace.single 0 1)) 2 = 0 at h1 | |
| 25 | + change (A (EuclideanSpace.single 0 1)) 1 - (A (EuclideanSpace.single 1 1)) 0 = 0 at h2 | |
| 26 | + have heq (i j : Fin 3) : | |
| 27 | + (A (EuclideanSpace.single i 1)) j = (A (EuclideanSpace.single j 1)) i := by | |
| 28 | + fin_cases i <;> fin_cases j <;> | |
| 29 | + first | rfl | exact sub_eq_zero.mp h0 | exact sub_eq_zero.mp h1 | | |
| 30 | + exact sub_eq_zero.mp h2 | exact (sub_eq_zero.mp h0).symm | | |
| 31 | + exact (sub_eq_zero.mp h1).symm | exact (sub_eq_zero.mp h2).symm | |
| 32 | + intro x y | |
| 33 | + have hx := (EuclideanSpace.basisFun (Fin 3) ℝ).sum_repr x | |
| 34 | + have hy := (EuclideanSpace.basisFun (Fin 3) ℝ).sum_repr y | |
| 35 | + rw [← hx, ← hy] | |
| 36 | + simp only [map_sum, map_smul, sum_inner, inner_sum, real_inner_smul_left, | |
| 37 | + inner_smul_right, EuclideanSpace.basisFun_apply, EuclideanSpace.inner_single_left, | |
| 38 | + EuclideanSpace.inner_single_right, map_one, one_mul, PiLp.smul_apply, smul_eq_mul, starRingEnd_apply, star_trivial] | |
| 39 | + apply Finset.sum_congr rfl | |
| 40 | + intro i _ | |
| 41 | + congr 1 | |
| 42 | + apply Finset.sum_congr rfl | |
| 43 | + intro j _ | |
| 44 | + congr 1 | |
| 45 | + exact heq j i | |
| 46 | + · intro h | |
| 47 | + ext i | |
| 48 | + have hi := h (EuclideanSpace.single (i+1) 1) (EuclideanSpace.single (i+2) 1) | |
| 49 | + simpa [curlMatrix, EuclideanSpace.inner_single_left, | |
| 50 | + EuclideanSpace.inner_single_right, sub_eq_zero] using hi | |
| 51 | + | |
| 52 | +end EulerMeanBoundary | |
+20 −0 Euler/CurlSupport.lean added View file
| @@ -0,0 +1,20 @@ | ||
| 1 | +import Euler.MeanBoundaryOperator | |
| 2 | + | |
| 3 | +/-! The curl of a differentiable field has support inside the support of that | |
| 4 | +field. This elementary locality fact does not assume spatial norm bounds. -/ | |
| 5 | + | |
| 6 | +namespace EulerMeanCutoffCurl | |
| 7 | + | |
| 8 | +open EulerSmoothLimit EulerMeanBoundary | |
| 9 | + | |
| 10 | +theorem tsupport_vectorCurl_subset (f : Space → Space) (hf : Differentiable ℝ f) : | |
| 11 | + tsupport (vectorCurl f) ⊆ tsupport f := by | |
| 12 | + have hcurl : vectorCurl f = curlMatrix ∘ fderiv ℝ f := | |
| 13 | + funext (fun x => vectorCurl_eq_matrix f x (hf x)) | |
| 14 | + have hzero : curlMatrix 0 = 0 := by | |
| 15 | + ext i | |
| 16 | + simp [curlMatrix] | |
| 17 | + rw [hcurl] | |
| 18 | + exact (tsupport_comp_subset hzero (fderiv ℝ f)).trans (tsupport_fderiv_subset ℝ) | |
| 19 | + | |
| 20 | +end EulerMeanCutoffCurl | |
+190 −0 Euler/CurlTimeDerivative.lean added View file
| @@ -0,0 +1,190 @@ | ||
| 1 | +import Euler.MeanBoundaryOperator | |
| 2 | +import Mathlib.Analysis.Calculus.FDeriv.Symmetric | |
| 3 | + | |
| 4 | +/-! Local mixed-derivative commutation for the ordinary spatial curl. -/ | |
| 5 | +noncomputable section | |
| 6 | + | |
| 7 | +open Set Filter EulerSmoothLimit EulerMeanBoundary EulerMeanCutoffCurl | |
| 8 | +open scoped ContDiff Topology | |
| 9 | + | |
| 10 | +namespace Euler.ComparatorBridge | |
| 11 | + | |
| 12 | +/-- The ordinary derivative of a spatial slice is the spatial restriction of | |
| 13 | +its joint derivative. -/ | |
| 14 | +theorem fderiv_spatial_slice {u : ℝ × Space → Space} {t : ℝ} {x : Space} | |
| 15 | + (hu : DifferentiableAt ℝ u (t, x)) : | |
| 16 | + fderiv ℝ (fun y => u (t, y)) x = | |
| 17 | + (fderiv ℝ u (t, x)).comp (ContinuousLinearMap.inr ℝ ℝ Space) := by | |
| 18 | + have h := hu.hasFDerivAt.comp x | |
| 19 | + ((hasFDerivAt_const t x).prodMk (hasFDerivAt_id x)) | |
| 20 | + rw [show (fun y => u (t, y)) = u ∘ (fun y => (t, y)) from rfl, h.fderiv] | |
| 21 | + congr 1 | |
| 22 | + | |
| 23 | +/-- The ordinary derivative of a time slice is the time direction of the | |
| 24 | +joint derivative. -/ | |
| 25 | +theorem deriv_time_slice {u : ℝ × Space → Space} {t : ℝ} {x : Space} | |
| 26 | + (hu : DifferentiableAt ℝ u (t, x)) : | |
| 27 | + deriv (fun r => u (r, x)) t = fderiv ℝ u (t, x) (1, 0) := by | |
| 28 | + have h := hu.hasFDerivAt.comp_hasDerivAt t | |
| 29 | + ((hasDerivAt_id t).prodMk (hasDerivAt_const t x)) | |
| 30 | + simpa only [Function.comp_def, id_eq] using h.deriv | |
| 31 | + | |
| 32 | +/-- Mixed differentiation commutes using only local joint `C²` regularity. -/ | |
| 33 | +theorem spatial_fderiv_hasDerivAt {u : ℝ × Space → Space} {t : ℝ} {x : Space} | |
| 34 | + (hu : ContDiffAt ℝ 2 u (t, x)) : | |
| 35 | + HasDerivAt (fun r => fderiv ℝ (fun y => u (r, y)) x) | |
| 36 | + (fderiv ℝ (fun y => deriv (fun r => u (r, y)) t) x) t := by | |
| 37 | + have hdu : DifferentiableAt ℝ (fderiv ℝ u) (t, x) := | |
| 38 | + (hu.fderiv_right (m := 1) (by norm_num)).differentiableAt (by norm_num) | |
| 39 | + have hnear : ∀ᶠ z in 𝓝 (t, x), DifferentiableAt ℝ u z := by | |
| 40 | + filter_upwards [(hu.of_le (show (1 : ℕ∞ω) ≤ 2 by norm_num)).eventually (by norm_num)] | |
| 41 | + with z hz | |
| 42 | + exact hz.differentiableAt (by norm_num) | |
| 43 | + have htime := hdu.hasFDerivAt.comp_hasDerivAt t | |
| 44 | + ((hasDerivAt_id t).prodMk (hasDerivAt_const t x)) | |
| 45 | + have hmatrix := htime.clm_comp (hasDerivAt_const t (ContinuousLinearMap.inr ℝ ℝ Space)) | |
| 46 | + have hspatial := hdu.hasFDerivAt.comp x | |
| 47 | + ((hasFDerivAt_const t x).prodMk (hasFDerivAt_id x)) | |
| 48 | + have hvelocity := hspatial.clm_apply (hasFDerivAt_const (1, (0 : Space)) x) | |
| 49 | + have heq : (fun y => deriv (fun r => u (r, y)) t) =ᶠ[𝓝 x] | |
| 50 | + (fun y => fderiv ℝ u (t, y) (1, 0)) := by | |
| 51 | + filter_upwards [((continuous_const.prodMk continuous_id).tendsto x).eventually hnear] | |
| 52 | + with y hy | |
| 53 | + exact deriv_time_slice hy | |
| 54 | + have hvelocity' := hvelocity.congr_of_eventuallyEq heq | |
| 55 | + have hderiv : fderiv ℝ (fun y => deriv (fun r => u (r, y)) t) x = | |
| 56 | + ((fderiv ℝ (fderiv ℝ u) (t, x)) (1, 0)).comp | |
| 57 | + (ContinuousLinearMap.inr ℝ ℝ Space) := by | |
| 58 | + rw [hvelocity'.fderiv] | |
| 59 | + apply ContinuousLinearMap.ext | |
| 60 | + intro v | |
| 61 | + simpa using hu.isSymmSndFDerivAt (by norm_num) (0, v) (1, 0) | |
| 62 | + rw [hderiv] | |
| 63 | + have hmatrix' : HasDerivAt (fun r => (fderiv ℝ u (r, x)).comp | |
| 64 | + (ContinuousLinearMap.inr ℝ ℝ Space)) | |
| 65 | + (((fderiv ℝ (fderiv ℝ u) (t, x)) (1, 0)).comp | |
| 66 | + (ContinuousLinearMap.inr ℝ ℝ Space)) t := by | |
| 67 | + simpa only [Function.comp_def, id_eq, ContinuousLinearMap.comp_zero, add_zero] using hmatrix | |
| 68 | + apply hmatrix'.congr_of_eventuallyEq | |
| 69 | + filter_upwards [((continuous_id.prodMk continuous_const).tendsto t).eventually hnear] | |
| 70 | + with r hr | |
| 71 | + exact fderiv_spatial_slice hr | |
| 72 | + | |
| 73 | +/-- The derivative in time is differentiable in space under local `C²` | |
| 74 | +regularity. -/ | |
| 75 | +theorem time_deriv_differentiableAt {u : ℝ × Space → Space} {t : ℝ} {x : Space} | |
| 76 | + (hu : ContDiffAt ℝ 2 u (t, x)) : | |
| 77 | + DifferentiableAt ℝ (fun y => deriv (fun r => u (r, y)) t) x := by | |
| 78 | + have hswap : ContDiffAt ℝ 2 (fun z : Space × ℝ => u (z.2, z.1)) (x, t) := | |
| 79 | + hu.comp (x, t) (contDiffAt_snd.prodMk contDiffAt_fst) | |
| 80 | + have hf : ContDiffAt ℝ 1 (fun y => fderiv ℝ (fun r => u (r, y)) t) x := | |
| 81 | + hswap.fderiv contDiffAt_const (by norm_num) | |
| 82 | + exact (hf.clm_apply contDiffAt_const).differentiableAt (by norm_num) | |
| 83 | + | |
| 84 | +/-- The continuous linear coordinate antisymmetrization defining curl. -/ | |
| 85 | +def curlMatrixCLM : (Space →L[ℝ] Space) →L[ℝ] Space := | |
| 86 | + (show (Space →L[ℝ] Space) →ₗ[ℝ] Space from | |
| 87 | + { toFun := curlMatrix | |
| 88 | + map_add' := curlMatrix_add | |
| 89 | + map_smul' := curlMatrix_smul }).toContinuousLinearMap | |
| 90 | + | |
| 91 | +@[simp] theorem curlMatrixCLM_apply (A : Space →L[ℝ] Space) : | |
| 92 | + curlMatrixCLM A = curlMatrix A := rfl | |
| 93 | + | |
| 94 | +/-- Spatial curl commutes with ordinary time differentiation at each point | |
| 95 | +of local joint `C²` regularity. -/ | |
| 96 | +theorem vectorCurl_hasDerivAt {u : ℝ × Space → Space} {t : ℝ} {x : Space} | |
| 97 | + (hu : ContDiffAt ℝ 2 u (t, x)) : | |
| 98 | + HasDerivAt (fun r => vectorCurl (fun y => u (r, y)) x) | |
| 99 | + (vectorCurl (fun y => deriv (fun r => u (r, y)) t) x) t := by | |
| 100 | + have hc := curlMatrixCLM.hasFDerivAt.comp_hasDerivAt t | |
| 101 | + (spatial_fderiv_hasDerivAt hu) | |
| 102 | + rw [vectorCurl_eq_matrix _ x (time_deriv_differentiableAt hu)] | |
| 103 | + apply hc.congr_of_eventuallyEq | |
| 104 | + have hnear : ∀ᶠ z in 𝓝 (t, x), DifferentiableAt ℝ u z := by | |
| 105 | + filter_upwards [(hu.of_le (show (1 : ℕ∞ω) ≤ 2 by norm_num)).eventually (by norm_num)] | |
| 106 | + with z hz | |
| 107 | + exact hz.differentiableAt (by norm_num) | |
| 108 | + filter_upwards [((continuous_id.prodMk continuous_const).tendsto t).eventually hnear] | |
| 109 | + with r hr | |
| 110 | + exact vectorCurl_eq_matrix _ x (hr.comp x (differentiableAt_const r |>.prodMk differentiableAt_id)) | |
| 111 | + | |
| 112 | +/-- Joint spatial curl retains local joint smoothness. -/ | |
| 113 | +theorem joint_vectorCurl_contDiffAt {u : ℝ × Space → Space} {t : ℝ} {x : Space} | |
| 114 | + (hu : ContDiffAt ℝ ∞ u (t, x)) : | |
| 115 | + ContDiffAt ℝ ∞ (fun z : ℝ × Space => vectorCurl (fun y => u (z.1, y)) z.2) | |
| 116 | + (t, x) := by | |
| 117 | + have hd : ContDiffAt ℝ ∞ (fun z => (fderiv ℝ u z).comp | |
| 118 | + (ContinuousLinearMap.inr ℝ ℝ Space)) (t, x) := | |
| 119 | + (hu.fderiv_right (m := ∞) (by simp)).clm_comp contDiffAt_const | |
| 120 | + have hc := curlMatrixCLM.contDiff.contDiffAt.comp (t, x) hd | |
| 121 | + apply hc.congr_of_eventuallyEq | |
| 122 | + have hnear : ∀ᶠ z in 𝓝 (t, x), DifferentiableAt ℝ u z := by | |
| 123 | + filter_upwards [(hu.of_le (show (1 : ℕ∞ω) ≤ ∞ by simp)).eventually (by norm_num)] | |
| 124 | + with z hz | |
| 125 | + exact hz.differentiableAt (by norm_num) | |
| 126 | + filter_upwards [hnear] with z hz | |
| 127 | + have hspace : DifferentiableAt ℝ (fun y => u (z.1, y)) z.2 := by | |
| 128 | + simpa only [Function.comp_def, id_eq] using | |
| 129 | + hz.comp z.2 (differentiableAt_const z.1 |>.prodMk differentiableAt_id) | |
| 130 | + rw [vectorCurl_eq_matrix _ z.2 hspace, fderiv_spatial_slice hz] | |
| 131 | + rfl | |
| 132 | + | |
| 133 | +/-- Joint differentiation along a spacetime direction splits into the curl | |
| 134 | +of the time derivative and spatial transport of the curl. -/ | |
| 135 | +theorem joint_vectorCurl_fderiv_apply {u : ℝ × Space → Space} {t : ℝ} {x : Space} | |
| 136 | + (hu : ContDiffAt ℝ ∞ u (t, x)) (a : Space) : | |
| 137 | + fderiv ℝ (fun z : ℝ × Space => vectorCurl (fun y => u (z.1, y)) z.2) | |
| 138 | + (t, x) (1, a) = | |
| 139 | + vectorCurl (fun y => deriv (fun r => u (r, y)) t) x + | |
| 140 | + fderiv ℝ (vectorCurl (fun y => u (t, y))) x a := by | |
| 141 | + let w : ℝ × Space → Space := fun z => vectorCurl (fun y => u (z.1, y)) z.2 | |
| 142 | + have hw : DifferentiableAt ℝ w (t, x) := | |
| 143 | + (joint_vectorCurl_contDiffAt hu).differentiableAt (by simp) | |
| 144 | + have ht : fderiv ℝ w (t, x) (1, 0) = | |
| 145 | + vectorCurl (fun y => deriv (fun r => u (r, y)) t) x := | |
| 146 | + (deriv_time_slice hw).symm.trans | |
| 147 | + (vectorCurl_hasDerivAt (hu.of_le (by simp))).deriv | |
| 148 | + have hx := congrArg (fun L : Space →L[ℝ] Space => L a) (fderiv_spatial_slice hw) | |
| 149 | + change fderiv ℝ w (t, x) (1, a) = _ | |
| 150 | + rw [show ((1 : ℝ), a) = (1, (0 : Space)) + (0, a) by simp, map_add, ht] | |
| 151 | + congr 1 | |
| 152 | + exact hx.symm | |
| 153 | + | |
| 154 | +/-- Spatial differentiation preserves joint smoothness on an arbitrary time | |
| 155 | +set, including its boundary. The spatial domain is the entire Euclidean space. -/ | |
| 156 | +theorem joint_spatial_fderiv_contDiffOn {u : ℝ × Space → Space} {S : Set ℝ} | |
| 157 | + (hu : ContDiffOn ℝ ∞ u (S ×ˢ (univ : Set Space))) : | |
| 158 | + ContDiffOn ℝ ∞ (fun z : ℝ × Space => fderiv ℝ (fun y => u (z.1, y)) z.2) | |
| 159 | + (S ×ˢ (univ : Set Space)) := by | |
| 160 | + intro z hz | |
| 161 | + have hf : ContDiffWithinAt ℝ ∞ | |
| 162 | + (fun q : (ℝ × Space) × Space => u (q.1.1, q.2)) | |
| 163 | + ((S ×ˢ (univ : Set Space)) ×ˢ (univ : Set Space)) (z, z.2) := by | |
| 164 | + apply (hu z hz).comp (z, z.2) | |
| 165 | + (contDiffWithinAt_fst.fst.prodMk contDiffWithinAt_snd) | |
| 166 | + intro q hq | |
| 167 | + exact ⟨hq.1.1, mem_univ _⟩ | |
| 168 | + have hf' := ContDiffWithinAt.fderivWithin | |
| 169 | + (𝕜 := ℝ) (n := ∞) (m := ∞) | |
| 170 | + (f := fun (z : ℝ × Space) (y : Space) => u (z.1, y)) | |
| 171 | + (s := S ×ˢ (univ : Set Space)) (t := (univ : Set Space)) | |
| 172 | + (g := fun z : ℝ × Space => z.2) | |
| 173 | + hf contDiffWithinAt_snd uniqueDiffOn_univ (by simp) hz | |
| 174 | + (by intro z hz; exact mem_univ _) | |
| 175 | + simpa only [fderivWithin_univ] using hf' | |
| 176 | + | |
| 177 | +/-- Spatial curl preserves joint smoothness on a time set, including its | |
| 178 | +boundary, because spatial differentiation is always on the full space. -/ | |
| 179 | +theorem joint_vectorCurl_contDiffOn {u : ℝ × Space → Space} {S : Set ℝ} | |
| 180 | + (hu : ContDiffOn ℝ ∞ u (S ×ˢ (univ : Set Space))) : | |
| 181 | + ContDiffOn ℝ ∞ (fun z : ℝ × Space => vectorCurl (fun y => u (z.1, y)) z.2) | |
| 182 | + (S ×ˢ (univ : Set Space)) := by | |
| 183 | + apply (curlMatrixCLM.contDiff.comp_contDiffOn (joint_spatial_fderiv_contDiffOn hu)).congr | |
| 184 | + intro z hz | |
| 185 | + have hspace : ContDiff ℝ ∞ (fun y => u (z.1, y)) := | |
| 186 | + hu.comp_contDiff (contDiff_const.prodMk contDiff_id) | |
| 187 | + (fun y => ⟨hz.1, mem_univ y⟩) | |
| 188 | + exact vectorCurl_eq_matrix _ z.2 (hspace.differentiable (by simp) z.2) | |
| 189 | + | |
| 190 | +end Euler.ComparatorBridge | |
+123 −0 Euler/CurlTransportAlgebra.lean added View file
| @@ -0,0 +1,123 @@ | ||
| 1 | +import Euler.MeanVectorIdentities | |
| 2 | +import Euler.MeanScalarProductDerivatives | |
| 3 | + | |
| 4 | +/-! The ordinary curl identity for the Euler convection term on ℝ³. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerComparatorCurlTransport | |
| 9 | + | |
| 10 | +open InnerProductSpace EulerSmoothLimit EulerVectorCalculus EulerMeanCutoffCurl | |
| 11 | + EulerMeanHarmonic EulerMeanVectorIdentities EulerMeanBoundary | |
| 12 | +open scoped ContDiff | |
| 13 | + | |
| 14 | +theorem fderiv_apply_coordinate_sum (f : Space → Space) (hf : ContDiff ℝ ∞ f) | |
| 15 | + (x v : Space) (i : Fin 3) : | |
| 16 | + (fderiv ℝ f x v) i = | |
| 17 | + ∑ j : Fin 3, v j * partialDerivative (fun y => f y i) j x := by | |
| 18 | + rw [← fderiv_coordinate f x (hf.differentiable (by simp)).differentiableAt i v] | |
| 19 | + have hre : ∑ j : Fin 3, v j • (EuclideanSpace.single j 1 : Space) = v := by | |
| 20 | + simpa only [EuclideanSpace.basisFun_repr, EuclideanSpace.basisFun_apply] using | |
| 21 | + (EuclideanSpace.basisFun (Fin 3) ℝ).sum_repr v | |
| 22 | + calc | |
| 23 | + _ = fderiv ℝ (fun y => f y i) x | |
| 24 | + (∑ j : Fin 3, v j • EuclideanSpace.single j 1) := | |
| 25 | + congrArg (fderiv ℝ (fun y => f y i) x) hre.symm | |
| 26 | + _ = _ := by simp only [map_sum, map_smul, smul_eq_mul, partialDerivative] | |
| 27 | + | |
| 28 | +/-- Curl of the material convection term, including the compressible correction. -/ | |
| 29 | +theorem vectorCurl_convection (u : Space → Space) (hu : ContDiff ℝ ∞ u) (x : Space) : | |
| 30 | + vectorCurl (fun y => fderiv ℝ u y (u y)) x = | |
| 31 | + fderiv ℝ (vectorCurl u) x (u x) - fderiv ℝ u x (vectorCurl u x) + | |
| 32 | + divergence u x • vectorCurl u x := by | |
| 33 | + have hc (i : Fin 3) : ContDiff ℝ ∞ (fun y => u y i) := (contDiff_piLp 2).mp hu i | |
| 34 | + have hp (i j : Fin 3) : ContDiff ℝ ∞ (partialDerivative (fun y => u y i) j) := | |
| 35 | + contDiff_partialDerivative _ (hc i) j | |
| 36 | + have hconv (i : Fin 3) : | |
| 37 | + (fun y => (fderiv ℝ u y (u y)) i) = | |
| 38 | + fun y => ∑ j : Fin 3, u y j * partialDerivative (fun z => u z i) j y := by | |
| 39 | + funext y | |
| 40 | + exact fderiv_apply_coordinate_sum u hu y (u y) i | |
| 41 | + have hconvpart (i k : Fin 3) : | |
| 42 | + partialDerivative (fun y => (fderiv ℝ u y (u y)) i) k x = | |
| 43 | + ∑ j : Fin 3, | |
| 44 | + (partialDerivative (fun y => u y i) j x * | |
| 45 | + partialDerivative (fun y => u y j) k x + | |
| 46 | + u x j * partialDerivative (partialDerivative (fun y => u y i) j) k x) := by | |
| 47 | + rw [hconv i, partialDerivative_sum _ (fun j => (hc j).mul (hp i j))] | |
| 48 | + apply Finset.sum_congr rfl | |
| 49 | + intro j _ | |
| 50 | + exact EulerMeanHarmonic.partialDerivative_mul | |
| 51 | + ((hc j).differentiable (by simp)).differentiableAt | |
| 52 | + ((hp i j).differentiable (by simp)).differentiableAt k | |
| 53 | + have hcurlpart (i k : Fin 3) : | |
| 54 | + partialDerivative (fun y => vectorCurl u y i) k x = | |
| 55 | + partialDerivative (partialDerivative (fun y => u y (i+2)) (i+1)) k x - | |
| 56 | + partialDerivative (partialDerivative (fun y => u y (i+1)) (i+2)) k x := by | |
| 57 | + simp only [vectorCurl, curl_apply] | |
| 58 | + exact EulerMeanVectorIdentities.partialDerivative_sub _ _ (hp _ _) (hp _ _) k x | |
| 59 | + have hcomm01 (a : Fin 3) : | |
| 60 | + partialDerivative (partialDerivative (fun y => u y a) 0) 1 x = | |
| 61 | + partialDerivative (partialDerivative (fun y => u y a) 1) 0 x := | |
| 62 | + partialDerivative_comm _ ((hc a).of_le (by simp)) 0 1 x | |
| 63 | + have hcomm02 (a : Fin 3) : | |
| 64 | + partialDerivative (partialDerivative (fun y => u y a) 0) 2 x = | |
| 65 | + partialDerivative (partialDerivative (fun y => u y a) 2) 0 x := | |
| 66 | + partialDerivative_comm _ ((hc a).of_le (by simp)) 0 2 x | |
| 67 | + have hcomm12 (a : Fin 3) : | |
| 68 | + partialDerivative (partialDerivative (fun y => u y a) 1) 2 x = | |
| 69 | + partialDerivative (partialDerivative (fun y => u y a) 2) 1 x := | |
| 70 | + partialDerivative_comm _ ((hc a).of_le (by simp)) 1 2 x | |
| 71 | + ext i | |
| 72 | + simp only [PiLp.add_apply, PiLp.sub_apply, PiLp.smul_apply, smul_eq_mul] | |
| 73 | + rw [fderiv_apply_coordinate_sum (vectorCurl u) (vectorCurl_smooth u hu) x (u x) i, | |
| 74 | + fderiv_apply_coordinate_sum u hu x (vectorCurl u x) i] | |
| 75 | + simp only [hcurlpart, divergence_coordinate_sum u hu] | |
| 76 | + conv_lhs => simp only [vectorCurl, curl_apply] | |
| 77 | + rw [hconvpart, hconvpart] | |
| 78 | + simp only [vectorCurl, curl_apply] | |
| 79 | + fin_cases i <;> | |
| 80 | + norm_num [Fin.sum_univ_three, Fin.add_def] <;> | |
| 81 | + simp only [show (⟨2, by decide⟩ : Fin 3) = 2 from rfl] <;> | |
| 82 | + simp only [hcomm01, hcomm02, hcomm12] <;> ring! | |
| 83 | + | |
| 84 | +/-- The form of curl transport used for incompressible Euler. -/ | |
| 85 | +theorem vectorCurl_convection_of_divergence_zero (u : Space → Space) | |
| 86 | + (hu : ContDiff ℝ ∞ u) (x : Space) (hdiv : divergence u x = 0) : | |
| 87 | + vectorCurl (fun y => fderiv ℝ u y (u y)) x = | |
| 88 | + fderiv ℝ (vectorCurl u) x (u x) - fderiv ℝ u x (vectorCurl u x) := by | |
| 89 | + simpa only [hdiv, zero_smul, add_zero] using vectorCurl_convection u hu x | |
| 90 | + | |
| 91 | +/-- Ordinary gradients have zero ordinary curl. -/ | |
| 92 | +theorem vectorCurl_gradient_zero (p : Space → ℝ) (hp : ContDiff ℝ ∞ p) (x : Space) : | |
| 93 | + vectorCurl (gradient p) x = 0 := by | |
| 94 | + ext i | |
| 95 | + simp only [vectorCurl, curl_apply, gradient_coordinate, PiLp.zero_apply] | |
| 96 | + exact sub_eq_zero.mpr (partialDerivative_comm p (hp.of_le (by simp)) (i+2) (i+1) x) | |
| 97 | + | |
| 98 | +theorem vectorCurl_neg (f : Space → Space) (hf : Differentiable ℝ f) : | |
| 99 | + vectorCurl (-f) = -vectorCurl f := by | |
| 100 | + simpa only [neg_one_smul] using vectorCurl_smul (-1) f hf | |
| 101 | + | |
| 102 | +theorem vectorCurl_sub (f g : Space → Space) | |
| 103 | + (hf : Differentiable ℝ f) (hg : Differentiable ℝ g) : | |
| 104 | + vectorCurl (f-g) = vectorCurl f - vectorCurl g := by | |
| 105 | + rw [sub_eq_add_neg, vectorCurl_add f (-g) hf hg.neg, vectorCurl_neg g hg, | |
| 106 | + sub_eq_add_neg] | |
| 107 | + | |
| 108 | +/-- Taking curl removes pressure and gives the Euler vorticity right-hand side. -/ | |
| 109 | +theorem vectorCurl_euler_rhs (u : Space → Space) (p : Space → ℝ) | |
| 110 | + (hu : ContDiff ℝ ∞ u) (hp : ContDiff ℝ ∞ p) (x : Space) | |
| 111 | + (hdiv : divergence u x = 0) : | |
| 112 | + vectorCurl (fun y => -fderiv ℝ u y (u y) - gradient p y) x = | |
| 113 | + fderiv ℝ u x (vectorCurl u x) - fderiv ℝ (vectorCurl u) x (u x) := by | |
| 114 | + have hc : Differentiable ℝ (fun y => fderiv ℝ u y (u y)) := | |
| 115 | + ((hu.fderiv_right (m := ∞) (by simp)).clm_apply hu).differentiable (by simp) | |
| 116 | + have hpg : Differentiable ℝ (gradient p) := | |
| 117 | + (EulerMeanSolenoidal.contDiff_gradient hp).differentiable (by simp) | |
| 118 | + change vectorCurl (-(fun y => fderiv ℝ u y (u y)) - gradient p) x = _ | |
| 119 | + rw [vectorCurl_sub _ _ hc.neg hpg, vectorCurl_neg _ hc] | |
| 120 | + simp only [Pi.sub_apply, Pi.neg_apply, vectorCurl_gradient_zero p hp x, | |
| 121 | + vectorCurl_convection_of_divergence_zero u hu x hdiv, sub_zero, neg_sub] | |
| 122 | + | |
| 123 | +end EulerComparatorCurlTransport | |
+113 −0 Euler/CylinderActionWords.lean added View file
| @@ -0,0 +1,113 @@ | ||
| 1 | +import Euler.IsometricActionWords | |
| 2 | +import Euler.LpCylinderOrbit | |
| 3 | +import Euler.CylinderTranslationAdjoint | |
| 4 | +import Euler.MeanPathLpBlocks | |
| 5 | + | |
| 6 | +/-! Exact mixed-word invariance on cylinder L² and its time-function spaces. -/ | |
| 7 | + | |
| 8 | +noncomputable section | |
| 9 | + | |
| 10 | +namespace EulerLpCylinderTranslation | |
| 11 | + | |
| 12 | +open Set MeasureTheory ContinuousLinearMap EulerLiftedGradientSpace | |
| 13 | + EulerTimeLp EulerTimeLpBoundedMap EulerParameterWordGevrey | |
| 14 | +open scoped ContDiff | |
| 15 | + | |
| 16 | +variable (P : ℝ) [Fact (0 < P)] {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] | |
| 17 | + | |
| 18 | +section Path | |
| 19 | + | |
| 20 | +variable {K : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 21 | + | |
| 22 | +theorem pathTranslate_norm_map (a : LiftTangent) (f : C(K,CylinderL2 P V)) : | |
| 23 | + ‖pathTranslate P a f‖ = ‖f‖ := by | |
| 24 | + apply le_antisymm | |
| 25 | + · apply (ContinuousMap.norm_le _ (norm_nonneg f)).2 | |
| 26 | + intro t | |
| 27 | + change ‖translate P a (f t)‖ ≤ ‖f‖ | |
| 28 | + rw [LinearIsometry.norm_map] | |
| 29 | + exact f.norm_coe_le_norm t | |
| 30 | + · apply (ContinuousMap.norm_le _ (norm_nonneg (pathTranslate P a f))).2 | |
| 31 | + intro t | |
| 32 | + rw [← (translate P a).norm_map (f t)] | |
| 33 | + exact (pathTranslate P a f).norm_coe_le_norm t | |
| 34 | + | |
| 35 | +def pathTranslateIsometry (a : LiftTangent) : C(K,CylinderL2 P V) →ₗᵢ[ℝ] C(K,CylinderL2 P V) where | |
| 36 | + toLinearMap := (pathTranslate P a).toLinearMap | |
| 37 | + norm_map' := pathTranslate_norm_map P a | |
| 38 | + | |
| 39 | +theorem path_block_constant {ι : Type*} [Fintype ι] (directions : ι → LiftTangent) (q : ℕ) | |
| 40 | + (f : C(K,CylinderL2 P V)) (hf : ContDiff ℝ ∞ (fun a => pathTranslate P a f)) (n : ℕ) (a : LiftTangent) : | |
| 41 | + block directions q (fun b => pathTranslate P b f) n a = | |
| 42 | + block directions q (fun b => pathTranslate P b f) n 0 := | |
| 43 | + EulerIsometricAction.block_orbit_constant (X := LiftTangent) | |
| 44 | + (E := C(K,CylinderL2 P V)) (ι := ι) (pathTranslateIsometry (K := K) (V := V) P) | |
| 45 | + (fun a b u => pathTranslate_add P a b u) (fun u => pathTranslate_zero P u) directions q f hf n a | |
| 46 | + | |
| 47 | +end Path | |
| 48 | + | |
| 49 | +def timeTranslateIsometry (T : ℝ) (a : LiftTangent) : | |
| 50 | + TimeLp T (CylinderL2 P V) →ₗᵢ[ℝ] TimeLp T (CylinderL2 P V) := | |
| 51 | + timeLiftIsometry T (translate P a) | |
| 52 | + | |
| 53 | +theorem timeTranslateIsometry_add (T : ℝ) (a b : LiftTangent) (f : TimeLp T (CylinderL2 P V)) : | |
| 54 | + timeTranslateIsometry P T a (timeTranslateIsometry P T b f) = timeTranslateIsometry P T (a+b) f := by | |
| 55 | + apply Lp.ext | |
| 56 | + filter_upwards [timeLift_ae T (translate P a).toContinuousLinearMap (timeTranslateIsometry P T b f), | |
| 57 | + timeLift_ae T (translate P b).toContinuousLinearMap f, | |
| 58 | + timeLift_ae T (translate P (a+b)).toContinuousLinearMap f] with t ha hb hab | |
| 59 | + change timeTranslateIsometry P T a (timeTranslateIsometry P T b f) t = _ at ha | |
| 60 | + change timeTranslateIsometry P T b f t = _ at hb | |
| 61 | + change timeTranslateIsometry P T (a+b) f t = _ at hab | |
| 62 | + rw [ha,hb,hab] | |
| 63 | + exact translate_add P a b (f t) | |
| 64 | + | |
| 65 | +theorem timeTranslateIsometry_zero (T : ℝ) (f : TimeLp T (CylinderL2 P V)) : | |
| 66 | + timeTranslateIsometry P T 0 f = f := by | |
| 67 | + apply Lp.ext | |
| 68 | + filter_upwards [timeLift_ae T (translate P 0).toContinuousLinearMap f] with t ht | |
| 69 | + change timeTranslateIsometry P T 0 f t = _ at ht | |
| 70 | + rw [ht] | |
| 71 | + exact translate_zero P (f t) | |
| 72 | + | |
| 73 | +theorem time_block_constant {ι : Type*} [Fintype ι] (directions : ι → LiftTangent) (q : ℕ) | |
| 74 | + (T : ℝ) (f : TimeLp T (CylinderL2 P V)) | |
| 75 | + (hf : ContDiff ℝ ∞ (fun a => timeLift T (translate P a).toContinuousLinearMap f)) | |
| 76 | + (n : ℕ) (a : LiftTangent) : | |
| 77 | + block directions q (fun b => timeLift T (translate P b).toContinuousLinearMap f) n a = | |
| 78 | + block directions q (fun b => timeLift T (translate P b).toContinuousLinearMap f) n 0 := | |
| 79 | + EulerIsometricAction.block_orbit_constant (X := LiftTangent) | |
| 80 | + (E := TimeLp T (CylinderL2 P V)) (ι := ι) (timeTranslateIsometry (V := V) P T) | |
| 81 | + (fun a b u => timeTranslateIsometry_add P T a b u) | |
| 82 | + (fun u => timeTranslateIsometry_zero P T u) directions q f hf n a | |
| 83 | + | |
| 84 | +theorem pathLp_orbit_contDiff (T : ℝ) (hT : 0 ≤ T) (f : C(Icc (0 : ℝ) T,CylinderL2 P V)) | |
| 85 | + (hf : ContDiff ℝ ∞ (fun a => pathTranslate P a f)) : | |
| 86 | + ContDiff ℝ ∞ (fun a => timeLift T (translate P a).toContinuousLinearMap (pathLp T hT f)) := by | |
| 87 | + have he : (fun a => timeLift T (translate P a).toContinuousLinearMap (pathLp T hT f)) = | |
| 88 | + (pathLpOperator T hT) ∘ (fun a => pathTranslate P a f) := by | |
| 89 | + funext a | |
| 90 | + convert (pathLp_timeLift T hT (translate P a).toContinuousLinearMap f).symm using 1 | |
| 91 | + rfl | |
| 92 | + rw [he] | |
| 93 | + exact (pathLpOperator (E := CylinderL2 P V) T hT).contDiff.comp hf | |
| 94 | + | |
| 95 | +/-- The actual Ctime-to-time-L² inclusion preserves all mixed word blocks | |
| 96 | +with exactly the square-root time length factor. -/ | |
| 97 | +theorem pathLp_block_le {ι : Type*} [Fintype ι] (directions : ι → LiftTangent) (q : ℕ) | |
| 98 | + (T : ℝ) (hT : 0 ≤ T) (f : C(Icc (0 : ℝ) T,CylinderL2 P V)) | |
| 99 | + (hf : ContDiff ℝ ∞ (fun a => pathTranslate P a f)) (n : ℕ) (a : LiftTangent) : | |
| 100 | + block directions q (fun b => timeLift T (translate P b).toContinuousLinearMap (pathLp T hT f)) n a ≤ | |
| 101 | + Real.sqrt T*block directions q (fun b => pathTranslate P b f) n a := by | |
| 102 | + have he : (fun b => timeLift T (translate P b).toContinuousLinearMap (pathLp T hT f)) = | |
| 103 | + (pathLpOperator T hT) ∘ (fun b => pathTranslate P b f) := by | |
| 104 | + funext b | |
| 105 | + convert (pathLp_timeLift T hT (translate P b).toContinuousLinearMap f).symm using 1 | |
| 106 | + rfl | |
| 107 | + rw [he] | |
| 108 | + exact (block_comp_clm_le directions q (pathLpOperator (E := CylinderL2 P V) T hT) _ hf n a).trans | |
| 109 | + (mul_le_mul_of_nonneg_right | |
| 110 | + (EulerMeanTimeContinuousTranslation.pathLpOperator_norm_sqrt T hT) | |
| 111 | + (block_nonneg directions q _ n a)) | |
| 112 | + | |
| 113 | +end EulerLpCylinderTranslation | |
+214 −0 Euler/CylinderAngleAverage.lean added View file
| @@ -0,0 +1,214 @@ | ||
| 1 | +import Euler.LpCylinderRectangular | |
| 2 | +import Mathlib.MeasureTheory.Integral.IntervalIntegral.Basic | |
| 3 | + | |
| 4 | +/-! Actual angular averaging on the cylinder, including its supported spaces. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerCylinderAngleAverage | |
| 9 | + | |
| 10 | +open Set MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace | |
| 11 | + EulerLpCylinderTranslation EulerLpCylinderPaths EulerLpCylinderRectangular | |
| 12 | + EulerLpSupportedSubspace EulerMeanCoefficients | |
| 13 | +open scoped BoundedContinuousFunction | |
| 14 | + | |
| 15 | +variable (P : ℝ) [Fact (0 < P)] | |
| 16 | + | |
| 17 | +section Average | |
| 18 | + | |
| 19 | +variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] [CompleteSpace V] | |
| 20 | + | |
| 21 | +def angleCurve (u : CylinderL2 P V) (s : ℝ) : CylinderL2 P V := | |
| 22 | + translate P (0,s) u | |
| 23 | + | |
| 24 | +omit [CompleteSpace V] in | |
| 25 | +theorem angleCurve_continuous (u : CylinderL2 P V) : Continuous (angleCurve P u) := | |
| 26 | + (translate_continuous P u).comp (continuous_const.prodMk continuous_id) | |
| 27 | + | |
| 28 | +def averageIntegral (u : CylinderL2 P V) : CylinderL2 P V := | |
| 29 | + P⁻¹ • (∫ s in (0 : ℝ)..P, angleCurve P u s) | |
| 30 | + | |
| 31 | +omit [CompleteSpace V] in | |
| 32 | +theorem averageIntegral_add (u v : CylinderL2 P V) : | |
| 33 | + averageIntegral P (u+v) = averageIntegral P u+averageIntegral P v := by | |
| 34 | + have he : angleCurve P (u+v) = angleCurve P u+angleCurve P v := by | |
| 35 | + funext s | |
| 36 | + exact map_add (translate P (0,s)) u v | |
| 37 | + rw [averageIntegral, he] | |
| 38 | + simp only [Pi.add_apply] | |
| 39 | + rw [intervalIntegral.integral_add | |
| 40 | + ((angleCurve_continuous P u).intervalIntegrable 0 P) | |
| 41 | + ((angleCurve_continuous P v).intervalIntegrable 0 P), smul_add] | |
| 42 | + rfl | |
| 43 | + | |
| 44 | +omit [CompleteSpace V] in | |
| 45 | +theorem averageIntegral_smul (r : ℝ) (u : CylinderL2 P V) : | |
| 46 | + averageIntegral P (r • u) = r • averageIntegral P u := by | |
| 47 | + have he : angleCurve P (r • u) = r • angleCurve P u := by | |
| 48 | + funext s | |
| 49 | + exact map_smul (translate P (0,s)) r u | |
| 50 | + rw [averageIntegral, he] | |
| 51 | + simp only [Pi.smul_apply] | |
| 52 | + rw [intervalIntegral.integral_smul, smul_comm P⁻¹ r] | |
| 53 | + rfl | |
| 54 | + | |
| 55 | +omit [CompleteSpace V] in | |
| 56 | +theorem averageIntegral_norm (u : CylinderL2 P V) : ‖averageIntegral P u‖ ≤ ‖u‖ := by | |
| 57 | + have hP : 0 < P := Fact.out | |
| 58 | + have hb : ‖∫ s in (0 : ℝ)..P, angleCurve P u s‖ ≤ ‖u‖*P := by | |
| 59 | + have h := intervalIntegral.norm_integral_le_of_norm_le_const | |
| 60 | + (a := (0 : ℝ)) (b := P) (f := angleCurve P u) (C := ‖u‖) (fun s _ => by | |
| 61 | + exact le_of_eq ((translate P (0,s)).norm_map u)) | |
| 62 | + simpa only [sub_zero, abs_of_pos hP] using h | |
| 63 | + change ‖P⁻¹ • (∫ s in (0 : ℝ)..P, angleCurve P u s)‖ ≤ _ | |
| 64 | + rw [norm_smul, Real.norm_eq_abs, abs_of_pos (inv_pos.mpr hP)] | |
| 65 | + calc | |
| 66 | + _ ≤ P⁻¹*(‖u‖*P) := mul_le_mul_of_nonneg_left hb (inv_nonneg.mpr hP.le) | |
| 67 | + _ = ‖u‖ := by field_simp | |
| 68 | + | |
| 69 | +def averageLinear : CylinderL2 P V →ₗ[ℝ] CylinderL2 P V where | |
| 70 | + toFun := averageIntegral P | |
| 71 | + map_add' := averageIntegral_add P | |
| 72 | + map_smul' := averageIntegral_smul P | |
| 73 | + | |
| 74 | +/-- The Bochner average of genuine angular translations. -/ | |
| 75 | +def average : CylinderL2 P V →L[ℝ] CylinderL2 P V := | |
| 76 | + (averageLinear P).mkContinuous 1 (fun u => by | |
| 77 | + change ‖averageIntegral P u‖ ≤ (1 : ℝ)*‖u‖ | |
| 78 | + simpa only [one_mul] using averageIntegral_norm P u) | |
| 79 | + | |
| 80 | +omit [CompleteSpace V] in | |
| 81 | +@[simp] theorem average_apply (u : CylinderL2 P V) : | |
| 82 | + average P u = averageIntegral P u := rfl | |
| 83 | + | |
| 84 | +omit [CompleteSpace V] in | |
| 85 | +theorem average_norm : ‖average (V := V) P‖ ≤ 1 := | |
| 86 | + opNorm_le_bound _ zero_le_one (fun u => by | |
| 87 | + change ‖averageIntegral P u‖ ≤ (1 : ℝ)*‖u‖ | |
| 88 | + simpa only [one_mul] using averageIntegral_norm P u) | |
| 89 | + | |
| 90 | +theorem average_translation (a : LiftTangent) (u : CylinderL2 P V) : | |
| 91 | + average P (translate P a u) = translate P a (average P u) := by | |
| 92 | + change P⁻¹ • (∫ s in (0 : ℝ)..P, angleCurve P (translate P a u) s) = | |
| 93 | + translate P a (P⁻¹ • (∫ s in (0 : ℝ)..P, angleCurve P u s)) | |
| 94 | + rw [map_smul] | |
| 95 | + change P⁻¹ • _ = P⁻¹ • (translate P a).toContinuousLinearMap _ | |
| 96 | + rw [← (translate P a).toContinuousLinearMap.intervalIntegral_comp_comm | |
| 97 | + ((angleCurve_continuous P u).intervalIntegrable 0 P)] | |
| 98 | + congr 1 | |
| 99 | + apply intervalIntegral.integral_congr | |
| 100 | + intro s _ | |
| 101 | + change translate P (0,s) (translate P a u) = translate P a (translate P (0,s) u) | |
| 102 | + rw [translate_add, translate_add, add_comm (0,s) a] | |
| 103 | + | |
| 104 | +variable {K : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 105 | + | |
| 106 | +def pathAverage : C(K,CylinderL2 P V) →L[ℝ] C(K,CylinderL2 P V) := | |
| 107 | + (average P).compLeftContinuous ℝ K | |
| 108 | + | |
| 109 | +omit [CompactSpace K] [CompleteSpace V] in | |
| 110 | +@[simp] theorem pathAverage_apply (u : C(K,CylinderL2 P V)) (t : K) : | |
| 111 | + pathAverage P u t = average P (u t) := rfl | |
| 112 | + | |
| 113 | +omit [CompleteSpace V] in | |
| 114 | +theorem pathAverage_norm : ‖pathAverage (K := K) (V := V) P‖ ≤ 1 := by | |
| 115 | + apply opNorm_le_bound _ zero_le_one | |
| 116 | + intro u | |
| 117 | + rw [one_mul] | |
| 118 | + apply (ContinuousMap.norm_le _ (norm_nonneg u)).mpr | |
| 119 | + intro t | |
| 120 | + exact (averageIntegral_norm P (u t)).trans (u.norm_coe_le_norm t) | |
| 121 | + | |
| 122 | +omit [CompactSpace K] in | |
| 123 | +theorem pathAverage_translation (a : LiftTangent) (u : C(K,CylinderL2 P V)) : | |
| 124 | + pathAverage P (pathTranslate P a u) = pathTranslate P a (pathAverage P u) := by | |
| 125 | + apply ContinuousMap.ext | |
| 126 | + intro t | |
| 127 | + exact average_translation P a (u t) | |
| 128 | + | |
| 129 | +end Average | |
| 130 | + | |
| 131 | +section Intertwining | |
| 132 | + | |
| 133 | +variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] | |
| 134 | + [NormedAddCommGroup F] [NormedSpace ℝ F] [CompleteSpace F] | |
| 135 | + | |
| 136 | +/-- Every actual angular intertwiner commutes with the constructed average. -/ | |
| 137 | +theorem average_intertwines (L : CylinderL2 P E →L[ℝ] CylinderL2 P F) | |
| 138 | + (hL : ∀ s u, L (translate P (0,s) u) = translate P (0,s) (L u)) | |
| 139 | + (u : CylinderL2 P E) : average P (L u) = L (average P u) := by | |
| 140 | + change P⁻¹ • (∫ s in (0 : ℝ)..P, angleCurve P (L u) s) = | |
| 141 | + L (P⁻¹ • (∫ s in (0 : ℝ)..P, angleCurve P u s)) | |
| 142 | + rw [map_smul, ← L.intervalIntegral_comp_comm | |
| 143 | + ((angleCurve_continuous P u).intervalIntegrable 0 P)] | |
| 144 | + congr 1 | |
| 145 | + apply intervalIntegral.integral_congr | |
| 146 | + intro s _ | |
| 147 | + exact (hL s u).symm | |
| 148 | + | |
| 149 | +end Intertwining | |
| 150 | + | |
| 151 | +section Coefficients | |
| 152 | + | |
| 153 | +variable {E F : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] | |
| 154 | + [NormedAddCommGroup F] [InnerProductSpace ℝ F] [CompleteSpace F] | |
| 155 | + | |
| 156 | +/-- Spatial rectangular coefficients preserve angular means exactly. -/ | |
| 157 | +theorem average_fullOperator (A : Space →ᵇ E →L[ℝ] F) (u : CylinderL2 P E) : | |
| 158 | + average P (fullOperatorMap P A u) = fullOperatorMap P A (average P u) := by | |
| 159 | + apply average_intertwines P | |
| 160 | + intro s v | |
| 161 | + simpa only [Prod.fst, translated_zero] using fullOperator_translation P (0,s) A v | |
| 162 | + | |
| 163 | +variable {K : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 164 | + | |
| 165 | +theorem pathAverage_fullMultiplier (A : C(K,Space →ᵇ E →L[ℝ] F)) | |
| 166 | + (u : C(K,CylinderL2 P E)) : | |
| 167 | + pathAverage P (fullMultiplierMap P A u) = fullMultiplierMap P A (pathAverage P u) := by | |
| 168 | + apply ContinuousMap.ext | |
| 169 | + intro t | |
| 170 | + exact average_fullOperator P (A t) (u t) | |
| 171 | + | |
| 172 | +end Coefficients | |
| 173 | + | |
| 174 | +section Supported | |
| 175 | + | |
| 176 | +variable {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V] [CompleteSpace V] | |
| 177 | + (S : Set Space) (hS : MeasurableSet S) | |
| 178 | + | |
| 179 | +/-- Angular averaging preserves the actual spatial support subspace. -/ | |
| 180 | +theorem average_mem (u : Supported P V S hS) : | |
| 181 | + average P (u : CylinderL2 P V) ∈ Supported P V S hS := by | |
| 182 | + have hs (s : ℝ) : translate P (0,s) (u : CylinderL2 P V) ∈ Supported P V S hS := by | |
| 183 | + apply translate_mem P (0,s) S S hS hS _ u | |
| 184 | + intro x hx | |
| 185 | + change x+(0 : Space) ∈ S at hx | |
| 186 | + simpa only [add_zero] using hx | |
| 187 | + let f : ℝ → Supported P V S hS := fun s => ⟨translate P (0,s) (u : CylinderL2 P V), hs s⟩ | |
| 188 | + have hf : Continuous f := Continuous.subtype_mk | |
| 189 | + (angleCurve_continuous P (u : CylinderL2 P V)) _ | |
| 190 | + let v : Supported P V S hS := P⁻¹ • (∫ s in (0 : ℝ)..P, f s) | |
| 191 | + have he : (v : CylinderL2 P V) = average P (u : CylinderL2 P V) := by | |
| 192 | + change (Supported P V S hS).subtypeL (P⁻¹ • (∫ s in (0 : ℝ)..P, f s)) = _ | |
| 193 | + rw [map_smul, ← (Supported P V S hS).subtypeL.intervalIntegral_comp_comm | |
| 194 | + (hf.intervalIntegrable 0 P)] | |
| 195 | + rfl | |
| 196 | + rw [← he] | |
| 197 | + exact v.property | |
| 198 | + | |
| 199 | +def supportedAverage : Supported P V S hS →L[ℝ] Supported P V S hS := | |
| 200 | + ((average P).comp (Supported P V S hS).subtypeL).codRestrict | |
| 201 | + (Supported P V S hS) (average_mem P S hS) | |
| 202 | + | |
| 203 | +@[simp] theorem supportedAverage_coe (u : Supported P V S hS) : | |
| 204 | + (supportedAverage P S hS u : CylinderL2 P V) = average P (u : CylinderL2 P V) := rfl | |
| 205 | + | |
| 206 | +theorem supportedAverage_norm : ‖supportedAverage (V := V) P S hS‖ ≤ 1 := by | |
| 207 | + apply opNorm_le_bound _ zero_le_one | |
| 208 | + intro u | |
| 209 | + change ‖averageIntegral P (u : CylinderL2 P V)‖ ≤ (1 : ℝ)*‖(u : CylinderL2 P V)‖ | |
| 210 | + simpa only [one_mul] using averageIntegral_norm P (u : CylinderL2 P V) | |
| 211 | + | |
| 212 | +end Supported | |
| 213 | + | |
| 214 | +end EulerCylinderAngleAverage | |
+111 −0 Euler/CylinderAngleAverageEvolution.lean added View file
| @@ -0,0 +1,111 @@ | ||
| 1 | +import Euler.CylinderAngleAverage | |
| 2 | +import Euler.LpCylinderCoefficientTime | |
| 3 | +import Euler.LinearDuhamelNaturality | |
| 4 | +import Euler.LinearDuhamelOperator | |
| 5 | + | |
| 6 | +/-! The actual supported Duhamel solution preserves zero angular mean. -/ | |
| 7 | + | |
| 8 | +noncomputable section | |
| 9 | + | |
| 10 | +namespace EulerCylinderAngleAverage | |
| 11 | + | |
| 12 | +open Set MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace | |
| 13 | + EulerLpCylinderTranslation EulerLpCylinderPaths EulerLpCylinderRectangular | |
| 14 | + EulerLpCylinderCoefficients EulerLinearDuhamel | |
| 15 | +open scoped BoundedContinuousFunction | |
| 16 | + | |
| 17 | +variable (P : ℝ) [Fact (0 < P)] | |
| 18 | + | |
| 19 | +section Coefficients | |
| 20 | + | |
| 21 | +variable {E F : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] | |
| 22 | + [NormedAddCommGroup F] [InnerProductSpace ℝ F] [CompleteSpace F] | |
| 23 | + (S : Set Space) (hS : MeasurableSet S) | |
| 24 | + | |
| 25 | +theorem supportedAverage_operator (A : Space →ᵇ E →L[ℝ] F) (u : Supported P E S hS) : | |
| 26 | + supportedAverage P S hS (supportedOperatorMap P S hS A u) = | |
| 27 | + supportedOperatorMap P S hS A (supportedAverage P S hS u) := by | |
| 28 | + apply Subtype.ext | |
| 29 | + exact average_fullOperator P A (u : CylinderL2 P E) | |
| 30 | + | |
| 31 | +end Coefficients | |
| 32 | + | |
| 33 | +section Paths | |
| 34 | + | |
| 35 | +variable {K V : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 36 | + [NormedAddCommGroup V] [InnerProductSpace ℝ V] [CompleteSpace V] | |
| 37 | + (S : Set Space) (hS : MeasurableSet S) | |
| 38 | + | |
| 39 | +private local instance : NormedAddCommGroup (Supported P V S hS) := inferInstance | |
| 40 | +private local instance : NormedSpace ℝ (Supported P V S hS) := inferInstance | |
| 41 | +private local instance : NormedAddCommGroup C(K,Supported P V S hS) := inferInstance | |
| 42 | +private local instance : NormedSpace ℝ C(K,Supported P V S hS) := inferInstance | |
| 43 | +private local instance : NormedAddCommGroup (C(K,Supported P V S hS) →L[ℝ] C(K,Supported P V S hS)) := inferInstance | |
| 44 | +private local instance : NormedSpace ℝ (C(K,Supported P V S hS) →L[ℝ] C(K,Supported P V S hS)) := inferInstance | |
| 45 | + | |
| 46 | +def supportedPathAverage : C(K,Supported P V S hS) →L[ℝ] C(K,Supported P V S hS) := | |
| 47 | + (supportedAverage P S hS).compLeftContinuous ℝ K | |
| 48 | + | |
| 49 | +omit [CompactSpace K] in | |
| 50 | +@[simp] theorem supportedPathAverage_apply (p : C(K,Supported P V S hS)) (t : K) : | |
| 51 | + supportedPathAverage P S hS p t = supportedAverage P S hS (p t) := rfl | |
| 52 | + | |
| 53 | +omit [CompactSpace K] in | |
| 54 | +theorem include_supportedPathAverage (p : C(K,Supported P V S hS)) : | |
| 55 | + includePath P S hS (supportedPathAverage P S hS p) = pathAverage P (includePath P S hS p) := rfl | |
| 56 | + | |
| 57 | +theorem supportedPathAverage_norm : ‖supportedPathAverage (K := K) (V := V) P S hS‖ ≤ 1 := by | |
| 58 | + apply opNorm_le_bound _ zero_le_one | |
| 59 | + intro p | |
| 60 | + rw [one_mul] | |
| 61 | + apply (ContinuousMap.norm_le _ (norm_nonneg p)).mpr | |
| 62 | + intro t | |
| 63 | + exact (averageIntegral_norm P (p t : CylinderL2 P V)).trans (p.norm_coe_le_norm t) | |
| 64 | + | |
| 65 | +end Paths | |
| 66 | + | |
| 67 | +section Evolution | |
| 68 | + | |
| 69 | +variable {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℝ V] [CompleteSpace V] | |
| 70 | + (S : Set Space) (hS : MeasurableSet S) (T : ℝ) (hT : 0 ≤ T) | |
| 71 | + (B : C(Icc (0 : ℝ) T,Space →ᵇ V →L[ℝ] V)) | |
| 72 | + (U : Evolution T hT (liftedOperatorPath P S hS T B)) | |
| 73 | + | |
| 74 | +/-- Averaging the genuine forced solution equals solving with averaged data. -/ | |
| 75 | +theorem solution_average (f : C(Icc (0 : ℝ) T,Supported P V S hS)) (a₀ : Supported P V S hS) : | |
| 76 | + supportedPathAverage P S hS (U.solution f a₀) = | |
| 77 | + U.solution (supportedPathAverage P S hS f) (supportedAverage P S hS a₀) := by | |
| 78 | + apply (U.solution_map U (supportedAverage P S hS) _ f a₀).symm | |
| 79 | + intro t u | |
| 80 | + change liftedOperator P S hS (B t) (supportedAverage P S hS u) = | |
| 81 | + supportedAverage P S hS (liftedOperator P S hS (B t) u) | |
| 82 | + rw [← supportedOperator_eq_square] | |
| 83 | + exact (supportedAverage_operator P S hS (B t) u).symm | |
| 84 | + | |
| 85 | +/-- Zero mean of the data propagates by the proved uniqueness of the actual ODE. -/ | |
| 86 | +theorem solution_average_zero (f : C(Icc (0 : ℝ) T,Supported P V S hS)) | |
| 87 | + (a₀ : Supported P V S hS) | |
| 88 | + (hf : ∀ t, supportedAverage P S hS (f t) = 0) | |
| 89 | + (ha₀ : supportedAverage P S hS a₀ = 0) (t : Icc (0 : ℝ) T) : | |
| 90 | + supportedAverage P S hS (U.solution f a₀ t) = 0 := by | |
| 91 | + have hfp : supportedPathAverage P S hS f = 0 := by | |
| 92 | + apply ContinuousMap.ext | |
| 93 | + exact hf | |
| 94 | + have he := solution_average P S hS T hT B U f a₀ | |
| 95 | + have hz : U.solution 0 0 = 0 := by | |
| 96 | + rw [U.solution_eq_operators, map_zero, map_zero, add_zero] | |
| 97 | + rw [hfp, ha₀, hz] at he | |
| 98 | + exact congrArg (fun p : C(Icc (0 : ℝ) T,Supported P V S hS) => p t) he | |
| 99 | + | |
| 100 | +/-- The same theorem in the ordinary cylinder L² space used by the classical representatives. -/ | |
| 101 | +theorem solution_full_average_zero (f : C(Icc (0 : ℝ) T,Supported P V S hS)) | |
| 102 | + (a₀ : Supported P V S hS) | |
| 103 | + (hf : ∀ t, average P (f t : CylinderL2 P V) = 0) | |
| 104 | + (ha₀ : average P (a₀ : CylinderL2 P V) = 0) (t : Icc (0 : ℝ) T) : | |
| 105 | + average P (U.solution f a₀ t : CylinderL2 P V) = 0 := by | |
| 106 | + have hs := solution_average_zero P S hS T hT B U f a₀ | |
| 107 | + (fun s => Subtype.ext (hf s)) (Subtype.ext ha₀) t | |
| 108 | + exact congrArg (fun u : Supported P V S hS => (u : CylinderL2 P V)) hs | |
| 109 | + | |
| 110 | +end Evolution | |
| 111 | +end EulerCylinderAngleAverage | |
+100 −0 Euler/CylinderAngleAverageRepresentative.lean added View file
| @@ -0,0 +1,100 @@ | ||
| 1 | +import Euler.CylinderAngleAverage | |
| 2 | +import Euler.CylinderAngleRepresentative | |
| 3 | + | |
| 4 | +/-! The actual L² angular average equals the literal mean of every continuous H³ representative. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerCylinderAngleAverage | |
| 9 | + | |
| 10 | +open Set MeasureTheory EulerLiftedGradientSpace EulerCylinderSobolevSpace | |
| 11 | + EulerSobolevPointEvaluation EulerSpatialSobolevInverse EulerPressureSpatialRegularity | |
| 12 | + EulerLpCylinderTranslation | |
| 13 | + | |
| 14 | +variable (P : ℝ) [Fact (0 < P)] | |
| 15 | + | |
| 16 | +theorem average_full_translation (a : LiftDomain P) (u : LiftL2 P) : | |
| 17 | + average P (translation P a u) = translation P a (average P u) := by | |
| 18 | + apply average_intertwines P (translation P a).toContinuousLinearMap | |
| 19 | + intro s v | |
| 20 | + exact translations_commute P a (coveringMap P (0,s)) v | |
| 21 | + | |
| 22 | +def sobolevAverage (q : ℕ) : SobolevSpace P q →L[ℝ] SobolevSpace P q := | |
| 23 | + liftOperator P q (average P) (average_full_translation P) | |
| 24 | + | |
| 25 | +theorem sobolevAverage_norm (q : ℕ) : ‖sobolevAverage P q‖ ≤ 1 := | |
| 26 | + (norm_liftOperator_le P q (average P) (average_full_translation P)).trans (average_norm P) | |
| 27 | + | |
| 28 | +theorem sobolevAngleCurve_continuous {q : ℕ} (u : SobolevSpace P q) : | |
| 29 | + Continuous (fun s : ℝ => sobolevTranslation P q (EulerCylinderAnglePrimitive.angleShift P s) u) := | |
| 30 | + (sobolevTranslation_continuous P u).comp (EulerCylinderAnglePrimitive.angleShift_continuous P) | |
| 31 | + | |
| 32 | +theorem sobolevAverage_eq_integral {q : ℕ} (u : SobolevSpace P q) : | |
| 33 | + sobolevAverage P q u = P⁻¹ • (∫ s in (0 : ℝ)..P, | |
| 34 | + sobolevTranslation P q (EulerCylinderAnglePrimitive.angleShift P s) u) := by | |
| 35 | + apply value_injective P | |
| 36 | + change average P (value P u) = (valueOperator P q) | |
| 37 | + (P⁻¹ • (∫ s in (0 : ℝ)..P, | |
| 38 | + sobolevTranslation P q (EulerCylinderAnglePrimitive.angleShift P s) u)) | |
| 39 | + rw [map_smul, ← (valueOperator P q).intervalIntegral_comp_comm | |
| 40 | + ((sobolevAngleCurve_continuous P u).intervalIntegrable 0 P)] | |
| 41 | + rfl | |
| 42 | + | |
| 43 | +theorem pointEvaluation_average_kernel (u : SobolevSpace P 3) (x : LiftDomain P) : | |
| 44 | + pointEvaluation P x (sobolevAverage P 3 u) = P⁻¹ • (∫ s in (0 : ℝ)..P, | |
| 45 | + representative P u (x+EulerCylinderAnglePrimitive.angleShift P s)) := by | |
| 46 | + rw [sobolevAverage_eq_integral, map_smul, | |
| 47 | + ← (pointEvaluation P x).intervalIntegral_comp_comm | |
| 48 | + ((sobolevAngleCurve_continuous P u).intervalIntegrable 0 P)] | |
| 49 | + congr 1 | |
| 50 | + apply intervalIntegral.integral_congr | |
| 51 | + intro s _ | |
| 52 | + exact EulerCylinderAnglePrimitive.pointEvaluation_translation P u _ x | |
| 53 | + | |
| 54 | +/-- Pointwise identification with the actual normalized angular integral, at every angle. -/ | |
| 55 | +theorem pointEvaluation_average_mean (u : SobolevSpace P 3) | |
| 56 | + (f : LiftDomain P → Vector3) (hf : Continuous f) | |
| 57 | + (hrep : (value P u : LiftDomain P → Vector3)=ᵐ[liftMeasure P] f) | |
| 58 | + (y : Vector3) (θ : ℝ) : | |
| 59 | + pointEvaluation P (y,(θ : AddCircle P)) (sobolevAverage P 3 u) = | |
| 60 | + P⁻¹ • (∫ s in (0 : ℝ)..P, f (y,(s : AddCircle P))) := by | |
| 61 | + rw [pointEvaluation_average_kernel, representative_eq P u f hf hrep] | |
| 62 | + congr 1 | |
| 63 | + simp only [EulerCylinderAnglePrimitive.angleShift, Prod.mk_add_mk, add_zero, ← AddCircle.coe_add] | |
| 64 | + rw [intervalIntegral.integral_comp_add_left (fun s : ℝ => f (y,(s : AddCircle P))) θ] | |
| 65 | + have hp : Function.Periodic (fun s : ℝ => f (y,(s : AddCircle P))) P := by | |
| 66 | + intro s | |
| 67 | + change f (y,((s+P : ℝ) : AddCircle P)) = f (y,(s : AddCircle P)) | |
| 68 | + rw [AddCircle.coe_add_period] | |
| 69 | + simpa only [add_zero, zero_add] using hp.intervalIntegral_add_eq θ 0 | |
| 70 | + | |
| 71 | +/-- The operator's zero kernel is precisely the classical zero-mean condition. -/ | |
| 72 | +theorem average_eq_zero_iff (u : SobolevSpace P 3) | |
| 73 | + (f : LiftDomain P → Vector3) (hf : Continuous f) | |
| 74 | + (hrep : (value P u : LiftDomain P → Vector3)=ᵐ[liftMeasure P] f) : | |
| 75 | + average P (value P u) = 0 ↔ ∀ y, (∫ s in (0 : ℝ)..P, f (y,(s : AddCircle P))) = 0 := by | |
| 76 | + constructor | |
| 77 | + · intro h y | |
| 78 | + have hz : sobolevAverage P 3 u = 0 := by | |
| 79 | + apply value_injective P | |
| 80 | + change average P (value P u) = (valueOperator P 3) 0 | |
| 81 | + simpa only [map_zero] using h | |
| 82 | + have he := pointEvaluation_average_mean P u f hf hrep y 0 | |
| 83 | + rw [hz, map_zero] at he | |
| 84 | + exact (smul_eq_zero.mp he.symm).resolve_left (inv_ne_zero (ne_of_gt (Fact.out : 0 < P))) | |
| 85 | + · intro h | |
| 86 | + have he (x : LiftDomain P) : representative P (sobolevAverage P 3 u) x = 0 := by | |
| 87 | + obtain ⟨θ,hθ⟩ := QuotientAddGroup.mk_surjective x.2 | |
| 88 | + have hx : x=(x.1,(θ : AddCircle P)) := by | |
| 89 | + apply Prod.ext | |
| 90 | + · rfl | |
| 91 | + · exact hθ.symm | |
| 92 | + rw [hx] | |
| 93 | + change pointEvaluation P (x.1,(θ : AddCircle P)) (sobolevAverage P 3 u) = 0 | |
| 94 | + rw [pointEvaluation_average_mean P u f hf hrep, h, smul_zero] | |
| 95 | + apply Lp.ext | |
| 96 | + filter_upwards [representative_ae P (sobolevAverage P 3 u), | |
| 97 | + Lp.coeFn_zero Vector3 2 (liftMeasure P)] with x hx hzero | |
| 98 | + exact hx.trans ((he x).trans hzero.symm) | |
| 99 | + | |
| 100 | +end EulerCylinderAngleAverage | |
+46 −0 Euler/CylinderAngleAverageTime.lean added View file
| @@ -0,0 +1,46 @@ | ||
| 1 | +import Euler.CylinderAngleAverageRepresentative | |
| 2 | +import Euler.CylinderTimeRegularity | |
| 3 | + | |
| 4 | +/-! Actual angular means of the reconstructed continuous-time cylinder fields. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerCylinderAngleAverage | |
| 9 | + | |
| 10 | +open Set MeasureTheory EulerLiftedGradientSpace EulerCylinderSobolevSpace | |
| 11 | + EulerCylinderSmoothOrbit EulerLpCylinderTranslation EulerMetricTransport | |
| 12 | +open scoped ContDiff | |
| 13 | + | |
| 14 | +variable (P : ℝ) [Fact (0 < P)] | |
| 15 | + {K : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 16 | + | |
| 17 | +/-- The actual L² kernel condition and the literal classical mean agree at every time. -/ | |
| 18 | +theorem pointField_mean_zero_iff (p : C(K,LiftL2 P)) | |
| 19 | + (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) (t : K) : | |
| 20 | + average P (p t) = 0 ↔ | |
| 21 | + ∀ y, (∫ s in (0 : ℝ)..P, pointField P p hp t (y,(s : AddCircle P))) = 0 := by | |
| 22 | + have h := average_eq_zero_iff P (sobolevPath P 3 p hp t) (pointField P p hp t) | |
| 23 | + (smoothField_continuous P _ (pointField_smooth P p hp t)) | |
| 24 | + (by simpa only [sobolevPath_value] using pointField_ae P p hp t) | |
| 25 | + simpa only [sobolevPath_value] using h | |
| 26 | + | |
| 27 | +theorem pathAverage_eq_zero_iff (p : C(K,LiftL2 P)) | |
| 28 | + (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) : | |
| 29 | + pathAverage P p = 0 ↔ | |
| 30 | + ∀ t y, (∫ s in (0 : ℝ)..P, pointField P p hp t (y,(s : AddCircle P))) = 0 := by | |
| 31 | + constructor | |
| 32 | + · intro h t | |
| 33 | + apply (pointField_mean_zero_iff P p hp t).mp | |
| 34 | + exact congrArg (fun q : C(K,LiftL2 P) => q t) h | |
| 35 | + · intro h | |
| 36 | + apply ContinuousMap.ext | |
| 37 | + intro t | |
| 38 | + exact (pointField_mean_zero_iff P p hp t).mpr (h t) | |
| 39 | + | |
| 40 | +theorem pathAverage_orbit_contDiff (p : C(K,LiftL2 P)) | |
| 41 | + (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) : | |
| 42 | + ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a (pathAverage P p)) := by | |
| 43 | + simpa only [Function.comp_def, pathAverage_translation] using | |
| 44 | + (pathAverage (K := K) (V := Vector3) P).contDiff.comp hp | |
| 45 | + | |
| 46 | +end EulerCylinderAngleAverage | |
+90 −0 Euler/CylinderAngleEvolution.lean added View file
| @@ -0,0 +1,90 @@ | ||
| 1 | +import Euler.CylinderAngleRepresentative | |
| 2 | +import Euler.CylinderAngleWordBounds | |
| 3 | +import Euler.CylinderTimeRegularity | |
| 4 | + | |
| 5 | +/-! Time differentiation of the actual normalized angular integral on the cylinder. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +namespace EulerCylinderAnglePrimitive | |
| 10 | + | |
| 11 | +open Set MeasureTheory EulerLiftedGradientSpace EulerCylinderSobolevSpace | |
| 12 | + EulerCylinderSmoothOrbit EulerLpCylinderTranslation EulerMetricTransport | |
| 13 | + EulerVolterraConvolution | |
| 14 | +open scoped ContDiff | |
| 15 | + | |
| 16 | +variable (P : ℝ) [Fact (0 < P)] | |
| 17 | + {K : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 18 | + | |
| 19 | +omit [CompactSpace K] in | |
| 20 | +theorem pathPrimitive_translation (p : C(K,LiftL2 P)) (a : LiftTangent) : | |
| 21 | + pathPrimitive P (pathTranslate P a p) = pathTranslate P a (pathPrimitive P p) := by | |
| 22 | + apply ContinuousMap.ext | |
| 23 | + intro t | |
| 24 | + exact primitive_mixed_translation P a (p t) | |
| 25 | + | |
| 26 | +theorem pathPrimitive_orbit_contDiff (p : C(K,LiftL2 P)) | |
| 27 | + (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) : | |
| 28 | + ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a (pathPrimitive P p)) := by | |
| 29 | + simpa only [Function.comp_def, pathPrimitive_translation] using | |
| 30 | + (pathPrimitive (K := K) P).contDiff.comp hp | |
| 31 | + | |
| 32 | +theorem primitive_sobolevPath (p : C(K,LiftL2 P)) | |
| 33 | + (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) (q : ℕ) (t : K) : | |
| 34 | + sobolevPath P q (pathPrimitive P p) (pathPrimitive_orbit_contDiff P p hp) t = | |
| 35 | + sobolevPrimitive P q (sobolevPath P q p hp t) := by | |
| 36 | + apply value_injective P | |
| 37 | + change value P (sobolevPath P q (pathPrimitive P p) _ t) = | |
| 38 | + primitive P (value P (sobolevPath P q p hp t)) | |
| 39 | + rw [sobolevPath_value, sobolevPath_value] | |
| 40 | + rfl | |
| 41 | + | |
| 42 | +/-- The representative of the time-dependent L² primitive is the same explicit angular integral. -/ | |
| 43 | +theorem pointField_primitive_formula (p : C(K,LiftL2 P)) | |
| 44 | + (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) | |
| 45 | + (hmean : ∀ t y, (∫ s in (0 : ℝ)..P, pointField P p hp t (y,(s : AddCircle P)))=0) | |
| 46 | + (t : K) (y : Vector3) (θ : ℝ) : | |
| 47 | + pointField P (pathPrimitive P p) (pathPrimitive_orbit_contDiff P p hp) t (y,(θ : AddCircle P)) = | |
| 48 | + EulerAngleMeanZeroPrimitive.primitive P | |
| 49 | + (fun s => pointField P p hp t (y,(s : AddCircle P))) θ := by | |
| 50 | + unfold pointField | |
| 51 | + rw [primitive_sobolevPath P p hp 3 t] | |
| 52 | + apply pointEvaluation_primitive_classical P (sobolevPath P 3 p hp t) | |
| 53 | + (pointField P p hp t) | |
| 54 | + (smoothField_continuous P _ (pointField_smooth P p hp t)) | |
| 55 | + · simpa only [sobolevPath_value] using pointField_ae P p hp t | |
| 56 | + · exact hmean t | |
| 57 | + | |
| 58 | +section Time | |
| 59 | + | |
| 60 | +variable (T : ℝ) (hT : 0 ≤ T) (p f : C(Icc (0 : ℝ) T,LiftL2 P)) | |
| 61 | + (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) | |
| 62 | + (hf : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a f)) | |
| 63 | + (hd : ∀ t : Icc (0 : ℝ) T, HasDerivWithinAt (extendPath T hT p) (f t) (Icc (0 : ℝ) T) t) | |
| 64 | + | |
| 65 | +include hd in | |
| 66 | +theorem pathPrimitive_time_derivative (t : Icc (0 : ℝ) T) : | |
| 67 | + HasDerivWithinAt (extendPath T hT (pathPrimitive P p)) (pathPrimitive P f t) | |
| 68 | + (Icc (0 : ℝ) T) t := | |
| 69 | + primitive_hasDerivWithinAt P _ t (extendPath T hT p) (f t) (hd t) | |
| 70 | + | |
| 71 | +include hd in | |
| 72 | +/-- The literal primitive differentiates within the closed time interval at every angle. -/ | |
| 73 | +theorem classicalPrimitive_time_derivative | |
| 74 | + (hpm : ∀ t y, (∫ s in (0 : ℝ)..P, pointField P p hp t (y,(s : AddCircle P)))=0) | |
| 75 | + (hfm : ∀ t y, (∫ s in (0 : ℝ)..P, pointField P f hf t (y,(s : AddCircle P)))=0) | |
| 76 | + (t : Icc (0 : ℝ) T) (y : Vector3) (θ : ℝ) : | |
| 77 | + HasDerivWithinAt (fun r => EulerAngleMeanZeroPrimitive.primitive P | |
| 78 | + (fun s => pointField P p hp (projIcc 0 T hT r) (y,(s : AddCircle P))) θ) | |
| 79 | + (EulerAngleMeanZeroPrimitive.primitive P | |
| 80 | + (fun s => pointField P f hf t (y,(s : AddCircle P))) θ) (Icc (0 : ℝ) T) t := by | |
| 81 | + have h := pointField_hasDerivWithinAt P T hT (pathPrimitive P p) (pathPrimitive P f) | |
| 82 | + (pathPrimitive_orbit_contDiff P p hp) (pathPrimitive_orbit_contDiff P f hf) | |
| 83 | + (pathPrimitive_time_derivative P T hT p f hd) t (y,(θ : AddCircle P)) | |
| 84 | + rw [pointField_primitive_formula P f hf hfm t y θ] at h | |
| 85 | + apply h.congr_of_mem _ t.property | |
| 86 | + intro r _ | |
| 87 | + exact (pointField_primitive_formula P p hp hpm (projIcc 0 T hT r) y θ).symm | |
| 88 | + | |
| 89 | +end Time | |
| 90 | +end EulerCylinderAnglePrimitive | |
+104 −0 Euler/CylinderAnglePrimitive.lean added View file
| @@ -0,0 +1,104 @@ | ||
| 1 | +import Euler.CylinderSobolevOperators | |
| 2 | +import Mathlib.MeasureTheory.Integral.IntervalIntegral.Basic | |
| 3 | + | |
| 4 | +/-! A genuine bounded angular primitive on the full cylinder L² space. -/ | |
| 5 | + | |
| 6 | +noncomputable section | |
| 7 | + | |
| 8 | +namespace EulerCylinderAnglePrimitive | |
| 9 | + | |
| 10 | +open Set MeasureTheory EulerLiftedGradientSpace EulerCylinderSobolevSpace | |
| 11 | + EulerSpatialSobolevInverse EulerPressureSpatialRegularity EulerCylinderMollifier | |
| 12 | + | |
| 13 | +variable (P : ℝ) [Fact (0 < P)] | |
| 14 | + | |
| 15 | +def angleShift (s : ℝ) : LiftDomain P := (0,(s : AddCircle P)) | |
| 16 | + | |
| 17 | +omit [Fact (0 < P)] in | |
| 18 | +theorem angleShift_continuous : Continuous (angleShift P) := | |
| 19 | + continuous_const.prodMk (AddCircle.continuous_mk' P) | |
| 20 | + | |
| 21 | +def kernelCurve (u : LiftL2 P) (s : ℝ) : LiftL2 P := | |
| 22 | + s • translation P (angleShift P s) u | |
| 23 | + | |
| 24 | +theorem kernelCurve_continuous (u : LiftL2 P) : Continuous (kernelCurve P u) := | |
| 25 | + continuous_id.smul ((translation_continuous P u).comp (angleShift_continuous P)) | |
| 26 | + | |
| 27 | +def kernelIntegral (u : LiftL2 P) : LiftL2 P := P⁻¹ • (∫ s in (0 : ℝ)..P, kernelCurve P u s) | |
| 28 | + | |
| 29 | +theorem kernelIntegral_add (u v : LiftL2 P) : | |
| 30 | + kernelIntegral P (u+v) = kernelIntegral P u+kernelIntegral P v := by | |
| 31 | + have he : kernelCurve P (u+v) = kernelCurve P u+kernelCurve P v := by | |
| 32 | + funext s | |
| 33 | + simp only [kernelCurve, map_add, smul_add, Pi.add_apply] | |
| 34 | + rw [kernelIntegral, he] | |
| 35 | + simp only [Pi.add_apply] | |
| 36 | + rw [intervalIntegral.integral_add | |
| 37 | + ((kernelCurve_continuous P u).intervalIntegrable 0 P) | |
| 38 | + ((kernelCurve_continuous P v).intervalIntegrable 0 P), smul_add] | |
| 39 | + rfl | |
| 40 | + | |
| 41 | +theorem kernelIntegral_smul (r : ℝ) (u : LiftL2 P) : | |
| 42 | + kernelIntegral P (r • u) = r • kernelIntegral P u := by | |
| 43 | + have he : kernelCurve P (r • u) = r • kernelCurve P u := by | |
| 44 | + funext s | |
| 45 | + change s • translation P (angleShift P s) (r • u) = r • (s • translation P (angleShift P s) u) | |
| 46 | + rw [map_smul, smul_comm s r] | |
| 47 | + rw [kernelIntegral, he] | |
| 48 | + simp only [Pi.smul_apply] | |
| 49 | + rw [intervalIntegral.integral_smul, smul_comm P⁻¹ r] | |
| 50 | + rfl | |
| 51 | + | |
| 52 | +theorem kernelIntegral_norm (u : LiftL2 P) : ‖kernelIntegral P u‖ ≤ P*‖u‖ := by | |
| 53 | + have hP : 0 < P := Fact.out | |
| 54 | + have hb : ‖∫ s in (0 : ℝ)..P, kernelCurve P u s‖ ≤ (P*‖u‖)*P := by | |
| 55 | + have h := intervalIntegral.norm_integral_le_of_norm_le_const | |
| 56 | + (a := (0 : ℝ)) (b := P) (f := kernelCurve P u) (C := P*‖u‖) (fun s hs => by | |
| 57 | + rw [uIoc_of_le hP.le] at hs | |
| 58 | + simp only [kernelCurve, norm_smul, Real.norm_eq_abs, abs_of_pos hs.1, | |
| 59 | + (translation P (angleShift P s)).norm_map] | |
| 60 | + exact mul_le_mul_of_nonneg_right hs.2 (norm_nonneg u)) | |
| 61 | + simpa only [sub_zero, abs_of_pos hP] using h | |
| 62 | + change ‖P⁻¹ • (∫ s in (0 : ℝ)..P, kernelCurve P u s)‖ ≤ _ | |
| 63 | + rw [norm_smul, Real.norm_eq_abs, abs_of_pos (inv_pos.mpr hP)] | |
| 64 | + calc | |
| 65 | + _ ≤ P⁻¹*((P*‖u‖)*P) := mul_le_mul_of_nonneg_left hb (inv_nonneg.mpr hP.le) | |
| 66 | + _ = P*‖u‖ := by field_simp | |
| 67 | + | |
| 68 | +def primitiveLinear : LiftL2 P →ₗ[ℝ] LiftL2 P where | |
| 69 | + toFun := kernelIntegral P | |
| 70 | + map_add' := kernelIntegral_add P | |
| 71 | + map_smul' := kernelIntegral_smul P | |
| 72 | + | |
| 73 | +def primitive : LiftL2 P →L[ℝ] LiftL2 P := | |
| 74 | + (primitiveLinear P).mkContinuous P (kernelIntegral_norm P) | |
| 75 | + | |
| 76 | +@[simp] theorem primitive_apply (u : LiftL2 P) : primitive P u = kernelIntegral P u := rfl | |
| 77 | + | |
| 78 | +theorem primitive_norm : ‖primitive P‖ ≤ P := | |
| 79 | + ContinuousLinearMap.opNorm_le_bound _ (le_of_lt (Fact.out : 0 < P)) (kernelIntegral_norm P) | |
| 80 | + | |
| 81 | +/-- The actual angular operator commutes with all spatial and angular translations. -/ | |
| 82 | +theorem primitive_translation (a : LiftDomain P) (u : LiftL2 P) : | |
| 83 | + primitive P (translation P a u) = translation P a (primitive P u) := by | |
| 84 | + change P⁻¹ • (∫ s in (0 : ℝ)..P, kernelCurve P (translation P a u) s) = | |
| 85 | + translation P a (P⁻¹ • (∫ s in (0 : ℝ)..P, kernelCurve P u s)) | |
| 86 | + rw [map_smul] | |
| 87 | + change P⁻¹ • _ = P⁻¹ • (translation P a).toContinuousLinearMap _ | |
| 88 | + rw [← (translation P a).toContinuousLinearMap.intervalIntegral_comp_comm | |
| 89 | + ((kernelCurve_continuous P u).intervalIntegrable 0 P)] | |
| 90 | + congr 1 | |
| 91 | + apply intervalIntegral.integral_congr | |
| 92 | + intro s _ | |
| 93 | + change s • translation P (angleShift P s) (translation P a u) = | |
| 94 | + translation P a (s • translation P (angleShift P s) u) | |
| 95 | + rw [map_smul, translations_commute P (angleShift P s) a u] | |
| 96 | + | |
| 97 | +/-- This same operator acts on every genuine Sobolev derivative coordinate. -/ | |
| 98 | +def sobolevPrimitive (q : ℕ) : SobolevSpace P q →L[ℝ] SobolevSpace P q := | |
| 99 | + liftOperator P q (primitive P) (primitive_translation P) | |
| 100 | + | |
| 101 | +theorem sobolevPrimitive_norm (q : ℕ) : ‖sobolevPrimitive P q‖ ≤ P := | |
| 102 | + (norm_liftOperator_le P q (primitive P) (primitive_translation P)).trans (primitive_norm P) | |
| 103 | + | |
| 104 | +end EulerCylinderAnglePrimitive | |
+91 −0 Euler/CylinderAngleRepresentative.lean added View file
| @@ -0,0 +1,91 @@ | ||
| 1 | +import Euler.CylinderAnglePrimitive | |
| 2 | +import Euler.AnglePrimitiveKernel | |
| 3 | +import Euler.SobolevPointEvaluation | |
| 4 | + | |
| 5 | +/-! The genuine cylinder L² angular operator represents the literal classical primitive. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +namespace EulerCylinderAnglePrimitive | |
| 10 | + | |
| 11 | +open Set MeasureTheory EulerLiftedGradientSpace EulerCylinderSobolevSpace | |
| 12 | + EulerSobolevPointEvaluation EulerSpatialSobolevInverse EulerPressureSpatialRegularity | |
| 13 | + | |
| 14 | +variable (P : ℝ) [Fact (0 < P)] | |
| 15 | + | |
| 16 | +theorem sobolevKernel_continuous {q : ℕ} (u : SobolevSpace P q) : | |
| 17 | + Continuous (fun s : ℝ => s • sobolevTranslation P q (angleShift P s) u) := | |
| 18 | + continuous_id.smul ((sobolevTranslation_continuous P u).comp (angleShift_continuous P)) | |
| 19 | + | |
| 20 | +/-- The lifted operator is also the actual Bochner integral in the Sobolev space. -/ | |
| 21 | +theorem sobolevPrimitive_eq_integral {q : ℕ} (u : SobolevSpace P q) : | |
| 22 | + sobolevPrimitive P q u = P⁻¹ • (∫ s in (0 : ℝ)..P, s • sobolevTranslation P q (angleShift P s) u) := by | |
| 23 | + apply value_injective P | |
| 24 | + change primitive P (value P u) = (valueOperator P q) | |
| 25 | + (P⁻¹ • (∫ s in (0 : ℝ)..P, s • sobolevTranslation P q (angleShift P s) u)) | |
| 26 | + rw [map_smul, ← (valueOperator P q).intervalIntegral_comp_comm | |
| 27 | + ((sobolevKernel_continuous P u).intervalIntegrable 0 P)] | |
| 28 | + change P⁻¹ • (∫ s in (0 : ℝ)..P, kernelCurve P (value P u) s) = _ | |
| 29 | + congr 1 | |
| 30 | + | |
| 31 | +theorem pointEvaluation_translation (u : SobolevSpace P 3) (a x : LiftDomain P) : | |
| 32 | + pointEvaluation P x (sobolevTranslation P 3 a u) = representative P u (x+a) := by | |
| 33 | + apply pointEvaluation_eq P x (sobolevTranslation P 3 a u) | |
| 34 | + (fun y => representative P u (y+a)) | |
| 35 | + ((representative_continuous P u).comp (continuous_id.add continuous_const)) | |
| 36 | + filter_upwards [translation_ae P a (value P u), | |
| 37 | + (measurePreserving_translation P a).quasiMeasurePreserving.ae (representative_ae P u)] with y hy hr | |
| 38 | + change translation P a (value P u) y = _ | |
| 39 | + exact hy.trans hr | |
| 40 | + | |
| 41 | +theorem pointEvaluation_primitive_kernel (u : SobolevSpace P 3) (x : LiftDomain P) : | |
| 42 | + pointEvaluation P x (sobolevPrimitive P 3 u) = | |
| 43 | + P⁻¹ • (∫ s in (0 : ℝ)..P, s • representative P u (x+angleShift P s)) := by | |
| 44 | + rw [sobolevPrimitive_eq_integral, map_smul, | |
| 45 | + ← (pointEvaluation P x).intervalIntegral_comp_comm | |
| 46 | + ((sobolevKernel_continuous P u).intervalIntegrable 0 P)] | |
| 47 | + congr 1 | |
| 48 | + apply intervalIntegral.integral_congr | |
| 49 | + intro s _ | |
| 50 | + change pointEvaluation P x (s • sobolevTranslation P 3 (angleShift P s) u) = | |
| 51 | + s • representative P u (x+angleShift P s) | |
| 52 | + rw [map_smul, pointEvaluation_translation] | |
| 53 | + | |
| 54 | +/-- Evaluation of the constructed L² operator gives the actual normalized integral. -/ | |
| 55 | +theorem pointEvaluation_primitive_classical (u : SobolevSpace P 3) | |
| 56 | + (f : LiftDomain P → Vector3) (hf : Continuous f) | |
| 57 | + (hrep : (value P u : LiftDomain P → Vector3)=ᵐ[liftMeasure P] f) | |
| 58 | + (hmean : ∀ y, (∫ s in (0 : ℝ)..P, f (y,(s : AddCircle P)))=0) | |
| 59 | + (y : Vector3) (θ : ℝ) : | |
| 60 | + pointEvaluation P (y,(θ : AddCircle P)) (sobolevPrimitive P 3 u) = | |
| 61 | + EulerAngleMeanZeroPrimitive.primitive P (fun s => f (y,(s : AddCircle P))) θ := by | |
| 62 | + rw [pointEvaluation_primitive_kernel, representative_eq P u f hf hrep] | |
| 63 | + have hp : Function.Periodic (fun s : ℝ => f (y,(s : AddCircle P))) P := by | |
| 64 | + intro s | |
| 65 | + change f (y,((s+P : ℝ) : AddCircle P)) = f (y,(s : AddCircle P)) | |
| 66 | + rw [AddCircle.coe_add_period] | |
| 67 | + have h := EulerAngleMeanZeroPrimitive.primitive_eq_translation_kernel P | |
| 68 | + (ne_of_gt (Fact.out : 0 < P)) (fun s => f (y,(s : AddCircle P))) | |
| 69 | + (hf.comp (continuous_const.prodMk (AddCircle.continuous_mk' P))) hp (hmean y) θ | |
| 70 | + simpa only [angleShift, Prod.mk_add_mk, add_zero, AddCircle.coe_add] using h.symm | |
| 71 | + | |
| 72 | +/-- Classical identification holds as equality of actual L² representatives. -/ | |
| 73 | +theorem primitive_ae_classical (u : SobolevSpace P 3) | |
| 74 | + (f q : LiftDomain P → Vector3) (hf : Continuous f) | |
| 75 | + (hrep : (value P u : LiftDomain P → Vector3)=ᵐ[liftMeasure P] f) | |
| 76 | + (hmean : ∀ y, (∫ s in (0 : ℝ)..P, f (y,(s : AddCircle P)))=0) | |
| 77 | + (hq : ∀ (y : Vector3) (θ : ℝ), q (y,(θ : AddCircle P)) = | |
| 78 | + EulerAngleMeanZeroPrimitive.primitive P (fun s => f (y,(s : AddCircle P))) θ) : | |
| 79 | + (primitive P (value P u) : LiftDomain P → Vector3)=ᵐ[liftMeasure P] q := by | |
| 80 | + have he (x : LiftDomain P) : representative P (sobolevPrimitive P 3 u) x = q x := by | |
| 81 | + obtain ⟨θ,hθ⟩ := QuotientAddGroup.mk_surjective x.2 | |
| 82 | + have hx : x=(x.1,(θ : AddCircle P)) := by | |
| 83 | + apply Prod.ext | |
| 84 | + · rfl | |
| 85 | + · exact hθ.symm | |
| 86 | + rw [hx] | |
| 87 | + exact (pointEvaluation_primitive_classical P u f hf hrep hmean x.1 θ).trans (hq x.1 θ).symm | |
| 88 | + filter_upwards [representative_ae P (sobolevPrimitive P 3 u)] with x hx | |
| 89 | + exact hx.trans (he x) | |
| 90 | + | |
| 91 | +end EulerCylinderAnglePrimitive | |
+82 −0 Euler/CylinderAngleWordBounds.lean added View file
| @@ -0,0 +1,82 @@ | ||
| 1 | +import Euler.CylinderAnglePrimitive | |
| 2 | +import Euler.ParameterSobolevProductGevrey | |
| 3 | +import Euler.LpCylinderOrbit | |
| 4 | + | |
| 5 | +/-! Same-radius mixed-word and continuous-time estimates for the actual angular operator. -/ | |
| 6 | + | |
| 7 | +noncomputable section | |
| 8 | + | |
| 9 | +namespace EulerCylinderAnglePrimitive | |
| 10 | + | |
| 11 | +open Set MeasureTheory EulerLiftedGradientSpace EulerParameterWordGevrey EulerGevrey | |
| 12 | + EulerLpCylinderTranslation | |
| 13 | +open scoped ContDiff | |
| 14 | + | |
| 15 | +variable (P : ℝ) [Fact (0 < P)] | |
| 16 | + | |
| 17 | +theorem primitive_hasDerivWithinAt (s : Set ℝ) (t : ℝ) (u : ℝ → LiftL2 P) | |
| 18 | + (ut : LiftL2 P) (hu : HasDerivWithinAt u ut s t) : | |
| 19 | + HasDerivWithinAt (fun r => primitive P (u r)) (primitive P ut) s t := | |
| 20 | + (primitive P).hasFDerivAt.comp_hasDerivWithinAt t hu | |
| 21 | + | |
| 22 | +theorem primitive_mixed_translation (a : LiftTangent) (u : LiftL2 P) : | |
| 23 | + primitive P (translate P a u) = translate P a (primitive P u) := | |
| 24 | + primitive_translation P _ u | |
| 25 | + | |
| 26 | +variable {X ι : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] [Fintype ι] | |
| 27 | + | |
| 28 | +theorem primitive_block_bound (directions : ι → X) (q : ℕ) | |
| 29 | + (f : X → LiftL2 P) (hf : ContDiff ℝ ∞ f) (n : ℕ) (x : X) : | |
| 30 | + block directions q (fun y => primitive P (f y)) n x ≤ P*block directions q f n x := | |
| 31 | + (block_comp_clm_le directions q (primitive P) f hf n x).trans | |
| 32 | + (mul_le_mul_of_nonneg_right (primitive_norm P) (block_nonneg directions q f n x)) | |
| 33 | + | |
| 34 | +theorem primitive_block_majorant (directions : ι → X) (q : ℕ) | |
| 35 | + (f : X → LiftL2 P) (hf : ContDiff ℝ ∞ f) (R C : ℝ) (d : ℕ) | |
| 36 | + (hb : ∀ n x, block directions q f n x ≤ C*majorant R d n) (n : ℕ) (x : X) : | |
| 37 | + block directions q (fun y => primitive P (f y)) n x ≤ (P*C)*majorant R d n := | |
| 38 | + (primitive_block_bound P directions q f hf n x).trans | |
| 39 | + ((mul_le_mul_of_nonneg_left (hb n x) (le_of_lt (Fact.out : 0 < P))).trans_eq | |
| 40 | + (mul_assoc P C _).symm) | |
| 41 | + | |
| 42 | +variable {K : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 43 | + | |
| 44 | +private local instance : NormedAddCommGroup C(K,LiftL2 P) := inferInstance | |
| 45 | +private local instance : NormedSpace ℝ C(K,LiftL2 P) := inferInstance | |
| 46 | +private local instance : NormedAddCommGroup (C(K,LiftL2 P) →L[ℝ] C(K,LiftL2 P)) := inferInstance | |
| 47 | +private local instance : NormedSpace ℝ (C(K,LiftL2 P) →L[ℝ] C(K,LiftL2 P)) := inferInstance | |
| 48 | + | |
| 49 | +def pathPrimitive : C(K,LiftL2 P) →L[ℝ] C(K,LiftL2 P) := | |
| 50 | + (primitive P).compLeftContinuous ℝ K | |
| 51 | + | |
| 52 | +omit [CompactSpace K] in | |
| 53 | +@[simp] theorem pathPrimitive_apply (u : C(K,LiftL2 P)) (t : K) : | |
| 54 | + pathPrimitive P u t = primitive P (u t) := rfl | |
| 55 | + | |
| 56 | +theorem pathPrimitive_norm : ‖pathPrimitive (K := K) P‖ ≤ P := by | |
| 57 | + have hP : 0 ≤ P := le_of_lt (Fact.out : 0 < P) | |
| 58 | + apply ContinuousLinearMap.opNorm_le_bound _ hP | |
| 59 | + intro u | |
| 60 | + apply (ContinuousMap.norm_le _ (mul_nonneg hP (norm_nonneg u))).mpr | |
| 61 | + intro t | |
| 62 | + exact ((primitive P).le_of_opNorm_le (primitive_norm P) (u t)).trans | |
| 63 | + (mul_le_mul_of_nonneg_left (u.norm_coe_le_norm t) hP) | |
| 64 | + | |
| 65 | +/-- The angular operation preserves the same fixed base order and radius in the true time supremum. -/ | |
| 66 | +theorem pathPrimitive_block_bound (directions : ι → X) (q : ℕ) | |
| 67 | + (f : X → C(K,LiftL2 P)) (hf : ContDiff ℝ ∞ f) (n : ℕ) (x : X) : | |
| 68 | + block directions q (fun y => pathPrimitive P (f y)) n x ≤ P*block directions q f n x := by | |
| 69 | + have h := block_comp_clm_le (E := C(K,LiftL2 P)) (F := C(K,LiftL2 P)) | |
| 70 | + directions q (pathPrimitive (K := K) P) f hf n x | |
| 71 | + have hn : ‖pathPrimitive (K := K) P‖ ≤ P := pathPrimitive_norm P | |
| 72 | + exact h.trans (mul_le_mul_of_nonneg_right hn (block_nonneg directions q f n x)) | |
| 73 | + | |
| 74 | +theorem pathPrimitive_block_majorant (directions : ι → X) (q : ℕ) | |
| 75 | + (f : X → C(K,LiftL2 P)) (hf : ContDiff ℝ ∞ f) (R C : ℝ) (d : ℕ) | |
| 76 | + (hb : ∀ n x, block directions q f n x ≤ C*majorant R d n) (n : ℕ) (x : X) : | |
| 77 | + block directions q (fun y => pathPrimitive P (f y)) n x ≤ (P*C)*majorant R d n := | |
| 78 | + (pathPrimitive_block_bound P directions q f hf n x).trans | |
| 79 | + ((mul_le_mul_of_nonneg_left (hb n x) (le_of_lt (Fact.out : 0 < P))).trans_eq | |
| 80 | + (mul_assoc P C _).symm) | |
| 81 | + | |
| 82 | +end EulerCylinderAnglePrimitive | |
+132 −0 Euler/CylinderBoundedCover.lean added View file
| @@ -0,0 +1,132 @@ | ||
| 1 | +import Euler.CylinderSobolevWordBounds | |
| 2 | +import Euler.SobolevJointEvaluation | |
| 3 | + | |
| 4 | +/-! The real periodic lift of a genuine cylinder H3 field is bounded and | |
| 5 | +continuous. This construction uses the cylinder norm, never an L² norm on | |
| 6 | +the full real covering space. -/ | |
| 7 | + | |
| 8 | +noncomputable section | |
| 9 | + | |
| 10 | + | |
| 11 | +namespace EulerCylinderBoundedCover | |
| 12 | + | |
| 13 | +open Set MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace | |
| 14 | + EulerCylinderSobolevSpace EulerCylinderSmoothOrbit EulerLpCylinderTranslation | |
| 15 | +open scoped ContDiff BoundedContinuousFunction | |
| 16 | + | |
| 17 | +variable (P : ℝ) [Fact (0 < P)] | |
| 18 | + | |
| 19 | +private local instance : NormedAddCommGroup (SobolevSpace P 3) := inferInstance | |
| 20 | +private local instance : NormedSpace ℝ (SobolevSpace P 3) := inferInstance | |
| 21 | +private local instance : NormedAddCommGroup (LiftTangent →ᵇ Space) := inferInstance | |
| 22 | +private local instance : NormedSpace ℝ (LiftTangent →ᵇ Space) := inferInstance | |
| 23 | + | |
| 24 | +def cover (u : SobolevSpace P 3) : LiftTangent →ᵇ Space := | |
| 25 | + BoundedContinuousFunction.ofNormedAddCommGroup | |
| 26 | + (fun x => EulerSobolevPointEvaluation.pointEvaluation P (coveringMap P x) u) | |
| 27 | + ((EulerSobolevPointEvaluation.representative_continuous P u).comp | |
| 28 | + (coveringMap_isOpenQuotient P).continuous) | |
| 29 | + (sobolevEmbeddingConstant P 3 * ‖u‖) | |
| 30 | + (fun x => EulerSobolevPointEvaluation.representative_bound P u (coveringMap P x)) | |
| 31 | + | |
| 32 | +@[simp] theorem cover_apply (u : SobolevSpace P 3) (x : LiftTangent) : | |
| 33 | + cover P u x = EulerSobolevPointEvaluation.pointEvaluation P (coveringMap P x) u := rfl | |
| 34 | + | |
| 35 | +theorem cover_norm_le (u : SobolevSpace P 3) : | |
| 36 | + ‖cover P u‖ ≤ sobolevEmbeddingConstant P 3 * ‖u‖ := by | |
| 37 | + apply (BoundedContinuousFunction.norm_le | |
| 38 | + (mul_nonneg (sobolevEmbeddingConstant_nonneg P 3) (norm_nonneg u))).2 | |
| 39 | + intro x | |
| 40 | + exact EulerSobolevPointEvaluation.representative_bound P u (coveringMap P x) | |
| 41 | + | |
| 42 | +def coverLinear : SobolevSpace P 3 →ₗ[ℝ] (LiftTangent →ᵇ Space) where | |
| 43 | + toFun := cover P | |
| 44 | + map_add' u v := by | |
| 45 | + apply BoundedContinuousFunction.ext | |
| 46 | + intro x | |
| 47 | + exact (EulerSobolevPointEvaluation.pointEvaluation P (coveringMap P x)).map_add u v | |
| 48 | + map_smul' c u := by | |
| 49 | + apply BoundedContinuousFunction.ext | |
| 50 | + intro x | |
| 51 | + exact (EulerSobolevPointEvaluation.pointEvaluation P (coveringMap P x)).map_smul c u | |
| 52 | + | |
| 53 | +def coverMap : SobolevSpace P 3 →L[ℝ] (LiftTangent →ᵇ Space) where | |
| 54 | + toLinearMap := coverLinear P | |
| 55 | + cont := AddMonoidHomClass.continuous_of_bound (coverLinear P) | |
| 56 | + (sobolevEmbeddingConstant P 3) (cover_norm_le P) | |
| 57 | + | |
| 58 | +theorem coverMap_norm_le : ‖coverMap P‖ ≤ sobolevEmbeddingConstant P 3 := by | |
| 59 | + apply opNorm_le_bound _ (sobolevEmbeddingConstant_nonneg P 3) | |
| 60 | + exact cover_norm_le P | |
| 61 | + | |
| 62 | +variable {K : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 63 | + | |
| 64 | +private local instance : NormedAddCommGroup C(K, SobolevSpace P 3) := inferInstance | |
| 65 | +private local instance : NormedSpace ℝ C(K, SobolevSpace P 3) := inferInstance | |
| 66 | +private local instance : NormedAddCommGroup C(K, LiftTangent →ᵇ Space) := inferInstance | |
| 67 | +private local instance : NormedSpace ℝ C(K, LiftTangent →ᵇ Space) := inferInstance | |
| 68 | + | |
| 69 | +def coverPathMap : C(K, SobolevSpace P 3) →L[ℝ] C(K, LiftTangent →ᵇ Space) := | |
| 70 | + (coverMap P).compLeftContinuous ℝ K | |
| 71 | + | |
| 72 | +theorem coverPathMap_norm_le : | |
| 73 | + ‖coverPathMap (K := K) P‖ ≤ sobolevEmbeddingConstant P 3 := by | |
| 74 | + apply opNorm_le_bound _ (sobolevEmbeddingConstant_nonneg P 3) | |
| 75 | + intro p | |
| 76 | + apply (ContinuousMap.norm_le _ | |
| 77 | + (mul_nonneg (sobolevEmbeddingConstant_nonneg P 3) (norm_nonneg p))).2 | |
| 78 | + intro t | |
| 79 | + exact (cover_norm_le P (p t)).trans | |
| 80 | + (mul_le_mul_of_nonneg_left (p.norm_coe_le_norm t) (sobolevEmbeddingConstant_nonneg P 3)) | |
| 81 | + | |
| 82 | +def coverPath (p : C(K, LiftL2 P)) | |
| 83 | + (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) : | |
| 84 | + C(K, LiftTangent →ᵇ Space) := coverPathMap P (sobolevPath P 3 p hp) | |
| 85 | + | |
| 86 | +@[simp] theorem coverPath_apply (p : C(K, LiftL2 P)) | |
| 87 | + (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) | |
| 88 | + (t : K) (x : LiftTangent) : | |
| 89 | + coverPath P p hp t x = pointField P p hp t (coveringMap P x) := rfl | |
| 90 | + | |
| 91 | +def coverOrbit (p : C(K, LiftL2 P)) | |
| 92 | + (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) | |
| 93 | + (a : LiftTangent) : C(K, LiftTangent →ᵇ Space) := | |
| 94 | + coverPathMap P (sobolevOrbit P 3 p hp a) | |
| 95 | + | |
| 96 | +theorem coverOrbit_contDiff (p : C(K, LiftL2 P)) | |
| 97 | + (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) : | |
| 98 | + ContDiff ℝ ∞ (coverOrbit P p hp) := | |
| 99 | + (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) | |
| 100 | + (E := C(K, SobolevSpace P 3)) (F := C(K, LiftTangent →ᵇ Space)) | |
| 101 | + (coverPathMap (K := K) P)).comp (sobolevOrbit_contDiff P 3 p hp) | |
| 102 | + | |
| 103 | +theorem coverOrbit_apply (p : C(K, LiftL2 P)) | |
| 104 | + (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) | |
| 105 | + (a : LiftTangent) (t : K) (x : LiftTangent) : | |
| 106 | + coverOrbit P p hp a t x = coverPath P p hp t (x+a) := by | |
| 107 | + have hc : Continuous (pointField P p hp t) := | |
| 108 | + EulerSobolevPointEvaluation.representative_continuous P (sobolevPath P 3 p hp t) | |
| 109 | + have he := EulerSobolevPointEvaluation.pointEvaluation_eq P (coveringMap P x) | |
| 110 | + (sobolevOrbit P 3 p hp a t) | |
| 111 | + (fun y => pointField P p hp t (y + coveringMap P a)) | |
| 112 | + (hc.comp (continuous_id.add continuous_const)) | |
| 113 | + (by | |
| 114 | + rw [sobolevOrbit_value] | |
| 115 | + exact (translate_ae P a (p t)).trans | |
| 116 | + ((measurePreserving_translation P (coveringMap P a)).quasiMeasurePreserving.ae | |
| 117 | + (pointField_ae P p hp t))) | |
| 118 | + change EulerSobolevPointEvaluation.pointEvaluation P (coveringMap P x) | |
| 119 | + (sobolevOrbit P 3 p hp a t) = pointField P p hp t (coveringMap P (x+a)) | |
| 120 | + rw [coveringMap_add] | |
| 121 | + exact he | |
| 122 | + | |
| 123 | +@[simp] theorem coverOrbit_zero (p : C(K, LiftL2 P)) | |
| 124 | + (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) : | |
| 125 | + coverOrbit P p hp 0 = coverPath P p hp := by | |
| 126 | + apply ContinuousMap.ext | |
| 127 | + intro t | |
| 128 | + apply BoundedContinuousFunction.ext | |
| 129 | + intro x | |
| 130 | + simpa only [add_zero] using coverOrbit_apply P p hp 0 t x | |
| 131 | + | |
| 132 | +end EulerCylinderBoundedCover | |
+98 −0 Euler/CylinderClassicalSolenoidal.lean added View file
| @@ -0,0 +1,98 @@ | ||
| 1 | +import Euler.ClassicalDivergence | |
| 2 | + | |
| 3 | +/-! Classical lifted divergence zero implies membership in the actual closed L² constraint space. -/ | |
| 4 | + | |
| 5 | +noncomputable section | |
| 6 | + | |
| 7 | +namespace EulerCylinderClassicalSolenoidal | |
| 8 | + | |
| 9 | +open Set MeasureTheory InnerProductSpace ContinuousLinearMap EulerLiftedGradientSpace | |
| 10 | + EulerMetricTransport EulerTransportDerivatives EulerLiftedWeakDerivative | |
| 11 | + EulerClassicalPressureCurl EulerLiftedCurl | |
| 12 | +open scoped ContDiff | |
| 13 | + | |
| 14 | +variable (P : ℝ) [Fact (0 < P)] | |
| 15 | + | |
| 16 | +theorem mem_of_test_integral (κ : ℝ) (m : Vector3) (u : LiftL2 P) | |
| 17 | + (h : ∀ φ : LiftDomain P → ℝ, | |
| 18 | + (HasCompactSupport φ ∧ ∀ x, ContDiff ℝ ∞ (localLift P φ x)) → | |
| 19 | + (∫ x, inner ℝ (liftedGradient P κ m φ x) (u x) ∂liftMeasure P) = 0) : | |
| 20 | + u ∈ divergenceFreeSpace P κ m := by | |
| 21 | + let K := (innerSL ℝ u).ker | |
| 22 | + have hg : Submodule.span ℝ {g : LiftL2 P | ∃ φ : LiftDomain P → ℝ, | |
| 23 | + (HasCompactSupport φ ∧ ∀ x, ContDiff ℝ ∞ (localLift P φ x)) ∧ | |
| 24 | + g =ᵐ[liftMeasure P] liftedGradient P κ m φ} ≤ K := by | |
| 25 | + apply Submodule.span_le.mpr | |
| 26 | + rintro g ⟨φ,hφ,hgφ⟩ | |
| 27 | + change inner ℝ u g = 0 | |
| 28 | + rw [real_inner_comm,MeasureTheory.L2.inner_def] | |
| 29 | + calc | |
| 30 | + _ = ∫ x, inner ℝ (liftedGradient P κ m φ x) (u x) ∂liftMeasure P := by | |
| 31 | + apply integral_congr_ae | |
| 32 | + filter_upwards [hgφ] with x hx | |
| 33 | + rw [hx] | |
| 34 | + _ = 0 := h φ hφ | |
| 35 | + have hc : gradientSpace P κ m ≤ K := | |
| 36 | + (Submodule.topologicalClosure_minimal _ hg (innerSL ℝ u).isClosed_ker) | |
| 37 | + intro g hg' | |
| 38 | + rw [real_inner_comm] | |
| 39 | + exact hc hg' | |
| 40 | + | |
| 41 | +theorem mem_of_classical (κ : ℝ) (m : Vector3) (u : LiftL2 P) | |
| 42 | + (f : LiftDomain P → Vector3) | |
| 43 | + (hrep : (u : LiftDomain P → Vector3) =ᵐ[liftMeasure P] f) | |
| 44 | + (hf : ∀ x, ContDiff ℝ ∞ (localFieldLift P f x)) | |
| 45 | + (hdiv : ∀ x, (∑ i : Fin 3, (fieldDerivative P (coordinateDirection κ m i) f x) i) = 0) : | |
| 46 | + u ∈ divergenceFreeSpace P κ m := by | |
| 47 | + apply mem_of_test_integral P κ m u | |
| 48 | + intro ψ hψ | |
| 49 | + let fi := fun (i : Fin 3) (x : LiftDomain P) => f x i | |
| 50 | + let di := fun (i : Fin 3) => fieldDerivative P (coordinateDirection κ m i) (fi i) | |
| 51 | + have hfi (i : Fin 3) : ∀ x, ContDiff ℝ ∞ (localFieldLift P (fi i) x) := | |
| 52 | + fun x => (EuclideanSpace.proj i : Vector3 →L[ℝ] ℝ).contDiff.comp (hf x) | |
| 53 | + have hdi (i : Fin 3) : ∀ x, ContDiff ℝ ∞ (localFieldLift P (di i) x) := | |
| 54 | + fieldDerivative_smooth P (coordinateDirection κ m i) (fi i) (hfi i) | |
| 55 | + have hs (x : LiftDomain P) : (∑ i : Fin 3, di i x) = 0 := by | |
| 56 | + calc | |
| 57 | + _ = ∑ i : Fin 3, (fieldDerivative P (coordinateDirection κ m i) f x) i := by | |
| 58 | + apply Finset.sum_congr rfl | |
| 59 | + intro i _ | |
| 60 | + exact fieldDerivative_linear P (EuclideanSpace.proj i) f hf (coordinateDirection κ m i) x | |
| 61 | + _ = 0 := hdiv x | |
| 62 | + have hI (i : Fin 3) := scalar_product_integrable P (di i) ψ (hdi i) hψ.2 hψ.1 | |
| 63 | + have hJ (i : Fin 3) := scalar_product_integrable P (fi i) | |
| 64 | + (fieldDerivative P (coordinateDirection κ m i) ψ) (hfi i) | |
| 65 | + (fieldDerivative_smooth P (coordinateDirection κ m i) ψ hψ.2) | |
| 66 | + (fieldDerivative_compact P (coordinateDirection κ m i) ψ hψ.1) | |
| 67 | + calc | |
| 68 | + _ = ∫ x, ∑ i : Fin 3, fi i x * fieldDerivative P (coordinateDirection κ m i) ψ x | |
| 69 | + ∂liftMeasure P := by | |
| 70 | + apply integral_congr_ae | |
| 71 | + filter_upwards [hrep] with x hx | |
| 72 | + rw [hx,EuclideanSpace.inner_eq_star_dotProduct] | |
| 73 | + change (∑ i : Fin 3, f x i * liftedGradient P κ m ψ x i) = _ | |
| 74 | + simp_rw [liftedGradient_component] | |
| 75 | + rfl | |
| 76 | + _ = ∑ i : Fin 3, ∫ x, fi i x * fieldDerivative P (coordinateDirection κ m i) ψ x | |
| 77 | + ∂liftMeasure P := integral_finsetSum _ (fun i _ => hJ i) | |
| 78 | + _ = -(∑ i : Fin 3, ∫ x, di i x * ψ x ∂liftMeasure P) := by | |
| 79 | + rw [← Finset.sum_neg_distrib] | |
| 80 | + apply Finset.sum_congr rfl | |
| 81 | + intro i _ | |
| 82 | + have hi := scalar_integration_by_parts_test P (coordinateDirection κ m i) (fi i) ψ | |
| 83 | + (hfi i) hψ.2 hψ.1 | |
| 84 | + change (∫ x, fi i x * fieldDerivative P (coordinateDirection κ m i) ψ x ∂liftMeasure P) = | |
| 85 | + -(∫ x, fieldDerivative P (coordinateDirection κ m i) (fi i) x * ψ x ∂liftMeasure P) | |
| 86 | + linarith | |
| 87 | + _ = -(∫ x, ∑ i : Fin 3, di i x * ψ x ∂liftMeasure P) := by | |
| 88 | + rw [integral_finsetSum _ (fun i _ => hI i)] | |
| 89 | + _ = 0 := by | |
| 90 | + have he : (fun x : LiftDomain P => ∑ i : Fin 3, di i x * ψ x) = 0 := by | |
| 91 | + funext x | |
| 92 | + rw [← Finset.sum_mul,hs x,zero_mul] | |
| 93 | + rfl | |
| 94 | + rw [he] | |
| 95 | + change -(∫ _ : LiftDomain P, (0 : ℝ) ∂liftMeasure P) = 0 | |
| 96 | + rw [integral_zero,neg_zero] | |
| 97 | + | |
| 98 | +end EulerCylinderClassicalSolenoidal | |
+138 −0 Euler/CylinderClassicalWordBounds.lean added View file
| @@ -0,0 +1,138 @@ | ||
| 1 | +import Euler.CylinderOrbitSobolev | |
| 2 | + | |
| 3 | +/-! | |
| 4 | +# Exact classical mixed-word norms of the reconstructed cylinder field | |
| 5 | + | |
| 6 | +The actual classical spatial/angular derivatives represent the exact L² | |
| 7 | +translation words. Consequently the fixed-Hq external-word sum equals the | |
| 8 | +block used by the inverse estimate, with no alphabet factor or radius loss. | |
| 9 | +-/ | |
| 10 | + | |
| 11 | +noncomputable section | |
| 12 | + | |
| 13 | +namespace EulerCylinderSmoothOrbit | |
| 14 | + | |
| 15 | +open Set MeasureTheory ContinuousLinearMap Finset EulerSmoothLimit EulerLiftedGradientSpace | |
| 16 | + EulerLpCylinderTranslation EulerCylinderSobolev EulerSpatialSobolevInverse | |
| 17 | + EulerPressureSpatialRegularity EulerMetricTransport EulerStrongSmoothJet EulerParameterWordGevrey | |
| 18 | +open scoped ContDiff | |
| 19 | + | |
| 20 | +variable (period : ℝ) [Fact (0 < period)] | |
| 21 | + | |
| 22 | +/-- The actual strong L² derivative for an ordered mixed word. -/ | |
| 23 | +def strongWord (u : LiftL2 period) {n : ℕ} (w : Fin n → Fin 4) : LiftL2 period := | |
| 24 | + wordDerivative standardDirection (fun a : LiftTangent => translate period a u) w 0 | |
| 25 | + | |
| 26 | +@[simp] theorem strongWord_zero (u : LiftL2 period) (w : Fin 0 → Fin 4) : strongWord period u w = u := by | |
| 27 | + simp only [strongWord,wordDerivative_zero,translate_zero] | |
| 28 | + | |
| 29 | +/-- Appending a direction differentiates the actual field. -/ | |
| 30 | +theorem strongWord_snoc (u : LiftL2 period) (hu : SmoothOrbit period u) | |
| 31 | + {n : ℕ} (w : Fin n → Fin 4) (i : Fin 4) : | |
| 32 | + strongWord period u (Fin.snoc w i) = strongWord period (orbitDerivative period u (standardDirection i)) w := by | |
| 33 | + have he : directional standardDirection (fun a : LiftTangent => translate period a u) i = | |
| 34 | + fun a : LiftTangent => translate period a (orbitDerivative period u (standardDirection i)) := | |
| 35 | + funext (fun a => (orbitDerivative_translation period u hu (standardDirection i) a).symm) | |
| 36 | + unfold strongWord | |
| 37 | + rw [wordDerivative_snoc standardDirection _ hu w i 0,he] | |
| 38 | + | |
| 39 | +/-- A strong word is the actual mixed derivative at each translated label. -/ | |
| 40 | +theorem strongWord_translation (u : LiftL2 period) (hu : SmoothOrbit period u) | |
| 41 | + {n : ℕ} (w : Fin n → Fin 4) (a : LiftTangent) : | |
| 42 | + translate period a (strongWord period u w) = | |
| 43 | + wordDerivative standardDirection (fun b : LiftTangent => translate period b u) w a := by | |
| 44 | + induction n generalizing u with | |
| 45 | + | zero => simp only [strongWord_zero,wordDerivative_zero] | |
| 46 | + | succ n ih => | |
| 47 | + have ho : strongWord period u w = | |
| 48 | + strongWord period (orbitDerivative period u (standardDirection (w (Fin.last n)))) (Fin.init w) := by | |
| 49 | + simpa only [Fin.snoc_init_self] using strongWord_snoc period u hu (Fin.init w) (w (Fin.last n)) | |
| 50 | + rw [ho,ih _ (orbitDerivative_smooth period u hu _) (Fin.init w)] | |
| 51 | + have he : directional standardDirection (fun b : LiftTangent => translate period b u) (w (Fin.last n)) = | |
| 52 | + fun b : LiftTangent => translate period b (orbitDerivative period u (standardDirection (w (Fin.last n)))) := | |
| 53 | + funext (fun b => (orbitDerivative_translation period u hu _ b).symm) | |
| 54 | + simpa only [Fin.snoc_init_self,he] using | |
| 55 | + (wordDerivative_snoc standardDirection (fun b : LiftTangent => translate period b u) hu | |
| 56 | + (Fin.init w) (w (Fin.last n)) a).symm | |
| 57 | + | |
| 58 | +/-- Every strong word has its genuine smooth full mixed orbit. -/ | |
| 59 | +theorem strongWord_smooth (u : LiftL2 period) (hu : SmoothOrbit period u) | |
| 60 | + {n : ℕ} (w : Fin n → Fin 4) : SmoothOrbit period (strongWord period u w) := by | |
| 61 | + have he : (fun a : LiftTangent => translate period a (strongWord period u w)) = | |
| 62 | + wordDerivative standardDirection (fun a : LiftTangent => translate period a u) w := | |
| 63 | + funext (strongWord_translation period u hu w) | |
| 64 | + change ContDiff ℝ ∞ _ | |
| 65 | + rw [he] | |
| 66 | + exact wordDerivative_contDiff standardDirection _ hu w | |
| 67 | + | |
| 68 | +/-- The genuine strong word represents the literal classical cylinder derivative. -/ | |
| 69 | +theorem strongWord_ae (u : LiftL2 period) (hu : SmoothOrbit period u) | |
| 70 | + {n : ℕ} (w : Fin n → Fin 4) : | |
| 71 | + (strongWord period u w : LiftDomain period → Space) =ᵐ[liftMeasure period] | |
| 72 | + iteratedFieldDerivative period w (representative period u hu) := by | |
| 73 | + have h := jet_word_ae period (le_refl n) u (spatialJet period n u hu) w | |
| 74 | + (representative period u hu) (representative_ae period u hu) (representative_smooth period u hu) | |
| 75 | + rw [spatialJet_word period n n (le_refl n)] at h | |
| 76 | + exact h | |
| 77 | + | |
| 78 | +/-- The reconstructed derivative representative equals the actual classical derivative pointwise. -/ | |
| 79 | +theorem representative_strongWord (u : LiftL2 period) (hu : SmoothOrbit period u) | |
| 80 | + {n : ℕ} (w : Fin n → Fin 4) : | |
| 81 | + representative period (strongWord period u w) (strongWord_smooth period u hu w) = | |
| 82 | + iteratedFieldDerivative period w (representative period u hu) := by | |
| 83 | + apply Measure.eq_of_ae_eq | |
| 84 | + ((representative_ae period _ (strongWord_smooth period u hu w)).symm.trans (strongWord_ae period u hu w)) | |
| 85 | + · exact smoothField_continuous period _ (representative_smooth period _ _) | |
| 86 | + · exact smoothField_continuous period _ | |
| 87 | + (iteratedFieldDerivative_smooth period w _ (representative_smooth period u hu)) | |
| 88 | + | |
| 89 | +/-- Every actual classical mixed derivative lies in L²; this is proved from the solved orbit. -/ | |
| 90 | +theorem classicalWord_memLp (u : LiftL2 period) (hu : SmoothOrbit period u) | |
| 91 | + {n : ℕ} (w : Fin n → Fin 4) : | |
| 92 | + MemLp (iteratedFieldDerivative period w (representative period u hu)) 2 (liftMeasure period) := | |
| 93 | + (Lp.memLp (strongWord period u w)).ae_eq (strongWord_ae period u hu w) | |
| 94 | + | |
| 95 | +/-- The actual classical Hq norm is exactly the finite mixed-word base sum. -/ | |
| 96 | +theorem classicalBaseSize_eq (q : ℕ) (u : LiftL2 period) (hu : SmoothOrbit period u) : | |
| 97 | + liftSobolevNorm period q (representative period u hu) = | |
| 98 | + baseSize standardDirection q (fun a : LiftTangent => translate period a u) 0 := by | |
| 99 | + rw [← jet_sobolevNorm_eq period u (spatialJet period q u hu) (representative period u hu) | |
| 100 | + (representative_ae period u hu) (representative_smooth period u hu)] | |
| 101 | + exact spatialJet_norm period q u hu | |
| 102 | + | |
| 103 | +/-- The source's actual fixed-Hq external-word sum, on the literal classical field. -/ | |
| 104 | +def classicalBlockSize (q : ℕ) (u : LiftL2 period) (hu : SmoothOrbit period u) (n : ℕ) : ℝ := | |
| 105 | + ∑ w : Fin n → Fin 4, liftSobolevNorm period q | |
| 106 | + (iteratedFieldDerivative period w (representative period u hu)) | |
| 107 | + | |
| 108 | +/-- Exact norm identification, with no dimension factor and no radius enlargement. -/ | |
| 109 | +theorem classicalBlockSize_eq (q : ℕ) (u : LiftL2 period) (hu : SmoothOrbit period u) (n : ℕ) : | |
| 110 | + classicalBlockSize period q u hu n = | |
| 111 | + block standardDirection q (fun a : LiftTangent => translate period a u) n 0 := by | |
| 112 | + unfold classicalBlockSize block | |
| 113 | + apply sum_congr rfl | |
| 114 | + intro w _ | |
| 115 | + rw [← representative_strongWord period u hu w,classicalBaseSize_eq] | |
| 116 | + exact congrArg (fun g : LiftTangent → LiftL2 period => baseSize standardDirection q g 0) | |
| 117 | + (funext (strongWord_translation period u hu w)) | |
| 118 | + | |
| 119 | +variable {K : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 120 | + | |
| 121 | +/-- Time evaluation is a contraction, including for the full actual mixed-word Hq norm. -/ | |
| 122 | +theorem path_classicalBlockSize_le (q : ℕ) (p : C(K,LiftL2 period)) | |
| 123 | + (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate period a p)) | |
| 124 | + (t : K) (n : ℕ) : | |
| 125 | + classicalBlockSize period q (p t) (path_evaluation_smooth period p hp t) n ≤ | |
| 126 | + block standardDirection q (fun a : LiftTangent => pathTranslate period a p) n 0 := by | |
| 127 | + rw [classicalBlockSize_eq] | |
| 128 | + have hn : ‖(ContinuousMap.evalCLM ℝ t : C(K,LiftL2 period) →L[ℝ] LiftL2 period)‖ ≤ 1 := by | |
| 129 | + apply opNorm_le_bound _ zero_le_one | |
| 130 | + intro f | |
| 131 | + simpa only [one_mul,ContinuousMap.evalCLM_apply] using f.norm_coe_le_norm t | |
| 132 | + have h := block_comp_clm_le standardDirection q | |
| 133 | + (ContinuousMap.evalCLM ℝ t : C(K,LiftL2 period) →L[ℝ] LiftL2 period) | |
| 134 | + (fun a : LiftTangent => pathTranslate period a p) hp n 0 | |
| 135 | + exact h.trans ((mul_le_mul_of_nonneg_right hn | |
| 136 | + (block_nonneg standardDirection q _ n 0)).trans_eq (one_mul _)) | |
| 137 | + | |
| 138 | +end EulerCylinderSmoothOrbit | |
+117 −0 Euler/CylinderCompactBounds.lean added View file
| @@ -0,0 +1,117 @@ | ||
| 1 | +import Euler.CylinderCompactTranslation | |
| 2 | +import Euler.ParameterSobolevCoefficient | |
| 3 | + | |
| 4 | +/-! | |
| 5 | +True mixed L² derivative bounds for compact smooth cylinder data. One | |
| 6 | +fixed compact support set supplies the L² mass factor at every order. | |
| 7 | +The conversion to fixed-Hq word sums is performed once on the initial | |
| 8 | +datum, before any same-radius inverse estimate is applied. | |
| 9 | +-/ | |
| 10 | + | |
| 11 | +noncomputable section | |
| 12 | + | |
| 13 | +namespace EulerCylinderCompact | |
| 14 | + | |
| 15 | +open Set MeasureTheory ContinuousLinearMap EulerLiftedGradientSpace | |
| 16 | + EulerLpCylinderTranslation EulerMetricTransport EulerLiftedWeakDerivative | |
| 17 | + EulerLpDerivative EulerParameterWordGevrey EulerGevrey | |
| 18 | +open scoped ContDiff | |
| 19 | + | |
| 20 | +universe u | |
| 21 | + | |
| 22 | +variable (P : ℝ) [Fact (0 < P)] | |
| 23 | + | |
| 24 | +def supportMass (K : Set (LiftDomain P)) (hK : IsCompact K) : ℝ := | |
| 25 | + ‖(indicatorConstLp 2 hK.isClosed.measurableSet hK.measure_ne_top (1 : ℝ) : | |
| 26 | + Lp ℝ 2 (liftMeasure P))‖ | |
| 27 | + | |
| 28 | +namespace CompactField | |
| 29 | + | |
| 30 | +variable {P} {V : Type u} [NormedAddCommGroup V] [NormedSpace ℝ V] | |
| 31 | + | |
| 32 | +omit [Fact (0 < P)] in | |
| 33 | +theorem derivative_support (A : CompactField P V) : tsupport A.derivative.field ⊆ tsupport A.field := by | |
| 34 | + apply closure_minimal _ (isClosed_tsupport A.field) | |
| 35 | + intro x hx | |
| 36 | + by_contra hn | |
| 37 | + exact hx (fieldFDeriv_zero_outside P A.field x hn) | |
| 38 | + | |
| 39 | +theorem toLp_norm_le (A : CompactField P V) (K : Set (LiftDomain P)) (hK : IsCompact K) | |
| 40 | + (hs : tsupport A.field ⊆ K) (C : ℝ) (hb : ∀ x, ‖A.field x‖ ≤ C) : | |
| 41 | + ‖A.toLp‖ ≤ C*supportMass P K hK := by | |
| 42 | + apply Lp.norm_le_mul_norm_of_ae_le_mul | |
| 43 | + filter_upwards [A.toLp_ae, | |
| 44 | + (indicatorConstLp_coeFn (p := 2) (μ := liftMeasure P) | |
| 45 | + (hs := hK.isClosed.measurableSet) (hμs := hK.measure_ne_top) (c := (1 : ℝ)))] with x ha hk | |
| 46 | + rw [ha,hk] | |
| 47 | + by_cases hx : x ∈ K | |
| 48 | + · simpa only [Set.indicator_of_mem hx,norm_one,mul_one] using hb x | |
| 49 | + · have hz : A.field x = 0 := image_eq_zero_of_notMem_tsupport (fun h => hx (hs h)) | |
| 50 | + simp only [Set.indicator_of_notMem hx,hz,norm_zero,mul_zero,le_refl] | |
| 51 | + | |
| 52 | +private theorem norm_iteratedFDeriv_translation_aux (n : ℕ) : | |
| 53 | + ∀ (V : Type u) [NormedAddCommGroup V] [NormedSpace ℝ V] (A : CompactField P V) | |
| 54 | + (K : Set (LiftDomain P)) (hK : IsCompact K) (_hs : tsupport A.field ⊆ K) | |
| 55 | + (C : ℝ) (_hb : ∀ x, ‖iteratedFDeriv ℝ n (localFieldLift P A.field x) 0‖ ≤ C) | |
| 56 | + (a : LiftTangent), | |
| 57 | + ‖iteratedFDeriv ℝ n (fun b : LiftTangent => translate P b A.toLp) a‖ ≤ C*supportMass P K hK := by | |
| 58 | + induction n with | |
| 59 | + | zero => | |
| 60 | + intro V _ _ A K hK hs C hb a | |
| 61 | + rw [norm_iteratedFDeriv_zero,LinearIsometry.norm_map] | |
| 62 | + apply A.toLp_norm_le K hK hs C | |
| 63 | + intro x | |
| 64 | + simpa only [norm_iteratedFDeriv_zero,localFieldLift,Prod.fst_zero,Prod.snd_zero, | |
| 65 | + AddCircle.coe_zero,add_zero] using hb x | |
| 66 | + | succ n ih => | |
| 67 | + intro V _ _ A K hK hs C hb a | |
| 68 | + rw [← norm_iteratedFDeriv_fderiv,A.translation_fderiv] | |
| 69 | + have hl := ContinuousLinearMap.norm_iteratedFDeriv_comp_left (𝕜 := ℝ) (E := LiftTangent) | |
| 70 | + (F := CylinderL2 P (LiftTangent →L[ℝ] V)) (G := LiftTangent →L[ℝ] CylinderL2 P V) | |
| 71 | + (derivativeBundling (liftMeasure P)) | |
| 72 | + (A.derivative.translation_contDiff.contDiffAt (x := a)) (n := n) (by simp) | |
| 73 | + have hi := ih (LiftTangent →L[ℝ] V) A.derivative K hK | |
| 74 | + (A.derivative_support.trans hs) C (fun x => by | |
| 75 | + change ‖iteratedFDeriv ℝ n (localFieldLift P (fieldFDeriv P A.field) x) 0‖ ≤ C | |
| 76 | + rw [localFieldLift_fieldFDeriv,norm_iteratedFDeriv_fderiv] | |
| 77 | + exact hb x) a | |
| 78 | + exact hl.trans ((mul_le_mul_of_nonneg_right | |
| 79 | + (derivativeBundling_norm_le_one (P := LiftTangent) (V := V) (liftMeasure P)) (norm_nonneg _)).trans | |
| 80 | + (by simpa only [one_mul] using hi)) | |
| 81 | + | |
| 82 | +theorem norm_iteratedFDeriv_translation_le (A : CompactField P V) | |
| 83 | + (K : Set (LiftDomain P)) (hK : IsCompact K) (hs : tsupport A.field ⊆ K) | |
| 84 | + (n : ℕ) (C : ℝ) (hb : ∀ x, ‖iteratedFDeriv ℝ n (localFieldLift P A.field x) 0‖ ≤ C) | |
| 85 | + (a : LiftTangent) : | |
| 86 | + ‖iteratedFDeriv ℝ n (fun b : LiftTangent => translate P b A.toLp) a‖ ≤ C*supportMass P K hK := | |
| 87 | + norm_iteratedFDeriv_translation_aux n V A K hK hs C hb a | |
| 88 | + | |
| 89 | +theorem translation_gevrey (A : CompactField P V) | |
| 90 | + (K : Set (LiftDomain P)) (hK : IsCompact K) (hs : tsupport A.field ⊆ K) | |
| 91 | + (R C : ℝ) (hb : ∀ n x, ‖iteratedFDeriv ℝ n (localFieldLift P A.field x) 0‖ ≤ C*majorant R 0 n) | |
| 92 | + (n : ℕ) (a : LiftTangent) : | |
| 93 | + ‖iteratedFDeriv ℝ n (fun b : LiftTangent => translate P b A.toLp) a‖ ≤ | |
| 94 | + (C*supportMass P K hK)*majorant R 0 n := | |
| 95 | + (A.norm_iteratedFDeriv_translation_le K hK hs n (C*majorant R 0 n) (hb n) a).trans_eq (by ring) | |
| 96 | + | |
| 97 | +theorem translation_block_bound {ι : Type*} [Fintype ι] | |
| 98 | + (directions : ι → LiftTangent) (hd : ∀ i, ‖directions i‖ ≤ 1) (q : ℕ) | |
| 99 | + (A : CompactField P V) (K : Set (LiftDomain P)) (hK : IsCompact K) (hs : tsupport A.field ⊆ K) | |
| 100 | + (R C : ℝ) (hR : 0 ≤ R) (hC : 0 ≤ C) | |
| 101 | + (hb : ∀ n x, ‖iteratedFDeriv ℝ n (localFieldLift P A.field x) 0‖ ≤ C*majorant R 0 n) | |
| 102 | + (n : ℕ) (a : LiftTangent) : | |
| 103 | + block directions q (fun b : LiftTangent => translate P b A.toLp) n a ≤ | |
| 104 | + sobolevCoefficientAmplitude ι q R (C*supportMass P K hK)* | |
| 105 | + majorant (sobolevCoefficientRadius ι R) 0 n := by | |
| 106 | + have hm : 0 ≤ supportMass P K hK := norm_nonneg _ | |
| 107 | + have hi := coefficientBlock_of_tensor_bound directions hd q | |
| 108 | + (fun b : LiftTangent => translate P b A.toLp) A.translation_contDiff | |
| 109 | + R (C*supportMass P K hK) hR (mul_nonneg hC hm) (A.translation_gevrey K hK hs R C hb) n a | |
| 110 | + have hpow : (1 : ℝ) ≤ (2 : ℝ)^q := one_le_pow₀ (by norm_num) | |
| 111 | + have hl : block directions q (fun b : LiftTangent => translate P b A.toLp) n a ≤ | |
| 112 | + coefficientBlock directions q (fun b : LiftTangent => translate P b A.toLp) n a := by | |
| 113 | + exact (one_mul _).symm.trans_le (mul_le_mul_of_nonneg_right hpow (block_nonneg directions q _ n a)) | |
| 114 | + exact hl.trans hi | |
| 115 | + | |
| 116 | +end CompactField | |
| 117 | +end EulerCylinderCompact | |