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

Comparing changes
Choose two branches to see what changed, then open a pull request to bring the work across.
Able to merge. These branches can be merged automatically.
A pull request is already open: #126 chore(Euler/Smooth): delete 72 declarations nothing uses
1 commit
+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 |
+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. | |