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

Merge remote-tracking branch 'origin/main' into s1-ns-appendix-1
Browse files main maintainer-statement p1-ns-physical s1-euler-all-2 s1-euler-all-3 s1-euler-angle-9 s1-euler-base-2 s1-euler-bounded-2 s1-euler-canonical-8 s1-euler-child-2 s1-euler-common-2 s1-euler-constant-2 s1-euler-continuous-2 s1-euler-correction-2 s1-euler-correction-3 s1-euler-correction-9 s1-euler-cylinder-2 s1-euler-cylinder-3 s1-euler-cylinder-8 s1-euler-dirichlet-6 s1-euler-euler-1 s1-euler-euler-2 s1-euler-euler-6 s1-euler-exact-3 s1-euler-field-2 s1-euler-finite-3 s1-euler-flow-2 s1-euler-frozen-2 s1-euler-general-2 s1-euler-heat-2 s1-euler-hilbert-6 s1-euler-inviscid-8 s1-euler-isometric-2 s1-euler-lp-2 s1-euler-lp-3 s1-euler-mean-2 s1-euler-mean-8 s1-euler-ordinary-6 s1-euler-packet-2 s1-euler-packet-3 s1-euler-packet-8 s1-euler-parent-2 s1-euler-quadratic-2 s1-euler-resolvent-2 s1-euler-separating-2 s1-euler-smooth-2 s1-euler-sobolev-2 s1-euler-source-6 s1-euler-time-2 s1-euler-transverse-2 s1-euler-transverse-6 s1-euler-transverse-9 s1-euler-volume-3 s1-euler-vorticity-2 s1-euler-weighted-2 s1-ns-activation-2 s1-ns-active-2 s1-ns-actual-2 s1-ns-actual-3 s1-ns-actual-8 s1-ns-aligned-2 s1-ns-angular-2 s1-ns-annular-6 s1-ns-annular-8 s1-ns-appendix-1 s1-ns-assembled-2 s1-ns-assembled-7 s1-ns-axis-2 s1-ns-axisymmetric-2 s1-ns-axisymmetric-8 s1-ns-band-2 s1-ns-base-1 s1-ns-base-2 s1-ns-base-6 s1-ns-base-8 s1-ns-borel-2 s1-ns-borel-3 s1-ns-boundary-2 s1-ns-cauchy-2 s1-ns-closed-2 s1-ns-common-2 s1-ns-common-6 s1-ns-common-8 s1-ns-common-9 s1-ns-compact-2 s1-ns-constructed-2 s1-ns-constructed-3 s1-ns-constructed-8 s1-ns-copy-6 s1-ns-copy-8 s1-ns-correction-2 s1-ns-correction-3 s1-ns-curl-2 s1-ns-curl-6 s1-ns-curl-9 s1-ns-current-3 s1-ns-cycle-2 s1-ns-cycle-3 s1-ns-defect-2 s1-ns-direct-2 s1-ns-edge-6 s1-ns-entrance-2 s1-ns-error-2 s1-ns-error-3 s1-ns-error-9 s1-ns-even-2 s1-ns-even-3 s1-ns-exponent-2 s1-ns-final-2 s1-ns-final-6 s1-ns-first-2 s1-ns-first-3 s1-ns-five-8 s1-ns-flat-2 s1-ns-flat-3 s1-ns-flat-8 s1-ns-flatness-2 s1-ns-fourier-2 s1-ns-fourier-3 s1-ns-future-2 s1-ns-gauge-2 s1-ns-gaussian-2 s1-ns-global-2 s1-ns-graph-6 s1-ns-graph-9 s1-ns-harmonic-11 s1-ns-harmonic-6 s1-ns-harmonic-7 s1-ns-heat-2 s1-ns-heat-3 s1-ns-initialized-2 s1-ns-joint-2 s1-ns-joint-3 s1-ns-joint-8 s1-ns-label-6 s1-ns-linear-2 s1-ns-linear-6 s1-ns-linear-7 s1-ns-local-2 s1-ns-localized-1 s1-ns-localized-2 s1-ns-localized-6 s1-ns-maximal-2 s1-ns-mean-1 s1-ns-mean-2 s1-ns-mean-8 s1-ns-mixed-2 s1-ns-modulated-3 s1-ns-moment-6 s1-ns-native-2 s1-ns-natural-1 s1-ns-natural-2 s1-ns-nilpotent-2 s1-ns-offplane-1 s1-ns-offplane-2 s1-ns-offplane-6 s1-ns-oscillatory-2 s1-ns-parametric-2 s1-ns-parametric-6 s1-ns-particular-10 s1-ns-particular-2 s1-ns-particular-6 s1-ns-particular-8 s1-ns-partitioned-6 s1-ns-partitioned-8 s1-ns-past-2 s1-ns-periodic-2 s1-ns-periodic-3 s1-ns-periodic-8 s1-ns-periodic-9 s1-ns-periodized-2 s1-ns-periodized-6 s1-ns-periodized-8 s1-ns-periodized-9 s1-ns-phase-2 s1-ns-physical-2 s1-ns-physical-3 s1-ns-physical-8 s1-ns-positive-2 s1-ns-positive-8 s1-ns-prepared-6 s1-ns-pressure-2 s1-ns-pressure-9 s1-ns-primary-2 s1-ns-primary-6 s1-ns-primary-8 s1-ns-pulse-2 s1-ns-r3-2 s1-ns-radial-2 s1-ns-radial-9 s1-ns-reference-2 s1-ns-regular-2 s1-ns-renormalized-2 s1-ns-reserved-8 s1-ns-residual-2 s1-ns-residual-3 s1-ns-scaled-3 s1-ns-scaling-2 s1-ns-schedule-2 s1-ns-sharp-2 s1-ns-signed-2 s1-ns-signed-3 s1-ns-signed-8 s1-ns-similarity-2 s1-ns-slot-2 s1-ns-slow-2 s1-ns-slow-6 s1-ns-smooth-2 s1-ns-smooth-3 s1-ns-smooth-8 s1-ns-solenoidal-2 s1-ns-spacetime-3 s1-ns-spatial-2 s1-ns-squared-2 s1-ns-state-2 s1-ns-state-8 s1-ns-subcover-2 s1-ns-tail-2 s1-ns-temporal-2 s1-ns-temporal-3 s1-ns-temporal-8 s1-ns-terminal-1 s1-ns-terminal-6 s1-ns-time-2 s1-ns-torus-2 s1-ns-torus-3 s1-ns-transition-2 s1-ns-transport-2 s1-ns-uniform-2 s1-ns-uniform-8 s1-ns-variable-2 s1-ns-variable-3 s1-ns-viscous-6 s1-ns-volterra-2 s1-ns-wave-11 s1-ns-wave-2 s1-ns-wave-3 s1-ns-wave-8 s1-ns-weighted-10 s1-ns-weighted-12 s1-ns-weighted-2 s1-ns-weighted-3 s1-ns-weighted-8 s1-ns-weighted-9 s1-ns-whole-3 s1-ns-within-2 s1-ns-within-6 s2-build-profile-files s2-euler-all-1 s2-euler-base-1 s2-euler-bounded-1 s2-euler-child-1 s2-euler-coefficient-1 s2-euler-correction-1 s2-euler-cylinder-1 s2-euler-dirichlet-1 s2-euler-div-1 s2-euler-drift-1 s2-euler-euler-1 s2-euler-field-1 s2-euler-finite-1 s2-euler-flow-1 s2-euler-gaussian-1 s2-euler-gevrey-1 s2-euler-h6-1 s2-euler-heat-1 s2-euler-initial-1 s2-euler-integral-1 s2-euler-linear-1 s2-euler-local-1 s2-euler-logarithmic-1 s2-euler-mean-1 s2-euler-metric-1 s2-euler-mixed-1 s2-euler-operator-1 s2-euler-ordinary-1 s2-euler-ordinary-2 s2-euler-packet-1 s2-euler-parameter-1 s2-euler-parent-1 s2-euler-radial-1 s2-euler-small-1 s2-euler-sobolev-1 s2-euler-squared-1 s2-euler-static-1 s2-euler-terminal-1 s2-euler-time-1 s2-euler-transport-1 s2-euler-transverse-1 s2-euler-unshifted-1 s2-euler-vorticity-1 s2-euler-weighted-1 s2-instances-1 s2-ns-activation-1 s2-ns-actual-1 s2-ns-aligned-1 s2-ns-angular-1 s2-ns-annular-1 s2-ns-axis-1 s2-ns-base-1 s2-ns-chart-1 s2-ns-closed-1 s2-ns-common-1 s2-ns-cone-1 s2-ns-coordinate-1 s2-ns-corrected-1 s2-ns-correction-1 s2-ns-covariance-1 s2-ns-current-1 s2-ns-cylindrical-1 s2-ns-diophantine-1 s2-ns-direct-1 s2-ns-extended-1 s2-ns-five-1 s2-ns-flat-1 s2-ns-future-1 s2-ns-gauge-1 s2-ns-gaussian-1 s2-ns-global-1 s2-ns-glued-1 s2-ns-growing-1 s2-ns-heat-1 s2-ns-initial-1 s2-ns-label-1 s2-ns-local-1 s2-ns-loop-1 s2-ns-matching-1 s2-ns-mean-1 s2-ns-modulated-1 s2-ns-moment-1 s2-ns-moving-1 s2-ns-native-1 s2-ns-natural-1 s2-ns-normal-1 s2-ns-outgoing-1 s2-ns-outgoing-2 s2-ns-parametric-1 s2-ns-periodic-1 s2-ns-periodized-1 s2-ns-phase-1 s2-ns-physical-1 s2-ns-polar-1 s2-ns-positive-1 s2-ns-pressure-1 s2-ns-primary-1 s2-ns-profile-1 s2-ns-pulse-1 s2-ns-r3-1 s2-ns-r3-folder-1 s2-ns-reference-1 s2-ns-renormalized-1 s2-ns-repair-1 s2-ns-reserved-1 s2-ns-reset-1 s2-ns-residual-1 s2-ns-scaled-1 s2-ns-scaled-2 s2-ns-scaling-1 s2-ns-shape-1 s2-ns-shaped-1 s2-ns-signed-1 s2-ns-similarity-1 s2-ns-slot-1 s2-ns-slow-1 s2-ns-smooth-1 s2-ns-spatial-1 s2-ns-squared-1 s2-ns-stress-1 s2-ns-tail-1 s2-ns-temporal-1 s2-ns-terminal-1 s2-ns-transition-1 s2-ns-uniform-1 s2-ns-variable-1 s2-ns-viscous-1 s2-ns-volterra-1 s2-ns-volterra-2 s5-cap-1 s5-euler-all-1 s5-euler-base-1 s5-euler-bounded-1 s5-euler-canonical-1 s5-euler-coefficient-1 s5-euler-compact-1 s5-euler-continuous-1 s5-euler-correction-1 s5-euler-cylinder-1 s5-euler-drift-1 s5-euler-duhamel-1 s5-euler-elapsed-1 s5-euler-elapsed-2 s5-euler-euler-1 s5-euler-external-1 s5-euler-field-1 s5-euler-fixed-1 s5-euler-gained-1 s5-euler-gaussian-1 s5-euler-gevrey-1 s5-euler-graph-1 s5-euler-h5-1 s5-euler-h6-1 s5-euler-heat-1 s5-euler-inviscid-1 s5-euler-lifted-1 s5-euler-linear-1 s5-euler-lp-1 s5-euler-mean-1 s5-euler-mixed-1 s5-euler-ordinary-1 s5-euler-packet-1 s5-euler-parameter-1 s5-euler-parent-1 s5-euler-physical-1 s5-euler-projected-1 s5-euler-quadratic-1 s5-euler-regularized-1 s5-euler-small-1 s5-euler-smooth-1 s5-euler-sobolev-1 s5-euler-source-1 s5-euler-stage-1 s5-euler-static-1 s5-euler-terminal-1 s5-euler-time-1 s5-euler-top-1 s5-euler-transverse-1 s5-euler-weighted-1 s5-euler-whole-1 s5-ns-actual-1 s5-ns-axis-1 s5-ns-generic-1 s5-ns-label-1 s5-ns-local-1 s5-ns-mean-1 s5-ns-moment-1 s5-ns-particular-1 s5-ns-periodic-1 s5-ns-periodize-1 s5-ns-positive-1 s5-ns-r3-folder-1 s5-ns-reference-1 s5-ns-sharp-1 s5-ns-smooth-1 s5-ns-torus-1 s5-ns-valid-1 s5-ns-whole-1 s5-ns-within-1
+0 −43 Euler/SmoothCoefficientTimeRestriction.lean View file
| @@ -44,33 +44,6 @@ theorem comp_norm_le (A : SmoothCoefficientPath K V) (φ : C(L,K)) : | ||
| 44 | 44 | intro t |
| 45 | 45 | exact A.field.norm_coe_le_norm (φ t) |
| 46 | 46 | |
| 47 | -theorem comp_jet_norm_le (A : SmoothCoefficientPath K V) (φ : C(L,K)) (n : ℕ) : | |
| 48 | - ‖(A.comp φ).jet n‖ ≤ ‖A.jet n‖ := by | |
| 49 | - apply (ContinuousMap.norm_le _ (norm_nonneg _)).2 | |
| 50 | - intro t | |
| 51 | - exact (A.jet n).norm_coe_le_norm (φ t) | |
| 52 | - | |
| 53 | -theorem comp_translation (A : SmoothCoefficientPath K V) (φ : C(L,K)) (a : Space) : | |
| 54 | - translateCoefficientPath (A.comp φ).field a = | |
| 55 | - (translateCoefficientPath A.field a).comp φ := rfl | |
| 56 | - | |
| 57 | -/-- A continuous change of time parameter preserves each literal spatial | |
| 58 | -derivative bound with exactly the same constant. -/ | |
| 59 | -theorem comp_derivative_bound (A : SmoothCoefficientPath K V) (φ : C(L,K)) | |
| 60 | - (n : ℕ) (C : ℝ) | |
| 61 | - (hb : ∀ t x, ‖iteratedFDeriv ℝ n (A.field t : Space → V) x‖ ≤ C) | |
| 62 | - (t : L) (x : Space) : | |
| 63 | - ‖iteratedFDeriv ℝ n ((A.comp φ).field t : Space → V) x‖ ≤ C := | |
| 64 | - hb (φ t) x | |
| 65 | - | |
| 66 | -theorem comp_translation_bound (A : SmoothCoefficientPath K V) (φ : C(L,K)) | |
| 67 | - (n : ℕ) (C : ℝ) (hC : 0 ≤ C) | |
| 68 | - (hb : ∀ t x, ‖iteratedFDeriv ℝ n (A.field t : Space → V) x‖ ≤ C) | |
| 69 | - (a : Space) : | |
| 70 | - ‖iteratedFDeriv ℝ n (translateCoefficientPath (A.comp φ).field) a‖ ≤ C := | |
| 71 | - (A.comp φ).norm_iteratedFDeriv_translation_le n C hC | |
| 72 | - (A.comp_derivative_bound φ n C hb) a | |
| 73 | - | |
| 74 | 47 | end SmoothCoefficientPath |
| 75 | 48 | |
| 76 | 49 | end EulerMeanCoefficients |
| @@ -95,22 +68,6 @@ def initialPath (S τ : ℝ) (hτS : τ ≤ S) : C(Icc (0 : ℝ) S,V) →L[ℝ] | ||
| 95 | 68 | def tailPath (S τ : ℝ) (hτ : 0 ≤ τ) : C(Icc (0 : ℝ) S,V) →L[ℝ] C(Icc (0 : ℝ) (S-τ),V) := |
| 96 | 69 | ContinuousMap.compCLM ℝ V (tailInclusion S τ hτ) |
| 97 | 70 | |
| 98 | -theorem initialPath_norm (S τ : ℝ) (hτS : τ ≤ S) : ‖initialPath (V := V) S τ hτS‖ ≤ 1 := by | |
| 99 | - apply ContinuousLinearMap.opNorm_le_bound _ zero_le_one | |
| 100 | - intro A | |
| 101 | - rw [one_mul] | |
| 102 | - apply (ContinuousMap.norm_le _ (norm_nonneg A)).2 | |
| 103 | - intro t | |
| 104 | - exact A.norm_coe_le_norm _ | |
| 105 | - | |
| 106 | -theorem tailPath_norm (S τ : ℝ) (hτ : 0 ≤ τ) : ‖tailPath (V := V) S τ hτ‖ ≤ 1 := by | |
| 107 | - apply ContinuousLinearMap.opNorm_le_bound _ zero_le_one | |
| 108 | - intro A | |
| 109 | - rw [one_mul] | |
| 110 | - apply (ContinuousMap.norm_le _ (norm_nonneg A)).2 | |
| 111 | - intro t | |
| 112 | - exact A.norm_coe_le_norm _ | |
| 113 | - | |
| 114 | 71 | theorem initial_extend (S τ : ℝ) (hS : 0 ≤ S) (hτ : 0 ≤ τ) (hτS : τ ≤ S) |
| 115 | 72 | (A : C(Icc (0 : ℝ) S,V)) (t : ℝ) (ht : t ∈ Icc (0 : ℝ) τ) : |
| 116 | 73 | extendPath τ hτ (initialPath S τ hτS A) t = extendPath S hS A t := by |
+0 −10 Euler/SmoothCylinderAccelerationComposition.lean View file
| @@ -27,16 +27,6 @@ def materialAccelerationJet (t : Icc (0 : ℝ) T) (q : LiftDomain P) (n : ℕ) : | ||
| 27 | 27 | LiftTangent [×n]→L[ℝ] LiftTangent := |
| 28 | 28 | jetSeries P (materialAcceleration T hT A A₁ t) q n |
| 29 | 29 | |
| 30 | -include hA hA₁ in | |
| 31 | -theorem materialAccelerationJet_local (t : Icc (0 : ℝ) T) (q : LiftDomain P) (n : ℕ) : | |
| 32 | - materialAccelerationJet P T hT A A₁ t q n = | |
| 33 | - iteratedFDeriv ℝ n (EulerMetricTransport.localFieldLift P | |
| 34 | - (descend P (materialAcceleration T hT A A₁ t)) q) 0 := by | |
| 35 | - apply jetSeries_eq_local | |
| 36 | - exact comp_deck P (accelerationField T A A₁ t) | |
| 37 | - (accelerationField_deck P T A A₁ hA hA₁ t) ((flowData T hT A).forward t) | |
| 38 | - (EulerCylinderPeriodicFlow.flow_deck P (flowData T hT A) (velocity_deck P T hT A hA) 0 t) | |
| 39 | - | |
| 40 | 30 | include hA hA₁ hdiv in |
| 41 | 31 | theorem materialAccelerationJet_memLp_and_bound (B R C S C₁ S₁ : ℝ) |
| 42 | 32 | (hB : 0 ≤ B) (hR : 0 < R) (hC : 0 ≤ C) (hS : 0 ≤ S) |
+0 −35 Euler/SmoothCylinderFlow.lean View file
| @@ -28,35 +28,6 @@ theorem velocity_deck (c : AddSubgroup.zmultiples P) (t : ℝ) (z : LiftTangent) | ||
| 28 | 28 | def forward (t : ℝ) : LiftDomain P → LiftDomain P := |
| 29 | 29 | EulerCylinderPeriodicFlow.flow P (flowData T hT A) 0 t |
| 30 | 30 | |
| 31 | -def backward (t : ℝ) : LiftDomain P → LiftDomain P := | |
| 32 | - EulerCylinderPeriodicFlow.flow P (flowData T hT A) t 0 | |
| 33 | - | |
| 34 | -include hA in | |
| 35 | -theorem forward_cover (t : ℝ) (z : LiftTangent) : | |
| 36 | - forward P T hT A t (coveringMap P z)=coveringMap P ((flowData T hT A).forward t z) := | |
| 37 | - EulerCylinderPeriodicFlow.flow_cover P (flowData T hT A) (velocity_deck P T hT A hA) 0 t z | |
| 38 | - | |
| 39 | -include hA in | |
| 40 | -theorem backward_cover (t : ℝ) (z : LiftTangent) : | |
| 41 | - backward P T hT A t (coveringMap P z)=coveringMap P ((flowData T hT A).backward t z) := | |
| 42 | - EulerCylinderPeriodicFlow.flow_cover P (flowData T hT A) (velocity_deck P T hT A hA) t 0 z | |
| 43 | - | |
| 44 | -include hA in | |
| 45 | -theorem forward_joint_continuous : Continuous (Function.uncurry (forward P T hT A)) := | |
| 46 | - EulerCylinderPeriodicFlow.forward_joint_continuous P (flowData T hT A) (velocity_deck P T hT A hA) | |
| 47 | - | |
| 48 | -include hA in | |
| 49 | -theorem backward_joint_continuous : Continuous (Function.uncurry (backward P T hT A)) := | |
| 50 | - EulerCylinderPeriodicFlow.backward_joint_continuous P (flowData T hT A) (velocity_deck P T hT A hA) | |
| 51 | - | |
| 52 | -include hA in | |
| 53 | -theorem backward_forward (t : ℝ) : Function.LeftInverse (backward P T hT A t) (forward P T hT A t) := | |
| 54 | - EulerCylinderPeriodicFlow.flow_inverse P (flowData T hT A) (velocity_deck P T hT A hA) 0 t | |
| 55 | - | |
| 56 | -include hA in | |
| 57 | -theorem forward_backward (t : ℝ) : Function.RightInverse (backward P T hT A t) (forward P T hT A t) := | |
| 58 | - EulerCylinderPeriodicFlow.flow_inverse P (flowData T hT A) (velocity_deck P T hT A hA) t 0 | |
| 59 | - | |
| 60 | 31 | variable (hdiv : ∀ t x, |
| 61 | 32 | LinearMap.trace ℝ LiftTangent (fderiv ℝ (A.field t : LiftTangent → LiftTangent) x).toLinearMap=0) |
| 62 | 33 | |
| @@ -66,10 +37,4 @@ theorem forward_measurePreserving (t : Icc (0 : ℝ) T) : | ||
| 66 | 37 | EulerCylinderPeriodicFlow.flow_measurePreserving P (flowData T hT A) (velocity_deck P T hT A hA) 0 t |
| 67 | 38 | (EulerSmoothBanachFlow.forward_measurePreserving T hT A hdiv volume t) |
| 68 | 39 | |
| 69 | -include hA hdiv in | |
| 70 | -theorem backward_measurePreserving (t : Icc (0 : ℝ) T) : | |
| 71 | - MeasurePreserving (backward P T hT A t) (liftMeasure P) (liftMeasure P) := | |
| 72 | - EulerCylinderPeriodicFlow.flow_measurePreserving P (flowData T hT A) (velocity_deck P T hT A hA) t 0 | |
| 73 | - (EulerSmoothBanachFlow.backward_measurePreserving T hT A hdiv volume t) | |
| 74 | - | |
| 75 | 40 | end EulerSmoothCylinderFlow |
+0 −35 Euler/SmoothCylinderGevrey.lean View file
| @@ -32,44 +32,9 @@ variable (P T : ℝ) [Fact (0 < P)] (hT : 0 ≤ T) | ||
| 32 | 32 | (hA : ∀ (c : AddSubgroup.zmultiples P) (t : Icc (0 : ℝ) T) z, |
| 33 | 33 | A.field t (z.1,(c : ℝ)+z.2)=A.field t z) |
| 34 | 34 | |
| 35 | -theorem displacementJet_bound (B R : ℝ) | |
| 36 | - (hB : 0 ≤ B) (hR : 0 < R) (hsmall : B*R*T ≤ 1/8) | |
| 37 | - (hb : ∀ n, ‖A.jet n‖ ≤ B*R^n*(n.factorial : ℝ)^2) | |
| 38 | - (n : ℕ) (t : Icc (0 : ℝ) T) (q : LiftDomain P) : | |
| 39 | - ‖displacementJet P T hT A t q n‖ ≤ B*(t : ℝ)*(4*R)^n*(n.factorial : ℝ)^2 := | |
| 40 | - EulerSmoothFlowGevrey.displacement_bound T hT A B R hB hR hsmall hb | |
| 41 | - n t t.property (sectionPoint P q) | |
| 42 | - | |
| 43 | 35 | variable (hdiv : ∀ t x, |
| 44 | 36 | LinearMap.trace ℝ LiftTangent (fderiv ℝ (A.field t : LiftTangent → LiftTangent) x).toLinearMap=0) |
| 45 | 37 | |
| 46 | -include hA hdiv in | |
| 47 | -theorem compositionJet_memLp_and_bound (B R C S : ℝ) | |
| 48 | - (hB : 0 ≤ B) (hR : 0 < R) (hC : 0 ≤ C) (hS : 0 ≤ S) | |
| 49 | - (hsmall : B*R*T ≤ 1/8) | |
| 50 | - (hb : ∀ n, ‖A.jet n‖ ≤ B*R^n*(n.factorial : ℝ)^2) | |
| 51 | - (n : ℕ) | |
| 52 | - (hLp : ∀ t : Icc (0 : ℝ) T, ∀ j ≤ n, | |
| 53 | - MemLp (fun q => jetSeries P (A.field t : LiftTangent → LiftTangent) q j) 2 (liftMeasure P)) | |
| 54 | - (hNorm : ∀ t : Icc (0 : ℝ) T, ∀ j ≤ n, | |
| 55 | - (eLpNorm (fun q => jetSeries P (A.field t : LiftTangent → LiftTangent) q j) | |
| 56 | - 2 (liftMeasure P)).toReal ≤ C*S^j*(j.factorial : ℝ)^2) | |
| 57 | - (t : ℝ) : | |
| 58 | - MemLp (fun q => compositionJet P T hT A t q n) 2 (liftMeasure P) ∧ | |
| 59 | - (eLpNorm (fun q => compositionJet P T hT A t q n) 2 (liftMeasure P)).toReal ≤ | |
| 60 | - C*(flowRadius B R T S)^n*(n.factorial : ℝ)^2 := by | |
| 61 | - apply EulerGevreyJetCompositionLp.composition_memLp_and_bound (liftMeasure P) | |
| 62 | - (forward P T hT A (projIcc 0 T hT t)) | |
| 63 | - (forward_measurePreserving P T hT A hA hdiv (projIcc 0 T hT t)) | |
| 64 | - (jetSeries P (forwardCover T hT A t)) (jetSeries P (velocityCover T hT A t)) n | |
| 65 | - ((compositionJet_joint_measurable P T hT A hA n).comp (measurable_const.prodMk measurable_id)).aestronglyMeasurable | |
| 66 | - C (1+B*T) (4*R+1) S hC (by positivity) (by positivity) hS | |
| 67 | - · exact hLp (projIcc 0 T hT t) | |
| 68 | - · exact hNorm (projIcc 0 T hT t) | |
| 69 | - · intro j hj _ q | |
| 70 | - exact forward_positive_bound T hT A B R hB hR hsmall hb j hj | |
| 71 | - (projIcc 0 T hT t) (sectionPoint P q) | |
| 72 | - | |
| 73 | 38 | include hA hdiv in |
| 74 | 39 | theorem displacementJet_memLp_and_bound (B R C S : ℝ) |
| 75 | 40 | (hB : 0 ≤ B) (hR : 0 < R) (hC : 0 ≤ C) (hS : 0 ≤ S) |
+0 −33 Euler/SmoothCylinderJets.lean View file
| @@ -55,23 +55,6 @@ def compositionJet (t : ℝ) (q : LiftDomain P) (n : ℕ) : LiftTangent [×n]→ | ||
| 55 | 55 | (jetSeries P (velocityCover T hT A t) (forward P T hT A (projIcc 0 T hT t) q)).taylorComp |
| 56 | 56 | (jetSeries P (forwardCover T hT A t) q) n |
| 57 | 57 | |
| 58 | -include hA in | |
| 59 | -theorem displacement_cover (t : ℝ) (z : LiftTangent) : | |
| 60 | - displacement P T hT A t (coveringMap P z)=EulerSmoothBanachFlow.displacement T hT A t z := | |
| 61 | - descend_cover P _ (fiber_constant_of_deck P _ (coverDisplacement_deck P T hT A hA t)) z | |
| 62 | - | |
| 63 | -include hA in | |
| 64 | -theorem displacement_smooth (t : ℝ) (q : LiftDomain P) : | |
| 65 | - ContDiff ℝ ∞ (EulerMetricTransport.localFieldLift P (displacement P T hT A t) q) := | |
| 66 | - descend_smooth P _ (coverDisplacement_deck P T hT A hA t) | |
| 67 | - (EulerSmoothBanachFlow.displacement_contDiff T hT A t) q | |
| 68 | - | |
| 69 | -include hA in | |
| 70 | -theorem displacementJet_local (t : ℝ) (q : LiftDomain P) (n : ℕ) : | |
| 71 | - displacementJet P T hT A t q n = | |
| 72 | - iteratedFDeriv ℝ n (EulerMetricTransport.localFieldLift P (displacement P T hT A t) q) 0 := | |
| 73 | - jetSeries_eq_local P _ (coverDisplacement_deck P T hT A hA t) q n | |
| 74 | - | |
| 75 | 58 | include hA in |
| 76 | 59 | theorem compositionJet_eq (t : ℝ) (q : LiftDomain P) (n : ℕ) : |
| 77 | 60 | compositionJet P T hT A t q n = |
| @@ -108,12 +91,6 @@ theorem velocityJetPath_label_continuous (n : ℕ) : | ||
| 108 | 91 | (tensorPathMap n).continuous.comp |
| 109 | 92 | (ContDiff.continuous_iteratedFDeriv (by simp) (velocityFamily_contDiff T hT A)) |
| 110 | 93 | |
| 111 | -omit [Fact (0 < P)] in | |
| 112 | -theorem displacementJetPath_label_continuous (n : ℕ) : | |
| 113 | - Continuous (displacementJetPath T hT A n) := | |
| 114 | - (tensorPathMap n).continuous.comp | |
| 115 | - (ContDiff.continuous_iteratedFDeriv (by simp) (displacementFamily_contDiff T hT A)) | |
| 116 | - | |
| 117 | 94 | include hA in |
| 118 | 95 | theorem compositionJet_joint_measurable (n : ℕ) : |
| 119 | 96 | Measurable (fun z : ℝ × LiftDomain P => compositionJet P T hT A z.1 z.2 n) := by |
| @@ -125,14 +102,4 @@ theorem compositionJet_joint_measurable (n : ℕ) : | ||
| 125 | 102 | ((sectionPoint_measurable P).comp measurable_snd)) |
| 126 | 103 | simpa only [compositionJet_path P T hT A hA,Function.comp_def] using hm |
| 127 | 104 | |
| 128 | -theorem displacementJet_joint_measurable (n : ℕ) : | |
| 129 | - Measurable (fun z : ℝ × LiftDomain P => displacementJet P T hT A z.1 z.2 n) := by | |
| 130 | - have hc : Continuous (fun z : ℝ × LiftTangent => | |
| 131 | - extendPath T hT (displacementJetPath T hT A n z.2) z.1) := | |
| 132 | - ((displacementJetPath_label_continuous T hT A n).comp continuous_snd).eval | |
| 133 | - (continuous_projIcc.comp continuous_fst) | |
| 134 | - have hm := hc.measurable.comp (measurable_fst.prodMk | |
| 135 | - ((sectionPoint_measurable P).comp measurable_snd)) | |
| 136 | - simpa only [displacementJet_path,Function.comp_def] using hm | |
| 137 | - | |
| 138 | 105 | end EulerSmoothCylinderFlow |
+0 −7 Euler/SmoothFieldSobolevTime.lean View file
| @@ -103,11 +103,4 @@ theorem sobolevPath_hasDerivWithinAt (q : ℕ) (t : Icc (0 : ℝ) T) : | ||
| 103 | 103 | simp only [extendPath,sobolevPath,ContinuousMap.coe_mk,Function.comp_def,restrict_sobolev] |
| 104 | 104 | rfl |
| 105 | 105 | |
| 106 | -include hd in | |
| 107 | -theorem sobolevPath_hasDerivAt (q : ℕ) (t : ℝ) (ht : t ∈ Ioo 0 T) : | |
| 108 | - HasDerivAt (extendPath T hT (sobolevPath A hA q)) | |
| 109 | - (sobolevPath B hB q ⟨t,ht.1.le,ht.2.le⟩) t := | |
| 110 | - (sobolevPath_hasDerivWithinAt T hT A B hA hB hd q ⟨t,ht.1.le,ht.2.le⟩).hasDerivAt | |
| 111 | - (Icc_mem_nhds ht.1 ht.2) | |
| 112 | - | |
| 113 | 106 | end EulerSmoothFieldSobolevTime |
+0 −14 Euler/SmoothFlowAcceleration.lean View file
| @@ -70,18 +70,4 @@ theorem velocityFamily_time_derivative | ||
| 70 | 70 | · intro _ s hs |
| 71 | 71 | exact velocityFamily_time_derivative_interior T hT A A₁ htime x s hs |
| 72 | 72 | |
| 73 | -theorem forward_second_time_derivative | |
| 74 | - (htime : SmoothTimeField.TimeDerivative T hT A A₁) | |
| 75 | - (x : E) (t : Icc (0 : ℝ) T) : | |
| 76 | - HasDerivWithinAt (fun s => deriv (fun r => (flowData T hT A).forward r x) s) | |
| 77 | - (accelerationFamily T hT A A₁ x t) (Icc (0 : ℝ) T) t := by | |
| 78 | - apply (velocityFamily_time_derivative T hT A A₁ htime x t).congr_of_mem _ t.property | |
| 79 | - intro s hs | |
| 80 | - rw [((flowData T hT A).forward_hasDerivAt s x).deriv] | |
| 81 | - change (flowData T hT A).velocity s ((flowData T hT A).forward s x) = | |
| 82 | - velocityFamily T hT A x (projIcc 0 T hT s) | |
| 83 | - rw [projIcc_of_mem hT hs] | |
| 84 | - exact EulerBoundedLipschitzFlow.ofTimeInterval_velocity T hT A.field | |
| 85 | - ‖A.derivative.field‖₊ (velocity_lipschitz T A) ⟨s,hs⟩ _ | |
| 86 | - | |
| 87 | 73 | end EulerSmoothBanachFlow |
+0 −10 Euler/SmoothFlowCoefficientPaths.lean View file
| @@ -65,11 +65,6 @@ def displacementCoefficient : SmoothTimeField (Icc (0 : ℝ) T) E E := | ||
| 65 | 65 | (displacementCoefficient T hT A B R hB hR hsmall hb).field t x = |
| 66 | 66 | (flowData T hT A).forward t x-x := rfl |
| 67 | 67 | |
| 68 | -theorem displacementCoefficient_jet_norm (n : ℕ) : | |
| 69 | - ‖(displacementCoefficient T hT A B R hB hR hsmall hb).jet n‖ ≤ | |
| 70 | - B*T*(4*R)^n*(n.factorial : ℝ)^2 := by | |
| 71 | - apply SmoothTimeField.ofPathFamily_jet_norm | |
| 72 | - | |
| 73 | 68 | variable (A₁ : SmoothTimeField (Icc (0 : ℝ) T) E E) |
| 74 | 69 | (htime : SmoothTimeField.TimeDerivative T hT A A₁) |
| 75 | 70 | (B₁ R₁ : ℝ) (hB₁ : 0 ≤ B₁) (hR₁ : 0 ≤ R₁) |
| @@ -98,9 +93,4 @@ def velocityCoefficient : SmoothTimeField (Icc (0 : ℝ) T) E E := | ||
| 98 | 93 | (velocityCoefficient T hT A B R hB hR hsmall hb A₁ htime B₁ R₁ hB₁ hR₁ hb₁).field t x = |
| 99 | 94 | A.field t ((flowData T hT A).forward t x) := rfl |
| 100 | 95 | |
| 101 | -theorem velocityCoefficient_jet_norm (n : ℕ) : | |
| 102 | - ‖(velocityCoefficient T hT A B R hB hR hsmall hb A₁ htime B₁ R₁ hB₁ hR₁ hb₁).jet n‖ ≤ | |
| 103 | - B*(flowRadius B R T R)^n*(n.factorial : ℝ)^2 := by | |
| 104 | - apply SmoothTimeField.ofPathFamily_jet_norm | |
| 105 | - | |
| 106 | 96 | end EulerSmoothBanachFlow |
+0 −33 Euler/SmoothFlowDeformation.lean View file
| @@ -81,37 +81,4 @@ variable (htime : SmoothTimeField.TimeDerivative T hT A A₁) | ||
| 81 | 81 | (B₁ R₁ : ℝ) (hB₁ : 0 ≤ B₁) (hR₁ : 0 ≤ R₁) |
| 82 | 82 | (hb₁ : ∀ n, ‖A₁.jet n‖ ≤ B₁*R₁^n*(n.factorial : ℝ)^2) |
| 83 | 83 | |
| 84 | -def deformationTimeCoefficient : SmoothTimeField (Icc (0 : ℝ) T) E (E →L[ℝ] E) := | |
| 85 | - (velocityCoefficient T hT A B R hB hR hsmall hb A₁ htime B₁ R₁ hB₁ hR₁ hb₁).derivative | |
| 86 | - | |
| 87 | -def deformationSecondCoefficient : SmoothTimeField (Icc (0 : ℝ) T) E (E →L[ℝ] E) := | |
| 88 | - (accelerationCoefficient T hT A B R hB hR hsmall hb A₁).derivative | |
| 89 | - | |
| 90 | -theorem displacementCoefficient_time : SmoothTimeField.TimeDerivative T hT | |
| 91 | - (displacementCoefficient T hT A B R hB hR hsmall hb) | |
| 92 | - (velocityCoefficient T hT A B R hB hR hsmall hb A₁ htime B₁ R₁ hB₁ hR₁ hb₁) := by | |
| 93 | - intro t x | |
| 94 | - exact displacementFamily_time_derivative T hT A x t | |
| 95 | - | |
| 96 | -theorem velocityCoefficient_time : SmoothTimeField.TimeDerivative T hT | |
| 97 | - (velocityCoefficient T hT A B R hB hR hsmall hb A₁ htime B₁ R₁ hB₁ hR₁ hb₁) | |
| 98 | - (accelerationCoefficient T hT A B R hB hR hsmall hb A₁) := by | |
| 99 | - intro t x | |
| 100 | - rw [accelerationCoefficient_apply] | |
| 101 | - exact velocityFamily_time_derivative T hT A A₁ htime x t | |
| 102 | - | |
| 103 | -theorem deformationCoefficient_time : SmoothTimeField.TimeDerivative T hT | |
| 104 | - (deformationCoefficient T hT A B R hB hR hsmall hb) | |
| 105 | - (deformationTimeCoefficient T hT A B R hB hR hsmall hb A₁ htime B₁ R₁ hB₁ hR₁ hb₁) := by | |
| 106 | - have hd := SmoothTimeField.TimeDerivative.derivative T hT _ _ | |
| 107 | - (displacementCoefficient_time T hT A B R hB hR hsmall hb A₁ htime B₁ R₁ hB₁ hR₁ hb₁) | |
| 108 | - intro t x | |
| 109 | - exact (hd t x).const_add (ContinuousLinearMap.id ℝ E) | |
| 110 | - | |
| 111 | -theorem deformationTimeCoefficient_time : SmoothTimeField.TimeDerivative T hT | |
| 112 | - (deformationTimeCoefficient T hT A B R hB hR hsmall hb A₁ htime B₁ R₁ hB₁ hR₁ hb₁) | |
| 113 | - (deformationSecondCoefficient T hT A B R hB hR hsmall hb A₁) := | |
| 114 | - SmoothTimeField.TimeDerivative.derivative T hT _ _ | |
| 115 | - (velocityCoefficient_time T hT A B R hB hR hsmall hb A₁ htime B₁ R₁ hB₁ hR₁ hb₁) | |
| 116 | - | |
| 117 | 84 | end EulerSmoothBanachFlow |
+0 −36 Euler/SmoothFlowJacobian.lean View file
| @@ -79,40 +79,4 @@ theorem forward_fderiv (t : Icc (0 : ℝ) T) (x : E) : | ||
| 79 | 79 | (jacobianEvolution T hT A x).forward t := |
| 80 | 80 | (forward_hasFDerivAt_label T hT A t x).fderiv |
| 81 | 81 | |
| 82 | -def jacobianEquiv (t : Icc (0 : ℝ) T) (x : E) : E ≃L[ℝ] E := | |
| 83 | - ContinuousLinearEquiv.equivOfInverse ((jacobianEvolution T hT A x).forward t) | |
| 84 | - ((jacobianEvolution T hT A x).backward t) | |
| 85 | - (fun v => congrArg (fun L : E →L[ℝ] E => L v) | |
| 86 | - ((jacobianEvolution T hT A x).backward_forward t)) | |
| 87 | - (fun v => congrArg (fun L : E →L[ℝ] E => L v) | |
| 88 | - ((jacobianEvolution T hT A x).forward_backward t)) | |
| 89 | - | |
| 90 | -theorem backward_hasFDerivAt_label (t : Icc (0 : ℝ) T) (x : E) : | |
| 91 | - HasFDerivAt (fun y => (flowData T hT A).backward t y) | |
| 92 | - ((jacobianEvolution T hT A ((flowData T hT A).backward t x)).backward t) x := by | |
| 93 | - apply EulerContinuousInverseDerivative.hasFDerivAt_inverse | |
| 94 | - (fun y => (flowData T hT A).forward t y) (fun y => (flowData T hT A).backward t y) x | |
| 95 | - ((jacobianEvolution T hT A ((flowData T hT A).backward t x)).forward t) | |
| 96 | - · exact ((flowData T hT A).backward_joint_continuous.comp | |
| 97 | - (continuous_const.prodMk continuous_id)).continuousAt | |
| 98 | - · exact forward_hasFDerivAt_label T hT A t _ | |
| 99 | - · exact Filter.Eventually.of_forall ((flowData T hT A).forward_backward t) | |
| 100 | - · intro v | |
| 101 | - exact congrArg (fun L : E →L[ℝ] E => L v) | |
| 102 | - ((jacobianEvolution T hT A ((flowData T hT A).backward t x)).backward_forward t) | |
| 103 | - | |
| 104 | -theorem backward_contDiff (t : Icc (0 : ℝ) T) : | |
| 105 | - ContDiff ℝ ∞ (fun y => (flowData T hT A).backward t y) := by | |
| 106 | - rw [contDiff_iff_contDiffAt] | |
| 107 | - intro x | |
| 108 | - apply EulerSmoothImplicitLift.contDiffAt_of_identity | |
| 109 | - (fun y => (flowData T hT A).backward t y) | |
| 110 | - (fun y => (flowData T hT A).forward t y) id x ∞ (by simp) | |
| 111 | - (((flowData T hT A).backward_joint_continuous.comp | |
| 112 | - (continuous_const.prodMk continuous_id)).continuousAt) | |
| 113 | - (forward_contDiff T hT A t).contDiffAt contDiff_id.contDiffAt | |
| 114 | - (jacobianEquiv T hT A t ((flowData T hT A).backward t x)) | |
| 115 | - · exact forward_hasFDerivAt_label T hT A t _ | |
| 116 | - · exact (flowData T hT A).forward_backward t | |
| 117 | - | |
| 118 | 82 | end EulerSmoothBanachFlow |
+0 −13 Euler/SmoothFlowJets.lean View file
| @@ -51,11 +51,6 @@ def velocityJetPath (n : ℕ) (x : E) : C(Icc (0 : ℝ) T,E [×n]→L[ℝ] E) := | ||
| 51 | 51 | def displacementJetPath (n : ℕ) (x : E) : C(Icc (0 : ℝ) T,E [×n]→L[ℝ] E) := |
| 52 | 52 | tensorPathMap n (iteratedFDeriv ℝ n (displacementFamily T hT A) x) |
| 53 | 53 | |
| 54 | -theorem jetPath_apply (n : ℕ) (x : E) (t : Icc (0 : ℝ) T) : | |
| 55 | - jetPath T hT A n x t = iteratedFDeriv ℝ n | |
| 56 | - (fun y => (flowData T hT A).forward t y) x := | |
| 57 | - tensorPath_iteratedFDeriv _ (pathFamily_contDiff T hT A) n x t | |
| 58 | - | |
| 59 | 54 | theorem velocityJetPath_apply (n : ℕ) (x : E) (t : Icc (0 : ℝ) T) : |
| 60 | 55 | velocityJetPath T hT A n x t = iteratedFDeriv ℝ n |
| 61 | 56 | (fun y => A.field t ((flowData T hT A).forward t y)) x := |
| @@ -127,14 +122,6 @@ theorem displacement_jet_hasDerivWithinAt (n : ℕ) (x : E) (t : Icc (0 : ℝ) T | ||
| 127 | 122 | rw [he, ← velocityJetPath_displacement] |
| 128 | 123 | exact displacementJetPath_hasDerivWithinAt T hT A n x t |
| 129 | 124 | |
| 130 | -theorem displacement_jet_continuous (n : ℕ) (x : E) : | |
| 131 | - Continuous (fun t => iteratedFDeriv ℝ n (displacement T hT A t) x) := by | |
| 132 | - have he : (fun t => iteratedFDeriv ℝ n (displacement T hT A t) x) = | |
| 133 | - extendPath T hT (displacementJetPath T hT A n x) := | |
| 134 | - funext (fun t => (displacementJetPath_apply T hT A n x t).symm) | |
| 135 | - rw [he] | |
| 136 | - exact extendPath_continuous T hT _ | |
| 137 | - | |
| 138 | 125 | theorem velocity_jet_continuous (n : ℕ) (x : E) : |
| 139 | 126 | Continuous (fun t : Icc (0 : ℝ) T => iteratedFDeriv ℝ n |
| 140 | 127 | (fun y => A.field t (y + displacement T hT A t y)) x) := by |
+0 −113 Euler/SmoothFlowJoint.lean View file
| @@ -25,63 +25,6 @@ theorem accelerationFamily_contDiff : ContDiff ℝ ∞ (accelerationFamily T hT | ||
| 25 | 25 | (contDiff_apply _ _ (A.derivative.superposition_contDiff.comp hp) |
| 26 | 26 | (velocityFamily_contDiff T hT A)) |
| 27 | 27 | |
| 28 | -theorem forward_joint_hasFDerivAt (t : ℝ) (ht : t ∈ Ioo 0 T) (x : E) : | |
| 29 | - HasFDerivAt (Function.uncurry (flowData T hT A).forward) | |
| 30 | - (jointDerivative T hT (pathFamily T hT A) (velocityFamily T hT A) t x) (t,x) := by | |
| 31 | - have h := joint_hasFDerivAt T hT (pathFamily T hT A) (velocityFamily T hT A) | |
| 32 | - (pathFamily_contDiff T hT A) (velocityFamily_contDiff T hT A) | |
| 33 | - (pathFamily_time_derivative T hT A) t ht x | |
| 34 | - apply h.congr_of_eventuallyEq | |
| 35 | - filter_upwards [(continuous_fst.tendsto (t,x)).eventually (Ioo_mem_nhds ht.1 ht.2)] with p hp | |
| 36 | - change (flowData T hT A).forward p.1 p.2 = | |
| 37 | - extendPath T hT (pathFamily T hT A p.2) p.1 | |
| 38 | - simp only [extendPath, projIcc_of_mem hT ⟨hp.1.le,hp.2.le⟩, pathFamily_apply] | |
| 39 | - | |
| 40 | -theorem forward_joint_contDiffAt_one (t : ℝ) (ht : t ∈ Ioo 0 T) (x : E) : | |
| 41 | - ContDiffAt ℝ 1 (Function.uncurry (flowData T hT A).forward) (t,x) := by | |
| 42 | - rw [contDiffAt_one_iff] | |
| 43 | - refine ⟨Function.uncurry (jointDerivative T hT (pathFamily T hT A) (velocityFamily T hT A)), | |
| 44 | - {p : ℝ × E | p.1 ∈ Ioo 0 T}, ?_, | |
| 45 | - (jointDerivative_continuous T hT _ _ (pathFamily_contDiff T hT A) | |
| 46 | - (velocityFamily_contDiff T hT A).continuous).continuousOn, ?_⟩ | |
| 47 | - · exact (continuous_fst.tendsto (t,x)).eventually (Ioo_mem_nhds ht.1 ht.2) | |
| 48 | - · intro p hp | |
| 49 | - exact forward_joint_hasFDerivAt T hT A p.1 hp p.2 | |
| 50 | - | |
| 51 | -theorem forward_jointDerivative_contDiffAt_one | |
| 52 | - (htime : SmoothTimeField.TimeDerivative T hT A A₁) | |
| 53 | - (t : ℝ) (ht : t ∈ Ioo 0 T) (x : E) : | |
| 54 | - ContDiffAt ℝ 1 | |
| 55 | - (Function.uncurry (jointDerivative T hT (pathFamily T hT A) (velocityFamily T hT A))) (t,x) := by | |
| 56 | - have hq := joint_contDiffAt_one T hT (velocityFamily T hT A) (accelerationFamily T hT A A₁) | |
| 57 | - (velocityFamily_contDiff T hT A) (accelerationFamily_contDiff T hT A A₁) | |
| 58 | - (velocityFamily_time_derivative T hT A A₁ htime) t ht x | |
| 59 | - have hJ := joint_contDiffAt_one T hT (spatialDerivative T (pathFamily T hT A)) | |
| 60 | - (spatialDerivative T (velocityFamily T hT A)) | |
| 61 | - (spatialDerivative_contDiff T _ (pathFamily_contDiff T hT A)) | |
| 62 | - (spatialDerivative_contDiff T _ (velocityFamily_contDiff T hT A)) | |
| 63 | - (spatialDerivative_time T hT _ _ (pathFamily_contDiff T hT A) | |
| 64 | - (velocityFamily_contDiff T hT A) (pathFamily_time_derivative T hT A)) t ht x | |
| 65 | - have hs := (ContinuousLinearMap.toSpanSingletonLIE ℝ E).toContinuousLinearEquiv.contDiff.contDiffAt.comp | |
| 66 | - (t,x) hq | |
| 67 | - let L : ((ℝ →L[ℝ] E) × (E →L[ℝ] E)) →L[ℝ] ((ℝ × E) →L[ℝ] E) := | |
| 68 | - (ContinuousLinearMap.coprodEquivL (𝕜 := ℝ) (E := ℝ) (F := E) (G := E) ℝ).toContinuousLinearMap | |
| 69 | - exact (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := 1) | |
| 70 | - (E := (ℝ →L[ℝ] E) × (E →L[ℝ] E)) (F := (ℝ × E) →L[ℝ] E) L).contDiffAt.comp | |
| 71 | - (t,x) (hs.prodMk hJ) | |
| 72 | - | |
| 73 | -theorem forward_joint_contDiffAt_two | |
| 74 | - (htime : SmoothTimeField.TimeDerivative T hT A A₁) | |
| 75 | - (t : ℝ) (ht : t ∈ Ioo 0 T) (x : E) : | |
| 76 | - ContDiffAt ℝ 2 (Function.uncurry (flowData T hT A).forward) (t,x) := by | |
| 77 | - rw [show (2 : ℕ∞ω) = ((1 : ℕ) + 1) from rfl, contDiffAt_succ_iff_hasFDerivAt] | |
| 78 | - refine ⟨Function.uncurry (jointDerivative T hT (pathFamily T hT A) (velocityFamily T hT A)), | |
| 79 | - ⟨{p : ℝ × E | p.1 ∈ Ioo 0 T}, ?_, ?_⟩, | |
| 80 | - forward_jointDerivative_contDiffAt_one T hT A A₁ htime t ht x⟩ | |
| 81 | - · exact (continuous_fst.tendsto (t,x)).eventually (Ioo_mem_nhds ht.1 ht.2) | |
| 82 | - · intro p hp | |
| 83 | - exact forward_joint_hasFDerivAt T hT A p.1 hp p.2 | |
| 84 | - | |
| 85 | 28 | omit [FiniteDimensional ℝ E] in |
| 86 | 29 | def timeLiftEquiv (J : E ≃L[ℝ] E) (v : E) : (ℝ × E) ≃L[ℝ] (ℝ × E) := |
| 87 | 30 | ContinuousLinearEquiv.equivOfInverse |
| @@ -95,61 +38,5 @@ def timeLiftEquiv (J : E ≃L[ℝ] E) (v : E) : (ℝ × E) ≃L[ℝ] (ℝ × E) | ||
| 95 | 38 | (by intro p; ext <;> simp) |
| 96 | 39 | (by intro p; ext <;> simp) |
| 97 | 40 | |
| 98 | -def liftForward (p : ℝ × E) : ℝ × E := (p.1, (flowData T hT A).forward p.1 p.2) | |
| 99 | -def liftBackward (p : ℝ × E) : ℝ × E := (p.1, (flowData T hT A).backward p.1 p.2) | |
| 100 | - | |
| 101 | -theorem liftForward_hasFDerivAt (t : ℝ) (ht : t ∈ Ioo 0 T) (x : E) : | |
| 102 | - HasFDerivAt (liftForward T hT A) | |
| 103 | - (timeLiftEquiv (jacobianEquiv T hT A ⟨t,ht.1.le,ht.2.le⟩ x) | |
| 104 | - (velocityFamily T hT A x ⟨t,ht.1.le,ht.2.le⟩)).toContinuousLinearMap (t,x) := by | |
| 105 | - have h : HasFDerivAt (liftForward T hT A) | |
| 106 | - ((ContinuousLinearMap.fst ℝ ℝ E).prod | |
| 107 | - (jointDerivative T hT (pathFamily T hT A) (velocityFamily T hT A) t x)) (t,x) := | |
| 108 | - hasFDerivAt_fst.prodMk (forward_joint_hasFDerivAt T hT A t ht x) | |
| 109 | - have he : (timeLiftEquiv (jacobianEquiv T hT A ⟨t,ht.1.le,ht.2.le⟩ x) | |
| 110 | - (velocityFamily T hT A x ⟨t,ht.1.le,ht.2.le⟩)).toContinuousLinearMap = | |
| 111 | - (ContinuousLinearMap.fst ℝ ℝ E).prod | |
| 112 | - (jointDerivative T hT (pathFamily T hT A) (velocityFamily T hT A) t x) := by | |
| 113 | - apply ContinuousLinearMap.ext | |
| 114 | - intro p | |
| 115 | - ext | |
| 116 | - · rfl | |
| 117 | - · change p.1 • velocityFamily T hT A x ⟨t,ht.1.le,ht.2.le⟩ + | |
| 118 | - (jacobianEvolution T hT A x).forward ⟨t,ht.1.le,ht.2.le⟩ p.2 = | |
| 119 | - (jointDerivative T hT (pathFamily T hT A) (velocityFamily T hT A) t x) p | |
| 120 | - simp only [jointDerivative, timeSlice, extendPath, | |
| 121 | - projIcc_of_mem hT ⟨ht.1.le,ht.2.le⟩, ContinuousLinearMap.coprod_apply, | |
| 122 | - ContinuousLinearMap.toSpanSingleton_apply] | |
| 123 | - rw [spatialDerivative_apply T _ (pathFamily_contDiff T hT A)] | |
| 124 | - change _ = p.1 • velocityFamily T hT A x ⟨t,ht.1.le,ht.2.le⟩ + | |
| 125 | - fderiv ℝ (fun y => (flowData T hT A).forward t y) x p.2 | |
| 126 | - rw [forward_fderiv T hT A ⟨t,ht.1.le,ht.2.le⟩ x] | |
| 127 | - rw [he] | |
| 128 | - exact h | |
| 129 | - | |
| 130 | -theorem liftBackward_contDiffAt_two | |
| 131 | - (htime : SmoothTimeField.TimeDerivative T hT A A₁) | |
| 132 | - (t : ℝ) (ht : t ∈ Ioo 0 T) (x : E) : | |
| 133 | - ContDiffAt ℝ 2 (liftBackward T hT A) (t,x) := by | |
| 134 | - let y := (flowData T hT A).backward t x | |
| 135 | - have hg : ContDiffAt ℝ 2 (liftForward T hT A) (t,y) := | |
| 136 | - contDiffAt_fst.prodMk (forward_joint_contDiffAt_two T hT A A₁ htime t ht y) | |
| 137 | - apply EulerSmoothImplicitLift.contDiffAt_of_identity | |
| 138 | - (liftBackward T hT A) (liftForward T hT A) id (t,x) 2 (by norm_num) | |
| 139 | - ((continuous_fst.prodMk (flowData T hT A).backward_joint_continuous).continuousAt) | |
| 140 | - hg contDiff_id.contDiffAt | |
| 141 | - (timeLiftEquiv (jacobianEquiv T hT A ⟨t,ht.1.le,ht.2.le⟩ y) | |
| 142 | - (velocityFamily T hT A y ⟨t,ht.1.le,ht.2.le⟩)) | |
| 143 | - · exact liftForward_hasFDerivAt T hT A t ht y | |
| 144 | - · intro p | |
| 145 | - ext | |
| 146 | - · rfl | |
| 147 | - · exact (flowData T hT A).forward_backward p.1 p.2 | |
| 148 | - | |
| 149 | -theorem backward_joint_contDiffAt_two | |
| 150 | - (htime : SmoothTimeField.TimeDerivative T hT A A₁) | |
| 151 | - (t : ℝ) (ht : t ∈ Ioo 0 T) (x : E) : | |
| 152 | - ContDiffAt ℝ 2 (Function.uncurry (flowData T hT A).backward) (t,x) := | |
| 153 | - (liftBackward_contDiffAt_two T hT A A₁ htime t ht x).snd | |
| 154 | 41 | |
| 155 | 42 | end EulerSmoothBanachFlow |
+0 −7 Euler/SmoothFlowParity.lean View file
| @@ -23,9 +23,6 @@ theorem flow_odd (ho : ∀ t, Function.Odd (V.velocity t)) (s t : ℝ) : Functio | ||
| 23 | 23 | theorem forward_odd (ho : ∀ t, Function.Odd (V.velocity t)) (t : ℝ) : |
| 24 | 24 | Function.Odd (V.forward t) := V.flow_odd ho 0 t |
| 25 | 25 | |
| 26 | -theorem backward_odd (ho : ∀ t, Function.Odd (V.velocity t)) (t : ℝ) : | |
| 27 | - Function.Odd (V.backward t) := V.flow_odd ho t 0 | |
| 28 | - | |
| 29 | 26 | end EulerBoundedLipschitzFlow.Data |
| 30 | 27 | |
| 31 | 28 | namespace EulerSmoothBanachFlow |
| @@ -39,8 +36,4 @@ theorem forward_odd (ho : ∀ t, Function.Odd (A.field t : E → E)) (t : ℝ) : | ||
| 39 | 36 | Function.Odd ((flowData T hT A).forward t) := |
| 40 | 37 | (flowData T hT A).forward_odd (fun r => ho (projIcc 0 T hT r)) t |
| 41 | 38 | |
| 42 | -theorem backward_odd (ho : ∀ t, Function.Odd (A.field t : E → E)) (t : ℝ) : | |
| 43 | - Function.Odd ((flowData T hT A).backward t) := | |
| 44 | - (flowData T hT A).backward_odd (fun r => ho (projIcc 0 T hT r)) t | |
| 45 | - | |
| 46 | 39 | end EulerSmoothBanachFlow |
+0 −8 Euler/SmoothFlowVolume.lean View file
| @@ -42,12 +42,4 @@ theorem forward_measurePreserving (t : Icc (0 : ℝ) T) : | ||
| 42 | 42 | · exact ((flowData T hT A).flowHomeomorph 0 t).bijective |
| 43 | 43 | · exact jacobianEvolution_det_one T hT A hdiv t |
| 44 | 44 | |
| 45 | -include hdiv in | |
| 46 | -theorem backward_measurePreserving (t : Icc (0 : ℝ) T) : | |
| 47 | - MeasurePreserving ((flowData T hT A).backward t) μ μ := by | |
| 48 | - let e := (flowData T hT A).flowHomeomorph 0 t | |
| 49 | - have hm : MeasurePreserving e.toMeasurableEquiv μ μ := | |
| 50 | - forward_measurePreserving T hT A hdiv μ t | |
| 51 | - exact MeasurePreserving.symm e.toMeasurableEquiv hm | |
| 52 | - | |
| 53 | 45 | end EulerSmoothBanachFlow |
+0 −29 Euler/SmoothGraphFlow.lean View file
| @@ -64,15 +64,6 @@ theorem graph_displacement_eq (t : Icc (0 : ℝ) T) (x : Vector3) : | ||
| 64 | 64 | rw [graph_flow_cover k m T hT A hgraph] |
| 65 | 65 | rfl |
| 66 | 66 | |
| 67 | -include hgraph in | |
| 68 | -theorem graph_forward_contDiff (t : Icc (0 : ℝ) T) : | |
| 69 | - ContDiff ℝ ∞ (graphFlow k m (flowData T hT A) 0 t) := by | |
| 70 | - have he : graphFlow k m (flowData T hT A) 0 t = | |
| 71 | - (flowData T hT (graphCoefficient k m T A)).forward t := | |
| 72 | - funext (graph_flow_eq k m T hT A hgraph 0 t) | |
| 73 | - rw [he] | |
| 74 | - exact forward_contDiff T hT (graphCoefficient k m T A) t | |
| 75 | - | |
| 76 | 67 | variable (hdiv : ∀ t z, |
| 77 | 68 | LinearMap.trace ℝ LiftTangent (fderiv ℝ (A.field t : LiftTangent → LiftTangent) z).toLinearMap=0) |
| 78 | 69 | |
| @@ -83,24 +74,4 @@ theorem graphCoefficient_trace_zero (t : Icc (0 : ℝ) T) (x : Vector3) : | ||
| 83 | 74 | graphVelocity_trace_zero k m (A.field t) ((A.smooth t).differentiable (by simp)) |
| 84 | 75 | (hgraph t) (hdiv t) x |
| 85 | 76 | |
| 86 | -include hgraph hdiv in | |
| 87 | -theorem graph_forward_measurePreserving (t : Icc (0 : ℝ) T) : | |
| 88 | - MeasurePreserving (graphFlow k m (flowData T hT A) 0 t) volume volume := by | |
| 89 | - have he : graphFlow k m (flowData T hT A) 0 t = | |
| 90 | - (flowData T hT (graphCoefficient k m T A)).forward t := | |
| 91 | - funext (graph_flow_eq k m T hT A hgraph 0 t) | |
| 92 | - rw [he] | |
| 93 | - exact forward_measurePreserving T hT (graphCoefficient k m T A) | |
| 94 | - (graphCoefficient_trace_zero k m T A hgraph hdiv) volume t | |
| 95 | - | |
| 96 | -include hgraph hdiv in | |
| 97 | -theorem graph_backward_measurePreserving (t : Icc (0 : ℝ) T) : | |
| 98 | - MeasurePreserving (graphFlow k m (flowData T hT A) t 0) volume volume := by | |
| 99 | - have he : graphFlow k m (flowData T hT A) t 0 = | |
| 100 | - (flowData T hT (graphCoefficient k m T A)).backward t := | |
| 101 | - funext (graph_flow_eq k m T hT A hgraph t 0) | |
| 102 | - rw [he] | |
| 103 | - exact backward_measurePreserving T hT (graphCoefficient k m T A) | |
| 104 | - (graphCoefficient_trace_zero k m T A hgraph hdiv) volume t | |
| 105 | - | |
| 106 | 77 | end EulerGraphInvariantFlow |
+0 −10 Euler/SmoothL2Series.lean View file
| @@ -46,12 +46,6 @@ theorem partialSum_field (A : ℕ → SmoothL2Field Space) (n : ℕ) (x : Space) | ||
| 46 | 46 | | zero => simp only [partialSum,zeroField,sum_range_zero]; rfl |
| 47 | 47 | | succ n ih => simp only [partialSum,addField_field,ih,sum_range_succ] |
| 48 | 48 | |
| 49 | -theorem partialSum_jet (A : ℕ → SmoothL2Field Space) (n q : ℕ) : | |
| 50 | - (partialSum A n).jetLp q=∑ i ∈ range n, (A i).jetLp q := by | |
| 51 | - induction n with | |
| 52 | - | zero => simp only [partialSum,zeroField_jet,sum_range_zero] | |
| 53 | - | succ n ih => simp only [partialSum,jetLp_addField,ih,sum_range_succ] | |
| 54 | - | |
| 55 | 49 | theorem partialSum_value (A : ℕ → SmoothL2Field Space) (n : ℕ) : |
| 56 | 50 | (partialSum A n).toLp=∑ i ∈ range n, (A i).toLp := by |
| 57 | 51 | induction n with |
| @@ -104,10 +98,6 @@ theorem sumField_jet_tendsto (q : ℕ) : | ||
| 104 | 98 | Tendsto (fun n => (partialSum A n).jetLp q) atTop (𝓝 ((sumField A hA).jetLp q)) := |
| 105 | 99 | (limitData A hA).jet_convergence q ⟨0,le_rfl,le_rfl⟩ |
| 106 | 100 | |
| 107 | -theorem sumField_value_tendsto : | |
| 108 | - Tendsto (fun n => (partialSum A n).toLp) atTop (𝓝 ((sumField A hA).toLp)) := | |
| 109 | - (limitData A hA).toLp_convergence ⟨0,le_rfl,le_rfl⟩ | |
| 110 | - | |
| 111 | 101 | theorem sumField_Hm_tendsto (q : ℕ) : |
| 112 | 102 | Tendsto (fun n => ∑ j ∈ range (q+1), |
| 113 | 103 | ‖(partialSum A n).jetLp j-(sumField A hA).jetLp j‖) atTop (𝓝 0) := by |
+0 −89 Euler/SmoothPathJoint.lean View file
| @@ -18,97 +18,8 @@ variable {E V : Type*} | ||
| 18 | 18 | [NormedAddCommGroup V] [NormedSpace ℝ V] [FiniteDimensional ℝ V] |
| 19 | 19 | (T : ℝ) (hT : 0 ≤ T) (f q : E → C(Icc (0 : ℝ) T,V)) |
| 20 | 20 | |
| 21 | -def timeSlice (t : ℝ) (x : E) : V := extendPath T hT (f x) t | |
| 22 | - | |
| 23 | -omit [NormedSpace ℝ E] [FiniteDimensional ℝ E] [NormedSpace ℝ V] [FiniteDimensional ℝ V] in | |
| 24 | -theorem timeSlice_joint_continuous (hf : Continuous f) : | |
| 25 | - Continuous (Function.uncurry (timeSlice T hT f)) := by | |
| 26 | - unfold timeSlice extendPath | |
| 27 | - fun_prop | |
| 28 | - | |
| 29 | -def spatialDerivative (x : E) : C(Icc (0 : ℝ) T,E →L[ℝ] V) := | |
| 30 | - ((continuousMultilinearCurryFin1 ℝ E V).toContinuousLinearEquiv.toContinuousLinearMap.compLeftContinuous | |
| 31 | - ℝ (Icc (0 : ℝ) T)) (jetFamily T f 1 x) | |
| 32 | - | |
| 33 | -theorem spatialDerivative_contDiff (hf : ContDiff ℝ ∞ f) : | |
| 34 | - ContDiff ℝ ∞ (spatialDerivative T f) := by | |
| 35 | - exact (ContinuousLinearMap.contDiff (𝕜 := ℝ) (n := ∞) | |
| 36 | - (E := C(Icc (0 : ℝ) T,E [×1]→L[ℝ] V)) (F := C(Icc (0 : ℝ) T,E →L[ℝ] V)) | |
| 37 | - ((continuousMultilinearCurryFin1 ℝ E V).toContinuousLinearEquiv.toContinuousLinearMap.compLeftContinuous | |
| 38 | - ℝ (Icc (0 : ℝ) T))).comp (jetFamily_contDiff T f hf 1) | |
| 39 | - | |
| 40 | -theorem spatialDerivative_apply (hf : ContDiff ℝ ∞ f) (x : E) (t : Icc (0 : ℝ) T) : | |
| 41 | - spatialDerivative T f x t = fderiv ℝ (fun y => f y t) x := by | |
| 42 | - change continuousMultilinearCurryFin1 ℝ E V (jetFamily T f 1 x t) = _ | |
| 43 | - rw [jetFamily_apply T f hf] | |
| 44 | - apply ContinuousLinearMap.ext | |
| 45 | - intro v | |
| 46 | - rw [continuousMultilinearCurryFin1_apply, iteratedFDeriv_one_apply] | |
| 47 | - simp | |
| 48 | - | |
| 49 | -theorem timeSlice_hasFDerivAt (hf : ContDiff ℝ ∞ f) (t : ℝ) (x : E) : | |
| 50 | - HasFDerivAt (timeSlice T hT f t) (spatialDerivative T f x (projIcc 0 T hT t)) x := by | |
| 51 | - rw [spatialDerivative_apply T f hf] | |
| 52 | - exact (((ContinuousMap.evalCLM ℝ (projIcc 0 T hT t)).contDiff.comp hf).differentiable | |
| 53 | - (by simp) x).hasFDerivAt | |
| 54 | - | |
| 55 | -def jointDerivative (t : ℝ) (x : E) : (ℝ × E) →L[ℝ] V := | |
| 56 | - (ContinuousLinearMap.toSpanSingleton ℝ (timeSlice T hT q t x)).coprod | |
| 57 | - (timeSlice T hT (spatialDerivative T f) t x) | |
| 58 | - | |
| 59 | -theorem jointDerivative_continuous (hf : ContDiff ℝ ∞ f) (hq : Continuous q) : | |
| 60 | - Continuous (Function.uncurry (jointDerivative T hT f q)) := by | |
| 61 | - exact ((ContinuousLinearMap.toSpanSingletonLIE ℝ V).continuous.comp | |
| 62 | - (timeSlice_joint_continuous T hT q hq)).continuousLinearMapCoprod | |
| 63 | - (timeSlice_joint_continuous T hT (spatialDerivative T f) | |
| 64 | - (spatialDerivative_contDiff T f hf).continuous) | |
| 65 | - | |
| 66 | 21 | variable (hf : ContDiff ℝ ∞ f) (hq : ContDiff ℝ ∞ q) |
| 67 | 22 | (hd : ∀ x (t : Icc (0 : ℝ) T), |
| 68 | 23 | HasDerivWithinAt (extendPath T hT (f x)) (q x t) (Icc (0 : ℝ) T) t) |
| 69 | 24 | |
| 70 | -include hf hq hd in | |
| 71 | -theorem joint_hasFDerivAt (t : ℝ) (ht : t ∈ Ioo 0 T) (x : E) : | |
| 72 | - HasFDerivAt (Function.uncurry (timeSlice T hT f)) (jointDerivative T hT f q t x) (t,x) := by | |
| 73 | - have hloc : ∀ᶠ p : ℝ × E in 𝓝 (t,x), p.1 ∈ Ioo 0 T := | |
| 74 | - (continuous_fst.tendsto (t,x)).eventually (Ioo_mem_nhds ht.1 ht.2) | |
| 75 | - apply HasStrictFDerivAt.hasFDerivAt | |
| 76 | - apply hasStrictFDerivAt_uncurry_coprod | |
| 77 | - (f := timeSlice T hT f) (u := (t,x)) | |
| 78 | - (f₁ := fun s y => ContinuousLinearMap.toSpanSingleton ℝ (timeSlice T hT q s y)) | |
| 79 | - (f₂ := timeSlice T hT (spatialDerivative T f)) | |
| 80 | - · filter_upwards [hloc] with p hp | |
| 81 | - change HasFDerivAt (fun s => timeSlice T hT f s p.2) | |
| 82 | - (ContinuousLinearMap.toSpanSingleton ℝ (timeSlice T hT q p.1 p.2)) p.1 | |
| 83 | - have hh := (hd p.2 ⟨p.1,hp.1.le,hp.2.le⟩).hasDerivAt (Icc_mem_nhds hp.1 hp.2) | |
| 84 | - have he : timeSlice T hT q p.1 p.2 = q p.2 ⟨p.1,hp.1.le,hp.2.le⟩ := by | |
| 85 | - simp only [timeSlice, extendPath, projIcc_of_mem hT ⟨hp.1.le,hp.2.le⟩] | |
| 86 | - rw [he] | |
| 87 | - exact hh.hasFDerivAt | |
| 88 | - · apply Eventually.of_forall | |
| 89 | - intro p | |
| 90 | - exact timeSlice_hasFDerivAt T hT f hf p.1 p.2 | |
| 91 | - · exact ((ContinuousLinearMap.toSpanSingletonLIE ℝ V).continuous.comp | |
| 92 | - (timeSlice_joint_continuous T hT q hq.continuous)).continuousAt | |
| 93 | - · exact (timeSlice_joint_continuous T hT (spatialDerivative T f) | |
| 94 | - (spatialDerivative_contDiff T f hf).continuous).continuousAt | |
| 95 | - | |
| 96 | -include hf hq hd in | |
| 97 | -theorem joint_contDiffAt_one (t : ℝ) (ht : t ∈ Ioo 0 T) (x : E) : | |
| 98 | - ContDiffAt ℝ 1 (Function.uncurry (timeSlice T hT f)) (t,x) := by | |
| 99 | - rw [contDiffAt_one_iff] | |
| 100 | - refine ⟨Function.uncurry (jointDerivative T hT f q), {p : ℝ × E | p.1 ∈ Ioo 0 T}, ?_, | |
| 101 | - (jointDerivative_continuous T hT f q hf hq.continuous).continuousOn, ?_⟩ | |
| 102 | - · exact (continuous_fst.tendsto (t,x)).eventually (Ioo_mem_nhds ht.1 ht.2) | |
| 103 | - · intro p hp | |
| 104 | - exact joint_hasFDerivAt T hT f q hf hq hd p.1 hp p.2 | |
| 105 | - | |
| 106 | -include hf hq hd in | |
| 107 | -theorem spatialDerivative_time (x : E) (t : Icc (0 : ℝ) T) : | |
| 108 | - HasDerivWithinAt (extendPath T hT (spatialDerivative T f x)) | |
| 109 | - (spatialDerivative T q x t) (Icc (0 : ℝ) T) t := by | |
| 110 | - have h := (continuousMultilinearCurryFin1 ℝ E V).toContinuousLinearEquiv.toContinuousLinearMap.hasFDerivAt.comp_hasDerivWithinAt | |
| 111 | - (t : ℝ) (jetFamily_hasDerivWithinAt T hT f q hf hq hd 1 x t) | |
| 112 | - exact h | |
| 113 | - | |
| 114 | 25 | end EulerSmoothPathJoint |
+0 −4 Euler/SmoothPathSuperposition.lean View file
| @@ -103,8 +103,4 @@ private theorem superposition_contDiff_nat (n : ℕ) : | ||
| 103 | 103 | exact contDiff_multiplier A.derivative.superposition |
| 104 | 104 | (ih (Space →L[ℝ] V) A.derivative) |
| 105 | 105 | |
| 106 | -theorem superposition_contDiff (A : SmoothCoefficientPath K V) : | |
| 107 | - ContDiff ℝ ∞ A.superposition := | |
| 108 | - contDiff_infty.mpr (fun n => superposition_contDiff_nat n V A) | |
| 109 | - | |
| 110 | 106 | end EulerMeanCoefficients.SmoothCoefficientPath |
+0 −8 Euler/SmoothPhysicalGraphFlow.lean View file
| @@ -69,14 +69,6 @@ theorem physicalCoefficient_timeDerivative (ell : ℝ) | ||
| 69 | 69 | scaledCoefficient_timeDerivative T hT (graphCoefficient k m T A) ell |
| 70 | 70 | (graphCoefficient k m T A₁) (graphCoefficient_timeDerivative k m T hT A A₁ htime) |
| 71 | 71 | |
| 72 | -include hgraph in | |
| 73 | -theorem physical_flow_eq (ell : ℝ) (hell : ell ≠ 0) (s t : ℝ) (x : Vector3) : | |
| 74 | - (flowData T hT (physicalCoefficient k m T A ell)).flow s t x = | |
| 75 | - ell • ((flowData T hT A).flow s t (graphLinear k m (ell⁻¹ • x))).1 := by | |
| 76 | - rw [physicalCoefficient,scaled_flow_eq T hT (graphCoefficient k m T A) ell hell] | |
| 77 | - rw [← graph_flow_eq k m T hT A hgraph] | |
| 78 | - rfl | |
| 79 | - | |
| 80 | 72 | include hgraph in |
| 81 | 73 | theorem physical_displacement_eq (ell : ℝ) (hell : ell ≠ 0) |
| 82 | 74 | (t : Icc (0 : ℝ) T) (x : Vector3) : |
+0 −20 Euler/SmoothTimeFieldDerivativeBounds.lean View file
| @@ -22,24 +22,4 @@ private local instance (n : ℕ) : NormedSpace ℝ (E →ᵇ (E [×n]→L[ℝ] V | ||
| 22 | 22 | private local instance (n : ℕ) : NormedAddCommGroup (E →ᵇ (E [×n]→L[ℝ] (E →L[ℝ] V))) := inferInstance |
| 23 | 23 | private local instance (n : ℕ) : NormedSpace ℝ (E →ᵇ (E [×n]→L[ℝ] (E →L[ℝ] V))) := inferInstance |
| 24 | 24 | |
| 25 | -theorem derivative_jet_norm_le (A : SmoothTimeField K E V) (n : ℕ) : | |
| 26 | - ‖A.derivative.jet n‖ ≤ ‖A.jet (n+1)‖ := by | |
| 27 | - apply (ContinuousMap.norm_le _ (norm_nonneg _)).2 | |
| 28 | - intro t | |
| 29 | - apply (BoundedContinuousFunction.norm_le (norm_nonneg _)).2 | |
| 30 | - intro x | |
| 31 | - change ‖continuousMultilinearCurryRightEquiv' ℝ n E V (A.jet (n+1) t x)‖ ≤ _ | |
| 32 | - rw [LinearIsometryEquiv.norm_map] | |
| 33 | - exact ((A.jet (n+1) t).norm_coe_le_norm x).trans ((A.jet (n+1)).norm_coe_le_norm t) | |
| 34 | - | |
| 35 | -theorem derivative_field_norm_le (A : SmoothTimeField K E V) : | |
| 36 | - ‖A.derivative.field‖ ≤ ‖A.jet 1‖ := by | |
| 37 | - apply (ContinuousMap.norm_le _ (norm_nonneg _)).2 | |
| 38 | - intro t | |
| 39 | - apply (BoundedContinuousFunction.norm_le (norm_nonneg _)).2 | |
| 40 | - intro x | |
| 41 | - change ‖continuousMultilinearCurryFin1 ℝ E V (A.jet 1 t x)‖ ≤ _ | |
| 42 | - rw [LinearIsometryEquiv.norm_map] | |
| 43 | - exact ((A.jet 1 t).norm_coe_le_norm x).trans ((A.jet 1).norm_coe_le_norm t) | |
| 44 | - | |
| 45 | 25 | end SmoothTimeField |
+0 −19 Euler/SmoothTimeFieldFromPaths.lean View file
| @@ -63,23 +63,4 @@ def ofPathFamily : SmoothTimeField (Icc (0 : ℝ) T) E V where | ||
| 63 | 63 | iteratedFDeriv ℝ n (fun y => f y t) x := |
| 64 | 64 | jetFamily_apply T f hf n x t |
| 65 | 65 | |
| 66 | -theorem ofPathFamily_jet_norm (n : ℕ) : | |
| 67 | - ‖(ofPathFamily T hT f q hf hq hd C D hC hD).jet n‖ ≤ C n := by | |
| 68 | - have hnonneg : 0 ≤ C n := (norm_nonneg _).trans (hC n ⟨0,le_rfl,hT⟩ 0) | |
| 69 | - apply (ContinuousMap.norm_le _ hnonneg).2 | |
| 70 | - intro t | |
| 71 | - apply (BoundedContinuousFunction.norm_le hnonneg).2 | |
| 72 | - intro x | |
| 73 | - rw [ofPathFamily_jet_apply] | |
| 74 | - exact hC n t x | |
| 75 | - | |
| 76 | -theorem ofPathFamily_field_norm : | |
| 77 | - ‖(ofPathFamily T hT f q hf hq hd C D hC hD).field‖ ≤ C 0 := by | |
| 78 | - have hnonneg : 0 ≤ C 0 := (norm_nonneg _).trans (hC 0 ⟨0,le_rfl,hT⟩ 0) | |
| 79 | - apply (ContinuousMap.norm_le _ hnonneg).2 | |
| 80 | - intro t | |
| 81 | - apply (BoundedContinuousFunction.norm_le hnonneg).2 | |
| 82 | - intro x | |
| 83 | - exact value_bound T f C hC t x | |
| 84 | - | |
| 85 | 66 | end SmoothTimeField |
+0 −10 Euler/SmoothTimeFieldTimeJets.lean View file
| @@ -66,14 +66,4 @@ theorem TimeDerivative.derivative (htime : TimeDerivative T hT A A₁) : | ||
| 66 | 66 | (TimeDerivative.jet_pointwise T hT A A₁ htime 1 x t) |
| 67 | 67 | exact h |
| 68 | 68 | |
| 69 | -theorem TimeDerivative.jet_uniform (htime : TimeDerivative T hT A A₁) | |
| 70 | - (n : ℕ) (t : Icc (0 : ℝ) T) : | |
| 71 | - HasDerivWithinAt (extendPath T hT (A.jet n)) | |
| 72 | - (A₁.jet n t) (Icc (0 : ℝ) T) t := by | |
| 73 | - have h := EulerBoundedFieldTimeDerivative.hasDerivWithinAt T hT (A.jet n) (A₁.jet n) | |
| 74 | - (fun s hs x => by | |
| 75 | - simpa only [extendPath, projIcc_of_mem hT hs] using | |
| 76 | - TimeDerivative.jet_pointwise T hT A A₁ htime n x ⟨s,hs⟩) t t.property | |
| 77 | - simpa only [extendPath, projIcc_of_mem hT t.property] using h | |
| 78 | - | |
| 79 | 69 | end SmoothTimeField |
+0 −24 NavierStokes/CylindricalResidual.lean View file
| @@ -52,12 +52,6 @@ theorem frame_apply (θ : ℝ) (v : Space) : | ||
| 52 | 52 | theorem connection_apply (v : Space) : connection v = pack (-v 1) (v 0) 0 := by |
| 53 | 53 | simp [connection, packDerivative_apply] |
| 54 | 54 | |
| 55 | -theorem frame_connection (θ : ℝ) : | |
| 56 | - (frame θ).comp connection = -Real.sin θ • horizontal + Real.cos θ • connection := by | |
| 57 | - ext v i | |
| 58 | - fin_cases i <;> simp [frame_apply, connection_apply, horizontal, packDerivative_apply] | |
| 59 | - ring | |
| 60 | - | |
| 61 | 55 | theorem frame_inverse (θ : ℝ) (v : Space) : frame (-θ) (frame θ v) = v := by |
| 62 | 56 | ext i |
| 63 | 57 | fin_cases i |
| @@ -280,10 +274,6 @@ theorem hasFDerivAt_frameField (q : Space) : | ||
| 280 | 274 | /-- Cartesian representation of cylindrical vector components. -/ |
| 281 | 275 | noncomputable def encode (w : Space → Space) (q : Space) : Space := frame (q 1) (w q) |
| 282 | 276 | |
| 283 | -theorem contDiffAt_encode {w : Space → Space} {q : Space} {n : WithTop ℕ∞} | |
| 284 | - (hw : ContDiffAt ℝ n w q) : ContDiffAt ℝ n (encode w) q := | |
| 285 | - (contDiff_frame.contDiffAt.comp q (projection 1).contDiff.contDiffAt).clm_apply hw | |
| 286 | - | |
| 287 | 277 | theorem fderiv_encode {w : Space → Space} {q : Space} |
| 288 | 278 | (hw : DifferentiableAt ℝ w q) (v : Space) : |
| 289 | 279 | fderiv ℝ (encode w) q v = |
| @@ -592,20 +582,6 @@ theorem navierStokesResidual_of_representation | ||
| 592 | 582 | rw [hq, frame_inverse] |
| 593 | 583 | rw [navierStokesResidual_cylindrical hu hp hr, cylindricalResidual_congr hc hP] |
| 594 | 584 | |
| 595 | -theorem navierStokesResidual_zero_iff | |
| 596 | - {u : VelocityField} {p : PressureField} {t : ℝ} {q : Space} | |
| 597 | - (hu : ContDiffAt ℝ 2 u (t, chart q)) | |
| 598 | - (hp : DifferentiableAt ℝ p (t, chart q)) (hr : 0 < q 0) : | |
| 599 | - navierStokesResidual u p t (chart q) = 0 ↔ | |
| 600 | - cylindricalResidual (velocityComponents u) (pressurePullback p) t q = 0 := by | |
| 601 | - rw [navierStokesResidual_cylindrical hu hp hr] | |
| 602 | - constructor | |
| 603 | - · intro h | |
| 604 | - have h' := congrArg (frame (-(q 1))) h | |
| 605 | - simpa only [frame_inverse, map_zero] using h' | |
| 606 | - · intro h | |
| 607 | - rw [h, map_zero] | |
| 608 | - | |
| 609 | 585 | theorem dCoord_dCoord_map (L : E →L[ℝ] F) {f : Space → E} {q : Space} |
| 610 | 586 | (hf : ContDiffAt ℝ 2 f q) (i : Fin 3) : |
| 611 | 587 | dCoord i (dCoord i (fun y => L (f y))) q = L (dCoord i (dCoord i f) q) := by |
+0 −73 NavierStokes/EndpointCoordinates.lean View file
| @@ -107,16 +107,6 @@ theorem past_mem_domain {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) | ||
| 107 | 107 | theorem qExtension_pos {h : ℝ} {p : PhysicalPoint} (hp : p ∈ domain h) : 0 < qExtension h p := |
| 108 | 108 | (PositiveRepresentatives.stableInverse_spec hp).1.1 |
| 109 | 109 | |
| 110 | -theorem qExtension_equation {h : ℝ} {p : PhysicalPoint} (hp : p ∈ domain h) : | |
| 111 | - forwardScalar (2 * h) p.2.2 (qExtension h p) = 1 - p.1 := by | |
| 112 | - have hs := (PositiveRepresentatives.stableInverse_spec hp).2 | |
| 113 | - have hz : (PositiveRepresentatives.stableInverse (2 * h) (timeAxial p)).2 = p.2.2 := by | |
| 114 | - simpa only [forwardMap, timeAxial] using congrArg (fun x : ℝ × ℝ => x.2) hs | |
| 115 | - have hq := congrArg (fun x : ℝ × ℝ => x.1) hs | |
| 116 | - change forwardScalar (2 * h) | |
| 117 | - (PositiveRepresentatives.stableInverse (2 * h) (timeAxial p)).2 (qExtension h p) = 1 - p.1 at hq | |
| 118 | - rwa [hz] at hq | |
| 119 | - | |
| 120 | 110 | theorem qExtension_smoothAt {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 121 | 111 | {p : PhysicalPoint} (hp : p ∈ domain h) : ContDiffAt ℝ ∞ (qExtension h) p := |
| 122 | 112 | ((PositiveRepresentatives.stableInverse_smoothAt (by linarith) (by linarith) hp).comp p |
| @@ -157,12 +147,6 @@ theorem qExtension_eq_physical {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) | ||
| 157 | 147 | (PositiveRepresentatives.stableInverse_eq_inverseMap |
| 158 | 148 | (by linarith : 0 < 2 * h) (by linarith : 2 * h < 1) (sub_pos.mpr hp)) |
| 159 | 149 | |
| 160 | -theorem innerExtension_eq_physical {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) | |
| 161 | - {p : PhysicalPoint} (hp : p.1 < 1) : innerExtension h p = SimilarityProfile.inner h p := by | |
| 162 | - change (p.2.1 / qExtension h p, p.2.2 / qExtension h p ^ ((1 - 2 * h) / 2)) = | |
| 163 | - (p.2.1 / SimilarityProfile.q h p, p.2.2 / SimilarityProfile.q h p ^ ((1 - 2 * h) / 2)) | |
| 164 | - rw [qExtension_eq_physical hh hh1 hp] | |
| 165 | - | |
| 166 | 150 | theorem chartExtension_eq_physical {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 167 | 151 | {p : PhysicalPoint} (hp : p.1 < 1) : chartExtension h p = SlowBorelBase.physicalChart h p := by |
| 168 | 152 | change (qExtension h p, (p.2.1 / qExtension h p, p.2.2 / qExtension h p ^ ((1 - 2 * h) / 2))) = |
| @@ -170,23 +154,6 @@ theorem chartExtension_eq_physical {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) | ||
| 170 | 154 | (p.2.1 / SimilarityProfile.q h p, p.2.2 / SimilarityProfile.q h p ^ ((1 - 2 * h) / 2))) |
| 171 | 155 | rw [qExtension_eq_physical hh hh1 hp] |
| 172 | 156 | |
| 173 | -theorem chartExtension_eventuallyEq {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) | |
| 174 | - {p : PhysicalPoint} (hp : p.1 < 1) : | |
| 175 | - chartExtension h =ᶠ[𝓝 p] SlowBorelBase.physicalChart h := by | |
| 176 | - filter_upwards [(isOpen_lt continuous_fst continuous_const).mem_nhds hp] with q hq | |
| 177 | - exact chartExtension_eq_physical hh hh1 hq | |
| 178 | - | |
| 179 | -theorem jets_eq_of_eventuallyEq {E V : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 180 | - [NormedAddCommGroup V] [NormedSpace ℝ V] {f g : E → V} {p : E} | |
| 181 | - (he : f =ᶠ[𝓝 p] g) (n : ℕ) : iteratedFDeriv ℝ n f p = iteratedFDeriv ℝ n g p := by | |
| 182 | - have he' : f =ᶠ[𝓝[univ] p] g := by simpa only [nhdsWithin_univ] using he | |
| 183 | - simpa only [iteratedFDerivWithin_univ] using he'.iteratedFDerivWithin_eq he.self_of_nhds n | |
| 184 | - | |
| 185 | -theorem chartExtension_jets_eq {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) | |
| 186 | - {p : PhysicalPoint} (hp : p.1 < 1) (n : ℕ) : | |
| 187 | - iteratedFDeriv ℝ n (chartExtension h) p = iteratedFDeriv ℝ n (SlowBorelBase.physicalChart h) p := | |
| 188 | - jets_eq_of_eventuallyEq (chartExtension_eventuallyEq hh hh1 hp) n | |
| 189 | - | |
| 190 | 157 | noncomputable def lowerDomain (h c : ℝ) : Set PhysicalPoint := |
| 191 | 158 | domain h ∩ {p | c < qExtension h p} |
| 192 | 159 | |
| @@ -250,10 +217,6 @@ theorem cartesianExtension_smoothOn {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) : | ||
| 250 | 217 | theorem cartesianExtension_pos {h : ℝ} {z : ProblemStatement.SpaceTime} |
| 251 | 218 | (hz : z ∈ cartesianDomain h) : 0 < (cartesianExtension h z).1 := qExtension_pos hz |
| 252 | 219 | |
| 253 | -theorem cartesianExtension_X_nonneg {h : ℝ} {z : ProblemStatement.SpaceTime} | |
| 254 | - (hz : z ∈ cartesianDomain h) : 0 ≤ (cartesianExtension h z).2.1 := | |
| 255 | - div_nonneg (AxisymmetricFields.radialEnergy_nonneg z.2) (qExtension_pos hz).le | |
| 256 | - | |
| 257 | 220 | theorem cartesianExtension_endpoint {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 258 | 221 | {x : ProblemStatement.Space} (hx : x 2 ≠ 0) : |
| 259 | 222 | cartesianExtension h (1, x) = |
| @@ -267,19 +230,6 @@ theorem cartesianExtension_eq_physical {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) | ||
| 267 | 230 | cartesianExtension h z = SlowBorelBase.cartesianChart h z := |
| 268 | 231 | chartExtension_eq_physical hh hh1 hz |
| 269 | 232 | |
| 270 | -theorem cartesianExtension_eventuallyEq {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) | |
| 271 | - {z : ProblemStatement.SpaceTime} (hz : z.1 < 1) : | |
| 272 | - cartesianExtension h =ᶠ[𝓝 z] SlowBorelBase.cartesianChart h := by | |
| 273 | - filter_upwards [(isOpen_lt continuous_fst continuous_const).mem_nhds hz] with p hp | |
| 274 | - exact cartesianExtension_eq_physical hh hh1 hp | |
| 275 | - | |
| 276 | -/-- Equality is for arbitrary orders of the genuine space-time derivative. -/ | |
| 277 | -theorem cartesianExtension_jets_eq {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) | |
| 278 | - {z : ProblemStatement.SpaceTime} (hz : z.1 < 1) (n : ℕ) : | |
| 279 | - iteratedFDeriv ℝ n (cartesianExtension h) z = | |
| 280 | - iteratedFDeriv ℝ n (SlowBorelBase.cartesianChart h) z := | |
| 281 | - jets_eq_of_eventuallyEq (cartesianExtension_eventuallyEq hh hh1 hz) n | |
| 282 | - | |
| 283 | 233 | theorem cartesian_endpoint_neighborhood {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 284 | 234 | {x : ProblemStatement.Space} (hx : x 2 ≠ 0) : |
| 285 | 235 | ∃ U : Set ProblemStatement.SpaceTime, IsOpen U ∧ (1, x) ∈ U ∧ U ⊆ cartesianDomain h ∧ |
| @@ -300,27 +250,4 @@ theorem cartesian_endpoint_neighborhood {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) | ||
| 300 | 250 | |
| 301 | 251 | /-! ## Smooth composition and genuine derivative transfer -/ |
| 302 | 252 | |
| 303 | -theorem composition_smoothAt {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] | |
| 304 | - {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) {z : ProblemStatement.SpaceTime} | |
| 305 | - (hz : z ∈ cartesianDomain h) {f : Chart → V} | |
| 306 | - (hf : ContDiffAt ℝ ∞ f (cartesianExtension h z)) : | |
| 307 | - ContDiffAt ℝ ∞ (fun p => f (cartesianExtension h p)) z := | |
| 308 | - hf.comp z (cartesianExtension_smoothAt hh hh1 hz) | |
| 309 | - | |
| 310 | -theorem composition_endpoint_smoothAt {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] | |
| 311 | - {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) {x : ProblemStatement.Space} | |
| 312 | - (hx : x 2 ≠ 0) {f : Chart → V} | |
| 313 | - (hf : ContDiffAt ℝ ∞ f (cartesianExtension h (1, x))) : | |
| 314 | - ContDiffAt ℝ ∞ (fun p => f (cartesianExtension h p)) (1, x) := | |
| 315 | - composition_smoothAt hh hh1 (cartesian_endpoint_mem hh hh1 hx) hf | |
| 316 | - | |
| 317 | -theorem composition_jets_eq {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] | |
| 318 | - {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (f : Chart → V) | |
| 319 | - {z : ProblemStatement.SpaceTime} (hz : z.1 < 1) (n : ℕ) : | |
| 320 | - iteratedFDeriv ℝ n (fun p => f (cartesianExtension h p)) z = | |
| 321 | - iteratedFDeriv ℝ n (fun p => f (SlowBorelBase.cartesianChart h p)) z := by | |
| 322 | - apply jets_eq_of_eventuallyEq _ n | |
| 323 | - filter_upwards [cartesianExtension_eventuallyEq hh hh1 hz] with p hp | |
| 324 | - exact congrArg f hp | |
| 325 | - | |
| 326 | 253 | end NavierStokes.EndpointCoordinates |
+0 −43 NavierStokes/EndpointExtension.lean View file
| @@ -29,10 +29,6 @@ theorem glue_eq_left {V : Type*} {a x : ℝ} {left right : ℝ → V} (hx : x | ||
| 29 | 29 | glue a left right x = left x := by |
| 30 | 30 | simp only [glue, ite_eq_left hx] |
| 31 | 31 | |
| 32 | -theorem glue_eq_right {V : Type*} {a x : ℝ} {left right : ℝ → V} (hx : a < x) : | |
| 33 | - glue a left right x = right x := by | |
| 34 | - simp only [glue, ite_eq_right (not_le_of_gt hx)] | |
| 35 | - | |
| 36 | 32 | /-- Matching endpoint values let the glued function agree with the right |
| 37 | 33 | branch on its entire closed half-line, including the joining point. -/ |
| 38 | 34 | theorem glue_eqOn_right {V : Type*} {a : ℝ} {left right : ℝ → V} |
| @@ -44,15 +40,6 @@ theorem glue_eqOn_right {V : Type*} {a : ℝ} {left right : ℝ → V} | ||
| 44 | 40 | simpa only [glue, ite_eq_left le_rfl] using hvalue |
| 45 | 41 | · simp only [glue, ite_eq_right hxa] |
| 46 | 42 | |
| 47 | -/-- Gluing preserves a right-hand time-support bound. -/ | |
| 48 | -theorem glue_vanishes_from {V : Type*} [Zero V] {a b : ℝ} {left right : ℝ → V} | |
| 49 | - (hab : a ≤ b) (hvalue : left a = right a) | |
| 50 | - (hzero : ∀ x, b ≤ x → right x = 0) : | |
| 51 | - ∀ x, b ≤ x → glue a left right x = 0 := by | |
| 52 | - intro x hx | |
| 53 | - rw [glue_eqOn_right hvalue (hab.trans hx)] | |
| 54 | - exact hzero x hx | |
| 55 | - | |
| 56 | 43 | section Normed |
| 57 | 44 | |
| 58 | 45 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| @@ -138,36 +125,6 @@ theorem contDiff_glue {a : ℝ} {left right : ℝ → V} | ||
| 138 | 125 | intro x |
| 139 | 126 | exact (hasDerivAt_gluedJet hleft hright hmatch n x).differentiableAt |
| 140 | 127 | |
| 141 | -/-- The smooth glue preserves every prescribed endpoint jet. -/ | |
| 142 | -theorem iteratedDeriv_glue_at_join {a : ℝ} {left right : ℝ → V} | |
| 143 | - (hleft : ContDiffOn ℝ ∞ left (Iic a)) | |
| 144 | - (hright : ContDiffOn ℝ ∞ right (Ici a)) | |
| 145 | - (hmatch : ∀ n : ℕ, | |
| 146 | - iteratedDerivWithin n left (Iic a) a = iteratedDerivWithin n right (Ici a) a) | |
| 147 | - (n : ℕ) : | |
| 148 | - iteratedDeriv n (glue a left right) a = iteratedDerivWithin n left (Iic a) a := by | |
| 149 | - rw [iteratedDeriv_glue hleft hright hmatch n] | |
| 150 | - exact glue_eq_left le_rfl | |
| 151 | - | |
| 152 | -/-- Every within-derivative of the zero curve is zero. -/ | |
| 153 | -theorem iteratedDerivWithin_zero_curve (s : Set ℝ) (n : ℕ) : | |
| 154 | - iteratedDerivWithin n (fun _ : ℝ => (0 : V)) s = fun _ => 0 := by | |
| 155 | - induction n with | |
| 156 | - | zero => simp only [iteratedDerivWithin_zero] | |
| 157 | - | succ n ih => | |
| 158 | - funext x | |
| 159 | - simp only [iteratedDerivWithin_succ, ih, derivWithin_fun_const, Pi.zero_apply] | |
| 160 | - | |
| 161 | -/-- An actually constructed extension in the flat case: if all left jets | |
| 162 | -vanish, extension by zero to the right is smooth. -/ | |
| 163 | -theorem contDiff_zero_extension {a : ℝ} {left : ℝ → V} | |
| 164 | - (hleft : ContDiffOn ℝ ∞ left (Iic a)) | |
| 165 | - (hflat : ∀ n : ℕ, iteratedDerivWithin n left (Iic a) a = 0) : | |
| 166 | - ContDiff ℝ ∞ (glue a left (fun _ => 0)) := by | |
| 167 | - apply contDiff_glue hleft contDiffOn_const | |
| 168 | - intro n | |
| 169 | - rw [hflat n, iteratedDerivWithin_zero_curve] | |
| 170 | - | |
| 171 | 128 | end Normed |
| 172 | 129 | |
| 173 | 130 | end NavierStokes.EndpointExtension |
+0 −432 NavierStokes/ErrorHarmonics.lean View file
| @@ -68,12 +68,6 @@ theorem band_conjugatePair {D : Type} (j : ℤ) (a : D → ℂ) : | ||
| 68 | 68 | (band_single j (fun x => a x / 2)).add |
| 69 | 69 | (band_conjugateReverse (band_single j (fun x => a x / 2))) |
| 70 | 70 | |
| 71 | -theorem norm_pair_field_le {D : Type} (j : ℤ) (a : D → ℂ) (k : ℝ) (Φ : D → ℝ) | |
| 72 | - (kp : ℤ) (p : D × ℝ) : ‖field (conjugatePair j a) k Φ kp p‖ ≤ ‖a p.1‖ := by | |
| 73 | - rw [field_conjugatePair, Complex.norm_real] | |
| 74 | - apply (Complex.abs_re_le_norm _).trans | |
| 75 | - rw [norm_mul, norm_character, mul_one] | |
| 76 | - | |
| 77 | 71 | noncomputable def pairedBlock {D : Type} (j : ℤ) (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) |
| 78 | 72 | (kp : ℕ → ℤ) (a : ℕ → D → HarmonicCalculus.ComplexVector) : HarmonicBlock D where |
| 79 | 73 | velocity n i := conjugatePair j (fun x => a n x i) |
| @@ -89,11 +83,6 @@ theorem pairedBlock_band {D : Type} (j : ℤ) (k : ℕ → ℝ) (Φ : ℕ → D | ||
| 89 | 83 | intro n l hl |
| 90 | 84 | simp [pairedBlock] at hl |
| 91 | 85 | |
| 92 | -theorem pairedBlock_symmetric {D : Type} (j : ℤ) (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) | |
| 93 | - (kp : ℕ → ℤ) (a : ℕ → D → HarmonicCalculus.ComplexVector) (n : ℕ) (i : Fin 3) : | |
| 94 | - ConjugateSymmetric ((pairedBlock j k Φ kp a).velocity n i) := | |
| 95 | - conjugatePair_symmetric j (fun x => a n x i) | |
| 96 | - | |
| 97 | 86 | theorem pairedBlock_evaluation {D : Type} (j : ℤ) (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) |
| 98 | 87 | (kp : ℕ → ℤ) (a : ℕ → D → HarmonicCalculus.ComplexVector) (n : ℕ) (p : D × ℝ) (i : Fin 3) : |
| 99 | 88 | (pairedBlock j k Φ kp a).oscillation n p i = |
| @@ -161,20 +150,6 @@ theorem excludedSlotError_angleIndependent (d : LinearWaveBounds.GraphDirections | ||
| 161 | 150 | simp only [LinearWaveBounds.excludedSlotError, dfast_angleIndependent d hψ hψa n x θ, |
| 162 | 151 | hψa n x θ, ha n x θ, hs n x θ] |
| 163 | 152 | |
| 164 | -theorem slot_coordinate_angleIndependent {s : WeightedClasses.StripData (D × ℝ)} | |
| 165 | - (g : GaussianTailFlat.SlotFamily s) (hangle : ∀ n, g.linear n ((0 : D), 1) = 0) : | |
| 166 | - AngleIndependent g.coordinate := by | |
| 167 | - intro n x θ | |
| 168 | - have hp : (x, θ) = (x, 0) + θ • ((0 : D), 1) := by ext <;> simp | |
| 169 | - simp only [GaussianTailFlat.SlotFamily.coordinate, hp, map_add, map_smul, hangle, | |
| 170 | - smul_zero, add_zero] | |
| 171 | - | |
| 172 | -theorem slot_cutoff_angleIndependent {s : WeightedClasses.StripData (D × ℝ)} | |
| 173 | - (g : GaussianTailFlat.SlotFamily s) (hangle : ∀ n, g.linear n ((0 : D), 1) = 0) : | |
| 174 | - AngleIndependent g.cutoff := by | |
| 175 | - intro n x θ | |
| 176 | - exact congrArg GaussianTailFlat.profile (slot_coordinate_angleIndependent g hangle n x θ) | |
| 177 | - | |
| 178 | 153 | /-- The retained Gaussian term as a literal real carrier field. -/ |
| 179 | 154 | noncomputable def gaussianField (d : LinearWaveBounds.GraphDirections (D × ℝ)) |
| 180 | 155 | (ψ : ℕ → D × ℝ → ℝ) (a source : ℕ → D × ℝ → HarmonicCalculus.ComplexVector) |
| @@ -187,26 +162,12 @@ noncomputable def gaussianBlock (d : LinearWaveBounds.GraphDirections (D × ℝ) | ||
| 187 | 162 | (j : ℤ) (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) (kp : ℕ → ℤ) : HarmonicBlock D := |
| 188 | 163 | pairedBlock j k Φ kp (fun n x => LinearWaveBounds.excludedSlotError d ψ a source n (x, 0)) |
| 189 | 164 | |
| 190 | -theorem gaussianBlock_metadata (d : LinearWaveBounds.GraphDirections (D × ℝ)) | |
| 191 | - (ψ : ℕ → D × ℝ → ℝ) (a source : ℕ → D × ℝ → HarmonicCalculus.ComplexVector) | |
| 192 | - (j : ℤ) (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) (kp : ℕ → ℤ) : | |
| 193 | - (gaussianBlock d ψ a source j k Φ kp).frequency = k ∧ | |
| 194 | - (gaussianBlock d ψ a source j k Φ kp).phase = Φ ∧ | |
| 195 | - (gaussianBlock d ψ a source j k Φ kp).angularFrequency = kp := ⟨rfl, rfl, rfl⟩ | |
| 196 | - | |
| 197 | 165 | theorem gaussianBlock_band (d : LinearWaveBounds.GraphDirections (D × ℝ)) |
| 198 | 166 | (ψ : ℕ → D × ℝ → ℝ) (a source : ℕ → D × ℝ → HarmonicCalculus.ComplexVector) |
| 199 | 167 | (j : ℤ) (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) (kp : ℕ → ℤ) : |
| 200 | 168 | HarmonicBlock.BandLimited (gaussianBlock d ψ a source j k Φ kp) j.natAbs := |
| 201 | 169 | pairedBlock_band j k Φ kp _ |
| 202 | 170 | |
| 203 | -theorem gaussianBlock_symmetric (d : LinearWaveBounds.GraphDirections (D × ℝ)) | |
| 204 | - (ψ : ℕ → D × ℝ → ℝ) (a source : ℕ → D × ℝ → HarmonicCalculus.ComplexVector) | |
| 205 | - (j : ℤ) (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) (kp : ℕ → ℤ) (n : ℕ) (i : Fin 3) : | |
| 206 | - ConjugateSymmetric ((gaussianBlock d ψ a source j k Φ kp).velocity n i) := | |
| 207 | - conjugatePair_symmetric j | |
| 208 | - (fun x => LinearWaveBounds.excludedSlotError d ψ a source n (x, 0) i) | |
| 209 | - | |
| 210 | 171 | /-- The witness evaluates to the actual error, from primitive angular |
| 211 | 172 | independence and the actual phase identity. No error representation is assumed. -/ |
| 212 | 173 | theorem gaussianBlock_represents (d : LinearWaveBounds.GraphDirections (D × ℝ)) |
| @@ -226,145 +187,18 @@ theorem gaussianBlock_represents (d : LinearWaveBounds.GraphDirections (D × ℝ | ||
| 226 | 187 | rw [← character_eq_carrier j (k n) (Ψ n) p, hphase n p.1 p.2] |
| 227 | 188 | rw [excludedSlotError_angleIndependent d hψ hψa ha hs n p.1 p.2] |
| 228 | 189 | |
| 229 | -/-- The affine Gaussian slot profile supplies the cutoff invariance itself. -/ | |
| 230 | -theorem gaussianSlotBlock_represents {s : WeightedClasses.StripData (D × ℝ)} | |
| 231 | - (g : GaussianTailFlat.SlotFamily s) (d : LinearWaveBounds.GraphDirections (D × ℝ)) | |
| 232 | - {a source : ℕ → D × ℝ → HarmonicCalculus.ComplexVector} | |
| 233 | - (j : ℤ) (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) (Ψ : ℕ → D × ℝ → ℝ) (kp : ℕ → ℤ) | |
| 234 | - (hangle : ∀ n, g.linear n ((0 : D), 1) = 0) | |
| 235 | - (ha : AngleIndependent a) (hs : AngleIndependent source) | |
| 236 | - (hphase : ∀ n x θ, k n * Ψ n (x, θ) = k n * Φ n x + (kp n : ℝ) * θ) : | |
| 237 | - (gaussianBlock d g.cutoff a source j k Φ kp).oscillation = | |
| 238 | - gaussianField d g.cutoff a source j k Ψ := | |
| 239 | - gaussianBlock_represents d j k Φ Ψ kp | |
| 240 | - (fun n => GaussianTailFlat.profile_contDiff.comp (g.coordinate_contDiff n)) | |
| 241 | - (slot_cutoff_angleIndependent g hangle) ha hs hphase | |
| 242 | - | |
| 243 | -theorem gaussianField_eq_gaussianTailError {s : WeightedClasses.StripData (D × ℝ)} | |
| 244 | - (g : GaussianTailFlat.SlotFamily s) (d : LinearWaveBounds.GraphDirections (D × ℝ)) | |
| 245 | - (hfast : ∀ n, g.linear n (d.fastScale n • d.fast) = (g.length n)⁻¹) | |
| 246 | - (a source : ℕ → D × ℝ → HarmonicCalculus.ComplexVector) | |
| 247 | - (j : ℤ) (k : ℕ → ℝ) (Ψ : ℕ → D × ℝ → ℝ) : | |
| 248 | - gaussianField d g.cutoff a source j k Ψ = | |
| 249 | - fun n p i => (HarmonicCalculus.vectorMode (k n * (j : ℝ)) (Ψ n) (g.error a source n) p i).re := by | |
| 250 | - unfold gaussianField | |
| 251 | - rw [LinearWaveBounds.excludedSlotError_eq_gaussianError g d hfast] | |
| 252 | - | |
| 253 | 190 | end GaussianErrors |
| 254 | 191 | |
| 255 | 192 | section AliasErrors |
| 256 | 193 | |
| 257 | 194 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 258 | 195 | |
| 259 | -/-- The pressure alias already used in the correction state, represented in | |
| 260 | -mode zero. Its metadata can be chosen to equal any associated label. -/ | |
| 261 | -noncomputable def pressureAliasBlock (r : ReconstructionData) (c : Context (Lift S)) | |
| 262 | - (u : State (Lift S)) (k : ℕ → ℝ) (Φ : ℕ → Lift S → ℝ) (kp : ℕ → ℤ) : | |
| 263 | - HarmonicBlock (Lift S) := | |
| 264 | - zeroBlock k Φ kp (fun n x => CorrectionState.pressureAlias r c u n (x, 0)) | |
| 265 | - | |
| 266 | -theorem pressureAliasBlock_represents (r : ReconstructionData) (c : Context (Lift S)) | |
| 267 | - (u : State (Lift S)) (k : ℕ → ℝ) (Φ : ℕ → Lift S → ℝ) (kp : ℕ → ℤ) : | |
| 268 | - (pressureAliasBlock r c u k Φ kp).oscillation = CorrectionState.pressureAlias r c u := by | |
| 269 | - funext n p i | |
| 270 | - exact zeroBlock_evaluation k Φ kp _ n p i | |
| 271 | - | |
| 272 | -theorem pressureAliasBlock_band (r : ReconstructionData) (c : Context (Lift S)) | |
| 273 | - (u : State (Lift S)) (k : ℕ → ℝ) (Φ : ℕ → Lift S → ℝ) (kp : ℕ → ℤ) : | |
| 274 | - HarmonicBlock.BandLimited (pressureAliasBlock r c u k Φ kp) 0 := | |
| 275 | - zeroBlock_band k Φ kp _ | |
| 276 | - | |
| 277 | -theorem pressureAlias_angleIndependent (r : ReconstructionData) (c : Context (Lift S)) | |
| 278 | - (u : State (Lift S)) : AngleIndependent (CorrectionState.pressureAlias r c u) := | |
| 279 | - fun _ _ _ => rfl | |
| 280 | - | |
| 281 | -/-- The temporal alias retains its actual differentiated shifted integral. -/ | |
| 282 | -noncomputable def temporalAliasBlock (r : ReconstructionData) (h : ℝ) | |
| 283 | - (c : Context (Lift S)) (u : State (Lift S)) | |
| 284 | - (k : ℕ → ℝ) (Φ : ℕ → Lift S → ℝ) (kp : ℕ → ℤ) : HarmonicBlock (Lift S) := | |
| 285 | - zeroBlock k Φ kp (fun n x => CorrectionState.temporalAlias r h c u n (x, 0)) | |
| 286 | - | |
| 287 | -theorem temporalAliasBlock_represents (r : ReconstructionData) (h : ℝ) | |
| 288 | - (c : Context (Lift S)) (u : State (Lift S)) | |
| 289 | - (k : ℕ → ℝ) (Φ : ℕ → Lift S → ℝ) (kp : ℕ → ℤ) : | |
| 290 | - (temporalAliasBlock r h c u k Φ kp).oscillation = | |
| 291 | - CorrectionState.temporalAlias r h c u := by | |
| 292 | - funext n p i | |
| 293 | - exact zeroBlock_evaluation k Φ kp _ n p i | |
| 294 | - | |
| 295 | -theorem temporalAliasBlock_band (r : ReconstructionData) (h : ℝ) | |
| 296 | - (c : Context (Lift S)) (u : State (Lift S)) | |
| 297 | - (k : ℕ → ℝ) (Φ : ℕ → Lift S → ℝ) (kp : ℕ → ℤ) : | |
| 298 | - HarmonicBlock.BandLimited (temporalAliasBlock r h c u k Φ kp) 0 := | |
| 299 | - zeroBlock_band k Φ kp _ | |
| 300 | - | |
| 301 | -theorem temporalAlias_angleIndependent (r : ReconstructionData) (h : ℝ) | |
| 302 | - (c : Context (Lift S)) (u : State (Lift S)) : | |
| 303 | - AngleIndependent (CorrectionState.temporalAlias r h c u) := fun _ _ _ => rfl | |
| 304 | - | |
| 305 | -/-- Replacing a pressure reconstruction changes the saved alias by its exact | |
| 306 | -new-minus-old value, which is again mode zero. -/ | |
| 307 | -noncomputable def pressureAliasRefreshBlock (r : ReconstructionData) | |
| 308 | - (c : Context (Lift S)) (oldState newState : State (Lift S)) | |
| 309 | - (k : ℕ → ℝ) (Φ : ℕ → Lift S → ℝ) (kp : ℕ → ℤ) : HarmonicBlock (Lift S) := | |
| 310 | - zeroBlock k Φ kp (fun n x => CorrectionState.pressureAlias r c newState n (x, 0) - | |
| 311 | - CorrectionState.pressureAlias r c oldState n (x, 0)) | |
| 312 | - | |
| 313 | -theorem pressureAliasRefreshBlock_represents (r : ReconstructionData) | |
| 314 | - (c : Context (Lift S)) (oldState newState : State (Lift S)) | |
| 315 | - (k : ℕ → ℝ) (Φ : ℕ → Lift S → ℝ) (kp : ℕ → ℤ) : | |
| 316 | - (pressureAliasRefreshBlock r c oldState newState k Φ kp).oscillation = | |
| 317 | - CorrectionState.pressureAlias r c newState - CorrectionState.pressureAlias r c oldState := by | |
| 318 | - funext n p i | |
| 319 | - exact zeroBlock_evaluation k Φ kp _ n p i | |
| 320 | - | |
| 321 | -theorem pressureAliasRefreshBlock_band (r : ReconstructionData) | |
| 322 | - (c : Context (Lift S)) (oldState newState : State (Lift S)) | |
| 323 | - (k : ℕ → ℝ) (Φ : ℕ → Lift S → ℝ) (kp : ℕ → ℤ) : | |
| 324 | - HarmonicBlock.BandLimited (pressureAliasRefreshBlock r c oldState newState k Φ kp) 0 := | |
| 325 | - zeroBlock_band k Φ kp _ | |
| 326 | - | |
| 327 | 196 | end AliasErrors |
| 328 | 197 | |
| 329 | 198 | /-- Conjugacy is kept for both velocity and pressure coefficients. -/ |
| 330 | 199 | def RealBlock {D : Type} (b : HarmonicBlock D) : Prop := |
| 331 | 200 | (∀ n i, ConjugateSymmetric (b.velocity n i)) ∧ ∀ n, ConjugateSymmetric (b.pressure n) |
| 332 | 201 | |
| 333 | -theorem pairedBlock_real {D : Type} (j : ℤ) (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) | |
| 334 | - (kp : ℕ → ℤ) (a : ℕ → D → HarmonicCalculus.ComplexVector) : | |
| 335 | - RealBlock (pairedBlock j k Φ kp a) := by | |
| 336 | - refine ⟨pairedBlock_symmetric j k Φ kp a, ?_⟩ | |
| 337 | - intro n l x | |
| 338 | - simp [pairedBlock] | |
| 339 | - | |
| 340 | -theorem zeroBlock_real {D : Type} (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) (kp : ℕ → ℤ) | |
| 341 | - (a : MeanVector D) : RealBlock (zeroBlock k Φ kp a) := by | |
| 342 | - refine ⟨zeroBlock_symmetric k Φ kp a, ?_⟩ | |
| 343 | - intro n l x | |
| 344 | - simp [zeroBlock] | |
| 345 | - | |
| 346 | -theorem gaussianBlock_real {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] | |
| 347 | - (d : LinearWaveBounds.GraphDirections (D × ℝ)) | |
| 348 | - (ψ : ℕ → D × ℝ → ℝ) (a source : ℕ → D × ℝ → HarmonicCalculus.ComplexVector) | |
| 349 | - (j : ℤ) (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) (kp : ℕ → ℤ) : | |
| 350 | - RealBlock (gaussianBlock d ψ a source j k Φ kp) := | |
| 351 | - pairedBlock_real j k Φ kp _ | |
| 352 | - | |
| 353 | -theorem pressureAliasBlock_real {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] | |
| 354 | - (r : ReconstructionData) (c : Context (Lift S)) (u : State (Lift S)) | |
| 355 | - (k : ℕ → ℝ) (Φ : ℕ → Lift S → ℝ) (kp : ℕ → ℤ) : | |
| 356 | - RealBlock (pressureAliasBlock r c u k Φ kp) := zeroBlock_real k Φ kp _ | |
| 357 | - | |
| 358 | -theorem temporalAliasBlock_real {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] | |
| 359 | - (r : ReconstructionData) (h : ℝ) (c : Context (Lift S)) (u : State (Lift S)) | |
| 360 | - (k : ℕ → ℝ) (Φ : ℕ → Lift S → ℝ) (kp : ℕ → ℤ) : | |
| 361 | - RealBlock (temporalAliasBlock r h c u k Φ kp) := zeroBlock_real k Φ kp _ | |
| 362 | - | |
| 363 | -theorem pressureAliasRefreshBlock_real {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] | |
| 364 | - (r : ReconstructionData) (c : Context (Lift S)) (oldState newState : State (Lift S)) | |
| 365 | - (k : ℕ → ℝ) (Φ : ℕ → Lift S → ℝ) (kp : ℕ → ℤ) : | |
| 366 | - RealBlock (pressureAliasRefreshBlock r c oldState newState k Φ kp) := zeroBlock_real k Φ kp _ | |
| 367 | - | |
| 368 | 202 | theorem symmetric_add {D : Type} {a b : Coefficients D} |
| 369 | 203 | (ha : ConjugateSymmetric a) (hb : ConjugateSymmetric b) : |
| 370 | 204 | ConjugateSymmetric (a + b) := by |
| @@ -431,12 +265,6 @@ theorem sumBlock_represents {D ι : Type} (s : Finset ι) | ||
| 431 | 265 | intro l hl |
| 432 | 266 | rw [hk l hl, hΦ l hl, hkp l hl] |
| 433 | 267 | |
| 434 | -theorem realBlock_field {D : Type} {b : HarmonicBlock D} (hb : RealBlock b) | |
| 435 | - (n : ℕ) (p : D × ℝ) (i : Fin 3) : | |
| 436 | - ((b.oscillation n p i : ℝ) : ℂ) = | |
| 437 | - field (b.velocity n i) (b.frequency n) (b.phase n) (b.angularFrequency n) p := | |
| 438 | - field_real (hb.1 n i) _ _ _ _ | |
| 439 | - | |
| 440 | 268 | section FiniteStages |
| 441 | 269 | |
| 442 | 270 | variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| @@ -470,278 +298,18 @@ theorem GaussianData.block_represents (g : GaussianData D) | ||
| 470 | 298 | gaussianBlock_represents g.directions g.harmonic k Φ g.phase kp |
| 471 | 299 | hg.1 hg.2.1 hg.2.2.1 hg.2.2.2.1 hg.2.2.2.2 |
| 472 | 300 | |
| 473 | -noncomputable def accumulatedGaussianBlock (steps : ℕ) (g : ℕ → GaussianData D) | |
| 474 | - (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) (kp : ℕ → ℤ) : HarmonicBlock D := | |
| 475 | - sumBlock (Finset.range steps) k Φ kp (fun s => (g s).block k Φ kp) | |
| 476 | - | |
| 477 | -theorem accumulatedGaussianBlock_represents (steps : ℕ) (g : ℕ → GaussianData D) | |
| 478 | - (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) (kp : ℕ → ℤ) | |
| 479 | - (hg : ∀ s < steps, (g s).Compatible k Φ kp) : | |
| 480 | - (accumulatedGaussianBlock steps g k Φ kp).oscillation = | |
| 481 | - ∑ s ∈ Finset.range steps, (g s).error k := by | |
| 482 | - rw [accumulatedGaussianBlock, sumBlock_represents (Finset.range steps) k Φ kp | |
| 483 | - (fun s => (g s).block k Φ kp) | |
| 484 | - (fun _ _ => rfl) (fun _ _ => rfl) (fun _ _ => rfl)] | |
| 485 | - apply Finset.sum_congr rfl | |
| 486 | - intro s hs | |
| 487 | - exact (g s).block_represents k Φ kp (hg s (Finset.mem_range.mp hs)) | |
| 488 | - | |
| 489 | -theorem accumulatedGaussianBlock_band (steps : ℕ) (g : ℕ → GaussianData D) | |
| 490 | - (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) (kp : ℕ → ℤ) | |
| 491 | - (N : ℕ) (hj : ∀ s < steps, (g s).harmonic.natAbs ≤ N) : | |
| 492 | - HarmonicBlock.BandLimited (accumulatedGaussianBlock steps g k Φ kp) N := by | |
| 493 | - apply sumBlock_band | |
| 494 | - intro s hs | |
| 495 | - have he := gaussianBlock_band (g s).directions (g s).cutoff (g s).amplitude | |
| 496 | - (g s).source (g s).harmonic k Φ kp | |
| 497 | - exact ⟨fun n i => (he.1 n i).mono (hj s (Finset.mem_range.mp hs)), | |
| 498 | - fun n => (he.2 n).mono (hj s (Finset.mem_range.mp hs))⟩ | |
| 499 | - | |
| 500 | -/-- This bounds the values of the occupied harmonics, not merely their count. -/ | |
| 501 | -theorem accumulatedGaussianBlock_band_pow (steps : ℕ) (g : ℕ → GaussianData D) | |
| 502 | - (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) (kp : ℕ → ℤ) | |
| 503 | - (hj : ∀ s < steps, (g s).harmonic.natAbs ≤ 2 ^ s) : | |
| 504 | - HarmonicBlock.BandLimited (accumulatedGaussianBlock steps g k Φ kp) (2 ^ steps) := by | |
| 505 | - apply accumulatedGaussianBlock_band | |
| 506 | - intro s hs | |
| 507 | - exact (hj s hs).trans (Nat.pow_le_pow_right (by decide : 1 ≤ 2) (Nat.le_of_lt hs)) | |
| 508 | - | |
| 509 | -theorem accumulatedGaussianBlock_real (steps : ℕ) (g : ℕ → GaussianData D) | |
| 510 | - (k : ℕ → ℝ) (Φ : ℕ → D → ℝ) (kp : ℕ → ℤ) : | |
| 511 | - RealBlock (accumulatedGaussianBlock steps g k Φ kp) := by | |
| 512 | - apply sumBlock_real | |
| 513 | - intro s hs | |
| 514 | - exact pairedBlock_real (g s).harmonic k Φ kp _ | |
| 515 | - | |
| 516 | 301 | end FiniteStages |
| 517 | 302 | |
| 518 | 303 | section AliasStages |
| 519 | 304 | |
| 520 | 305 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 521 | 306 | |
| 522 | -/-- Actual saved aliases after finitely many temporal stages and the current | |
| 523 | -pressure reconstruction. The state path may be produced by any correction rule. -/ | |
| 524 | -noncomputable def accumulatedAlias (steps : ℕ) (r : ReconstructionData) (h : ℝ) | |
| 525 | - (c : Context (Lift S)) (u : ℕ → State (Lift S)) : Oscillation (Lift S) := | |
| 526 | - CorrectionState.pressureAlias r c (u steps) + | |
| 527 | - ∑ s ∈ Finset.range steps, CorrectionState.temporalAlias r h c (u s) | |
| 528 | - | |
| 529 | -noncomputable def accumulatedAliasBlock (steps : ℕ) (r : ReconstructionData) (h : ℝ) | |
| 530 | - (c : Context (Lift S)) (u : ℕ → State (Lift S)) | |
| 531 | - (k : ℕ → ℝ) (Φ : ℕ → Lift S → ℝ) (kp : ℕ → ℤ) : HarmonicBlock (Lift S) := | |
| 532 | - zeroBlock k Φ kp (fun n x => accumulatedAlias steps r h c u n (x, 0)) | |
| 533 | - | |
| 534 | -theorem accumulatedAlias_angleIndependent (steps : ℕ) (r : ReconstructionData) (h : ℝ) | |
| 535 | - (c : Context (Lift S)) (u : ℕ → State (Lift S)) : | |
| 536 | - AngleIndependent (accumulatedAlias steps r h c u) := by | |
| 537 | - intro n x θ | |
| 538 | - simp only [accumulatedAlias, Pi.add_apply, Finset.sum_apply, CorrectionState.pressureAlias, | |
| 539 | - CorrectionState.temporalAlias] | |
| 540 | - | |
| 541 | -theorem accumulatedAliasBlock_represents (steps : ℕ) (r : ReconstructionData) (h : ℝ) | |
| 542 | - (c : Context (Lift S)) (u : ℕ → State (Lift S)) | |
| 543 | - (k : ℕ → ℝ) (Φ : ℕ → Lift S → ℝ) (kp : ℕ → ℤ) : | |
| 544 | - (accumulatedAliasBlock steps r h c u k Φ kp).oscillation = accumulatedAlias steps r h c u := by | |
| 545 | - funext n p i | |
| 546 | - rw [accumulatedAliasBlock, zeroBlock_evaluation] | |
| 547 | - exact congrFun (accumulatedAlias_angleIndependent steps r h c u n p.1 p.2).symm i | |
| 548 | - | |
| 549 | -theorem accumulatedAliasBlock_band (steps : ℕ) (r : ReconstructionData) (h : ℝ) | |
| 550 | - (c : Context (Lift S)) (u : ℕ → State (Lift S)) | |
| 551 | - (k : ℕ → ℝ) (Φ : ℕ → Lift S → ℝ) (kp : ℕ → ℤ) : | |
| 552 | - HarmonicBlock.BandLimited (accumulatedAliasBlock steps r h c u k Φ kp) 0 := | |
| 553 | - zeroBlock_band k Φ kp _ | |
| 554 | - | |
| 555 | -theorem accumulatedAliasBlock_real (steps : ℕ) (r : ReconstructionData) (h : ℝ) | |
| 556 | - (c : Context (Lift S)) (u : ℕ → State (Lift S)) | |
| 557 | - (k : ℕ → ℝ) (Φ : ℕ → Lift S → ℝ) (kp : ℕ → ℤ) : | |
| 558 | - RealBlock (accumulatedAliasBlock steps r h c u k Φ kp) := zeroBlock_real k Φ kp _ | |
| 559 | - | |
| 560 | -theorem accumulatedAlias_succ (steps : ℕ) (r : ReconstructionData) (h : ℝ) | |
| 561 | - (c : Context (Lift S)) (u : ℕ → State (Lift S)) : | |
| 562 | - accumulatedAlias (steps + 1) r h c u = accumulatedAlias steps r h c u + | |
| 563 | - CorrectionState.temporalAlias r h c (u steps) + | |
| 564 | - (CorrectionState.pressureAlias r c (u (steps + 1)) - | |
| 565 | - CorrectionState.pressureAlias r c (u steps)) := by | |
| 566 | - simp only [accumulatedAlias, Finset.sum_range_succ] | |
| 567 | - abel | |
| 568 | - | |
| 569 | -theorem pressure_refreshes_telescope (steps : ℕ) (r : ReconstructionData) | |
| 570 | - (c : Context (Lift S)) (u : ℕ → State (Lift S)) : | |
| 571 | - (∑ s ∈ Finset.range steps, (CorrectionState.pressureAlias r c (u (s + 1)) - | |
| 572 | - CorrectionState.pressureAlias r c (u s))) = | |
| 573 | - CorrectionState.pressureAlias r c (u steps) - CorrectionState.pressureAlias r c (u 0) := by | |
| 574 | - induction steps with | |
| 575 | - | zero => simp | |
| 576 | - | succ steps ih => rw [Finset.sum_range_succ, ih]; abel | |
| 577 | - | |
| 578 | -/-- The two retained error types for one label are added as actual finite | |
| 579 | -coefficient families. The base error is handled separately in the physical | |
| 580 | -decomposition and cancels from the good residual. -/ | |
| 581 | -noncomputable def accumulatedErrorBlock (steps : ℕ) (g : ℕ → GaussianData (Lift S)) | |
| 582 | - (r : ReconstructionData) (h : ℝ) (c : Context (Lift S)) (u : ℕ → State (Lift S)) | |
| 583 | - (k : ℕ → ℝ) (Φ : ℕ → Lift S → ℝ) (kp : ℕ → ℤ) : HarmonicBlock (Lift S) where | |
| 584 | - velocity n i := (accumulatedGaussianBlock steps g k Φ kp).velocity n i + | |
| 585 | - (accumulatedAliasBlock steps r h c u k Φ kp).velocity n i | |
| 586 | - pressure _ := 0 | |
| 587 | - frequency := k | |
| 588 | - phase := Φ | |
| 589 | - angularFrequency := kp | |
| 590 | - | |
| 591 | -theorem accumulatedErrorBlock_represents (steps : ℕ) (g : ℕ → GaussianData (Lift S)) | |
| 592 | - (r : ReconstructionData) (h : ℝ) (c : Context (Lift S)) (u : ℕ → State (Lift S)) | |
| 593 | - (k : ℕ → ℝ) (Φ : ℕ → Lift S → ℝ) (kp : ℕ → ℤ) | |
| 594 | - (hg : ∀ s < steps, (g s).Compatible k Φ kp) : | |
| 595 | - (accumulatedErrorBlock steps g r h c u k Φ kp).oscillation = | |
| 596 | - (∑ s ∈ Finset.range steps, (g s).error k) + accumulatedAlias steps r h c u := by | |
| 597 | - rw [← accumulatedGaussianBlock_represents steps g k Φ kp hg, | |
| 598 | - ← accumulatedAliasBlock_represents steps r h c u k Φ kp] | |
| 599 | - funext n p i | |
| 600 | - change (evaluate (_ + _) p.1 _).re = (evaluate _ p.1 _).re + (evaluate _ p.1 _).re | |
| 601 | - rw [evaluate_add, Complex.add_re] | |
| 602 | - rfl | |
| 603 | - | |
| 604 | -theorem accumulatedErrorBlock_band (steps : ℕ) (g : ℕ → GaussianData (Lift S)) | |
| 605 | - (r : ReconstructionData) (h : ℝ) (c : Context (Lift S)) (u : ℕ → State (Lift S)) | |
| 606 | - (k : ℕ → ℝ) (Φ : ℕ → Lift S → ℝ) (kp : ℕ → ℤ) | |
| 607 | - (hj : ∀ s < steps, (g s).harmonic.natAbs ≤ 2 ^ s) : | |
| 608 | - HarmonicBlock.BandLimited (accumulatedErrorBlock steps g r h c u k Φ kp) (2 ^ steps) := by | |
| 609 | - refine ⟨fun n i => ?_, ?_⟩ | |
| 610 | - · exact ((accumulatedGaussianBlock_band_pow steps g k Φ kp hj).1 n i).add | |
| 611 | - (((accumulatedAliasBlock_band steps r h c u k Φ kp).1 n i).mono (Nat.zero_le _)) | |
| 612 | - · intro n j hj | |
| 613 | - simp [accumulatedErrorBlock] at hj | |
| 614 | - | |
| 615 | -theorem accumulatedErrorBlock_real (steps : ℕ) (g : ℕ → GaussianData (Lift S)) | |
| 616 | - (r : ReconstructionData) (h : ℝ) (c : Context (Lift S)) (u : ℕ → State (Lift S)) | |
| 617 | - (k : ℕ → ℝ) (Φ : ℕ → Lift S → ℝ) (kp : ℕ → ℤ) : | |
| 618 | - RealBlock (accumulatedErrorBlock steps g r h c u k Φ kp) := by | |
| 619 | - refine ⟨fun n i => symmetric_add | |
| 620 | - ((accumulatedGaussianBlock_real steps g k Φ kp).1 n i) | |
| 621 | - ((accumulatedAliasBlock_real steps r h c u k Φ kp).1 n i), ?_⟩ | |
| 622 | - intro n j x | |
| 623 | - simp [accumulatedErrorBlock] | |
| 624 | - | |
| 625 | 307 | end AliasStages |
| 626 | 308 | |
| 627 | 309 | section AxisymmetricBase |
| 628 | 310 | |
| 629 | 311 | open ProblemStatement AxisymmetricFields |
| 630 | 312 | |
| 631 | -/-- Cartesian location of the cylindrical point `(r,z,θ)`. -/ | |
| 632 | -noncomputable def polarSpace (r z θ : ℝ) : Space := | |
| 633 | - AxisymmetricResidual.pack (r * Real.cos θ) (r * Real.sin θ) z | |
| 634 | - | |
| 635 | -noncomputable def polarProfile (q : ProfilePoint) : ProfilePoint := | |
| 636 | - (q.1, (q.2.1 ^ 2 / 2, q.2.2)) | |
| 637 | - | |
| 638 | -theorem profilePoint_polarSpace (q : ProfilePoint) (θ : ℝ) : | |
| 639 | - profilePoint q.1 (polarSpace q.2.1 q.2.2 θ) = polarProfile q := by | |
| 640 | - simp only [profilePoint, polarProfile, radialEnergy, polarSpace, | |
| 641 | - AxisymmetricResidual.pack_zero, AxisymmetricResidual.pack_one, AxisymmetricResidual.pack_two] | |
| 642 | - congr 2 | |
| 643 | - calc | |
| 644 | - _ = q.2.1 ^ 2 * (Real.sin θ ^ 2 + Real.cos θ ^ 2) / 2 := by ring | |
| 645 | - _ = _ := by rw [Real.sin_sq_add_cos_sq, mul_one] | |
| 646 | - | |
| 647 | -/-- Components in the actual orthonormal radial/angular/axial frame. -/ | |
| 648 | -noncomputable def cylindricalComponents (θ : ℝ) (v : Space) : Fin 3 → ℝ := | |
| 649 | - ![Real.cos θ * v 0 + Real.sin θ * v 1, | |
| 650 | - -Real.sin θ * v 0 + Real.cos θ * v 1, v 2] | |
| 651 | - | |
| 652 | -theorem cylindricalComponents_pack (r θ A B C : ℝ) : | |
| 653 | - cylindricalComponents θ (AxisymmetricResidual.pack | |
| 654 | - (r * Real.cos θ * A + r * Real.sin θ * B) | |
| 655 | - (r * Real.sin θ * A - r * Real.cos θ * B) C) = ![r * A, -r * B, C] := by | |
| 656 | - funext i | |
| 657 | - fin_cases i | |
| 658 | - · simp [cylindricalComponents] | |
| 659 | - calc | |
| 660 | - _ = r * A * (Real.sin θ ^ 2 + Real.cos θ ^ 2) := by ring | |
| 661 | - _ = _ := by rw [Real.sin_sq_add_cos_sq, mul_one] | |
| 662 | - · simp [cylindricalComponents] | |
| 663 | - calc | |
| 664 | - _ = -r * B * (Real.sin θ ^ 2 + Real.cos θ ^ 2) := by ring | |
| 665 | - _ = _ := by simp only [Real.sin_sq_add_cos_sq, mul_one, neg_mul] | |
| 666 | - · simp [cylindricalComponents] | |
| 667 | - | |
| 668 | -theorem axisymmetricVelocity_components (B F U : Profile) (q : ProfilePoint) (θ : ℝ) : | |
| 669 | - cylindricalComponents θ (AxisymmetricResidual.velocity B F U | |
| 670 | - (q.1, polarSpace q.2.1 q.2.2 θ)) = | |
| 671 | - ![-q.2.1 * B (polarProfile q), q.2.1 * F (polarProfile q), U (polarProfile q)] := by | |
| 672 | - have he := cylindricalComponents_pack q.2.1 θ (-B (polarProfile q)) | |
| 673 | - (-F (polarProfile q)) (U (polarProfile q)) | |
| 674 | - dsimp only [AxisymmetricResidual.velocity, AxisymmetricResidual.componentX, | |
| 675 | - AxisymmetricResidual.componentY, AxisymmetricResidual.lift] | |
| 676 | - rw [profilePoint_polarSpace] | |
| 677 | - simp only [polarSpace, AxisymmetricResidual.pack_zero, AxisymmetricResidual.pack_one] | |
| 678 | - convert! he using 2 <;> ring_nf | |
| 679 | - | |
| 680 | -/-- The literal Cartesian Navier--Stokes residual, expressed in its cylindrical | |
| 681 | -frame. This is not an independently specified error oracle. -/ | |
| 682 | -noncomputable def axisymmetricBaseError (B F U P : ℕ → Profile) : Oscillation ProfilePoint := | |
| 683 | - fun n p => cylindricalComponents p.2 | |
| 684 | - (navierStokesResidual (AxisymmetricResidual.velocity (B n) (F n) (U n)) | |
| 685 | - (AxisymmetricResidual.pressure (P n)) p.1.1 (polarSpace p.1.2.1 p.1.2.2 p.2)) | |
| 686 | - | |
| 687 | -noncomputable def axisymmetricBaseValue (B F U P : ℕ → Profile) : MeanVector ProfilePoint := | |
| 688 | - fun n q => ![q.2.1 * AxisymmetricResidual.residualRadial (B n) (F n) (U n) (P n) (polarProfile q), | |
| 689 | - -q.2.1 * AxisymmetricResidual.residualAngular (B n) (F n) (U n) (polarProfile q), | |
| 690 | - AxisymmetricResidual.residualAxial (B n) (U n) (P n) (polarProfile q)] | |
| 691 | - | |
| 692 | -theorem axisymmetricBaseError_eq_value (B F U P : ℕ → Profile) (n : ℕ) | |
| 693 | - (q : ProfilePoint) (θ : ℝ) | |
| 694 | - (hB : AxisymmetricResidual.SliceC2 (B n) q.1) | |
| 695 | - (hF : AxisymmetricResidual.SliceC2 (F n) q.1) | |
| 696 | - (hU : AxisymmetricResidual.SliceC2 (U n) q.1) | |
| 697 | - (hP : AxisymmetricResidual.SliceDifferentiable (P n) q.1) : | |
| 698 | - axisymmetricBaseError B F U P n (q, θ) = axisymmetricBaseValue B F U P n q := by | |
| 699 | - unfold axisymmetricBaseError | |
| 700 | - rw [AxisymmetricResidual.navierStokesResidual_velocity hB hF hU hP | |
| 701 | - (polarSpace q.2.1 q.2.2 θ), profilePoint_polarSpace] | |
| 702 | - simp only [polarSpace, AxisymmetricResidual.pack_zero, AxisymmetricResidual.pack_one] | |
| 703 | - exact cylindricalComponents_pack q.2.1 θ | |
| 704 | - (AxisymmetricResidual.residualRadial (B n) (F n) (U n) (P n) (polarProfile q)) | |
| 705 | - (AxisymmetricResidual.residualAngular (B n) (F n) (U n) (polarProfile q)) | |
| 706 | - (AxisymmetricResidual.residualAxial (B n) (U n) (P n) (polarProfile q)) | |
| 707 | - | |
| 708 | -/-- A local-in-time identity; no smooth continuation through singular time is | |
| 709 | -required to place the actual base residual in the zero harmonic. -/ | |
| 710 | -theorem axisymmetricBaseError_angleIndependent_at (B F U P : ℕ → Profile) (n : ℕ) | |
| 711 | - (q : ProfilePoint) (θ : ℝ) | |
| 712 | - (hB : AxisymmetricResidual.SliceC2 (B n) q.1) | |
| 713 | - (hF : AxisymmetricResidual.SliceC2 (F n) q.1) | |
| 714 | - (hU : AxisymmetricResidual.SliceC2 (U n) q.1) | |
| 715 | - (hP : AxisymmetricResidual.SliceDifferentiable (P n) q.1) : | |
| 716 | - axisymmetricBaseError B F U P n (q, θ) = axisymmetricBaseError B F U P n (q, 0) := by | |
| 717 | - rw [axisymmetricBaseError_eq_value B F U P n q θ hB hF hU hP, | |
| 718 | - axisymmetricBaseError_eq_value B F U P n q 0 hB hF hU hP] | |
| 719 | - | |
| 720 | -noncomputable def axisymmetricBaseBlock (B F U P : ℕ → Profile) | |
| 721 | - (k : ℕ → ℝ) (Φ : ℕ → ProfilePoint → ℝ) (kp : ℕ → ℤ) : HarmonicBlock ProfilePoint := | |
| 722 | - zeroBlock k Φ kp (axisymmetricBaseValue B F U P) | |
| 723 | - | |
| 724 | -theorem axisymmetricBaseBlock_represents_at (B F U P : ℕ → Profile) | |
| 725 | - (k : ℕ → ℝ) (Φ : ℕ → ProfilePoint → ℝ) (kp : ℕ → ℤ) | |
| 726 | - (n : ℕ) (q : ProfilePoint) (θ : ℝ) (i : Fin 3) | |
| 727 | - (hB : AxisymmetricResidual.SliceC2 (B n) q.1) | |
| 728 | - (hF : AxisymmetricResidual.SliceC2 (F n) q.1) | |
| 729 | - (hU : AxisymmetricResidual.SliceC2 (U n) q.1) | |
| 730 | - (hP : AxisymmetricResidual.SliceDifferentiable (P n) q.1) : | |
| 731 | - (axisymmetricBaseBlock B F U P k Φ kp).oscillation n (q, θ) i = | |
| 732 | - axisymmetricBaseError B F U P n (q, θ) i := by | |
| 733 | - rw [axisymmetricBaseBlock, zeroBlock_evaluation, | |
| 734 | - axisymmetricBaseError_eq_value B F U P n q θ hB hF hU hP] | |
| 735 | - | |
| 736 | -theorem axisymmetricBaseBlock_band (B F U P : ℕ → Profile) | |
| 737 | - (k : ℕ → ℝ) (Φ : ℕ → ProfilePoint → ℝ) (kp : ℕ → ℤ) : | |
| 738 | - HarmonicBlock.BandLimited (axisymmetricBaseBlock B F U P k Φ kp) 0 := | |
| 739 | - zeroBlock_band k Φ kp _ | |
| 740 | - | |
| 741 | -theorem axisymmetricBaseBlock_real (B F U P : ℕ → Profile) | |
| 742 | - (k : ℕ → ℝ) (Φ : ℕ → ProfilePoint → ℝ) (kp : ℕ → ℤ) : | |
| 743 | - RealBlock (axisymmetricBaseBlock B F U P k Φ kp) := zeroBlock_real k Φ kp _ | |
| 744 | - | |
| 745 | 313 | end AxisymmetricBase |
| 746 | 314 | |
| 747 | 315 | end NavierStokes.ErrorHarmonics |
+12 −0 routes/s1-euler-smooth-1/README.md added View file
| @@ -0,0 +1,12 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-euler-smooth-1 | |
| 6 | + | |
| 7 | +The family `Euler/Smooth*` (22 files): delete the 72 declarations of it that nothing uses, 586 lines. | |
| 8 | +Each names a declaration in `unit.json`'s list; no statement or proof that stays is changed. | |
| 9 | + | |
| 10 | +## Next | |
| 11 | + | |
| 12 | +Open the pull request. Anything further on this family is another unit of #10. | |
+2 −1 routes/s1-ns-appendix-1/README.md View file
| @@ -18,7 +18,8 @@ together with their support (`rising`, `rising_zero`, `rising_succ`, `rising_non | ||
| 18 | 18 | `rising_succ_left`, `derivativeCoeff_eq_rising`, `gamma_add_nat`, `first_endpoint_jet`). |
| 19 | 19 | |
| 20 | 20 | What this pull request now deletes: `NavierStokes.AppendixHeatResults.rising_pos`, a plain helper |
| 21 | -with no docstring and no paper tie. `git grep -n -w rising_pos` over the whole tree finds no hit. | |
| 21 | +with no docstring and no paper tie. `git grep -n -w rising_pos -- '*.lean'` finds only its own | |
| 22 | +definition on `main` and no use anywhere in the tree. | |
| 22 | 23 | `python3 checks/challenge.py .` ends with `ok`. |
| 23 | 24 | |
| 24 | 25 | ## Next |
+21 −0 routes/s1-ns-cylindrical-1/README.md added View file
| @@ -0,0 +1,21 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-cylindrical-1 | |
| 6 | + | |
| 7 | +One unit of #10 (S-1, "Delete declarations that nothing uses"), family `NavierStokes/Cylindrical*`: | |
| 8 | +delete three declarations of `NavierStokes/CylindricalResidual.lean` that nothing uses — | |
| 9 | +`NavierStokes.CylindricalResidual.frame_connection` (lines 55–59), | |
| 10 | +`NavierStokes.CylindricalResidual.contDiffAt_encode` (283–285) and | |
| 11 | +`NavierStokes.CylindricalResidual.navierStokesResidual_zero_iff` (595–607), 24 lines. | |
| 12 | + | |
| 13 | +Nothing in the tree names them: `git grep -n -w frame_connection`, `git grep -n -w contDiffAt_encode` | |
| 14 | +and `git grep -n -w navierStokesResidual_zero_iff` find no hit at all. None of the three carries a | |
| 15 | +docstring, so no paper result depends on it. The diff is deletions only; statements and proofs that | |
| 16 | +stay are untouched. `python3 checks/challenge.py .` ends with `ok: …`. | |
| 17 | + | |
| 18 | +## Next | |
| 19 | + | |
| 20 | +Push and open the pull request; the rest of the `Cylindrical*` family and the other units of #10 are | |
| 21 | +separate. | |
+31 −0 routes/s1-ns-endpoint-1/README.md added View file
| @@ -0,0 +1,31 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-endpoint-1 | |
| 6 | + | |
| 7 | +One unit of issue #10 (S-1: delete declarations that nothing uses): 16 | |
| 8 | +declarations of the family `NavierStokes/Endpoint*` that nothing on main uses, | |
| 9 | +116 lines, in two files. | |
| 10 | + | |
| 11 | +- `NavierStokes/EndpointCoordinates.lean`: `qExtension_equation`, | |
| 12 | + `innerExtension_eq_physical`, `chartExtension_eventuallyEq`, | |
| 13 | + `jets_eq_of_eventuallyEq`, `chartExtension_jets_eq`, | |
| 14 | + `cartesianExtension_X_nonneg`, `cartesianExtension_eventuallyEq`, | |
| 15 | + `cartesianExtension_jets_eq`, `composition_smoothAt`, | |
| 16 | + `composition_endpoint_smoothAt`, `composition_jets_eq`. | |
| 17 | +- `NavierStokes/EndpointExtension.lean`: `glue_eq_right`, `glue_vanishes_from`, | |
| 18 | + `iteratedDeriv_glue_at_join`, `iteratedDerivWithin_zero_curve`, | |
| 19 | + `contDiff_zero_extension`. | |
| 20 | + | |
| 21 | +The unit was cut from Treant's run of 2026-12-03 (TitiSkywalker/NavierStokesAndEuler) | |
| 22 | +and re-read against this project's declaration graph under the rule that the | |
| 23 | +paper's results stay: nothing here is reached from `NavierStokes/PaperResults.lean`, | |
| 24 | +`NavierStokes/R3/Theorem.lean` or `NavierStokes/LocalPaperTheorem.lean`, and no | |
| 25 | +deleted docstring names a numbered result of either paper. The diff is deletions | |
| 26 | +only; no remaining statement or proof changes. Each deleted short name was | |
| 27 | +searched with `git grep -n -w` across the tree and has no other hit. | |
| 28 | + | |
| 29 | +## Next | |
| 30 | + | |
| 31 | +Open the pull request into `main` (`Part of #10`) and let `build` say what it says. | |
+20 −0 routes/s1-ns-error-1/README.md added View file
| @@ -0,0 +1,20 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-error-1 | |
| 6 | + | |
| 7 | +One unit of issue #10 (S-1): delete the 57 declarations of the family | |
| 8 | +`NavierStokes/Error*` that nothing uses, in `NavierStokes/ErrorHarmonics.lean` — | |
| 9 | +432 lines, deletions only. The deletions were cut from Treant's run of 2026-12-03 and | |
| 10 | +re-read against this project's declaration graph on `main`, so a declaration the | |
| 11 | +paper's results reach stays (see the pull request body). The deleted docstrings cite | |
| 12 | +no numbered result of the paper. | |
| 13 | + | |
| 14 | +Checked: `git grep -n -w` finds none of the 57 short names anywhere left in the tree; | |
| 15 | +`python3 checks/challenge.py .` ends `ok`. | |
| 16 | + | |
| 17 | +## Next | |
| 18 | + | |
| 19 | +The pull request into `main` is open; wait for `build`. If it reports an error, the | |
| 20 | +declaration it names is still used by one that stays and is put back on this branch. | |