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

refactor(Euler/Cylinder): 17 small modules folded into the file that imports them (−13.4%, measured) #684
Merged
+0 −72 Euler/CylinderAngleEvolution.lean deleted
| @@ -1,72 +0,0 @@ | ||
| 1 | -import Euler.CylinderAngleRepresentative | |
| 2 | -import Euler.CylinderAngleWordBounds | |
| 3 | -import Euler.CylinderTimeRegularity | |
| 4 | - | |
| 5 | -/-! Time differentiation of the actual normalized angular integral on the cylinder. -/ | |
| 6 | - | |
| 7 | -noncomputable section | |
| 8 | - | |
| 9 | -namespace EulerCylinderAnglePrimitive | |
| 10 | - | |
| 11 | -open Set MeasureTheory EulerLiftedGradientSpace EulerCylinderSobolevSpace | |
| 12 | - EulerCylinderSmoothOrbit EulerLpCylinderTranslation EulerMetricTransport | |
| 13 | - EulerVolterraConvolution | |
| 14 | -open scoped ContDiff | |
| 15 | - | |
| 16 | -variable (P : ℝ) [Fact (0 < P)] | |
| 17 | - {K : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 18 | - | |
| 19 | -omit [CompactSpace K] in | |
| 20 | -theorem pathPrimitive_translation (p : C(K,LiftL2 P)) (a : LiftTangent) : | |
| 21 | - pathPrimitive P (pathTranslate P a p) = pathTranslate P a (pathPrimitive P p) := by | |
| 22 | - apply ContinuousMap.ext | |
| 23 | - intro t | |
| 24 | - exact primitive_mixed_translation P a (p t) | |
| 25 | - | |
| 26 | -theorem pathPrimitive_orbit_contDiff (p : C(K,LiftL2 P)) | |
| 27 | - (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) : | |
| 28 | - ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a (pathPrimitive P p)) := by | |
| 29 | - simpa only [Function.comp_def, pathPrimitive_translation] using | |
| 30 | - (pathPrimitive (K := K) P).contDiff.comp hp | |
| 31 | - | |
| 32 | -theorem primitive_sobolevPath (p : C(K,LiftL2 P)) | |
| 33 | - (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) (q : ℕ) (t : K) : | |
| 34 | - sobolevPath P q (pathPrimitive P p) (pathPrimitive_orbit_contDiff P p hp) t = | |
| 35 | - sobolevPrimitive P q (sobolevPath P q p hp t) := by | |
| 36 | - apply value_injective P | |
| 37 | - change value P (sobolevPath P q (pathPrimitive P p) _ t) = | |
| 38 | - primitive P (value P (sobolevPath P q p hp t)) | |
| 39 | - rw [sobolevPath_value, sobolevPath_value] | |
| 40 | - rfl | |
| 41 | - | |
| 42 | -/-- The representative of the time-dependent L² primitive is the same explicit angular integral. -/ | |
| 43 | -theorem pointField_primitive_formula (p : C(K,LiftL2 P)) | |
| 44 | - (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) | |
| 45 | - (hmean : ∀ t y, (∫ s in (0 : ℝ)..P, pointField P p hp t (y,(s : AddCircle P)))=0) | |
| 46 | - (t : K) (y : Vector3) (θ : ℝ) : | |
| 47 | - pointField P (pathPrimitive P p) (pathPrimitive_orbit_contDiff P p hp) t (y,(θ : AddCircle P)) = | |
| 48 | - EulerAngleMeanZeroPrimitive.primitive P | |
| 49 | - (fun s => pointField P p hp t (y,(s : AddCircle P))) θ := by | |
| 50 | - unfold pointField | |
| 51 | - rw [primitive_sobolevPath P p hp 3 t] | |
| 52 | - apply pointEvaluation_primitive_classical P (sobolevPath P 3 p hp t) | |
| 53 | - (pointField P p hp t) | |
| 54 | - (smoothField_continuous P _ (pointField_smooth P p hp t)) | |
| 55 | - · simpa only [sobolevPath_value] using pointField_ae P p hp t | |
| 56 | - · exact hmean t | |
| 57 | - | |
| 58 | -section Time | |
| 59 | - | |
| 60 | -variable (T : ℝ) (hT : 0 ≤ T) (p f : C(Icc (0 : ℝ) T,LiftL2 P)) | |
| 61 | - (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) | |
| 62 | - (hf : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a f)) | |
| 63 | - (hd : ∀ t : Icc (0 : ℝ) T, HasDerivWithinAt (extendPath T hT p) (f t) (Icc (0 : ℝ) T) t) | |
| 64 | - | |
| 65 | -include hd in | |
| 66 | -theorem pathPrimitive_time_derivative (t : Icc (0 : ℝ) T) : | |
| 67 | - HasDerivWithinAt (extendPath T hT (pathPrimitive P p)) (pathPrimitive P f t) | |
| 68 | - (Icc (0 : ℝ) T) t := | |
| 69 | - primitive_hasDerivWithinAt P _ t (extendPath T hT p) (f t) (hd t) | |
| 70 | - | |
| 71 | -end Time | |
| 72 | -end EulerCylinderAnglePrimitive | |
+0 −60 Euler/CylinderAngleWordBounds.lean deleted
| @@ -1,60 +0,0 @@ | ||
| 1 | -import Euler.CylinderAnglePrimitive | |
| 2 | -import Euler.ParameterSobolevProductGevrey | |
| 3 | -import Euler.LpCylinderOrbit | |
| 4 | - | |
| 5 | -/-! Same-radius mixed-word and continuous-time estimates for the actual angular operator. -/ | |
| 6 | - | |
| 7 | -noncomputable section | |
| 8 | - | |
| 9 | -namespace EulerCylinderAnglePrimitive | |
| 10 | - | |
| 11 | -open Set MeasureTheory EulerLiftedGradientSpace EulerParameterWordGevrey EulerGevrey | |
| 12 | - EulerLpCylinderTranslation | |
| 13 | -open scoped ContDiff | |
| 14 | - | |
| 15 | -variable (P : ℝ) [Fact (0 < P)] | |
| 16 | - | |
| 17 | -theorem primitive_hasDerivWithinAt (s : Set ℝ) (t : ℝ) (u : ℝ → LiftL2 P) | |
| 18 | - (ut : LiftL2 P) (hu : HasDerivWithinAt u ut s t) : | |
| 19 | - HasDerivWithinAt (fun r => primitive P (u r)) (primitive P ut) s t := | |
| 20 | - (primitive P).hasFDerivAt.comp_hasDerivWithinAt t hu | |
| 21 | - | |
| 22 | -theorem primitive_mixed_translation (a : LiftTangent) (u : LiftL2 P) : | |
| 23 | - primitive P (translate P a u) = translate P a (primitive P u) := | |
| 24 | - primitive_translation P _ u | |
| 25 | - | |
| 26 | -variable {X ι : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] [Fintype ι] | |
| 27 | - | |
| 28 | -variable {K : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 29 | - | |
| 30 | -private local instance : NormedAddCommGroup C(K,LiftL2 P) := inferInstance | |
| 31 | -private local instance : NormedSpace ℝ C(K,LiftL2 P) := inferInstance | |
| 32 | -private local instance : NormedAddCommGroup (C(K,LiftL2 P) →L[ℝ] C(K,LiftL2 P)) := inferInstance | |
| 33 | -private local instance : NormedSpace ℝ (C(K,LiftL2 P) →L[ℝ] C(K,LiftL2 P)) := inferInstance | |
| 34 | - | |
| 35 | -def pathPrimitive : C(K,LiftL2 P) →L[ℝ] C(K,LiftL2 P) := | |
| 36 | - (primitive P).compLeftContinuous ℝ K | |
| 37 | - | |
| 38 | -omit [CompactSpace K] in | |
| 39 | -@[simp] theorem pathPrimitive_apply (u : C(K,LiftL2 P)) (t : K) : | |
| 40 | - pathPrimitive P u t = primitive P (u t) := rfl | |
| 41 | - | |
| 42 | -theorem pathPrimitive_norm : ‖pathPrimitive (K := K) P‖ ≤ P := by | |
| 43 | - have hP : 0 ≤ P := le_of_lt (Fact.out : 0 < P) | |
| 44 | - apply ContinuousLinearMap.opNorm_le_bound _ hP | |
| 45 | - intro u | |
| 46 | - apply (ContinuousMap.norm_le _ (mul_nonneg hP (norm_nonneg u))).mpr | |
| 47 | - intro t | |
| 48 | - exact ((primitive P).le_of_opNorm_le (primitive_norm P) (u t)).trans | |
| 49 | - (mul_le_mul_of_nonneg_left (u.norm_coe_le_norm t) hP) | |
| 50 | - | |
| 51 | -/-- The angular operation preserves the same fixed base order and radius in the true time supremum. -/ | |
| 52 | -theorem pathPrimitive_block_bound (directions : ι → X) (q : ℕ) | |
| 53 | - (f : X → C(K,LiftL2 P)) (hf : ContDiff ℝ ∞ f) (n : ℕ) (x : X) : | |
| 54 | - block directions q (fun y => pathPrimitive P (f y)) n x ≤ P*block directions q f n x := by | |
| 55 | - have h := block_comp_clm_le (E := C(K,LiftL2 P)) (F := C(K,LiftL2 P)) | |
| 56 | - directions q (pathPrimitive (K := K) P) f hf n x | |
| 57 | - have hn : ‖pathPrimitive (K := K) P‖ ≤ P := pathPrimitive_norm P | |
| 58 | - exact h.trans (mul_le_mul_of_nonneg_right hn (block_nonneg directions q f n x)) | |
| 59 | - | |
| 60 | -end EulerCylinderAnglePrimitive | |
+0 −132 Euler/CylinderClassicalWordBounds.lean deleted
| @@ -1,132 +0,0 @@ | ||
| 1 | -import Euler.CylinderOrbitSobolev | |
| 2 | - | |
| 3 | -/-! | |
| 4 | -# Exact classical mixed-word norms of the reconstructed cylinder field | |
| 5 | - | |
| 6 | -The actual classical spatial/angular derivatives represent the exact L² | |
| 7 | -translation words. Consequently the fixed-Hq external-word sum equals the | |
| 8 | -block used by the inverse estimate, with no alphabet factor or radius loss. | |
| 9 | --/ | |
| 10 | - | |
| 11 | -noncomputable section | |
| 12 | - | |
| 13 | -namespace EulerCylinderSmoothOrbit | |
| 14 | - | |
| 15 | -open Set MeasureTheory ContinuousLinearMap Finset EulerSmoothLimit EulerLiftedGradientSpace | |
| 16 | - EulerLpCylinderTranslation EulerCylinderSobolev EulerSpatialSobolevInverse | |
| 17 | - EulerPressureSpatialRegularity EulerMetricTransport EulerStrongSmoothJet EulerParameterWordGevrey | |
| 18 | -open scoped ContDiff | |
| 19 | - | |
| 20 | -variable (period : ℝ) [Fact (0 < period)] | |
| 21 | - | |
| 22 | -/-- The actual strong L² derivative for an ordered mixed word. -/ | |
| 23 | -def strongWord (u : LiftL2 period) {n : ℕ} (w : Fin n → Fin 4) : LiftL2 period := | |
| 24 | - wordDerivative standardDirection (fun a : LiftTangent => translate period a u) w 0 | |
| 25 | - | |
| 26 | -@[simp] theorem strongWord_zero (u : LiftL2 period) (w : Fin 0 → Fin 4) : strongWord period u w = u := by | |
| 27 | - simp only [strongWord,wordDerivative_zero,translate_zero] | |
| 28 | - | |
| 29 | -/-- Appending a direction differentiates the actual field. -/ | |
| 30 | -theorem strongWord_snoc (u : LiftL2 period) (hu : SmoothOrbit period u) | |
| 31 | - {n : ℕ} (w : Fin n → Fin 4) (i : Fin 4) : | |
| 32 | - strongWord period u (Fin.snoc w i) = strongWord period (orbitDerivative period u (standardDirection i)) w := by | |
| 33 | - have he : directional standardDirection (fun a : LiftTangent => translate period a u) i = | |
| 34 | - fun a : LiftTangent => translate period a (orbitDerivative period u (standardDirection i)) := | |
| 35 | - funext (fun a => (orbitDerivative_translation period u hu (standardDirection i) a).symm) | |
| 36 | - unfold strongWord | |
| 37 | - rw [wordDerivative_snoc standardDirection _ hu w i 0,he] | |
| 38 | - | |
| 39 | -/-- A strong word is the actual mixed derivative at each translated label. -/ | |
| 40 | -theorem strongWord_translation (u : LiftL2 period) (hu : SmoothOrbit period u) | |
| 41 | - {n : ℕ} (w : Fin n → Fin 4) (a : LiftTangent) : | |
| 42 | - translate period a (strongWord period u w) = | |
| 43 | - wordDerivative standardDirection (fun b : LiftTangent => translate period b u) w a := by | |
| 44 | - induction n generalizing u with | |
| 45 | - | zero => simp only [strongWord_zero,wordDerivative_zero] | |
| 46 | - | succ n ih => | |
| 47 | - have ho : strongWord period u w = | |
| 48 | - strongWord period (orbitDerivative period u (standardDirection (w (Fin.last n)))) (Fin.init w) := by | |
| 49 | - simpa only [Fin.snoc_init_self] using strongWord_snoc period u hu (Fin.init w) (w (Fin.last n)) | |
| 50 | - rw [ho,ih _ (orbitDerivative_smooth period u hu _) (Fin.init w)] | |
| 51 | - have he : directional standardDirection (fun b : LiftTangent => translate period b u) (w (Fin.last n)) = | |
| 52 | - fun b : LiftTangent => translate period b (orbitDerivative period u (standardDirection (w (Fin.last n)))) := | |
| 53 | - funext (fun b => (orbitDerivative_translation period u hu _ b).symm) | |
| 54 | - simpa only [Fin.snoc_init_self,he] using | |
| 55 | - (wordDerivative_snoc standardDirection (fun b : LiftTangent => translate period b u) hu | |
| 56 | - (Fin.init w) (w (Fin.last n)) a).symm | |
| 57 | - | |
| 58 | -/-- Every strong word has its genuine smooth full mixed orbit. -/ | |
| 59 | -theorem strongWord_smooth (u : LiftL2 period) (hu : SmoothOrbit period u) | |
| 60 | - {n : ℕ} (w : Fin n → Fin 4) : SmoothOrbit period (strongWord period u w) := by | |
| 61 | - have he : (fun a : LiftTangent => translate period a (strongWord period u w)) = | |
| 62 | - wordDerivative standardDirection (fun a : LiftTangent => translate period a u) w := | |
| 63 | - funext (strongWord_translation period u hu w) | |
| 64 | - change ContDiff ℝ ∞ _ | |
| 65 | - rw [he] | |
| 66 | - exact wordDerivative_contDiff standardDirection _ hu w | |
| 67 | - | |
| 68 | -/-- The genuine strong word represents the literal classical cylinder derivative. -/ | |
| 69 | -theorem strongWord_ae (u : LiftL2 period) (hu : SmoothOrbit period u) | |
| 70 | - {n : ℕ} (w : Fin n → Fin 4) : | |
| 71 | - (strongWord period u w : LiftDomain period → Space) =ᵐ[liftMeasure period] | |
| 72 | - iteratedFieldDerivative period w (representative period u hu) := by | |
| 73 | - have h := jet_word_ae period (le_refl n) u (spatialJet period n u hu) w | |
| 74 | - (representative period u hu) (representative_ae period u hu) (representative_smooth period u hu) | |
| 75 | - rw [spatialJet_word period n n (le_refl n)] at h | |
| 76 | - exact h | |
| 77 | - | |
| 78 | -/-- The reconstructed derivative representative equals the actual classical derivative pointwise. -/ | |
| 79 | -theorem representative_strongWord (u : LiftL2 period) (hu : SmoothOrbit period u) | |
| 80 | - {n : ℕ} (w : Fin n → Fin 4) : | |
| 81 | - representative period (strongWord period u w) (strongWord_smooth period u hu w) = | |
| 82 | - iteratedFieldDerivative period w (representative period u hu) := by | |
| 83 | - apply Measure.eq_of_ae_eq | |
| 84 | - ((representative_ae period _ (strongWord_smooth period u hu w)).symm.trans (strongWord_ae period u hu w)) | |
| 85 | - · exact smoothField_continuous period _ (representative_smooth period _ _) | |
| 86 | - · exact smoothField_continuous period _ | |
| 87 | - (iteratedFieldDerivative_smooth period w _ (representative_smooth period u hu)) | |
| 88 | - | |
| 89 | -/-- The actual classical Hq norm is exactly the finite mixed-word base sum. -/ | |
| 90 | -theorem classicalBaseSize_eq (q : ℕ) (u : LiftL2 period) (hu : SmoothOrbit period u) : | |
| 91 | - liftSobolevNorm period q (representative period u hu) = | |
| 92 | - baseSize standardDirection q (fun a : LiftTangent => translate period a u) 0 := by | |
| 93 | - rw [← jet_sobolevNorm_eq period u (spatialJet period q u hu) (representative period u hu) | |
| 94 | - (representative_ae period u hu) (representative_smooth period u hu)] | |
| 95 | - exact spatialJet_norm period q u hu | |
| 96 | - | |
| 97 | -/-- The source's actual fixed-Hq external-word sum, on the literal classical field. -/ | |
| 98 | -def classicalBlockSize (q : ℕ) (u : LiftL2 period) (hu : SmoothOrbit period u) (n : ℕ) : ℝ := | |
| 99 | - ∑ w : Fin n → Fin 4, liftSobolevNorm period q | |
| 100 | - (iteratedFieldDerivative period w (representative period u hu)) | |
| 101 | - | |
| 102 | -/-- Exact norm identification, with no dimension factor and no radius enlargement. -/ | |
| 103 | -theorem classicalBlockSize_eq (q : ℕ) (u : LiftL2 period) (hu : SmoothOrbit period u) (n : ℕ) : | |
| 104 | - classicalBlockSize period q u hu n = | |
| 105 | - block standardDirection q (fun a : LiftTangent => translate period a u) n 0 := by | |
| 106 | - unfold classicalBlockSize block | |
| 107 | - apply sum_congr rfl | |
| 108 | - intro w _ | |
| 109 | - rw [← representative_strongWord period u hu w,classicalBaseSize_eq] | |
| 110 | - exact congrArg (fun g : LiftTangent → LiftL2 period => baseSize standardDirection q g 0) | |
| 111 | - (funext (strongWord_translation period u hu w)) | |
| 112 | - | |
| 113 | -variable {K : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 114 | - | |
| 115 | -/-- Time evaluation is a contraction, including for the full actual mixed-word Hq norm. -/ | |
| 116 | -theorem path_classicalBlockSize_le (q : ℕ) (p : C(K,LiftL2 period)) | |
| 117 | - (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate period a p)) | |
| 118 | - (t : K) (n : ℕ) : | |
| 119 | - classicalBlockSize period q (p t) (path_evaluation_smooth period p hp t) n ≤ | |
| 120 | - block standardDirection q (fun a : LiftTangent => pathTranslate period a p) n 0 := by | |
| 121 | - rw [classicalBlockSize_eq] | |
| 122 | - have hn : ‖(ContinuousMap.evalCLM ℝ t : C(K,LiftL2 period) →L[ℝ] LiftL2 period)‖ ≤ 1 := by | |
| 123 | - apply opNorm_le_bound _ zero_le_one | |
| 124 | - intro f | |
| 125 | - simpa only [one_mul,ContinuousMap.evalCLM_apply] using f.norm_coe_le_norm t | |
| 126 | - have h := block_comp_clm_le standardDirection q | |
| 127 | - (ContinuousMap.evalCLM ℝ t : C(K,LiftL2 period) →L[ℝ] LiftL2 period) | |
| 128 | - (fun a : LiftTangent => pathTranslate period a p) hp n 0 | |
| 129 | - exact h.trans ((mul_le_mul_of_nonneg_right hn | |
| 130 | - (block_nonneg standardDirection q _ n 0)).trans_eq (one_mul _)) | |
| 131 | - | |
| 132 | -end EulerCylinderSmoothOrbit | |
+121 −1 Euler/CylinderCoverDescent.lean View file
| @@ -1,8 +1,128 @@ | ||
| 1 | -import Euler.CylinderMeasureDescent | |
| 1 | +import Euler.EulerProof | |
| 2 | +import Mathlib.MeasureTheory.Group.FundamentalDomain | |
| 3 | +import Mathlib.MeasureTheory.Integral.IntervalIntegral.Periodic | |
| 2 | 4 | |
| 3 | 5 | /-! Canonical descent of periodic cover fields and deck-equivariant maps |
| 4 | 6 | to the cylinder, with genuine continuity, inverse and volume properties. -/ |
| 5 | 7 | |
| 8 | +/-! ## From `Euler/CylinderMeasureDescent.lean` | |
| 9 | + | |
| 10 | +The text of `Euler/CylinderMeasureDescent.lean`, folded into this file, which was its only importer. -/ | |
| 11 | + | |
| 12 | +section | |
| 13 | + | |
| 14 | +/-! A volume-preserving map of the real cylinder cover which commutes | |
| 15 | +with deck translations induces a measure-preserving cylinder map. The | |
| 16 | +proof compares genuine fundamental domains; it does not integrate a | |
| 17 | +nonzero periodic function over the whole real cover. -/ | |
| 18 | + | |
| 19 | +noncomputable section | |
| 20 | + | |
| 21 | +namespace EulerCylinderMeasureDescent | |
| 22 | + | |
| 23 | +open Set Function MeasureTheory EulerLiftedGradientSpace | |
| 24 | +open scoped Pointwise | |
| 25 | + | |
| 26 | +variable (P : ℝ) [Fact (0 < P)] | |
| 27 | + | |
| 28 | +local instance (priority := 2000) deckVAdd : VAdd (AddSubgroup.zmultiples P) LiftTangent where | |
| 29 | + vadd c z := (z.1,(c : ℝ)+z.2) | |
| 30 | + | |
| 31 | +local instance deckAction : AddAction (AddSubgroup.zmultiples P) LiftTangent where | |
| 32 | + vadd := (· +ᵥ ·) | |
| 33 | + zero_vadd z := by | |
| 34 | + change (z.1,(0 : ℝ)+z.2)=z | |
| 35 | + simp | |
| 36 | + add_vadd c d z := by | |
| 37 | + change (z.1,((c : ℝ)+(d : ℝ))+z.2) = (z.1,(c : ℝ)+((d : ℝ)+z.2)) | |
| 38 | + rw [add_assoc] | |
| 39 | + | |
| 40 | +omit [Fact (0 < P)] in | |
| 41 | +theorem deck_apply (c : AddSubgroup.zmultiples P) (z : LiftTangent) : | |
| 42 | + c +ᵥ z = (z.1,(c : ℝ)+z.2) := rfl | |
| 43 | + | |
| 44 | +local instance deckMeasurable : MeasurableConstVAdd (AddSubgroup.zmultiples P) LiftTangent where | |
| 45 | + measurable_const_vadd _c := measurable_fst.prodMk (measurable_const.add measurable_snd) | |
| 46 | + | |
| 47 | +local instance deckInvariant : VAddInvariantMeasure (AddSubgroup.zmultiples P) LiftTangent volume where | |
| 48 | + measure_preimage_vadd c s hs := by | |
| 49 | + have hp := (MeasurePreserving.id (volume : Measure Vector3)).prod | |
| 50 | + (measurePreserving_add_left (volume : Measure ℝ) (c : ℝ)) | |
| 51 | + exact hp.measure_preimage hs.nullMeasurableSet | |
| 52 | + | |
| 53 | +omit [Fact (0 < P)] in | |
| 54 | +theorem coveringMap_deck (c : AddSubgroup.zmultiples P) (z : LiftTangent) : | |
| 55 | + coveringMap P (c +ᵥ z) = coveringMap P z := by | |
| 56 | + have hc : ((c : ℝ) : AddCircle P)=0 := (QuotientAddGroup.eq_zero_iff _).2 c.property | |
| 57 | + simp only [deck_apply,coveringMap,AddCircle.coe_add,hc,zero_add] | |
| 58 | + | |
| 59 | +def strip : Set LiftTangent := Prod.snd ⁻¹' Ioc (0 : ℝ) P | |
| 60 | + | |
| 61 | +omit [Fact (0 < P)] in | |
| 62 | +theorem strip_measurable : MeasurableSet (strip P) := measurable_snd measurableSet_Ioc | |
| 63 | + | |
| 64 | +theorem strip_fundamental : IsAddFundamentalDomain (AddSubgroup.zmultiples P) (strip P) volume := by | |
| 65 | + have h := (isAddFundamentalDomain_Ioc (Fact.out : 0 < P) 0).preimage_of_equiv | |
| 66 | + (G := AddSubgroup.zmultiples P) (H := AddSubgroup.zmultiples P) | |
| 67 | + (f := (Prod.snd : LiftTangent → ℝ)) | |
| 68 | + (Measure.quasiMeasurePreserving_snd (μ := (volume : Measure Vector3)) (ν := volume)) | |
| 69 | + (e := id) Function.bijective_id (fun _ _ => rfl) | |
| 70 | + convert! h using 1 | |
| 71 | + simp only [zero_add,strip] | |
| 72 | + | |
| 73 | +theorem coveringMap_measurePreserving : | |
| 74 | + MeasurePreserving (coveringMap P) (volume.restrict (strip P)) (liftMeasure P) := by | |
| 75 | + have hm : (volume : Measure LiftTangent).restrict (strip P) = | |
| 76 | + (volume : Measure Vector3).prod ((volume : Measure ℝ).restrict (Ioc (0 : ℝ) P)) := by | |
| 77 | + change (volume.prod volume).restrict (Prod.snd ⁻¹' Ioc (0 : ℝ) P) = _ | |
| 78 | + rw [← univ_prod,← Measure.prod_restrict,Measure.restrict_univ] | |
| 79 | + rw [hm] | |
| 80 | + have hp := (MeasurePreserving.id (volume : Measure Vector3)).prod (AddCircle.measurePreserving_mk P 0) | |
| 81 | + simp only [zero_add] at hp | |
| 82 | + convert! hp using 1 | |
| 83 | + | |
| 84 | +theorem quotient_set_measure (s : Set (LiftDomain P)) (hs : MeasurableSet s) : | |
| 85 | + liftMeasure P s = volume (coveringMap P ⁻¹' s ∩ strip P) := by | |
| 86 | + have h := (coveringMap_measurePreserving P).measure_preimage hs.nullMeasurableSet | |
| 87 | + rw [Measure.restrict_apply ((coveringMap_measurePreserving P).measurable hs)] at h | |
| 88 | + exact h.symm | |
| 89 | + | |
| 90 | +theorem measurePreserving_of_cover | |
| 91 | + (f : LiftTangent → LiftTangent) (g : LiftDomain P → LiftDomain P) | |
| 92 | + (hf : MeasurePreserving f volume volume) (hg : Measurable g) | |
| 93 | + (hdeck : ∀ (c : AddSubgroup.zmultiples P) z, | |
| 94 | + f (z.1,(c : ℝ)+z.2) = ((f z).1,(c : ℝ)+(f z).2)) | |
| 95 | + (hcover : ∀ z, coveringMap P (f z)=g (coveringMap P z)) : | |
| 96 | + MeasurePreserving g (liftMeasure P) (liftMeasure P) := by | |
| 97 | + have hequiv (c : AddSubgroup.zmultiples P) : Semiconj f (c +ᵥ ·) (c +ᵥ ·) := hdeck c | |
| 98 | + have hfd := strip_fundamental P | |
| 99 | + have hfd' : IsAddFundamentalDomain (AddSubgroup.zmultiples P) (f ⁻¹' strip P) volume := | |
| 100 | + hfd.preimage_of_equiv hf.quasiMeasurePreserving (e := id) Function.bijective_id hequiv | |
| 101 | + refine ⟨hg,?_⟩ | |
| 102 | + ext s hs | |
| 103 | + rw [Measure.map_apply hg hs,quotient_set_measure P (g ⁻¹' s) (hg hs),quotient_set_measure P s hs] | |
| 104 | + have hset : coveringMap P ⁻¹' (g ⁻¹' s) = f ⁻¹' (coveringMap P ⁻¹' s) := by | |
| 105 | + ext z | |
| 106 | + simp only [mem_preimage,hcover] | |
| 107 | + rw [hset] | |
| 108 | + have hA : MeasurableSet (coveringMap P ⁻¹' s) := (coveringMap_measurePreserving P).measurable hs | |
| 109 | + calc | |
| 110 | + volume (f ⁻¹' (coveringMap P ⁻¹' s) ∩ strip P) = | |
| 111 | + volume (f ⁻¹' (coveringMap P ⁻¹' s) ∩ f ⁻¹' strip P) := by | |
| 112 | + apply hfd.measure_set_eq hfd' (hf.measurable hA) | |
| 113 | + intro c | |
| 114 | + ext z | |
| 115 | + change coveringMap P (f (c +ᵥ z)) ∈ s ↔ coveringMap P (f z) ∈ s | |
| 116 | + rw [hequiv c z,coveringMap_deck] | |
| 117 | + _ = volume (f ⁻¹' ((coveringMap P ⁻¹' s) ∩ strip P)) := by rw [preimage_inter] | |
| 118 | + _ = volume ((coveringMap P ⁻¹' s) ∩ strip P) := | |
| 119 | + hf.measure_preimage (hA.inter (strip_measurable P)).nullMeasurableSet | |
| 120 | + | |
| 121 | +end EulerCylinderMeasureDescent | |
| 122 | +end | |
| 123 | + | |
| 124 | +end | |
| 125 | + | |
| 6 | 126 | noncomputable section |
| 7 | 127 | |
| 8 | 128 | namespace EulerCylinderCoverDescent |
+213 −2 Euler/CylinderDirichletPhysicalBounds.lean View file
| @@ -3,8 +3,6 @@ import Euler.CylinderActionWords | ||
| 3 | 3 | import Euler.LpCylinderPathBounds |
| 4 | 4 | import Euler.TransverseFixedSobolev |
| 5 | 5 | import Euler.FixedEvolutionSobolev |
| 6 | -import Euler.CylinderDirichletSobolev | |
| 7 | -import Euler.CylinderDirichletTimeBounds | |
| 8 | 6 | import Euler.LpCylinderRectangularRegularity |
| 9 | 7 | |
| 10 | 8 | /-! |
| @@ -15,6 +13,219 @@ They retain the fixed spatial/angular Sobolev block and use the true | ||
| 15 | 13 | continuous time derivative, including both endpoints. |
| 16 | 14 | -/ |
| 17 | 15 | |
| 16 | +/-! ## From `Euler/CylinderDirichletSobolev.lean` | |
| 17 | + | |
| 18 | +The text of `Euler/CylinderDirichletSobolev.lean`, folded into this file, which was its only importer. -/ | |
| 19 | + | |
| 20 | +section | |
| 21 | + | |
| 22 | +/-! | |
| 23 | +# Genuine fixed-Sobolev bounds for the cylinder history inverse | |
| 24 | + | |
| 25 | +The actual mixed translation orbit has identical fixed-base word norms at | |
| 26 | +every translation. Thus the forcing needs a bound only at zero. Coefficient | |
| 27 | +jets lift to L² operator paths with constant one, and the true fixed-space | |
| 28 | +inverse adds one shift while preserving the external radius. | |
| 29 | +-/ | |
| 30 | + | |
| 31 | +noncomputable section | |
| 32 | + | |
| 33 | +namespace EulerCylinderDirichlet.Coefficients | |
| 34 | + | |
| 35 | +open Set MeasureTheory ContinuousLinearMap InnerProductSpace EulerSmoothLimit | |
| 36 | + EulerLiftedGradientSpace EulerLpCylinderTranslation EulerLpCylinderRectangular | |
| 37 | + EulerTimeLp EulerTimeLpBoundedMap EulerMeanCoefficients EulerTransverseFixedSobolev | |
| 38 | + EulerParameterWordGevrey EulerGevrey | |
| 39 | +open scoped BoundedContinuousFunction ContDiff | |
| 40 | + | |
| 41 | +variable (P : ℝ) [Fact (0 < P)] {T : ℝ} {U E : Type*} | |
| 42 | + [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] | |
| 43 | + [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] | |
| 44 | + (D : Coefficients T U E) | |
| 45 | + | |
| 46 | +private local instance : NormedAddCommGroup (CylinderL2 P U) := inferInstance | |
| 47 | +private local instance : NormedSpace ℝ (CylinderL2 P U) := inferInstance | |
| 48 | +private local instance : NormedAddCommGroup (CylinderL2 P E) := inferInstance | |
| 49 | +private local instance : NormedSpace ℝ (CylinderL2 P E) := inferInstance | |
| 50 | +private local instance : NormedAddCommGroup (CylinderL2 P U →L[ℝ] CylinderL2 P E) := inferInstance | |
| 51 | +private local instance : NormedSpace ℝ (CylinderL2 P U →L[ℝ] CylinderL2 P E) := inferInstance | |
| 52 | +private local instance : NormedAddCommGroup (CylinderL2 P E →L[ℝ] CylinderL2 P E) := inferInstance | |
| 53 | +private local instance : NormedSpace ℝ (CylinderL2 P E →L[ℝ] CylinderL2 P E) := inferInstance | |
| 54 | +private local instance : NormedAddCommGroup C(Icc (0 : ℝ) T,CylinderL2 P U →L[ℝ] CylinderL2 P E) := inferInstance | |
| 55 | +private local instance : NormedSpace ℝ C(Icc (0 : ℝ) T,CylinderL2 P U →L[ℝ] CylinderL2 P E) := inferInstance | |
| 56 | +private local instance : NormedAddCommGroup C(Icc (0 : ℝ) T,CylinderL2 P E →L[ℝ] CylinderL2 P E) := inferInstance | |
| 57 | +private local instance : NormedSpace ℝ C(Icc (0 : ℝ) T,CylinderL2 P E →L[ℝ] CylinderL2 P E) := inferInstance | |
| 58 | + | |
| 59 | +omit [CompleteSpace U] [CompleteSpace E] in | |
| 60 | +theorem frameOrbit_bound (hQ : ContDiff ℝ ∞ (translateCoefficientPath D.Q)) (n : ℕ) (C : ℝ) | |
| 61 | + (hb : ∀ a, ‖iteratedFDeriv ℝ n (translateCoefficientPath D.Q) a‖ ≤ C) (a : LiftTangent) : | |
| 62 | + ‖iteratedFDeriv ℝ n (fun b : LiftTangent => (D.shifted b.1).frame P) a‖ ≤ C := | |
| 63 | + mixedOperatorPath_bound P D.Q hQ n C hb a | |
| 64 | + | |
| 65 | +omit [CompleteSpace U] [CompleteSpace E] in | |
| 66 | +theorem frameDerivativeOrbit_bound (hQ₁ : ContDiff ℝ ∞ (translateCoefficientPath D.Q₁)) (n : ℕ) (C : ℝ) | |
| 67 | + (hb : ∀ a, ‖iteratedFDeriv ℝ n (translateCoefficientPath D.Q₁) a‖ ≤ C) (a : LiftTangent) : | |
| 68 | + ‖iteratedFDeriv ℝ n (fun b : LiftTangent => (D.shifted b.1).frameDerivative P) a‖ ≤ C := | |
| 69 | + mixedOperatorPath_bound P D.Q₁ hQ₁ n C hb a | |
| 70 | + | |
| 71 | +omit [CompleteSpace U] [CompleteSpace E] in | |
| 72 | +theorem hessianOrbit_bound (hH : ContDiff ℝ ∞ (translateCoefficientPath D.H)) (n : ℕ) (C : ℝ) | |
| 73 | + (hb : ∀ a, ‖iteratedFDeriv ℝ n (translateCoefficientPath D.H) a‖ ≤ C) (a : LiftTangent) : | |
| 74 | + ‖iteratedFDeriv ℝ n (fun b : LiftTangent => (D.shifted b.1).hessian P) a‖ ≤ C := | |
| 75 | + mixedOperatorPath_bound P D.H hH n C hb a | |
| 76 | + | |
| 77 | +variable {ι : Type*} [Fintype ι] | |
| 78 | + (directions : ι → LiftTangent) (hdir : ∀ i, ‖directions i‖ ≤ 1) (q : ℕ) | |
| 79 | + (hQ : ContDiff ℝ ∞ (translateCoefficientPath D.Q)) | |
| 80 | + (hQ₁ : ContDiff ℝ ∞ (translateCoefficientPath D.Q₁)) | |
| 81 | + (hH : ContDiff ℝ ∞ (translateCoefficientPath D.H)) | |
| 82 | + (Rc C₀ C₁ CH Cf R : ℝ) (hRc : 0 ≤ Rc) | |
| 83 | + (hC₀ : 0 ≤ C₀) (hC₁ : 0 ≤ C₁) (hCH : 0 ≤ CH) (hCf : 0 ≤ Cf) | |
| 84 | + (hbQ : ∀ n a, ‖iteratedFDeriv ℝ n (translateCoefficientPath D.Q) a‖ ≤ C₀*majorant Rc 0 n) | |
| 85 | + (hbQ₁ : ∀ n a, ‖iteratedFDeriv ℝ n (translateCoefficientPath D.Q₁) a‖ ≤ C₁*majorant Rc 0 n) | |
| 86 | + (hbH : ∀ n a, ‖iteratedFDeriv ℝ n (translateCoefficientPath D.H) a‖ ≤ CH*majorant Rc 0 n) | |
| 87 | + (hR : 2*blockCost ι q T Rc C₀ C₁ CH D.lower Cf*(sobolevCoefficientRadius ι Rc+1) ≤ R) | |
| 88 | + | |
| 89 | +include hdir hQ hQ₁ hH hRc hC₀ hC₁ hCH hCf hbQ hbQ₁ hbH hR | |
| 90 | + | |
| 91 | +end EulerCylinderDirichlet.Coefficients | |
| 92 | +end | |
| 93 | + | |
| 94 | +end | |
| 95 | + | |
| 96 | +/-! ## From `Euler/CylinderDirichletTimeBounds.lean` | |
| 97 | + | |
| 98 | +The text of `Euler/CylinderDirichletTimeBounds.lean`, folded into this file, which was its only importer. -/ | |
| 99 | + | |
| 100 | +section | |
| 101 | + | |
| 102 | +/-! | |
| 103 | +# Genuine fixed-Sobolev bounds for the cylinder history inverse | |
| 104 | + | |
| 105 | +The actual mixed translation orbit has identical fixed-base word norms at | |
| 106 | +every translation. Thus the forcing needs a bound only at zero. Coefficient | |
| 107 | +jets lift to L² operator paths with constant one, and the true fixed-space | |
| 108 | +inverse adds one shift while preserving the external radius. | |
| 109 | +-/ | |
| 110 | + | |
| 111 | +noncomputable section | |
| 112 | + | |
| 113 | +namespace EulerCylinderDirichlet.Coefficients | |
| 114 | + | |
| 115 | +open Set MeasureTheory ContinuousLinearMap InnerProductSpace EulerSmoothLimit | |
| 116 | + EulerLiftedGradientSpace EulerLpCylinderTranslation EulerLpCylinderRectangular | |
| 117 | + EulerTimeLp EulerTimeLpBoundedMap EulerMeanCoefficients EulerTransverseFixedSobolev | |
| 118 | + EulerParameterWordGevrey EulerGevrey EulerFixedEvolutionSobolev | |
| 119 | + EulerTimeLpGramSobolev EulerTimeLpAccelerationSobolev | |
| 120 | +open scoped BoundedContinuousFunction ContDiff | |
| 121 | + | |
| 122 | +variable (P : ℝ) [Fact (0 < P)] {T : ℝ} {U E : Type*} | |
| 123 | + [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] | |
| 124 | + [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] | |
| 125 | + (D : Coefficients T U E) | |
| 126 | + | |
| 127 | +private local instance : NormedAddCommGroup (CylinderL2 P U) := inferInstance | |
| 128 | +private local instance : NormedSpace ℝ (CylinderL2 P U) := inferInstance | |
| 129 | +private local instance : NormedAddCommGroup (CylinderL2 P E) := inferInstance | |
| 130 | +private local instance : NormedSpace ℝ (CylinderL2 P E) := inferInstance | |
| 131 | +private local instance : NormedAddCommGroup (CylinderL2 P U →L[ℝ] CylinderL2 P E) := inferInstance | |
| 132 | +private local instance : NormedSpace ℝ (CylinderL2 P U →L[ℝ] CylinderL2 P E) := inferInstance | |
| 133 | +private local instance : NormedAddCommGroup (CylinderL2 P E →L[ℝ] CylinderL2 P E) := inferInstance | |
| 134 | +private local instance : NormedSpace ℝ (CylinderL2 P E →L[ℝ] CylinderL2 P E) := inferInstance | |
| 135 | +private local instance : NormedAddCommGroup C(Icc (0 : ℝ) T,CylinderL2 P U →L[ℝ] CylinderL2 P E) := inferInstance | |
| 136 | +private local instance : NormedSpace ℝ C(Icc (0 : ℝ) T,CylinderL2 P U →L[ℝ] CylinderL2 P E) := inferInstance | |
| 137 | +private local instance : NormedAddCommGroup C(Icc (0 : ℝ) T,CylinderL2 P E →L[ℝ] CylinderL2 P E) := inferInstance | |
| 138 | +private local instance : NormedSpace ℝ C(Icc (0 : ℝ) T,CylinderL2 P E →L[ℝ] CylinderL2 P E) := inferInstance | |
| 139 | + | |
| 140 | +variable {ι : Type*} [Fintype ι] | |
| 141 | + (directions : ι → LiftTangent) (hdir : ∀ i, ‖directions i‖ ≤ 1) (q : ℕ) | |
| 142 | + (hQ : ContDiff ℝ ∞ (translateCoefficientPath D.Q)) | |
| 143 | + (hQ₁ : ContDiff ℝ ∞ (translateCoefficientPath D.Q₁)) | |
| 144 | + (hH : ContDiff ℝ ∞ (translateCoefficientPath D.H)) | |
| 145 | + (Rc C₀ C₁ CH Cf R : ℝ) (hRc : 0 ≤ Rc) | |
| 146 | + (hC₀ : 0 ≤ C₀) (hC₁ : 0 ≤ C₁) (hCH : 0 ≤ CH) (hCf : 0 ≤ Cf) | |
| 147 | + (hbQ : ∀ n a, ‖iteratedFDeriv ℝ n (translateCoefficientPath D.Q) a‖ ≤ C₀*majorant Rc 0 n) | |
| 148 | + (hbQ₁ : ∀ n a, ‖iteratedFDeriv ℝ n (translateCoefficientPath D.Q₁) a‖ ≤ C₁*majorant Rc 0 n) | |
| 149 | + (hbH : ∀ n a, ‖iteratedFDeriv ℝ n (translateCoefficientPath D.H) a‖ ≤ CH*majorant Rc 0 n) | |
| 150 | + (hRweak : 2*blockCost ι q T Rc C₀ C₁ CH D.lower Cf*(sobolevCoefficientRadius ι Rc+1) ≤ R) | |
| 151 | + | |
| 152 | + (hRstrong : 2*gramBlockCost ι q D.lower Rc C₀ | |
| 153 | + (accelerationBlockAmplitude ι q Rc C₀ C₁ Cf 1)*(sobolevCoefficientRadius ι Rc+1) ≤ R) | |
| 154 | + | |
| 155 | +include hdir hQ hQ₁ hH hRc hC₀ hC₁ hCH hCf hbQ hbQ₁ hbH hRweak hRstrong | |
| 156 | + | |
| 157 | +/-- The actual continuous velocity trace from cylinder forcing. -/ | |
| 158 | +theorem continuousVelocity_block_bound (hT1 : T ≤ 1) | |
| 159 | + (f : C(Icc (0 : ℝ) T,CylinderL2 P E)) | |
| 160 | + (hf : ContDiff ℝ ∞ (fun a => pathTranslate P a f)) | |
| 161 | + (d : ℕ) (hfb : ∀ n, block directions q (fun a => pathTranslate P a f) n 0 ≤ Cf*majorant R d n) | |
| 162 | + (n : ℕ) (a : LiftTangent) : | |
| 163 | + block directions q (fun b => pathTranslate P b | |
| 164 | + (D.velocityPath P (pathLp T D.time_pos.le f))) n a ≤ traceCost T*majorant R (d+2) n := by | |
| 165 | + have he : (fun b : LiftTangent => (D.shifted b.1).velocityPath P | |
| 166 | + (pathLp T D.time_pos.le (pathTranslate P b f))) = | |
| 167 | + fun b => pathTranslate P b (D.velocityPath P (pathLp T D.time_pos.le f)) := by | |
| 168 | + funext b | |
| 169 | + apply ContinuousMap.ext | |
| 170 | + intro t | |
| 171 | + exact D.continuousVelocity_translation P b f t | |
| 172 | + rw [← he] | |
| 173 | + apply EulerFixedEvolutionSobolev.continuousVelocity_block_gevrey directions hdir q T D.time_pos.le | |
| 174 | + (fun b : LiftTangent => (D.shifted b.1).frame P) | |
| 175 | + (fun b : LiftTangent => (D.shifted b.1).frameDerivative P) | |
| 176 | + (fun b : LiftTangent => (D.shifted b.1).hessian P) | |
| 177 | + D.lower D.lower_pos (fun b => (D.shifted b.1).frame_lower P) | |
| 178 | + (fun b => (D.shifted b.1).frame_derivative P) | |
| 179 | + D.potential D.potential_nonneg (fun b => (D.shifted b.1).hessian_upper P) D.small | |
| 180 | + (D.frameOrbit_contDiff P hQ) (D.frameDerivativeOrbit_contDiff P hQ₁) (D.hessianOrbit_contDiff P hH) | |
| 181 | + Rc C₀ C₁ CH Cf R hRc hC₀ hC₁ hCH hCf | |
| 182 | + (fun k b => D.frameOrbit_bound P hQ k _ (hbQ k) b) | |
| 183 | + (fun k b => D.frameDerivativeOrbit_bound P hQ₁ k _ (hbQ₁ k) b) | |
| 184 | + (fun k b => D.hessianOrbit_bound P hH k _ (hbH k) b) hRweak hRstrong D.time_pos hT1 | |
| 185 | + (fun b => pathTranslate P b f) hf d _ n a | |
| 186 | + intro k b | |
| 187 | + rw [path_block_constant P directions q f hf k b] | |
| 188 | + exact hfb k | |
| 189 | + | |
| 190 | +/-- Time-uniform acceleration of the actual history solution, including both endpoints. -/ | |
| 191 | +theorem accelerationPath_block_bound (hT1 : T ≤ 1) | |
| 192 | + (hRuniform : 2*gramBlockCost ι q D.lower Rc C₀ | |
| 193 | + (accelerationBlockAmplitude ι q Rc C₀ C₁ Cf (traceCost T))*(sobolevCoefficientRadius ι Rc+1) ≤ R) | |
| 194 | + (f : C(Icc (0 : ℝ) T,CylinderL2 P E)) | |
| 195 | + (hf : ContDiff ℝ ∞ (fun a => pathTranslate P a f)) | |
| 196 | + (d : ℕ) (hfb : ∀ n, block directions q (fun a => pathTranslate P a f) n 0 ≤ Cf*majorant R d n) | |
| 197 | + (n : ℕ) (a : LiftTangent) : | |
| 198 | + block directions q (fun b => pathTranslate P b (D.accelerationPath P f)) n a ≤ | |
| 199 | + majorant R (d+3) n := by | |
| 200 | + have he : (fun b : LiftTangent => (D.shifted b.1).accelerationPath P (pathTranslate P b f)) = | |
| 201 | + fun b => pathTranslate P b (D.accelerationPath P f) := by | |
| 202 | + funext b | |
| 203 | + apply ContinuousMap.ext | |
| 204 | + intro t | |
| 205 | + exact D.accelerationPath_translation P b f t | |
| 206 | + rw [← he] | |
| 207 | + apply EulerFixedEvolutionSobolev.classicalAcceleration_block_gevrey directions hdir q T D.time_pos.le | |
| 208 | + (fun b : LiftTangent => (D.shifted b.1).frame P) | |
| 209 | + (fun b : LiftTangent => (D.shifted b.1).frameDerivative P) | |
| 210 | + (fun b : LiftTangent => (D.shifted b.1).hessian P) | |
| 211 | + D.lower D.lower_pos (fun b => (D.shifted b.1).frame_lower P) | |
| 212 | + (fun b => (D.shifted b.1).frame_derivative P) | |
| 213 | + D.potential D.potential_nonneg (fun b => (D.shifted b.1).hessian_upper P) D.small | |
| 214 | + (D.frameOrbit_contDiff P hQ) (D.frameDerivativeOrbit_contDiff P hQ₁) (D.hessianOrbit_contDiff P hH) | |
| 215 | + Rc C₀ C₁ CH Cf R hRc hC₀ hC₁ hCH hCf | |
| 216 | + (fun k b => D.frameOrbit_bound P hQ k _ (hbQ k) b) | |
| 217 | + (fun k b => D.frameDerivativeOrbit_bound P hQ₁ k _ (hbQ₁ k) b) | |
| 218 | + (fun k b => D.hessianOrbit_bound P hH k _ (hbH k) b) hRweak hRstrong D.time_pos hT1 hRuniform | |
| 219 | + (fun b => pathTranslate P b f) hf d _ n a | |
| 220 | + intro k b | |
| 221 | + rw [path_block_constant P directions q f hf k b] | |
| 222 | + exact hfb k | |
| 223 | + | |
| 224 | +end EulerCylinderDirichlet.Coefficients | |
| 225 | +end | |
| 226 | + | |
| 227 | +end | |
| 228 | + | |
| 18 | 229 | noncomputable section |
| 19 | 230 | |
| 20 | 231 | namespace EulerCylinderDirichlet.Coefficients |
+131 −1 Euler/CylinderDirichletRegularity.lean View file
| @@ -1,4 +1,5 @@ | ||
| 1 | -import Euler.CylinderDirichletTranslation | |
| 1 | +import Euler.CylinderDirichletNaturality | |
| 2 | +import Euler.MeanCoefficientPath | |
| 2 | 3 | import Euler.FixedEvolutionRegularity |
| 3 | 4 | |
| 4 | 5 | /-! |
| @@ -10,6 +11,135 @@ identifies that family with the translation orbit of the constructed field. | ||
| 10 | 11 | No regularity assumption is imposed on a solved history field. |
| 11 | 12 | -/ |
| 12 | 13 | |
| 14 | +/-! ## From `Euler/CylinderDirichletTranslation.lean` | |
| 15 | + | |
| 16 | +The text of `Euler/CylinderDirichletTranslation.lean`, folded into this file, which was its only importer. -/ | |
| 17 | + | |
| 18 | +section | |
| 19 | + | |
| 20 | +/-! The actual history solve commutes with all mixed spatial/angular translations. -/ | |
| 21 | + | |
| 22 | +noncomputable section | |
| 23 | + | |
| 24 | +namespace EulerLpCylinderRectangular | |
| 25 | + | |
| 26 | +open Set ContinuousLinearMap EulerLiftedGradientSpace EulerLpCylinderTranslation EulerMeanCoefficients | |
| 27 | +open scoped BoundedContinuousFunction | |
| 28 | + | |
| 29 | +variable (P : ℝ) [Fact (0 < P)] {U E : Type*} | |
| 30 | + [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] | |
| 31 | + [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] | |
| 32 | + | |
| 33 | +theorem fullOperator_translation_back (a : LiftTangent) (Q : EulerSmoothLimit.Space →ᵇ U →L[ℝ] E) | |
| 34 | + (u : CylinderL2 P U) : | |
| 35 | + fullOperatorMap P Q (((translate P a).toContinuousLinearMap).adjoint u) = | |
| 36 | + ((translate P a).toContinuousLinearMap).adjoint | |
| 37 | + (fullOperatorMap P (translated Q a.1) u) := by | |
| 38 | + rw [translate_adjoint,translate_adjoint] | |
| 39 | + change fullOperatorMap P Q (translate P (-a) u) = | |
| 40 | + translate P (-a) (fullOperatorMap P (translated Q a.1) u) | |
| 41 | + have he := congrArg (translate (V := E) P (-a)) | |
| 42 | + (fullOperator_translation P a Q (translate P (-a) u)) | |
| 43 | + simpa only [translate_add,add_neg_cancel,neg_add_cancel,translate_zero] using he.symm | |
| 44 | + | |
| 45 | +end EulerLpCylinderRectangular | |
| 46 | + | |
| 47 | +namespace EulerCylinderDirichlet.Coefficients | |
| 48 | + | |
| 49 | +open Set MeasureTheory ContinuousLinearMap InnerProductSpace EulerSmoothLimit | |
| 50 | + EulerLiftedGradientSpace EulerLpCylinderTranslation EulerLpCylinderRectangular | |
| 51 | + EulerTimeLp EulerTimeLpBoundedMap EulerVolterraConvolution EulerMeanCoefficients | |
| 52 | +open scoped BoundedContinuousFunction | |
| 53 | + | |
| 54 | +variable {T : ℝ} {U E : Type*} | |
| 55 | + [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] | |
| 56 | + [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] | |
| 57 | + (D : Coefficients T U E) | |
| 58 | + | |
| 59 | +/-- The actual translated coefficient fields, with their inherited pointwise | |
| 60 | +time derivatives and unchanged coercivity constants. -/ | |
| 61 | +def shifted (a : Space) : Coefficients T U E where | |
| 62 | + time_pos := D.time_pos | |
| 63 | + Q := translateCoefficientPath D.Q a | |
| 64 | + Q₁ := translateCoefficientPath D.Q₁ a | |
| 65 | + Q₂ := translateCoefficientPath D.Q₂ a | |
| 66 | + H := translateCoefficientPath D.H a | |
| 67 | + lower := D.lower | |
| 68 | + lower_pos := D.lower_pos | |
| 69 | + lower_bound t x v := D.lower_bound t (x+a) v | |
| 70 | + derivative t ht x := D.derivative t ht (x+a) | |
| 71 | + second_derivative t ht x := D.second_derivative t ht (x+a) | |
| 72 | + jacobi t x v := D.jacobi t (x+a) v | |
| 73 | + potential := D.potential | |
| 74 | + potential_nonneg := D.potential_nonneg | |
| 75 | + potential_bound t x v := D.potential_bound t (x+a) v | |
| 76 | + small := D.small | |
| 77 | + | |
| 78 | +variable (P : ℝ) [Fact (0 < P)] | |
| 79 | + | |
| 80 | +omit [CompleteSpace U] [CompleteSpace E] in | |
| 81 | +theorem shifted_frame (a : LiftTangent) (t : Icc (0 : ℝ) T) (u : CylinderL2 P U) : | |
| 82 | + (D.shifted a.1).frame P t (translate P a u) = translate P a (D.frame P t u) := | |
| 83 | + fullOperator_translation P a (D.Q t) u | |
| 84 | + | |
| 85 | +omit [CompleteSpace U] [CompleteSpace E] in | |
| 86 | +theorem shifted_frameDerivative (a : LiftTangent) (t : Icc (0 : ℝ) T) (u : CylinderL2 P U) : | |
| 87 | + (D.shifted a.1).frameDerivative P t (translate P a u) = translate P a (D.frameDerivative P t u) := | |
| 88 | + fullOperator_translation P a (D.Q₁ t) u | |
| 89 | + | |
| 90 | +omit [CompleteSpace U] [CompleteSpace E] in | |
| 91 | +theorem shifted_hessian (a : LiftTangent) (t : Icc (0 : ℝ) T) (u : CylinderL2 P E) : | |
| 92 | + (D.shifted a.1).hessian P t (translate P a u) = translate P a (D.hessian P t u) := | |
| 93 | + fullOperator_translation P a (D.H t) u | |
| 94 | + | |
| 95 | +theorem shifted_frame_back (a : LiftTangent) (t : Icc (0 : ℝ) T) (u : CylinderL2 P U) : | |
| 96 | + D.frame P t (((translate P a).toContinuousLinearMap).adjoint u) = | |
| 97 | + ((translate P a).toContinuousLinearMap).adjoint ((D.shifted a.1).frame P t u) := | |
| 98 | + fullOperator_translation_back P a (D.Q t) u | |
| 99 | + | |
| 100 | +theorem shifted_frameDerivative_back (a : LiftTangent) (t : Icc (0 : ℝ) T) (u : CylinderL2 P U) : | |
| 101 | + D.frameDerivative P t (((translate P a).toContinuousLinearMap).adjoint u) = | |
| 102 | + ((translate P a).toContinuousLinearMap).adjoint ((D.shifted a.1).frameDerivative P t u) := | |
| 103 | + fullOperator_translation_back P a (D.Q₁ t) u | |
| 104 | + | |
| 105 | +theorem continuousVelocity_translation (a : LiftTangent) | |
| 106 | + (f : C(Icc (0 : ℝ) T,CylinderL2 P E)) (t : Icc (0 : ℝ) T) : | |
| 107 | + (D.shifted a.1).velocityPath P (pathLp T D.time_pos.le (pathTranslate P a f)) t = | |
| 108 | + translate P a (D.velocityPath P (pathLp T D.time_pos.le f) t) := | |
| 109 | + D.continuousVelocity_intertwines P (D.shifted a.1) | |
| 110 | + (translate P a).toContinuousLinearMap (translate P a).toContinuousLinearMap | |
| 111 | + (D.shifted_frame P a) (D.shifted_frameDerivative P a) | |
| 112 | + (D.shifted_frame_back P a) (D.shifted_frameDerivative_back P a) (D.shifted_hessian P a) f t | |
| 113 | + | |
| 114 | +theorem accelerationPath_translation (a : LiftTangent) | |
| 115 | + (f : C(Icc (0 : ℝ) T,CylinderL2 P E)) (t : Icc (0 : ℝ) T) : | |
| 116 | + (D.shifted a.1).accelerationPath P (pathTranslate P a f) t = translate P a (D.accelerationPath P f t) := | |
| 117 | + D.accelerationPath_intertwines P (D.shifted a.1) | |
| 118 | + (translate P a).toContinuousLinearMap (translate P a).toContinuousLinearMap | |
| 119 | + (D.shifted_frame P a) (D.shifted_frameDerivative P a) | |
| 120 | + (D.shifted_frame_back P a) (D.shifted_frameDerivative_back P a) (D.shifted_hessian P a) f t | |
| 121 | + | |
| 122 | +theorem physicalVelocity_translation (a : LiftTangent) | |
| 123 | + (f : C(Icc (0 : ℝ) T,CylinderL2 P E)) (t : Icc (0 : ℝ) T) : | |
| 124 | + (D.shifted a.1).physicalVelocity P (pathTranslate P a f) t = translate P a (D.physicalVelocity P f t) := | |
| 125 | + D.physicalVelocity_intertwines P (D.shifted a.1) | |
| 126 | + (translate P a).toContinuousLinearMap (translate P a).toContinuousLinearMap | |
| 127 | + (D.shifted_frame P a) (D.shifted_frameDerivative P a) | |
| 128 | + (D.shifted_frame_back P a) (D.shifted_frameDerivative_back P a) (D.shifted_hessian P a) f t | |
| 129 | + | |
| 130 | +theorem physicalDerivative_translation (a : LiftTangent) | |
| 131 | + (f : C(Icc (0 : ℝ) T,CylinderL2 P E)) (t : Icc (0 : ℝ) T) : | |
| 132 | + (D.shifted a.1).physicalDerivative P (pathTranslate P a f) t = translate P a (D.physicalDerivative P f t) := | |
| 133 | + D.physicalDerivative_intertwines P (D.shifted a.1) | |
| 134 | + (translate P a).toContinuousLinearMap (translate P a).toContinuousLinearMap | |
| 135 | + (D.shifted_frame P a) (D.shifted_frameDerivative P a) | |
| 136 | + (D.shifted_frame_back P a) (D.shifted_frameDerivative_back P a) (D.shifted_hessian P a) f t | |
| 137 | + | |
| 138 | +end EulerCylinderDirichlet.Coefficients | |
| 139 | +end | |
| 140 | + | |
| 141 | +end | |
| 142 | + | |
| 13 | 143 | noncomputable section |
| 14 | 144 | |
| 15 | 145 | namespace EulerCylinderDirichlet.Coefficients |
+0 −75 Euler/CylinderDirichletSobolev.lean deleted
| @@ -1,75 +0,0 @@ | ||
| 1 | -import Euler.CylinderDirichletRegularity | |
| 2 | -import Euler.CylinderActionWords | |
| 3 | -import Euler.LpCylinderPathBounds | |
| 4 | -import Euler.TransverseFixedSobolev | |
| 5 | - | |
| 6 | -/-! | |
| 7 | -# Genuine fixed-Sobolev bounds for the cylinder history inverse | |
| 8 | - | |
| 9 | -The actual mixed translation orbit has identical fixed-base word norms at | |
| 10 | -every translation. Thus the forcing needs a bound only at zero. Coefficient | |
| 11 | -jets lift to L² operator paths with constant one, and the true fixed-space | |
| 12 | -inverse adds one shift while preserving the external radius. | |
| 13 | --/ | |
| 14 | - | |
| 15 | -noncomputable section | |
| 16 | - | |
| 17 | -namespace EulerCylinderDirichlet.Coefficients | |
| 18 | - | |
| 19 | -open Set MeasureTheory ContinuousLinearMap InnerProductSpace EulerSmoothLimit | |
| 20 | - EulerLiftedGradientSpace EulerLpCylinderTranslation EulerLpCylinderRectangular | |
| 21 | - EulerTimeLp EulerTimeLpBoundedMap EulerMeanCoefficients EulerTransverseFixedSobolev | |
| 22 | - EulerParameterWordGevrey EulerGevrey | |
| 23 | -open scoped BoundedContinuousFunction ContDiff | |
| 24 | - | |
| 25 | -variable (P : ℝ) [Fact (0 < P)] {T : ℝ} {U E : Type*} | |
| 26 | - [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] | |
| 27 | - [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] | |
| 28 | - (D : Coefficients T U E) | |
| 29 | - | |
| 30 | -private local instance : NormedAddCommGroup (CylinderL2 P U) := inferInstance | |
| 31 | -private local instance : NormedSpace ℝ (CylinderL2 P U) := inferInstance | |
| 32 | -private local instance : NormedAddCommGroup (CylinderL2 P E) := inferInstance | |
| 33 | -private local instance : NormedSpace ℝ (CylinderL2 P E) := inferInstance | |
| 34 | -private local instance : NormedAddCommGroup (CylinderL2 P U →L[ℝ] CylinderL2 P E) := inferInstance | |
| 35 | -private local instance : NormedSpace ℝ (CylinderL2 P U →L[ℝ] CylinderL2 P E) := inferInstance | |
| 36 | -private local instance : NormedAddCommGroup (CylinderL2 P E →L[ℝ] CylinderL2 P E) := inferInstance | |
| 37 | -private local instance : NormedSpace ℝ (CylinderL2 P E →L[ℝ] CylinderL2 P E) := inferInstance | |
| 38 | -private local instance : NormedAddCommGroup C(Icc (0 : ℝ) T,CylinderL2 P U →L[ℝ] CylinderL2 P E) := inferInstance | |
| 39 | -private local instance : NormedSpace ℝ C(Icc (0 : ℝ) T,CylinderL2 P U →L[ℝ] CylinderL2 P E) := inferInstance | |
| 40 | -private local instance : NormedAddCommGroup C(Icc (0 : ℝ) T,CylinderL2 P E →L[ℝ] CylinderL2 P E) := inferInstance | |
| 41 | -private local instance : NormedSpace ℝ C(Icc (0 : ℝ) T,CylinderL2 P E →L[ℝ] CylinderL2 P E) := inferInstance | |
| 42 | - | |
| 43 | -omit [CompleteSpace U] [CompleteSpace E] in | |
| 44 | -theorem frameOrbit_bound (hQ : ContDiff ℝ ∞ (translateCoefficientPath D.Q)) (n : ℕ) (C : ℝ) | |
| 45 | - (hb : ∀ a, ‖iteratedFDeriv ℝ n (translateCoefficientPath D.Q) a‖ ≤ C) (a : LiftTangent) : | |
| 46 | - ‖iteratedFDeriv ℝ n (fun b : LiftTangent => (D.shifted b.1).frame P) a‖ ≤ C := | |
| 47 | - mixedOperatorPath_bound P D.Q hQ n C hb a | |
| 48 | - | |
| 49 | -omit [CompleteSpace U] [CompleteSpace E] in | |
| 50 | -theorem frameDerivativeOrbit_bound (hQ₁ : ContDiff ℝ ∞ (translateCoefficientPath D.Q₁)) (n : ℕ) (C : ℝ) | |
| 51 | - (hb : ∀ a, ‖iteratedFDeriv ℝ n (translateCoefficientPath D.Q₁) a‖ ≤ C) (a : LiftTangent) : | |
| 52 | - ‖iteratedFDeriv ℝ n (fun b : LiftTangent => (D.shifted b.1).frameDerivative P) a‖ ≤ C := | |
| 53 | - mixedOperatorPath_bound P D.Q₁ hQ₁ n C hb a | |
| 54 | - | |
| 55 | -omit [CompleteSpace U] [CompleteSpace E] in | |
| 56 | -theorem hessianOrbit_bound (hH : ContDiff ℝ ∞ (translateCoefficientPath D.H)) (n : ℕ) (C : ℝ) | |
| 57 | - (hb : ∀ a, ‖iteratedFDeriv ℝ n (translateCoefficientPath D.H) a‖ ≤ C) (a : LiftTangent) : | |
| 58 | - ‖iteratedFDeriv ℝ n (fun b : LiftTangent => (D.shifted b.1).hessian P) a‖ ≤ C := | |
| 59 | - mixedOperatorPath_bound P D.H hH n C hb a | |
| 60 | - | |
| 61 | -variable {ι : Type*} [Fintype ι] | |
| 62 | - (directions : ι → LiftTangent) (hdir : ∀ i, ‖directions i‖ ≤ 1) (q : ℕ) | |
| 63 | - (hQ : ContDiff ℝ ∞ (translateCoefficientPath D.Q)) | |
| 64 | - (hQ₁ : ContDiff ℝ ∞ (translateCoefficientPath D.Q₁)) | |
| 65 | - (hH : ContDiff ℝ ∞ (translateCoefficientPath D.H)) | |
| 66 | - (Rc C₀ C₁ CH Cf R : ℝ) (hRc : 0 ≤ Rc) | |
| 67 | - (hC₀ : 0 ≤ C₀) (hC₁ : 0 ≤ C₁) (hCH : 0 ≤ CH) (hCf : 0 ≤ Cf) | |
| 68 | - (hbQ : ∀ n a, ‖iteratedFDeriv ℝ n (translateCoefficientPath D.Q) a‖ ≤ C₀*majorant Rc 0 n) | |
| 69 | - (hbQ₁ : ∀ n a, ‖iteratedFDeriv ℝ n (translateCoefficientPath D.Q₁) a‖ ≤ C₁*majorant Rc 0 n) | |
| 70 | - (hbH : ∀ n a, ‖iteratedFDeriv ℝ n (translateCoefficientPath D.H) a‖ ≤ CH*majorant Rc 0 n) | |
| 71 | - (hR : 2*blockCost ι q T Rc C₀ C₁ CH D.lower Cf*(sobolevCoefficientRadius ι Rc+1) ≤ R) | |
| 72 | - | |
| 73 | -include hdir hQ hQ₁ hH hRc hC₀ hC₁ hCH hCf hbQ hbQ₁ hbH hR | |
| 74 | - | |
| 75 | -end EulerCylinderDirichlet.Coefficients | |
+0 −130 Euler/CylinderDirichletTimeBounds.lean deleted
| @@ -1,130 +0,0 @@ | ||
| 1 | -import Euler.CylinderDirichletRegularity | |
| 2 | -import Euler.CylinderActionWords | |
| 3 | -import Euler.LpCylinderPathBounds | |
| 4 | -import Euler.TransverseFixedSobolev | |
| 5 | -import Euler.FixedEvolutionSobolev | |
| 6 | -import Euler.CylinderDirichletSobolev | |
| 7 | - | |
| 8 | -/-! | |
| 9 | -# Genuine fixed-Sobolev bounds for the cylinder history inverse | |
| 10 | - | |
| 11 | -The actual mixed translation orbit has identical fixed-base word norms at | |
| 12 | -every translation. Thus the forcing needs a bound only at zero. Coefficient | |
| 13 | -jets lift to L² operator paths with constant one, and the true fixed-space | |
| 14 | -inverse adds one shift while preserving the external radius. | |
| 15 | --/ | |
| 16 | - | |
| 17 | -noncomputable section | |
| 18 | - | |
| 19 | -namespace EulerCylinderDirichlet.Coefficients | |
| 20 | - | |
| 21 | -open Set MeasureTheory ContinuousLinearMap InnerProductSpace EulerSmoothLimit | |
| 22 | - EulerLiftedGradientSpace EulerLpCylinderTranslation EulerLpCylinderRectangular | |
| 23 | - EulerTimeLp EulerTimeLpBoundedMap EulerMeanCoefficients EulerTransverseFixedSobolev | |
| 24 | - EulerParameterWordGevrey EulerGevrey EulerFixedEvolutionSobolev | |
| 25 | - EulerTimeLpGramSobolev EulerTimeLpAccelerationSobolev | |
| 26 | -open scoped BoundedContinuousFunction ContDiff | |
| 27 | - | |
| 28 | -variable (P : ℝ) [Fact (0 < P)] {T : ℝ} {U E : Type*} | |
| 29 | - [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] | |
| 30 | - [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] | |
| 31 | - (D : Coefficients T U E) | |
| 32 | - | |
| 33 | -private local instance : NormedAddCommGroup (CylinderL2 P U) := inferInstance | |
| 34 | -private local instance : NormedSpace ℝ (CylinderL2 P U) := inferInstance | |
| 35 | -private local instance : NormedAddCommGroup (CylinderL2 P E) := inferInstance | |
| 36 | -private local instance : NormedSpace ℝ (CylinderL2 P E) := inferInstance | |
| 37 | -private local instance : NormedAddCommGroup (CylinderL2 P U →L[ℝ] CylinderL2 P E) := inferInstance | |
| 38 | -private local instance : NormedSpace ℝ (CylinderL2 P U →L[ℝ] CylinderL2 P E) := inferInstance | |
| 39 | -private local instance : NormedAddCommGroup (CylinderL2 P E →L[ℝ] CylinderL2 P E) := inferInstance | |
| 40 | -private local instance : NormedSpace ℝ (CylinderL2 P E →L[ℝ] CylinderL2 P E) := inferInstance | |
| 41 | -private local instance : NormedAddCommGroup C(Icc (0 : ℝ) T,CylinderL2 P U →L[ℝ] CylinderL2 P E) := inferInstance | |
| 42 | -private local instance : NormedSpace ℝ C(Icc (0 : ℝ) T,CylinderL2 P U →L[ℝ] CylinderL2 P E) := inferInstance | |
| 43 | -private local instance : NormedAddCommGroup C(Icc (0 : ℝ) T,CylinderL2 P E →L[ℝ] CylinderL2 P E) := inferInstance | |
| 44 | -private local instance : NormedSpace ℝ C(Icc (0 : ℝ) T,CylinderL2 P E →L[ℝ] CylinderL2 P E) := inferInstance | |
| 45 | - | |
| 46 | -variable {ι : Type*} [Fintype ι] | |
| 47 | - (directions : ι → LiftTangent) (hdir : ∀ i, ‖directions i‖ ≤ 1) (q : ℕ) | |
| 48 | - (hQ : ContDiff ℝ ∞ (translateCoefficientPath D.Q)) | |
| 49 | - (hQ₁ : ContDiff ℝ ∞ (translateCoefficientPath D.Q₁)) | |
| 50 | - (hH : ContDiff ℝ ∞ (translateCoefficientPath D.H)) | |
| 51 | - (Rc C₀ C₁ CH Cf R : ℝ) (hRc : 0 ≤ Rc) | |
| 52 | - (hC₀ : 0 ≤ C₀) (hC₁ : 0 ≤ C₁) (hCH : 0 ≤ CH) (hCf : 0 ≤ Cf) | |
| 53 | - (hbQ : ∀ n a, ‖iteratedFDeriv ℝ n (translateCoefficientPath D.Q) a‖ ≤ C₀*majorant Rc 0 n) | |
| 54 | - (hbQ₁ : ∀ n a, ‖iteratedFDeriv ℝ n (translateCoefficientPath D.Q₁) a‖ ≤ C₁*majorant Rc 0 n) | |
| 55 | - (hbH : ∀ n a, ‖iteratedFDeriv ℝ n (translateCoefficientPath D.H) a‖ ≤ CH*majorant Rc 0 n) | |
| 56 | - (hRweak : 2*blockCost ι q T Rc C₀ C₁ CH D.lower Cf*(sobolevCoefficientRadius ι Rc+1) ≤ R) | |
| 57 | - | |
| 58 | - (hRstrong : 2*gramBlockCost ι q D.lower Rc C₀ | |
| 59 | - (accelerationBlockAmplitude ι q Rc C₀ C₁ Cf 1)*(sobolevCoefficientRadius ι Rc+1) ≤ R) | |
| 60 | - | |
| 61 | -include hdir hQ hQ₁ hH hRc hC₀ hC₁ hCH hCf hbQ hbQ₁ hbH hRweak hRstrong | |
| 62 | - | |
| 63 | -/-- The actual continuous velocity trace from cylinder forcing. -/ | |
| 64 | -theorem continuousVelocity_block_bound (hT1 : T ≤ 1) | |
| 65 | - (f : C(Icc (0 : ℝ) T,CylinderL2 P E)) | |
| 66 | - (hf : ContDiff ℝ ∞ (fun a => pathTranslate P a f)) | |
| 67 | - (d : ℕ) (hfb : ∀ n, block directions q (fun a => pathTranslate P a f) n 0 ≤ Cf*majorant R d n) | |
| 68 | - (n : ℕ) (a : LiftTangent) : | |
| 69 | - block directions q (fun b => pathTranslate P b | |
| 70 | - (D.velocityPath P (pathLp T D.time_pos.le f))) n a ≤ traceCost T*majorant R (d+2) n := by | |
| 71 | - have he : (fun b : LiftTangent => (D.shifted b.1).velocityPath P | |
| 72 | - (pathLp T D.time_pos.le (pathTranslate P b f))) = | |
| 73 | - fun b => pathTranslate P b (D.velocityPath P (pathLp T D.time_pos.le f)) := by | |
| 74 | - funext b | |
| 75 | - apply ContinuousMap.ext | |
| 76 | - intro t | |
| 77 | - exact D.continuousVelocity_translation P b f t | |
| 78 | - rw [← he] | |
| 79 | - apply EulerFixedEvolutionSobolev.continuousVelocity_block_gevrey directions hdir q T D.time_pos.le | |
| 80 | - (fun b : LiftTangent => (D.shifted b.1).frame P) | |
| 81 | - (fun b : LiftTangent => (D.shifted b.1).frameDerivative P) | |
| 82 | - (fun b : LiftTangent => (D.shifted b.1).hessian P) | |
| 83 | - D.lower D.lower_pos (fun b => (D.shifted b.1).frame_lower P) | |
| 84 | - (fun b => (D.shifted b.1).frame_derivative P) | |
| 85 | - D.potential D.potential_nonneg (fun b => (D.shifted b.1).hessian_upper P) D.small | |
| 86 | - (D.frameOrbit_contDiff P hQ) (D.frameDerivativeOrbit_contDiff P hQ₁) (D.hessianOrbit_contDiff P hH) | |
| 87 | - Rc C₀ C₁ CH Cf R hRc hC₀ hC₁ hCH hCf | |
| 88 | - (fun k b => D.frameOrbit_bound P hQ k _ (hbQ k) b) | |
| 89 | - (fun k b => D.frameDerivativeOrbit_bound P hQ₁ k _ (hbQ₁ k) b) | |
| 90 | - (fun k b => D.hessianOrbit_bound P hH k _ (hbH k) b) hRweak hRstrong D.time_pos hT1 | |
| 91 | - (fun b => pathTranslate P b f) hf d _ n a | |
| 92 | - intro k b | |
| 93 | - rw [path_block_constant P directions q f hf k b] | |
| 94 | - exact hfb k | |
| 95 | - | |
| 96 | -/-- Time-uniform acceleration of the actual history solution, including both endpoints. -/ | |
| 97 | -theorem accelerationPath_block_bound (hT1 : T ≤ 1) | |
| 98 | - (hRuniform : 2*gramBlockCost ι q D.lower Rc C₀ | |
| 99 | - (accelerationBlockAmplitude ι q Rc C₀ C₁ Cf (traceCost T))*(sobolevCoefficientRadius ι Rc+1) ≤ R) | |
| 100 | - (f : C(Icc (0 : ℝ) T,CylinderL2 P E)) | |
| 101 | - (hf : ContDiff ℝ ∞ (fun a => pathTranslate P a f)) | |
| 102 | - (d : ℕ) (hfb : ∀ n, block directions q (fun a => pathTranslate P a f) n 0 ≤ Cf*majorant R d n) | |
| 103 | - (n : ℕ) (a : LiftTangent) : | |
| 104 | - block directions q (fun b => pathTranslate P b (D.accelerationPath P f)) n a ≤ | |
| 105 | - majorant R (d+3) n := by | |
| 106 | - have he : (fun b : LiftTangent => (D.shifted b.1).accelerationPath P (pathTranslate P b f)) = | |
| 107 | - fun b => pathTranslate P b (D.accelerationPath P f) := by | |
| 108 | - funext b | |
| 109 | - apply ContinuousMap.ext | |
| 110 | - intro t | |
| 111 | - exact D.accelerationPath_translation P b f t | |
| 112 | - rw [← he] | |
| 113 | - apply EulerFixedEvolutionSobolev.classicalAcceleration_block_gevrey directions hdir q T D.time_pos.le | |
| 114 | - (fun b : LiftTangent => (D.shifted b.1).frame P) | |
| 115 | - (fun b : LiftTangent => (D.shifted b.1).frameDerivative P) | |
| 116 | - (fun b : LiftTangent => (D.shifted b.1).hessian P) | |
| 117 | - D.lower D.lower_pos (fun b => (D.shifted b.1).frame_lower P) | |
| 118 | - (fun b => (D.shifted b.1).frame_derivative P) | |
| 119 | - D.potential D.potential_nonneg (fun b => (D.shifted b.1).hessian_upper P) D.small | |
| 120 | - (D.frameOrbit_contDiff P hQ) (D.frameDerivativeOrbit_contDiff P hQ₁) (D.hessianOrbit_contDiff P hH) | |
| 121 | - Rc C₀ C₁ CH Cf R hRc hC₀ hC₁ hCH hCf | |
| 122 | - (fun k b => D.frameOrbit_bound P hQ k _ (hbQ k) b) | |
| 123 | - (fun k b => D.frameDerivativeOrbit_bound P hQ₁ k _ (hbQ₁ k) b) | |
| 124 | - (fun k b => D.hessianOrbit_bound P hH k _ (hbH k) b) hRweak hRstrong D.time_pos hT1 hRuniform | |
| 125 | - (fun b => pathTranslate P b f) hf d _ n a | |
| 126 | - intro k b | |
| 127 | - rw [path_block_constant P directions q f hf k b] | |
| 128 | - exact hfb k | |
| 129 | - | |
| 130 | -end EulerCylinderDirichlet.Coefficients | |
+0 −122 Euler/CylinderDirichletTranslation.lean deleted
| @@ -1,122 +0,0 @@ | ||
| 1 | -import Euler.CylinderDirichletNaturality | |
| 2 | -import Euler.MeanCoefficientPath | |
| 3 | - | |
| 4 | -/-! The actual history solve commutes with all mixed spatial/angular translations. -/ | |
| 5 | - | |
| 6 | -noncomputable section | |
| 7 | - | |
| 8 | -namespace EulerLpCylinderRectangular | |
| 9 | - | |
| 10 | -open Set ContinuousLinearMap EulerLiftedGradientSpace EulerLpCylinderTranslation EulerMeanCoefficients | |
| 11 | -open scoped BoundedContinuousFunction | |
| 12 | - | |
| 13 | -variable (P : ℝ) [Fact (0 < P)] {U E : Type*} | |
| 14 | - [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] | |
| 15 | - [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] | |
| 16 | - | |
| 17 | -theorem fullOperator_translation_back (a : LiftTangent) (Q : EulerSmoothLimit.Space →ᵇ U →L[ℝ] E) | |
| 18 | - (u : CylinderL2 P U) : | |
| 19 | - fullOperatorMap P Q (((translate P a).toContinuousLinearMap).adjoint u) = | |
| 20 | - ((translate P a).toContinuousLinearMap).adjoint | |
| 21 | - (fullOperatorMap P (translated Q a.1) u) := by | |
| 22 | - rw [translate_adjoint,translate_adjoint] | |
| 23 | - change fullOperatorMap P Q (translate P (-a) u) = | |
| 24 | - translate P (-a) (fullOperatorMap P (translated Q a.1) u) | |
| 25 | - have he := congrArg (translate (V := E) P (-a)) | |
| 26 | - (fullOperator_translation P a Q (translate P (-a) u)) | |
| 27 | - simpa only [translate_add,add_neg_cancel,neg_add_cancel,translate_zero] using he.symm | |
| 28 | - | |
| 29 | -end EulerLpCylinderRectangular | |
| 30 | - | |
| 31 | -namespace EulerCylinderDirichlet.Coefficients | |
| 32 | - | |
| 33 | -open Set MeasureTheory ContinuousLinearMap InnerProductSpace EulerSmoothLimit | |
| 34 | - EulerLiftedGradientSpace EulerLpCylinderTranslation EulerLpCylinderRectangular | |
| 35 | - EulerTimeLp EulerTimeLpBoundedMap EulerVolterraConvolution EulerMeanCoefficients | |
| 36 | -open scoped BoundedContinuousFunction | |
| 37 | - | |
| 38 | -variable {T : ℝ} {U E : Type*} | |
| 39 | - [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] | |
| 40 | - [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] | |
| 41 | - (D : Coefficients T U E) | |
| 42 | - | |
| 43 | -/-- The actual translated coefficient fields, with their inherited pointwise | |
| 44 | -time derivatives and unchanged coercivity constants. -/ | |
| 45 | -def shifted (a : Space) : Coefficients T U E where | |
| 46 | - time_pos := D.time_pos | |
| 47 | - Q := translateCoefficientPath D.Q a | |
| 48 | - Q₁ := translateCoefficientPath D.Q₁ a | |
| 49 | - Q₂ := translateCoefficientPath D.Q₂ a | |
| 50 | - H := translateCoefficientPath D.H a | |
| 51 | - lower := D.lower | |
| 52 | - lower_pos := D.lower_pos | |
| 53 | - lower_bound t x v := D.lower_bound t (x+a) v | |
| 54 | - derivative t ht x := D.derivative t ht (x+a) | |
| 55 | - second_derivative t ht x := D.second_derivative t ht (x+a) | |
| 56 | - jacobi t x v := D.jacobi t (x+a) v | |
| 57 | - potential := D.potential | |
| 58 | - potential_nonneg := D.potential_nonneg | |
| 59 | - potential_bound t x v := D.potential_bound t (x+a) v | |
| 60 | - small := D.small | |
| 61 | - | |
| 62 | -variable (P : ℝ) [Fact (0 < P)] | |
| 63 | - | |
| 64 | -omit [CompleteSpace U] [CompleteSpace E] in | |
| 65 | -theorem shifted_frame (a : LiftTangent) (t : Icc (0 : ℝ) T) (u : CylinderL2 P U) : | |
| 66 | - (D.shifted a.1).frame P t (translate P a u) = translate P a (D.frame P t u) := | |
| 67 | - fullOperator_translation P a (D.Q t) u | |
| 68 | - | |
| 69 | -omit [CompleteSpace U] [CompleteSpace E] in | |
| 70 | -theorem shifted_frameDerivative (a : LiftTangent) (t : Icc (0 : ℝ) T) (u : CylinderL2 P U) : | |
| 71 | - (D.shifted a.1).frameDerivative P t (translate P a u) = translate P a (D.frameDerivative P t u) := | |
| 72 | - fullOperator_translation P a (D.Q₁ t) u | |
| 73 | - | |
| 74 | -omit [CompleteSpace U] [CompleteSpace E] in | |
| 75 | -theorem shifted_hessian (a : LiftTangent) (t : Icc (0 : ℝ) T) (u : CylinderL2 P E) : | |
| 76 | - (D.shifted a.1).hessian P t (translate P a u) = translate P a (D.hessian P t u) := | |
| 77 | - fullOperator_translation P a (D.H t) u | |
| 78 | - | |
| 79 | -theorem shifted_frame_back (a : LiftTangent) (t : Icc (0 : ℝ) T) (u : CylinderL2 P U) : | |
| 80 | - D.frame P t (((translate P a).toContinuousLinearMap).adjoint u) = | |
| 81 | - ((translate P a).toContinuousLinearMap).adjoint ((D.shifted a.1).frame P t u) := | |
| 82 | - fullOperator_translation_back P a (D.Q t) u | |
| 83 | - | |
| 84 | -theorem shifted_frameDerivative_back (a : LiftTangent) (t : Icc (0 : ℝ) T) (u : CylinderL2 P U) : | |
| 85 | - D.frameDerivative P t (((translate P a).toContinuousLinearMap).adjoint u) = | |
| 86 | - ((translate P a).toContinuousLinearMap).adjoint ((D.shifted a.1).frameDerivative P t u) := | |
| 87 | - fullOperator_translation_back P a (D.Q₁ t) u | |
| 88 | - | |
| 89 | -theorem continuousVelocity_translation (a : LiftTangent) | |
| 90 | - (f : C(Icc (0 : ℝ) T,CylinderL2 P E)) (t : Icc (0 : ℝ) T) : | |
| 91 | - (D.shifted a.1).velocityPath P (pathLp T D.time_pos.le (pathTranslate P a f)) t = | |
| 92 | - translate P a (D.velocityPath P (pathLp T D.time_pos.le f) t) := | |
| 93 | - D.continuousVelocity_intertwines P (D.shifted a.1) | |
| 94 | - (translate P a).toContinuousLinearMap (translate P a).toContinuousLinearMap | |
| 95 | - (D.shifted_frame P a) (D.shifted_frameDerivative P a) | |
| 96 | - (D.shifted_frame_back P a) (D.shifted_frameDerivative_back P a) (D.shifted_hessian P a) f t | |
| 97 | - | |
| 98 | -theorem accelerationPath_translation (a : LiftTangent) | |
| 99 | - (f : C(Icc (0 : ℝ) T,CylinderL2 P E)) (t : Icc (0 : ℝ) T) : | |
| 100 | - (D.shifted a.1).accelerationPath P (pathTranslate P a f) t = translate P a (D.accelerationPath P f t) := | |
| 101 | - D.accelerationPath_intertwines P (D.shifted a.1) | |
| 102 | - (translate P a).toContinuousLinearMap (translate P a).toContinuousLinearMap | |
| 103 | - (D.shifted_frame P a) (D.shifted_frameDerivative P a) | |
| 104 | - (D.shifted_frame_back P a) (D.shifted_frameDerivative_back P a) (D.shifted_hessian P a) f t | |
| 105 | - | |
| 106 | -theorem physicalVelocity_translation (a : LiftTangent) | |
| 107 | - (f : C(Icc (0 : ℝ) T,CylinderL2 P E)) (t : Icc (0 : ℝ) T) : | |
| 108 | - (D.shifted a.1).physicalVelocity P (pathTranslate P a f) t = translate P a (D.physicalVelocity P f t) := | |
| 109 | - D.physicalVelocity_intertwines P (D.shifted a.1) | |
| 110 | - (translate P a).toContinuousLinearMap (translate P a).toContinuousLinearMap | |
| 111 | - (D.shifted_frame P a) (D.shifted_frameDerivative P a) | |
| 112 | - (D.shifted_frame_back P a) (D.shifted_frameDerivative_back P a) (D.shifted_hessian P a) f t | |
| 113 | - | |
| 114 | -theorem physicalDerivative_translation (a : LiftTangent) | |
| 115 | - (f : C(Icc (0 : ℝ) T,CylinderL2 P E)) (t : Icc (0 : ℝ) T) : | |
| 116 | - (D.shifted a.1).physicalDerivative P (pathTranslate P a f) t = translate P a (D.physicalDerivative P f t) := | |
| 117 | - D.physicalDerivative_intertwines P (D.shifted a.1) | |
| 118 | - (translate P a).toContinuousLinearMap (translate P a).toContinuousLinearMap | |
| 119 | - (D.shifted_frame P a) (D.shifted_frameDerivative P a) | |
| 120 | - (D.shifted_frame_back P a) (D.shifted_frameDerivative_back P a) (D.shifted_hessian P a) f t | |
| 121 | - | |
| 122 | -end EulerCylinderDirichlet.Coefficients | |
+0 −75 Euler/CylinderEndpointBudget.lean deleted
| @@ -1,75 +0,0 @@ | ||
| 1 | -import Euler.CylinderEndpointRegularity | |
| 2 | -import Euler.CylinderDirichletPhysicalBounds | |
| 3 | - | |
| 4 | -/-! | |
| 5 | -Source-only guards for the affine-terminal cylinder inverse. The affine | |
| 6 | -forcing is bounded for unit terminal data; no terminal amplitude, derivative | |
| 7 | -shift, or recursive grade occurs in the radius conditions. | |
| 8 | --/ | |
| 9 | - | |
| 10 | -noncomputable section | |
| 11 | - | |
| 12 | -namespace EulerCylinderDirichlet.Coefficients | |
| 13 | - | |
| 14 | -open Set ContinuousLinearMap EulerSmoothLimit EulerMeanCoefficients EulerGevrey | |
| 15 | - EulerParameterWordGevrey EulerTransverseFixedSobolev EulerFixedEvolutionSobolev | |
| 16 | - EulerTimeLpGramSobolev EulerTimeLpAccelerationSobolev | |
| 17 | -open scoped ContDiff BoundedContinuousFunction | |
| 18 | - | |
| 19 | -def endpointForcingCost (ι : Type*) [Fintype ι] (q : ℕ) (T Rc C₁ : ℝ) : ℝ := | |
| 20 | - 6*sobolevCoefficientAmplitude ι q Rc C₁*T⁻¹ | |
| 21 | - | |
| 22 | -variable {T : ℝ} {U E : Type*} | |
| 23 | - [NormedAddCommGroup U] [InnerProductSpace ℝ U] | |
| 24 | - [NormedAddCommGroup E] [InnerProductSpace ℝ E] | |
| 25 | - | |
| 26 | -structure EndpointBudget (D : Coefficients T U E) (ι : Type*) [Fintype ι] (q : ℕ) where | |
| 27 | - Rc : ℝ | |
| 28 | - C₀ : ℝ | |
| 29 | - C₁ : ℝ | |
| 30 | - CH : ℝ | |
| 31 | - R : ℝ | |
| 32 | - Rc_nonneg : 0 ≤ Rc | |
| 33 | - C₀_nonneg : 0 ≤ C₀ | |
| 34 | - C₁_nonneg : 0 ≤ C₁ | |
| 35 | - CH_nonneg : 0 ≤ CH | |
| 36 | - time_le_one : T ≤ 1 | |
| 37 | - frame_smooth : ContDiff ℝ ∞ (translateCoefficientPath D.Q) | |
| 38 | - frameDerivative_smooth : ContDiff ℝ ∞ (translateCoefficientPath D.Q₁) | |
| 39 | - hessian_smooth : ContDiff ℝ ∞ (translateCoefficientPath D.H) | |
| 40 | - frame_bound : ∀ n a, ‖iteratedFDeriv ℝ n (translateCoefficientPath D.Q) a‖ ≤ C₀*majorant Rc 0 n | |
| 41 | - frameDerivative_bound : ∀ n a, ‖iteratedFDeriv ℝ n (translateCoefficientPath D.Q₁) a‖ ≤ C₁*majorant Rc 0 n | |
| 42 | - hessian_bound : ∀ n a, ‖iteratedFDeriv ℝ n (translateCoefficientPath D.H) a‖ ≤ CH*majorant Rc 0 n | |
| 43 | - weak_radius : 2*blockCost ι q T Rc C₀ C₁ CH D.lower (endpointForcingCost ι q T Rc C₁)* | |
| 44 | - (sobolevCoefficientRadius ι Rc+1) ≤ R | |
| 45 | - strong_radius : 2*gramBlockCost ι q D.lower Rc C₀ | |
| 46 | - (accelerationBlockAmplitude ι q Rc C₀ C₁ (endpointForcingCost ι q T Rc C₁) 1)* | |
| 47 | - (sobolevCoefficientRadius ι Rc+1) ≤ R | |
| 48 | - uniform_radius : 2*gramBlockCost ι q D.lower Rc C₀ | |
| 49 | - (accelerationBlockAmplitude ι q Rc C₀ C₁ (endpointForcingCost ι q T Rc C₁) (traceCost T))* | |
| 50 | - (sobolevCoefficientRadius ι Rc+1) ≤ R | |
| 51 | - | |
| 52 | -namespace EndpointBudget | |
| 53 | - | |
| 54 | -variable {D : Coefficients T U E} {ι : Type*} [Fintype ι] {q : ℕ} (L : EndpointBudget D ι q) | |
| 55 | - | |
| 56 | -theorem forcingCost_nonneg : 0 ≤ endpointForcingCost ι q T L.Rc L.C₁ := | |
| 57 | - mul_nonneg (mul_nonneg (by norm_num) | |
| 58 | - (sobolevCoefficientAmplitude_nonneg q L.Rc L.C₁ L.Rc_nonneg L.C₁_nonneg)) | |
| 59 | - (inv_nonneg.mpr D.time_pos.le) | |
| 60 | - | |
| 61 | -theorem radius_bounds : 1 ≤ L.R ∧ sobolevCoefficientRadius ι L.Rc ≤ L.R := | |
| 62 | - weak_radius_bounds ι q T L.Rc L.C₀ L.C₁ L.CH D.lower | |
| 63 | - (endpointForcingCost ι q T L.Rc L.C₁) L.R D.time_pos.le L.Rc_nonneg | |
| 64 | - L.C₀_nonneg L.C₁_nonneg L.CH_nonneg L.forcingCost_nonneg L.weak_radius | |
| 65 | - | |
| 66 | -def coordinateCost (_L : EndpointBudget D ι q) : ℝ := T⁻¹+traceCost T | |
| 67 | -def velocityCost : ℝ := 3*sobolevCoefficientAmplitude ι q L.Rc L.C₀*L.coordinateCost | |
| 68 | -def derivativeCost : ℝ := 3*sobolevCoefficientAmplitude ι q L.Rc L.C₁*L.coordinateCost+ | |
| 69 | - 3*sobolevCoefficientAmplitude ι q L.Rc L.C₀ | |
| 70 | - | |
| 71 | -theorem coordinateCost_nonneg : 0 ≤ L.coordinateCost := | |
| 72 | - add_nonneg (inv_nonneg.mpr D.time_pos.le) (traceCost_nonneg T D.time_pos.le) | |
| 73 | - | |
| 74 | -end EndpointBudget | |
| 75 | -end EulerCylinderDirichlet.Coefficients | |
+146 −2 Euler/CylinderEndpointPointwise.lean View file
| @@ -1,8 +1,10 @@ | ||
| 1 | 1 | import Euler.CylinderEndpointLabels |
| 2 | 2 | import Euler.CylinderEndpointRegularity |
| 3 | 3 | import Euler.CylinderEndpointEquation |
| 4 | -import Euler.CylinderRetractRepresentative | |
| 5 | -import Euler.CylinderPathIntegral | |
| 4 | +import Euler.CylinderConstantMap | |
| 5 | +import Euler.CylinderTimeRegularity | |
| 6 | +import Euler.LpCylinderTranslation | |
| 7 | +import Euler.ContinuousTimeIntegral | |
| 6 | 8 | import Euler.FixedEndpointClassical |
| 7 | 9 | |
| 8 | 10 | /-! |
| @@ -12,6 +14,148 @@ genuine coordinate representatives and their time derivatives, then uses | ||
| 12 | 14 | the proved two-endpoint energy uniqueness theorem. |
| 13 | 15 | -/ |
| 14 | 16 | |
| 17 | +/-! ## From `Euler/CylinderRetractRepresentative.lean` | |
| 18 | + | |
| 19 | +The text of `Euler/CylinderRetractRepresentative.lean`, folded into this file, which was its only importer. -/ | |
| 20 | + | |
| 21 | +section | |
| 22 | + | |
| 23 | +/-! | |
| 24 | +Actual pointwise representatives for coordinate spaces embedded in Space. | |
| 25 | +A fixed bounded embedding and left inverse transfer the proved H³ point | |
| 26 | +evaluation. This will apply to the two-dimensional reference plane, without | |
| 27 | +identifying an L² normal with a pointwise normal vector. | |
| 28 | +-/ | |
| 29 | + | |
| 30 | +noncomputable section | |
| 31 | + | |
| 32 | +namespace EulerCylinderRetractRepresentative | |
| 33 | + | |
| 34 | +open Set MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace | |
| 35 | + EulerLpCylinderTranslation EulerCylinderConstantMap EulerVolterraConvolution EulerMetricTransport | |
| 36 | +open scoped ContDiff | |
| 37 | + | |
| 38 | +variable (P : ℝ) [Fact (0 < P)] {U : Type*} | |
| 39 | + [NormedAddCommGroup U] [NormedSpace ℝ U] | |
| 40 | + (J : U →L[ℝ] Space) (L : Space →L[ℝ] U) | |
| 41 | + {K : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 42 | + (p : C(K,CylinderL2 P U)) | |
| 43 | + (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) | |
| 44 | + | |
| 45 | +def pointField (t : K) (x : LiftDomain P) : U := | |
| 46 | + L (EulerCylinderSmoothOrbit.pointField P (pathMap P J p) (pathMap_orbit_contDiff P J p hp) t x) | |
| 47 | + | |
| 48 | +theorem pointField_smooth (t : K) (x : LiftDomain P) : | |
| 49 | + ContDiff ℝ ∞ (localFieldLift P (pointField P J L p hp t) x) := | |
| 50 | + L.contDiff.comp (EulerCylinderSmoothOrbit.pointField_smooth P | |
| 51 | + (pathMap P J p) (pathMap_orbit_contDiff P J p hp) t x) | |
| 52 | + | |
| 53 | +theorem pointField_continuous (t : K) : Continuous (pointField P J L p hp t) := | |
| 54 | + smoothField_continuous P _ (pointField_smooth P J L p hp t) | |
| 55 | + | |
| 56 | +def pointPath (x : LiftDomain P) : C(K,U) := | |
| 57 | + ⟨fun t => pointField P J L p hp t x, | |
| 58 | + L.continuous.comp ((EulerSobolevPointEvaluation.pointEvaluation P x).continuous.comp | |
| 59 | + (EulerCylinderSmoothOrbit.sobolevPath P 3 (pathMap P J p) | |
| 60 | + (pathMap_orbit_contDiff P J p hp)).continuous)⟩ | |
| 61 | + | |
| 62 | +theorem pointField_ae (hL : ∀ v : U, L (J v) = v) (t : K) : | |
| 63 | + p t =ᵐ[liftMeasure P] pointField P J L p hp t := by | |
| 64 | + filter_upwards [map_ae P J (p t),EulerCylinderSmoothOrbit.pointField_ae P | |
| 65 | + (pathMap P J p) (pathMap_orbit_contDiff P J p hp) t] with x hm he | |
| 66 | + change (map P J (p t)) x = _ at he | |
| 67 | + change p t x = L _ | |
| 68 | + rw [← he,hm,hL] | |
| 69 | + | |
| 70 | +theorem pointField_eq (hL : ∀ v : U, L (J v) = v) (t : K) | |
| 71 | + (f : LiftDomain P → U) (hf : Continuous f) (hrep : p t =ᵐ[liftMeasure P] f) : | |
| 72 | + pointField P J L p hp t = f := | |
| 73 | + Measure.eq_of_ae_eq ((pointField_ae P J L p hp hL t).symm.trans hrep) | |
| 74 | + (pointField_continuous P J L p hp t) hf | |
| 75 | + | |
| 76 | +section Time | |
| 77 | + | |
| 78 | +variable (T : ℝ) (hT : 0 ≤ T) | |
| 79 | + (p q : C(Icc (0 : ℝ) T,CylinderL2 P U)) | |
| 80 | + (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) | |
| 81 | + (hq : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a q)) | |
| 82 | + (hd : ∀ t : Icc (0 : ℝ) T, | |
| 83 | + HasDerivWithinAt (extendPath T hT p) (q t) (Icc (0 : ℝ) T) t) | |
| 84 | + | |
| 85 | +include hd in | |
| 86 | +theorem pointPath_hasDerivWithinAt (x : LiftDomain P) (t : Icc (0 : ℝ) T) : | |
| 87 | + HasDerivWithinAt (extendPath T hT (pointPath P J L p hp x)) | |
| 88 | + (pointPath P J L q hq x t) (Icc (0 : ℝ) T) t := by | |
| 89 | + have hdJ (s : Icc (0 : ℝ) T) : | |
| 90 | + HasDerivWithinAt (extendPath T hT (pathMap P J p)) (pathMap P J q s) | |
| 91 | + (Icc (0 : ℝ) T) s := | |
| 92 | + (map P J).hasFDerivAt.comp_hasDerivWithinAt (s : ℝ) (hd s) | |
| 93 | + exact L.hasFDerivAt.comp_hasDerivWithinAt (t : ℝ) | |
| 94 | + (EulerCylinderSmoothOrbit.pointField_hasDerivWithinAt P T hT | |
| 95 | + (pathMap P J p) (pathMap P J q) (pathMap_orbit_contDiff P J p hp) | |
| 96 | + (pathMap_orbit_contDiff P J q hq) hdJ t x) | |
| 97 | + | |
| 98 | +end Time | |
| 99 | +end EulerCylinderRetractRepresentative | |
| 100 | +end | |
| 101 | + | |
| 102 | +end | |
| 103 | + | |
| 104 | +/-! ## From `Euler/CylinderPathIntegral.lean` | |
| 105 | + | |
| 106 | +The text of `Euler/CylinderPathIntegral.lean`, folded into this file, which was its only importer. -/ | |
| 107 | + | |
| 108 | +section | |
| 109 | + | |
| 110 | +/-! Initial time integration commutes with the genuine mixed cylinder action. -/ | |
| 111 | + | |
| 112 | +noncomputable section | |
| 113 | + | |
| 114 | +namespace EulerCylinderPathIntegral | |
| 115 | + | |
| 116 | +open Set ContinuousLinearMap EulerLpCylinderTranslation EulerLiftedGradientSpace | |
| 117 | + EulerVolterraConvolution EulerContinuousTimeIntegral | |
| 118 | +open scoped ContDiff | |
| 119 | + | |
| 120 | +variable (P : ℝ) [Fact (0 < P)] {V : Type*} | |
| 121 | + [NormedAddCommGroup V] [NormedSpace ℝ V] [CompleteSpace V] | |
| 122 | + (T : ℝ) (hT : 0 ≤ T) | |
| 123 | + | |
| 124 | +theorem integral_translate (p : C(Icc (0 : ℝ) T,CylinderL2 P V)) (a : LiftTangent) : | |
| 125 | + integral T hT (pathTranslate P a p) = pathTranslate P a (integral T hT p) := by | |
| 126 | + apply ContinuousMap.ext | |
| 127 | + intro t | |
| 128 | + exact (translate P a).intervalIntegral_comp_comm (extendPath T hT p) | |
| 129 | + | |
| 130 | +theorem integral_orbit_contDiff (p : C(Icc (0 : ℝ) T,CylinderL2 P V)) | |
| 131 | + (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) : | |
| 132 | + ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a (integral T hT p)) := by | |
| 133 | + have hh := (integral (E := CylinderL2 P V) T hT).contDiff.comp hp | |
| 134 | + convert hh using 1 | |
| 135 | + funext a | |
| 136 | + exact (integral_translate P T hT p a).symm | |
| 137 | + | |
| 138 | +theorem orbit_contDiff_of_derivative | |
| 139 | + (p q : C(Icc (0 : ℝ) T,CylinderL2 P V)) | |
| 140 | + (hq : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a q)) | |
| 141 | + (hd : ∀ t : Icc (0 : ℝ) T, | |
| 142 | + HasDerivWithinAt (extendPath T hT p) (q t) (Icc (0 : ℝ) T) t) | |
| 143 | + (hzero : p ⟨0,le_rfl,hT⟩ = 0) : | |
| 144 | + ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p) := by | |
| 145 | + have he : p = integral T hT q := by | |
| 146 | + apply ContinuousMap.ext | |
| 147 | + intro t | |
| 148 | + have hh := eq_initial_add_integral T hT q (extendPath T hT p) hd t | |
| 149 | + simpa only [extendPath,projIcc_of_mem hT t.property, | |
| 150 | + projIcc_of_mem hT (show (0 : ℝ) ∈ Icc 0 T from ⟨le_rfl,hT⟩),hzero,zero_add] using hh | |
| 151 | + rw [he] | |
| 152 | + exact integral_orbit_contDiff P T hT q hq | |
| 153 | + | |
| 154 | +end EulerCylinderPathIntegral | |
| 155 | +end | |
| 156 | + | |
| 157 | +end | |
| 158 | + | |
| 15 | 159 | noncomputable section |
| 16 | 160 | |
| 17 | 161 | namespace EulerCylinderDirichlet.Coefficients |
+84 −1 Euler/CylinderEndpointUnitBounds.lean View file
| @@ -1,4 +1,5 @@ | ||
| 1 | -import Euler.CylinderEndpointBudget | |
| 1 | +import Euler.CylinderEndpointRegularity | |
| 2 | +import Euler.CylinderDirichletPhysicalBounds | |
| 2 | 3 | import Euler.CylinderTerminalAmplitude |
| 3 | 4 | |
| 4 | 5 | /-! |
| @@ -7,6 +8,88 @@ radius is unchanged; the coordinate/velocity use two shifts and the true | ||
| 7 | 8 | time derivative uses three. Every inverse guard is source-only. |
| 8 | 9 | -/ |
| 9 | 10 | |
| 11 | +/-! ## From `Euler/CylinderEndpointBudget.lean` | |
| 12 | + | |
| 13 | +The text of `Euler/CylinderEndpointBudget.lean`, folded into this file, which was its only importer. -/ | |
| 14 | + | |
| 15 | +section | |
| 16 | + | |
| 17 | +/-! | |
| 18 | +Source-only guards for the affine-terminal cylinder inverse. The affine | |
| 19 | +forcing is bounded for unit terminal data; no terminal amplitude, derivative | |
| 20 | +shift, or recursive grade occurs in the radius conditions. | |
| 21 | +-/ | |
| 22 | + | |
| 23 | +noncomputable section | |
| 24 | + | |
| 25 | +namespace EulerCylinderDirichlet.Coefficients | |
| 26 | + | |
| 27 | +open Set ContinuousLinearMap EulerSmoothLimit EulerMeanCoefficients EulerGevrey | |
| 28 | + EulerParameterWordGevrey EulerTransverseFixedSobolev EulerFixedEvolutionSobolev | |
| 29 | + EulerTimeLpGramSobolev EulerTimeLpAccelerationSobolev | |
| 30 | +open scoped ContDiff BoundedContinuousFunction | |
| 31 | + | |
| 32 | +def endpointForcingCost (ι : Type*) [Fintype ι] (q : ℕ) (T Rc C₁ : ℝ) : ℝ := | |
| 33 | + 6*sobolevCoefficientAmplitude ι q Rc C₁*T⁻¹ | |
| 34 | + | |
| 35 | +variable {T : ℝ} {U E : Type*} | |
| 36 | + [NormedAddCommGroup U] [InnerProductSpace ℝ U] | |
| 37 | + [NormedAddCommGroup E] [InnerProductSpace ℝ E] | |
| 38 | + | |
| 39 | +structure EndpointBudget (D : Coefficients T U E) (ι : Type*) [Fintype ι] (q : ℕ) where | |
| 40 | + Rc : ℝ | |
| 41 | + C₀ : ℝ | |
| 42 | + C₁ : ℝ | |
| 43 | + CH : ℝ | |
| 44 | + R : ℝ | |
| 45 | + Rc_nonneg : 0 ≤ Rc | |
| 46 | + C₀_nonneg : 0 ≤ C₀ | |
| 47 | + C₁_nonneg : 0 ≤ C₁ | |
| 48 | + CH_nonneg : 0 ≤ CH | |
| 49 | + time_le_one : T ≤ 1 | |
| 50 | + frame_smooth : ContDiff ℝ ∞ (translateCoefficientPath D.Q) | |
| 51 | + frameDerivative_smooth : ContDiff ℝ ∞ (translateCoefficientPath D.Q₁) | |
| 52 | + hessian_smooth : ContDiff ℝ ∞ (translateCoefficientPath D.H) | |
| 53 | + frame_bound : ∀ n a, ‖iteratedFDeriv ℝ n (translateCoefficientPath D.Q) a‖ ≤ C₀*majorant Rc 0 n | |
| 54 | + frameDerivative_bound : ∀ n a, ‖iteratedFDeriv ℝ n (translateCoefficientPath D.Q₁) a‖ ≤ C₁*majorant Rc 0 n | |
| 55 | + hessian_bound : ∀ n a, ‖iteratedFDeriv ℝ n (translateCoefficientPath D.H) a‖ ≤ CH*majorant Rc 0 n | |
| 56 | + weak_radius : 2*blockCost ι q T Rc C₀ C₁ CH D.lower (endpointForcingCost ι q T Rc C₁)* | |
| 57 | + (sobolevCoefficientRadius ι Rc+1) ≤ R | |
| 58 | + strong_radius : 2*gramBlockCost ι q D.lower Rc C₀ | |
| 59 | + (accelerationBlockAmplitude ι q Rc C₀ C₁ (endpointForcingCost ι q T Rc C₁) 1)* | |
| 60 | + (sobolevCoefficientRadius ι Rc+1) ≤ R | |
| 61 | + uniform_radius : 2*gramBlockCost ι q D.lower Rc C₀ | |
| 62 | + (accelerationBlockAmplitude ι q Rc C₀ C₁ (endpointForcingCost ι q T Rc C₁) (traceCost T))* | |
| 63 | + (sobolevCoefficientRadius ι Rc+1) ≤ R | |
| 64 | + | |
| 65 | +namespace EndpointBudget | |
| 66 | + | |
| 67 | +variable {D : Coefficients T U E} {ι : Type*} [Fintype ι] {q : ℕ} (L : EndpointBudget D ι q) | |
| 68 | + | |
| 69 | +theorem forcingCost_nonneg : 0 ≤ endpointForcingCost ι q T L.Rc L.C₁ := | |
| 70 | + mul_nonneg (mul_nonneg (by norm_num) | |
| 71 | + (sobolevCoefficientAmplitude_nonneg q L.Rc L.C₁ L.Rc_nonneg L.C₁_nonneg)) | |
| 72 | + (inv_nonneg.mpr D.time_pos.le) | |
| 73 | + | |
| 74 | +theorem radius_bounds : 1 ≤ L.R ∧ sobolevCoefficientRadius ι L.Rc ≤ L.R := | |
| 75 | + weak_radius_bounds ι q T L.Rc L.C₀ L.C₁ L.CH D.lower | |
| 76 | + (endpointForcingCost ι q T L.Rc L.C₁) L.R D.time_pos.le L.Rc_nonneg | |
| 77 | + L.C₀_nonneg L.C₁_nonneg L.CH_nonneg L.forcingCost_nonneg L.weak_radius | |
| 78 | + | |
| 79 | +def coordinateCost (_L : EndpointBudget D ι q) : ℝ := T⁻¹+traceCost T | |
| 80 | +def velocityCost : ℝ := 3*sobolevCoefficientAmplitude ι q L.Rc L.C₀*L.coordinateCost | |
| 81 | +def derivativeCost : ℝ := 3*sobolevCoefficientAmplitude ι q L.Rc L.C₁*L.coordinateCost+ | |
| 82 | + 3*sobolevCoefficientAmplitude ι q L.Rc L.C₀ | |
| 83 | + | |
| 84 | +theorem coordinateCost_nonneg : 0 ≤ L.coordinateCost := | |
| 85 | + add_nonneg (inv_nonneg.mpr D.time_pos.le) (traceCost_nonneg T D.time_pos.le) | |
| 86 | + | |
| 87 | +end EndpointBudget | |
| 88 | +end EulerCylinderDirichlet.Coefficients | |
| 89 | +end | |
| 90 | + | |
| 91 | +end | |
| 92 | + | |
| 10 | 93 | noncomputable section |
| 11 | 94 | |
| 12 | 95 | namespace EulerCylinderDirichlet.Coefficients.EndpointBudget |
+0 −16 Euler/CylinderGraphAffine.lean deleted
| @@ -1,16 +0,0 @@ | ||
| 1 | -import Euler.CylinderGraphRealization | |
| 2 | - | |
| 3 | -/-! The graph trace estimate applies to the actual affine remainder in a | |
| 4 | -derivative quotient, with the same constants for all phase frequencies. -/ | |
| 5 | - | |
| 6 | -noncomputable section | |
| 7 | - | |
| 8 | -namespace EulerCylinderGraphTrace | |
| 9 | - | |
| 10 | -open Set MeasureTheory EulerLiftedGradientSpace EulerMetricTransport | |
| 11 | - EulerTransportDerivatives | |
| 12 | -open scoped ContDiff | |
| 13 | - | |
| 14 | -variable (P : ℝ) [Fact (0 < P)] | |
| 15 | - | |
| 16 | -end EulerCylinderGraphTrace | |
+25 −1 Euler/CylinderGraphDerivative.lean View file
| @@ -1,8 +1,32 @@ | ||
| 1 | -import Euler.CylinderGraphAffine | |
| 1 | +import Euler.CylinderGraphRealization | |
| 2 | 2 | |
| 3 | 3 | /-! A genuine cylinder L² time derivative, together with its genuine angular |
| 4 | 4 | derivative, remains a genuine spatial L² derivative on every fixed phase graph. -/ |
| 5 | 5 | |
| 6 | +/-! ## From `Euler/CylinderGraphAffine.lean` | |
| 7 | + | |
| 8 | +The text of `Euler/CylinderGraphAffine.lean`, folded into this file, which was its only importer. -/ | |
| 9 | + | |
| 10 | +section | |
| 11 | + | |
| 12 | +/-! The graph trace estimate applies to the actual affine remainder in a | |
| 13 | +derivative quotient, with the same constants for all phase frequencies. -/ | |
| 14 | + | |
| 15 | +noncomputable section | |
| 16 | + | |
| 17 | +namespace EulerCylinderGraphTrace | |
| 18 | + | |
| 19 | +open Set MeasureTheory EulerLiftedGradientSpace EulerMetricTransport | |
| 20 | + EulerTransportDerivatives | |
| 21 | +open scoped ContDiff | |
| 22 | + | |
| 23 | +variable (P : ℝ) [Fact (0 < P)] | |
| 24 | + | |
| 25 | +end EulerCylinderGraphTrace | |
| 26 | +end | |
| 27 | + | |
| 28 | +end | |
| 29 | + | |
| 6 | 30 | noncomputable section |
| 7 | 31 | |
| 8 | 32 | namespace EulerCylinderGraphTrace |
+116 −1 Euler/CylinderGraphGevrey.lean View file
| @@ -1,4 +1,5 @@ | ||
| 1 | -import Euler.CylinderJetGraphTrace | |
| 1 | +import Euler.CylinderDescentJets | |
| 2 | +import Euler.LpParameterIntegral | |
| 2 | 3 | import Euler.CylinderPhysicalTensor |
| 3 | 4 | import Euler.GevreyFixedShift |
| 4 | 5 | |
| @@ -6,6 +7,120 @@ import Euler.GevreyFixedShift | ||
| 6 | 7 | The L² trace uses one extra angular derivative but no extra factor of |
| 7 | 8 | the graph frequency. Only the n physical derivatives cost its n-th power. -/ |
| 8 | 9 | |
| 10 | +/-! ## From `Euler/CylinderJetGraphTrace.lean` | |
| 11 | + | |
| 12 | +The text of `Euler/CylinderJetGraphTrace.lean`, folded into this file, which was its only importer. -/ | |
| 13 | + | |
| 14 | +section | |
| 15 | + | |
| 16 | +/-! A phase-independent L² trace estimate for actual descended tensors. | |
| 17 | +One extra angular derivative suffices, and its norm is controlled by | |
| 18 | +the next actual cover tensor. -/ | |
| 19 | + | |
| 20 | +noncomputable section | |
| 21 | + | |
| 22 | +namespace EulerCylinderJetGraphTrace | |
| 23 | + | |
| 24 | +open Set MeasureTheory Filter EulerLiftedGradientSpace EulerCylinderCoverDescent | |
| 25 | + EulerMetricTransport EulerTransportDerivatives EulerCylinderGraphTrace | |
| 26 | +open scoped ContDiff | |
| 27 | + | |
| 28 | +variable (P : ℝ) [Fact (0 < P)] | |
| 29 | + {W : Type*} [NormedAddCommGroup W] [NormedSpace ℝ W] | |
| 30 | + (f : LiftTangent → W) | |
| 31 | + (hperiod : ∀ (c : AddSubgroup.zmultiples P) z, f (z.1,(c : ℝ)+z.2)=f z) | |
| 32 | + | |
| 33 | +include hperiod in | |
| 34 | +theorem fieldDerivative_descend (a : LiftTangent) (q : LiftDomain P) : | |
| 35 | + fieldDerivative P a (descend P f) q = fderiv ℝ f (sectionPoint P q) a := by | |
| 36 | + have he := localFieldLift_descend_cover P f hperiod (sectionPoint P q) | |
| 37 | + rw [coveringMap_sectionPoint] at he | |
| 38 | + change fderiv ℝ (localFieldLift P (descend P f) q) 0 a = _ | |
| 39 | + rw [he,fderiv_comp_add_left,add_zero] | |
| 40 | + | |
| 41 | +include hperiod in | |
| 42 | +theorem jetSeries_smooth (hf : ContDiff ℝ ∞ f) (n : ℕ) (q : LiftDomain P) : | |
| 43 | + ContDiff ℝ ∞ (localFieldLift P (fun x => jetSeries P f x n) q) := | |
| 44 | + descend_smooth P (iteratedFDeriv ℝ n f) (iteratedFDeriv_deck P f hperiod n) | |
| 45 | + (hf.iteratedFDeriv_right (m := ∞) (by simp)) q | |
| 46 | + | |
| 47 | +include hperiod in | |
| 48 | +theorem angularJet_bound (n : ℕ) (q : LiftDomain P) : | |
| 49 | + ‖fieldDerivative P (0,1) (fun x => jetSeries P f x n) q‖ ≤ ‖jetSeries P f q (n+1)‖ := by | |
| 50 | + change ‖fieldDerivative P (0,1) (descend P (iteratedFDeriv ℝ n f)) q‖ ≤ _ | |
| 51 | + rw [fieldDerivative_descend P (iteratedFDeriv ℝ n f) (iteratedFDeriv_deck P f hperiod n)] | |
| 52 | + change ‖fderiv ℝ (iteratedFDeriv ℝ n f) (sectionPoint P q) (0,1)‖ ≤ | |
| 53 | + ‖iteratedFDeriv ℝ (n+1) f (sectionPoint P q)‖ | |
| 54 | + have h := (fderiv ℝ (iteratedFDeriv ℝ n f) (sectionPoint P q)).le_opNorm (0,1) | |
| 55 | + simpa only [norm_fderiv_iteratedFDeriv,Prod.norm_def,norm_zero,norm_one, | |
| 56 | + max_eq_right (by norm_num : (0 : ℝ) ≤ 1),mul_one] using h | |
| 57 | + | |
| 58 | +include hperiod in | |
| 59 | +theorem angularJet_memLp_and_bound (hf : ContDiff ℝ ∞ f) (n : ℕ) | |
| 60 | + (hLp : MemLp (fun q => jetSeries P f q (n+1)) 2 (liftMeasure P)) : | |
| 61 | + MemLp (fieldDerivative P (0,1) (fun q => jetSeries P f q n)) 2 (liftMeasure P) ∧ | |
| 62 | + (eLpNorm (fieldDerivative P (0,1) (fun q => jetSeries P f q n)) 2 (liftMeasure P)).toReal ≤ | |
| 63 | + (eLpNorm (fun q => jetSeries P f q (n+1)) 2 (liftMeasure P)).toReal := by | |
| 64 | + have hc := smoothField_continuous P _ (fieldDerivative_smooth P (0,1) _ | |
| 65 | + (jetSeries_smooth P f hperiod hf n)) | |
| 66 | + have hb : ∀ᵐ q ∂liftMeasure P, | |
| 67 | + ‖fieldDerivative P (0,1) (fun x => jetSeries P f x n) q‖ ≤ ‖jetSeries P f q (n+1)‖ := | |
| 68 | + Eventually.of_forall (angularJet_bound P f hperiod n) | |
| 69 | + exact ⟨hLp.of_le hc.aestronglyMeasurable hb, | |
| 70 | + ENNReal.toReal_mono hLp.eLpNorm_ne_top (eLpNorm_mono_ae hb)⟩ | |
| 71 | + | |
| 72 | +variable [CompleteSpace W] | |
| 73 | + | |
| 74 | +theorem graph_norm_bound (g : LiftDomain P → W) | |
| 75 | + (hg : ∀ q, ContDiff ℝ ∞ (localFieldLift P g q)) | |
| 76 | + (hLp : MemLp g 2 (liftMeasure P)) | |
| 77 | + (hDLp : MemLp (fieldDerivative P (0,1) g) 2 (liftMeasure P)) | |
| 78 | + (θ : Vector3 → AddCircle P) (hθ : Continuous θ) (C D : ℝ) | |
| 79 | + (hC : 0 ≤ C) (hD : 0 ≤ D) | |
| 80 | + (hn : (eLpNorm g 2 (liftMeasure P)).toReal ≤ C) | |
| 81 | + (hd : (eLpNorm (fieldDerivative P (0,1) g) 2 (liftMeasure P)).toReal ≤ D) : | |
| 82 | + MemLp (fun x => g (x,θ x)) 2 volume ∧ | |
| 83 | + (eLpNorm (fun x => g (x,θ x)) 2 volume).toReal ≤ Real.sqrt (2/P+2*P)*(C+D) := by | |
| 84 | + obtain ⟨hgraph,he⟩ := graph_memLp_and_energy_bound P g hg hLp hDLp θ hθ | |
| 85 | + refine ⟨hgraph,?_⟩ | |
| 86 | + rw [EulerLpParameterIntegral.integral_norm_sq_eq volume _ hgraph, | |
| 87 | + EulerLpParameterIntegral.integral_norm_sq_eq (liftMeasure P) _ hLp, | |
| 88 | + EulerLpParameterIntegral.integral_norm_sq_eq (liftMeasure P) _ hDLp] at he | |
| 89 | + have hP : 0 < P := Fact.out | |
| 90 | + have hn' : (eLpNorm g 2 (liftMeasure P)).toReal^2 ≤ (C+D)^2 := | |
| 91 | + pow_le_pow_left₀ ENNReal.toReal_nonneg (hn.trans (le_add_of_nonneg_right hD)) 2 | |
| 92 | + have hd' : (eLpNorm (fieldDerivative P (0,1) g) 2 (liftMeasure P)).toReal^2 ≤ (C+D)^2 := | |
| 93 | + pow_le_pow_left₀ ENNReal.toReal_nonneg (hd.trans (le_add_of_nonneg_left hC)) 2 | |
| 94 | + apply (sq_le_sq₀ ENNReal.toReal_nonneg (mul_nonneg (Real.sqrt_nonneg _) (add_nonneg hC hD))).mp | |
| 95 | + calc | |
| 96 | + _ ≤ (2/P)*(eLpNorm g 2 (liftMeasure P)).toReal^2+ | |
| 97 | + (2*P)*(eLpNorm (fieldDerivative P (0,1) g) 2 (liftMeasure P)).toReal^2 := he | |
| 98 | + _ ≤ (2/P)*(C+D)^2+(2*P)*(C+D)^2 := | |
| 99 | + add_le_add (mul_le_mul_of_nonneg_left hn' (by positivity)) | |
| 100 | + (mul_le_mul_of_nonneg_left hd' (by positivity)) | |
| 101 | + _ = (Real.sqrt (2/P+2*P)*(C+D))^2 := by | |
| 102 | + rw [mul_pow,Real.sq_sqrt (by positivity)] | |
| 103 | + ring | |
| 104 | + | |
| 105 | +include hperiod in | |
| 106 | +theorem jet_graph_memLp_and_bound (hf : ContDiff ℝ ∞ f) (n : ℕ) | |
| 107 | + (hLp : MemLp (fun q => jetSeries P f q n) 2 (liftMeasure P)) | |
| 108 | + (hLp₁ : MemLp (fun q => jetSeries P f q (n+1)) 2 (liftMeasure P)) | |
| 109 | + (θ : Vector3 → AddCircle P) (hθ : Continuous θ) (C D : ℝ) | |
| 110 | + (hC : 0 ≤ C) (hD : 0 ≤ D) | |
| 111 | + (hn : (eLpNorm (fun q => jetSeries P f q n) 2 (liftMeasure P)).toReal ≤ C) | |
| 112 | + (hd : (eLpNorm (fun q => jetSeries P f q (n+1)) 2 (liftMeasure P)).toReal ≤ D) : | |
| 113 | + MemLp (fun x => jetSeries P f (x,θ x) n) 2 volume ∧ | |
| 114 | + (eLpNorm (fun x => jetSeries P f (x,θ x) n) 2 volume).toReal ≤ | |
| 115 | + Real.sqrt (2/P+2*P)*(C+D) := by | |
| 116 | + obtain ⟨hDLp,hDn⟩ := angularJet_memLp_and_bound P f hperiod hf n hLp₁ | |
| 117 | + exact graph_norm_bound P _ (jetSeries_smooth P f hperiod hf n) hLp hDLp θ hθ C D hC hD hn (hDn.trans hd) | |
| 118 | + | |
| 119 | +end EulerCylinderJetGraphTrace | |
| 120 | +end | |
| 121 | + | |
| 122 | +end | |
| 123 | + | |
| 9 | 124 | noncomputable section |
| 10 | 125 | |
| 11 | 126 | namespace EulerCylinderGraphGevrey |
+0 −98 Euler/CylinderHeatEquation.lean deleted
| @@ -1,98 +0,0 @@ | ||
| 1 | -import Euler.StrongOperatorDerivative | |
| 2 | -import Euler.MetricHeatEnergy | |
| 3 | - | |
| 4 | -/-! The genuine cylinder heat semigroup solves the Laplacian evolution equation. -/ | |
| 5 | - | |
| 6 | -noncomputable section | |
| 7 | - | |
| 8 | -namespace EulerGaussianCylinderHeat | |
| 9 | - | |
| 10 | -open MeasureTheory EulerLiftedGradientSpace EulerPressureSpatialRegularity EulerSpatialSobolevInverse | |
| 11 | - EulerCylinderSobolev EulerMetricHeatEnergy EulerStrongOperatorDerivative | |
| 12 | -open scoped ENNReal NNReal Topology | |
| 13 | - | |
| 14 | -variable (period : ℝ) [Fact (0 < period)] | |
| 15 | - | |
| 16 | -/-- The real extension of a finite commuting heat product. -/ | |
| 17 | -def realHeatList (directions : List LiftTangent) (t : ℝ) (f : LiftL2 period) : LiftL2 period := | |
| 18 | - match directions with | |
| 19 | - | [] => f | |
| 20 | - | a :: tail => realLineHeat period a t (realHeatList tail t f) | |
| 21 | - | |
| 22 | -theorem realLineHeat_add (a : LiftTangent) (t : ℝ) (f g : LiftL2 period) : | |
| 23 | - realLineHeat period a t (f+g) = realLineHeat period a t f + realLineHeat period a t g := by | |
| 24 | - simp only [realLineHeat_eq_toNNReal, lineHeat_add] | |
| 25 | - | |
| 26 | -theorem realLineHeat_smul (a : LiftTangent) (t c : ℝ) (f : LiftL2 period) : | |
| 27 | - realLineHeat period a t (c • f) = c • realLineHeat period a t f := by | |
| 28 | - simp only [realLineHeat_eq_toNNReal, lineHeat_smul] | |
| 29 | - | |
| 30 | -theorem realHeatList_add (directions : List LiftTangent) (t : ℝ) (f g : LiftL2 period) : | |
| 31 | - realHeatList period directions t (f+g) = realHeatList period directions t f + realHeatList period directions t g := by | |
| 32 | - induction directions with | |
| 33 | - | nil => rfl | |
| 34 | - | cons a tail ih => simp only [realHeatList, ih, realLineHeat_add] | |
| 35 | - | |
| 36 | -@[simp] theorem realHeatList_zero_field (directions : List LiftTangent) (t : ℝ) : | |
| 37 | - realHeatList period directions t 0 = 0 := by | |
| 38 | - induction directions with | |
| 39 | - | nil => rfl | |
| 40 | - | cons a tail ih => simp only [realHeatList, ih, realLineHeat_eq_toNNReal, ← lineHeatOperator_apply, map_zero] | |
| 41 | - | |
| 42 | -@[simp] theorem realHeatList_zero_time (directions : List LiftTangent) (f : LiftL2 period) : | |
| 43 | - realHeatList period directions 0 f = f := by | |
| 44 | - induction directions with | |
| 45 | - | nil => rfl | |
| 46 | - | cons a tail ih => simp only [realHeatList, realLineHeat_zero, ih] | |
| 47 | - | |
| 48 | -theorem realHeatList_eq_toNNReal (directions : List LiftTangent) (t : ℝ) (f : LiftL2 period) : | |
| 49 | - realHeatList period directions t f = heatList period directions t.toNNReal f := by | |
| 50 | - induction directions with | |
| 51 | - | nil => rfl | |
| 52 | - | cons a tail ih => | |
| 53 | - change realLineHeat period a t (realHeatList period tail t f) = | |
| 54 | - lineHeat period a t.toNNReal (heatList period tail t.toNNReal f) | |
| 55 | - rw [realLineHeat_eq_toNNReal, ih] | |
| 56 | - | |
| 57 | -/-- Every strong coordinate derivative commutes with every finite heat product. -/ | |
| 58 | -theorem realHeatList_strongDerivative (directions : List LiftTangent) (a : LiftTangent) (t : ℝ) | |
| 59 | - (f g : LiftL2 period) (hD : HasDerivAt (lineOrbit period a f) g 0) : | |
| 60 | - HasDerivAt (lineOrbit period a (realHeatList period directions t f)) | |
| 61 | - (realHeatList period directions t g) 0 := by | |
| 62 | - induction directions with | |
| 63 | - | nil => exact hD | |
| 64 | - | cons b tail ih => | |
| 65 | - simp only [realHeatList, realLineHeat_eq_toNNReal] | |
| 66 | - exact lineHeat_strongDerivative period b a t.toNNReal _ _ ih | |
| 67 | - | |
| 68 | -/-- The finite directional heat product has the sum of its actual second derivatives as generator. -/ | |
| 69 | -theorem realHeatList_generator_pos {ι : Type*} (indices : List ι) (direction : ι → LiftTangent) | |
| 70 | - (f : LiftL2 period) (df ddf : ι → LiftL2 period) | |
| 71 | - (hD : ∀ i ∈ indices, HasDerivAt (lineOrbit period (direction i) f) (df i) 0) | |
| 72 | - (hDD : ∀ i ∈ indices, HasDerivAt (lineOrbit period (direction i) (df i)) (ddf i) 0) | |
| 73 | - {t : ℝ} (ht : 0 < t) : | |
| 74 | - HasDerivAt (fun s => realHeatList period (indices.map direction) s f) | |
| 75 | - ((1/2 : ℝ) • realHeatList period (indices.map direction) t ((indices.map ddf).sum)) t := by | |
| 76 | - induction indices with | |
| 77 | - | nil => simpa only [List.map_nil, List.sum_nil, realHeatList, smul_zero] using hasDerivAt_const t f | |
| 78 | - | cons i tail ih => | |
| 79 | - have htailD := fun j hj => hD j (List.mem_cons_of_mem i hj) | |
| 80 | - have htailDD := fun j hj => hDD j (List.mem_cons_of_mem i hj) | |
| 81 | - have hinput := ih htailD htailDD | |
| 82 | - have hfirst := realHeatList_strongDerivative period (tail.map direction) (direction i) t f (df i) | |
| 83 | - (hD i (List.mem_cons_self ..)) | |
| 84 | - have hsecond := realHeatList_strongDerivative period (tail.map direction) (direction i) t (df i) (ddf i) | |
| 85 | - (hDD i (List.mem_cons_self ..)) | |
| 86 | - have h := realLineHeat_varying_input period (direction i) | |
| 87 | - (fun s => realHeatList period (tail.map direction) s f) t _ _ _ ht hinput hfirst hsecond | |
| 88 | - have halg : realLineHeat period (direction i) t | |
| 89 | - ((1/2 : ℝ) • realHeatList period (tail.map direction) t ((tail.map ddf).sum)) + | |
| 90 | - (1/2 : ℝ) • realLineHeat period (direction i) t (realHeatList period (tail.map direction) t (ddf i)) = | |
| 91 | - (1/2 : ℝ) • realHeatList period ((i::tail).map direction) t (((i::tail).map ddf).sum) := by | |
| 92 | - rw [realLineHeat_smul, ← smul_add, ← realLineHeat_add, ← realHeatList_add] | |
| 93 | - simp only [List.map_cons, List.sum_cons, realHeatList] | |
| 94 | - rw [add_comm ((tail.map ddf).sum)] | |
| 95 | - rw [halg] at h | |
| 96 | - exact h | |
| 97 | - | |
| 98 | -end EulerGaussianCylinderHeat | |
+107 −1 Euler/CylinderHeatLaplacian.lean View file
| @@ -1,7 +1,113 @@ | ||
| 1 | -import Euler.CylinderHeatEquation | |
| 1 | +import Euler.StrongOperatorDerivative | |
| 2 | +import Euler.MetricHeatEnergy | |
| 2 | 3 | |
| 3 | 4 | /-! Exact identification of the Gaussian cylinder generator with the actual strong-jet Laplacian. -/ |
| 4 | 5 | |
| 6 | +/-! ## From `Euler/CylinderHeatEquation.lean` | |
| 7 | + | |
| 8 | +The text of `Euler/CylinderHeatEquation.lean`, folded into this file, which was its only importer. -/ | |
| 9 | + | |
| 10 | +section | |
| 11 | + | |
| 12 | +/-! The genuine cylinder heat semigroup solves the Laplacian evolution equation. -/ | |
| 13 | + | |
| 14 | +noncomputable section | |
| 15 | + | |
| 16 | +namespace EulerGaussianCylinderHeat | |
| 17 | + | |
| 18 | +open MeasureTheory EulerLiftedGradientSpace EulerPressureSpatialRegularity EulerSpatialSobolevInverse | |
| 19 | + EulerCylinderSobolev EulerMetricHeatEnergy EulerStrongOperatorDerivative | |
| 20 | +open scoped ENNReal NNReal Topology | |
| 21 | + | |
| 22 | +variable (period : ℝ) [Fact (0 < period)] | |
| 23 | + | |
| 24 | +/-- The real extension of a finite commuting heat product. -/ | |
| 25 | +def realHeatList (directions : List LiftTangent) (t : ℝ) (f : LiftL2 period) : LiftL2 period := | |
| 26 | + match directions with | |
| 27 | + | [] => f | |
| 28 | + | a :: tail => realLineHeat period a t (realHeatList tail t f) | |
| 29 | + | |
| 30 | +theorem realLineHeat_add (a : LiftTangent) (t : ℝ) (f g : LiftL2 period) : | |
| 31 | + realLineHeat period a t (f+g) = realLineHeat period a t f + realLineHeat period a t g := by | |
| 32 | + simp only [realLineHeat_eq_toNNReal, lineHeat_add] | |
| 33 | + | |
| 34 | +theorem realLineHeat_smul (a : LiftTangent) (t c : ℝ) (f : LiftL2 period) : | |
| 35 | + realLineHeat period a t (c • f) = c • realLineHeat period a t f := by | |
| 36 | + simp only [realLineHeat_eq_toNNReal, lineHeat_smul] | |
| 37 | + | |
| 38 | +theorem realHeatList_add (directions : List LiftTangent) (t : ℝ) (f g : LiftL2 period) : | |
| 39 | + realHeatList period directions t (f+g) = realHeatList period directions t f + realHeatList period directions t g := by | |
| 40 | + induction directions with | |
| 41 | + | nil => rfl | |
| 42 | + | cons a tail ih => simp only [realHeatList, ih, realLineHeat_add] | |
| 43 | + | |
| 44 | +@[simp] theorem realHeatList_zero_field (directions : List LiftTangent) (t : ℝ) : | |
| 45 | + realHeatList period directions t 0 = 0 := by | |
| 46 | + induction directions with | |
| 47 | + | nil => rfl | |
| 48 | + | cons a tail ih => simp only [realHeatList, ih, realLineHeat_eq_toNNReal, ← lineHeatOperator_apply, map_zero] | |
| 49 | + | |
| 50 | +@[simp] theorem realHeatList_zero_time (directions : List LiftTangent) (f : LiftL2 period) : | |
| 51 | + realHeatList period directions 0 f = f := by | |
| 52 | + induction directions with | |
| 53 | + | nil => rfl | |
| 54 | + | cons a tail ih => simp only [realHeatList, realLineHeat_zero, ih] | |
| 55 | + | |
| 56 | +theorem realHeatList_eq_toNNReal (directions : List LiftTangent) (t : ℝ) (f : LiftL2 period) : | |
| 57 | + realHeatList period directions t f = heatList period directions t.toNNReal f := by | |
| 58 | + induction directions with | |
| 59 | + | nil => rfl | |
| 60 | + | cons a tail ih => | |
| 61 | + change realLineHeat period a t (realHeatList period tail t f) = | |
| 62 | + lineHeat period a t.toNNReal (heatList period tail t.toNNReal f) | |
| 63 | + rw [realLineHeat_eq_toNNReal, ih] | |
| 64 | + | |
| 65 | +/-- Every strong coordinate derivative commutes with every finite heat product. -/ | |
| 66 | +theorem realHeatList_strongDerivative (directions : List LiftTangent) (a : LiftTangent) (t : ℝ) | |
| 67 | + (f g : LiftL2 period) (hD : HasDerivAt (lineOrbit period a f) g 0) : | |
| 68 | + HasDerivAt (lineOrbit period a (realHeatList period directions t f)) | |
| 69 | + (realHeatList period directions t g) 0 := by | |
| 70 | + induction directions with | |
| 71 | + | nil => exact hD | |
| 72 | + | cons b tail ih => | |
| 73 | + simp only [realHeatList, realLineHeat_eq_toNNReal] | |
| 74 | + exact lineHeat_strongDerivative period b a t.toNNReal _ _ ih | |
| 75 | + | |
| 76 | +/-- The finite directional heat product has the sum of its actual second derivatives as generator. -/ | |
| 77 | +theorem realHeatList_generator_pos {ι : Type*} (indices : List ι) (direction : ι → LiftTangent) | |
| 78 | + (f : LiftL2 period) (df ddf : ι → LiftL2 period) | |
| 79 | + (hD : ∀ i ∈ indices, HasDerivAt (lineOrbit period (direction i) f) (df i) 0) | |
| 80 | + (hDD : ∀ i ∈ indices, HasDerivAt (lineOrbit period (direction i) (df i)) (ddf i) 0) | |
| 81 | + {t : ℝ} (ht : 0 < t) : | |
| 82 | + HasDerivAt (fun s => realHeatList period (indices.map direction) s f) | |
| 83 | + ((1/2 : ℝ) • realHeatList period (indices.map direction) t ((indices.map ddf).sum)) t := by | |
| 84 | + induction indices with | |
| 85 | + | nil => simpa only [List.map_nil, List.sum_nil, realHeatList, smul_zero] using hasDerivAt_const t f | |
| 86 | + | cons i tail ih => | |
| 87 | + have htailD := fun j hj => hD j (List.mem_cons_of_mem i hj) | |
| 88 | + have htailDD := fun j hj => hDD j (List.mem_cons_of_mem i hj) | |
| 89 | + have hinput := ih htailD htailDD | |
| 90 | + have hfirst := realHeatList_strongDerivative period (tail.map direction) (direction i) t f (df i) | |
| 91 | + (hD i (List.mem_cons_self ..)) | |
| 92 | + have hsecond := realHeatList_strongDerivative period (tail.map direction) (direction i) t (df i) (ddf i) | |
| 93 | + (hDD i (List.mem_cons_self ..)) | |
| 94 | + have h := realLineHeat_varying_input period (direction i) | |
| 95 | + (fun s => realHeatList period (tail.map direction) s f) t _ _ _ ht hinput hfirst hsecond | |
| 96 | + have halg : realLineHeat period (direction i) t | |
| 97 | + ((1/2 : ℝ) • realHeatList period (tail.map direction) t ((tail.map ddf).sum)) + | |
| 98 | + (1/2 : ℝ) • realLineHeat period (direction i) t (realHeatList period (tail.map direction) t (ddf i)) = | |
| 99 | + (1/2 : ℝ) • realHeatList period ((i::tail).map direction) t (((i::tail).map ddf).sum) := by | |
| 100 | + rw [realLineHeat_smul, ← smul_add, ← realLineHeat_add, ← realHeatList_add] | |
| 101 | + simp only [List.map_cons, List.sum_cons, realHeatList] | |
| 102 | + rw [add_comm ((tail.map ddf).sum)] | |
| 103 | + rw [halg] at h | |
| 104 | + exact h | |
| 105 | + | |
| 106 | +end EulerGaussianCylinderHeat | |
| 107 | +end | |
| 108 | + | |
| 109 | +end | |
| 110 | + | |
| 5 | 111 | noncomputable section |
| 6 | 112 | |
| 7 | 113 | namespace EulerGaussianCylinderHeat |
+0 −107 Euler/CylinderJetGraphTrace.lean deleted
| @@ -1,107 +0,0 @@ | ||
| 1 | -import Euler.CylinderDescentJets | |
| 2 | -import Euler.LpParameterIntegral | |
| 3 | - | |
| 4 | -/-! A phase-independent L² trace estimate for actual descended tensors. | |
| 5 | -One extra angular derivative suffices, and its norm is controlled by | |
| 6 | -the next actual cover tensor. -/ | |
| 7 | - | |
| 8 | -noncomputable section | |
| 9 | - | |
| 10 | -namespace EulerCylinderJetGraphTrace | |
| 11 | - | |
| 12 | -open Set MeasureTheory Filter EulerLiftedGradientSpace EulerCylinderCoverDescent | |
| 13 | - EulerMetricTransport EulerTransportDerivatives EulerCylinderGraphTrace | |
| 14 | -open scoped ContDiff | |
| 15 | - | |
| 16 | -variable (P : ℝ) [Fact (0 < P)] | |
| 17 | - {W : Type*} [NormedAddCommGroup W] [NormedSpace ℝ W] | |
| 18 | - (f : LiftTangent → W) | |
| 19 | - (hperiod : ∀ (c : AddSubgroup.zmultiples P) z, f (z.1,(c : ℝ)+z.2)=f z) | |
| 20 | - | |
| 21 | -include hperiod in | |
| 22 | -theorem fieldDerivative_descend (a : LiftTangent) (q : LiftDomain P) : | |
| 23 | - fieldDerivative P a (descend P f) q = fderiv ℝ f (sectionPoint P q) a := by | |
| 24 | - have he := localFieldLift_descend_cover P f hperiod (sectionPoint P q) | |
| 25 | - rw [coveringMap_sectionPoint] at he | |
| 26 | - change fderiv ℝ (localFieldLift P (descend P f) q) 0 a = _ | |
| 27 | - rw [he,fderiv_comp_add_left,add_zero] | |
| 28 | - | |
| 29 | -include hperiod in | |
| 30 | -theorem jetSeries_smooth (hf : ContDiff ℝ ∞ f) (n : ℕ) (q : LiftDomain P) : | |
| 31 | - ContDiff ℝ ∞ (localFieldLift P (fun x => jetSeries P f x n) q) := | |
| 32 | - descend_smooth P (iteratedFDeriv ℝ n f) (iteratedFDeriv_deck P f hperiod n) | |
| 33 | - (hf.iteratedFDeriv_right (m := ∞) (by simp)) q | |
| 34 | - | |
| 35 | -include hperiod in | |
| 36 | -theorem angularJet_bound (n : ℕ) (q : LiftDomain P) : | |
| 37 | - ‖fieldDerivative P (0,1) (fun x => jetSeries P f x n) q‖ ≤ ‖jetSeries P f q (n+1)‖ := by | |
| 38 | - change ‖fieldDerivative P (0,1) (descend P (iteratedFDeriv ℝ n f)) q‖ ≤ _ | |
| 39 | - rw [fieldDerivative_descend P (iteratedFDeriv ℝ n f) (iteratedFDeriv_deck P f hperiod n)] | |
| 40 | - change ‖fderiv ℝ (iteratedFDeriv ℝ n f) (sectionPoint P q) (0,1)‖ ≤ | |
| 41 | - ‖iteratedFDeriv ℝ (n+1) f (sectionPoint P q)‖ | |
| 42 | - have h := (fderiv ℝ (iteratedFDeriv ℝ n f) (sectionPoint P q)).le_opNorm (0,1) | |
| 43 | - simpa only [norm_fderiv_iteratedFDeriv,Prod.norm_def,norm_zero,norm_one, | |
| 44 | - max_eq_right (by norm_num : (0 : ℝ) ≤ 1),mul_one] using h | |
| 45 | - | |
| 46 | -include hperiod in | |
| 47 | -theorem angularJet_memLp_and_bound (hf : ContDiff ℝ ∞ f) (n : ℕ) | |
| 48 | - (hLp : MemLp (fun q => jetSeries P f q (n+1)) 2 (liftMeasure P)) : | |
| 49 | - MemLp (fieldDerivative P (0,1) (fun q => jetSeries P f q n)) 2 (liftMeasure P) ∧ | |
| 50 | - (eLpNorm (fieldDerivative P (0,1) (fun q => jetSeries P f q n)) 2 (liftMeasure P)).toReal ≤ | |
| 51 | - (eLpNorm (fun q => jetSeries P f q (n+1)) 2 (liftMeasure P)).toReal := by | |
| 52 | - have hc := smoothField_continuous P _ (fieldDerivative_smooth P (0,1) _ | |
| 53 | - (jetSeries_smooth P f hperiod hf n)) | |
| 54 | - have hb : ∀ᵐ q ∂liftMeasure P, | |
| 55 | - ‖fieldDerivative P (0,1) (fun x => jetSeries P f x n) q‖ ≤ ‖jetSeries P f q (n+1)‖ := | |
| 56 | - Eventually.of_forall (angularJet_bound P f hperiod n) | |
| 57 | - exact ⟨hLp.of_le hc.aestronglyMeasurable hb, | |
| 58 | - ENNReal.toReal_mono hLp.eLpNorm_ne_top (eLpNorm_mono_ae hb)⟩ | |
| 59 | - | |
| 60 | -variable [CompleteSpace W] | |
| 61 | - | |
| 62 | -theorem graph_norm_bound (g : LiftDomain P → W) | |
| 63 | - (hg : ∀ q, ContDiff ℝ ∞ (localFieldLift P g q)) | |
| 64 | - (hLp : MemLp g 2 (liftMeasure P)) | |
| 65 | - (hDLp : MemLp (fieldDerivative P (0,1) g) 2 (liftMeasure P)) | |
| 66 | - (θ : Vector3 → AddCircle P) (hθ : Continuous θ) (C D : ℝ) | |
| 67 | - (hC : 0 ≤ C) (hD : 0 ≤ D) | |
| 68 | - (hn : (eLpNorm g 2 (liftMeasure P)).toReal ≤ C) | |
| 69 | - (hd : (eLpNorm (fieldDerivative P (0,1) g) 2 (liftMeasure P)).toReal ≤ D) : | |
| 70 | - MemLp (fun x => g (x,θ x)) 2 volume ∧ | |
| 71 | - (eLpNorm (fun x => g (x,θ x)) 2 volume).toReal ≤ Real.sqrt (2/P+2*P)*(C+D) := by | |
| 72 | - obtain ⟨hgraph,he⟩ := graph_memLp_and_energy_bound P g hg hLp hDLp θ hθ | |
| 73 | - refine ⟨hgraph,?_⟩ | |
| 74 | - rw [EulerLpParameterIntegral.integral_norm_sq_eq volume _ hgraph, | |
| 75 | - EulerLpParameterIntegral.integral_norm_sq_eq (liftMeasure P) _ hLp, | |
| 76 | - EulerLpParameterIntegral.integral_norm_sq_eq (liftMeasure P) _ hDLp] at he | |
| 77 | - have hP : 0 < P := Fact.out | |
| 78 | - have hn' : (eLpNorm g 2 (liftMeasure P)).toReal^2 ≤ (C+D)^2 := | |
| 79 | - pow_le_pow_left₀ ENNReal.toReal_nonneg (hn.trans (le_add_of_nonneg_right hD)) 2 | |
| 80 | - have hd' : (eLpNorm (fieldDerivative P (0,1) g) 2 (liftMeasure P)).toReal^2 ≤ (C+D)^2 := | |
| 81 | - pow_le_pow_left₀ ENNReal.toReal_nonneg (hd.trans (le_add_of_nonneg_left hC)) 2 | |
| 82 | - apply (sq_le_sq₀ ENNReal.toReal_nonneg (mul_nonneg (Real.sqrt_nonneg _) (add_nonneg hC hD))).mp | |
| 83 | - calc | |
| 84 | - _ ≤ (2/P)*(eLpNorm g 2 (liftMeasure P)).toReal^2+ | |
| 85 | - (2*P)*(eLpNorm (fieldDerivative P (0,1) g) 2 (liftMeasure P)).toReal^2 := he | |
| 86 | - _ ≤ (2/P)*(C+D)^2+(2*P)*(C+D)^2 := | |
| 87 | - add_le_add (mul_le_mul_of_nonneg_left hn' (by positivity)) | |
| 88 | - (mul_le_mul_of_nonneg_left hd' (by positivity)) | |
| 89 | - _ = (Real.sqrt (2/P+2*P)*(C+D))^2 := by | |
| 90 | - rw [mul_pow,Real.sq_sqrt (by positivity)] | |
| 91 | - ring | |
| 92 | - | |
| 93 | -include hperiod in | |
| 94 | -theorem jet_graph_memLp_and_bound (hf : ContDiff ℝ ∞ f) (n : ℕ) | |
| 95 | - (hLp : MemLp (fun q => jetSeries P f q n) 2 (liftMeasure P)) | |
| 96 | - (hLp₁ : MemLp (fun q => jetSeries P f q (n+1)) 2 (liftMeasure P)) | |
| 97 | - (θ : Vector3 → AddCircle P) (hθ : Continuous θ) (C D : ℝ) | |
| 98 | - (hC : 0 ≤ C) (hD : 0 ≤ D) | |
| 99 | - (hn : (eLpNorm (fun q => jetSeries P f q n) 2 (liftMeasure P)).toReal ≤ C) | |
| 100 | - (hd : (eLpNorm (fun q => jetSeries P f q (n+1)) 2 (liftMeasure P)).toReal ≤ D) : | |
| 101 | - MemLp (fun x => jetSeries P f (x,θ x) n) 2 volume ∧ | |
| 102 | - (eLpNorm (fun x => jetSeries P f (x,θ x) n) 2 volume).toReal ≤ | |
| 103 | - Real.sqrt (2/P+2*P)*(C+D) := by | |
| 104 | - obtain ⟨hDLp,hDn⟩ := angularJet_memLp_and_bound P f hperiod hf n hLp₁ | |
| 105 | - exact graph_norm_bound P _ (jetSeries_smooth P f hperiod hf n) hLp hDLp θ hθ C D hC hD hn (hDn.trans hd) | |
| 106 | - | |
| 107 | -end EulerCylinderJetGraphTrace | |
+0 −112 Euler/CylinderMeasureDescent.lean deleted
| @@ -1,112 +0,0 @@ | ||
| 1 | -import Euler.EulerProof | |
| 2 | -import Mathlib.MeasureTheory.Group.FundamentalDomain | |
| 3 | -import Mathlib.MeasureTheory.Integral.IntervalIntegral.Periodic | |
| 4 | - | |
| 5 | -/-! A volume-preserving map of the real cylinder cover which commutes | |
| 6 | -with deck translations induces a measure-preserving cylinder map. The | |
| 7 | -proof compares genuine fundamental domains; it does not integrate a | |
| 8 | -nonzero periodic function over the whole real cover. -/ | |
| 9 | - | |
| 10 | -noncomputable section | |
| 11 | - | |
| 12 | -namespace EulerCylinderMeasureDescent | |
| 13 | - | |
| 14 | -open Set Function MeasureTheory EulerLiftedGradientSpace | |
| 15 | -open scoped Pointwise | |
| 16 | - | |
| 17 | -variable (P : ℝ) [Fact (0 < P)] | |
| 18 | - | |
| 19 | -local instance (priority := 2000) deckVAdd : VAdd (AddSubgroup.zmultiples P) LiftTangent where | |
| 20 | - vadd c z := (z.1,(c : ℝ)+z.2) | |
| 21 | - | |
| 22 | -local instance deckAction : AddAction (AddSubgroup.zmultiples P) LiftTangent where | |
| 23 | - vadd := (· +ᵥ ·) | |
| 24 | - zero_vadd z := by | |
| 25 | - change (z.1,(0 : ℝ)+z.2)=z | |
| 26 | - simp | |
| 27 | - add_vadd c d z := by | |
| 28 | - change (z.1,((c : ℝ)+(d : ℝ))+z.2) = (z.1,(c : ℝ)+((d : ℝ)+z.2)) | |
| 29 | - rw [add_assoc] | |
| 30 | - | |
| 31 | -omit [Fact (0 < P)] in | |
| 32 | -theorem deck_apply (c : AddSubgroup.zmultiples P) (z : LiftTangent) : | |
| 33 | - c +ᵥ z = (z.1,(c : ℝ)+z.2) := rfl | |
| 34 | - | |
| 35 | -local instance deckMeasurable : MeasurableConstVAdd (AddSubgroup.zmultiples P) LiftTangent where | |
| 36 | - measurable_const_vadd _c := measurable_fst.prodMk (measurable_const.add measurable_snd) | |
| 37 | - | |
| 38 | -local instance deckInvariant : VAddInvariantMeasure (AddSubgroup.zmultiples P) LiftTangent volume where | |
| 39 | - measure_preimage_vadd c s hs := by | |
| 40 | - have hp := (MeasurePreserving.id (volume : Measure Vector3)).prod | |
| 41 | - (measurePreserving_add_left (volume : Measure ℝ) (c : ℝ)) | |
| 42 | - exact hp.measure_preimage hs.nullMeasurableSet | |
| 43 | - | |
| 44 | -omit [Fact (0 < P)] in | |
| 45 | -theorem coveringMap_deck (c : AddSubgroup.zmultiples P) (z : LiftTangent) : | |
| 46 | - coveringMap P (c +ᵥ z) = coveringMap P z := by | |
| 47 | - have hc : ((c : ℝ) : AddCircle P)=0 := (QuotientAddGroup.eq_zero_iff _).2 c.property | |
| 48 | - simp only [deck_apply,coveringMap,AddCircle.coe_add,hc,zero_add] | |
| 49 | - | |
| 50 | -def strip : Set LiftTangent := Prod.snd ⁻¹' Ioc (0 : ℝ) P | |
| 51 | - | |
| 52 | -omit [Fact (0 < P)] in | |
| 53 | -theorem strip_measurable : MeasurableSet (strip P) := measurable_snd measurableSet_Ioc | |
| 54 | - | |
| 55 | -theorem strip_fundamental : IsAddFundamentalDomain (AddSubgroup.zmultiples P) (strip P) volume := by | |
| 56 | - have h := (isAddFundamentalDomain_Ioc (Fact.out : 0 < P) 0).preimage_of_equiv | |
| 57 | - (G := AddSubgroup.zmultiples P) (H := AddSubgroup.zmultiples P) | |
| 58 | - (f := (Prod.snd : LiftTangent → ℝ)) | |
| 59 | - (Measure.quasiMeasurePreserving_snd (μ := (volume : Measure Vector3)) (ν := volume)) | |
| 60 | - (e := id) Function.bijective_id (fun _ _ => rfl) | |
| 61 | - convert! h using 1 | |
| 62 | - simp only [zero_add,strip] | |
| 63 | - | |
| 64 | -theorem coveringMap_measurePreserving : | |
| 65 | - MeasurePreserving (coveringMap P) (volume.restrict (strip P)) (liftMeasure P) := by | |
| 66 | - have hm : (volume : Measure LiftTangent).restrict (strip P) = | |
| 67 | - (volume : Measure Vector3).prod ((volume : Measure ℝ).restrict (Ioc (0 : ℝ) P)) := by | |
| 68 | - change (volume.prod volume).restrict (Prod.snd ⁻¹' Ioc (0 : ℝ) P) = _ | |
| 69 | - rw [← univ_prod,← Measure.prod_restrict,Measure.restrict_univ] | |
| 70 | - rw [hm] | |
| 71 | - have hp := (MeasurePreserving.id (volume : Measure Vector3)).prod (AddCircle.measurePreserving_mk P 0) | |
| 72 | - simp only [zero_add] at hp | |
| 73 | - convert! hp using 1 | |
| 74 | - | |
| 75 | -theorem quotient_set_measure (s : Set (LiftDomain P)) (hs : MeasurableSet s) : | |
| 76 | - liftMeasure P s = volume (coveringMap P ⁻¹' s ∩ strip P) := by | |
| 77 | - have h := (coveringMap_measurePreserving P).measure_preimage hs.nullMeasurableSet | |
| 78 | - rw [Measure.restrict_apply ((coveringMap_measurePreserving P).measurable hs)] at h | |
| 79 | - exact h.symm | |
| 80 | - | |
| 81 | -theorem measurePreserving_of_cover | |
| 82 | - (f : LiftTangent → LiftTangent) (g : LiftDomain P → LiftDomain P) | |
| 83 | - (hf : MeasurePreserving f volume volume) (hg : Measurable g) | |
| 84 | - (hdeck : ∀ (c : AddSubgroup.zmultiples P) z, | |
| 85 | - f (z.1,(c : ℝ)+z.2) = ((f z).1,(c : ℝ)+(f z).2)) | |
| 86 | - (hcover : ∀ z, coveringMap P (f z)=g (coveringMap P z)) : | |
| 87 | - MeasurePreserving g (liftMeasure P) (liftMeasure P) := by | |
| 88 | - have hequiv (c : AddSubgroup.zmultiples P) : Semiconj f (c +ᵥ ·) (c +ᵥ ·) := hdeck c | |
| 89 | - have hfd := strip_fundamental P | |
| 90 | - have hfd' : IsAddFundamentalDomain (AddSubgroup.zmultiples P) (f ⁻¹' strip P) volume := | |
| 91 | - hfd.preimage_of_equiv hf.quasiMeasurePreserving (e := id) Function.bijective_id hequiv | |
| 92 | - refine ⟨hg,?_⟩ | |
| 93 | - ext s hs | |
| 94 | - rw [Measure.map_apply hg hs,quotient_set_measure P (g ⁻¹' s) (hg hs),quotient_set_measure P s hs] | |
| 95 | - have hset : coveringMap P ⁻¹' (g ⁻¹' s) = f ⁻¹' (coveringMap P ⁻¹' s) := by | |
| 96 | - ext z | |
| 97 | - simp only [mem_preimage,hcover] | |
| 98 | - rw [hset] | |
| 99 | - have hA : MeasurableSet (coveringMap P ⁻¹' s) := (coveringMap_measurePreserving P).measurable hs | |
| 100 | - calc | |
| 101 | - volume (f ⁻¹' (coveringMap P ⁻¹' s) ∩ strip P) = | |
| 102 | - volume (f ⁻¹' (coveringMap P ⁻¹' s) ∩ f ⁻¹' strip P) := by | |
| 103 | - apply hfd.measure_set_eq hfd' (hf.measurable hA) | |
| 104 | - intro c | |
| 105 | - ext z | |
| 106 | - change coveringMap P (f (c +ᵥ z)) ∈ s ↔ coveringMap P (f z) ∈ s | |
| 107 | - rw [hequiv c z,coveringMap_deck] | |
| 108 | - _ = volume (f ⁻¹' ((coveringMap P ⁻¹' s) ∩ strip P)) := by rw [preimage_inter] | |
| 109 | - _ = volume ((coveringMap P ⁻¹' s) ∩ strip P) := | |
| 110 | - hf.measure_preimage (hA.inter (strip_measurable P)).nullMeasurableSet | |
| 111 | - | |
| 112 | -end EulerCylinderMeasureDescent | |
+67 −1 Euler/CylinderPathAdvection.lean View file
| @@ -1,10 +1,76 @@ | ||
| 1 | 1 | import Euler.CylinderPathBilinear |
| 2 | -import Euler.CylinderPathDerivativeProduct | |
| 2 | +import Euler.CylinderPathProductBounds | |
| 3 | 3 | import Euler.CylinderTimeGradient |
| 4 | 4 | import Euler.ParameterSobolevFiniteSum |
| 5 | 5 | |
| 6 | 6 | /-! Literal spatial advection of smooth continuous cylinder paths, with unchanged word radius. -/ |
| 7 | 7 | |
| 8 | +/-! ## From `Euler/CylinderPathDerivativeProduct.lean` | |
| 9 | + | |
| 10 | +The text of `Euler/CylinderPathDerivativeProduct.lean`, folded into this file, which was its only importer. -/ | |
| 11 | + | |
| 12 | +section | |
| 13 | + | |
| 14 | +/-! A literal product with one mixed cylinder derivative consumes exactly one shift. -/ | |
| 15 | + | |
| 16 | +noncomputable section | |
| 17 | + | |
| 18 | +namespace EulerCylinderPathProduct | |
| 19 | + | |
| 20 | +open Set MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace | |
| 21 | + EulerCylinderSmoothOrbit EulerLpCylinderTranslation EulerCylinderSobolev | |
| 22 | + EulerParameterWordGevrey EulerGevrey EulerMetricTransport EulerLiftedWeakDerivative | |
| 23 | +open scoped ContDiff | |
| 24 | + | |
| 25 | +variable (P : ℝ) [Fact (0 < P)] {K : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 26 | + (L : Space →L[ℝ] ℝ) (hL : ‖L‖ ≤ 1) (p q : C(K,LiftL2 P)) | |
| 27 | + (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) | |
| 28 | + (hq : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a q)) | |
| 29 | + (i : Fin 4) | |
| 30 | + | |
| 31 | +/-- The continuous L² path for one factor times an actual spatial or angular derivative. -/ | |
| 32 | +def scalarDerivativeProductPath : C(K,LiftL2 P) := | |
| 33 | + scalarProductPath P L hL p (derivativePath P q i) hp (derivativePath_orbit P q hq i) | |
| 34 | + | |
| 35 | +theorem scalarDerivativeProductPath_orbit : | |
| 36 | + ContDiff ℝ ∞ (fun a : LiftTangent => | |
| 37 | + pathTranslate P a (scalarDerivativeProductPath P L hL p q hp hq i)) := | |
| 38 | + scalarProductPath_orbit P L hL p (derivativePath P q i) hp (derivativePath_orbit P q hq i) | |
| 39 | + | |
| 40 | +theorem pointField_scalarDerivativeProductPath (t : K) (x : LiftDomain P) : | |
| 41 | + pointField P (scalarDerivativeProductPath P L hL p q hp hq i) | |
| 42 | + (scalarDerivativeProductPath_orbit P L hL p q hp hq i) t x = | |
| 43 | + L (pointField P p hp t x) • | |
| 44 | + fieldFDeriv P (pointField P q hq t) x (standardDirection i) := by | |
| 45 | + have h := pointField_scalarProductPath P L hL p (derivativePath P q i) | |
| 46 | + hp (derivativePath_orbit P q hq i) t x | |
| 47 | + rw [pointField_derivativePath P q hq] at h | |
| 48 | + exact h | |
| 49 | + | |
| 50 | +/-- Fixed-H6 external word bounds preserve the same radius, with one derivative shift. -/ | |
| 51 | +theorem scalarDerivativeProductPath_majorant (R A C : ℝ) | |
| 52 | + (hR : 0 ≤ R) (hA : 0 ≤ A) (hC : 0 ≤ C) (d e : ℕ) (a : LiftTangent) | |
| 53 | + (hb : ∀ n, block standardDirection 6 (fun b : LiftTangent => pathTranslate P b p) n a ≤ | |
| 54 | + A*majorant R d n) | |
| 55 | + (hc : ∀ n, block standardDirection 6 (fun b : LiftTangent => pathTranslate P b q) n a ≤ | |
| 56 | + C*majorant R e n) (n : ℕ) : | |
| 57 | + block standardDirection 6 (fun b : LiftTangent => | |
| 58 | + pathTranslate P b (scalarDerivativeProductPath P L hL p q hp hq i)) n a ≤ | |
| 59 | + (3*productBlockConstant P*A*C)*majorant R (d+e+1) n := by | |
| 60 | + have hd (j : ℕ) : block standardDirection 6 | |
| 61 | + (fun b : LiftTangent => pathTranslate P b (derivativePath P q i)) j a ≤ | |
| 62 | + C*majorant R (e+1) j := by | |
| 63 | + have h := (derivativePath_block_bound P q hq i 6 j a).trans (hc (j+1)) | |
| 64 | + simpa only [majorant, show j+1+e=j+(e+1) by omega] using h | |
| 65 | + simpa only [scalarDerivativeProductPath, Nat.add_assoc] using | |
| 66 | + scalarProductPath_majorant P L hL p (derivativePath P q i) | |
| 67 | + hp (derivativePath_orbit P q hq i) R A C hR hA hC d (e+1) a hb hd n | |
| 68 | + | |
| 69 | +end EulerCylinderPathProduct | |
| 70 | +end | |
| 71 | + | |
| 72 | +end | |
| 73 | + | |
| 8 | 74 | noncomputable section |
| 9 | 75 | |
| 10 | 76 | namespace EulerCylinderPathProduct |
+0 −58 Euler/CylinderPathDerivativeProduct.lean deleted
| @@ -1,58 +0,0 @@ | ||
| 1 | -import Euler.CylinderPathProductBounds | |
| 2 | - | |
| 3 | -/-! A literal product with one mixed cylinder derivative consumes exactly one shift. -/ | |
| 4 | - | |
| 5 | -noncomputable section | |
| 6 | - | |
| 7 | -namespace EulerCylinderPathProduct | |
| 8 | - | |
| 9 | -open Set MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace | |
| 10 | - EulerCylinderSmoothOrbit EulerLpCylinderTranslation EulerCylinderSobolev | |
| 11 | - EulerParameterWordGevrey EulerGevrey EulerMetricTransport EulerLiftedWeakDerivative | |
| 12 | -open scoped ContDiff | |
| 13 | - | |
| 14 | -variable (P : ℝ) [Fact (0 < P)] {K : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 15 | - (L : Space →L[ℝ] ℝ) (hL : ‖L‖ ≤ 1) (p q : C(K,LiftL2 P)) | |
| 16 | - (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) | |
| 17 | - (hq : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a q)) | |
| 18 | - (i : Fin 4) | |
| 19 | - | |
| 20 | -/-- The continuous L² path for one factor times an actual spatial or angular derivative. -/ | |
| 21 | -def scalarDerivativeProductPath : C(K,LiftL2 P) := | |
| 22 | - scalarProductPath P L hL p (derivativePath P q i) hp (derivativePath_orbit P q hq i) | |
| 23 | - | |
| 24 | -theorem scalarDerivativeProductPath_orbit : | |
| 25 | - ContDiff ℝ ∞ (fun a : LiftTangent => | |
| 26 | - pathTranslate P a (scalarDerivativeProductPath P L hL p q hp hq i)) := | |
| 27 | - scalarProductPath_orbit P L hL p (derivativePath P q i) hp (derivativePath_orbit P q hq i) | |
| 28 | - | |
| 29 | -theorem pointField_scalarDerivativeProductPath (t : K) (x : LiftDomain P) : | |
| 30 | - pointField P (scalarDerivativeProductPath P L hL p q hp hq i) | |
| 31 | - (scalarDerivativeProductPath_orbit P L hL p q hp hq i) t x = | |
| 32 | - L (pointField P p hp t x) • | |
| 33 | - fieldFDeriv P (pointField P q hq t) x (standardDirection i) := by | |
| 34 | - have h := pointField_scalarProductPath P L hL p (derivativePath P q i) | |
| 35 | - hp (derivativePath_orbit P q hq i) t x | |
| 36 | - rw [pointField_derivativePath P q hq] at h | |
| 37 | - exact h | |
| 38 | - | |
| 39 | -/-- Fixed-H6 external word bounds preserve the same radius, with one derivative shift. -/ | |
| 40 | -theorem scalarDerivativeProductPath_majorant (R A C : ℝ) | |
| 41 | - (hR : 0 ≤ R) (hA : 0 ≤ A) (hC : 0 ≤ C) (d e : ℕ) (a : LiftTangent) | |
| 42 | - (hb : ∀ n, block standardDirection 6 (fun b : LiftTangent => pathTranslate P b p) n a ≤ | |
| 43 | - A*majorant R d n) | |
| 44 | - (hc : ∀ n, block standardDirection 6 (fun b : LiftTangent => pathTranslate P b q) n a ≤ | |
| 45 | - C*majorant R e n) (n : ℕ) : | |
| 46 | - block standardDirection 6 (fun b : LiftTangent => | |
| 47 | - pathTranslate P b (scalarDerivativeProductPath P L hL p q hp hq i)) n a ≤ | |
| 48 | - (3*productBlockConstant P*A*C)*majorant R (d+e+1) n := by | |
| 49 | - have hd (j : ℕ) : block standardDirection 6 | |
| 50 | - (fun b : LiftTangent => pathTranslate P b (derivativePath P q i)) j a ≤ | |
| 51 | - C*majorant R (e+1) j := by | |
| 52 | - have h := (derivativePath_block_bound P q hq i 6 j a).trans (hc (j+1)) | |
| 53 | - simpa only [majorant, show j+1+e=j+(e+1) by omega] using h | |
| 54 | - simpa only [scalarDerivativeProductPath, Nat.add_assoc] using | |
| 55 | - scalarProductPath_majorant P L hL p (derivativePath P q i) | |
| 56 | - hp (derivativePath_orbit P q hq i) R A C hR hA hC d (e+1) a hb hd n | |
| 57 | - | |
| 58 | -end EulerCylinderPathProduct | |
+0 −48 Euler/CylinderPathIntegral.lean deleted
| @@ -1,48 +0,0 @@ | ||
| 1 | -import Euler.LpCylinderTranslation | |
| 2 | -import Euler.ContinuousTimeIntegral | |
| 3 | - | |
| 4 | -/-! Initial time integration commutes with the genuine mixed cylinder action. -/ | |
| 5 | - | |
| 6 | -noncomputable section | |
| 7 | - | |
| 8 | -namespace EulerCylinderPathIntegral | |
| 9 | - | |
| 10 | -open Set ContinuousLinearMap EulerLpCylinderTranslation EulerLiftedGradientSpace | |
| 11 | - EulerVolterraConvolution EulerContinuousTimeIntegral | |
| 12 | -open scoped ContDiff | |
| 13 | - | |
| 14 | -variable (P : ℝ) [Fact (0 < P)] {V : Type*} | |
| 15 | - [NormedAddCommGroup V] [NormedSpace ℝ V] [CompleteSpace V] | |
| 16 | - (T : ℝ) (hT : 0 ≤ T) | |
| 17 | - | |
| 18 | -theorem integral_translate (p : C(Icc (0 : ℝ) T,CylinderL2 P V)) (a : LiftTangent) : | |
| 19 | - integral T hT (pathTranslate P a p) = pathTranslate P a (integral T hT p) := by | |
| 20 | - apply ContinuousMap.ext | |
| 21 | - intro t | |
| 22 | - exact (translate P a).intervalIntegral_comp_comm (extendPath T hT p) | |
| 23 | - | |
| 24 | -theorem integral_orbit_contDiff (p : C(Icc (0 : ℝ) T,CylinderL2 P V)) | |
| 25 | - (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) : | |
| 26 | - ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a (integral T hT p)) := by | |
| 27 | - have hh := (integral (E := CylinderL2 P V) T hT).contDiff.comp hp | |
| 28 | - convert hh using 1 | |
| 29 | - funext a | |
| 30 | - exact (integral_translate P T hT p a).symm | |
| 31 | - | |
| 32 | -theorem orbit_contDiff_of_derivative | |
| 33 | - (p q : C(Icc (0 : ℝ) T,CylinderL2 P V)) | |
| 34 | - (hq : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a q)) | |
| 35 | - (hd : ∀ t : Icc (0 : ℝ) T, | |
| 36 | - HasDerivWithinAt (extendPath T hT p) (q t) (Icc (0 : ℝ) T) t) | |
| 37 | - (hzero : p ⟨0,le_rfl,hT⟩ = 0) : | |
| 38 | - ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p) := by | |
| 39 | - have he : p = integral T hT q := by | |
| 40 | - apply ContinuousMap.ext | |
| 41 | - intro t | |
| 42 | - have hh := eq_initial_add_integral T hT q (extendPath T hT p) hd t | |
| 43 | - simpa only [extendPath,projIcc_of_mem hT t.property, | |
| 44 | - projIcc_of_mem hT (show (0 : ℝ) ∈ Icc 0 T from ⟨le_rfl,hT⟩),hzero,zero_add] using hh | |
| 45 | - rw [he] | |
| 46 | - exact integral_orbit_contDiff P T hT q hq | |
| 47 | - | |
| 48 | -end EulerCylinderPathIntegral | |
+149 −1 Euler/CylinderPotentialPath.lean View file
| @@ -1,10 +1,158 @@ | ||
| 1 | -import Euler.CylinderAngleEvolution | |
| 1 | +import Euler.CylinderAngleRepresentative | |
| 2 | +import Euler.CylinderAnglePrimitive | |
| 3 | +import Euler.ParameterSobolevProductGevrey | |
| 4 | +import Euler.LpCylinderOrbit | |
| 5 | +import Euler.CylinderTimeRegularity | |
| 2 | 6 | import Euler.LpCylinderRectangularRegularity |
| 3 | 7 | import Euler.PacketPeriodicPotential |
| 4 | 8 | import Euler.AnglePrimitiveMap |
| 5 | 9 | |
| 6 | 10 | /-! The literal periodic vector potential as an actual continuous cylinder L² path. -/ |
| 7 | 11 | |
| 12 | +/-! ## From `Euler/CylinderAngleWordBounds.lean` | |
| 13 | + | |
| 14 | +The text of `Euler/CylinderAngleWordBounds.lean`, folded into this file, which was its only importer. -/ | |
| 15 | + | |
| 16 | +section | |
| 17 | + | |
| 18 | +/-! Same-radius mixed-word and continuous-time estimates for the actual angular operator. -/ | |
| 19 | + | |
| 20 | +noncomputable section | |
| 21 | + | |
| 22 | +namespace EulerCylinderAnglePrimitive | |
| 23 | + | |
| 24 | +open Set MeasureTheory EulerLiftedGradientSpace EulerParameterWordGevrey EulerGevrey | |
| 25 | + EulerLpCylinderTranslation | |
| 26 | +open scoped ContDiff | |
| 27 | + | |
| 28 | +variable (P : ℝ) [Fact (0 < P)] | |
| 29 | + | |
| 30 | +theorem primitive_hasDerivWithinAt (s : Set ℝ) (t : ℝ) (u : ℝ → LiftL2 P) | |
| 31 | + (ut : LiftL2 P) (hu : HasDerivWithinAt u ut s t) : | |
| 32 | + HasDerivWithinAt (fun r => primitive P (u r)) (primitive P ut) s t := | |
| 33 | + (primitive P).hasFDerivAt.comp_hasDerivWithinAt t hu | |
| 34 | + | |
| 35 | +theorem primitive_mixed_translation (a : LiftTangent) (u : LiftL2 P) : | |
| 36 | + primitive P (translate P a u) = translate P a (primitive P u) := | |
| 37 | + primitive_translation P _ u | |
| 38 | + | |
| 39 | +variable {X ι : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] [Fintype ι] | |
| 40 | + | |
| 41 | +variable {K : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 42 | + | |
| 43 | +private local instance : NormedAddCommGroup C(K,LiftL2 P) := inferInstance | |
| 44 | +private local instance : NormedSpace ℝ C(K,LiftL2 P) := inferInstance | |
| 45 | +private local instance : NormedAddCommGroup (C(K,LiftL2 P) →L[ℝ] C(K,LiftL2 P)) := inferInstance | |
| 46 | +private local instance : NormedSpace ℝ (C(K,LiftL2 P) →L[ℝ] C(K,LiftL2 P)) := inferInstance | |
| 47 | + | |
| 48 | +def pathPrimitive : C(K,LiftL2 P) →L[ℝ] C(K,LiftL2 P) := | |
| 49 | + (primitive P).compLeftContinuous ℝ K | |
| 50 | + | |
| 51 | +omit [CompactSpace K] in | |
| 52 | +@[simp] theorem pathPrimitive_apply (u : C(K,LiftL2 P)) (t : K) : | |
| 53 | + pathPrimitive P u t = primitive P (u t) := rfl | |
| 54 | + | |
| 55 | +theorem pathPrimitive_norm : ‖pathPrimitive (K := K) P‖ ≤ P := by | |
| 56 | + have hP : 0 ≤ P := le_of_lt (Fact.out : 0 < P) | |
| 57 | + apply ContinuousLinearMap.opNorm_le_bound _ hP | |
| 58 | + intro u | |
| 59 | + apply (ContinuousMap.norm_le _ (mul_nonneg hP (norm_nonneg u))).mpr | |
| 60 | + intro t | |
| 61 | + exact ((primitive P).le_of_opNorm_le (primitive_norm P) (u t)).trans | |
| 62 | + (mul_le_mul_of_nonneg_left (u.norm_coe_le_norm t) hP) | |
| 63 | + | |
| 64 | +/-- The angular operation preserves the same fixed base order and radius in the true time supremum. -/ | |
| 65 | +theorem pathPrimitive_block_bound (directions : ι → X) (q : ℕ) | |
| 66 | + (f : X → C(K,LiftL2 P)) (hf : ContDiff ℝ ∞ f) (n : ℕ) (x : X) : | |
| 67 | + block directions q (fun y => pathPrimitive P (f y)) n x ≤ P*block directions q f n x := by | |
| 68 | + have h := block_comp_clm_le (E := C(K,LiftL2 P)) (F := C(K,LiftL2 P)) | |
| 69 | + directions q (pathPrimitive (K := K) P) f hf n x | |
| 70 | + have hn : ‖pathPrimitive (K := K) P‖ ≤ P := pathPrimitive_norm P | |
| 71 | + exact h.trans (mul_le_mul_of_nonneg_right hn (block_nonneg directions q f n x)) | |
| 72 | + | |
| 73 | +end EulerCylinderAnglePrimitive | |
| 74 | +end | |
| 75 | + | |
| 76 | +end | |
| 77 | + | |
| 78 | +/-! ## From `Euler/CylinderAngleEvolution.lean` | |
| 79 | + | |
| 80 | +The text of `Euler/CylinderAngleEvolution.lean`, folded into this file, which was its only importer. -/ | |
| 81 | + | |
| 82 | +section | |
| 83 | + | |
| 84 | +/-! Time differentiation of the actual normalized angular integral on the cylinder. -/ | |
| 85 | + | |
| 86 | +noncomputable section | |
| 87 | + | |
| 88 | +namespace EulerCylinderAnglePrimitive | |
| 89 | + | |
| 90 | +open Set MeasureTheory EulerLiftedGradientSpace EulerCylinderSobolevSpace | |
| 91 | + EulerCylinderSmoothOrbit EulerLpCylinderTranslation EulerMetricTransport | |
| 92 | + EulerVolterraConvolution | |
| 93 | +open scoped ContDiff | |
| 94 | + | |
| 95 | +variable (P : ℝ) [Fact (0 < P)] | |
| 96 | + {K : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 97 | + | |
| 98 | +omit [CompactSpace K] in | |
| 99 | +theorem pathPrimitive_translation (p : C(K,LiftL2 P)) (a : LiftTangent) : | |
| 100 | + pathPrimitive P (pathTranslate P a p) = pathTranslate P a (pathPrimitive P p) := by | |
| 101 | + apply ContinuousMap.ext | |
| 102 | + intro t | |
| 103 | + exact primitive_mixed_translation P a (p t) | |
| 104 | + | |
| 105 | +theorem pathPrimitive_orbit_contDiff (p : C(K,LiftL2 P)) | |
| 106 | + (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) : | |
| 107 | + ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a (pathPrimitive P p)) := by | |
| 108 | + simpa only [Function.comp_def, pathPrimitive_translation] using | |
| 109 | + (pathPrimitive (K := K) P).contDiff.comp hp | |
| 110 | + | |
| 111 | +theorem primitive_sobolevPath (p : C(K,LiftL2 P)) | |
| 112 | + (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) (q : ℕ) (t : K) : | |
| 113 | + sobolevPath P q (pathPrimitive P p) (pathPrimitive_orbit_contDiff P p hp) t = | |
| 114 | + sobolevPrimitive P q (sobolevPath P q p hp t) := by | |
| 115 | + apply value_injective P | |
| 116 | + change value P (sobolevPath P q (pathPrimitive P p) _ t) = | |
| 117 | + primitive P (value P (sobolevPath P q p hp t)) | |
| 118 | + rw [sobolevPath_value, sobolevPath_value] | |
| 119 | + rfl | |
| 120 | + | |
| 121 | +/-- The representative of the time-dependent L² primitive is the same explicit angular integral. -/ | |
| 122 | +theorem pointField_primitive_formula (p : C(K,LiftL2 P)) | |
| 123 | + (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) | |
| 124 | + (hmean : ∀ t y, (∫ s in (0 : ℝ)..P, pointField P p hp t (y,(s : AddCircle P)))=0) | |
| 125 | + (t : K) (y : Vector3) (θ : ℝ) : | |
| 126 | + pointField P (pathPrimitive P p) (pathPrimitive_orbit_contDiff P p hp) t (y,(θ : AddCircle P)) = | |
| 127 | + EulerAngleMeanZeroPrimitive.primitive P | |
| 128 | + (fun s => pointField P p hp t (y,(s : AddCircle P))) θ := by | |
| 129 | + unfold pointField | |
| 130 | + rw [primitive_sobolevPath P p hp 3 t] | |
| 131 | + apply pointEvaluation_primitive_classical P (sobolevPath P 3 p hp t) | |
| 132 | + (pointField P p hp t) | |
| 133 | + (smoothField_continuous P _ (pointField_smooth P p hp t)) | |
| 134 | + · simpa only [sobolevPath_value] using pointField_ae P p hp t | |
| 135 | + · exact hmean t | |
| 136 | + | |
| 137 | +section Time | |
| 138 | + | |
| 139 | +variable (T : ℝ) (hT : 0 ≤ T) (p f : C(Icc (0 : ℝ) T,LiftL2 P)) | |
| 140 | + (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) | |
| 141 | + (hf : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a f)) | |
| 142 | + (hd : ∀ t : Icc (0 : ℝ) T, HasDerivWithinAt (extendPath T hT p) (f t) (Icc (0 : ℝ) T) t) | |
| 143 | + | |
| 144 | +include hd in | |
| 145 | +theorem pathPrimitive_time_derivative (t : Icc (0 : ℝ) T) : | |
| 146 | + HasDerivWithinAt (extendPath T hT (pathPrimitive P p)) (pathPrimitive P f t) | |
| 147 | + (Icc (0 : ℝ) T) t := | |
| 148 | + primitive_hasDerivWithinAt P _ t (extendPath T hT p) (f t) (hd t) | |
| 149 | + | |
| 150 | +end Time | |
| 151 | +end EulerCylinderAnglePrimitive | |
| 152 | +end | |
| 153 | + | |
| 154 | +end | |
| 155 | + | |
| 8 | 156 | noncomputable section |
| 9 | 157 | |
| 10 | 158 | namespace EulerCylinderPotential |
+0 −80 Euler/CylinderRetractRepresentative.lean deleted
| @@ -1,80 +0,0 @@ | ||
| 1 | -import Euler.CylinderConstantMap | |
| 2 | -import Euler.CylinderTimeRegularity | |
| 3 | - | |
| 4 | -/-! | |
| 5 | -Actual pointwise representatives for coordinate spaces embedded in Space. | |
| 6 | -A fixed bounded embedding and left inverse transfer the proved H³ point | |
| 7 | -evaluation. This will apply to the two-dimensional reference plane, without | |
| 8 | -identifying an L² normal with a pointwise normal vector. | |
| 9 | --/ | |
| 10 | - | |
| 11 | -noncomputable section | |
| 12 | - | |
| 13 | -namespace EulerCylinderRetractRepresentative | |
| 14 | - | |
| 15 | -open Set MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace | |
| 16 | - EulerLpCylinderTranslation EulerCylinderConstantMap EulerVolterraConvolution EulerMetricTransport | |
| 17 | -open scoped ContDiff | |
| 18 | - | |
| 19 | -variable (P : ℝ) [Fact (0 < P)] {U : Type*} | |
| 20 | - [NormedAddCommGroup U] [NormedSpace ℝ U] | |
| 21 | - (J : U →L[ℝ] Space) (L : Space →L[ℝ] U) | |
| 22 | - {K : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 23 | - (p : C(K,CylinderL2 P U)) | |
| 24 | - (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) | |
| 25 | - | |
| 26 | -def pointField (t : K) (x : LiftDomain P) : U := | |
| 27 | - L (EulerCylinderSmoothOrbit.pointField P (pathMap P J p) (pathMap_orbit_contDiff P J p hp) t x) | |
| 28 | - | |
| 29 | -theorem pointField_smooth (t : K) (x : LiftDomain P) : | |
| 30 | - ContDiff ℝ ∞ (localFieldLift P (pointField P J L p hp t) x) := | |
| 31 | - L.contDiff.comp (EulerCylinderSmoothOrbit.pointField_smooth P | |
| 32 | - (pathMap P J p) (pathMap_orbit_contDiff P J p hp) t x) | |
| 33 | - | |
| 34 | -theorem pointField_continuous (t : K) : Continuous (pointField P J L p hp t) := | |
| 35 | - smoothField_continuous P _ (pointField_smooth P J L p hp t) | |
| 36 | - | |
| 37 | -def pointPath (x : LiftDomain P) : C(K,U) := | |
| 38 | - ⟨fun t => pointField P J L p hp t x, | |
| 39 | - L.continuous.comp ((EulerSobolevPointEvaluation.pointEvaluation P x).continuous.comp | |
| 40 | - (EulerCylinderSmoothOrbit.sobolevPath P 3 (pathMap P J p) | |
| 41 | - (pathMap_orbit_contDiff P J p hp)).continuous)⟩ | |
| 42 | - | |
| 43 | -theorem pointField_ae (hL : ∀ v : U, L (J v) = v) (t : K) : | |
| 44 | - p t =ᵐ[liftMeasure P] pointField P J L p hp t := by | |
| 45 | - filter_upwards [map_ae P J (p t),EulerCylinderSmoothOrbit.pointField_ae P | |
| 46 | - (pathMap P J p) (pathMap_orbit_contDiff P J p hp) t] with x hm he | |
| 47 | - change (map P J (p t)) x = _ at he | |
| 48 | - change p t x = L _ | |
| 49 | - rw [← he,hm,hL] | |
| 50 | - | |
| 51 | -theorem pointField_eq (hL : ∀ v : U, L (J v) = v) (t : K) | |
| 52 | - (f : LiftDomain P → U) (hf : Continuous f) (hrep : p t =ᵐ[liftMeasure P] f) : | |
| 53 | - pointField P J L p hp t = f := | |
| 54 | - Measure.eq_of_ae_eq ((pointField_ae P J L p hp hL t).symm.trans hrep) | |
| 55 | - (pointField_continuous P J L p hp t) hf | |
| 56 | - | |
| 57 | -section Time | |
| 58 | - | |
| 59 | -variable (T : ℝ) (hT : 0 ≤ T) | |
| 60 | - (p q : C(Icc (0 : ℝ) T,CylinderL2 P U)) | |
| 61 | - (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) | |
| 62 | - (hq : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a q)) | |
| 63 | - (hd : ∀ t : Icc (0 : ℝ) T, | |
| 64 | - HasDerivWithinAt (extendPath T hT p) (q t) (Icc (0 : ℝ) T) t) | |
| 65 | - | |
| 66 | -include hd in | |
| 67 | -theorem pointPath_hasDerivWithinAt (x : LiftDomain P) (t : Icc (0 : ℝ) T) : | |
| 68 | - HasDerivWithinAt (extendPath T hT (pointPath P J L p hp x)) | |
| 69 | - (pointPath P J L q hq x t) (Icc (0 : ℝ) T) t := by | |
| 70 | - have hdJ (s : Icc (0 : ℝ) T) : | |
| 71 | - HasDerivWithinAt (extendPath T hT (pathMap P J p)) (pathMap P J q s) | |
| 72 | - (Icc (0 : ℝ) T) s := | |
| 73 | - (map P J).hasFDerivAt.comp_hasDerivWithinAt (s : ℝ) (hd s) | |
| 74 | - exact L.hasFDerivAt.comp_hasDerivWithinAt (t : ℝ) | |
| 75 | - (EulerCylinderSmoothOrbit.pointField_hasDerivWithinAt P T hT | |
| 76 | - (pathMap P J p) (pathMap P J q) (pathMap_orbit_contDiff P J p hp) | |
| 77 | - (pathMap_orbit_contDiff P J q hq) hdJ t x) | |
| 78 | - | |
| 79 | -end Time | |
| 80 | -end EulerCylinderRetractRepresentative | |
+85 −1 Euler/CylinderScalarAverage.lean View file
| @@ -1,8 +1,92 @@ | ||
| 1 | -import Euler.CylinderScalarRepresentative | |
| 1 | +import Euler.CylinderScalarPrimitive | |
| 2 | +import Euler.CylinderScalarClassical | |
| 3 | +import Euler.CylinderAngleRepresentative | |
| 4 | +import Euler.AnglePrimitiveMap | |
| 2 | 5 | import Euler.CylinderAngleAverageRepresentative |
| 3 | 6 | |
| 4 | 7 | /-! The actual scalar average-zero condition gives literal pointwise zero angular mean. -/ |
| 5 | 8 | |
| 9 | +/-! ## From `Euler/CylinderScalarRepresentative.lean` | |
| 10 | + | |
| 11 | +The text of `Euler/CylinderScalarRepresentative.lean`, folded into this file, which was its only importer. -/ | |
| 12 | + | |
| 13 | +section | |
| 14 | + | |
| 15 | +/-! | |
| 16 | +# The actual scalar L² primitive represents the classical pressure integral | |
| 17 | + | |
| 18 | +The fixed scalar embedding has a norm-one left inverse. Applying the already | |
| 19 | +proved vector H3 evaluation theorem to this embedding identifies the actual | |
| 20 | +scalar L² primitive with the literal normalized periodic integral. | |
| 21 | +-/ | |
| 22 | + | |
| 23 | +noncomputable section | |
| 24 | + | |
| 25 | +namespace EulerCylinderScalarPrimitive | |
| 26 | + | |
| 27 | +open Set MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace | |
| 28 | + EulerLpCylinderTranslation EulerCylinderConstantMap EulerCylinderSmoothOrbit EulerCylinderSobolevSpace | |
| 29 | +open scoped ContDiff | |
| 30 | + | |
| 31 | +variable (P : ℝ) [Fact (0 < P)] | |
| 32 | + | |
| 33 | +theorem embed_smooth (u : CylinderL2 P ℝ) | |
| 34 | + (hu : ContDiff ℝ ∞ (fun a : LiftTangent => translate P a u)) : SmoothOrbit P (embed P u) := by | |
| 35 | + have he : (fun a : LiftTangent => translate P a (embed P u)) = | |
| 36 | + (fun a => embed P (translate P a u)) := | |
| 37 | + funext (fun a => (map_translation P scalarEmbed a u).symm) | |
| 38 | + change ContDiff ℝ ∞ _ | |
| 39 | + rw [he] | |
| 40 | + exact (embed P).contDiff.comp hu | |
| 41 | + | |
| 42 | +/-- The vector H3 reconstruction theorem transfers to the actual scalar primitive. -/ | |
| 43 | +theorem primitive_ae_classical (u : CylinderL2 P ℝ) | |
| 44 | + (hu : ContDiff ℝ ∞ (fun a : LiftTangent => translate P a u)) | |
| 45 | + (f q : LiftDomain P → ℝ) (hf : Continuous f) | |
| 46 | + (hrep : (u : LiftDomain P → ℝ) =ᵐ[liftMeasure P] f) | |
| 47 | + (hmean : ∀ y, (∫ s in (0 : ℝ)..P, f (y,(s : AddCircle P))) = 0) | |
| 48 | + (hq : ∀ (y : Space) (θ : ℝ), q (y,(θ : AddCircle P)) = | |
| 49 | + EulerAngleMeanZeroPrimitive.primitive P (fun s => f (y,(s : AddCircle P))) θ) : | |
| 50 | + (primitive P u : LiftDomain P → ℝ) =ᵐ[liftMeasure P] q := by | |
| 51 | + let J := EulerCylinderSmoothOrbit.sobolev P 3 (embed P u) (embed_smooth P u hu) | |
| 52 | + have hval : value P J = embed P u := | |
| 53 | + EulerCylinderSmoothOrbit.sobolev_value P 3 (embed P u) (embed_smooth P u hu) | |
| 54 | + have hrepE : (value P J : LiftDomain P → Space) =ᵐ[liftMeasure P] fun x => scalarEmbed (f x) := by | |
| 55 | + rw [hval] | |
| 56 | + filter_upwards [map_ae P scalarEmbed u,hrep] with x he hx | |
| 57 | + exact he.trans (congrArg scalarEmbed hx) | |
| 58 | + have hmeanE (y : Space) : (∫ s in (0 : ℝ)..P, scalarEmbed (f (y,(s : AddCircle P)))) = 0 := by | |
| 59 | + have hcont : Continuous (fun s : ℝ => f (y,(s : AddCircle P))) := | |
| 60 | + hf.comp (continuous_const.prodMk (AddCircle.continuous_mk' P)) | |
| 61 | + rw [scalarEmbed.intervalIntegral_comp_comm (hcont.intervalIntegrable 0 P),hmean,map_zero] | |
| 62 | + have hqE (y : Space) (θ : ℝ) : scalarEmbed (q (y,(θ : AddCircle P))) = | |
| 63 | + EulerAngleMeanZeroPrimitive.primitive P (fun s => scalarEmbed (f (y,(s : AddCircle P)))) θ := by | |
| 64 | + rw [hq] | |
| 65 | + exact EulerAngleMeanZeroPrimitive.primitive_map scalarEmbed P _ | |
| 66 | + (hf.comp (continuous_const.prodMk (AddCircle.continuous_mk' P))) θ | |
| 67 | + have hr := EulerCylinderAnglePrimitive.primitive_ae_classical P J | |
| 68 | + (fun x => scalarEmbed (f x)) (fun x => scalarEmbed (q x)) (scalarEmbed.continuous.comp hf) | |
| 69 | + hrepE hmeanE hqE | |
| 70 | + rw [hval] at hr | |
| 71 | + filter_upwards [hr,map_ae P scalarProject (EulerCylinderAnglePrimitive.primitive P (embed P u))] | |
| 72 | + with x hq' hp | |
| 73 | + exact hp.trans ((congrArg scalarProject hq').trans (project_embed (q x))) | |
| 74 | + | |
| 75 | +/-- The actual scalar primitive is exactly the descended normalized integral. -/ | |
| 76 | +theorem primitive_ae_constructed (u : CylinderL2 P ℝ) | |
| 77 | + (hu : ContDiff ℝ ∞ (fun a : LiftTangent => translate P a u)) | |
| 78 | + (f : LiftDomain P → ℝ) (hf : Continuous f) | |
| 79 | + (hrep : (u : LiftDomain P → ℝ) =ᵐ[liftMeasure P] f) | |
| 80 | + (hmean : ∀ y, (∫ s in (0 : ℝ)..P, f (y,(s : AddCircle P))) = 0) : | |
| 81 | + (primitive P u : LiftDomain P → ℝ) =ᵐ[liftMeasure P] classicalPrimitive P f hf hmean := | |
| 82 | + primitive_ae_classical P u hu f (classicalPrimitive P f hf hmean) hf hrep hmean | |
| 83 | + (classicalPrimitive_cover P f hf hmean) | |
| 84 | + | |
| 85 | +end EulerCylinderScalarPrimitive | |
| 86 | +end | |
| 87 | + | |
| 88 | +end | |
| 89 | + | |
| 6 | 90 | noncomputable section |
| 7 | 91 | |
| 8 | 92 | namespace EulerCylinderScalarPrimitive |
+0 −76 Euler/CylinderScalarRepresentative.lean deleted
| @@ -1,76 +0,0 @@ | ||
| 1 | -import Euler.CylinderScalarPrimitive | |
| 2 | -import Euler.CylinderScalarClassical | |
| 3 | -import Euler.CylinderAngleRepresentative | |
| 4 | -import Euler.AnglePrimitiveMap | |
| 5 | - | |
| 6 | -/-! | |
| 7 | -# The actual scalar L² primitive represents the classical pressure integral | |
| 8 | - | |
| 9 | -The fixed scalar embedding has a norm-one left inverse. Applying the already | |
| 10 | -proved vector H3 evaluation theorem to this embedding identifies the actual | |
| 11 | -scalar L² primitive with the literal normalized periodic integral. | |
| 12 | --/ | |
| 13 | - | |
| 14 | -noncomputable section | |
| 15 | - | |
| 16 | -namespace EulerCylinderScalarPrimitive | |
| 17 | - | |
| 18 | -open Set MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace | |
| 19 | - EulerLpCylinderTranslation EulerCylinderConstantMap EulerCylinderSmoothOrbit EulerCylinderSobolevSpace | |
| 20 | -open scoped ContDiff | |
| 21 | - | |
| 22 | -variable (P : ℝ) [Fact (0 < P)] | |
| 23 | - | |
| 24 | -theorem embed_smooth (u : CylinderL2 P ℝ) | |
| 25 | - (hu : ContDiff ℝ ∞ (fun a : LiftTangent => translate P a u)) : SmoothOrbit P (embed P u) := by | |
| 26 | - have he : (fun a : LiftTangent => translate P a (embed P u)) = | |
| 27 | - (fun a => embed P (translate P a u)) := | |
| 28 | - funext (fun a => (map_translation P scalarEmbed a u).symm) | |
| 29 | - change ContDiff ℝ ∞ _ | |
| 30 | - rw [he] | |
| 31 | - exact (embed P).contDiff.comp hu | |
| 32 | - | |
| 33 | -/-- The vector H3 reconstruction theorem transfers to the actual scalar primitive. -/ | |
| 34 | -theorem primitive_ae_classical (u : CylinderL2 P ℝ) | |
| 35 | - (hu : ContDiff ℝ ∞ (fun a : LiftTangent => translate P a u)) | |
| 36 | - (f q : LiftDomain P → ℝ) (hf : Continuous f) | |
| 37 | - (hrep : (u : LiftDomain P → ℝ) =ᵐ[liftMeasure P] f) | |
| 38 | - (hmean : ∀ y, (∫ s in (0 : ℝ)..P, f (y,(s : AddCircle P))) = 0) | |
| 39 | - (hq : ∀ (y : Space) (θ : ℝ), q (y,(θ : AddCircle P)) = | |
| 40 | - EulerAngleMeanZeroPrimitive.primitive P (fun s => f (y,(s : AddCircle P))) θ) : | |
| 41 | - (primitive P u : LiftDomain P → ℝ) =ᵐ[liftMeasure P] q := by | |
| 42 | - let J := EulerCylinderSmoothOrbit.sobolev P 3 (embed P u) (embed_smooth P u hu) | |
| 43 | - have hval : value P J = embed P u := | |
| 44 | - EulerCylinderSmoothOrbit.sobolev_value P 3 (embed P u) (embed_smooth P u hu) | |
| 45 | - have hrepE : (value P J : LiftDomain P → Space) =ᵐ[liftMeasure P] fun x => scalarEmbed (f x) := by | |
| 46 | - rw [hval] | |
| 47 | - filter_upwards [map_ae P scalarEmbed u,hrep] with x he hx | |
| 48 | - exact he.trans (congrArg scalarEmbed hx) | |
| 49 | - have hmeanE (y : Space) : (∫ s in (0 : ℝ)..P, scalarEmbed (f (y,(s : AddCircle P)))) = 0 := by | |
| 50 | - have hcont : Continuous (fun s : ℝ => f (y,(s : AddCircle P))) := | |
| 51 | - hf.comp (continuous_const.prodMk (AddCircle.continuous_mk' P)) | |
| 52 | - rw [scalarEmbed.intervalIntegral_comp_comm (hcont.intervalIntegrable 0 P),hmean,map_zero] | |
| 53 | - have hqE (y : Space) (θ : ℝ) : scalarEmbed (q (y,(θ : AddCircle P))) = | |
| 54 | - EulerAngleMeanZeroPrimitive.primitive P (fun s => scalarEmbed (f (y,(s : AddCircle P)))) θ := by | |
| 55 | - rw [hq] | |
| 56 | - exact EulerAngleMeanZeroPrimitive.primitive_map scalarEmbed P _ | |
| 57 | - (hf.comp (continuous_const.prodMk (AddCircle.continuous_mk' P))) θ | |
| 58 | - have hr := EulerCylinderAnglePrimitive.primitive_ae_classical P J | |
| 59 | - (fun x => scalarEmbed (f x)) (fun x => scalarEmbed (q x)) (scalarEmbed.continuous.comp hf) | |
| 60 | - hrepE hmeanE hqE | |
| 61 | - rw [hval] at hr | |
| 62 | - filter_upwards [hr,map_ae P scalarProject (EulerCylinderAnglePrimitive.primitive P (embed P u))] | |
| 63 | - with x hq' hp | |
| 64 | - exact hp.trans ((congrArg scalarProject hq').trans (project_embed (q x))) | |
| 65 | - | |
| 66 | -/-- The actual scalar primitive is exactly the descended normalized integral. -/ | |
| 67 | -theorem primitive_ae_constructed (u : CylinderL2 P ℝ) | |
| 68 | - (hu : ContDiff ℝ ∞ (fun a : LiftTangent => translate P a u)) | |
| 69 | - (f : LiftDomain P → ℝ) (hf : Continuous f) | |
| 70 | - (hrep : (u : LiftDomain P → ℝ) =ᵐ[liftMeasure P] f) | |
| 71 | - (hmean : ∀ y, (∫ s in (0 : ℝ)..P, f (y,(s : AddCircle P))) = 0) : | |
| 72 | - (primitive P u : LiftDomain P → ℝ) =ᵐ[liftMeasure P] classicalPrimitive P f hf hmean := | |
| 73 | - primitive_ae_classical P u hu f (classicalPrimitive P f hf hmean) hf hrep hmean | |
| 74 | - (classicalPrimitive_cover P f hf hmean) | |
| 75 | - | |
| 76 | -end EulerCylinderScalarPrimitive | |
+0 −74 Euler/CylinderSlowCurlBounds.lean deleted
| @@ -1,74 +0,0 @@ | ||
| 1 | -import Euler.CylinderSlowCurl | |
| 2 | - | |
| 3 | -/-! The literal slow curl as a continuous cylinder L² path with same-radius bounds. -/ | |
| 4 | - | |
| 5 | -noncomputable section | |
| 6 | - | |
| 7 | -namespace EulerCylinderSlowCurl | |
| 8 | - | |
| 9 | -open Set MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace | |
| 10 | - EulerMetricTransport EulerLiftedWeakDerivative EulerCylinderSmoothOrbit EulerCylinderSobolev | |
| 11 | - EulerLpCylinderTranslation EulerLpCylinderRectangular EulerMeanCoefficients | |
| 12 | - EulerPacketPiola EulerMeanBoundary EulerParameterWordGevrey EulerGevrey | |
| 13 | -open scoped ContDiff BoundedContinuousFunction | |
| 14 | - | |
| 15 | -variable (P : ℝ) [Fact (0 < P)] | |
| 16 | - {K : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 17 | - | |
| 18 | -private local instance : NormedAddCommGroup (Space →L[ℝ] Space) := inferInstance | |
| 19 | -private local instance : NormedSpace ℝ (Space →L[ℝ] Space) := inferInstance | |
| 20 | -private local instance : NormedAddCommGroup (LiftTangent →L[ℝ] Space) := inferInstance | |
| 21 | -private local instance : NormedSpace ℝ (LiftTangent →L[ℝ] Space) := inferInstance | |
| 22 | -private local instance : NormedAddCommGroup (Space →ᵇ Space →L[ℝ] Space) := inferInstance | |
| 23 | -private local instance : NormedSpace ℝ (Space →ᵇ Space →L[ℝ] Space) := inferInstance | |
| 24 | -private local instance : NormedAddCommGroup C(K,Space →ᵇ Space →L[ℝ] Space) := inferInstance | |
| 25 | -private local instance : NormedSpace ℝ C(K,Space →ᵇ Space →L[ℝ] Space) := inferInstance | |
| 26 | -private local instance : NormedAddCommGroup (LiftL2 P) := inferInstance | |
| 27 | -private local instance : NormedSpace ℝ (LiftL2 P) := inferInstance | |
| 28 | -private local instance : NormedAddCommGroup C(K,LiftL2 P) := inferInstance | |
| 29 | -private local instance : NormedSpace ℝ C(K,LiftL2 P) := inferInstance | |
| 30 | - | |
| 31 | -variable | |
| 32 | - (G : C(K,Space →ᵇ Space →L[ℝ] Space)) | |
| 33 | - (hG : ContDiff ℝ ∞ (translateCoefficientPath G)) | |
| 34 | - (p : C(K,LiftL2 P)) (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) | |
| 35 | - | |
| 36 | - | |
| 37 | -include hG hp in | |
| 38 | -/-- One spatial derivative consumes one shift; the external radius is unchanged. -/ | |
| 39 | -theorem path_block_bound (q : ℕ) (Rc C R D : ℝ) | |
| 40 | - (hRc : 0 ≤ Rc) (hC : 0 ≤ C) (hD : 0 ≤ D) | |
| 41 | - (hR : sobolevCoefficientRadius (Fin 4) Rc ≤ R) | |
| 42 | - (hbG : ∀ n a, ‖iteratedFDeriv ℝ n (translateCoefficientPath G) a‖ ≤ C*majorant Rc 0 n) | |
| 43 | - (d : ℕ) (hbp : ∀ n, block standardDirection q | |
| 44 | - (fun a : LiftTangent => pathTranslate P a p) n 0 ≤ D*majorant R d n) (n : ℕ) : | |
| 45 | - block standardDirection q (fun a : LiftTangent => pathTranslate P a (path P G p)) n 0 ≤ | |
| 46 | - (9*sobolevCoefficientAmplitude (Fin 4) q Rc C*D)*majorant R (d+1) n := by | |
| 47 | - have hdirections (i : Fin 4) : ‖standardDirection i‖ ≤ 1 := by | |
| 48 | - cases i using Fin.cases <;> simp [Prod.norm_def] | |
| 49 | - have ht (i : Fin 3) : | |
| 50 | - block standardDirection q (fun a : LiftTangent => pathTranslate P a (term P G p i)) n 0 ≤ | |
| 51 | - (3*sobolevCoefficientAmplitude (Fin 4) q Rc C*D)*majorant R (d+1) n := by | |
| 52 | - have h := product_orbit_block_bound P (curlCoefficientPath i G) (curlCoefficientPath_orbit i G hG) | |
| 53 | - standardDirection hdirections q (derivativePath P p i.succ) (derivativePath_orbit P p hp i.succ) | |
| 54 | - Rc C R D hRc hC hD hR | |
| 55 | - (fun j a => curlCoefficientPath_bound i G hG j (C*majorant Rc 0 j) (hbG j) a) | |
| 56 | - (d+1) (derivativePath_majorant P p hp i.succ q R D d hbp) n | |
| 57 | - exact h | |
| 58 | - let f := fun i : Fin 3 => fun a : LiftTangent => pathTranslate P a (term P G p i) | |
| 59 | - have he : (fun a : LiftTangent => pathTranslate P a (path P G p)) = f 0+(f 1+f 2) := by | |
| 60 | - funext a | |
| 61 | - simp [path, Fin.sum_univ_succ, f] | |
| 62 | - rw [he] | |
| 63 | - have h₀ := term_orbit P G hG p hp 0 | |
| 64 | - have h₁ := term_orbit P G hG p hp 1 | |
| 65 | - have h₂ := term_orbit P G hG p hp 2 | |
| 66 | - have hs₀ := block_add_le (E := C(K,LiftL2 P)) standardDirection q | |
| 67 | - (f 0) (f 1+f 2) h₀ (h₁.add h₂) n (0 : LiftTangent) | |
| 68 | - have hs₁ := block_add_le (E := C(K,LiftL2 P)) standardDirection q | |
| 69 | - (f 1) (f 2) h₁ h₂ n (0 : LiftTangent) | |
| 70 | - have hsum := hs₀.trans (add_le_add (ht 0) (hs₁.trans (add_le_add (ht 1) (ht 2)))) | |
| 71 | - exact hsum.trans_eq (by ring) | |
| 72 | - | |
| 73 | - | |
| 74 | -end EulerCylinderSlowCurl | |
+83 −1 Euler/CylinderSlowCurlTime.lean View file
| @@ -1,8 +1,90 @@ | ||
| 1 | -import Euler.CylinderSlowCurlBounds | |
| 1 | +import Euler.CylinderSlowCurl | |
| 2 | 2 | import Euler.LpCylinderFullTime |
| 3 | 3 | |
| 4 | 4 | /-! Actual within-time differentiation and bounds for the constructed slow-curl path. -/ |
| 5 | 5 | |
| 6 | +/-! ## From `Euler/CylinderSlowCurlBounds.lean` | |
| 7 | + | |
| 8 | +The text of `Euler/CylinderSlowCurlBounds.lean`, folded into this file, which was its only importer. -/ | |
| 9 | + | |
| 10 | +section | |
| 11 | + | |
| 12 | +/-! The literal slow curl as a continuous cylinder L² path with same-radius bounds. -/ | |
| 13 | + | |
| 14 | +noncomputable section | |
| 15 | + | |
| 16 | +namespace EulerCylinderSlowCurl | |
| 17 | + | |
| 18 | +open Set MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace | |
| 19 | + EulerMetricTransport EulerLiftedWeakDerivative EulerCylinderSmoothOrbit EulerCylinderSobolev | |
| 20 | + EulerLpCylinderTranslation EulerLpCylinderRectangular EulerMeanCoefficients | |
| 21 | + EulerPacketPiola EulerMeanBoundary EulerParameterWordGevrey EulerGevrey | |
| 22 | +open scoped ContDiff BoundedContinuousFunction | |
| 23 | + | |
| 24 | +variable (P : ℝ) [Fact (0 < P)] | |
| 25 | + {K : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 26 | + | |
| 27 | +private local instance : NormedAddCommGroup (Space →L[ℝ] Space) := inferInstance | |
| 28 | +private local instance : NormedSpace ℝ (Space →L[ℝ] Space) := inferInstance | |
| 29 | +private local instance : NormedAddCommGroup (LiftTangent →L[ℝ] Space) := inferInstance | |
| 30 | +private local instance : NormedSpace ℝ (LiftTangent →L[ℝ] Space) := inferInstance | |
| 31 | +private local instance : NormedAddCommGroup (Space →ᵇ Space →L[ℝ] Space) := inferInstance | |
| 32 | +private local instance : NormedSpace ℝ (Space →ᵇ Space →L[ℝ] Space) := inferInstance | |
| 33 | +private local instance : NormedAddCommGroup C(K,Space →ᵇ Space →L[ℝ] Space) := inferInstance | |
| 34 | +private local instance : NormedSpace ℝ C(K,Space →ᵇ Space →L[ℝ] Space) := inferInstance | |
| 35 | +private local instance : NormedAddCommGroup (LiftL2 P) := inferInstance | |
| 36 | +private local instance : NormedSpace ℝ (LiftL2 P) := inferInstance | |
| 37 | +private local instance : NormedAddCommGroup C(K,LiftL2 P) := inferInstance | |
| 38 | +private local instance : NormedSpace ℝ C(K,LiftL2 P) := inferInstance | |
| 39 | + | |
| 40 | +variable | |
| 41 | + (G : C(K,Space →ᵇ Space →L[ℝ] Space)) | |
| 42 | + (hG : ContDiff ℝ ∞ (translateCoefficientPath G)) | |
| 43 | + (p : C(K,LiftL2 P)) (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) | |
| 44 | + | |
| 45 | + | |
| 46 | +include hG hp in | |
| 47 | +/-- One spatial derivative consumes one shift; the external radius is unchanged. -/ | |
| 48 | +theorem path_block_bound (q : ℕ) (Rc C R D : ℝ) | |
| 49 | + (hRc : 0 ≤ Rc) (hC : 0 ≤ C) (hD : 0 ≤ D) | |
| 50 | + (hR : sobolevCoefficientRadius (Fin 4) Rc ≤ R) | |
| 51 | + (hbG : ∀ n a, ‖iteratedFDeriv ℝ n (translateCoefficientPath G) a‖ ≤ C*majorant Rc 0 n) | |
| 52 | + (d : ℕ) (hbp : ∀ n, block standardDirection q | |
| 53 | + (fun a : LiftTangent => pathTranslate P a p) n 0 ≤ D*majorant R d n) (n : ℕ) : | |
| 54 | + block standardDirection q (fun a : LiftTangent => pathTranslate P a (path P G p)) n 0 ≤ | |
| 55 | + (9*sobolevCoefficientAmplitude (Fin 4) q Rc C*D)*majorant R (d+1) n := by | |
| 56 | + have hdirections (i : Fin 4) : ‖standardDirection i‖ ≤ 1 := by | |
| 57 | + cases i using Fin.cases <;> simp [Prod.norm_def] | |
| 58 | + have ht (i : Fin 3) : | |
| 59 | + block standardDirection q (fun a : LiftTangent => pathTranslate P a (term P G p i)) n 0 ≤ | |
| 60 | + (3*sobolevCoefficientAmplitude (Fin 4) q Rc C*D)*majorant R (d+1) n := by | |
| 61 | + have h := product_orbit_block_bound P (curlCoefficientPath i G) (curlCoefficientPath_orbit i G hG) | |
| 62 | + standardDirection hdirections q (derivativePath P p i.succ) (derivativePath_orbit P p hp i.succ) | |
| 63 | + Rc C R D hRc hC hD hR | |
| 64 | + (fun j a => curlCoefficientPath_bound i G hG j (C*majorant Rc 0 j) (hbG j) a) | |
| 65 | + (d+1) (derivativePath_majorant P p hp i.succ q R D d hbp) n | |
| 66 | + exact h | |
| 67 | + let f := fun i : Fin 3 => fun a : LiftTangent => pathTranslate P a (term P G p i) | |
| 68 | + have he : (fun a : LiftTangent => pathTranslate P a (path P G p)) = f 0+(f 1+f 2) := by | |
| 69 | + funext a | |
| 70 | + simp [path, Fin.sum_univ_succ, f] | |
| 71 | + rw [he] | |
| 72 | + have h₀ := term_orbit P G hG p hp 0 | |
| 73 | + have h₁ := term_orbit P G hG p hp 1 | |
| 74 | + have h₂ := term_orbit P G hG p hp 2 | |
| 75 | + have hs₀ := block_add_le (E := C(K,LiftL2 P)) standardDirection q | |
| 76 | + (f 0) (f 1+f 2) h₀ (h₁.add h₂) n (0 : LiftTangent) | |
| 77 | + have hs₁ := block_add_le (E := C(K,LiftL2 P)) standardDirection q | |
| 78 | + (f 1) (f 2) h₁ h₂ n (0 : LiftTangent) | |
| 79 | + have hsum := hs₀.trans (add_le_add (ht 0) (hs₁.trans (add_le_add (ht 1) (ht 2)))) | |
| 80 | + exact hsum.trans_eq (by ring) | |
| 81 | + | |
| 82 | + | |
| 83 | +end EulerCylinderSlowCurl | |
| 84 | +end | |
| 85 | + | |
| 86 | +end | |
| 87 | + | |
| 6 | 88 | noncomputable section |
| 7 | 89 | |
| 8 | 90 | namespace EulerCylinderSlowCurl |
+0 −81 Euler/CylinderSpatialMeanRepresentative.lean deleted
| @@ -1,81 +0,0 @@ | ||
| 1 | -import Euler.CylinderSpatialMean | |
| 2 | -import Euler.CylinderAngleAverageRepresentative | |
| 3 | - | |
| 4 | -/-! The bounded cylinder-to-space operator is the literal angular integral on smooth fields. -/ | |
| 5 | - | |
| 6 | -noncomputable section | |
| 7 | - | |
| 8 | -namespace EulerCylinderSpatialMean | |
| 9 | - | |
| 10 | -open Set MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace | |
| 11 | - EulerLpCylinderTranslation EulerCylinderSpatialEmbedding EulerCylinderAngleAverage | |
| 12 | - EulerCylinderSobolevSpace EulerSobolevPointEvaluation | |
| 13 | - | |
| 14 | -variable (P : ℝ) [Fact (0 < P)] | |
| 15 | - | |
| 16 | -/-- A continuous constant-angle field is spatially L² whenever its cylinder lift is L². -/ | |
| 17 | -theorem continuous_memLp_of_lift {V : Type*} [NormedAddCommGroup V] | |
| 18 | - (g : Space → V) (hg : Continuous g) | |
| 19 | - (hgl : MemLp (fun z : LiftDomain P => g z.1) 2 (liftMeasure P)) : | |
| 20 | - MemLp g 2 (volume : Measure Space) := by | |
| 21 | - have hm : MemLp g 2 (Measure.map (Prod.fst : LiftDomain P → Space) (liftMeasure P)) := | |
| 22 | - (memLp_map_measure_iff hg.aestronglyMeasurable measurable_fst.aemeasurable).mpr hgl | |
| 23 | - change MemLp g 2 (Measure.map Prod.fst | |
| 24 | - ((volume : Measure Space).prod (volume : Measure (AddCircle P)))) at hm | |
| 25 | - rw [Measure.map_fst_prod, AddCircle.measure_univ] at hm | |
| 26 | - have hP : ENNReal.ofReal P ≠ 0 := ne_of_gt (ENNReal.ofReal_pos.mpr (Fact.out : 0 < P)) | |
| 27 | - have hu := hm.smul_measure (c := (ENNReal.ofReal P)⁻¹) (ENNReal.inv_ne_top.mpr hP) | |
| 28 | - simpa only [smul_smul, ENNReal.inv_mul_cancel hP ENNReal.ofReal_ne_top, one_smul] using hu | |
| 29 | - | |
| 30 | -def rawMean (f : LiftDomain P → Space) (y : Space) : Space := | |
| 31 | - P⁻¹ • (∫ s in (0 : ℝ)..P, f (y,(s : AddCircle P))) | |
| 32 | - | |
| 33 | -variable (u : SobolevSpace P 3) (f : LiftDomain P → Space) (hf : Continuous f) | |
| 34 | - (hrep : (value P u : LiftDomain P → Space) =ᵐ[liftMeasure P] f) | |
| 35 | - | |
| 36 | -include hf hrep | |
| 37 | - | |
| 38 | -theorem rawMean_continuous : Continuous (rawMean P f) := by | |
| 39 | - have he : rawMean P f = fun y => representative P (sobolevAverage P 3 u) (y,0) := by | |
| 40 | - funext y | |
| 41 | - exact (pointEvaluation_average_mean P u f hf hrep y 0).symm | |
| 42 | - rw [he] | |
| 43 | - exact (representative_continuous P (sobolevAverage P 3 u)).comp | |
| 44 | - (continuous_id.prodMk continuous_const) | |
| 45 | - | |
| 46 | -theorem average_ae_rawMean : | |
| 47 | - (average P (value P u) : LiftDomain P → Space) =ᵐ[liftMeasure P] fun z => rawMean P f z.1 := by | |
| 48 | - have he (z : LiftDomain P) : representative P (sobolevAverage P 3 u) z = rawMean P f z.1 := by | |
| 49 | - obtain ⟨θ,hθ⟩ := QuotientAddGroup.mk_surjective z.2 | |
| 50 | - have hz : z=(z.1,(θ : AddCircle P)) := by | |
| 51 | - apply Prod.ext | |
| 52 | - · rfl | |
| 53 | - · exact hθ.symm | |
| 54 | - rw [hz] | |
| 55 | - exact pointEvaluation_average_mean P u f hf hrep z.1 θ | |
| 56 | - filter_upwards [representative_ae P (sobolevAverage P 3 u)] with z hz | |
| 57 | - exact hz.trans (he z) | |
| 58 | - | |
| 59 | -theorem rawMean_memLp : MemLp (rawMean P f) 2 (volume : Measure Space) := by | |
| 60 | - apply continuous_memLp_of_lift P (rawMean P f) (rawMean_continuous P u f hf hrep) | |
| 61 | - exact (memLp_congr_ae (average_ae_rawMean P u f hf hrep)).mp (Lp.memLp (average P (value P u))) | |
| 62 | - | |
| 63 | -/-- The actual ordinary-space L² mean has the normalized integral as its representative. -/ | |
| 64 | -theorem mean_ae_rawMean : | |
| 65 | - (mean P (value P u) : Space → Space) =ᵐ[volume] rawMean P f := by | |
| 66 | - let v : SpatialL2 Space := (rawMean_memLp P u f hf hrep).toLp (rawMean P f) | |
| 67 | - have hv : (v : Space → Space) =ᵐ[volume] rawMean P f := | |
| 68 | - (rawMean_memLp P u f hf hrep).coeFn_toLp | |
| 69 | - have he : embedding P v = average P (value P u) := by | |
| 70 | - apply Lp.ext | |
| 71 | - filter_upwards [lift_ae P v, | |
| 72 | - (Measure.quasiMeasurePreserving_fst (μ := (volume : Measure Space)) | |
| 73 | - (ν := (volume : Measure (AddCircle P)))).ae hv, | |
| 74 | - average_ae_rawMean P u f hf hrep] with z hl hm ha | |
| 75 | - exact hl.trans (hm.trans ha.symm) | |
| 76 | - have hm : mean P (value P u) = v := by | |
| 77 | - rw [← mean_average P (value P u), ← he, mean_embedding] | |
| 78 | - rw [hm] | |
| 79 | - exact hv | |
| 80 | - | |
| 81 | -end EulerCylinderSpatialMean | |
+90 −1 Euler/CylinderSpatialMeanTime.lean View file
| @@ -1,10 +1,99 @@ | ||
| 1 | 1 | import Euler.CylinderSpatialMeanPath |
| 2 | -import Euler.CylinderSpatialMeanRepresentative | |
| 2 | +import Euler.CylinderSpatialMean | |
| 3 | +import Euler.CylinderAngleAverageRepresentative | |
| 3 | 4 | import Euler.CylinderTimeRegularity |
| 4 | 5 | import Euler.MeanSmoothRepresentative |
| 5 | 6 | |
| 6 | 7 | /-! The literal angular mean of a solved cylinder path is an actual smooth spatial L² path. -/ |
| 7 | 8 | |
| 9 | +/-! ## From `Euler/CylinderSpatialMeanRepresentative.lean` | |
| 10 | + | |
| 11 | +The text of `Euler/CylinderSpatialMeanRepresentative.lean`, folded into this file, which was its only importer. -/ | |
| 12 | + | |
| 13 | +section | |
| 14 | + | |
| 15 | +/-! The bounded cylinder-to-space operator is the literal angular integral on smooth fields. -/ | |
| 16 | + | |
| 17 | +noncomputable section | |
| 18 | + | |
| 19 | +namespace EulerCylinderSpatialMean | |
| 20 | + | |
| 21 | +open Set MeasureTheory ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace | |
| 22 | + EulerLpCylinderTranslation EulerCylinderSpatialEmbedding EulerCylinderAngleAverage | |
| 23 | + EulerCylinderSobolevSpace EulerSobolevPointEvaluation | |
| 24 | + | |
| 25 | +variable (P : ℝ) [Fact (0 < P)] | |
| 26 | + | |
| 27 | +/-- A continuous constant-angle field is spatially L² whenever its cylinder lift is L². -/ | |
| 28 | +theorem continuous_memLp_of_lift {V : Type*} [NormedAddCommGroup V] | |
| 29 | + (g : Space → V) (hg : Continuous g) | |
| 30 | + (hgl : MemLp (fun z : LiftDomain P => g z.1) 2 (liftMeasure P)) : | |
| 31 | + MemLp g 2 (volume : Measure Space) := by | |
| 32 | + have hm : MemLp g 2 (Measure.map (Prod.fst : LiftDomain P → Space) (liftMeasure P)) := | |
| 33 | + (memLp_map_measure_iff hg.aestronglyMeasurable measurable_fst.aemeasurable).mpr hgl | |
| 34 | + change MemLp g 2 (Measure.map Prod.fst | |
| 35 | + ((volume : Measure Space).prod (volume : Measure (AddCircle P)))) at hm | |
| 36 | + rw [Measure.map_fst_prod, AddCircle.measure_univ] at hm | |
| 37 | + have hP : ENNReal.ofReal P ≠ 0 := ne_of_gt (ENNReal.ofReal_pos.mpr (Fact.out : 0 < P)) | |
| 38 | + have hu := hm.smul_measure (c := (ENNReal.ofReal P)⁻¹) (ENNReal.inv_ne_top.mpr hP) | |
| 39 | + simpa only [smul_smul, ENNReal.inv_mul_cancel hP ENNReal.ofReal_ne_top, one_smul] using hu | |
| 40 | + | |
| 41 | +def rawMean (f : LiftDomain P → Space) (y : Space) : Space := | |
| 42 | + P⁻¹ • (∫ s in (0 : ℝ)..P, f (y,(s : AddCircle P))) | |
| 43 | + | |
| 44 | +variable (u : SobolevSpace P 3) (f : LiftDomain P → Space) (hf : Continuous f) | |
| 45 | + (hrep : (value P u : LiftDomain P → Space) =ᵐ[liftMeasure P] f) | |
| 46 | + | |
| 47 | +include hf hrep | |
| 48 | + | |
| 49 | +theorem rawMean_continuous : Continuous (rawMean P f) := by | |
| 50 | + have he : rawMean P f = fun y => representative P (sobolevAverage P 3 u) (y,0) := by | |
| 51 | + funext y | |
| 52 | + exact (pointEvaluation_average_mean P u f hf hrep y 0).symm | |
| 53 | + rw [he] | |
| 54 | + exact (representative_continuous P (sobolevAverage P 3 u)).comp | |
| 55 | + (continuous_id.prodMk continuous_const) | |
| 56 | + | |
| 57 | +theorem average_ae_rawMean : | |
| 58 | + (average P (value P u) : LiftDomain P → Space) =ᵐ[liftMeasure P] fun z => rawMean P f z.1 := by | |
| 59 | + have he (z : LiftDomain P) : representative P (sobolevAverage P 3 u) z = rawMean P f z.1 := by | |
| 60 | + obtain ⟨θ,hθ⟩ := QuotientAddGroup.mk_surjective z.2 | |
| 61 | + have hz : z=(z.1,(θ : AddCircle P)) := by | |
| 62 | + apply Prod.ext | |
| 63 | + · rfl | |
| 64 | + · exact hθ.symm | |
| 65 | + rw [hz] | |
| 66 | + exact pointEvaluation_average_mean P u f hf hrep z.1 θ | |
| 67 | + filter_upwards [representative_ae P (sobolevAverage P 3 u)] with z hz | |
| 68 | + exact hz.trans (he z) | |
| 69 | + | |
| 70 | +theorem rawMean_memLp : MemLp (rawMean P f) 2 (volume : Measure Space) := by | |
| 71 | + apply continuous_memLp_of_lift P (rawMean P f) (rawMean_continuous P u f hf hrep) | |
| 72 | + exact (memLp_congr_ae (average_ae_rawMean P u f hf hrep)).mp (Lp.memLp (average P (value P u))) | |
| 73 | + | |
| 74 | +/-- The actual ordinary-space L² mean has the normalized integral as its representative. -/ | |
| 75 | +theorem mean_ae_rawMean : | |
| 76 | + (mean P (value P u) : Space → Space) =ᵐ[volume] rawMean P f := by | |
| 77 | + let v : SpatialL2 Space := (rawMean_memLp P u f hf hrep).toLp (rawMean P f) | |
| 78 | + have hv : (v : Space → Space) =ᵐ[volume] rawMean P f := | |
| 79 | + (rawMean_memLp P u f hf hrep).coeFn_toLp | |
| 80 | + have he : embedding P v = average P (value P u) := by | |
| 81 | + apply Lp.ext | |
| 82 | + filter_upwards [lift_ae P v, | |
| 83 | + (Measure.quasiMeasurePreserving_fst (μ := (volume : Measure Space)) | |
| 84 | + (ν := (volume : Measure (AddCircle P)))).ae hv, | |
| 85 | + average_ae_rawMean P u f hf hrep] with z hl hm ha | |
| 86 | + exact hl.trans (hm.trans ha.symm) | |
| 87 | + have hm : mean P (value P u) = v := by | |
| 88 | + rw [← mean_average P (value P u), ← he, mean_embedding] | |
| 89 | + rw [hm] | |
| 90 | + exact hv | |
| 91 | + | |
| 92 | +end EulerCylinderSpatialMean | |
| 93 | +end | |
| 94 | + | |
| 95 | +end | |
| 96 | + | |
| 8 | 97 | noncomputable section |
| 9 | 98 | |
| 10 | 99 | namespace EulerCylinderSpatialMean |
+141 −1 Euler/CylinderTimeWords.lean View file
| @@ -1,9 +1,149 @@ | ||
| 1 | 1 | import Euler.CylinderTimeRegularity |
| 2 | -import Euler.CylinderClassicalWordBounds | |
| 2 | +import Euler.CylinderOrbitSobolev | |
| 3 | 3 | import Euler.SobolevWordBlocks |
| 4 | 4 | |
| 5 | 5 | /-! Every actual classical spatial/angular word differentiates in time on the closed interval. -/ |
| 6 | 6 | |
| 7 | +/-! ## From `Euler/CylinderClassicalWordBounds.lean` | |
| 8 | + | |
| 9 | +The text of `Euler/CylinderClassicalWordBounds.lean`, folded into this file, which was its only importer. -/ | |
| 10 | + | |
| 11 | +section | |
| 12 | + | |
| 13 | +/-! | |
| 14 | +# Exact classical mixed-word norms of the reconstructed cylinder field | |
| 15 | + | |
| 16 | +The actual classical spatial/angular derivatives represent the exact L² | |
| 17 | +translation words. Consequently the fixed-Hq external-word sum equals the | |
| 18 | +block used by the inverse estimate, with no alphabet factor or radius loss. | |
| 19 | +-/ | |
| 20 | + | |
| 21 | +noncomputable section | |
| 22 | + | |
| 23 | +namespace EulerCylinderSmoothOrbit | |
| 24 | + | |
| 25 | +open Set MeasureTheory ContinuousLinearMap Finset EulerSmoothLimit EulerLiftedGradientSpace | |
| 26 | + EulerLpCylinderTranslation EulerCylinderSobolev EulerSpatialSobolevInverse | |
| 27 | + EulerPressureSpatialRegularity EulerMetricTransport EulerStrongSmoothJet EulerParameterWordGevrey | |
| 28 | +open scoped ContDiff | |
| 29 | + | |
| 30 | +variable (period : ℝ) [Fact (0 < period)] | |
| 31 | + | |
| 32 | +/-- The actual strong L² derivative for an ordered mixed word. -/ | |
| 33 | +def strongWord (u : LiftL2 period) {n : ℕ} (w : Fin n → Fin 4) : LiftL2 period := | |
| 34 | + wordDerivative standardDirection (fun a : LiftTangent => translate period a u) w 0 | |
| 35 | + | |
| 36 | +@[simp] theorem strongWord_zero (u : LiftL2 period) (w : Fin 0 → Fin 4) : strongWord period u w = u := by | |
| 37 | + simp only [strongWord,wordDerivative_zero,translate_zero] | |
| 38 | + | |
| 39 | +/-- Appending a direction differentiates the actual field. -/ | |
| 40 | +theorem strongWord_snoc (u : LiftL2 period) (hu : SmoothOrbit period u) | |
| 41 | + {n : ℕ} (w : Fin n → Fin 4) (i : Fin 4) : | |
| 42 | + strongWord period u (Fin.snoc w i) = strongWord period (orbitDerivative period u (standardDirection i)) w := by | |
| 43 | + have he : directional standardDirection (fun a : LiftTangent => translate period a u) i = | |
| 44 | + fun a : LiftTangent => translate period a (orbitDerivative period u (standardDirection i)) := | |
| 45 | + funext (fun a => (orbitDerivative_translation period u hu (standardDirection i) a).symm) | |
| 46 | + unfold strongWord | |
| 47 | + rw [wordDerivative_snoc standardDirection _ hu w i 0,he] | |
| 48 | + | |
| 49 | +/-- A strong word is the actual mixed derivative at each translated label. -/ | |
| 50 | +theorem strongWord_translation (u : LiftL2 period) (hu : SmoothOrbit period u) | |
| 51 | + {n : ℕ} (w : Fin n → Fin 4) (a : LiftTangent) : | |
| 52 | + translate period a (strongWord period u w) = | |
| 53 | + wordDerivative standardDirection (fun b : LiftTangent => translate period b u) w a := by | |
| 54 | + induction n generalizing u with | |
| 55 | + | zero => simp only [strongWord_zero,wordDerivative_zero] | |
| 56 | + | succ n ih => | |
| 57 | + have ho : strongWord period u w = | |
| 58 | + strongWord period (orbitDerivative period u (standardDirection (w (Fin.last n)))) (Fin.init w) := by | |
| 59 | + simpa only [Fin.snoc_init_self] using strongWord_snoc period u hu (Fin.init w) (w (Fin.last n)) | |
| 60 | + rw [ho,ih _ (orbitDerivative_smooth period u hu _) (Fin.init w)] | |
| 61 | + have he : directional standardDirection (fun b : LiftTangent => translate period b u) (w (Fin.last n)) = | |
| 62 | + fun b : LiftTangent => translate period b (orbitDerivative period u (standardDirection (w (Fin.last n)))) := | |
| 63 | + funext (fun b => (orbitDerivative_translation period u hu _ b).symm) | |
| 64 | + simpa only [Fin.snoc_init_self,he] using | |
| 65 | + (wordDerivative_snoc standardDirection (fun b : LiftTangent => translate period b u) hu | |
| 66 | + (Fin.init w) (w (Fin.last n)) a).symm | |
| 67 | + | |
| 68 | +/-- Every strong word has its genuine smooth full mixed orbit. -/ | |
| 69 | +theorem strongWord_smooth (u : LiftL2 period) (hu : SmoothOrbit period u) | |
| 70 | + {n : ℕ} (w : Fin n → Fin 4) : SmoothOrbit period (strongWord period u w) := by | |
| 71 | + have he : (fun a : LiftTangent => translate period a (strongWord period u w)) = | |
| 72 | + wordDerivative standardDirection (fun a : LiftTangent => translate period a u) w := | |
| 73 | + funext (strongWord_translation period u hu w) | |
| 74 | + change ContDiff ℝ ∞ _ | |
| 75 | + rw [he] | |
| 76 | + exact wordDerivative_contDiff standardDirection _ hu w | |
| 77 | + | |
| 78 | +/-- The genuine strong word represents the literal classical cylinder derivative. -/ | |
| 79 | +theorem strongWord_ae (u : LiftL2 period) (hu : SmoothOrbit period u) | |
| 80 | + {n : ℕ} (w : Fin n → Fin 4) : | |
| 81 | + (strongWord period u w : LiftDomain period → Space) =ᵐ[liftMeasure period] | |
| 82 | + iteratedFieldDerivative period w (representative period u hu) := by | |
| 83 | + have h := jet_word_ae period (le_refl n) u (spatialJet period n u hu) w | |
| 84 | + (representative period u hu) (representative_ae period u hu) (representative_smooth period u hu) | |
| 85 | + rw [spatialJet_word period n n (le_refl n)] at h | |
| 86 | + exact h | |
| 87 | + | |
| 88 | +/-- The reconstructed derivative representative equals the actual classical derivative pointwise. -/ | |
| 89 | +theorem representative_strongWord (u : LiftL2 period) (hu : SmoothOrbit period u) | |
| 90 | + {n : ℕ} (w : Fin n → Fin 4) : | |
| 91 | + representative period (strongWord period u w) (strongWord_smooth period u hu w) = | |
| 92 | + iteratedFieldDerivative period w (representative period u hu) := by | |
| 93 | + apply Measure.eq_of_ae_eq | |
| 94 | + ((representative_ae period _ (strongWord_smooth period u hu w)).symm.trans (strongWord_ae period u hu w)) | |
| 95 | + · exact smoothField_continuous period _ (representative_smooth period _ _) | |
| 96 | + · exact smoothField_continuous period _ | |
| 97 | + (iteratedFieldDerivative_smooth period w _ (representative_smooth period u hu)) | |
| 98 | + | |
| 99 | +/-- The actual classical Hq norm is exactly the finite mixed-word base sum. -/ | |
| 100 | +theorem classicalBaseSize_eq (q : ℕ) (u : LiftL2 period) (hu : SmoothOrbit period u) : | |
| 101 | + liftSobolevNorm period q (representative period u hu) = | |
| 102 | + baseSize standardDirection q (fun a : LiftTangent => translate period a u) 0 := by | |
| 103 | + rw [← jet_sobolevNorm_eq period u (spatialJet period q u hu) (representative period u hu) | |
| 104 | + (representative_ae period u hu) (representative_smooth period u hu)] | |
| 105 | + exact spatialJet_norm period q u hu | |
| 106 | + | |
| 107 | +/-- The source's actual fixed-Hq external-word sum, on the literal classical field. -/ | |
| 108 | +def classicalBlockSize (q : ℕ) (u : LiftL2 period) (hu : SmoothOrbit period u) (n : ℕ) : ℝ := | |
| 109 | + ∑ w : Fin n → Fin 4, liftSobolevNorm period q | |
| 110 | + (iteratedFieldDerivative period w (representative period u hu)) | |
| 111 | + | |
| 112 | +/-- Exact norm identification, with no dimension factor and no radius enlargement. -/ | |
| 113 | +theorem classicalBlockSize_eq (q : ℕ) (u : LiftL2 period) (hu : SmoothOrbit period u) (n : ℕ) : | |
| 114 | + classicalBlockSize period q u hu n = | |
| 115 | + block standardDirection q (fun a : LiftTangent => translate period a u) n 0 := by | |
| 116 | + unfold classicalBlockSize block | |
| 117 | + apply sum_congr rfl | |
| 118 | + intro w _ | |
| 119 | + rw [← representative_strongWord period u hu w,classicalBaseSize_eq] | |
| 120 | + exact congrArg (fun g : LiftTangent → LiftL2 period => baseSize standardDirection q g 0) | |
| 121 | + (funext (strongWord_translation period u hu w)) | |
| 122 | + | |
| 123 | +variable {K : Type*} [TopologicalSpace K] [CompactSpace K] | |
| 124 | + | |
| 125 | +/-- Time evaluation is a contraction, including for the full actual mixed-word Hq norm. -/ | |
| 126 | +theorem path_classicalBlockSize_le (q : ℕ) (p : C(K,LiftL2 period)) | |
| 127 | + (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate period a p)) | |
| 128 | + (t : K) (n : ℕ) : | |
| 129 | + classicalBlockSize period q (p t) (path_evaluation_smooth period p hp t) n ≤ | |
| 130 | + block standardDirection q (fun a : LiftTangent => pathTranslate period a p) n 0 := by | |
| 131 | + rw [classicalBlockSize_eq] | |
| 132 | + have hn : ‖(ContinuousMap.evalCLM ℝ t : C(K,LiftL2 period) →L[ℝ] LiftL2 period)‖ ≤ 1 := by | |
| 133 | + apply opNorm_le_bound _ zero_le_one | |
| 134 | + intro f | |
| 135 | + simpa only [one_mul,ContinuousMap.evalCLM_apply] using f.norm_coe_le_norm t | |
| 136 | + have h := block_comp_clm_le standardDirection q | |
| 137 | + (ContinuousMap.evalCLM ℝ t : C(K,LiftL2 period) →L[ℝ] LiftL2 period) | |
| 138 | + (fun a : LiftTangent => pathTranslate period a p) hp n 0 | |
| 139 | + exact h.trans ((mul_le_mul_of_nonneg_right hn | |
| 140 | + (block_nonneg standardDirection q _ n 0)).trans_eq (one_mul _)) | |
| 141 | + | |
| 142 | +end EulerCylinderSmoothOrbit | |
| 143 | +end | |
| 144 | + | |
| 145 | +end | |
| 146 | + | |
| 7 | 147 | noncomputable section |
| 8 | 148 | |
| 9 | 149 | namespace EulerCylinderSmoothOrbit |
+75 −0 docs/s5-folding/ContentTail.lean added View file
| @@ -0,0 +1,75 @@ | ||
| 1 | + | |
| 2 | +-- Every named constant of the two libraries with a hash of its type (and of its value when it is a definition) in which | |
| 3 | +-- an auxiliary constant counts by what it is, not by what it is called: private declarations, nested-proof lemmas, | |
| 4 | +-- matchers and automatically named local instances get their names from the module and from the order of elaboration, | |
| 5 | +-- and a fold changes both. A theorem met inside a term counts by its statement alone. | |
| 6 | +open Lean | |
| 7 | + | |
| 8 | +namespace FoldCheck | |
| 9 | + | |
| 10 | +def isAux (n : Name) : Bool := | |
| 11 | + n.components.any fun c => match c with | |
| 12 | + | .str _ s => s.startsWith "_" || (s.startsWith "match_" && (s.drop 6).all Char.isDigit) || (s.startsWith "proof_" && (s.drop 6).all Char.isDigit) | |
| 13 | + | .num _ _ => true | |
| 14 | + | .anonymous => false | |
| 15 | + | |
| 16 | +def userName (n : Name) : Name := | |
| 17 | + if isPrivateName n then ((n.components.dropWhile fun c => !c.isNum).drop 1).foldl (· ++ ·) `_private else n | |
| 18 | + | |
| 19 | +abbrev M := StateM (Std.HashMap Name UInt64 × Std.HashSet Name) | |
| 20 | + | |
| 21 | +mutual | |
| 22 | + partial def constHash (env : Environment) (n : Name) : M UInt64 := do | |
| 23 | + if let some h := (← get).1[n]? then return h | |
| 24 | + if (← get).2.contains n then return hash (userName n) | |
| 25 | + let some ci := env.find? n | return hash (userName n) | |
| 26 | + modify fun (m, v) => (m, v.insert n) | |
| 27 | + let th ← exprHash env ci.type | |
| 28 | + let (k, vh) ← match ci with | |
| 29 | + | .thmInfo _ => pure ((1 : UInt64), (0 : UInt64)) | |
| 30 | + | .defnInfo d => do pure (2, ← exprHash env d.value) | |
| 31 | + | .opaqueInfo d => do pure (3, ← exprHash env d.value) | |
| 32 | + | .ctorInfo c => pure (4, c.cidx.toUInt64) | |
| 33 | + | .inductInfo _ => pure (5, 0) | |
| 34 | + | .recInfo _ => pure (6, 0) | |
| 35 | + | _ => pure (7, 0) | |
| 36 | + let h := mixHash k (mixHash th vh) | |
| 37 | + modify fun (m, v) => (m.insert n h, v.erase n) | |
| 38 | + return h | |
| 39 | + partial def exprHash (env : Environment) (e : Expr) : M UInt64 := do | |
| 40 | + for u in e.getUsedConstants do | |
| 41 | + if isAux u then discard <| constHash env u | |
| 42 | + let memo := (← get).1 | |
| 43 | + let e' := e.replace fun | |
| 44 | + | .const n ls => if isAux n then some (.const (Name.mkNum `_h (memo.getD n 0).toNat) ls) else none | |
| 45 | + | _ => none | |
| 46 | + return e'.hash | |
| 47 | +end | |
| 48 | + | |
| 49 | +end FoldCheck | |
| 50 | + | |
| 51 | +open FoldCheck in | |
| 52 | +#eval show CoreM Unit from do | |
| 53 | + let env ← getEnv | |
| 54 | + let mods := env.header.moduleNames | |
| 55 | + let proj (m : Name) : Bool := m.getRoot == `NavierStokes || m.getRoot == `Euler | |
| 56 | + let h ← IO.FS.Handle.mk "/out/content.tsv" IO.FS.Mode.write | |
| 57 | + let mut st : Std.HashMap Name UInt64 × Std.HashSet Name := ({}, {}) | |
| 58 | + let mut n := 0 | |
| 59 | + for (c, ci) in env.constants.map₁.toList do | |
| 60 | + let some idx := env.getModuleIdxFor? c | continue | |
| 61 | + unless proj mods[idx.toNat]! do continue | |
| 62 | + if isAux c then continue | |
| 63 | + let (th, st1) := (exprHash env ci.type).run st | |
| 64 | + st := st1 | |
| 65 | + let mut v := "-" | |
| 66 | + match ci with | |
| 67 | + | .defnInfo d => let (vh, st2) := (exprHash env d.value).run st; st := st2; v := toString vh | |
| 68 | + | .opaqueInfo d => let (vh, st2) := (exprHash env d.value).run st; st := st2; v := toString vh | |
| 69 | + | _ => pure () | |
| 70 | + let kind := match ci with | |
| 71 | + | .thmInfo _ => "theorem" | .defnInfo _ => "def" | .axiomInfo _ => "axiom" | .opaqueInfo _ => "opaque" | |
| 72 | + | .inductInfo _ => "inductive" | .ctorInfo _ => "ctor" | .recInfo _ => "rec" | .quotInfo _ => "quot" | |
| 73 | + h.putStrLn s!"{c}\t{kind}\t{th}\t{v}" | |
| 74 | + n := n + 1 | |
| 75 | + IO.println s!"{n} named constants written" | |
+12 −0 docs/s5-folding/README.md View file
| @@ -101,3 +101,15 @@ Each pull request of the series keeps its plan in its route notes (`routes/<bran | ||
| 101 | 101 | ## What this does not show |
| 102 | 102 | |
| 103 | 103 | The wall-clock time of a build on your machine; that every file is now in its best shape for reading (P-8 splits the large ones; nothing here grows past 600 lines). |
| 104 | + | |
| 105 | +## Statements, and the series as it was opened | |
| 106 | + | |
| 107 | +The first pull request of the series was cut from a plan of 582 folds. Before the others were opened, main and the folded tree were both built and every named constant of the two libraries was listed with a hash of its type and, for a definition, of its value (`ContentTail.lean`, after one `import` line a module). In that listing an auxiliary constant inside a term (a private declaration, a nested-proof lemma, an automatically named local instance) counts by what it is, not by its name, and a theorem by its statement: a fold changes the names of such constants and nothing else about them. | |
| 108 | + | |
| 109 | +The first plan did not pass. Of 53,802 named constants, 12 differed. In one, `Euler.ComparatorBridge.compactSolenoidalTests_representation`, the word `divergence` resolved to `Euler.divergence` in the folded file and to `EulerSmoothLimit.divergence` on main: once folded, the text saw more names. The build passed all the same. In the others an instance was found by another path (`NormedCommRing ℂ` through the C⋆-algebra instances, `DistribSMul ℝ` through the semiring), or a proof inside the statement differed. | |
| 110 | + | |
| 111 | +Two changes followed. `fold.py` now puts a folded module's imports where its import line stood, so that every other module is loaded in the order it was loaded before (a plan file says which way it was cut, and `check` follows it, so the first pull request still checks). And five files keep their modules: `Euler/CompactProjectedEulerLaw.lean`, `Euler/CylinderJetLpAlgebra.lean`, `Euler/MeanCutoffDifferenceBound.lean`, `NavierStokes/R3/CompactEnergy.lean`, `NavierStokes/R3/PressureRecovery.lean`. | |
| 112 | + | |
| 113 | +The series as opened is 575 folds into 338 files. On it the two listings are equal: 53,802 named constants, none missing, none with another type or value; the first pull request's twelve folds were checked alone and are equal too. The whole tree goes from 54.73 T instructions over 2,587 files to 50.97 T over 2,012 (−6.9%), in place of the figures at the top of this page. | |
| 114 | + | |
| 115 | +What the listing does not show: that two terms with different hashes mean different things (the twelve were read one by one), or anything about proofs, which are not listed. | |
+30 −11 docs/s5-folding/fold.py View file
| @@ -111,11 +111,21 @@ def plan(src, small, cap, skip=()): | ||
| 111 | 111 | return {a: p for a, p in parts.items() if len(p) > 1} |
| 112 | 112 | |
| 113 | 113 | |
| 114 | -def folded(src, host, parts): | |
| 115 | - """the host's new text""" | |
| 114 | +def folded(src, host, parts, inplace=False): | |
| 115 | + """the host's new text. `inplace`: a folded module's import line is replaced, where it stood, by that module's own | |
| 116 | + imports, so that every other module is loaded in the order it was loaded before (Lean breaks ties between instances | |
| 117 | + by that order); otherwise the folded modules' imports come after the host's own.""" | |
| 116 | 118 | head, mods, body = split(src[host]) |
| 117 | - inside = {module(p) for p in parts} | |
| 118 | - new = [m for m in mods if m not in inside] | |
| 119 | + inside = {module(p): p for p in parts[:-1]} | |
| 120 | + if inplace: | |
| 121 | + new = [] | |
| 122 | + def take(ms): | |
| 123 | + for m in ms: | |
| 124 | + if m in inside: take(split(src[inside[m]])[1]) | |
| 125 | + elif m not in new: new.append(m) | |
| 126 | + take(mods) | |
| 127 | + else: | |
| 128 | + new = [m for m in mods if m not in inside] | |
| 119 | 129 | out_parts = [] |
| 120 | 130 | for p in parts[:-1]: |
| 121 | 131 | h, pm, pb = split(src[p]) |
| @@ -141,10 +151,16 @@ def folded(src, host, parts): | ||
| 141 | 151 | return "\n".join(out + body) |
| 142 | 152 | |
| 143 | 153 | |
| 144 | -def apply(tree, pl): | |
| 154 | +def load(path): | |
| 155 | + """(the folds, whether imports go in place) of a plan file; the first plans were a bare table of folds""" | |
| 156 | + d = json.load(open(path)) | |
| 157 | + return (d["folds"], d.get("imports") == "in place") if "folds" in d else (d, False) | |
| 158 | + | |
| 159 | + | |
| 160 | +def apply(tree, pl, inplace=False): | |
| 145 | 161 | src = read_tree(tree) |
| 146 | 162 | for host, parts in pl.items(): |
| 147 | - text = folded(src, host, parts) | |
| 163 | + text = folded(src, host, parts, inplace) | |
| 148 | 164 | # every line of every folded file and of the host is still there (imports aside) |
| 149 | 165 | want = collections.Counter(l for p in parts for l in (lambda s: s[0] + s[2])(split(src[p])) if l.strip()) |
| 150 | 166 | have = collections.Counter(l for l in text.split("\n") if l.strip() and not IMPORT.match(l)) |
| @@ -153,12 +169,12 @@ def apply(tree, pl): | ||
| 153 | 169 | for p in parts[:-1]: os.remove(os.path.join(tree, p)) |
| 154 | 170 | |
| 155 | 171 | |
| 156 | -def check(repo, pl, rev): | |
| 172 | +def check(repo, pl, rev, inplace=False): | |
| 157 | 173 | """the working tree against what `apply` makes of the revision's text: every changed file, byte for byte""" |
| 158 | 174 | show = lambda f: subprocess.run(["git", "-C", repo, "show", f"{rev}:{f}"], capture_output=True, text=True, check=True).stdout |
| 159 | 175 | bad = [] |
| 160 | 176 | for host, parts in pl.items(): |
| 161 | - want = folded({p: show(p) for p in parts}, host, parts) | |
| 177 | + want = folded({p: show(p) for p in parts}, host, parts, inplace) | |
| 162 | 178 | path = os.path.join(repo, host) |
| 163 | 179 | if not os.path.exists(path) or open(path, encoding="utf-8").read() != want: bad.append(f"{host} is not {rev}'s text folded") |
| 164 | 180 | bad += [f"{p} is still there" for p in parts[:-1] if os.path.exists(os.path.join(repo, p))] |
| @@ -178,6 +194,9 @@ def self_test(): | ||
| 178 | 194 | assert t.startswith("import Mathlib.X\nimport Euler.Bar\nimport Mathlib.Y\n\n/-! # A -/\n"), t |
| 179 | 195 | assert "end Euler.B\nend\n\nend\n" in t and t.index("theorem c") < t.index("theorem b") < t.index("theorem a"), t |
| 180 | 196 | assert unclosed(src["Euler/FooB.lean"].split("\n")) == [("section", ""), ("namespace", "Euler.B")] |
| 197 | + t2 = folded(src, "Euler/FooA.lean", pl["Euler/FooA.lean"], inplace=True) | |
| 198 | + assert t2.startswith("import Mathlib.X\nimport Mathlib.Y\nimport Euler.Bar\n\n/-! # A -/\n"), t2 | |
| 199 | + assert t2.split("\n\n", 1)[1] == t.split("\n\n", 1)[1] | |
| 181 | 200 | assert plan(src, 100, 1000, skip={"Euler/FooB.lean"}) == {} |
| 182 | 201 | assert plan(src, 2, 1000) == {}, plan(src, 2, 1000) |
| 183 | 202 | print("ok") |
| @@ -191,10 +210,10 @@ if __name__ == "__main__": | ||
| 191 | 210 | src = read_tree(a[1]) |
| 192 | 211 | skip = set(open(opt("--skip", "")).read().split()) if "--skip" in a else set() |
| 193 | 212 | pl = plan(src, int(opt("--small", 200)), int(opt("--cap", 600)), skip) |
| 194 | - json.dump(pl, open(a[2], "w"), indent=0) | |
| 213 | + json.dump({"imports": "in place", "folds": pl}, open(a[2], "w"), indent=0) | |
| 195 | 214 | n = sum(len(p) - 1 for p in pl.values()) |
| 196 | 215 | print(f"folds: {n} modules into {len(pl)} files in {len({fam(h) for h in pl})} families; largest file after: {max((sum(src[p].count(chr(10)) for p in ps), h) for h, ps in pl.items()) if pl else None}") |
| 197 | 216 | elif a[0] == "check": |
| 198 | - sys.exit(check(a[1], json.load(open(a[2])), a[3] if len(a) > 3 else "origin/main")) | |
| 217 | + pl, inplace = load(a[2]); sys.exit(check(a[1], pl, a[3] if len(a) > 3 else "origin/main", inplace)) | |
| 199 | 218 | elif a[0] == "apply": |
| 200 | - pl = json.load(open(a[2])); apply(a[1], pl); print("applied", sum(len(p) - 1 for p in pl.values()), "folds") | |
| 219 | + pl, inplace = load(a[2]); apply(a[1], pl, inplace); print("applied", sum(len(p) - 1 for p in pl.values()), "folds") | |
+11 −0 routes/s5-euler-cylinder-1/README.md added View file
| @@ -0,0 +1,11 @@ | ||
| 1 | +--- | |
| 2 | +issue: 14 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s5-euler-cylinder-1 | |
| 6 | + | |
| 7 | +The family `Euler/Cylinder*`: 17 small modules, each with exactly one importer in the same folder and family, folded into the 14 files that import them. The text of each module moves unchanged into its importer, under a heading that names it and in a `section` of its own, before the importer's own text; the importer takes over its imports. The plan is `plan.json` here, and `docs/s5-folding/fold.py check . routes/s5-euler-cylinder-1/plan.json` makes every changed file again from main's text and compares byte for byte. | |
| 8 | + | |
| 9 | +## Next | |
| 10 | + | |
| 11 | +The pull request is open. What comes next is the maintainer's verdict on this family; the rest of the series' folds wait on it, one family per pull request. | |
+64 −0 routes/s5-euler-cylinder-1/plan.json added View file
| @@ -0,0 +1,64 @@ | ||
| 1 | +{ | |
| 2 | +"imports": "in place", | |
| 3 | +"folds": { | |
| 4 | +"Euler/CylinderCoverDescent.lean": [ | |
| 5 | +"Euler/CylinderMeasureDescent.lean", | |
| 6 | +"Euler/CylinderCoverDescent.lean" | |
| 7 | +], | |
| 8 | +"Euler/CylinderDirichletPhysicalBounds.lean": [ | |
| 9 | +"Euler/CylinderDirichletSobolev.lean", | |
| 10 | +"Euler/CylinderDirichletTimeBounds.lean", | |
| 11 | +"Euler/CylinderDirichletPhysicalBounds.lean" | |
| 12 | +], | |
| 13 | +"Euler/CylinderDirichletRegularity.lean": [ | |
| 14 | +"Euler/CylinderDirichletTranslation.lean", | |
| 15 | +"Euler/CylinderDirichletRegularity.lean" | |
| 16 | +], | |
| 17 | +"Euler/CylinderEndpointPointwise.lean": [ | |
| 18 | +"Euler/CylinderRetractRepresentative.lean", | |
| 19 | +"Euler/CylinderPathIntegral.lean", | |
| 20 | +"Euler/CylinderEndpointPointwise.lean" | |
| 21 | +], | |
| 22 | +"Euler/CylinderEndpointUnitBounds.lean": [ | |
| 23 | +"Euler/CylinderEndpointBudget.lean", | |
| 24 | +"Euler/CylinderEndpointUnitBounds.lean" | |
| 25 | +], | |
| 26 | +"Euler/CylinderGraphDerivative.lean": [ | |
| 27 | +"Euler/CylinderGraphAffine.lean", | |
| 28 | +"Euler/CylinderGraphDerivative.lean" | |
| 29 | +], | |
| 30 | +"Euler/CylinderGraphGevrey.lean": [ | |
| 31 | +"Euler/CylinderJetGraphTrace.lean", | |
| 32 | +"Euler/CylinderGraphGevrey.lean" | |
| 33 | +], | |
| 34 | +"Euler/CylinderHeatLaplacian.lean": [ | |
| 35 | +"Euler/CylinderHeatEquation.lean", | |
| 36 | +"Euler/CylinderHeatLaplacian.lean" | |
| 37 | +], | |
| 38 | +"Euler/CylinderPathAdvection.lean": [ | |
| 39 | +"Euler/CylinderPathDerivativeProduct.lean", | |
| 40 | +"Euler/CylinderPathAdvection.lean" | |
| 41 | +], | |
| 42 | +"Euler/CylinderPotentialPath.lean": [ | |
| 43 | +"Euler/CylinderAngleWordBounds.lean", | |
| 44 | +"Euler/CylinderAngleEvolution.lean", | |
| 45 | +"Euler/CylinderPotentialPath.lean" | |
| 46 | +], | |
| 47 | +"Euler/CylinderScalarAverage.lean": [ | |
| 48 | +"Euler/CylinderScalarRepresentative.lean", | |
| 49 | +"Euler/CylinderScalarAverage.lean" | |
| 50 | +], | |
| 51 | +"Euler/CylinderSlowCurlTime.lean": [ | |
| 52 | +"Euler/CylinderSlowCurlBounds.lean", | |
| 53 | +"Euler/CylinderSlowCurlTime.lean" | |
| 54 | +], | |
| 55 | +"Euler/CylinderSpatialMeanTime.lean": [ | |
| 56 | +"Euler/CylinderSpatialMeanRepresentative.lean", | |
| 57 | +"Euler/CylinderSpatialMeanTime.lean" | |
| 58 | +], | |
| 59 | +"Euler/CylinderTimeWords.lean": [ | |
| 60 | +"Euler/CylinderClassicalWordBounds.lean", | |
| 61 | +"Euler/CylinderTimeWords.lean" | |
| 62 | +] | |
| 63 | +} | |
| 64 | +} | |