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

Merge pull request #681 from s5-euler-base-1
Browse filesrefactor(Euler/Base): 14 small modules folded into the file that imports them (−17.4%, measured)
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+0 −96 Euler/BaseEulerDatum.lean deleted
| @@ -1,96 +0,0 @@ | ||
| 1 | -import Euler.GevreyCompactProduct | |
| 2 | -import Euler.PacketPotentialRegularity | |
| 3 | -import Euler.MeanSolenoidalSpace | |
| 4 | - | |
| 5 | -/-! The compact initial velocity in the manuscript is constructed using | |
| 6 | -the fixed factorial-bounded outer cutoff and the actual curl potential. -/ | |
| 7 | - | |
| 8 | -noncomputable section | |
| 9 | - | |
| 10 | -namespace EulerBaseDatum | |
| 11 | - | |
| 12 | -open Set Filter ContinuousLinearMap MeasureTheory EulerSmoothLimit EulerVectorCalculus | |
| 13 | - EulerSpatialCutoffs EulerGevrey EulerGevreyFunctions EulerLpTranslation EulerMeanSolenoidal | |
| 14 | -open scoped ContDiff Topology | |
| 15 | - | |
| 16 | -def potential (L : Space →L[ℝ] Space) (i : Fin 3) (x : Space) : ℝ := | |
| 17 | - outerCutoff x*linearPotential L i x | |
| 18 | - | |
| 19 | -theorem potential_smooth (L : Space →L[ℝ] Space) (i : Fin 3) : | |
| 20 | - ContDiff ℝ ∞ (potential L i) := | |
| 21 | - outerCutoff_contDiff.mul (contDiff_linearPotential L i) | |
| 22 | - | |
| 23 | -theorem potential_support (L : Space →L[ℝ] Space) (i : Fin 3) : | |
| 24 | - tsupport (potential L i) ⊆ Metric.closedBall (0 : Space) 2 := | |
| 25 | - tsupport_mul_subset_left.trans outerCutoff_support | |
| 26 | - | |
| 27 | -def velocity (L : Space →L[ℝ] Space) : Space → Space := curl (potential L) | |
| 28 | - | |
| 29 | -theorem velocity_smooth (L : Space →L[ℝ] Space) : ContDiff ℝ ∞ (velocity L) := | |
| 30 | - contDiff_curl (potential L) (potential_smooth L) | |
| 31 | - | |
| 32 | -theorem velocity_support (L : Space →L[ℝ] Space) : | |
| 33 | - tsupport (velocity L) ⊆ Metric.closedBall (0 : Space) 2 := | |
| 34 | - tsupport_curl_subset (potential L) _ Metric.isClosed_closedBall (potential_support L) | |
| 35 | - | |
| 36 | -theorem velocity_compact (L : Space →L[ℝ] Space) : HasCompactSupport (velocity L) := | |
| 37 | - (isCompact_closedBall (0 : Space) 2).of_isClosed_subset | |
| 38 | - (isClosed_tsupport _) (velocity_support L) | |
| 39 | - | |
| 40 | -theorem velocity_divergence (L : Space →L[ℝ] Space) (x : Space) : | |
| 41 | - divergence (velocity L) x=0 := divergence_curl (potential L) (potential_smooth L) x | |
| 42 | - | |
| 43 | -theorem velocity_odd (L : Space →L[ℝ] Space) (x : Space) : velocity L (-x)= -velocity L x := by | |
| 44 | - apply odd_curl_of_even (potential L) (fun i => (potential_smooth L i).differentiable (by simp)) | |
| 45 | - intro i y | |
| 46 | - simp only [potential,outerCutoff_even,linearPotential_even] | |
| 47 | - | |
| 48 | -theorem velocity_plateau (L : Space →L[ℝ] Space) (hL : LinearMap.trace ℝ Space L.toLinearMap=0) | |
| 49 | - (x : Space) (hx : ‖x‖ < 1) : velocity L x=L x := by | |
| 50 | - have he (i : Fin 3) : potential L i =ᶠ[𝓝 x] linearPotential L i := by | |
| 51 | - have hx' : x ∈ Metric.ball (0 : Space) 1 := by simpa only [Metric.mem_ball,dist_zero_right] using hx | |
| 52 | - filter_upwards [Metric.isOpen_ball.mem_nhds hx'] with y hy | |
| 53 | - have hy' : ‖y‖ ≤ 1 := (by simpa only [Metric.mem_ball,dist_zero_right] using hy : ‖y‖ < 1).le | |
| 54 | - simp only [potential,outerCutoff_one y hy',one_mul] | |
| 55 | - exact (curl_congr_nhds _ _ x he).trans (curl_linearPotential_of_trace_zero L hL x) | |
| 56 | - | |
| 57 | -theorem velocity_fderiv_plateau (L : Space →L[ℝ] Space) | |
| 58 | - (hL : LinearMap.trace ℝ Space L.toLinearMap=0) (x : Space) (hx : ‖x‖ < 1) : | |
| 59 | - fderiv ℝ (velocity L) x=L := by | |
| 60 | - have he : velocity L =ᶠ[𝓝 x] (L : Space → Space) := by | |
| 61 | - have hx' : x ∈ Metric.ball (0 : Space) 1 := by simpa only [Metric.mem_ball,dist_zero_right] using hx | |
| 62 | - filter_upwards [Metric.isOpen_ball.mem_nhds hx'] with y hy | |
| 63 | - exact velocity_plateau L hL y (by simpa only [Metric.mem_ball,dist_zero_right] using hy) | |
| 64 | - exact he.fderiv_eq.trans L.fderiv | |
| 65 | - | |
| 66 | -def field (L : Space →L[ℝ] Space) : SmoothL2Field Space where | |
| 67 | - field := velocity L | |
| 68 | - smooth := velocity_smooth L | |
| 69 | - integrable n := ((velocity_smooth L).continuous_iteratedFDeriv (m := n) (by simp)).memLp_of_hasCompactSupport | |
| 70 | - ((velocity_compact L).iteratedFDeriv n) | |
| 71 | - | |
| 72 | -def linear (β : ℝ) : Space →L[ℝ] Space := | |
| 73 | - (EuclideanSpace.proj 1).smulRight (EuclideanSpace.single 0 1+β • EuclideanSpace.single 2 1) | |
| 74 | - | |
| 75 | -@[simp] theorem linear_apply (β : ℝ) (x : Space) : | |
| 76 | - linear β x=x 1 • (EuclideanSpace.single 0 1+β • EuclideanSpace.single 2 1) := rfl | |
| 77 | - | |
| 78 | -theorem linear_trace (β : ℝ) : LinearMap.trace ℝ Space (linear β).toLinearMap=0 := by | |
| 79 | - rw [← coordinateTrace_eq_linearTrace] | |
| 80 | - simp [coordinateTrace,Fin.sum_univ_three,linear_apply,PiLp.smul_apply] | |
| 81 | - | |
| 82 | -theorem linear_norm (β : ℝ) : ‖linear β‖ ≤ 1+|β| := by | |
| 83 | - apply opNorm_le_bound _ (by positivity) | |
| 84 | - intro x | |
| 85 | - rw [linear_apply,norm_smul,Real.norm_eq_abs] | |
| 86 | - have hv : ‖(EuclideanSpace.single 0 1 : Space)+β • EuclideanSpace.single 2 1‖ ≤ 1+|β| := by | |
| 87 | - apply (norm_add_le _ _).trans | |
| 88 | - rw [norm_smul,Real.norm_eq_abs] | |
| 89 | - simp | |
| 90 | - exact (mul_le_mul (PiLp.norm_apply_le x 1) hv (norm_nonneg _) (norm_nonneg x)).trans_eq (mul_comm _ _) | |
| 91 | - | |
| 92 | -theorem linear_q (β : ℝ) : | |
| 93 | - linear β (EuclideanSpace.single 1 1)=EuclideanSpace.single 0 1+β • EuclideanSpace.single 2 1 := by | |
| 94 | - simp [linear_apply] | |
| 95 | - | |
| 96 | -end EulerBaseDatum | |
+105 −1 Euler/BaseEulerGevrey.lean View file
| @@ -1,9 +1,113 @@ | ||
| 1 | -import Euler.BaseEulerDatum | |
| 1 | +import Euler.GevreyCompactProduct | |
| 2 | +import Euler.PacketPotentialRegularity | |
| 3 | +import Euler.MeanSolenoidalSpace | |
| 2 | 4 | import Euler.CompactSmoothL2Bounds |
| 3 | 5 | |
| 4 | 6 | /-! The actual compact base datum has factorial bounds uniform in the |
| 5 | 7 | small transverse parameter. All constants use the fixed cutoff only. -/ |
| 6 | 8 | |
| 9 | +/-! ## From `Euler/BaseEulerDatum.lean` | |
| 10 | + | |
| 11 | +The text of `Euler/BaseEulerDatum.lean`, folded into this file, which was its only importer. -/ | |
| 12 | + | |
| 13 | +section | |
| 14 | + | |
| 15 | +/-! The compact initial velocity in the manuscript is constructed using | |
| 16 | +the fixed factorial-bounded outer cutoff and the actual curl potential. -/ | |
| 17 | + | |
| 18 | +noncomputable section | |
| 19 | + | |
| 20 | +namespace EulerBaseDatum | |
| 21 | + | |
| 22 | +open Set Filter ContinuousLinearMap MeasureTheory EulerSmoothLimit EulerVectorCalculus | |
| 23 | + EulerSpatialCutoffs EulerGevrey EulerGevreyFunctions EulerLpTranslation EulerMeanSolenoidal | |
| 24 | +open scoped ContDiff Topology | |
| 25 | + | |
| 26 | +def potential (L : Space →L[ℝ] Space) (i : Fin 3) (x : Space) : ℝ := | |
| 27 | + outerCutoff x*linearPotential L i x | |
| 28 | + | |
| 29 | +theorem potential_smooth (L : Space →L[ℝ] Space) (i : Fin 3) : | |
| 30 | + ContDiff ℝ ∞ (potential L i) := | |
| 31 | + outerCutoff_contDiff.mul (contDiff_linearPotential L i) | |
| 32 | + | |
| 33 | +theorem potential_support (L : Space →L[ℝ] Space) (i : Fin 3) : | |
| 34 | + tsupport (potential L i) ⊆ Metric.closedBall (0 : Space) 2 := | |
| 35 | + tsupport_mul_subset_left.trans outerCutoff_support | |
| 36 | + | |
| 37 | +def velocity (L : Space →L[ℝ] Space) : Space → Space := curl (potential L) | |
| 38 | + | |
| 39 | +theorem velocity_smooth (L : Space →L[ℝ] Space) : ContDiff ℝ ∞ (velocity L) := | |
| 40 | + contDiff_curl (potential L) (potential_smooth L) | |
| 41 | + | |
| 42 | +theorem velocity_support (L : Space →L[ℝ] Space) : | |
| 43 | + tsupport (velocity L) ⊆ Metric.closedBall (0 : Space) 2 := | |
| 44 | + tsupport_curl_subset (potential L) _ Metric.isClosed_closedBall (potential_support L) | |
| 45 | + | |
| 46 | +theorem velocity_compact (L : Space →L[ℝ] Space) : HasCompactSupport (velocity L) := | |
| 47 | + (isCompact_closedBall (0 : Space) 2).of_isClosed_subset | |
| 48 | + (isClosed_tsupport _) (velocity_support L) | |
| 49 | + | |
| 50 | +theorem velocity_divergence (L : Space →L[ℝ] Space) (x : Space) : | |
| 51 | + divergence (velocity L) x=0 := divergence_curl (potential L) (potential_smooth L) x | |
| 52 | + | |
| 53 | +theorem velocity_odd (L : Space →L[ℝ] Space) (x : Space) : velocity L (-x)= -velocity L x := by | |
| 54 | + apply odd_curl_of_even (potential L) (fun i => (potential_smooth L i).differentiable (by simp)) | |
| 55 | + intro i y | |
| 56 | + simp only [potential,outerCutoff_even,linearPotential_even] | |
| 57 | + | |
| 58 | +theorem velocity_plateau (L : Space →L[ℝ] Space) (hL : LinearMap.trace ℝ Space L.toLinearMap=0) | |
| 59 | + (x : Space) (hx : ‖x‖ < 1) : velocity L x=L x := by | |
| 60 | + have he (i : Fin 3) : potential L i =ᶠ[𝓝 x] linearPotential L i := by | |
| 61 | + have hx' : x ∈ Metric.ball (0 : Space) 1 := by simpa only [Metric.mem_ball,dist_zero_right] using hx | |
| 62 | + filter_upwards [Metric.isOpen_ball.mem_nhds hx'] with y hy | |
| 63 | + have hy' : ‖y‖ ≤ 1 := (by simpa only [Metric.mem_ball,dist_zero_right] using hy : ‖y‖ < 1).le | |
| 64 | + simp only [potential,outerCutoff_one y hy',one_mul] | |
| 65 | + exact (curl_congr_nhds _ _ x he).trans (curl_linearPotential_of_trace_zero L hL x) | |
| 66 | + | |
| 67 | +theorem velocity_fderiv_plateau (L : Space →L[ℝ] Space) | |
| 68 | + (hL : LinearMap.trace ℝ Space L.toLinearMap=0) (x : Space) (hx : ‖x‖ < 1) : | |
| 69 | + fderiv ℝ (velocity L) x=L := by | |
| 70 | + have he : velocity L =ᶠ[𝓝 x] (L : Space → Space) := by | |
| 71 | + have hx' : x ∈ Metric.ball (0 : Space) 1 := by simpa only [Metric.mem_ball,dist_zero_right] using hx | |
| 72 | + filter_upwards [Metric.isOpen_ball.mem_nhds hx'] with y hy | |
| 73 | + exact velocity_plateau L hL y (by simpa only [Metric.mem_ball,dist_zero_right] using hy) | |
| 74 | + exact he.fderiv_eq.trans L.fderiv | |
| 75 | + | |
| 76 | +def field (L : Space →L[ℝ] Space) : SmoothL2Field Space where | |
| 77 | + field := velocity L | |
| 78 | + smooth := velocity_smooth L | |
| 79 | + integrable n := ((velocity_smooth L).continuous_iteratedFDeriv (m := n) (by simp)).memLp_of_hasCompactSupport | |
| 80 | + ((velocity_compact L).iteratedFDeriv n) | |
| 81 | + | |
| 82 | +def linear (β : ℝ) : Space →L[ℝ] Space := | |
| 83 | + (EuclideanSpace.proj 1).smulRight (EuclideanSpace.single 0 1+β • EuclideanSpace.single 2 1) | |
| 84 | + | |
| 85 | +@[simp] theorem linear_apply (β : ℝ) (x : Space) : | |
| 86 | + linear β x=x 1 • (EuclideanSpace.single 0 1+β • EuclideanSpace.single 2 1) := rfl | |
| 87 | + | |
| 88 | +theorem linear_trace (β : ℝ) : LinearMap.trace ℝ Space (linear β).toLinearMap=0 := by | |
| 89 | + rw [← coordinateTrace_eq_linearTrace] | |
| 90 | + simp [coordinateTrace,Fin.sum_univ_three,linear_apply,PiLp.smul_apply] | |
| 91 | + | |
| 92 | +theorem linear_norm (β : ℝ) : ‖linear β‖ ≤ 1+|β| := by | |
| 93 | + apply opNorm_le_bound _ (by positivity) | |
| 94 | + intro x | |
| 95 | + rw [linear_apply,norm_smul,Real.norm_eq_abs] | |
| 96 | + have hv : ‖(EuclideanSpace.single 0 1 : Space)+β • EuclideanSpace.single 2 1‖ ≤ 1+|β| := by | |
| 97 | + apply (norm_add_le _ _).trans | |
| 98 | + rw [norm_smul,Real.norm_eq_abs] | |
| 99 | + simp | |
| 100 | + exact (mul_le_mul (PiLp.norm_apply_le x 1) hv (norm_nonneg _) (norm_nonneg x)).trans_eq (mul_comm _ _) | |
| 101 | + | |
| 102 | +theorem linear_q (β : ℝ) : | |
| 103 | + linear β (EuclideanSpace.single 1 1)=EuclideanSpace.single 0 1+β • EuclideanSpace.single 2 1 := by | |
| 104 | + simp [linear_apply] | |
| 105 | + | |
| 106 | +end EulerBaseDatum | |
| 107 | +end | |
| 108 | + | |
| 109 | +end | |
| 110 | + | |
| 7 | 111 | noncomputable section |
| 8 | 112 | |
| 9 | 113 | namespace EulerBaseDatum |
+0 −134 Euler/BaseEulerGuards.lean deleted
| @@ -1,134 +0,0 @@ | ||
| 1 | -import Euler.ParentPacketScaledBounds | |
| 2 | -import Euler.ParentPacketRestriction | |
| 3 | -import Euler.PacketFirstPressureSign | |
| 4 | - | |
| 5 | -/-! The genuine base parent can be restricted to one explicit positive | |
| 6 | -time on which the low-order source guards hold. The constants depend | |
| 7 | -only on its fixed label envelope; the initial core is empty. -/ | |
| 8 | - | |
| 9 | -noncomputable section | |
| 10 | - | |
| 11 | -namespace EulerBaseEulerGuards | |
| 12 | - | |
| 13 | -open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit | |
| 14 | - EulerParentPacketFrames EulerPacketParentLabelBounds EulerGevrey | |
| 15 | - EulerPacketFirstPressureSign EulerTimeIntervalRestriction | |
| 16 | - | |
| 17 | -def coefficientCost (K : ℝ) : ℝ := 27*(frameAmplitude K)^2*gradientAmplitude K | |
| 18 | - | |
| 19 | -theorem coefficientCost_nonneg (K : ℝ) : 0 ≤ coefficientCost K := by | |
| 20 | - unfold coefficientCost | |
| 21 | - positivity [gradientAmplitude_nonneg K] | |
| 22 | - | |
| 23 | -def guardTime (T K : ℝ) : ℝ := | |
| 24 | - min T (min 1 (1/(4*(1+coefficientCost K+ | |
| 25 | - firstSignRate (coefficientCost K) (coefficientCost K))))) | |
| 26 | - | |
| 27 | -theorem guardTime_pos (T K : ℝ) (hT : 0 < T) : 0 < guardTime T K := by | |
| 28 | - have hC := coefficientCost_nonneg K | |
| 29 | - have hr : 0 ≤ firstSignRate (coefficientCost K) (coefficientCost K) := by | |
| 30 | - unfold firstSignRate | |
| 31 | - positivity | |
| 32 | - unfold guardTime | |
| 33 | - positivity | |
| 34 | - | |
| 35 | -theorem guardTime_le (T K : ℝ) : guardTime T K ≤ T := min_le_left _ _ | |
| 36 | - | |
| 37 | -theorem guardTime_le_one (T K : ℝ) : guardTime T K ≤ 1 := | |
| 38 | - (min_le_right _ _).trans (min_le_left _ _) | |
| 39 | - | |
| 40 | -theorem guardTime_small (T K : ℝ) : | |
| 41 | - coefficientCost K*guardTime T K ≤ 1/4 ∧ | |
| 42 | - firstSignRate (coefficientCost K) (coefficientCost K)*guardTime T K ≤ 1/4 := by | |
| 43 | - let C := coefficientCost K | |
| 44 | - let R := firstSignRate C C | |
| 45 | - have hC : 0 ≤ C := coefficientCost_nonneg K | |
| 46 | - have hR : 0 ≤ R := by dsimp [R,firstSignRate]; positivity | |
| 47 | - have hd : 0 < 4*(1+C+R) := by positivity | |
| 48 | - have ht : guardTime T K ≤ 1/(4*(1+C+R)) := | |
| 49 | - (min_le_right _ _).trans (min_le_right _ _) | |
| 50 | - have hc := mul_le_mul_of_nonneg_left ht hC | |
| 51 | - have hr := mul_le_mul_of_nonneg_left ht hR | |
| 52 | - have hc' : C*(1/(4*(1+C+R))) ≤ 1/4 := by | |
| 53 | - rw [mul_one_div] | |
| 54 | - apply (div_le_iff₀ hd).mpr | |
| 55 | - linarith | |
| 56 | - have hr' : R*(1/(4*(1+C+R))) ≤ 1/4 := by | |
| 57 | - rw [mul_one_div] | |
| 58 | - apply (div_le_iff₀ hd).mpr | |
| 59 | - linarith | |
| 60 | - exact ⟨hc.trans hc',hr.trans hr'⟩ | |
| 61 | - | |
| 62 | -theorem inner_bounds_of_norm (A : Space →L[ℝ] Space) (C : ℝ) | |
| 63 | - (hA : ‖A‖ ≤ C) (v : Space) : | |
| 64 | - -C*‖v‖^2 ≤ ⟪A v,v⟫_ℝ ∧ ⟪A v,v⟫_ℝ ≤ C*‖v‖^2 := by | |
| 65 | - have hn : ‖A v‖ ≤ C*‖v‖ := | |
| 66 | - (A.le_opNorm v).trans (mul_le_mul_of_nonneg_right hA (norm_nonneg _)) | |
| 67 | - have hi : |⟪A v,v⟫_ℝ| ≤ C*‖v‖^2 := by | |
| 68 | - calc | |
| 69 | - _ ≤ ‖A v‖*‖v‖ := by | |
| 70 | - simpa only [Real.norm_eq_abs] using norm_inner_le_norm (𝕜 := ℝ) (A v) v | |
| 71 | - _ ≤ (C*‖v‖)*‖v‖ := mul_le_mul_of_nonneg_right hn (norm_nonneg _) | |
| 72 | - _ = _ := by ring | |
| 73 | - constructor | |
| 74 | - · linarith [(abs_le.mp hi).1] | |
| 75 | - · exact (abs_le.mp hi).2 | |
| 76 | - | |
| 77 | -variable {G : Parent} (L : LabelData G) | |
| 78 | - | |
| 79 | -theorem strain_norm (t : Icc (0 : ℝ) G.T) (x : Space) : | |
| 80 | - ‖G.strain.field t x‖ ≤ coefficientCost L.K := by | |
| 81 | - have h := L.strain_scaled_bound 0 t x | |
| 82 | - simpa only [coefficientCost,norm_iteratedFDeriv_zero,majorant,Nat.zero_add, | |
| 83 | - Nat.factorial_zero,Nat.cast_one,pow_zero,one_pow,mul_one] using h | |
| 84 | - | |
| 85 | -theorem curvature_norm (t : Icc (0 : ℝ) G.T) (x : Space) : | |
| 86 | - ‖G.curvature.field t x‖ ≤ coefficientCost L.K := by | |
| 87 | - have h := L.curvature_scaled_bound 0 t x | |
| 88 | - simpa only [coefficientCost,norm_iteratedFDeriv_zero,majorant,Nat.zero_add, | |
| 89 | - Nat.factorial_zero,Nat.cast_one,pow_zero,one_pow,mul_one] using h | |
| 90 | - | |
| 91 | -theorem initialStrain_norm (x : Space) : | |
| 92 | - ‖G.initialStrain.field x‖ ≤ coefficientCost L.K := by | |
| 93 | - have he : G.strain.field G.zeroTime x=G.initialStrain.field x := by | |
| 94 | - apply ContinuousLinearMap.ext | |
| 95 | - intro v | |
| 96 | - rw [G.strain_apply,comp_apply,G.inverse_initial,G.initialStrain_apply] | |
| 97 | - rw [← he] | |
| 98 | - exact strain_norm L G.zeroTime x | |
| 99 | - | |
| 100 | -def lowBoundsOn (S : ℝ) (hS : 0 < S) (hST : S ≤ G.T) | |
| 101 | - (hSone : S ≤ 1) (hsmall : coefficientCost L.K*S ≤ 1/4) : | |
| 102 | - LowBounds (G.restrictTime S hS hST) where | |
| 103 | - Be := coefficientCost L.K | |
| 104 | - Bc := 0 | |
| 105 | - L := 0 | |
| 106 | - r := 0 | |
| 107 | - K := coefficientCost L.K | |
| 108 | - Be_nonneg := coefficientCost_nonneg L.K | |
| 109 | - Bc_nonneg := le_rfl | |
| 110 | - L_lower := by simp | |
| 111 | - r_nonneg := le_rfl | |
| 112 | - r_le_quarter := by norm_num | |
| 113 | - K_nonneg := coefficientCost_nonneg L.K | |
| 114 | - exterior_lower x _ v := by | |
| 115 | - rw [G.restrictTime_initialStrain] | |
| 116 | - exact (inner_bounds_of_norm _ _ (initialStrain_norm L x) v).1 | |
| 117 | - core_lower x hx _ := by | |
| 118 | - exact False.elim ((not_lt_of_ge (norm_nonneg _)) hx) | |
| 119 | - curvature_upper t x v := by | |
| 120 | - erw [G.restrictTime_curvature] | |
| 121 | - exact (inner_bounds_of_norm _ _ (curvature_norm L (initialInclusion G.T S hST t) x) v).2 | |
| 122 | - small := by | |
| 123 | - change coefficientCost L.K*(S^2/2)+coefficientCost L.K*S+_ ≤ 1/2 | |
| 124 | - simp only [mul_zero,zero_mul,zero_pow (by decide : 3 ≠ 0),add_zero] | |
| 125 | - have hsquare : S^2 ≤ S := by nlinarith [mul_nonneg hS.le (sub_nonneg.mpr hSone)] | |
| 126 | - have hc := mul_le_mul_of_nonneg_left hsquare (coefficientCost_nonneg L.K) | |
| 127 | - nlinarith | |
| 128 | - | |
| 129 | -def lowBounds : LowBounds | |
| 130 | - (G.restrictTime (guardTime G.T L.K) (guardTime_pos G.T L.K G.T_pos) | |
| 131 | - (guardTime_le G.T L.K)) := | |
| 132 | - lowBoundsOn L _ _ _ (guardTime_le_one G.T L.K) (guardTime_small G.T L.K).1 | |
| 133 | - | |
| 134 | -end EulerBaseEulerGuards | |
+0 −58 Euler/BaseEulerInput.lean deleted
| @@ -1,58 +0,0 @@ | ||
| 1 | -import Euler.BaseStaticEuler | |
| 2 | -import Euler.BaseEulerUniform | |
| 3 | - | |
| 4 | -/-! A single positive time and a single label bound work for every | |
| 5 | -compact base datum with |β|≤1. The parent, inverse and Euler evolution | |
| 6 | -below are the actual constructed objects. -/ | |
| 7 | - | |
| 8 | -noncomputable section | |
| 9 | - | |
| 10 | -namespace EulerBaseDatum | |
| 11 | - | |
| 12 | -open Set EulerSmoothLimit EulerParentPacketFrames | |
| 13 | - | |
| 14 | -private local instance : Fact (0 < (1 : ℝ)) := ⟨zero_lt_one⟩ | |
| 15 | - | |
| 16 | -def solutionTime : ℝ := | |
| 17 | - EulerStaticEuler.baseTime 1 uniformL2Amplitude 1024 uniformL2Amplitude_nonneg (by norm_num) | |
| 18 | - | |
| 19 | -theorem solutionTime_pos : 0 < solutionTime := | |
| 20 | - EulerStaticEuler.baseTime_pos 1 uniformL2Amplitude 1024 uniformL2Amplitude_nonneg (by norm_num) | |
| 21 | - | |
| 22 | -def solutionLabelConstant : ℝ := | |
| 23 | - EulerStaticEuler.baseLabelConstant 1 uniformL2Amplitude 1024 uniformL2Amplitude_nonneg (by norm_num) | |
| 24 | - | |
| 25 | -variable (β : ℝ) (hβ : |β| ≤ 1) (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) | |
| 26 | - | |
| 27 | -def solutionParent : Parent := | |
| 28 | - EulerStaticEuler.baseParent 1 (field (linear β)) uniformL2Amplitude 1024 | |
| 29 | - uniformL2Amplitude_nonneg (by norm_num) (field_uniform_jet β hβ) | |
| 30 | - (velocity_divergence (linear β)) ell hell hell1 | |
| 31 | - | |
| 32 | -def solutionLabelData : LabelData (solutionParent β hβ ell hell hell1) := | |
| 33 | - EulerStaticEuler.baseLabelData 1 (field (linear β)) uniformL2Amplitude 1024 | |
| 34 | - uniformL2Amplitude_nonneg (by norm_num) (field_uniform_jet β hβ) | |
| 35 | - (velocity_divergence (linear β)) ell hell hell1 | |
| 36 | - | |
| 37 | -def solutionEvolution : Evolution (solutionParent β hβ ell hell hell1) := | |
| 38 | - EulerStaticEuler.baseEvolution 1 (field (linear β)) uniformL2Amplitude 1024 | |
| 39 | - uniformL2Amplitude_nonneg (by norm_num) (field_uniform_jet β hβ) | |
| 40 | - (velocity_divergence (linear β)) ell hell hell1 | |
| 41 | - | |
| 42 | -theorem solutionOddData : OddData (solutionParent β hβ ell hell hell1) := | |
| 43 | - EulerStaticEuler.baseOddData 1 (field (linear β)) uniformL2Amplitude 1024 | |
| 44 | - uniformL2Amplitude_nonneg (by norm_num) (field_uniform_jet β hβ) | |
| 45 | - (velocity_divergence (linear β)) ell hell hell1 (velocity_odd (linear β)) | |
| 46 | - | |
| 47 | -theorem solution_initial_velocity (x : Space) : | |
| 48 | - (solutionParent β hβ ell hell hell1).velocity.field ⟨0,le_rfl,solutionTime_pos.le⟩ x= | |
| 49 | - velocity (linear β) x := | |
| 50 | - EulerStaticEuler.baseParent_initial_velocity 1 (field (linear β)) uniformL2Amplitude 1024 | |
| 51 | - uniformL2Amplitude_nonneg (by norm_num) (field_uniform_jet β hβ) | |
| 52 | - (velocity_divergence (linear β)) ell hell hell1 x | |
| 53 | - | |
| 54 | -omit β hβ ell hell hell1 in | |
| 55 | -theorem solutionLabelConstant_one : 1 ≤ solutionLabelConstant := | |
| 56 | - (solutionLabelData 0 (by norm_num) 1 zero_lt_one le_rfl).K_one | |
| 57 | - | |
| 58 | -end EulerBaseDatum | |
+0 −82 Euler/BaseEulerLabelData.lean deleted
| @@ -1,82 +0,0 @@ | ||
| 1 | -import Euler.BaseEulerFlowL2 | |
| 2 | -import Euler.ParentPacketLabelData | |
| 3 | - | |
| 4 | -/-! The three actual base-flow fields satisfy the source's fixed-H6 | |
| 5 | -label bound with one explicit constant, independent of derivative order. -/ | |
| 6 | - | |
| 7 | -noncomputable section | |
| 8 | - | |
| 9 | -namespace EulerBaseEulerParent.L2Data | |
| 10 | - | |
| 11 | -open EulerParentPacketFrames EulerLpTranslation EulerParameterWordGevrey | |
| 12 | - EulerPacketParentLabelBounds Set | |
| 13 | - | |
| 14 | -variable {I : Input} (L : L2Data I) | |
| 15 | - | |
| 16 | -def labelCost : ℝ := | |
| 17 | - 1 + sobolevCoefficientAmplitude (Fin 3) 6 L.velocityRadius (I.T*L.C) + | |
| 18 | - sobolevCoefficientAmplitude (Fin 3) 6 L.velocityRadius L.C + | |
| 19 | - sobolevCoefficientAmplitude (Fin 3) 6 L.accelerationRadius L.accelerationAmplitude + | |
| 20 | - sobolevCoefficientRadius (Fin 3) L.velocityRadius + | |
| 21 | - sobolevCoefficientRadius (Fin 3) L.accelerationRadius | |
| 22 | - | |
| 23 | -private theorem costs_nonneg : | |
| 24 | - 0 ≤ sobolevCoefficientAmplitude (Fin 3) 6 L.velocityRadius (I.T*L.C) ∧ | |
| 25 | - 0 ≤ sobolevCoefficientAmplitude (Fin 3) 6 L.velocityRadius L.C ∧ | |
| 26 | - 0 ≤ sobolevCoefficientAmplitude (Fin 3) 6 L.accelerationRadius L.accelerationAmplitude ∧ | |
| 27 | - 0 ≤ sobolevCoefficientRadius (Fin 3) L.velocityRadius ∧ | |
| 28 | - 0 ≤ sobolevCoefficientRadius (Fin 3) L.accelerationRadius := | |
| 29 | - ⟨sobolevCoefficientAmplitude_nonneg 6 L.velocityRadius (I.T*L.C) | |
| 30 | - L.velocityRadius_nonneg (mul_nonneg I.T_pos.le L.C_nonneg), | |
| 31 | - sobolevCoefficientAmplitude_nonneg 6 L.velocityRadius L.C L.velocityRadius_nonneg L.C_nonneg, | |
| 32 | - sobolevCoefficientAmplitude_nonneg 6 L.accelerationRadius L.accelerationAmplitude | |
| 33 | - L.accelerationRadius_nonneg L.accelerationAmplitude_nonneg, | |
| 34 | - sobolevCoefficientRadius_nonneg L.velocityRadius L.velocityRadius_nonneg, | |
| 35 | - sobolevCoefficientRadius_nonneg L.accelerationRadius L.accelerationRadius_nonneg⟩ | |
| 36 | - | |
| 37 | -theorem labelCost_one : 1 ≤ L.labelCost := by | |
| 38 | - obtain ⟨h1,h2,h3,h4,h5⟩ := L.costs_nonneg | |
| 39 | - dsimp [labelCost] | |
| 40 | - linarith | |
| 41 | - | |
| 42 | -theorem displacement_labelBound (t : Icc (0 : ℝ) I.T) : | |
| 43 | - HasLabelBound L.labelCost (L.displacementField t) := by | |
| 44 | - obtain ⟨h1,h2,h3,h4,h5⟩ := L.costs_nonneg | |
| 45 | - apply SmoothL2Field.hasLabelBound_of_jet_bound (L.displacementField t) | |
| 46 | - (I.T*L.C) L.velocityRadius L.labelCost (mul_nonneg I.T_pos.le L.C_nonneg) | |
| 47 | - L.velocityRadius_nonneg (L.displacementField_bound t) | |
| 48 | - · dsimp [labelCost]; linarith | |
| 49 | - · dsimp [labelCost]; linarith | |
| 50 | - | |
| 51 | -theorem velocity_labelBound (t : Icc (0 : ℝ) I.T) : | |
| 52 | - HasLabelBound L.labelCost (L.velocityField t) := by | |
| 53 | - obtain ⟨h1,h2,h3,h4,h5⟩ := L.costs_nonneg | |
| 54 | - apply SmoothL2Field.hasLabelBound_of_jet_bound (L.velocityField t) | |
| 55 | - L.C L.velocityRadius L.labelCost L.C_nonneg L.velocityRadius_nonneg (L.velocityField_bound t) | |
| 56 | - · dsimp [labelCost]; linarith | |
| 57 | - · dsimp [labelCost]; linarith | |
| 58 | - | |
| 59 | -theorem acceleration_labelBound (t : Icc (0 : ℝ) I.T) : | |
| 60 | - HasLabelBound L.labelCost (L.accelerationField t) := by | |
| 61 | - obtain ⟨h1,h2,h3,h4,h5⟩ := L.costs_nonneg | |
| 62 | - apply SmoothL2Field.hasLabelBound_of_jet_bound (L.accelerationField t) | |
| 63 | - L.accelerationAmplitude L.accelerationRadius L.labelCost L.accelerationAmplitude_nonneg | |
| 64 | - L.accelerationRadius_nonneg (L.accelerationField_bound t) | |
| 65 | - · dsimp [labelCost]; linarith | |
| 66 | - · dsimp [labelCost]; linarith | |
| 67 | - | |
| 68 | -def labelData (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) : | |
| 69 | - LabelData (I.parent ell hell hell1) where | |
| 70 | - K := L.labelCost | |
| 71 | - K_one := L.labelCost_one | |
| 72 | - displacement := L.displacementField | |
| 73 | - velocity := L.velocityField | |
| 74 | - acceleration := L.accelerationField | |
| 75 | - displacement_match _ _ := rfl | |
| 76 | - velocity_match := L.velocityField_apply | |
| 77 | - acceleration_match := L.accelerationField_apply | |
| 78 | - displacement_bound := L.displacement_labelBound | |
| 79 | - velocity_bound := L.velocity_labelBound | |
| 80 | - acceleration_bound := L.acceleration_labelBound | |
| 81 | - | |
| 82 | -end EulerBaseEulerParent.L2Data | |
+0 −23 Euler/BaseEulerParity.lean deleted
| @@ -1,23 +0,0 @@ | ||
| 1 | -import Euler.BaseEulerParent | |
| 2 | -import Euler.ParentPacketParity | |
| 3 | - | |
| 4 | -/-! Oddness of the genuine base velocity propagates through its actual | |
| 5 | -flow to the base parent, using ODE uniqueness. -/ | |
| 6 | - | |
| 7 | -noncomputable section | |
| 8 | - | |
| 9 | -namespace EulerBaseEulerParent.Input | |
| 10 | - | |
| 11 | -open Set EulerSmoothLimit EulerSmoothBanachFlow EulerParentPacketFrames | |
| 12 | - | |
| 13 | -variable (I : Input) | |
| 14 | - | |
| 15 | -theorem oddData (hodd : ∀ t, Function.Odd (I.field.field t : Space → Space)) | |
| 16 | - (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) : OddData (I.parent ell hell hell1) := by | |
| 17 | - have hd (t : Icc (0 : ℝ) I.T) : Function.Odd (I.displacement.field t : Space → Space) := by | |
| 18 | - intro x | |
| 19 | - rw [I.displacement_apply,I.displacement_apply,forward_odd I.T I.T_pos.le I.field hodd t] | |
| 20 | - abel | |
| 21 | - exact { displacement := hd } | |
| 22 | - | |
| 23 | -end EulerBaseEulerParent.Input | |
+0 −61 Euler/BaseEulerSign.lean deleted
| @@ -1,61 +0,0 @@ | ||
| 1 | -import Euler.BaseEulerGuards | |
| 2 | -import Euler.ParentPacketStrainEvolution | |
| 3 | - | |
| 4 | -/-! The first pressure numerator stays positive for the actual evolving | |
| 5 | -normal and the actual homogeneous transverse velocity. Initial plateau | |
| 6 | -data are the only geometric inputs; all time equations are constructed. -/ | |
| 7 | - | |
| 8 | -noncomputable section | |
| 9 | - | |
| 10 | -namespace EulerBaseEulerGuards | |
| 11 | - | |
| 12 | -open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit | |
| 13 | - EulerParentPacketFrames EulerTransverseFrameCoordinates | |
| 14 | - EulerPacketFirstPressureSign EulerTimeIntervalRestriction | |
| 15 | - | |
| 16 | -variable {G : Parent} (L : LabelData G) | |
| 17 | - {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] | |
| 18 | - (m : Space) (hm : ‖m‖=1) (R : U ≃ₗᵢ[ℝ] referencePlane m) | |
| 19 | - (S : Set Space) (hS : IsCompact S) | |
| 20 | - | |
| 21 | -omit [CompleteSpace U] in | |
| 22 | -theorem source_normal_initial (x : Space) : | |
| 23 | - (G.transverseData m hm R S hS).normal.field G.zeroTime x=m := by | |
| 24 | - change (G.inverse.field G.zeroTime x).adjoint m=m | |
| 25 | - have hi : G.inverse.field G.zeroTime x=ContinuousLinearMap.id ℝ Space := by | |
| 26 | - apply ContinuousLinearMap.ext | |
| 27 | - exact G.inverse_initial x | |
| 28 | - rw [hi,adjoint_id,id_apply] | |
| 29 | - | |
| 30 | -omit [CompleteSpace U] in | |
| 31 | -theorem source_frame_initial (ξ : U) (x : Space) : | |
| 32 | - (G.transverseData m hm R S hS).frame.field G.zeroTime x ξ=(R ξ : Space) := by | |
| 33 | - change G.frame.field G.zeroTime x (R ξ : Space)=_ | |
| 34 | - rw [G.frame_initial,id_apply] | |
| 35 | - | |
| 36 | -theorem source_numerator_pos (ξ : U) (hξ : ‖ξ‖=1) (x : Space) | |
| 37 | - (h0 : ⟪m,G.initialStrain.field x (R ξ : Space)⟫_ℝ=1) | |
| 38 | - (hshort : coefficientCost L.K*G.T ≤ 1/2) | |
| 39 | - (hsmall : firstSignRate (coefficientCost L.K) (coefficientCost L.K)*G.T ≤ 1/2) | |
| 40 | - (t : Icc (0 : ℝ) G.T) : | |
| 41 | - 1/2 ≤ ⟪(G.transverseData m hm R S hS).normal.field t x, | |
| 42 | - G.strain.field t x (EulerPacketForwardFactorization.uncutVelocity | |
| 43 | - (G.transverseData m hm R S hS) ξ t x)⟫_ℝ := by | |
| 44 | - apply uncut_numerator_pos (G.transverseData m hm R S hS) ξ x | |
| 45 | - (fun s => G.curvature.field s x) (coefficientCost L.K) (coefficientCost L.K) | |
| 46 | - (coefficientCost_nonneg L.K) (coefficientCost_nonneg L.K) | |
| 47 | - (fun s => strain_norm L s x) (fun s => curvature_norm L s x) | |
| 48 | - (fun s => G.strain_within s x) _ _ _ hshort hsmall t | |
| 49 | - · change ‖(G.transverseData m hm R S hS).normal.field G.zeroTime x‖=1 | |
| 50 | - rw [source_normal_initial m hm R S hS] | |
| 51 | - exact hm | |
| 52 | - · change ‖(G.transverseData m hm R S hS).frame.field G.zeroTime x ξ‖=1 | |
| 53 | - rw [source_frame_initial m hm R S hS] | |
| 54 | - exact (R.norm_map ξ).trans hξ | |
| 55 | - · change ⟪(G.transverseData m hm R S hS).normal.field G.zeroTime x, | |
| 56 | - G.strain.field G.zeroTime x ((G.transverseData m hm R S hS).frame.field G.zeroTime x ξ)⟫_ℝ=1 | |
| 57 | - rw [source_normal_initial m hm R S hS,source_frame_initial m hm R S hS] | |
| 58 | - rw [G.strain_apply,comp_apply,G.inverse_initial] | |
| 59 | - exact h0 | |
| 60 | - | |
| 61 | -end EulerBaseEulerGuards | |
+0 −43 Euler/BaseEulerSobolev.lean deleted
| @@ -1,43 +0,0 @@ | ||
| 1 | -import Euler.BaseEulerInput | |
| 2 | -import Euler.StaticEulerForceField | |
| 3 | -import Euler.ParentEulerSobolev | |
| 4 | - | |
| 5 | -/-! The concrete local base evolution has actual continuous L² jets for | |
| 6 | -both velocity and pressure force. Consequently its Euler equation holds | |
| 7 | -strongly in every finite Sobolev order, including endpoint derivatives. -/ | |
| 8 | - | |
| 9 | -noncomputable section | |
| 10 | - | |
| 11 | -namespace EulerStaticEuler | |
| 12 | - | |
| 13 | -open Set EulerSmoothLimit EulerLpTranslation EulerParentPacketFrames | |
| 14 | - | |
| 15 | -variable (P : ℝ) [Fact (0 < P)] (u : SmoothL2Field Space) (C R : ℝ) | |
| 16 | - (hC : 0 ≤ C) (hR : 0 ≤ R) (hu : u.HasJetBound C R) | |
| 17 | - (hdiv : ∀ x, divergence u.field x=0) (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) | |
| 18 | - | |
| 19 | -def baseSobolevData : SobolevData (baseEvolution P u C R hC hR hu hdiv ell hell hell1) where | |
| 20 | - velocity t := localField P u C R hC hR hu hdiv (baseInclusion P C R hC hR t) | |
| 21 | - force t := localForceField P u C R hC hR hu hdiv (baseInclusion P C R hC hR t) | |
| 22 | - velocity_match t x := (localField_apply P u C R hC hR hu hdiv (baseInclusion P C R hC hR t) x).symm | |
| 23 | - force_match t x := (localForceField_apply P u C R hC hR hu hdiv (baseInclusion P C R hC hR t) x).symm | |
| 24 | - velocity_continuous n := (localField_jetLp_continuous P u C R hC hR hu hdiv n).comp | |
| 25 | - (baseInclusion P C R hC hR).continuous | |
| 26 | - force_continuous n := (localForceField_jetLp_continuous P u C R hC hR hu hdiv n).comp | |
| 27 | - (baseInclusion P C R hC hR).continuous | |
| 28 | - | |
| 29 | -end EulerStaticEuler | |
| 30 | - | |
| 31 | -namespace EulerBaseDatum | |
| 32 | - | |
| 33 | -open EulerParentPacketFrames | |
| 34 | - | |
| 35 | -private local instance : Fact (0 < (1 : ℝ)) := ⟨zero_lt_one⟩ | |
| 36 | - | |
| 37 | -def solutionSobolevData (β : ℝ) (hβ : |β| ≤ 1) (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) : | |
| 38 | - SobolevData (solutionEvolution β hβ ell hell hell1) := | |
| 39 | - EulerStaticEuler.baseSobolevData 1 (field (linear β)) uniformL2Amplitude 1024 | |
| 40 | - uniformL2Amplitude_nonneg (by norm_num) (field_uniform_jet β hβ) | |
| 41 | - (velocity_divergence (linear β)) ell hell hell1 | |
| 42 | - | |
| 43 | -end EulerBaseDatum | |
+380 −2 Euler/BaseEulerState.lean View file
| @@ -1,10 +1,388 @@ | ||
| 1 | -import Euler.BaseEulerSobolev | |
| 2 | -import Euler.BaseEulerSign | |
| 1 | +import Euler.BaseStaticEuler | |
| 2 | +import Euler.BaseEulerGevrey | |
| 3 | +import Euler.StaticEulerForceField | |
| 4 | +import Euler.ParentEulerSobolev | |
| 5 | +import Euler.ParentPacketScaledBounds | |
| 6 | +import Euler.ParentPacketRestriction | |
| 7 | +import Euler.PacketFirstPressureSign | |
| 8 | +import Euler.ParentPacketStrainEvolution | |
| 3 | 9 | |
| 4 | 10 | /-! The initial induction state is completely constructed from the |
| 5 | 11 | compact β-family. A single positive time and a single label constant |
| 6 | 12 | work for the family, with actual low-order guards and pressure sign. -/ |
| 7 | 13 | |
| 14 | +/-! ## From `Euler/BaseEulerGuards.lean` | |
| 15 | + | |
| 16 | +The text of `Euler/BaseEulerGuards.lean`, folded into this file, which was its only importer. -/ | |
| 17 | + | |
| 18 | +section | |
| 19 | + | |
| 20 | +/-! The genuine base parent can be restricted to one explicit positive | |
| 21 | +time on which the low-order source guards hold. The constants depend | |
| 22 | +only on its fixed label envelope; the initial core is empty. -/ | |
| 23 | + | |
| 24 | +noncomputable section | |
| 25 | + | |
| 26 | +namespace EulerBaseEulerGuards | |
| 27 | + | |
| 28 | +open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit | |
| 29 | + EulerParentPacketFrames EulerPacketParentLabelBounds EulerGevrey | |
| 30 | + EulerPacketFirstPressureSign EulerTimeIntervalRestriction | |
| 31 | + | |
| 32 | +def coefficientCost (K : ℝ) : ℝ := 27*(frameAmplitude K)^2*gradientAmplitude K | |
| 33 | + | |
| 34 | +theorem coefficientCost_nonneg (K : ℝ) : 0 ≤ coefficientCost K := by | |
| 35 | + unfold coefficientCost | |
| 36 | + positivity [gradientAmplitude_nonneg K] | |
| 37 | + | |
| 38 | +def guardTime (T K : ℝ) : ℝ := | |
| 39 | + min T (min 1 (1/(4*(1+coefficientCost K+ | |
| 40 | + firstSignRate (coefficientCost K) (coefficientCost K))))) | |
| 41 | + | |
| 42 | +theorem guardTime_pos (T K : ℝ) (hT : 0 < T) : 0 < guardTime T K := by | |
| 43 | + have hC := coefficientCost_nonneg K | |
| 44 | + have hr : 0 ≤ firstSignRate (coefficientCost K) (coefficientCost K) := by | |
| 45 | + unfold firstSignRate | |
| 46 | + positivity | |
| 47 | + unfold guardTime | |
| 48 | + positivity | |
| 49 | + | |
| 50 | +theorem guardTime_le (T K : ℝ) : guardTime T K ≤ T := min_le_left _ _ | |
| 51 | + | |
| 52 | +theorem guardTime_le_one (T K : ℝ) : guardTime T K ≤ 1 := | |
| 53 | + (min_le_right _ _).trans (min_le_left _ _) | |
| 54 | + | |
| 55 | +theorem guardTime_small (T K : ℝ) : | |
| 56 | + coefficientCost K*guardTime T K ≤ 1/4 ∧ | |
| 57 | + firstSignRate (coefficientCost K) (coefficientCost K)*guardTime T K ≤ 1/4 := by | |
| 58 | + let C := coefficientCost K | |
| 59 | + let R := firstSignRate C C | |
| 60 | + have hC : 0 ≤ C := coefficientCost_nonneg K | |
| 61 | + have hR : 0 ≤ R := by dsimp [R,firstSignRate]; positivity | |
| 62 | + have hd : 0 < 4*(1+C+R) := by positivity | |
| 63 | + have ht : guardTime T K ≤ 1/(4*(1+C+R)) := | |
| 64 | + (min_le_right _ _).trans (min_le_right _ _) | |
| 65 | + have hc := mul_le_mul_of_nonneg_left ht hC | |
| 66 | + have hr := mul_le_mul_of_nonneg_left ht hR | |
| 67 | + have hc' : C*(1/(4*(1+C+R))) ≤ 1/4 := by | |
| 68 | + rw [mul_one_div] | |
| 69 | + apply (div_le_iff₀ hd).mpr | |
| 70 | + linarith | |
| 71 | + have hr' : R*(1/(4*(1+C+R))) ≤ 1/4 := by | |
| 72 | + rw [mul_one_div] | |
| 73 | + apply (div_le_iff₀ hd).mpr | |
| 74 | + linarith | |
| 75 | + exact ⟨hc.trans hc',hr.trans hr'⟩ | |
| 76 | + | |
| 77 | +theorem inner_bounds_of_norm (A : Space →L[ℝ] Space) (C : ℝ) | |
| 78 | + (hA : ‖A‖ ≤ C) (v : Space) : | |
| 79 | + -C*‖v‖^2 ≤ ⟪A v,v⟫_ℝ ∧ ⟪A v,v⟫_ℝ ≤ C*‖v‖^2 := by | |
| 80 | + have hn : ‖A v‖ ≤ C*‖v‖ := | |
| 81 | + (A.le_opNorm v).trans (mul_le_mul_of_nonneg_right hA (norm_nonneg _)) | |
| 82 | + have hi : |⟪A v,v⟫_ℝ| ≤ C*‖v‖^2 := by | |
| 83 | + calc | |
| 84 | + _ ≤ ‖A v‖*‖v‖ := by | |
| 85 | + simpa only [Real.norm_eq_abs] using norm_inner_le_norm (𝕜 := ℝ) (A v) v | |
| 86 | + _ ≤ (C*‖v‖)*‖v‖ := mul_le_mul_of_nonneg_right hn (norm_nonneg _) | |
| 87 | + _ = _ := by ring | |
| 88 | + constructor | |
| 89 | + · linarith [(abs_le.mp hi).1] | |
| 90 | + · exact (abs_le.mp hi).2 | |
| 91 | + | |
| 92 | +variable {G : Parent} (L : LabelData G) | |
| 93 | + | |
| 94 | +theorem strain_norm (t : Icc (0 : ℝ) G.T) (x : Space) : | |
| 95 | + ‖G.strain.field t x‖ ≤ coefficientCost L.K := by | |
| 96 | + have h := L.strain_scaled_bound 0 t x | |
| 97 | + simpa only [coefficientCost,norm_iteratedFDeriv_zero,majorant,Nat.zero_add, | |
| 98 | + Nat.factorial_zero,Nat.cast_one,pow_zero,one_pow,mul_one] using h | |
| 99 | + | |
| 100 | +theorem curvature_norm (t : Icc (0 : ℝ) G.T) (x : Space) : | |
| 101 | + ‖G.curvature.field t x‖ ≤ coefficientCost L.K := by | |
| 102 | + have h := L.curvature_scaled_bound 0 t x | |
| 103 | + simpa only [coefficientCost,norm_iteratedFDeriv_zero,majorant,Nat.zero_add, | |
| 104 | + Nat.factorial_zero,Nat.cast_one,pow_zero,one_pow,mul_one] using h | |
| 105 | + | |
| 106 | +theorem initialStrain_norm (x : Space) : | |
| 107 | + ‖G.initialStrain.field x‖ ≤ coefficientCost L.K := by | |
| 108 | + have he : G.strain.field G.zeroTime x=G.initialStrain.field x := by | |
| 109 | + apply ContinuousLinearMap.ext | |
| 110 | + intro v | |
| 111 | + rw [G.strain_apply,comp_apply,G.inverse_initial,G.initialStrain_apply] | |
| 112 | + rw [← he] | |
| 113 | + exact strain_norm L G.zeroTime x | |
| 114 | + | |
| 115 | +def lowBoundsOn (S : ℝ) (hS : 0 < S) (hST : S ≤ G.T) | |
| 116 | + (hSone : S ≤ 1) (hsmall : coefficientCost L.K*S ≤ 1/4) : | |
| 117 | + LowBounds (G.restrictTime S hS hST) where | |
| 118 | + Be := coefficientCost L.K | |
| 119 | + Bc := 0 | |
| 120 | + L := 0 | |
| 121 | + r := 0 | |
| 122 | + K := coefficientCost L.K | |
| 123 | + Be_nonneg := coefficientCost_nonneg L.K | |
| 124 | + Bc_nonneg := le_rfl | |
| 125 | + L_lower := by simp | |
| 126 | + r_nonneg := le_rfl | |
| 127 | + r_le_quarter := by norm_num | |
| 128 | + K_nonneg := coefficientCost_nonneg L.K | |
| 129 | + exterior_lower x _ v := by | |
| 130 | + rw [G.restrictTime_initialStrain] | |
| 131 | + exact (inner_bounds_of_norm _ _ (initialStrain_norm L x) v).1 | |
| 132 | + core_lower x hx _ := by | |
| 133 | + exact False.elim ((not_lt_of_ge (norm_nonneg _)) hx) | |
| 134 | + curvature_upper t x v := by | |
| 135 | + erw [G.restrictTime_curvature] | |
| 136 | + exact (inner_bounds_of_norm _ _ (curvature_norm L (initialInclusion G.T S hST t) x) v).2 | |
| 137 | + small := by | |
| 138 | + change coefficientCost L.K*(S^2/2)+coefficientCost L.K*S+_ ≤ 1/2 | |
| 139 | + simp only [mul_zero,zero_mul,zero_pow (by decide : 3 ≠ 0),add_zero] | |
| 140 | + have hsquare : S^2 ≤ S := by nlinarith [mul_nonneg hS.le (sub_nonneg.mpr hSone)] | |
| 141 | + have hc := mul_le_mul_of_nonneg_left hsquare (coefficientCost_nonneg L.K) | |
| 142 | + nlinarith | |
| 143 | + | |
| 144 | +def lowBounds : LowBounds | |
| 145 | + (G.restrictTime (guardTime G.T L.K) (guardTime_pos G.T L.K G.T_pos) | |
| 146 | + (guardTime_le G.T L.K)) := | |
| 147 | + lowBoundsOn L _ _ _ (guardTime_le_one G.T L.K) (guardTime_small G.T L.K).1 | |
| 148 | + | |
| 149 | +end EulerBaseEulerGuards | |
| 150 | +end | |
| 151 | + | |
| 152 | +end | |
| 153 | + | |
| 154 | +/-! ## From `Euler/BaseEulerSign.lean` | |
| 155 | + | |
| 156 | +The text of `Euler/BaseEulerSign.lean`, folded into this file, which was its only importer. -/ | |
| 157 | + | |
| 158 | +section | |
| 159 | + | |
| 160 | +/-! The first pressure numerator stays positive for the actual evolving | |
| 161 | +normal and the actual homogeneous transverse velocity. Initial plateau | |
| 162 | +data are the only geometric inputs; all time equations are constructed. -/ | |
| 163 | + | |
| 164 | +noncomputable section | |
| 165 | + | |
| 166 | +namespace EulerBaseEulerGuards | |
| 167 | + | |
| 168 | +open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit | |
| 169 | + EulerParentPacketFrames EulerTransverseFrameCoordinates | |
| 170 | + EulerPacketFirstPressureSign EulerTimeIntervalRestriction | |
| 171 | + | |
| 172 | +variable {G : Parent} (L : LabelData G) | |
| 173 | + {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] | |
| 174 | + (m : Space) (hm : ‖m‖=1) (R : U ≃ₗᵢ[ℝ] referencePlane m) | |
| 175 | + (S : Set Space) (hS : IsCompact S) | |
| 176 | + | |
| 177 | +omit [CompleteSpace U] in | |
| 178 | +theorem source_normal_initial (x : Space) : | |
| 179 | + (G.transverseData m hm R S hS).normal.field G.zeroTime x=m := by | |
| 180 | + change (G.inverse.field G.zeroTime x).adjoint m=m | |
| 181 | + have hi : G.inverse.field G.zeroTime x=ContinuousLinearMap.id ℝ Space := by | |
| 182 | + apply ContinuousLinearMap.ext | |
| 183 | + exact G.inverse_initial x | |
| 184 | + rw [hi,adjoint_id,id_apply] | |
| 185 | + | |
| 186 | +omit [CompleteSpace U] in | |
| 187 | +theorem source_frame_initial (ξ : U) (x : Space) : | |
| 188 | + (G.transverseData m hm R S hS).frame.field G.zeroTime x ξ=(R ξ : Space) := by | |
| 189 | + change G.frame.field G.zeroTime x (R ξ : Space)=_ | |
| 190 | + rw [G.frame_initial,id_apply] | |
| 191 | + | |
| 192 | +theorem source_numerator_pos (ξ : U) (hξ : ‖ξ‖=1) (x : Space) | |
| 193 | + (h0 : ⟪m,G.initialStrain.field x (R ξ : Space)⟫_ℝ=1) | |
| 194 | + (hshort : coefficientCost L.K*G.T ≤ 1/2) | |
| 195 | + (hsmall : firstSignRate (coefficientCost L.K) (coefficientCost L.K)*G.T ≤ 1/2) | |
| 196 | + (t : Icc (0 : ℝ) G.T) : | |
| 197 | + 1/2 ≤ ⟪(G.transverseData m hm R S hS).normal.field t x, | |
| 198 | + G.strain.field t x (EulerPacketForwardFactorization.uncutVelocity | |
| 199 | + (G.transverseData m hm R S hS) ξ t x)⟫_ℝ := by | |
| 200 | + apply uncut_numerator_pos (G.transverseData m hm R S hS) ξ x | |
| 201 | + (fun s => G.curvature.field s x) (coefficientCost L.K) (coefficientCost L.K) | |
| 202 | + (coefficientCost_nonneg L.K) (coefficientCost_nonneg L.K) | |
| 203 | + (fun s => strain_norm L s x) (fun s => curvature_norm L s x) | |
| 204 | + (fun s => G.strain_within s x) _ _ _ hshort hsmall t | |
| 205 | + · change ‖(G.transverseData m hm R S hS).normal.field G.zeroTime x‖=1 | |
| 206 | + rw [source_normal_initial m hm R S hS] | |
| 207 | + exact hm | |
| 208 | + · change ‖(G.transverseData m hm R S hS).frame.field G.zeroTime x ξ‖=1 | |
| 209 | + rw [source_frame_initial m hm R S hS] | |
| 210 | + exact (R.norm_map ξ).trans hξ | |
| 211 | + · change ⟪(G.transverseData m hm R S hS).normal.field G.zeroTime x, | |
| 212 | + G.strain.field G.zeroTime x ((G.transverseData m hm R S hS).frame.field G.zeroTime x ξ)⟫_ℝ=1 | |
| 213 | + rw [source_normal_initial m hm R S hS,source_frame_initial m hm R S hS] | |
| 214 | + rw [G.strain_apply,comp_apply,G.inverse_initial] | |
| 215 | + exact h0 | |
| 216 | + | |
| 217 | +end EulerBaseEulerGuards | |
| 218 | +end | |
| 219 | + | |
| 220 | +end | |
| 221 | + | |
| 222 | +/-! ## From `Euler/BaseEulerUniform.lean` | |
| 223 | + | |
| 224 | +The text of `Euler/BaseEulerUniform.lean`, folded into this file, which was its only importer. -/ | |
| 225 | + | |
| 226 | +section | |
| 227 | + | |
| 228 | +/-! A single factorial budget for every base datum with |β|≤1. | |
| 229 | +In particular this covers β=x₀⁻² with x₀≥1, independently of the | |
| 230 | +eventual frequency and iteration scales. -/ | |
| 231 | + | |
| 232 | +noncomputable section | |
| 233 | + | |
| 234 | +namespace EulerBaseDatum | |
| 235 | + | |
| 236 | +open Set EulerSmoothLimit EulerGevrey EulerLpTranslation EulerPacketPiola | |
| 237 | + EulerPacketParentLabelBounds EulerMeanClassicalWordBounds EulerParameterWordGevrey | |
| 238 | + | |
| 239 | +def uniformAmplitude : ℝ := 1+‖curlOperator‖*(3*(3*cutoffAmplitude*(24*2))*256) | |
| 240 | + | |
| 241 | +theorem uniformAmplitude_pos : 0 < uniformAmplitude := by | |
| 242 | + have h := cutoffAmplitude_nonneg | |
| 243 | + unfold uniformAmplitude | |
| 244 | + positivity | |
| 245 | + | |
| 246 | +theorem velocityAmplitude_le_uniform (β : ℝ) (hβ : |β| ≤ 1) : | |
| 247 | + velocityAmplitude (linear β) ≤ uniformAmplitude := by | |
| 248 | + have hL : ‖linear β‖ ≤ 2 := (linear_norm β).trans (by linarith) | |
| 249 | + have hc := cutoffAmplitude_nonneg | |
| 250 | + calc | |
| 251 | + velocityAmplitude (linear β) ≤ ‖curlOperator‖*(3*(3*cutoffAmplitude*(24*2))*256) := by | |
| 252 | + unfold velocityAmplitude potentialAmplitude | |
| 253 | + gcongr | |
| 254 | + _ ≤ uniformAmplitude := by unfold uniformAmplitude; linarith | |
| 255 | + | |
| 256 | +def uniformL2Amplitude : ℝ := uniformAmplitude*volumeFactor | |
| 257 | + | |
| 258 | +theorem uniformL2Amplitude_nonneg : 0 ≤ uniformL2Amplitude := | |
| 259 | + mul_nonneg uniformAmplitude_pos.le volumeFactor_nonneg | |
| 260 | + | |
| 261 | +theorem field_uniform_jet (β : ℝ) (hβ : |β| ≤ 1) : | |
| 262 | + (field (linear β)).HasJetBound uniformL2Amplitude 1024 := | |
| 263 | + (field_jet_bound (linear β)).mono | |
| 264 | + (mul_nonneg (velocityAmplitude_nonneg _) volumeFactor_nonneg) (by norm_num) | |
| 265 | + (mul_le_mul_of_nonneg_right (velocityAmplitude_le_uniform β hβ) volumeFactor_nonneg) le_rfl | |
| 266 | + | |
| 267 | +end EulerBaseDatum | |
| 268 | +end | |
| 269 | + | |
| 270 | +end | |
| 271 | + | |
| 272 | +/-! ## From `Euler/BaseEulerInput.lean` | |
| 273 | + | |
| 274 | +The text of `Euler/BaseEulerInput.lean`, folded into this file, which was its only importer. -/ | |
| 275 | + | |
| 276 | +section | |
| 277 | + | |
| 278 | +/-! A single positive time and a single label bound work for every | |
| 279 | +compact base datum with |β|≤1. The parent, inverse and Euler evolution | |
| 280 | +below are the actual constructed objects. -/ | |
| 281 | + | |
| 282 | +noncomputable section | |
| 283 | + | |
| 284 | +namespace EulerBaseDatum | |
| 285 | + | |
| 286 | +open Set EulerSmoothLimit EulerParentPacketFrames | |
| 287 | + | |
| 288 | +private local instance : Fact (0 < (1 : ℝ)) := ⟨zero_lt_one⟩ | |
| 289 | + | |
| 290 | +def solutionTime : ℝ := | |
| 291 | + EulerStaticEuler.baseTime 1 uniformL2Amplitude 1024 uniformL2Amplitude_nonneg (by norm_num) | |
| 292 | + | |
| 293 | +theorem solutionTime_pos : 0 < solutionTime := | |
| 294 | + EulerStaticEuler.baseTime_pos 1 uniformL2Amplitude 1024 uniformL2Amplitude_nonneg (by norm_num) | |
| 295 | + | |
| 296 | +def solutionLabelConstant : ℝ := | |
| 297 | + EulerStaticEuler.baseLabelConstant 1 uniformL2Amplitude 1024 uniformL2Amplitude_nonneg (by norm_num) | |
| 298 | + | |
| 299 | +variable (β : ℝ) (hβ : |β| ≤ 1) (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) | |
| 300 | + | |
| 301 | +def solutionParent : Parent := | |
| 302 | + EulerStaticEuler.baseParent 1 (field (linear β)) uniformL2Amplitude 1024 | |
| 303 | + uniformL2Amplitude_nonneg (by norm_num) (field_uniform_jet β hβ) | |
| 304 | + (velocity_divergence (linear β)) ell hell hell1 | |
| 305 | + | |
| 306 | +def solutionLabelData : LabelData (solutionParent β hβ ell hell hell1) := | |
| 307 | + EulerStaticEuler.baseLabelData 1 (field (linear β)) uniformL2Amplitude 1024 | |
| 308 | + uniformL2Amplitude_nonneg (by norm_num) (field_uniform_jet β hβ) | |
| 309 | + (velocity_divergence (linear β)) ell hell hell1 | |
| 310 | + | |
| 311 | +def solutionEvolution : Evolution (solutionParent β hβ ell hell hell1) := | |
| 312 | + EulerStaticEuler.baseEvolution 1 (field (linear β)) uniformL2Amplitude 1024 | |
| 313 | + uniformL2Amplitude_nonneg (by norm_num) (field_uniform_jet β hβ) | |
| 314 | + (velocity_divergence (linear β)) ell hell hell1 | |
| 315 | + | |
| 316 | +theorem solutionOddData : OddData (solutionParent β hβ ell hell hell1) := | |
| 317 | + EulerStaticEuler.baseOddData 1 (field (linear β)) uniformL2Amplitude 1024 | |
| 318 | + uniformL2Amplitude_nonneg (by norm_num) (field_uniform_jet β hβ) | |
| 319 | + (velocity_divergence (linear β)) ell hell hell1 (velocity_odd (linear β)) | |
| 320 | + | |
| 321 | +theorem solution_initial_velocity (x : Space) : | |
| 322 | + (solutionParent β hβ ell hell hell1).velocity.field ⟨0,le_rfl,solutionTime_pos.le⟩ x= | |
| 323 | + velocity (linear β) x := | |
| 324 | + EulerStaticEuler.baseParent_initial_velocity 1 (field (linear β)) uniformL2Amplitude 1024 | |
| 325 | + uniformL2Amplitude_nonneg (by norm_num) (field_uniform_jet β hβ) | |
| 326 | + (velocity_divergence (linear β)) ell hell hell1 x | |
| 327 | + | |
| 328 | +omit β hβ ell hell hell1 in | |
| 329 | +theorem solutionLabelConstant_one : 1 ≤ solutionLabelConstant := | |
| 330 | + (solutionLabelData 0 (by norm_num) 1 zero_lt_one le_rfl).K_one | |
| 331 | + | |
| 332 | +end EulerBaseDatum | |
| 333 | +end | |
| 334 | + | |
| 335 | +end | |
| 336 | + | |
| 337 | +/-! ## From `Euler/BaseEulerSobolev.lean` | |
| 338 | + | |
| 339 | +The text of `Euler/BaseEulerSobolev.lean`, folded into this file, which was its only importer. -/ | |
| 340 | + | |
| 341 | +section | |
| 342 | + | |
| 343 | +/-! The concrete local base evolution has actual continuous L² jets for | |
| 344 | +both velocity and pressure force. Consequently its Euler equation holds | |
| 345 | +strongly in every finite Sobolev order, including endpoint derivatives. -/ | |
| 346 | + | |
| 347 | +noncomputable section | |
| 348 | + | |
| 349 | +namespace EulerStaticEuler | |
| 350 | + | |
| 351 | +open Set EulerSmoothLimit EulerLpTranslation EulerParentPacketFrames | |
| 352 | + | |
| 353 | +variable (P : ℝ) [Fact (0 < P)] (u : SmoothL2Field Space) (C R : ℝ) | |
| 354 | + (hC : 0 ≤ C) (hR : 0 ≤ R) (hu : u.HasJetBound C R) | |
| 355 | + (hdiv : ∀ x, divergence u.field x=0) (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) | |
| 356 | + | |
| 357 | +def baseSobolevData : SobolevData (baseEvolution P u C R hC hR hu hdiv ell hell hell1) where | |
| 358 | + velocity t := localField P u C R hC hR hu hdiv (baseInclusion P C R hC hR t) | |
| 359 | + force t := localForceField P u C R hC hR hu hdiv (baseInclusion P C R hC hR t) | |
| 360 | + velocity_match t x := (localField_apply P u C R hC hR hu hdiv (baseInclusion P C R hC hR t) x).symm | |
| 361 | + force_match t x := (localForceField_apply P u C R hC hR hu hdiv (baseInclusion P C R hC hR t) x).symm | |
| 362 | + velocity_continuous n := (localField_jetLp_continuous P u C R hC hR hu hdiv n).comp | |
| 363 | + (baseInclusion P C R hC hR).continuous | |
| 364 | + force_continuous n := (localForceField_jetLp_continuous P u C R hC hR hu hdiv n).comp | |
| 365 | + (baseInclusion P C R hC hR).continuous | |
| 366 | + | |
| 367 | +end EulerStaticEuler | |
| 368 | + | |
| 369 | +namespace EulerBaseDatum | |
| 370 | + | |
| 371 | +open EulerParentPacketFrames | |
| 372 | + | |
| 373 | +private local instance : Fact (0 < (1 : ℝ)) := ⟨zero_lt_one⟩ | |
| 374 | + | |
| 375 | +def solutionSobolevData (β : ℝ) (hβ : |β| ≤ 1) (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) : | |
| 376 | + SobolevData (solutionEvolution β hβ ell hell hell1) := | |
| 377 | + EulerStaticEuler.baseSobolevData 1 (field (linear β)) uniformL2Amplitude 1024 | |
| 378 | + uniformL2Amplitude_nonneg (by norm_num) (field_uniform_jet β hβ) | |
| 379 | + (velocity_divergence (linear β)) ell hell hell1 | |
| 380 | + | |
| 381 | +end EulerBaseDatum | |
| 382 | +end | |
| 383 | + | |
| 384 | +end | |
| 385 | + | |
| 8 | 386 | noncomputable section |
| 9 | 387 | |
| 10 | 388 | namespace EulerBaseDatum |
+0 −42 Euler/BaseEulerUniform.lean deleted
| @@ -1,42 +0,0 @@ | ||
| 1 | -import Euler.BaseEulerGevrey | |
| 2 | - | |
| 3 | -/-! A single factorial budget for every base datum with |β|≤1. | |
| 4 | -In particular this covers β=x₀⁻² with x₀≥1, independently of the | |
| 5 | -eventual frequency and iteration scales. -/ | |
| 6 | - | |
| 7 | -noncomputable section | |
| 8 | - | |
| 9 | -namespace EulerBaseDatum | |
| 10 | - | |
| 11 | -open Set EulerSmoothLimit EulerGevrey EulerLpTranslation EulerPacketPiola | |
| 12 | - EulerPacketParentLabelBounds EulerMeanClassicalWordBounds EulerParameterWordGevrey | |
| 13 | - | |
| 14 | -def uniformAmplitude : ℝ := 1+‖curlOperator‖*(3*(3*cutoffAmplitude*(24*2))*256) | |
| 15 | - | |
| 16 | -theorem uniformAmplitude_pos : 0 < uniformAmplitude := by | |
| 17 | - have h := cutoffAmplitude_nonneg | |
| 18 | - unfold uniformAmplitude | |
| 19 | - positivity | |
| 20 | - | |
| 21 | -theorem velocityAmplitude_le_uniform (β : ℝ) (hβ : |β| ≤ 1) : | |
| 22 | - velocityAmplitude (linear β) ≤ uniformAmplitude := by | |
| 23 | - have hL : ‖linear β‖ ≤ 2 := (linear_norm β).trans (by linarith) | |
| 24 | - have hc := cutoffAmplitude_nonneg | |
| 25 | - calc | |
| 26 | - velocityAmplitude (linear β) ≤ ‖curlOperator‖*(3*(3*cutoffAmplitude*(24*2))*256) := by | |
| 27 | - unfold velocityAmplitude potentialAmplitude | |
| 28 | - gcongr | |
| 29 | - _ ≤ uniformAmplitude := by unfold uniformAmplitude; linarith | |
| 30 | - | |
| 31 | -def uniformL2Amplitude : ℝ := uniformAmplitude*volumeFactor | |
| 32 | - | |
| 33 | -theorem uniformL2Amplitude_nonneg : 0 ≤ uniformL2Amplitude := | |
| 34 | - mul_nonneg uniformAmplitude_pos.le volumeFactor_nonneg | |
| 35 | - | |
| 36 | -theorem field_uniform_jet (β : ℝ) (hβ : |β| ≤ 1) : | |
| 37 | - (field (linear β)).HasJetBound uniformL2Amplitude 1024 := | |
| 38 | - (field_jet_bound (linear β)).mono | |
| 39 | - (mul_nonneg (velocityAmplitude_nonneg _) volumeFactor_nonneg) (by norm_num) | |
| 40 | - (mul_le_mul_of_nonneg_right (velocityAmplitude_le_uniform β hβ) volumeFactor_nonneg) le_rfl | |
| 41 | - | |
| 42 | -end EulerBaseDatum | |
+0 −78 Euler/BaseFirstPacket.lean deleted
| @@ -1,78 +0,0 @@ | ||
| 1 | -import Euler.BasePacketLowBounds | |
| 2 | -import Euler.ParentInitializedState | |
| 3 | -import Euler.ParentFirstPacketLowGuards | |
| 4 | - | |
| 5 | -/-! The first packet over the concrete base solution produces an actual | |
| 6 | -smooth Euler state and its localized source bounds. All analytic input | |
| 7 | -comes from the same initialized correction, graph flow, and error bounds. -/ | |
| 8 | - | |
| 9 | -noncomputable section | |
| 10 | - | |
| 11 | -namespace EulerBaseDatum | |
| 12 | - | |
| 13 | -open Set EulerSmoothLimit EulerParentPacketFrames EulerPacketSupport | |
| 14 | - EulerAllOrderDriftCorrection EulerGraphInvariantFlow EulerPacketTerminalDatum | |
| 15 | - EulerPacketFirstLowBounds EulerMeanHarmonic | |
| 16 | - | |
| 17 | -variable (β : ℝ) (hβ : |β| ≤ 1) (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) | |
| 18 | - (T : ℝ) (hT : 0 < T) (hTB : T ≤ initialTime) | |
| 19 | - | |
| 20 | -def firstPacketMeanData : EulerMeanPacketProvider.Data := | |
| 21 | - (packetBaseParent β hβ ell hell hell1 T hT hTB).meanData | |
| 22 | - (packetBaseLowBounds β hβ ell hell hell1 T hT hTB) | |
| 23 | - | |
| 24 | -theorem firstPacketAgreement : EulerPacketCylinderField.SourceCoefficientAgreement | |
| 25 | - (firstPacketMeanData β hβ ell hell hell1 T hT hTB) | |
| 26 | - (firstPacketData β hβ ell hell hell1 T hT hTB) := | |
| 27 | - (packetBaseParent β hβ ell hell hell1 T hT hTB).sourceAgreement | |
| 28 | - firstNormal firstNormal_unit firstFrame support compact | |
| 29 | - (packetBaseLowBounds β hβ ell hell hell1 T hT hTB) | |
| 30 | - | |
| 31 | -variable (δ : ℝ) (hδ : 0 < δ) (hchild : ℝ) | |
| 32 | - (N : ℕ) (hN : 1 ≤ N) (k : ℝ) (hk : 4 ≤ k) | |
| 33 | - (Q : Budget period hT | |
| 34 | - (forwardInitializedCorrectionData (firstPacketMeanData β hβ ell hell hell1 T hT hTB) | |
| 35 | - (firstPacketData β hβ ell hell hell1 T hT hTB) rfl δ hδ firstCoordinate | |
| 36 | - (subset_refl _) (δ*hchild) (firstPacketAgreement β hβ ell hell hell1 T hT hTB) N hN k hk)) | |
| 37 | - (G : EulerPhysicalGraphFlowBounds.Data period T) | |
| 38 | - (hG : G.A=Q.liftedPacketCoefficient period | |
| 39 | - (forwardInitializedNormalizedField (firstPacketMeanData β hβ ell hell hell1 T hT hTB) | |
| 40 | - (firstPacketData β hβ ell hell hell1 T hT hTB) rfl δ hδ firstCoordinate (subset_refl _) (δ*hchild) N k)) | |
| 41 | - (hgraph : ∀ t q, graphConstraint k firstNormal (G.A.field t q)=0) | |
| 42 | - (nextEll : ℝ) (hnext : 0 < nextEll) (hnext1 : nextEll ≤ 1) | |
| 43 | - | |
| 44 | -def firstPacketState | |
| 45 | - (labels : LabelData ((packetBaseParent β hβ ell hell hell1 T hT hTB).child | |
| 46 | - G k firstNormal hgraph nextEll hnext hnext1)) : | |
| 47 | - SmoothState ((packetBaseParent β hβ ell hell hell1 T hT hTB).child | |
| 48 | - G k firstNormal hgraph nextEll hnext hnext1) := | |
| 49 | - (packetBaseState β hβ ell hell hell1 T hT hTB).forwardChild | |
| 50 | - (packetBaseLowBounds β hβ ell hell hell1 T hT hTB) | |
| 51 | - firstNormal firstNormal_unit firstFrame support compact symmetric | |
| 52 | - δ hδ firstCoordinate (subset_refl _) (δ*hchild) N hN k hk Q G hG hgraph nextEll hnext hnext1 labels | |
| 53 | - | |
| 54 | -def firstPacketLowBounds (hquarter : ell ≤ 1/4) (hδ1 : δ ≤ 1) (hhchild : 0 ≤ hchild) | |
| 55 | - (ev ep : ℝ) | |
| 56 | - (herr : (packetBaseState β hβ ell hell hell1 T hT hTB).evolution.HomogeneousSourceErrors | |
| 57 | - firstNormal firstNormal_unit firstFrame support compact Q | |
| 58 | - (forwardInitializedApproximationResidual (firstPacketMeanData β hβ ell hell hell1 T hT hTB) | |
| 59 | - (firstPacketData β hβ ell hell hell1 T hT hTB) rfl δ hδ firstCoordinate (subset_refl _) (δ*hchild) | |
| 60 | - (firstPacketAgreement β hβ ell hell hell1 T hT hTB) N hN k hk) | |
| 61 | - k δ hchild firstCoordinate ev ep) | |
| 62 | - (hsmall : (initialCoefficientCost+2*initialCoefficientCost*δ*(hchild*firstRatio)+ep)*(T^2/2)+ | |
| 63 | - initialCoefficientCost*T+ | |
| 64 | - boundaryLocalizationC2*(initialCoefficientCost+hchild*firstRatio+ev)*ell^3*T ≤ 1/2) : | |
| 65 | - LowBounds ((packetBaseParent β hβ ell hell hell1 T hT hTB).child | |
| 66 | - G k firstNormal hgraph nextEll hnext hnext1) := | |
| 67 | - (packetBaseState β hβ ell hell hell1 T hT hTB).evolution.firstChildLowBounds | |
| 68 | - (packetBaseLowBounds β hβ ell hell hell1 T hT hTB) | |
| 69 | - firstNormal firstNormal_unit firstFrame support compact δ hδ hδ1 hchild hhchild | |
| 70 | - firstCoordinate (subset_refl _) N hN k hk Q G hG hgraph nextEll hnext hnext1 | |
| 71 | - rfl hquarter (subset_halfBall.trans Metric.ball_subset_closedBall) | |
| 72 | - ev ep initialCoefficientCost initialCoefficientCost herr | |
| 73 | - (firstPacket_primary_size β hβ ell hell hell1 T hT hTB) | |
| 74 | - (firstPacket_primary_flux β hβ ell hell hell1 T hT hTB) | |
| 75 | - (packetBase_physical_strain β hβ ell hell hell1 T hT hTB) | |
| 76 | - (packetBase_physical_force β hβ ell hell hell1 T hT hTB) hsmall | |
| 77 | - | |
| 78 | -end EulerBaseDatum | |
+164 −1 Euler/BaseFirstPacketChoice.lean View file
| @@ -1,4 +1,7 @@ | ||
| 1 | -import Euler.BaseFirstPacket | |
| 1 | +import Euler.BasePacketSetup | |
| 2 | +import Euler.ParentHomogeneousPacketLowBounds | |
| 3 | +import Euler.ParentInitializedState | |
| 4 | +import Euler.ParentFirstPacketLowGuards | |
| 2 | 5 | import Euler.ParentForwardInitialSupport |
| 3 | 6 | import Euler.BasePacketUniformCosts |
| 4 | 7 | import Euler.ParentUniformForwardChild |
| @@ -6,6 +9,166 @@ import Euler.ParentUniformForwardChild | ||
| 6 | 9 | /-! One actual first-packet correction, its physical flow, labels and |
| 7 | 10 | source errors. The uniform scalar frequency guard constructs the record. -/ |
| 8 | 11 | |
| 12 | +/-! ## From `Euler/BasePacketLowBounds.lean` | |
| 13 | + | |
| 14 | +The text of `Euler/BasePacketLowBounds.lean`, folded into this file, which was its only importer. -/ | |
| 15 | + | |
| 16 | +section | |
| 17 | + | |
| 18 | +/-! The first packet's size and sign hypotheses are proved for the | |
| 19 | +concrete base solution on its actual restricted horizon. -/ | |
| 20 | + | |
| 21 | +noncomputable section | |
| 22 | + | |
| 23 | +namespace EulerBaseDatum | |
| 24 | + | |
| 25 | +open Set InnerProductSpace EulerSmoothLimit EulerParentPacketFrames | |
| 26 | + EulerBaseEulerGuards EulerPacketSupport EulerPacketFirstLowBounds | |
| 27 | + | |
| 28 | +variable (β : ℝ) (hβ : |β| ≤ 1) (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) | |
| 29 | + (T : ℝ) (hT : 0 < T) (hTB : T ≤ initialTime) | |
| 30 | + | |
| 31 | +def firstPacketData : EulerTransversePacketProvider.Data FirstPlane := | |
| 32 | + (packetBaseParent β hβ ell hell hell1 T hT hTB).transverseData | |
| 33 | + firstNormal firstNormal_unit firstFrame support compact | |
| 34 | + | |
| 35 | +theorem firstPacket_primary_size (t : Icc (0 : ℝ) T) (x : Space) : | |
| 36 | + ‖(firstPacketData β hβ ell hell hell1 T hT hTB).normal.field t x‖* | |
| 37 | + ‖EulerPacketForwardFactorization.canonicalVelocity | |
| 38 | + (firstPacketData β hβ ell hell hell1 T hT hTB) firstCoordinate t x‖ ≤ firstRatio := by | |
| 39 | + apply primary_size_le (firstPacketData β hβ ell hell hell1 T hT hTB) | |
| 40 | + initialCoefficientCost initialCoefficientCost_nonneg x | |
| 41 | + (fun s => packetBase_strain_bound β hβ ell hell hell1 T hT hTB s x) | |
| 42 | + (packetBase_short T hTB) firstCoordinate | |
| 43 | + · change ‖((packetBaseParent β hβ ell hell hell1 T hT hTB).transverseData | |
| 44 | + firstNormal firstNormal_unit firstFrame support compact).normal.field | |
| 45 | + (packetBaseParent β hβ ell hell hell1 T hT hTB).zeroTime x‖=1 | |
| 46 | + rw [source_normal_initial] | |
| 47 | + exact firstNormal_unit | |
| 48 | + · change ‖((packetBaseParent β hβ ell hell hell1 T hT hTB).transverseData | |
| 49 | + firstNormal firstNormal_unit firstFrame support compact).frame.field | |
| 50 | + (packetBaseParent β hβ ell hell hell1 T hT hTB).zeroTime x firstCoordinate‖=1 | |
| 51 | + rw [source_frame_initial,firstCoordinate_map] | |
| 52 | + simp | |
| 53 | + | |
| 54 | +theorem firstPacket_primary_flux (t : Icc (0 : ℝ) T) (x : Space) : | |
| 55 | + 0 ≤ ⟪(firstPacketData β hβ ell hell hell1 T hT hTB).normal.field t x, | |
| 56 | + (firstPacketData β hβ ell hell hell1 T hT hTB).M.field t x | |
| 57 | + (EulerPacketForwardFactorization.canonicalVelocity | |
| 58 | + (firstPacketData β hβ ell hell hell1 T hT hTB) firstCoordinate t x)⟫_ℝ := by | |
| 59 | + apply primary_flux_nonneg (firstPacketData β hβ ell hell hell1 T hT hTB) x firstCoordinate t | |
| 60 | + intro hx | |
| 61 | + exact (by norm_num : (0 : ℝ) ≤ 1/2).trans | |
| 62 | + (firstPacket_pressure_numerator β hβ ell hell hell1 T hT hTB t x hx) | |
| 63 | + | |
| 64 | +theorem packetBase_physical_strain (t : Icc (0 : ℝ) T) (x : Space) : | |
| 65 | + ‖fderiv ℝ (fun y => (packetBaseState β hβ ell hell hell1 T hT hTB).evolution.velocity (t,y)) x‖ ≤ | |
| 66 | + initialCoefficientCost := by | |
| 67 | + rw [← (packetBaseState β hβ ell hell hell1 T hT hTB).evolution.strain_at_normalized_inverse t x] | |
| 68 | + exact packetBase_strain_bound β hβ ell hell hell1 T hT hTB t _ | |
| 69 | + | |
| 70 | +theorem packetBase_physical_force (t : Icc (0 : ℝ) T) (x : Space) : | |
| 71 | + ‖fderiv ℝ ((packetBaseState β hβ ell hell hell1 T hT hTB).evolution.force t) x‖ ≤ | |
| 72 | + initialCoefficientCost := by | |
| 73 | + let E := (packetBaseState β hβ ell hell hell1 T hT hTB).evolution | |
| 74 | + have h := packetBase_curvature_bound β hβ ell hell hell1 T hT hTB t | |
| 75 | + (ell⁻¹ • E.inverse.field t x) | |
| 76 | + erw [E.curvature_eq] at h | |
| 77 | + change ‖fderiv ℝ (E.force t) | |
| 78 | + ((packetBaseParent β hβ ell hell hell1 T hT hTB).position t (ell • (ell⁻¹ • E.inverse.field t x)))‖ ≤ _ at h | |
| 79 | + simp only [smul_smul,mul_inv_cancel₀ hell.ne',one_smul] at h | |
| 80 | + erw [E.inverse.right_inverse] at h | |
| 81 | + exact h | |
| 82 | + | |
| 83 | +end EulerBaseDatum | |
| 84 | +end | |
| 85 | + | |
| 86 | +end | |
| 87 | + | |
| 88 | +/-! ## From `Euler/BaseFirstPacket.lean` | |
| 89 | + | |
| 90 | +The text of `Euler/BaseFirstPacket.lean`, folded into this file, which was its only importer. -/ | |
| 91 | + | |
| 92 | +section | |
| 93 | + | |
| 94 | +/-! The first packet over the concrete base solution produces an actual | |
| 95 | +smooth Euler state and its localized source bounds. All analytic input | |
| 96 | +comes from the same initialized correction, graph flow, and error bounds. -/ | |
| 97 | + | |
| 98 | +noncomputable section | |
| 99 | + | |
| 100 | +namespace EulerBaseDatum | |
| 101 | + | |
| 102 | +open Set EulerSmoothLimit EulerParentPacketFrames EulerPacketSupport | |
| 103 | + EulerAllOrderDriftCorrection EulerGraphInvariantFlow EulerPacketTerminalDatum | |
| 104 | + EulerPacketFirstLowBounds EulerMeanHarmonic | |
| 105 | + | |
| 106 | +variable (β : ℝ) (hβ : |β| ≤ 1) (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) | |
| 107 | + (T : ℝ) (hT : 0 < T) (hTB : T ≤ initialTime) | |
| 108 | + | |
| 109 | +def firstPacketMeanData : EulerMeanPacketProvider.Data := | |
| 110 | + (packetBaseParent β hβ ell hell hell1 T hT hTB).meanData | |
| 111 | + (packetBaseLowBounds β hβ ell hell hell1 T hT hTB) | |
| 112 | + | |
| 113 | +theorem firstPacketAgreement : EulerPacketCylinderField.SourceCoefficientAgreement | |
| 114 | + (firstPacketMeanData β hβ ell hell hell1 T hT hTB) | |
| 115 | + (firstPacketData β hβ ell hell hell1 T hT hTB) := | |
| 116 | + (packetBaseParent β hβ ell hell hell1 T hT hTB).sourceAgreement | |
| 117 | + firstNormal firstNormal_unit firstFrame support compact | |
| 118 | + (packetBaseLowBounds β hβ ell hell hell1 T hT hTB) | |
| 119 | + | |
| 120 | +variable (δ : ℝ) (hδ : 0 < δ) (hchild : ℝ) | |
| 121 | + (N : ℕ) (hN : 1 ≤ N) (k : ℝ) (hk : 4 ≤ k) | |
| 122 | + (Q : Budget period hT | |
| 123 | + (forwardInitializedCorrectionData (firstPacketMeanData β hβ ell hell hell1 T hT hTB) | |
| 124 | + (firstPacketData β hβ ell hell hell1 T hT hTB) rfl δ hδ firstCoordinate | |
| 125 | + (subset_refl _) (δ*hchild) (firstPacketAgreement β hβ ell hell hell1 T hT hTB) N hN k hk)) | |
| 126 | + (G : EulerPhysicalGraphFlowBounds.Data period T) | |
| 127 | + (hG : G.A=Q.liftedPacketCoefficient period | |
| 128 | + (forwardInitializedNormalizedField (firstPacketMeanData β hβ ell hell hell1 T hT hTB) | |
| 129 | + (firstPacketData β hβ ell hell hell1 T hT hTB) rfl δ hδ firstCoordinate (subset_refl _) (δ*hchild) N k)) | |
| 130 | + (hgraph : ∀ t q, graphConstraint k firstNormal (G.A.field t q)=0) | |
| 131 | + (nextEll : ℝ) (hnext : 0 < nextEll) (hnext1 : nextEll ≤ 1) | |
| 132 | + | |
| 133 | +def firstPacketState | |
| 134 | + (labels : LabelData ((packetBaseParent β hβ ell hell hell1 T hT hTB).child | |
| 135 | + G k firstNormal hgraph nextEll hnext hnext1)) : | |
| 136 | + SmoothState ((packetBaseParent β hβ ell hell hell1 T hT hTB).child | |
| 137 | + G k firstNormal hgraph nextEll hnext hnext1) := | |
| 138 | + (packetBaseState β hβ ell hell hell1 T hT hTB).forwardChild | |
| 139 | + (packetBaseLowBounds β hβ ell hell hell1 T hT hTB) | |
| 140 | + firstNormal firstNormal_unit firstFrame support compact symmetric | |
| 141 | + δ hδ firstCoordinate (subset_refl _) (δ*hchild) N hN k hk Q G hG hgraph nextEll hnext hnext1 labels | |
| 142 | + | |
| 143 | +def firstPacketLowBounds (hquarter : ell ≤ 1/4) (hδ1 : δ ≤ 1) (hhchild : 0 ≤ hchild) | |
| 144 | + (ev ep : ℝ) | |
| 145 | + (herr : (packetBaseState β hβ ell hell hell1 T hT hTB).evolution.HomogeneousSourceErrors | |
| 146 | + firstNormal firstNormal_unit firstFrame support compact Q | |
| 147 | + (forwardInitializedApproximationResidual (firstPacketMeanData β hβ ell hell hell1 T hT hTB) | |
| 148 | + (firstPacketData β hβ ell hell hell1 T hT hTB) rfl δ hδ firstCoordinate (subset_refl _) (δ*hchild) | |
| 149 | + (firstPacketAgreement β hβ ell hell hell1 T hT hTB) N hN k hk) | |
| 150 | + k δ hchild firstCoordinate ev ep) | |
| 151 | + (hsmall : (initialCoefficientCost+2*initialCoefficientCost*δ*(hchild*firstRatio)+ep)*(T^2/2)+ | |
| 152 | + initialCoefficientCost*T+ | |
| 153 | + boundaryLocalizationC2*(initialCoefficientCost+hchild*firstRatio+ev)*ell^3*T ≤ 1/2) : | |
| 154 | + LowBounds ((packetBaseParent β hβ ell hell hell1 T hT hTB).child | |
| 155 | + G k firstNormal hgraph nextEll hnext hnext1) := | |
| 156 | + (packetBaseState β hβ ell hell hell1 T hT hTB).evolution.firstChildLowBounds | |
| 157 | + (packetBaseLowBounds β hβ ell hell hell1 T hT hTB) | |
| 158 | + firstNormal firstNormal_unit firstFrame support compact δ hδ hδ1 hchild hhchild | |
| 159 | + firstCoordinate (subset_refl _) N hN k hk Q G hG hgraph nextEll hnext hnext1 | |
| 160 | + rfl hquarter (subset_halfBall.trans Metric.ball_subset_closedBall) | |
| 161 | + ev ep initialCoefficientCost initialCoefficientCost herr | |
| 162 | + (firstPacket_primary_size β hβ ell hell hell1 T hT hTB) | |
| 163 | + (firstPacket_primary_flux β hβ ell hell hell1 T hT hTB) | |
| 164 | + (packetBase_physical_strain β hβ ell hell hell1 T hT hTB) | |
| 165 | + (packetBase_physical_force β hβ ell hell hell1 T hT hTB) hsmall | |
| 166 | + | |
| 167 | +end EulerBaseDatum | |
| 168 | +end | |
| 169 | + | |
| 170 | +end | |
| 171 | + | |
| 9 | 172 | noncomputable section |
| 10 | 173 | |
| 11 | 174 | namespace EulerBaseDatum |
+96 −1 Euler/BaseFirstPacketEvolution.lean View file
| @@ -1,10 +1,105 @@ | ||
| 1 | 1 | import Euler.BaseFirstPacketChoice |
| 2 | -import Euler.BasePacketFrameValues | |
| 2 | +import Euler.BasePacketSetup | |
| 3 | +import Euler.ParentStateGeometry | |
| 4 | +import Euler.ParentEulerLowBounds | |
| 3 | 5 | import Euler.ParentPacketStateGeometry |
| 4 | 6 | |
| 5 | 7 | /-! The first constructed packet supplies the physical low bounds and |
| 6 | 8 | the actual center expansion needed by the first normal stage. -/ |
| 7 | 9 | |
| 10 | +/-! ## From `Euler/BasePacketFrameValues.lean` | |
| 11 | + | |
| 12 | +The text of `Euler/BasePacketFrameValues.lean`, folded into this file, which was its only importer. -/ | |
| 13 | + | |
| 14 | +section | |
| 15 | + | |
| 16 | +/-! Exact initial frame parameters for the first normal stage: its | |
| 17 | +coupling is one, tilt is beta, and shear is the prescribed first shear. -/ | |
| 18 | + | |
| 19 | +noncomputable section | |
| 20 | + | |
| 21 | +namespace EulerBaseDatum | |
| 22 | + | |
| 23 | +open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerParentPacketFrames | |
| 24 | + EulerPacketSupport EulerBaseEulerGuards EulerPacketMovingFrame EulerPacketNormalizedPrimary | |
| 25 | + EulerPacketCrossProduct EulerPacketSourceGeometry EulerVolterraConvolution | |
| 26 | + | |
| 27 | +theorem first_basis_cross : cross firstNormal (EuclideanSpace.single 1 1)=EuclideanSpace.single 2 1 := by | |
| 28 | + ext i | |
| 29 | + fin_cases i <;> simp [cross,firstNormal,cross_apply] | |
| 30 | + | |
| 31 | +theorem first_normalizedCoupling (β : ℝ) : | |
| 32 | + normalizedCoupling (linear β) firstNormal (EuclideanSpace.single 1 1)=1 := by | |
| 33 | + simp [normalizedCoupling,unit,firstNormal,EuclideanSpace.inner_single_left, | |
| 34 | + PiLp.add_apply,PiLp.smul_apply] | |
| 35 | + | |
| 36 | +theorem first_normalizedTilt (β : ℝ) : | |
| 37 | + normalizedTilt (linear β) firstNormal (EuclideanSpace.single 1 1)=β := by | |
| 38 | + rw [normalizedTilt,first_normalizedCoupling] | |
| 39 | + have hp : unit firstNormal=firstNormal := by rw [unit,firstNormal_unit,inv_one,one_smul] | |
| 40 | + have hq : unit (EuclideanSpace.single 1 1 : Space)=EuclideanSpace.single 1 1 := by simp [unit] | |
| 41 | + rw [hp,hq,first_basis_cross,linear_q] | |
| 42 | + simp [EuclideanSpace.inner_single_left,PiLp.add_apply,PiLp.smul_apply] | |
| 43 | + | |
| 44 | +variable (β : ℝ) (hβ : |β| ≤ 1) (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) | |
| 45 | + (T : ℝ) (hT : 0 < T) (hTB : T ≤ initialTime) | |
| 46 | + | |
| 47 | +theorem packetBase_centerStrain_initial : | |
| 48 | + (packetBaseParent β hβ ell hell hell1 T hT hTB).centerStrain 0=linear β := by | |
| 49 | + let A := packetBaseParent β hβ ell hell hell1 T hT hTB | |
| 50 | + let S := packetBaseState β hβ ell hell hell1 T hT hTB | |
| 51 | + change A.centerStrain 0=linear β | |
| 52 | + have h0 : (0 : Space) ∈ support := subset_tsupport _ (by | |
| 53 | + simp [Function.mem_support,EulerSpatialCutoffs.innerCutoff_zero]) | |
| 54 | + calc | |
| 55 | + _ = A.strain.field A.zeroTime 0 := by | |
| 56 | + change A.strain.field (projIcc 0 A.T A.T_pos.le 0) 0=A.strain.field A.zeroTime 0 | |
| 57 | + rw [projIcc_of_mem A.T_pos.le (show (0 : ℝ) ∈ Icc 0 A.T from ⟨le_rfl,A.T_pos.le⟩)] | |
| 58 | + rfl | |
| 59 | + _ = A.initialStrain.field 0 := by | |
| 60 | + rw [S.evolution.strain_origin S.odd,S.evolution.initialStrain_eq,smul_zero] | |
| 61 | + rfl | |
| 62 | + _ = linear β := packetBase_initialStrain β hβ ell hell hell1 T hT hTB 0 h0 | |
| 63 | + | |
| 64 | +theorem packetBase_sourceNormal_initial : | |
| 65 | + (packetBaseParent β hβ ell hell hell1 T hT hTB).sourceNormal firstNormal 0=firstNormal := by | |
| 66 | + let A := packetBaseParent β hβ ell hell hell1 T hT hTB | |
| 67 | + calc | |
| 68 | + _ = (A.transverseData firstNormal firstNormal_unit firstFrame support compact).normal.field | |
| 69 | + A.zeroTime 0 := (A.source_normal_eq firstNormal firstNormal_unit firstFrame support compact A.zeroTime).symm | |
| 70 | + _ = _ := source_normal_initial firstNormal firstNormal_unit firstFrame support compact 0 | |
| 71 | + | |
| 72 | +theorem packetBase_sourceVelocity_initial : | |
| 73 | + (packetBaseParent β hβ ell hell hell1 T hT hTB).sourceVelocity | |
| 74 | + firstNormal firstNormal_unit firstFrame support compact firstCoordinate 0=EuclideanSpace.single 1 1 := by | |
| 75 | + change EulerPacketForwardFactorization.uncutVelocity | |
| 76 | + ((packetBaseParent β hβ ell hell hell1 T hT hTB).transverseData | |
| 77 | + firstNormal firstNormal_unit firstFrame support compact) firstCoordinate 0 0=_ | |
| 78 | + rw [EulerPacketForwardFactorization.uncutVelocity_initial] | |
| 79 | + exact (source_frame_initial (G := packetBaseParent β hβ ell hell hell1 T hT hTB) | |
| 80 | + firstNormal firstNormal_unit firstFrame support compact firstCoordinate 0).trans firstCoordinate_map | |
| 81 | + | |
| 82 | +theorem first_frame_parameters {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] | |
| 83 | + {D : EulerTransversePacketProvider.Data U} (P : ParentFrame D 0) (hchild : ℝ) | |
| 84 | + (hB : P.B 0=(packetBaseParent β hβ ell hell hell1 T hT hTB).centerStrain 0) | |
| 85 | + (hm : P.m 0=(packetBaseParent β hβ ell hell hell1 T hT hTB).sourceNormal firstNormal 0) | |
| 86 | + (hv : P.v 0=(packetBaseParent β hβ ell hell hell1 T hT hTB).sourceVelocity | |
| 87 | + firstNormal firstNormal_unit firstFrame support compact firstCoordinate 0) | |
| 88 | + (hc : P.c=hchild) : P.a=1 ∧ P.sigma=Real.sqrt β ∧ P.shear=hchild := by | |
| 89 | + have hB' := hB.trans (packetBase_centerStrain_initial β hβ ell hell hell1 T hT hTB) | |
| 90 | + have hm' := hm.trans (packetBase_sourceNormal_initial β hβ ell hell hell1 T hT hTB) | |
| 91 | + have hv' := hv.trans (packetBase_sourceVelocity_initial β hβ ell hell hell1 T hT hTB) | |
| 92 | + refine ⟨?_,?_,?_⟩ | |
| 93 | + · rw [ParentFrame.a,hB',hm',hv',first_normalizedCoupling] | |
| 94 | + · rw [ParentFrame.sigma,hB',hm',hv',first_normalizedTilt] | |
| 95 | + · rw [ParentFrame.shear,primaryShear,hc,hm',hv',firstNormal_unit] | |
| 96 | + simp | |
| 97 | + | |
| 98 | +end EulerBaseDatum | |
| 99 | +end | |
| 100 | + | |
| 101 | +end | |
| 102 | + | |
| 8 | 103 | noncomputable section |
| 9 | 104 | |
| 10 | 105 | namespace EulerParentPacketFrames.SmoothState |
+91 −1 Euler/BaseFirstPacketScales.lean View file
| @@ -1,4 +1,5 @@ | ||
| 1 | -import Euler.BasePacketFrequencyCost | |
| 1 | +import Euler.BasePacketUniformCosts | |
| 2 | +import Euler.PacketBaseGuardScales | |
| 2 | 3 | import Euler.PacketUniversalFrequency |
| 3 | 4 | import Euler.PacketLowConstants |
| 4 | 5 | import Euler.PacketLowBoundPropagation |
| @@ -6,6 +7,95 @@ import Euler.PacketLowBoundPropagation | ||
| 6 | 7 | /-! The literal polynomial first-packet scales satisfy every local, |
| 7 | 8 | frequency and localized lower-bound guard after the final base choice. -/ |
| 8 | 9 | |
| 10 | +/-! ## From `Euler/BasePacketFrequencyCost.lean` | |
| 11 | + | |
| 12 | +The text of `Euler/BasePacketFrequencyCost.lean`, folded into this file, which was its only importer. -/ | |
| 13 | + | |
| 14 | +section | |
| 15 | + | |
| 16 | +/-! The manuscript's literal first-packet scales have a fixed monomial | |
| 17 | +frequency cost. The exponent and coefficient do not depend on J or X. -/ | |
| 18 | + | |
| 19 | +noncomputable section | |
| 20 | + | |
| 21 | +namespace EulerBaseDatum | |
| 22 | + | |
| 23 | +open Real Filter EulerPacketBaseGuardScales EulerPacketUniformSource EulerPacketSourceFrequency | |
| 24 | + | |
| 25 | +theorem firstParameterSize_literal (J : ℕ) (hJ : 1 ≤ J) (X : ℝ) (hX : 1 ≤ X) : | |
| 26 | + firstParameterSize (baseHorizon J X) (X^(-1010 : ℝ)) (X^1000) ≤ | |
| 27 | + (7+solutionLabelConstant)*X^1010 := by | |
| 28 | + have hX0 := zero_le_one.trans hX | |
| 29 | + have hJr : (1 : ℝ) ≤ J := by exact_mod_cast hJ | |
| 30 | + have hden : 1 ≤ 6*(J : ℝ)^2 := by nlinarith | |
| 31 | + have hi : (6*(J : ℝ)^2)⁻¹ ≤ 1 := inv_le_one_of_one_le₀ hden | |
| 32 | + have hT : (baseHorizon J X)⁻¹ ≤ X^498 := by | |
| 33 | + unfold baseHorizon | |
| 34 | + rw [mul_inv_rev,Real.rpow_neg hX0,inv_inv] | |
| 35 | + norm_num only [Real.rpow_ofNat] | |
| 36 | + exact (mul_le_mul_of_nonneg_left hi (pow_nonneg hX0 498)).trans_eq (mul_one _) | |
| 37 | + have hd : (X^(-1010 : ℝ))⁻¹=X^1010 := by | |
| 38 | + rw [Real.rpow_neg hX0,inv_inv] | |
| 39 | + norm_num only [Real.rpow_ofNat] | |
| 40 | + have ht : X^498 ≤ X^1010 := pow_le_pow_right₀ hX (by norm_num) | |
| 41 | + have hh : X^1000 ≤ X^1010 := pow_le_pow_right₀ hX (by norm_num) | |
| 42 | + have hK := solutionLabelConstant_one | |
| 43 | + have hone : (1 : ℝ) ≤ X^1010 := one_le_pow₀ hX | |
| 44 | + have hc : 4+solutionLabelConstant ≤ (4+solutionLabelConstant)*X^1010 := by | |
| 45 | + simpa only [mul_one] using mul_le_mul_of_nonneg_left hone (by linarith : 0 ≤ 4+solutionLabelConstant) | |
| 46 | + unfold firstParameterSize | |
| 47 | + rw [hd] | |
| 48 | + linarith only [hT.trans ht,hh,hc] | |
| 49 | + | |
| 50 | +def firstFrequencyConstant : ℝ := frequencyConstant*(7+solutionLabelConstant)^frequencyPower | |
| 51 | +def firstFrequencyPower : ℕ := 1010*frequencyPower | |
| 52 | + | |
| 53 | +theorem first_frequency_cost_bound (J : ℕ) (hJ : 1 ≤ J) (X : ℝ) (hX : 1 ≤ X) : | |
| 54 | + EulerPacketInitializedOutputCost.uniformConstant* | |
| 55 | + (profileEnvelope (firstParameterSize (baseHorizon J X) (X^(-1010 : ℝ)) (X^1000)))^ | |
| 56 | + EulerPacketInitializedOutputCost.uniformPower ≤ firstFrequencyConstant*X^firstFrequencyPower := by | |
| 57 | + have hXpos := zero_lt_one.trans_le hX | |
| 58 | + have hp := (firstParameterSize_bounds (baseHorizon J X) (X^(-1010 : ℝ)) (X^1000) | |
| 59 | + (baseHorizon_pos J hJ hXpos) (Real.rpow_pos_of_pos hXpos _) (pow_nonneg hXpos.le _)).1 | |
| 60 | + apply (frequency_bound _ hp).trans | |
| 61 | + calc | |
| 62 | + _ ≤ frequencyConstant*((7+solutionLabelConstant)*X^1010)^frequencyPower := by | |
| 63 | + apply mul_le_mul_of_nonneg_left _ frequencyConstant_pos.le | |
| 64 | + exact pow_le_pow_left₀ (zero_le_one.trans hp) (firstParameterSize_literal J hJ X hX) _ | |
| 65 | + _ = _ := by | |
| 66 | + unfold firstFrequencyConstant firstFrequencyPower | |
| 67 | + rw [mul_pow,← pow_mul] | |
| 68 | + ring | |
| 69 | + | |
| 70 | +/-- This remaining threshold depends only on the fixed base exponent, | |
| 71 | +not on a parent or on a stage of the subsequent induction. -/ | |
| 72 | +theorem first_frequency_guard_eventually (J : ℕ) (hJ : 1 ≤ J) (D : ℕ) | |
| 73 | + (hD : (firstFrequencyPower : ℝ) < (D : ℝ)*(theta/100)) : | |
| 74 | + ∀ᶠ X : ℝ in atTop, | |
| 75 | + EulerPacketInitializedOutputCost.uniformConstant* | |
| 76 | + (profileEnvelope (firstParameterSize (baseHorizon J X) (X^(-1010 : ℝ)) (X^1000)))^ | |
| 77 | + EulerPacketInitializedOutputCost.uniformPower ≤ smallPower (X^D) := by | |
| 78 | + have hgap : 0 < (D : ℝ)*(theta/100)-(firstFrequencyPower : ℝ) := sub_pos.mpr hD | |
| 79 | + filter_upwards [eventually_ge_atTop (1 : ℝ), | |
| 80 | + (_root_.tendsto_rpow_atTop hgap).eventually_ge_atTop firstFrequencyConstant] with X hX hC | |
| 81 | + have hXp := zero_lt_one.trans_le hX | |
| 82 | + apply (first_frequency_cost_bound J hJ X hX).trans | |
| 83 | + calc | |
| 84 | + _ ≤ X^((D : ℝ)*(theta/100)-(firstFrequencyPower : ℝ))*X^firstFrequencyPower := | |
| 85 | + mul_le_mul_of_nonneg_right hC (pow_nonneg hXp.le _) | |
| 86 | + _ = X^((D : ℝ)*(theta/100)) := by | |
| 87 | + rw [← Real.rpow_natCast X firstFrequencyPower,← Real.rpow_add hXp] | |
| 88 | + congr 1 | |
| 89 | + ring | |
| 90 | + _ = smallPower (X^D) := by | |
| 91 | + unfold smallPower | |
| 92 | + rw [Real.rpow_mul hXp.le,Real.rpow_natCast] | |
| 93 | + | |
| 94 | +end EulerBaseDatum | |
| 95 | +end | |
| 96 | + | |
| 97 | +end | |
| 98 | + | |
| 9 | 99 | noncomputable section |
| 10 | 100 | |
| 11 | 101 | namespace EulerBaseDatum |
+92 −1 Euler/BaseInductionStage.lean View file
| @@ -1,9 +1,100 @@ | ||
| 1 | 1 | import Euler.PacketInductionStage |
| 2 | -import Euler.BaseLiteralFirstPacket | |
| 2 | +import Euler.BaseFirstPacketChoice | |
| 3 | +import Euler.BaseFirstPacketScales | |
| 4 | +import Euler.PacketSourceScaleSequence | |
| 3 | 5 | |
| 4 | 6 | /-! The first stage of the actual induction is constructed from the |
| 5 | 7 | literal compact base solution and the first same-Q packet choice. -/ |
| 6 | 8 | |
| 9 | +/-! ## From `Euler/BaseLiteralFirstPacket.lean` | |
| 10 | + | |
| 11 | +The text of `Euler/BaseLiteralFirstPacket.lean`, folded into this file, which was its only importer. -/ | |
| 12 | + | |
| 13 | +section | |
| 14 | + | |
| 15 | +/-! The literal base scale constructs the first actual smooth Euler | |
| 16 | +packet state and its localized source bounds. -/ | |
| 17 | + | |
| 18 | +noncomputable section | |
| 19 | + | |
| 20 | +namespace EulerBaseDatum.FirstScaleGuards | |
| 21 | + | |
| 22 | +open Real EulerParentPacketFrames EulerPacketBaseGuardScales EulerPacketSourceScaleSequence | |
| 23 | + EulerPacketSourceScaleChoice EulerPacketFirstLowBounds | |
| 24 | + | |
| 25 | +variable {J D : ℕ} {X : ℝ} (H : FirstScaleGuards J D X) | |
| 26 | + | |
| 27 | +include H | |
| 28 | + | |
| 29 | +theorem x_pos : 0 < X := zero_lt_one.trans_le H.x_one | |
| 30 | + | |
| 31 | +theorem tilt_bound : |X^(-2 : ℝ)| ≤ 1 := by | |
| 32 | + rw [abs_of_nonneg (rpow_nonneg H.x_pos.le _)] | |
| 33 | + exact rpow_le_one_of_one_le_of_nonpos H.x_one (by norm_num) | |
| 34 | + | |
| 35 | +theorem core_pos : 0 < baseRadius X := baseRadius_pos H.x_pos | |
| 36 | + | |
| 37 | +theorem core_one : baseRadius X ≤ 1 := H.radius_small.trans (by norm_num) | |
| 38 | + | |
| 39 | +theorem time_pos (hJ : 1 ≤ J) : 0 < baseHorizon J X := baseHorizon_pos J hJ H.x_pos | |
| 40 | + | |
| 41 | +theorem spike_pos : 0 < X^(-1010 : ℝ) := rpow_pos_of_pos H.x_pos _ | |
| 42 | + | |
| 43 | +theorem spike_one : X^(-1010 : ℝ) ≤ 1 := rpow_le_one_of_one_le_of_nonpos H.x_one (by norm_num) | |
| 44 | + | |
| 45 | +theorem shear_pos : 0 < X^1000 := pow_pos H.x_pos _ | |
| 46 | + | |
| 47 | +omit H in | |
| 48 | +theorem nextRadius_pos : 0 < supportScale J X 0 := exp_pos _ | |
| 49 | + | |
| 50 | +theorem nextRadius_one : supportScale J X 0 ≤ 1 := by | |
| 51 | + unfold supportScale | |
| 52 | + apply exp_le_one_iff.mpr | |
| 53 | + exact div_nonpos_of_nonpos_of_nonneg (neg_nonpos.mpr H.x_pos.le) | |
| 54 | + (rpow_nonneg (Nat.cast_nonneg _) _) | |
| 55 | + | |
| 56 | +def packet (hJ : 1 ≤ J) : | |
| 57 | + FirstPacketChoice (X^(-2 : ℝ)) H.tilt_bound (baseRadius X) H.core_pos H.core_one | |
| 58 | + (baseHorizon J X) (H.time_pos hJ) H.local_time | |
| 59 | + (X^(-1010 : ℝ)) H.spike_pos (X^1000) (X^D) H.frequency | |
| 60 | + (supportScale J X 0) nextRadius_pos H.nextRadius_one := | |
| 61 | + Classical.choice (exists_firstPacketChoice (X^(-2 : ℝ)) H.tilt_bound | |
| 62 | + (baseRadius X) H.core_pos H.core_one (baseHorizon J X) (H.time_pos hJ) H.local_time | |
| 63 | + (X^(-1010 : ℝ)) H.spike_pos (X^1000) (X^D) H.frequency | |
| 64 | + (supportScale J X 0) nextRadius_pos H.nextRadius_one H.spike_one H.shear_pos | |
| 65 | + H.source_frequency H.label_frequency H.radius_frequency) | |
| 66 | + | |
| 67 | +def parent (hJ : 1 ≤ J) : Parent := (H.packet hJ).parent | |
| 68 | + | |
| 69 | +def state (hJ : 1 ≤ J) : SmoothState (H.parent hJ) := (H.packet hJ).state | |
| 70 | + | |
| 71 | +theorem state_label (hJ : 1 ≤ J) : (H.state hJ).labels.K=(X^D)^80 := | |
| 72 | + (H.packet hJ).state_label_constant | |
| 73 | + | |
| 74 | +def lowBounds (hJ : 1 ≤ J) : LowBounds (H.parent hJ) := | |
| 75 | + FirstPacketChoice.lowBounds (X^(-2 : ℝ)) H.tilt_bound (baseRadius X) H.core_pos H.core_one | |
| 76 | + (baseHorizon J X) (H.time_pos hJ) H.local_time | |
| 77 | + (X^(-1010 : ℝ)) H.spike_pos (X^1000) (X^D) H.frequency | |
| 78 | + (supportScale J X 0) nextRadius_pos H.nextRadius_one (H.packet hJ) | |
| 79 | + H.radius_small H.spike_one H.shear_pos.le (by | |
| 80 | + simpa only [literalInitialPressureCost,literalInitialError,← add_assoc] using H.localized) | |
| 81 | + | |
| 82 | +theorem lowBounds_values (hJ : 1 ≤ J) : | |
| 83 | + (H.lowBounds hJ).Be=initialCoefficientCost ∧ | |
| 84 | + (H.lowBounds hJ).Bc=initialCoefficientCost+X^1000*firstRatio+literalInitialError D X ∧ | |
| 85 | + (H.lowBounds hJ).r=baseRadius X ∧ | |
| 86 | + (H.lowBounds hJ).K=initialCoefficientCost+literalInitialPressureCost D X := by | |
| 87 | + refine ⟨rfl,rfl,rfl,?_⟩ | |
| 88 | + change initialCoefficientCost+2*initialCoefficientCost*X^(-1010 : ℝ)*(X^1000*firstRatio)+ | |
| 89 | + (X^D)^(-(1/4 : ℝ))=initialCoefficientCost+literalInitialPressureCost D X | |
| 90 | + unfold literalInitialPressureCost literalInitialError | |
| 91 | + ring | |
| 92 | + | |
| 93 | +end EulerBaseDatum.FirstScaleGuards | |
| 94 | +end | |
| 95 | + | |
| 96 | +end | |
| 97 | + | |
| 7 | 98 | noncomputable section |
| 8 | 99 | |
| 9 | 100 | namespace EulerPacketInductionScales.Scales |
+0 −83 Euler/BaseLiteralFirstPacket.lean deleted
| @@ -1,83 +0,0 @@ | ||
| 1 | -import Euler.BaseFirstPacketChoice | |
| 2 | -import Euler.BaseFirstPacketScales | |
| 3 | -import Euler.PacketSourceScaleSequence | |
| 4 | - | |
| 5 | -/-! The literal base scale constructs the first actual smooth Euler | |
| 6 | -packet state and its localized source bounds. -/ | |
| 7 | - | |
| 8 | -noncomputable section | |
| 9 | - | |
| 10 | -namespace EulerBaseDatum.FirstScaleGuards | |
| 11 | - | |
| 12 | -open Real EulerParentPacketFrames EulerPacketBaseGuardScales EulerPacketSourceScaleSequence | |
| 13 | - EulerPacketSourceScaleChoice EulerPacketFirstLowBounds | |
| 14 | - | |
| 15 | -variable {J D : ℕ} {X : ℝ} (H : FirstScaleGuards J D X) | |
| 16 | - | |
| 17 | -include H | |
| 18 | - | |
| 19 | -theorem x_pos : 0 < X := zero_lt_one.trans_le H.x_one | |
| 20 | - | |
| 21 | -theorem tilt_bound : |X^(-2 : ℝ)| ≤ 1 := by | |
| 22 | - rw [abs_of_nonneg (rpow_nonneg H.x_pos.le _)] | |
| 23 | - exact rpow_le_one_of_one_le_of_nonpos H.x_one (by norm_num) | |
| 24 | - | |
| 25 | -theorem core_pos : 0 < baseRadius X := baseRadius_pos H.x_pos | |
| 26 | - | |
| 27 | -theorem core_one : baseRadius X ≤ 1 := H.radius_small.trans (by norm_num) | |
| 28 | - | |
| 29 | -theorem time_pos (hJ : 1 ≤ J) : 0 < baseHorizon J X := baseHorizon_pos J hJ H.x_pos | |
| 30 | - | |
| 31 | -theorem spike_pos : 0 < X^(-1010 : ℝ) := rpow_pos_of_pos H.x_pos _ | |
| 32 | - | |
| 33 | -theorem spike_one : X^(-1010 : ℝ) ≤ 1 := rpow_le_one_of_one_le_of_nonpos H.x_one (by norm_num) | |
| 34 | - | |
| 35 | -theorem shear_pos : 0 < X^1000 := pow_pos H.x_pos _ | |
| 36 | - | |
| 37 | -omit H in | |
| 38 | -theorem nextRadius_pos : 0 < supportScale J X 0 := exp_pos _ | |
| 39 | - | |
| 40 | -theorem nextRadius_one : supportScale J X 0 ≤ 1 := by | |
| 41 | - unfold supportScale | |
| 42 | - apply exp_le_one_iff.mpr | |
| 43 | - exact div_nonpos_of_nonpos_of_nonneg (neg_nonpos.mpr H.x_pos.le) | |
| 44 | - (rpow_nonneg (Nat.cast_nonneg _) _) | |
| 45 | - | |
| 46 | -def packet (hJ : 1 ≤ J) : | |
| 47 | - FirstPacketChoice (X^(-2 : ℝ)) H.tilt_bound (baseRadius X) H.core_pos H.core_one | |
| 48 | - (baseHorizon J X) (H.time_pos hJ) H.local_time | |
| 49 | - (X^(-1010 : ℝ)) H.spike_pos (X^1000) (X^D) H.frequency | |
| 50 | - (supportScale J X 0) nextRadius_pos H.nextRadius_one := | |
| 51 | - Classical.choice (exists_firstPacketChoice (X^(-2 : ℝ)) H.tilt_bound | |
| 52 | - (baseRadius X) H.core_pos H.core_one (baseHorizon J X) (H.time_pos hJ) H.local_time | |
| 53 | - (X^(-1010 : ℝ)) H.spike_pos (X^1000) (X^D) H.frequency | |
| 54 | - (supportScale J X 0) nextRadius_pos H.nextRadius_one H.spike_one H.shear_pos | |
| 55 | - H.source_frequency H.label_frequency H.radius_frequency) | |
| 56 | - | |
| 57 | -def parent (hJ : 1 ≤ J) : Parent := (H.packet hJ).parent | |
| 58 | - | |
| 59 | -def state (hJ : 1 ≤ J) : SmoothState (H.parent hJ) := (H.packet hJ).state | |
| 60 | - | |
| 61 | -theorem state_label (hJ : 1 ≤ J) : (H.state hJ).labels.K=(X^D)^80 := | |
| 62 | - (H.packet hJ).state_label_constant | |
| 63 | - | |
| 64 | -def lowBounds (hJ : 1 ≤ J) : LowBounds (H.parent hJ) := | |
| 65 | - FirstPacketChoice.lowBounds (X^(-2 : ℝ)) H.tilt_bound (baseRadius X) H.core_pos H.core_one | |
| 66 | - (baseHorizon J X) (H.time_pos hJ) H.local_time | |
| 67 | - (X^(-1010 : ℝ)) H.spike_pos (X^1000) (X^D) H.frequency | |
| 68 | - (supportScale J X 0) nextRadius_pos H.nextRadius_one (H.packet hJ) | |
| 69 | - H.radius_small H.spike_one H.shear_pos.le (by | |
| 70 | - simpa only [literalInitialPressureCost,literalInitialError,← add_assoc] using H.localized) | |
| 71 | - | |
| 72 | -theorem lowBounds_values (hJ : 1 ≤ J) : | |
| 73 | - (H.lowBounds hJ).Be=initialCoefficientCost ∧ | |
| 74 | - (H.lowBounds hJ).Bc=initialCoefficientCost+X^1000*firstRatio+literalInitialError D X ∧ | |
| 75 | - (H.lowBounds hJ).r=baseRadius X ∧ | |
| 76 | - (H.lowBounds hJ).K=initialCoefficientCost+literalInitialPressureCost D X := by | |
| 77 | - refine ⟨rfl,rfl,rfl,?_⟩ | |
| 78 | - change initialCoefficientCost+2*initialCoefficientCost*X^(-1010 : ℝ)*(X^1000*firstRatio)+ | |
| 79 | - (X^D)^(-(1/4 : ℝ))=initialCoefficientCost+literalInitialPressureCost D X | |
| 80 | - unfold literalInitialPressureCost literalInitialError | |
| 81 | - ring | |
| 82 | - | |
| 83 | -end EulerBaseDatum.FirstScaleGuards | |
+0 −87 Euler/BasePacketFrameValues.lean deleted
| @@ -1,87 +0,0 @@ | ||
| 1 | -import Euler.BasePacketSetup | |
| 2 | -import Euler.ParentStateGeometry | |
| 3 | -import Euler.ParentEulerLowBounds | |
| 4 | - | |
| 5 | -/-! Exact initial frame parameters for the first normal stage: its | |
| 6 | -coupling is one, tilt is beta, and shear is the prescribed first shear. -/ | |
| 7 | - | |
| 8 | -noncomputable section | |
| 9 | - | |
| 10 | -namespace EulerBaseDatum | |
| 11 | - | |
| 12 | -open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerParentPacketFrames | |
| 13 | - EulerPacketSupport EulerBaseEulerGuards EulerPacketMovingFrame EulerPacketNormalizedPrimary | |
| 14 | - EulerPacketCrossProduct EulerPacketSourceGeometry EulerVolterraConvolution | |
| 15 | - | |
| 16 | -theorem first_basis_cross : cross firstNormal (EuclideanSpace.single 1 1)=EuclideanSpace.single 2 1 := by | |
| 17 | - ext i | |
| 18 | - fin_cases i <;> simp [cross,firstNormal,cross_apply] | |
| 19 | - | |
| 20 | -theorem first_normalizedCoupling (β : ℝ) : | |
| 21 | - normalizedCoupling (linear β) firstNormal (EuclideanSpace.single 1 1)=1 := by | |
| 22 | - simp [normalizedCoupling,unit,firstNormal,EuclideanSpace.inner_single_left, | |
| 23 | - PiLp.add_apply,PiLp.smul_apply] | |
| 24 | - | |
| 25 | -theorem first_normalizedTilt (β : ℝ) : | |
| 26 | - normalizedTilt (linear β) firstNormal (EuclideanSpace.single 1 1)=β := by | |
| 27 | - rw [normalizedTilt,first_normalizedCoupling] | |
| 28 | - have hp : unit firstNormal=firstNormal := by rw [unit,firstNormal_unit,inv_one,one_smul] | |
| 29 | - have hq : unit (EuclideanSpace.single 1 1 : Space)=EuclideanSpace.single 1 1 := by simp [unit] | |
| 30 | - rw [hp,hq,first_basis_cross,linear_q] | |
| 31 | - simp [EuclideanSpace.inner_single_left,PiLp.add_apply,PiLp.smul_apply] | |
| 32 | - | |
| 33 | -variable (β : ℝ) (hβ : |β| ≤ 1) (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) | |
| 34 | - (T : ℝ) (hT : 0 < T) (hTB : T ≤ initialTime) | |
| 35 | - | |
| 36 | -theorem packetBase_centerStrain_initial : | |
| 37 | - (packetBaseParent β hβ ell hell hell1 T hT hTB).centerStrain 0=linear β := by | |
| 38 | - let A := packetBaseParent β hβ ell hell hell1 T hT hTB | |
| 39 | - let S := packetBaseState β hβ ell hell hell1 T hT hTB | |
| 40 | - change A.centerStrain 0=linear β | |
| 41 | - have h0 : (0 : Space) ∈ support := subset_tsupport _ (by | |
| 42 | - simp [Function.mem_support,EulerSpatialCutoffs.innerCutoff_zero]) | |
| 43 | - calc | |
| 44 | - _ = A.strain.field A.zeroTime 0 := by | |
| 45 | - change A.strain.field (projIcc 0 A.T A.T_pos.le 0) 0=A.strain.field A.zeroTime 0 | |
| 46 | - rw [projIcc_of_mem A.T_pos.le (show (0 : ℝ) ∈ Icc 0 A.T from ⟨le_rfl,A.T_pos.le⟩)] | |
| 47 | - rfl | |
| 48 | - _ = A.initialStrain.field 0 := by | |
| 49 | - rw [S.evolution.strain_origin S.odd,S.evolution.initialStrain_eq,smul_zero] | |
| 50 | - rfl | |
| 51 | - _ = linear β := packetBase_initialStrain β hβ ell hell hell1 T hT hTB 0 h0 | |
| 52 | - | |
| 53 | -theorem packetBase_sourceNormal_initial : | |
| 54 | - (packetBaseParent β hβ ell hell hell1 T hT hTB).sourceNormal firstNormal 0=firstNormal := by | |
| 55 | - let A := packetBaseParent β hβ ell hell hell1 T hT hTB | |
| 56 | - calc | |
| 57 | - _ = (A.transverseData firstNormal firstNormal_unit firstFrame support compact).normal.field | |
| 58 | - A.zeroTime 0 := (A.source_normal_eq firstNormal firstNormal_unit firstFrame support compact A.zeroTime).symm | |
| 59 | - _ = _ := source_normal_initial firstNormal firstNormal_unit firstFrame support compact 0 | |
| 60 | - | |
| 61 | -theorem packetBase_sourceVelocity_initial : | |
| 62 | - (packetBaseParent β hβ ell hell hell1 T hT hTB).sourceVelocity | |
| 63 | - firstNormal firstNormal_unit firstFrame support compact firstCoordinate 0=EuclideanSpace.single 1 1 := by | |
| 64 | - change EulerPacketForwardFactorization.uncutVelocity | |
| 65 | - ((packetBaseParent β hβ ell hell hell1 T hT hTB).transverseData | |
| 66 | - firstNormal firstNormal_unit firstFrame support compact) firstCoordinate 0 0=_ | |
| 67 | - rw [EulerPacketForwardFactorization.uncutVelocity_initial] | |
| 68 | - exact (source_frame_initial (G := packetBaseParent β hβ ell hell hell1 T hT hTB) | |
| 69 | - firstNormal firstNormal_unit firstFrame support compact firstCoordinate 0).trans firstCoordinate_map | |
| 70 | - | |
| 71 | -theorem first_frame_parameters {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] | |
| 72 | - {D : EulerTransversePacketProvider.Data U} (P : ParentFrame D 0) (hchild : ℝ) | |
| 73 | - (hB : P.B 0=(packetBaseParent β hβ ell hell hell1 T hT hTB).centerStrain 0) | |
| 74 | - (hm : P.m 0=(packetBaseParent β hβ ell hell hell1 T hT hTB).sourceNormal firstNormal 0) | |
| 75 | - (hv : P.v 0=(packetBaseParent β hβ ell hell hell1 T hT hTB).sourceVelocity | |
| 76 | - firstNormal firstNormal_unit firstFrame support compact firstCoordinate 0) | |
| 77 | - (hc : P.c=hchild) : P.a=1 ∧ P.sigma=Real.sqrt β ∧ P.shear=hchild := by | |
| 78 | - have hB' := hB.trans (packetBase_centerStrain_initial β hβ ell hell hell1 T hT hTB) | |
| 79 | - have hm' := hm.trans (packetBase_sourceNormal_initial β hβ ell hell hell1 T hT hTB) | |
| 80 | - have hv' := hv.trans (packetBase_sourceVelocity_initial β hβ ell hell hell1 T hT hTB) | |
| 81 | - refine ⟨?_,?_,?_⟩ | |
| 82 | - · rw [ParentFrame.a,hB',hm',hv',first_normalizedCoupling] | |
| 83 | - · rw [ParentFrame.sigma,hB',hm',hv',first_normalizedTilt] | |
| 84 | - · rw [ParentFrame.shear,primaryShear,hc,hm',hv',firstNormal_unit] | |
| 85 | - simp | |
| 86 | - | |
| 87 | -end EulerBaseDatum | |
+0 −82 Euler/BasePacketFrequencyCost.lean deleted
| @@ -1,82 +0,0 @@ | ||
| 1 | -import Euler.BasePacketUniformCosts | |
| 2 | -import Euler.PacketBaseGuardScales | |
| 3 | - | |
| 4 | -/-! The manuscript's literal first-packet scales have a fixed monomial | |
| 5 | -frequency cost. The exponent and coefficient do not depend on J or X. -/ | |
| 6 | - | |
| 7 | -noncomputable section | |
| 8 | - | |
| 9 | -namespace EulerBaseDatum | |
| 10 | - | |
| 11 | -open Real Filter EulerPacketBaseGuardScales EulerPacketUniformSource EulerPacketSourceFrequency | |
| 12 | - | |
| 13 | -theorem firstParameterSize_literal (J : ℕ) (hJ : 1 ≤ J) (X : ℝ) (hX : 1 ≤ X) : | |
| 14 | - firstParameterSize (baseHorizon J X) (X^(-1010 : ℝ)) (X^1000) ≤ | |
| 15 | - (7+solutionLabelConstant)*X^1010 := by | |
| 16 | - have hX0 := zero_le_one.trans hX | |
| 17 | - have hJr : (1 : ℝ) ≤ J := by exact_mod_cast hJ | |
| 18 | - have hden : 1 ≤ 6*(J : ℝ)^2 := by nlinarith | |
| 19 | - have hi : (6*(J : ℝ)^2)⁻¹ ≤ 1 := inv_le_one_of_one_le₀ hden | |
| 20 | - have hT : (baseHorizon J X)⁻¹ ≤ X^498 := by | |
| 21 | - unfold baseHorizon | |
| 22 | - rw [mul_inv_rev,Real.rpow_neg hX0,inv_inv] | |
| 23 | - norm_num only [Real.rpow_ofNat] | |
| 24 | - exact (mul_le_mul_of_nonneg_left hi (pow_nonneg hX0 498)).trans_eq (mul_one _) | |
| 25 | - have hd : (X^(-1010 : ℝ))⁻¹=X^1010 := by | |
| 26 | - rw [Real.rpow_neg hX0,inv_inv] | |
| 27 | - norm_num only [Real.rpow_ofNat] | |
| 28 | - have ht : X^498 ≤ X^1010 := pow_le_pow_right₀ hX (by norm_num) | |
| 29 | - have hh : X^1000 ≤ X^1010 := pow_le_pow_right₀ hX (by norm_num) | |
| 30 | - have hK := solutionLabelConstant_one | |
| 31 | - have hone : (1 : ℝ) ≤ X^1010 := one_le_pow₀ hX | |
| 32 | - have hc : 4+solutionLabelConstant ≤ (4+solutionLabelConstant)*X^1010 := by | |
| 33 | - simpa only [mul_one] using mul_le_mul_of_nonneg_left hone (by linarith : 0 ≤ 4+solutionLabelConstant) | |
| 34 | - unfold firstParameterSize | |
| 35 | - rw [hd] | |
| 36 | - linarith only [hT.trans ht,hh,hc] | |
| 37 | - | |
| 38 | -def firstFrequencyConstant : ℝ := frequencyConstant*(7+solutionLabelConstant)^frequencyPower | |
| 39 | -def firstFrequencyPower : ℕ := 1010*frequencyPower | |
| 40 | - | |
| 41 | -theorem first_frequency_cost_bound (J : ℕ) (hJ : 1 ≤ J) (X : ℝ) (hX : 1 ≤ X) : | |
| 42 | - EulerPacketInitializedOutputCost.uniformConstant* | |
| 43 | - (profileEnvelope (firstParameterSize (baseHorizon J X) (X^(-1010 : ℝ)) (X^1000)))^ | |
| 44 | - EulerPacketInitializedOutputCost.uniformPower ≤ firstFrequencyConstant*X^firstFrequencyPower := by | |
| 45 | - have hXpos := zero_lt_one.trans_le hX | |
| 46 | - have hp := (firstParameterSize_bounds (baseHorizon J X) (X^(-1010 : ℝ)) (X^1000) | |
| 47 | - (baseHorizon_pos J hJ hXpos) (Real.rpow_pos_of_pos hXpos _) (pow_nonneg hXpos.le _)).1 | |
| 48 | - apply (frequency_bound _ hp).trans | |
| 49 | - calc | |
| 50 | - _ ≤ frequencyConstant*((7+solutionLabelConstant)*X^1010)^frequencyPower := by | |
| 51 | - apply mul_le_mul_of_nonneg_left _ frequencyConstant_pos.le | |
| 52 | - exact pow_le_pow_left₀ (zero_le_one.trans hp) (firstParameterSize_literal J hJ X hX) _ | |
| 53 | - _ = _ := by | |
| 54 | - unfold firstFrequencyConstant firstFrequencyPower | |
| 55 | - rw [mul_pow,← pow_mul] | |
| 56 | - ring | |
| 57 | - | |
| 58 | -/-- This remaining threshold depends only on the fixed base exponent, | |
| 59 | -not on a parent or on a stage of the subsequent induction. -/ | |
| 60 | -theorem first_frequency_guard_eventually (J : ℕ) (hJ : 1 ≤ J) (D : ℕ) | |
| 61 | - (hD : (firstFrequencyPower : ℝ) < (D : ℝ)*(theta/100)) : | |
| 62 | - ∀ᶠ X : ℝ in atTop, | |
| 63 | - EulerPacketInitializedOutputCost.uniformConstant* | |
| 64 | - (profileEnvelope (firstParameterSize (baseHorizon J X) (X^(-1010 : ℝ)) (X^1000)))^ | |
| 65 | - EulerPacketInitializedOutputCost.uniformPower ≤ smallPower (X^D) := by | |
| 66 | - have hgap : 0 < (D : ℝ)*(theta/100)-(firstFrequencyPower : ℝ) := sub_pos.mpr hD | |
| 67 | - filter_upwards [eventually_ge_atTop (1 : ℝ), | |
| 68 | - (_root_.tendsto_rpow_atTop hgap).eventually_ge_atTop firstFrequencyConstant] with X hX hC | |
| 69 | - have hXp := zero_lt_one.trans_le hX | |
| 70 | - apply (first_frequency_cost_bound J hJ X hX).trans | |
| 71 | - calc | |
| 72 | - _ ≤ X^((D : ℝ)*(theta/100)-(firstFrequencyPower : ℝ))*X^firstFrequencyPower := | |
| 73 | - mul_le_mul_of_nonneg_right hC (pow_nonneg hXp.le _) | |
| 74 | - _ = X^((D : ℝ)*(theta/100)) := by | |
| 75 | - rw [← Real.rpow_natCast X firstFrequencyPower,← Real.rpow_add hXp] | |
| 76 | - congr 1 | |
| 77 | - ring | |
| 78 | - _ = smallPower (X^D) := by | |
| 79 | - unfold smallPower | |
| 80 | - rw [Real.rpow_mul hXp.le,Real.rpow_natCast] | |
| 81 | - | |
| 82 | -end EulerBaseDatum | |
+0 −69 Euler/BasePacketLowBounds.lean deleted
| @@ -1,69 +0,0 @@ | ||
| 1 | -import Euler.BasePacketSetup | |
| 2 | -import Euler.ParentHomogeneousPacketLowBounds | |
| 3 | - | |
| 4 | -/-! The first packet's size and sign hypotheses are proved for the | |
| 5 | -concrete base solution on its actual restricted horizon. -/ | |
| 6 | - | |
| 7 | -noncomputable section | |
| 8 | - | |
| 9 | -namespace EulerBaseDatum | |
| 10 | - | |
| 11 | -open Set InnerProductSpace EulerSmoothLimit EulerParentPacketFrames | |
| 12 | - EulerBaseEulerGuards EulerPacketSupport EulerPacketFirstLowBounds | |
| 13 | - | |
| 14 | -variable (β : ℝ) (hβ : |β| ≤ 1) (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) | |
| 15 | - (T : ℝ) (hT : 0 < T) (hTB : T ≤ initialTime) | |
| 16 | - | |
| 17 | -def firstPacketData : EulerTransversePacketProvider.Data FirstPlane := | |
| 18 | - (packetBaseParent β hβ ell hell hell1 T hT hTB).transverseData | |
| 19 | - firstNormal firstNormal_unit firstFrame support compact | |
| 20 | - | |
| 21 | -theorem firstPacket_primary_size (t : Icc (0 : ℝ) T) (x : Space) : | |
| 22 | - ‖(firstPacketData β hβ ell hell hell1 T hT hTB).normal.field t x‖* | |
| 23 | - ‖EulerPacketForwardFactorization.canonicalVelocity | |
| 24 | - (firstPacketData β hβ ell hell hell1 T hT hTB) firstCoordinate t x‖ ≤ firstRatio := by | |
| 25 | - apply primary_size_le (firstPacketData β hβ ell hell hell1 T hT hTB) | |
| 26 | - initialCoefficientCost initialCoefficientCost_nonneg x | |
| 27 | - (fun s => packetBase_strain_bound β hβ ell hell hell1 T hT hTB s x) | |
| 28 | - (packetBase_short T hTB) firstCoordinate | |
| 29 | - · change ‖((packetBaseParent β hβ ell hell hell1 T hT hTB).transverseData | |
| 30 | - firstNormal firstNormal_unit firstFrame support compact).normal.field | |
| 31 | - (packetBaseParent β hβ ell hell hell1 T hT hTB).zeroTime x‖=1 | |
| 32 | - rw [source_normal_initial] | |
| 33 | - exact firstNormal_unit | |
| 34 | - · change ‖((packetBaseParent β hβ ell hell hell1 T hT hTB).transverseData | |
| 35 | - firstNormal firstNormal_unit firstFrame support compact).frame.field | |
| 36 | - (packetBaseParent β hβ ell hell hell1 T hT hTB).zeroTime x firstCoordinate‖=1 | |
| 37 | - rw [source_frame_initial,firstCoordinate_map] | |
| 38 | - simp | |
| 39 | - | |
| 40 | -theorem firstPacket_primary_flux (t : Icc (0 : ℝ) T) (x : Space) : | |
| 41 | - 0 ≤ ⟪(firstPacketData β hβ ell hell hell1 T hT hTB).normal.field t x, | |
| 42 | - (firstPacketData β hβ ell hell hell1 T hT hTB).M.field t x | |
| 43 | - (EulerPacketForwardFactorization.canonicalVelocity | |
| 44 | - (firstPacketData β hβ ell hell hell1 T hT hTB) firstCoordinate t x)⟫_ℝ := by | |
| 45 | - apply primary_flux_nonneg (firstPacketData β hβ ell hell hell1 T hT hTB) x firstCoordinate t | |
| 46 | - intro hx | |
| 47 | - exact (by norm_num : (0 : ℝ) ≤ 1/2).trans | |
| 48 | - (firstPacket_pressure_numerator β hβ ell hell hell1 T hT hTB t x hx) | |
| 49 | - | |
| 50 | -theorem packetBase_physical_strain (t : Icc (0 : ℝ) T) (x : Space) : | |
| 51 | - ‖fderiv ℝ (fun y => (packetBaseState β hβ ell hell hell1 T hT hTB).evolution.velocity (t,y)) x‖ ≤ | |
| 52 | - initialCoefficientCost := by | |
| 53 | - rw [← (packetBaseState β hβ ell hell hell1 T hT hTB).evolution.strain_at_normalized_inverse t x] | |
| 54 | - exact packetBase_strain_bound β hβ ell hell hell1 T hT hTB t _ | |
| 55 | - | |
| 56 | -theorem packetBase_physical_force (t : Icc (0 : ℝ) T) (x : Space) : | |
| 57 | - ‖fderiv ℝ ((packetBaseState β hβ ell hell hell1 T hT hTB).evolution.force t) x‖ ≤ | |
| 58 | - initialCoefficientCost := by | |
| 59 | - let E := (packetBaseState β hβ ell hell hell1 T hT hTB).evolution | |
| 60 | - have h := packetBase_curvature_bound β hβ ell hell hell1 T hT hTB t | |
| 61 | - (ell⁻¹ • E.inverse.field t x) | |
| 62 | - erw [E.curvature_eq] at h | |
| 63 | - change ‖fderiv ℝ (E.force t) | |
| 64 | - ((packetBaseParent β hβ ell hell hell1 T hT hTB).position t (ell • (ell⁻¹ • E.inverse.field t x)))‖ ≤ _ at h | |
| 65 | - simp only [smul_smul,mul_inv_cancel₀ hell.ne',one_smul] at h | |
| 66 | - erw [E.inverse.right_inverse] at h | |
| 67 | - exact h | |
| 68 | - | |
| 69 | -end EulerBaseDatum | |
+31 −1 Euler/BasePacketSetup.lean View file
| @@ -1,9 +1,39 @@ | ||
| 1 | -import Euler.BaseSmoothState | |
| 1 | +import Euler.BaseEulerState | |
| 2 | +import Euler.ParentState | |
| 2 | 3 | import Euler.ParentPacketForwardInput |
| 3 | 4 | |
| 4 | 5 | /-! Concrete support, transverse coordinate and short-time source |
| 5 | 6 | budgets for the first packet over the compact base Euler solution. -/ |
| 6 | 7 | |
| 8 | +/-! ## From `Euler/BaseSmoothState.lean` | |
| 9 | + | |
| 10 | +The text of `Euler/BaseSmoothState.lean`, folded into this file, which was its only importer. -/ | |
| 11 | + | |
| 12 | +section | |
| 13 | + | |
| 14 | +/-! The concrete compactly supported datum supplies the full recursive | |
| 15 | +state: the physical Euler solution, all Sobolev orders, particle labels, | |
| 16 | +and odd symmetry all refer to the same solution. -/ | |
| 17 | + | |
| 18 | +noncomputable section | |
| 19 | + | |
| 20 | +namespace EulerBaseDatum | |
| 21 | + | |
| 22 | +open EulerParentPacketFrames | |
| 23 | + | |
| 24 | +def initialState (β : ℝ) (hβ : |β| ≤ 1) (ell : ℝ) | |
| 25 | + (hell : 0 < ell) (hell1 : ell ≤ 1) : | |
| 26 | + SmoothState (initialParent β hβ ell hell hell1) where | |
| 27 | + evolution := initialEvolution β hβ ell hell hell1 | |
| 28 | + regularity := initialSobolevData β hβ ell hell hell1 | |
| 29 | + labels := initialLabelData β hβ ell hell hell1 | |
| 30 | + odd := initialOddData β hβ ell hell hell1 | |
| 31 | + | |
| 32 | +end EulerBaseDatum | |
| 33 | +end | |
| 34 | + | |
| 35 | +end | |
| 36 | + | |
| 7 | 37 | noncomputable section |
| 8 | 38 | |
| 9 | 39 | namespace EulerPacketSupport |
+0 −22 Euler/BaseSmoothState.lean deleted
| @@ -1,22 +0,0 @@ | ||
| 1 | -import Euler.BaseEulerState | |
| 2 | -import Euler.ParentState | |
| 3 | - | |
| 4 | -/-! The concrete compactly supported datum supplies the full recursive | |
| 5 | -state: the physical Euler solution, all Sobolev orders, particle labels, | |
| 6 | -and odd symmetry all refer to the same solution. -/ | |
| 7 | - | |
| 8 | -noncomputable section | |
| 9 | - | |
| 10 | -namespace EulerBaseDatum | |
| 11 | - | |
| 12 | -open EulerParentPacketFrames | |
| 13 | - | |
| 14 | -def initialState (β : ℝ) (hβ : |β| ≤ 1) (ell : ℝ) | |
| 15 | - (hell : 0 < ell) (hell1 : ell ≤ 1) : | |
| 16 | - SmoothState (initialParent β hβ ell hell hell1) where | |
| 17 | - evolution := initialEvolution β hβ ell hell hell1 | |
| 18 | - regularity := initialSobolevData β hβ ell hell hell1 | |
| 19 | - labels := initialLabelData β hβ ell hell hell1 | |
| 20 | - odd := initialOddData β hβ ell hell hell1 | |
| 21 | - | |
| 22 | -end EulerBaseDatum | |
+123 −2 Euler/BaseStaticEuler.lean View file
| @@ -1,7 +1,9 @@ | ||
| 1 | 1 | import Euler.StaticEulerGevrey |
| 2 | 2 | import Euler.StaticEulerParity |
| 3 | -import Euler.BaseEulerLabelData | |
| 4 | -import Euler.BaseEulerParity | |
| 3 | +import Euler.BaseEulerFlowL2 | |
| 4 | +import Euler.ParentPacketLabelData | |
| 5 | +import Euler.BaseEulerParent | |
| 6 | +import Euler.ParentPacketParity | |
| 5 | 7 | import Euler.ParentEulerState |
| 6 | 8 | |
| 7 | 9 | /-! The locally constructed ordinary Euler solution supplies a concrete |
| @@ -9,6 +11,125 @@ first parent, its label budget and its genuine particle inverse. All | ||
| 9 | 11 | constants and the positive common horizon depend only on the input |
| 10 | 12 | Gevrey envelope, not on the particular initial datum. -/ |
| 11 | 13 | |
| 14 | +/-! ## From `Euler/BaseEulerLabelData.lean` | |
| 15 | + | |
| 16 | +The text of `Euler/BaseEulerLabelData.lean`, folded into this file, which was its only importer. -/ | |
| 17 | + | |
| 18 | +section | |
| 19 | + | |
| 20 | +/-! The three actual base-flow fields satisfy the source's fixed-H6 | |
| 21 | +label bound with one explicit constant, independent of derivative order. -/ | |
| 22 | + | |
| 23 | +noncomputable section | |
| 24 | + | |
| 25 | +namespace EulerBaseEulerParent.L2Data | |
| 26 | + | |
| 27 | +open EulerParentPacketFrames EulerLpTranslation EulerParameterWordGevrey | |
| 28 | + EulerPacketParentLabelBounds Set | |
| 29 | + | |
| 30 | +variable {I : Input} (L : L2Data I) | |
| 31 | + | |
| 32 | +def labelCost : ℝ := | |
| 33 | + 1 + sobolevCoefficientAmplitude (Fin 3) 6 L.velocityRadius (I.T*L.C) + | |
| 34 | + sobolevCoefficientAmplitude (Fin 3) 6 L.velocityRadius L.C + | |
| 35 | + sobolevCoefficientAmplitude (Fin 3) 6 L.accelerationRadius L.accelerationAmplitude + | |
| 36 | + sobolevCoefficientRadius (Fin 3) L.velocityRadius + | |
| 37 | + sobolevCoefficientRadius (Fin 3) L.accelerationRadius | |
| 38 | + | |
| 39 | +private theorem costs_nonneg : | |
| 40 | + 0 ≤ sobolevCoefficientAmplitude (Fin 3) 6 L.velocityRadius (I.T*L.C) ∧ | |
| 41 | + 0 ≤ sobolevCoefficientAmplitude (Fin 3) 6 L.velocityRadius L.C ∧ | |
| 42 | + 0 ≤ sobolevCoefficientAmplitude (Fin 3) 6 L.accelerationRadius L.accelerationAmplitude ∧ | |
| 43 | + 0 ≤ sobolevCoefficientRadius (Fin 3) L.velocityRadius ∧ | |
| 44 | + 0 ≤ sobolevCoefficientRadius (Fin 3) L.accelerationRadius := | |
| 45 | + ⟨sobolevCoefficientAmplitude_nonneg 6 L.velocityRadius (I.T*L.C) | |
| 46 | + L.velocityRadius_nonneg (mul_nonneg I.T_pos.le L.C_nonneg), | |
| 47 | + sobolevCoefficientAmplitude_nonneg 6 L.velocityRadius L.C L.velocityRadius_nonneg L.C_nonneg, | |
| 48 | + sobolevCoefficientAmplitude_nonneg 6 L.accelerationRadius L.accelerationAmplitude | |
| 49 | + L.accelerationRadius_nonneg L.accelerationAmplitude_nonneg, | |
| 50 | + sobolevCoefficientRadius_nonneg L.velocityRadius L.velocityRadius_nonneg, | |
| 51 | + sobolevCoefficientRadius_nonneg L.accelerationRadius L.accelerationRadius_nonneg⟩ | |
| 52 | + | |
| 53 | +theorem labelCost_one : 1 ≤ L.labelCost := by | |
| 54 | + obtain ⟨h1,h2,h3,h4,h5⟩ := L.costs_nonneg | |
| 55 | + dsimp [labelCost] | |
| 56 | + linarith | |
| 57 | + | |
| 58 | +theorem displacement_labelBound (t : Icc (0 : ℝ) I.T) : | |
| 59 | + HasLabelBound L.labelCost (L.displacementField t) := by | |
| 60 | + obtain ⟨h1,h2,h3,h4,h5⟩ := L.costs_nonneg | |
| 61 | + apply SmoothL2Field.hasLabelBound_of_jet_bound (L.displacementField t) | |
| 62 | + (I.T*L.C) L.velocityRadius L.labelCost (mul_nonneg I.T_pos.le L.C_nonneg) | |
| 63 | + L.velocityRadius_nonneg (L.displacementField_bound t) | |
| 64 | + · dsimp [labelCost]; linarith | |
| 65 | + · dsimp [labelCost]; linarith | |
| 66 | + | |
| 67 | +theorem velocity_labelBound (t : Icc (0 : ℝ) I.T) : | |
| 68 | + HasLabelBound L.labelCost (L.velocityField t) := by | |
| 69 | + obtain ⟨h1,h2,h3,h4,h5⟩ := L.costs_nonneg | |
| 70 | + apply SmoothL2Field.hasLabelBound_of_jet_bound (L.velocityField t) | |
| 71 | + L.C L.velocityRadius L.labelCost L.C_nonneg L.velocityRadius_nonneg (L.velocityField_bound t) | |
| 72 | + · dsimp [labelCost]; linarith | |
| 73 | + · dsimp [labelCost]; linarith | |
| 74 | + | |
| 75 | +theorem acceleration_labelBound (t : Icc (0 : ℝ) I.T) : | |
| 76 | + HasLabelBound L.labelCost (L.accelerationField t) := by | |
| 77 | + obtain ⟨h1,h2,h3,h4,h5⟩ := L.costs_nonneg | |
| 78 | + apply SmoothL2Field.hasLabelBound_of_jet_bound (L.accelerationField t) | |
| 79 | + L.accelerationAmplitude L.accelerationRadius L.labelCost L.accelerationAmplitude_nonneg | |
| 80 | + L.accelerationRadius_nonneg (L.accelerationField_bound t) | |
| 81 | + · dsimp [labelCost]; linarith | |
| 82 | + · dsimp [labelCost]; linarith | |
| 83 | + | |
| 84 | +def labelData (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) : | |
| 85 | + LabelData (I.parent ell hell hell1) where | |
| 86 | + K := L.labelCost | |
| 87 | + K_one := L.labelCost_one | |
| 88 | + displacement := L.displacementField | |
| 89 | + velocity := L.velocityField | |
| 90 | + acceleration := L.accelerationField | |
| 91 | + displacement_match _ _ := rfl | |
| 92 | + velocity_match := L.velocityField_apply | |
| 93 | + acceleration_match := L.accelerationField_apply | |
| 94 | + displacement_bound := L.displacement_labelBound | |
| 95 | + velocity_bound := L.velocity_labelBound | |
| 96 | + acceleration_bound := L.acceleration_labelBound | |
| 97 | + | |
| 98 | +end EulerBaseEulerParent.L2Data | |
| 99 | +end | |
| 100 | + | |
| 101 | +end | |
| 102 | + | |
| 103 | +/-! ## From `Euler/BaseEulerParity.lean` | |
| 104 | + | |
| 105 | +The text of `Euler/BaseEulerParity.lean`, folded into this file, which was its only importer. -/ | |
| 106 | + | |
| 107 | +section | |
| 108 | + | |
| 109 | +/-! Oddness of the genuine base velocity propagates through its actual | |
| 110 | +flow to the base parent, using ODE uniqueness. -/ | |
| 111 | + | |
| 112 | +noncomputable section | |
| 113 | + | |
| 114 | +namespace EulerBaseEulerParent.Input | |
| 115 | + | |
| 116 | +open Set EulerSmoothLimit EulerSmoothBanachFlow EulerParentPacketFrames | |
| 117 | + | |
| 118 | +variable (I : Input) | |
| 119 | + | |
| 120 | +theorem oddData (hodd : ∀ t, Function.Odd (I.field.field t : Space → Space)) | |
| 121 | + (ell : ℝ) (hell : 0 < ell) (hell1 : ell ≤ 1) : OddData (I.parent ell hell hell1) := by | |
| 122 | + have hd (t : Icc (0 : ℝ) I.T) : Function.Odd (I.displacement.field t : Space → Space) := by | |
| 123 | + intro x | |
| 124 | + rw [I.displacement_apply,I.displacement_apply,forward_odd I.T I.T_pos.le I.field hodd t] | |
| 125 | + abel | |
| 126 | + exact { displacement := hd } | |
| 127 | + | |
| 128 | +end EulerBaseEulerParent.Input | |
| 129 | +end | |
| 130 | + | |
| 131 | +end | |
| 132 | + | |
| 12 | 133 | noncomputable section |
| 13 | 134 | |
| 14 | 135 | namespace EulerStaticEuler |
+15 −0 routes/s5-euler-base-1/README.md added View file
| @@ -0,0 +1,15 @@ | ||
| 1 | +--- | |
| 2 | +issue: 14 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s5-euler-base-1 | |
| 6 | + | |
| 7 | +The family `Euler/Base*`: 14 small modules of it are folded into the eight files that import them, text | |
| 8 | +unchanged (S-5, the "fewer modules" change of Lean Pool's copy). The plan is in `plan.json`; the tool that | |
| 9 | +applied it is `docs/s5-folding/fold.py`, and its `check` makes every changed file again from `origin/main` and | |
| 10 | +compares byte for byte. | |
| 11 | + | |
| 12 | +## Next | |
| 13 | + | |
| 14 | +The pull request is open. What comes next is the maintainer's verdict on the folds; the other families of the | |
| 15 | +series wait on it, one family per pull request. | |
+43 −0 routes/s5-euler-base-1/plan.json added View file
| @@ -0,0 +1,43 @@ | ||
| 1 | +{ | |
| 2 | +"imports": "in place", | |
| 3 | +"folds": { | |
| 4 | +"Euler/BaseEulerGevrey.lean": [ | |
| 5 | +"Euler/BaseEulerDatum.lean", | |
| 6 | +"Euler/BaseEulerGevrey.lean" | |
| 7 | +], | |
| 8 | +"Euler/BaseEulerState.lean": [ | |
| 9 | +"Euler/BaseEulerGuards.lean", | |
| 10 | +"Euler/BaseEulerSign.lean", | |
| 11 | +"Euler/BaseEulerUniform.lean", | |
| 12 | +"Euler/BaseEulerInput.lean", | |
| 13 | +"Euler/BaseEulerSobolev.lean", | |
| 14 | +"Euler/BaseEulerState.lean" | |
| 15 | +], | |
| 16 | +"Euler/BaseFirstPacketChoice.lean": [ | |
| 17 | +"Euler/BasePacketLowBounds.lean", | |
| 18 | +"Euler/BaseFirstPacket.lean", | |
| 19 | +"Euler/BaseFirstPacketChoice.lean" | |
| 20 | +], | |
| 21 | +"Euler/BaseFirstPacketEvolution.lean": [ | |
| 22 | +"Euler/BasePacketFrameValues.lean", | |
| 23 | +"Euler/BaseFirstPacketEvolution.lean" | |
| 24 | +], | |
| 25 | +"Euler/BaseFirstPacketScales.lean": [ | |
| 26 | +"Euler/BasePacketFrequencyCost.lean", | |
| 27 | +"Euler/BaseFirstPacketScales.lean" | |
| 28 | +], | |
| 29 | +"Euler/BaseInductionStage.lean": [ | |
| 30 | +"Euler/BaseLiteralFirstPacket.lean", | |
| 31 | +"Euler/BaseInductionStage.lean" | |
| 32 | +], | |
| 33 | +"Euler/BasePacketSetup.lean": [ | |
| 34 | +"Euler/BaseSmoothState.lean", | |
| 35 | +"Euler/BasePacketSetup.lean" | |
| 36 | +], | |
| 37 | +"Euler/BaseStaticEuler.lean": [ | |
| 38 | +"Euler/BaseEulerLabelData.lean", | |
| 39 | +"Euler/BaseEulerParity.lean", | |
| 40 | +"Euler/BaseStaticEuler.lean" | |
| 41 | +] | |
| 42 | +} | |
| 43 | +} | |