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

refactor(NavierStokes/Sharp): 14 small modules folded into the file that imports them; every host within 600 lines #735
Merged
+0 −12 NavierStokes/SharpActualStageBounds.lean deleted
| @@ -1,12 +0,0 @@ | ||
| 1 | -import NavierStokes.SharpGluedStageBounds | |
| 2 | -import NavierStokes.ActualCandidateAssembly | |
| 3 | - | |
| 4 | -noncomputable section | |
| 5 | - | |
| 6 | -namespace NavierStokes.SharpActualStageBounds | |
| 7 | - | |
| 8 | -open Set Function Filter ProblemStatement PhysicalWaveSum SharpGluedStageBounds | |
| 9 | -open CorrectionInitialization.ActualPrimary ActualCandidateAssembly | |
| 10 | -open scoped Topology ContDiff BigOperators | |
| 11 | - | |
| 12 | -end NavierStokes.SharpActualStageBounds | |
+0 −10 NavierStokes/SharpCommonGraphJets.lean deleted
| @@ -1,10 +0,0 @@ | ||
| 1 | -import NavierStokes.SharpPhysicalLoss | |
| 2 | -import NavierStokes.LocalPhysicalCopyBounds | |
| 3 | - | |
| 4 | -noncomputable section | |
| 5 | -namespace NavierStokes.SharpCommonGraphJets | |
| 6 | -open Set Function Filter ProblemStatement | |
| 7 | -open PhysicalGraphBounds PhysicalWaveSum LocalPhysicalCopyBounds | |
| 8 | -open scoped ContDiff Topology | |
| 9 | - | |
| 10 | -end NavierStokes.SharpCommonGraphJets | |
+0 −13 NavierStokes/SharpCurrentModeJets.lean deleted
| @@ -1,13 +0,0 @@ | ||
| 1 | -import NavierStokes.SharpCurrentPhysicalPhase | |
| 2 | - | |
| 3 | -noncomputable section | |
| 4 | -namespace NavierStokes.SharpCurrentModeJets | |
| 5 | -open Set Function Filter ProblemStatement CorrectionInitialization | |
| 6 | -open LocalPhysicalCopyBounds SharpCurrentPhysicalPhase | |
| 7 | -open scoped ContDiff Topology | |
| 8 | - | |
| 9 | -private theorem nat_le_infty (k : ℕ) : (k : WithTop ℕ∞) ≤ ∞ := | |
| 10 | - WithTop.coe_le_coe.mpr le_top | |
| 11 | - | |
| 12 | - | |
| 13 | -end NavierStokes.SharpCurrentModeJets | |
+0 −24 NavierStokes/SharpCurrentParticularBounds.lean deleted
| @@ -1,24 +0,0 @@ | ||
| 1 | -import NavierStokes.SharpCurrentModeJets | |
| 2 | -import NavierStokes.CurrentPhysicalRadialClosure | |
| 3 | -import NavierStokes.CurrentParticularLabelBounds | |
| 4 | - | |
| 5 | -noncomputable section | |
| 6 | - | |
| 7 | -namespace NavierStokes.SharpCurrentParticularBounds | |
| 8 | - | |
| 9 | -open Set Function Filter ProblemStatement CorrectionStep | |
| 10 | -open CorrectionInitialization ActualCurrentParticularBounds | |
| 11 | -open CorrectionInitialization.ActualPrimary (h outgoing nominal) | |
| 12 | -open LocalPhysicalCopyBounds SharpCurrentModeJets | |
| 13 | -open SharpCurrentPhysicalPhase (nativeMap fullMap smoothNear_comp weightedPhase_smoothNear nativeMap_smoothNear) | |
| 14 | -open scoped Topology ContDiff BigOperators | |
| 15 | - | |
| 16 | -variable {B N0 : ℕ} {σ : ℝ} {x : CycleState (ActualInitialization.Index B N0)} | |
| 17 | - | |
| 18 | -private theorem commonGap_bound (n : ℕ) : | |
| 19 | - CurrentPhysicalModeGerms.commonGap n ≤ CommonWindow.gap h := by | |
| 20 | - have hn := CommonWindow.native_le_index_add h outgoing.data.h_pos.le n | |
| 21 | - unfold CurrentPhysicalModeGerms.commonGap | |
| 22 | - omega | |
| 23 | - | |
| 24 | -end NavierStokes.SharpCurrentParticularBounds | |
+0 −63 NavierStokes/SharpCurrentPhysicalPhase.lean deleted
| @@ -1,63 +0,0 @@ | ||
| 1 | -import NavierStokes.ActualCurrentParticularBounds | |
| 2 | -import NavierStokes.SharpCommonGraphJets | |
| 3 | -import NavierStokes.SharpGeometricModeJets | |
| 4 | - | |
| 5 | -noncomputable section | |
| 6 | -namespace NavierStokes.SharpCurrentPhysicalPhase | |
| 7 | -open Set Function Filter ProblemStatement CorrectionInitialization | |
| 8 | -open PhysicalGraphBounds PhysicalWaveSum LocalPhysicalCopyBounds | |
| 9 | -open scoped ContDiff Topology | |
| 10 | - | |
| 11 | -abbrev Native := ActualParticularBackground.Native | |
| 12 | - | |
| 13 | -abbrev h : ℝ := ActualPrimary.h | |
| 14 | - | |
| 15 | -noncomputable def nativeMap (a : ℝ) (c : PolarCharts.Index) (n d : ℕ) : SpaceTime → Native := | |
| 16 | - CurrentPhysicalChartJets.chartMap a c ∘ commonLift h n d | |
| 17 | - | |
| 18 | -noncomputable def fullMap (a : ℝ) (c : PolarCharts.Index) (n d : ℕ) : | |
| 19 | - SpaceTime → ActualPrimary.FullPoint := ActualParticularBackground.nativeToFull ∘ nativeMap a c n d | |
| 20 | - | |
| 21 | - | |
| 22 | -private theorem nat_le_infty (k : ℕ) : (k : WithTop ℕ∞) ≤ ∞ := | |
| 23 | - WithTop.coe_le_coe.mpr le_top | |
| 24 | - | |
| 25 | -theorem smoothNear_comp {E F G : Type*} | |
| 26 | - [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] | |
| 27 | - [NormedAddCommGroup G] [NormedSpace ℝ G] | |
| 28 | - {f : F → G} {g : E → F} {x : E} (hf : SmoothNear f (g x)) (hg : SmoothNear g x) : | |
| 29 | - SmoothNear (f ∘ g) x := by | |
| 30 | - obtain ⟨V,hV,hgx,hf⟩ := hf | |
| 31 | - obtain ⟨U,hU,hx,hg⟩ := hg | |
| 32 | - obtain ⟨W,hWV,hW,hxW⟩ := mem_nhds_iff.mp | |
| 33 | - ((hg.contDiffAt (hU.mem_nhds hx)).continuousAt.preimage_mem_nhds (hV.mem_nhds hgx)) | |
| 34 | - refine ⟨U ∩ W,hU.inter hW,⟨hx,hxW⟩,?_⟩ | |
| 35 | - exact hf.comp (hg.mono inter_subset_left) (fun y hy => hWV hy.2) | |
| 36 | - | |
| 37 | -theorem nativeMap_smoothNear {a : ℝ} (ha : 0 < a) (c : PolarCharts.Index) (n d : ℕ) | |
| 38 | - {w : SpaceTime} (hw : radialProjection w ≠ 0) : SmoothNear (nativeMap a c n d) w := by | |
| 39 | - let U : Set SpaceTime := {w | radialProjection w ≠ 0} | |
| 40 | - have hU : IsOpen U := axisFree_open.preimage radialProjection.continuous | |
| 41 | - refine ⟨U,hU,hw,?_⟩ | |
| 42 | - exact (CurrentPhysicalChartJets.chartMap_smooth ha c).comp_contDiffOn | |
| 43 | - ((downLift d).contDiff.comp_contDiffOn (physicalLift_smooth h n)) | |
| 44 | - | |
| 45 | -theorem fullMap_smoothNear {a : ℝ} (ha : 0 < a) (c : PolarCharts.Index) (n d : ℕ) | |
| 46 | - {w : SpaceTime} (hw : radialProjection w ≠ 0) : SmoothNear (fullMap a c n d) w := by | |
| 47 | - obtain ⟨U,hU,hx,hs⟩ := nativeMap_smoothNear ha c n d hw | |
| 48 | - exact ⟨U,hU,hx,ActualParticularBackground.nativeToFull.toContinuousLinearEquiv.contDiff.comp_contDiffOn hs⟩ | |
| 49 | - | |
| 50 | -noncomputable def remainder (n : ℕ) (i : ActualPhaseJetBounds.CopyIndex B N0) | |
| 51 | - (x : ActualPrimary.FullPoint) : ℝ := ActualPhaseJetBounds.nativeRemainder i.1 | |
| 52 | - ((ActualPrimaryBounds.fullCopy i.1 n i.2 x).1,(ActualPrimaryBounds.fullCopy i.1 n i.2 x).2.2) | |
| 53 | - | |
| 54 | - | |
| 55 | -theorem weightedPhase_smoothNear {a : ℝ} (ha : 0 < a) (c : PolarCharts.Index) (n d : ℕ) | |
| 56 | - {i : ActualPhaseJetBounds.CopyIndex B N0} {w : SpaceTime} (hw : radialProjection w ≠ 0) | |
| 57 | - (hi : fullMap a c n d w ∈ ActualPhaseJetBounds.phaseCell n i) : | |
| 58 | - SmoothNear (ActualCurrentCarrierJets.weightedPhase i.1 n ∘ nativeMap a c n d) w := by | |
| 59 | - change SmoothNear (ActualPhaseJetBounds.weightedPhase i.1 n ∘ fullMap a c n d) w | |
| 60 | - exact smoothNear_comp (ActualCurrentCarrierJets.full_weightedPhase_smoothNear hi) | |
| 61 | - (fullMap_smoothNear ha c n d hw) | |
| 62 | - | |
| 63 | -end NavierStokes.SharpCurrentPhysicalPhase | |
+0 −15 NavierStokes/SharpGeometricModeJets.lean deleted
| @@ -1,15 +0,0 @@ | ||
| 1 | -import NavierStokes.LocalPhysicalCopyBounds | |
| 2 | -import NavierStokes.SharpPhaseJetAlgebra | |
| 3 | - | |
| 4 | -noncomputable section | |
| 5 | -namespace NavierStokes.SharpGeometricModeJets | |
| 6 | -open Set Function Filter LocalPhysicalCopyBounds | |
| 7 | -open scoped ContDiff Topology BigOperators | |
| 8 | - | |
| 9 | -private theorem nat_le_infty (k : ℕ) : (k : WithTop ℕ∞) ≤ ∞ := | |
| 10 | - WithTop.coe_le_coe.mpr le_top | |
| 11 | - | |
| 12 | -variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 13 | - [NormedAddCommGroup F] [NormedSpace ℝ F] [NormedSpace ℂ F] [IsScalarTower ℝ ℂ F] | |
| 14 | - | |
| 15 | -end NavierStokes.SharpGeometricModeJets | |
+0 −47 NavierStokes/SharpGluedStageBounds.lean deleted
| @@ -1,47 +0,0 @@ | ||
| 1 | -import NavierStokes.GluedStageEstimates | |
| 2 | -import NavierStokes.SharpPhysicalLogBounds | |
| 3 | -import NavierStokes.SharpWaveStageBounds | |
| 4 | -import NavierStokes.SharpMeanStageBounds | |
| 5 | - | |
| 6 | -noncomputable section | |
| 7 | -namespace NavierStokes.SharpGluedStageBounds | |
| 8 | -open Set Function Filter ProblemStatement PhysicalWaveSum | |
| 9 | -open scoped Topology ContDiff BigOperators | |
| 10 | - | |
| 11 | -open CorrectionInitialization CorrectionInitialization.ActualPrimary ActualStageEstimates | |
| 12 | - | |
| 13 | -section SignedAndMean | |
| 14 | - | |
| 15 | -variable {B N0 N : ℕ} {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] | |
| 16 | - {I K : Type*} (R : RunData B N0) | |
| 17 | - (M : ActualMeanPhysicalData.InitialCycleInput B N0 N | |
| 18 | - (fun _ => ActualCycleParameters.fixedParameters B N0)) | |
| 19 | - (hN : 4 ≤ N) (W : GluedStageEstimates.SignedInputs D I K) | |
| 20 | - | |
| 21 | -private theorem potential_gain (j : ℕ) : | |
| 22 | - ActualIterationLedger.gain h (j+1) ≤ h * (W.potential j).alpha := by | |
| 23 | - have hg := ActualIterationLedger.gain_le_wave outgoing.data.h_pos.le | |
| 24 | - ActualCyclePreservation.kappa_small (Nat.succ_pos j) | |
| 25 | - rw [← nativePotential_eq_ledger j] at hg | |
| 26 | - exact hg.trans (mul_le_mul_of_nonneg_left (W.potential_exponent j) outgoing.data.h_pos.le) | |
| 27 | - | |
| 28 | -private theorem pressure_gain (j : ℕ) : | |
| 29 | - ActualIterationLedger.gain h (j+1) ≤ h * (W.pressure j).alpha := by | |
| 30 | - have hg := ActualIterationLedger.gain_le_wavePressure outgoing.data.h_pos.le | |
| 31 | - ActualCyclePreservation.kappa_small (Nat.succ_pos j) | |
| 32 | - rw [← nativePressure_eq_ledger j] at hg | |
| 33 | - exact hg.trans (mul_le_mul_of_nonneg_left (W.pressure_exponent j) outgoing.data.h_pos.le) | |
| 34 | - | |
| 35 | -private theorem mean_gain (j : ℕ) : | |
| 36 | - ActualIterationLedger.gain h (j+1) ≤ h * (1+ActualIterationLedger.sigma j-2*ChartScales.kappa) := by | |
| 37 | - rw [nativeMean_eq_ledger] | |
| 38 | - exact ActualIterationLedger.gain_le_mean outgoing.data.h_pos.le | |
| 39 | - ActualCyclePreservation.kappa_small (Nat.succ_pos j) | |
| 40 | - | |
| 41 | -private theorem mean_degree : CoordinateAlgebra.A h - 1/2 ≤ 2*CoordinateAlgebra.A h := by | |
| 42 | - unfold CoordinateAlgebra.A | |
| 43 | - linarith [outgoing.data.h_pos] | |
| 44 | - | |
| 45 | -end SignedAndMean | |
| 46 | - | |
| 47 | -end NavierStokes.SharpGluedStageBounds | |
+0 −150 NavierStokes/SharpGraphBounds.lean deleted
| @@ -1,150 +0,0 @@ | ||
| 1 | -import NavierStokes.PhysicalGraphBounds | |
| 2 | - | |
| 3 | -/-! | |
| 4 | -# Linear derivative loss for the physical graph | |
| 5 | - | |
| 6 | -The normalized radial coefficient costs only `Q^(-h κ)`, while a transverse | |
| 7 | -derivative costs `Q^(-1/2)`. Every positive order `k` of the actual physical | |
| 8 | -lift therefore costs at most `Q^(-k(1+h))`. Keeping the order in this bound | |
| 9 | -gives the manuscript's linear, rather than quadratic, graph restriction loss. | |
| 10 | --/ | |
| 11 | - | |
| 12 | -noncomputable section | |
| 13 | - | |
| 14 | -namespace NavierStokes.SharpGraphBounds | |
| 15 | - | |
| 16 | -open Set Function | |
| 17 | -open ProblemStatement PhysicalGraphBounds | |
| 18 | -open scoped ContDiff Topology | |
| 19 | - | |
| 20 | -private theorem nat_le_infty (k : ℕ) : (k : WithTop ℕ∞) ≤ ∞ := | |
| 21 | - WithTop.coe_le_coe.mpr le_top | |
| 22 | - | |
| 23 | -theorem native_time_power_le {h : ℝ} (hh : 0 ≤ h) | |
| 24 | - {n : ℕ} (hn : 4 ≤ n) : | |
| 25 | - ChartScales.Tg ^ ChartScales.nativeIndex h n ≤ | |
| 26 | - ChartScales.Q n ^ (-(1 + h)) := by | |
| 27 | - calc | |
| 28 | - _ ≤ ChartScales.Q n ^ (-1 - h) / ChartScales.S n := | |
| 29 | - (ChartScales.native_power_bounds h hh hn).1 | |
| 30 | - _ ≤ ChartScales.Q n ^ (-1 - h) := div_le_self | |
| 31 | - (Real.rpow_nonneg (ChartScales.Q_pos n).le _) (S_ge_one (by omega)) | |
| 32 | - _ = _ := by congr 1; ring | |
| 33 | - | |
| 34 | -theorem native_radial_power_le {h : ℝ} (hh : 0 ≤ h) | |
| 35 | - {n : ℕ} (hn : 4 ≤ n) : | |
| 36 | - ChartScales.radialCoefficient h n ≤ ChartScales.Q n ^ (-h * ChartScales.kappa) := by | |
| 37 | - have hs : ChartScales.S n ^ (-ChartScales.rho) ≤ 1 := | |
| 38 | - Real.rpow_le_one_of_one_le_of_nonpos (S_ge_one (by omega)) | |
| 39 | - (neg_nonpos.mpr ChartScales.rho_pos.le) | |
| 40 | - calc | |
| 41 | - _ ≤ ChartScales.epsilon h n ^ (-ChartScales.kappa) * | |
| 42 | - ChartScales.S n ^ (-ChartScales.rho) := | |
| 43 | - (ChartScales.radialCoefficient_bounds h hh hn).2 | |
| 44 | - _ ≤ ChartScales.epsilon h n ^ (-ChartScales.kappa) := | |
| 45 | - mul_le_of_le_one_right (Real.rpow_nonneg (ChartScales.epsilon_pos h n).le _) hs | |
| 46 | - _ = _ := by | |
| 47 | - unfold ChartScales.epsilon | |
| 48 | - rw [← Real.rpow_mul (ChartScales.Q_pos n).le] | |
| 49 | - congr 1 | |
| 50 | - ring | |
| 51 | - | |
| 52 | -theorem nativeGraph_positive_jet_bound {h a b : ℝ} (hh : 0 ≤ h) (ha : 0 < a) | |
| 53 | - (m : ℕ) : ∃ C : ℝ, 1 ≤ C ∧ ∀ n : ℕ, 4 ≤ n → ∀ p : SpaceTime, | |
| 54 | - scaledRadial n p ∈ annulus a b → |p.1| ≤ 1 → ∀ k, 1 ≤ k → k ≤ m → | |
| 55 | - ‖iteratedFDeriv ℝ k (nativeGraph h n) p‖ ≤ | |
| 56 | - C * ChartScales.Q n ^ (-(k : ℝ) * (1 + h)) := by | |
| 57 | - obtain ⟨C, hC, hbound⟩ := compact_jet_bound axisFree_open | |
| 58 | - (contDiffOn_radialProfile (ChartScales.radialExponent h)) (isCompact_annulus a b) | |
| 59 | - (annulus_axisFree ha) m | |
| 60 | - refine ⟨C + ‖timeDirection‖, by linarith [norm_nonneg timeDirection], ?_⟩ | |
| 61 | - intro n hn p hp ht k hk hkm | |
| 62 | - have hq := ChartScales.Q_pos n | |
| 63 | - have hq1 := ChartScales.Q_le_one n | |
| 64 | - have hC0 : 0 ≤ C := by linarith | |
| 65 | - have hk' : (1 : ℝ) ≤ k := by exact_mod_cast hk | |
| 66 | - have haxis := annulus_axisFree ha hp | |
| 67 | - have hr : ContDiffAt ℝ k | |
| 68 | - (radialProfile (ChartScales.radialExponent h) ∘ scaledRadial n) p := | |
| 69 | - (((contDiffOn_radialProfile (ChartScales.radialExponent h)).contDiffAt | |
| 70 | - (axisFree_open.mem_nhds haxis)).comp p (scaledRadial n).contDiff.contDiffAt).of_le | |
| 71 | - (nat_le_infty k) | |
| 72 | - have he : nativeGraph h n = fun z => | |
| 73 | - ChartScales.radialCoefficient h n • | |
| 74 | - (radialProfile (ChartScales.radialExponent h) ∘ scaledRadial n) z + | |
| 75 | - ChartScales.Tg ^ ChartScales.nativeIndex h n • timeProfile z := by | |
| 76 | - funext z | |
| 77 | - exact nativeGraph_normalized h n z | |
| 78 | - rw [he, fun_iteratedFDeriv_add_apply (hr.const_smul _) | |
| 79 | - ((timeProfile.contDiff.contDiffAt (x := p)).const_smul _), | |
| 80 | - iteratedFDeriv_const_smul_apply' hr, | |
| 81 | - iteratedFDeriv_const_smul_apply' timeProfile.contDiff.contDiffAt] | |
| 82 | - apply (norm_add_le _ _).trans | |
| 83 | - have hrad : ‖ChartScales.radialCoefficient h n • | |
| 84 | - iteratedFDeriv ℝ k (radialProfile (ChartScales.radialExponent h) ∘ scaledRadial n) p‖ ≤ | |
| 85 | - C * ChartScales.Q n ^ (-(k : ℝ) * (1 + h)) := by | |
| 86 | - rw [norm_smul, Real.norm_of_nonneg (ChartScales.radialCoefficient_pos h n).le] | |
| 87 | - have hj := norm_jet_comp_linear axisFree_open | |
| 88 | - (contDiffOn_radialProfile (ChartScales.radialExponent h)) (scaledRadial n) haxis k | |
| 89 | - have hl := pow_le_pow_left₀ (norm_nonneg (scaledRadial n)) (norm_scaledRadial_le n) k | |
| 90 | - have hfull := mul_le_mul_of_nonneg_left | |
| 91 | - (hj.trans (mul_le_mul (hbound k hkm _ hp) hl (by positivity) hC0)) | |
| 92 | - (ChartScales.radialCoefficient_pos h n).le | |
| 93 | - have hprod := hfull.trans (mul_le_mul_of_nonneg_right | |
| 94 | - (native_radial_power_le hh hn) (by positivity)) | |
| 95 | - have hpow : ChartScales.Q n ^ (-h * ChartScales.kappa) * | |
| 96 | - (C * (ChartScales.Q n ^ (-(1 / 2 : ℝ))) ^ k) = | |
| 97 | - C * ChartScales.Q n ^ (-h * ChartScales.kappa - (k : ℝ) / 2) := by | |
| 98 | - rw [← Real.rpow_mul_natCast hq.le, mul_left_comm, ← Real.rpow_add hq] | |
| 99 | - congr 2 | |
| 100 | - ring | |
| 101 | - rw [hpow] at hprod | |
| 102 | - apply hprod.trans | |
| 103 | - apply mul_le_mul_of_nonneg_left _ hC0 | |
| 104 | - apply Real.rpow_le_rpow_of_exponent_ge hq hq1 | |
| 105 | - have hkh : h ≤ (k : ℝ) * h := by nlinarith | |
| 106 | - unfold ChartScales.kappa | |
| 107 | - nlinarith | |
| 108 | - have htime : ‖ChartScales.Tg ^ ChartScales.nativeIndex h n • | |
| 109 | - iteratedFDeriv ℝ k timeProfile p‖ ≤ | |
| 110 | - ‖timeDirection‖ * ChartScales.Q n ^ (-(k : ℝ) * (1 + h)) := by | |
| 111 | - rw [norm_smul, Real.norm_of_nonneg (pow_nonneg ChartScales.Tg_pos.le _)] | |
| 112 | - calc | |
| 113 | - _ ≤ ChartScales.Q n ^ (-(1 + h)) * ‖timeDirection‖ := | |
| 114 | - mul_le_mul (native_time_power_le hh hn) (timeProfile_jet_bound p ht k) | |
| 115 | - (norm_nonneg _) (Real.rpow_nonneg hq.le _) | |
| 116 | - _ ≤ ChartScales.Q n ^ (-(k : ℝ) * (1 + h)) * ‖timeDirection‖ := | |
| 117 | - mul_le_mul_of_nonneg_right (Real.rpow_le_rpow_of_exponent_ge hq hq1 (by | |
| 118 | - nlinarith)) (norm_nonneg _) | |
| 119 | - _ = _ := mul_comm _ _ | |
| 120 | - calc | |
| 121 | - _ ≤ C * ChartScales.Q n ^ (-(k : ℝ) * (1 + h)) + | |
| 122 | - ‖timeDirection‖ * ChartScales.Q n ^ (-(k : ℝ) * (1 + h)) := add_le_add hrad htime | |
| 123 | - _ = _ := by ring | |
| 124 | - | |
| 125 | -theorem physicalLift_positive_jet_bound {h a b : ℝ} (hh : 0 ≤ h) (ha : 0 < a) | |
| 126 | - (m : ℕ) : ∃ C : ℝ, 1 ≤ C ∧ ∀ n : ℕ, 4 ≤ n → ∀ p : SpaceTime, | |
| 127 | - scaledRadial n p ∈ annulus a b → |p.1| ≤ 1 → ∀ k, 1 ≤ k → k ≤ m → | |
| 128 | - ‖iteratedFDeriv ℝ k (physicalLift h n) p‖ ≤ | |
| 129 | - C * ChartScales.Q n ^ (-(k : ℝ) * (1 + h)) := by | |
| 130 | - obtain ⟨C, hC, hbound⟩ := nativeGraph_positive_jet_bound hh ha m | |
| 131 | - refine ⟨C, hC, ?_⟩ | |
| 132 | - intro n hn p hp ht k hk hkm | |
| 133 | - have haxis := scaledRadial_ne_zero (annulus_axisFree ha hp) | |
| 134 | - change ‖iteratedFDeriv ℝ k (fun z => (physicalChart h n z, nativeGraph h n z)) p‖ ≤ _ | |
| 135 | - rw [iteratedFDeriv_pair | |
| 136 | - ((physicalChart_smooth h n).contDiffAt.of_le (nat_le_infty k)) | |
| 137 | - ((contDiffAt_nativeGraph h n haxis).of_le (nat_le_infty k)), | |
| 138 | - ContinuousMultilinearMap.opNorm_prod] | |
| 139 | - apply max_le | |
| 140 | - · calc | |
| 141 | - _ ≤ ChartScales.Q n ^ (-1 : ℝ) := physicalChart_jet_bound hh n p hk | |
| 142 | - _ ≤ ChartScales.Q n ^ (-(k : ℝ) * (1 + h)) := | |
| 143 | - Real.rpow_le_rpow_of_exponent_ge (ChartScales.Q_pos n) (ChartScales.Q_le_one n) (by | |
| 144 | - have hk' : (1 : ℝ) ≤ k := by exact_mod_cast hk | |
| 145 | - nlinarith) | |
| 146 | - _ ≤ C * ChartScales.Q n ^ (-(k : ℝ) * (1 + h)) := | |
| 147 | - le_mul_of_one_le_left (Real.rpow_nonneg (ChartScales.Q_pos n).le _) hC | |
| 148 | - · exact hbound n hn p hp ht k hk hkm | |
| 149 | - | |
| 150 | -end NavierStokes.SharpGraphBounds | |
+0 −54 NavierStokes/SharpLogWeights.lean deleted
| @@ -1,54 +0,0 @@ | ||
| 1 | -import NavierStokes.SharpPhysicalCarrier | |
| 2 | - | |
| 3 | -noncomputable section | |
| 4 | -namespace NavierStokes.SharpLogWeights | |
| 5 | -open PhysicalGraphBounds | |
| 6 | - | |
| 7 | -/-- Dyadic slow powers become a polynomial in the physical logarithm, | |
| 8 | -without sacrificing any power of the physical scale. -/ | |
| 9 | -theorem slow_power_log_bound (e : ℝ) : | |
| 10 | - ∃ C : ℝ, 0 < C ∧ ∃ P : ℕ, ∀ n : ℕ, 1 ≤ n → ∀ q : ℝ, | |
| 11 | - 0 < q → q/2 ≤ ChartScales.Q n → | |
| 12 | - ChartScales.S n^e ≤ C*(1+|Real.log q|)^P := by | |
| 13 | - let D := (Real.log 2+1)/Real.log 2 | |
| 14 | - let P := ⌈2*e⌉₊ | |
| 15 | - have hlog : 0 < Real.log 2 := Real.log_pos (by norm_num) | |
| 16 | - have hD : 0 < D := by dsimp [D]; positivity | |
| 17 | - refine ⟨D^P, pow_pos hD P, P, ?_⟩ | |
| 18 | - intro n hn q hq hlo | |
| 19 | - have hn1 : (1:ℝ) ≤ n := by exact_mod_cast hn | |
| 20 | - have hlogQ : Real.log (ChartScales.Q n) = -(n:ℝ)*Real.log 2 := by | |
| 21 | - simp only [ChartScales.Q, SlotColoring.dyadicQ, Real.log_rpow (by norm_num : (0:ℝ)<2)] | |
| 22 | - have hl := Real.log_le_log (by positivity : 0 < q/2) hlo | |
| 23 | - rw [Real.log_div hq.ne' (by norm_num : (2:ℝ)≠0), hlogQ] at hl | |
| 24 | - have hnlog : (n:ℝ) ≤ D*(1+|Real.log q|) := by | |
| 25 | - dsimp [D] | |
| 26 | - rw [div_mul_eq_mul_div] | |
| 27 | - apply (le_div_iff₀ hlog).mpr | |
| 28 | - nlinarith [neg_le_abs (Real.log q), abs_nonneg (Real.log q)] | |
| 29 | - calc | |
| 30 | - ChartScales.S n^e = (n:ℝ)^(2*e) := by | |
| 31 | - unfold ChartScales.S | |
| 32 | - rw [← Real.rpow_natCast_mul (show 0 ≤ (n:ℝ) by positivity)] | |
| 33 | - norm_num | |
| 34 | - _ ≤ (n:ℝ)^(P:ℝ) := Real.rpow_le_rpow_of_exponent_le hn1 (Nat.le_ceil _) | |
| 35 | - _ = (n:ℝ)^P := Real.rpow_natCast _ _ | |
| 36 | - _ ≤ (D*(1+|Real.log q|))^P := pow_le_pow_left₀ (by positivity) hnlog P | |
| 37 | - _ = _ := mul_pow _ _ _ | |
| 38 | - | |
| 39 | -/-- Preserve the exact real exponent while comparing a dyadic chart with | |
| 40 | -its physical scale and converting the remaining slow factor to logarithms. -/ | |
| 41 | -theorem chart_weight_bound (g e : ℝ) : | |
| 42 | - ∃ C : ℝ, 0 < C ∧ ∃ P : ℕ, ∀ n : ℕ, 1 ≤ n → ∀ q : ℝ, | |
| 43 | - 0 < q → q/2 ≤ ChartScales.Q n → ChartScales.Q n ≤ 2*q → | |
| 44 | - ChartScales.Q n^g * ChartScales.S n^e ≤ C*q^g*(1+|Real.log q|)^P := by | |
| 45 | - obtain ⟨D,hD,P,hslow⟩ := slow_power_log_bound e | |
| 46 | - refine ⟨2^|g| * D, by positivity, P, ?_⟩ | |
| 47 | - intro n hn q hq hlo hhi | |
| 48 | - calc | |
| 49 | - _ ≤ (2^|g| * q^g)*(D*(1+|Real.log q|)^P) := | |
| 50 | - mul_le_mul (comparable_rpow (ChartScales.Q_pos n) hq hlo hhi g) | |
| 51 | - (hslow n hn q hq hlo) (Real.rpow_nonneg (sq_nonneg _) _) (by positivity) | |
| 52 | - _ = _ := by ring | |
| 53 | - | |
| 54 | -end NavierStokes.SharpLogWeights | |
+0 −17 NavierStokes/SharpMeanJetBounds.lean deleted
| @@ -1,17 +0,0 @@ | ||
| 1 | -import NavierStokes.LocalMeanPhysicalBounds | |
| 2 | -import NavierStokes.SharpPhysicalLoss | |
| 3 | - | |
| 4 | -noncomputable section | |
| 5 | -namespace NavierStokes.SharpMeanJetBounds | |
| 6 | -open Set Function Filter ProblemStatement PhysicalWaveSum LocalPhysicalCopyBounds | |
| 7 | -open PhysicalMeanJetBounds LocalMeanPhysicalBounds | |
| 8 | -open scoped Topology ContDiff BigOperators | |
| 9 | - | |
| 10 | -variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 11 | - | |
| 12 | -noncomputable def meanLoss (h degree : ℝ) (m : ℕ) : ℝ := (m:ℝ)*(1+h)+degree | |
| 13 | - | |
| 14 | -variable {h degree a b : ℝ} {N Δ : ℕ} {U : Set PhysicalGraphBounds.Plane} | |
| 15 | - | |
| 16 | - | |
| 17 | -end NavierStokes.SharpMeanJetBounds | |
+0 −23 NavierStokes/SharpMeanStageBounds.lean deleted
| @@ -1,23 +0,0 @@ | ||
| 1 | -import NavierStokes.ActualPhysicalStageBounds | |
| 2 | -import NavierStokes.SharpMeanJetBounds | |
| 3 | - | |
| 4 | -noncomputable section | |
| 5 | -namespace NavierStokes.ActualPhysicalStageBounds.MeanInput | |
| 6 | -open Set Function Filter ProblemStatement | |
| 7 | -open SharpMeanJetBounds SharpPhysicalCarrier | |
| 8 | -open scoped Topology ContDiff | |
| 9 | - | |
| 10 | -private theorem common_loss_bound {h degree q C α : ℝ} {m k : ℕ} | |
| 11 | - (hh : 0 ≤ h) (hdegree : degree ≤ 2*CoordinateAlgebra.A h) (hkm : k ≤ m+1) | |
| 12 | - (hq : 0 < q) (hq1 : q ≤ 1) (hC : 0 ≤ C) (N : ℕ) : | |
| 13 | - C*q^(h*α-meanLoss h degree k)*(1+|Real.log q|)^N ≤ | |
| 14 | - C*q^(h*α-physicalLoss h m)*(1+|Real.log q|)^N := by | |
| 15 | - have hk : (k:ℝ) ≤ (m:ℝ)+1 := by exact_mod_cast hkm | |
| 16 | - have hm : 0 ≤ (m:ℝ)+1 := by positivity | |
| 17 | - have he : h*α-physicalLoss h m ≤ h*α-meanLoss h degree k := by | |
| 18 | - unfold physicalLoss meanLoss derivativeCost | |
| 19 | - nlinarith | |
| 20 | - exact mul_le_mul_of_nonneg_right | |
| 21 | - (mul_le_mul_of_nonneg_left (Real.rpow_le_rpow_of_exponent_ge hq hq1 he) hC) (by positivity) | |
| 22 | - | |
| 23 | -end NavierStokes.ActualPhysicalStageBounds.MeanInput | |
+0 −34 NavierStokes/SharpParticularGluing.lean deleted
| @@ -1,34 +0,0 @@ | ||
| 1 | -import NavierStokes.GluedStageEstimates | |
| 2 | -import NavierStokes.SharpPhysicalLogBounds | |
| 3 | - | |
| 4 | -noncomputable section | |
| 5 | - | |
| 6 | -namespace NavierStokes.SharpParticularGluing | |
| 7 | - | |
| 8 | -open Set Function Filter ProblemStatement PhysicalWaveSum SharpGluedStageBounds | |
| 9 | -open CorrectionInitialization.ActualPrimary CorrectionStep | |
| 10 | -open scoped Topology ContDiff BigOperators | |
| 11 | - | |
| 12 | -private theorem choose_mode_constants {P : ℤ → ℝ → ℕ → Prop} | |
| 13 | - (hP : ∀ k, k ≠ 0 → ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, P k C N) : | |
| 14 | - ∃ C : ℤ → ℝ, (∀ k, 0 ≤ C k) ∧ ∃ N : ℤ → ℕ, ∀ k, k ≠ 0 → P k (C k) (N k) := by | |
| 15 | - classical | |
| 16 | - have hs (k : ℤ) : ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, k ≠ 0 → P k C N := by | |
| 17 | - by_cases hk : k = 0 | |
| 18 | - · exact ⟨0,le_rfl,0,fun hn => (hn hk).elim⟩ | |
| 19 | - · obtain ⟨C,hC,N,hb⟩ := hP k hk | |
| 20 | - exact ⟨C,hC,N,fun _ => hb⟩ | |
| 21 | - choose C hC N hb using hs | |
| 22 | - exact ⟨C,hC,N,hb⟩ | |
| 23 | - | |
| 24 | -section HarmonicSums | |
| 25 | - | |
| 26 | -variable {B N0 : ℕ} {σ : ℝ} {x : CycleState (ActualInitialization.Index B N0)} | |
| 27 | - (H : ActualParticularCycleData.Invariant σ x) | |
| 28 | - (hGeom : ActualCarrierGeometry.geometricThreshold ≤ N0) | |
| 29 | - | |
| 30 | -include H hGeom | |
| 31 | - | |
| 32 | -end HarmonicSums | |
| 33 | - | |
| 34 | -end NavierStokes.SharpParticularGluing | |
+337 −3 NavierStokes/SharpParticularStageBounds.lean View file
| @@ -1,6 +1,340 @@ | ||
| 1 | -import NavierStokes.SharpParticularGluing | |
| 2 | -import NavierStokes.SharpCurrentParticularBounds | |
| 3 | -import NavierStokes.SharpActualStageBounds | |
| 1 | +import NavierStokes.GluedStageEstimates | |
| 2 | +import NavierStokes.SharpPhysicalLogBounds | |
| 3 | +import NavierStokes.ActualCurrentParticularBounds | |
| 4 | +import NavierStokes.SharpPhysicalLoss | |
| 5 | +import NavierStokes.LocalPhysicalCopyBounds | |
| 6 | +import NavierStokes.SharpPhaseJetAlgebra | |
| 7 | +import NavierStokes.CurrentPhysicalRadialClosure | |
| 8 | +import NavierStokes.CurrentParticularLabelBounds | |
| 9 | +import NavierStokes.SharpWaveStageBounds | |
| 10 | +import NavierStokes.ActualPhysicalStageBounds | |
| 11 | +import NavierStokes.LocalMeanPhysicalBounds | |
| 12 | +import NavierStokes.ActualCandidateAssembly | |
| 13 | + | |
| 14 | +/-! ## From `NavierStokes/SharpGeometricModeJets.lean` | |
| 15 | + | |
| 16 | +The text of `NavierStokes/SharpGeometricModeJets.lean`, folded into this file, which was its only importer. -/ | |
| 17 | + | |
| 18 | +section | |
| 19 | + | |
| 20 | +noncomputable section | |
| 21 | +namespace NavierStokes.SharpGeometricModeJets | |
| 22 | +open Set Function Filter LocalPhysicalCopyBounds | |
| 23 | +open scoped ContDiff Topology BigOperators | |
| 24 | + | |
| 25 | +private theorem nat_le_infty (k : ℕ) : (k : WithTop ℕ∞) ≤ ∞ := | |
| 26 | + WithTop.coe_le_coe.mpr le_top | |
| 27 | + | |
| 28 | +variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 29 | + [NormedAddCommGroup F] [NormedSpace ℝ F] [NormedSpace ℂ F] [IsScalarTower ℝ ℂ F] | |
| 30 | + | |
| 31 | +end NavierStokes.SharpGeometricModeJets | |
| 32 | +end | |
| 33 | + | |
| 34 | +end | |
| 35 | + | |
| 36 | +/-! ## From `NavierStokes/SharpCommonGraphJets.lean` | |
| 37 | + | |
| 38 | +The text of `NavierStokes/SharpCommonGraphJets.lean`, folded into this file, which was its only importer. -/ | |
| 39 | + | |
| 40 | +section | |
| 41 | + | |
| 42 | +noncomputable section | |
| 43 | +namespace NavierStokes.SharpCommonGraphJets | |
| 44 | +open Set Function Filter ProblemStatement | |
| 45 | +open PhysicalGraphBounds PhysicalWaveSum LocalPhysicalCopyBounds | |
| 46 | +open scoped ContDiff Topology | |
| 47 | + | |
| 48 | +end NavierStokes.SharpCommonGraphJets | |
| 49 | +end | |
| 50 | + | |
| 51 | +end | |
| 52 | + | |
| 53 | +/-! ## From `NavierStokes/SharpCurrentPhysicalPhase.lean` | |
| 54 | + | |
| 55 | +The text of `NavierStokes/SharpCurrentPhysicalPhase.lean`, folded into this file, which was its only importer. -/ | |
| 56 | + | |
| 57 | +section | |
| 58 | + | |
| 59 | +noncomputable section | |
| 60 | +namespace NavierStokes.SharpCurrentPhysicalPhase | |
| 61 | +open Set Function Filter ProblemStatement CorrectionInitialization | |
| 62 | +open PhysicalGraphBounds PhysicalWaveSum LocalPhysicalCopyBounds | |
| 63 | +open scoped ContDiff Topology | |
| 64 | + | |
| 65 | +abbrev Native := ActualParticularBackground.Native | |
| 66 | + | |
| 67 | +abbrev h : ℝ := ActualPrimary.h | |
| 68 | + | |
| 69 | +noncomputable def nativeMap (a : ℝ) (c : PolarCharts.Index) (n d : ℕ) : SpaceTime → Native := | |
| 70 | + CurrentPhysicalChartJets.chartMap a c ∘ commonLift h n d | |
| 71 | + | |
| 72 | +noncomputable def fullMap (a : ℝ) (c : PolarCharts.Index) (n d : ℕ) : | |
| 73 | + SpaceTime → ActualPrimary.FullPoint := ActualParticularBackground.nativeToFull ∘ nativeMap a c n d | |
| 74 | + | |
| 75 | + | |
| 76 | +private theorem nat_le_infty (k : ℕ) : (k : WithTop ℕ∞) ≤ ∞ := | |
| 77 | + WithTop.coe_le_coe.mpr le_top | |
| 78 | + | |
| 79 | +theorem smoothNear_comp {E F G : Type*} | |
| 80 | + [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] | |
| 81 | + [NormedAddCommGroup G] [NormedSpace ℝ G] | |
| 82 | + {f : F → G} {g : E → F} {x : E} (hf : SmoothNear f (g x)) (hg : SmoothNear g x) : | |
| 83 | + SmoothNear (f ∘ g) x := by | |
| 84 | + obtain ⟨V,hV,hgx,hf⟩ := hf | |
| 85 | + obtain ⟨U,hU,hx,hg⟩ := hg | |
| 86 | + obtain ⟨W,hWV,hW,hxW⟩ := mem_nhds_iff.mp | |
| 87 | + ((hg.contDiffAt (hU.mem_nhds hx)).continuousAt.preimage_mem_nhds (hV.mem_nhds hgx)) | |
| 88 | + refine ⟨U ∩ W,hU.inter hW,⟨hx,hxW⟩,?_⟩ | |
| 89 | + exact hf.comp (hg.mono inter_subset_left) (fun y hy => hWV hy.2) | |
| 90 | + | |
| 91 | +theorem nativeMap_smoothNear {a : ℝ} (ha : 0 < a) (c : PolarCharts.Index) (n d : ℕ) | |
| 92 | + {w : SpaceTime} (hw : radialProjection w ≠ 0) : SmoothNear (nativeMap a c n d) w := by | |
| 93 | + let U : Set SpaceTime := {w | radialProjection w ≠ 0} | |
| 94 | + have hU : IsOpen U := axisFree_open.preimage radialProjection.continuous | |
| 95 | + refine ⟨U,hU,hw,?_⟩ | |
| 96 | + exact (CurrentPhysicalChartJets.chartMap_smooth ha c).comp_contDiffOn | |
| 97 | + ((downLift d).contDiff.comp_contDiffOn (physicalLift_smooth h n)) | |
| 98 | + | |
| 99 | +theorem fullMap_smoothNear {a : ℝ} (ha : 0 < a) (c : PolarCharts.Index) (n d : ℕ) | |
| 100 | + {w : SpaceTime} (hw : radialProjection w ≠ 0) : SmoothNear (fullMap a c n d) w := by | |
| 101 | + obtain ⟨U,hU,hx,hs⟩ := nativeMap_smoothNear ha c n d hw | |
| 102 | + exact ⟨U,hU,hx,ActualParticularBackground.nativeToFull.toContinuousLinearEquiv.contDiff.comp_contDiffOn hs⟩ | |
| 103 | + | |
| 104 | +noncomputable def remainder (n : ℕ) (i : ActualPhaseJetBounds.CopyIndex B N0) | |
| 105 | + (x : ActualPrimary.FullPoint) : ℝ := ActualPhaseJetBounds.nativeRemainder i.1 | |
| 106 | + ((ActualPrimaryBounds.fullCopy i.1 n i.2 x).1,(ActualPrimaryBounds.fullCopy i.1 n i.2 x).2.2) | |
| 107 | + | |
| 108 | + | |
| 109 | +theorem weightedPhase_smoothNear {a : ℝ} (ha : 0 < a) (c : PolarCharts.Index) (n d : ℕ) | |
| 110 | + {i : ActualPhaseJetBounds.CopyIndex B N0} {w : SpaceTime} (hw : radialProjection w ≠ 0) | |
| 111 | + (hi : fullMap a c n d w ∈ ActualPhaseJetBounds.phaseCell n i) : | |
| 112 | + SmoothNear (ActualCurrentCarrierJets.weightedPhase i.1 n ∘ nativeMap a c n d) w := by | |
| 113 | + change SmoothNear (ActualPhaseJetBounds.weightedPhase i.1 n ∘ fullMap a c n d) w | |
| 114 | + exact smoothNear_comp (ActualCurrentCarrierJets.full_weightedPhase_smoothNear hi) | |
| 115 | + (fullMap_smoothNear ha c n d hw) | |
| 116 | + | |
| 117 | +end NavierStokes.SharpCurrentPhysicalPhase | |
| 118 | +end | |
| 119 | + | |
| 120 | +end | |
| 121 | + | |
| 122 | +/-! ## From `NavierStokes/SharpMeanJetBounds.lean` | |
| 123 | + | |
| 124 | +The text of `NavierStokes/SharpMeanJetBounds.lean`, folded into this file, which was its only importer. -/ | |
| 125 | + | |
| 126 | +section | |
| 127 | + | |
| 128 | +noncomputable section | |
| 129 | +namespace NavierStokes.SharpMeanJetBounds | |
| 130 | +open Set Function Filter ProblemStatement PhysicalWaveSum LocalPhysicalCopyBounds | |
| 131 | +open PhysicalMeanJetBounds LocalMeanPhysicalBounds | |
| 132 | +open scoped Topology ContDiff BigOperators | |
| 133 | + | |
| 134 | +variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] | |
| 135 | + | |
| 136 | +noncomputable def meanLoss (h degree : ℝ) (m : ℕ) : ℝ := (m:ℝ)*(1+h)+degree | |
| 137 | + | |
| 138 | +variable {h degree a b : ℝ} {N Δ : ℕ} {U : Set PhysicalGraphBounds.Plane} | |
| 139 | + | |
| 140 | + | |
| 141 | +end NavierStokes.SharpMeanJetBounds | |
| 142 | +end | |
| 143 | + | |
| 144 | +end | |
| 145 | + | |
| 146 | +/-! ## From `NavierStokes/SharpMeanStageBounds.lean` | |
| 147 | + | |
| 148 | +The text of `NavierStokes/SharpMeanStageBounds.lean`, folded into this file, which was its only importer. -/ | |
| 149 | + | |
| 150 | +section | |
| 151 | + | |
| 152 | +noncomputable section | |
| 153 | +namespace NavierStokes.ActualPhysicalStageBounds.MeanInput | |
| 154 | +open Set Function Filter ProblemStatement | |
| 155 | +open SharpMeanJetBounds SharpPhysicalCarrier | |
| 156 | +open scoped Topology ContDiff | |
| 157 | + | |
| 158 | +private theorem common_loss_bound {h degree q C α : ℝ} {m k : ℕ} | |
| 159 | + (hh : 0 ≤ h) (hdegree : degree ≤ 2*CoordinateAlgebra.A h) (hkm : k ≤ m+1) | |
| 160 | + (hq : 0 < q) (hq1 : q ≤ 1) (hC : 0 ≤ C) (N : ℕ) : | |
| 161 | + C*q^(h*α-meanLoss h degree k)*(1+|Real.log q|)^N ≤ | |
| 162 | + C*q^(h*α-physicalLoss h m)*(1+|Real.log q|)^N := by | |
| 163 | + have hk : (k:ℝ) ≤ (m:ℝ)+1 := by exact_mod_cast hkm | |
| 164 | + have hm : 0 ≤ (m:ℝ)+1 := by positivity | |
| 165 | + have he : h*α-physicalLoss h m ≤ h*α-meanLoss h degree k := by | |
| 166 | + unfold physicalLoss meanLoss derivativeCost | |
| 167 | + nlinarith | |
| 168 | + exact mul_le_mul_of_nonneg_right | |
| 169 | + (mul_le_mul_of_nonneg_left (Real.rpow_le_rpow_of_exponent_ge hq hq1 he) hC) (by positivity) | |
| 170 | + | |
| 171 | +end NavierStokes.ActualPhysicalStageBounds.MeanInput | |
| 172 | +end | |
| 173 | + | |
| 174 | +end | |
| 175 | + | |
| 176 | +/-! ## From `NavierStokes/SharpGluedStageBounds.lean` | |
| 177 | + | |
| 178 | +The text of `NavierStokes/SharpGluedStageBounds.lean`, folded into this file, which was its only importer. -/ | |
| 179 | + | |
| 180 | +section | |
| 181 | + | |
| 182 | +noncomputable section | |
| 183 | +namespace NavierStokes.SharpGluedStageBounds | |
| 184 | +open Set Function Filter ProblemStatement PhysicalWaveSum | |
| 185 | +open scoped Topology ContDiff BigOperators | |
| 186 | + | |
| 187 | +open CorrectionInitialization CorrectionInitialization.ActualPrimary ActualStageEstimates | |
| 188 | + | |
| 189 | +section SignedAndMean | |
| 190 | + | |
| 191 | +variable {B N0 N : ℕ} {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] | |
| 192 | + {I K : Type*} (R : RunData B N0) | |
| 193 | + (M : ActualMeanPhysicalData.InitialCycleInput B N0 N | |
| 194 | + (fun _ => ActualCycleParameters.fixedParameters B N0)) | |
| 195 | + (hN : 4 ≤ N) (W : GluedStageEstimates.SignedInputs D I K) | |
| 196 | + | |
| 197 | +private theorem potential_gain (j : ℕ) : | |
| 198 | + ActualIterationLedger.gain h (j+1) ≤ h * (W.potential j).alpha := by | |
| 199 | + have hg := ActualIterationLedger.gain_le_wave outgoing.data.h_pos.le | |
| 200 | + ActualCyclePreservation.kappa_small (Nat.succ_pos j) | |
| 201 | + rw [← nativePotential_eq_ledger j] at hg | |
| 202 | + exact hg.trans (mul_le_mul_of_nonneg_left (W.potential_exponent j) outgoing.data.h_pos.le) | |
| 203 | + | |
| 204 | +private theorem pressure_gain (j : ℕ) : | |
| 205 | + ActualIterationLedger.gain h (j+1) ≤ h * (W.pressure j).alpha := by | |
| 206 | + have hg := ActualIterationLedger.gain_le_wavePressure outgoing.data.h_pos.le | |
| 207 | + ActualCyclePreservation.kappa_small (Nat.succ_pos j) | |
| 208 | + rw [← nativePressure_eq_ledger j] at hg | |
| 209 | + exact hg.trans (mul_le_mul_of_nonneg_left (W.pressure_exponent j) outgoing.data.h_pos.le) | |
| 210 | + | |
| 211 | +private theorem mean_gain (j : ℕ) : | |
| 212 | + ActualIterationLedger.gain h (j+1) ≤ h * (1+ActualIterationLedger.sigma j-2*ChartScales.kappa) := by | |
| 213 | + rw [nativeMean_eq_ledger] | |
| 214 | + exact ActualIterationLedger.gain_le_mean outgoing.data.h_pos.le | |
| 215 | + ActualCyclePreservation.kappa_small (Nat.succ_pos j) | |
| 216 | + | |
| 217 | +private theorem mean_degree : CoordinateAlgebra.A h - 1/2 ≤ 2*CoordinateAlgebra.A h := by | |
| 218 | + unfold CoordinateAlgebra.A | |
| 219 | + linarith [outgoing.data.h_pos] | |
| 220 | + | |
| 221 | +end SignedAndMean | |
| 222 | + | |
| 223 | +end NavierStokes.SharpGluedStageBounds | |
| 224 | +end | |
| 225 | + | |
| 226 | +end | |
| 227 | + | |
| 228 | +/-! ## From `NavierStokes/SharpParticularGluing.lean` | |
| 229 | + | |
| 230 | +The text of `NavierStokes/SharpParticularGluing.lean`, folded into this file, which was its only importer. -/ | |
| 231 | + | |
| 232 | +section | |
| 233 | + | |
| 234 | +noncomputable section | |
| 235 | + | |
| 236 | +namespace NavierStokes.SharpParticularGluing | |
| 237 | + | |
| 238 | +open Set Function Filter ProblemStatement PhysicalWaveSum SharpGluedStageBounds | |
| 239 | +open CorrectionInitialization.ActualPrimary CorrectionStep | |
| 240 | +open scoped Topology ContDiff BigOperators | |
| 241 | + | |
| 242 | +private theorem choose_mode_constants {P : ℤ → ℝ → ℕ → Prop} | |
| 243 | + (hP : ∀ k, k ≠ 0 → ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, P k C N) : | |
| 244 | + ∃ C : ℤ → ℝ, (∀ k, 0 ≤ C k) ∧ ∃ N : ℤ → ℕ, ∀ k, k ≠ 0 → P k (C k) (N k) := by | |
| 245 | + classical | |
| 246 | + have hs (k : ℤ) : ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, k ≠ 0 → P k C N := by | |
| 247 | + by_cases hk : k = 0 | |
| 248 | + · exact ⟨0,le_rfl,0,fun hn => (hn hk).elim⟩ | |
| 249 | + · obtain ⟨C,hC,N,hb⟩ := hP k hk | |
| 250 | + exact ⟨C,hC,N,fun _ => hb⟩ | |
| 251 | + choose C hC N hb using hs | |
| 252 | + exact ⟨C,hC,N,hb⟩ | |
| 253 | + | |
| 254 | +section HarmonicSums | |
| 255 | + | |
| 256 | +variable {B N0 : ℕ} {σ : ℝ} {x : CycleState (ActualInitialization.Index B N0)} | |
| 257 | + (H : ActualParticularCycleData.Invariant σ x) | |
| 258 | + (hGeom : ActualCarrierGeometry.geometricThreshold ≤ N0) | |
| 259 | + | |
| 260 | +include H hGeom | |
| 261 | + | |
| 262 | +end HarmonicSums | |
| 263 | + | |
| 264 | +end NavierStokes.SharpParticularGluing | |
| 265 | +end | |
| 266 | + | |
| 267 | +end | |
| 268 | + | |
| 269 | +/-! ## From `NavierStokes/SharpCurrentModeJets.lean` | |
| 270 | + | |
| 271 | +The text of `NavierStokes/SharpCurrentModeJets.lean`, folded into this file, which was its only importer. -/ | |
| 272 | + | |
| 273 | +section | |
| 274 | + | |
| 275 | +noncomputable section | |
| 276 | +namespace NavierStokes.SharpCurrentModeJets | |
| 277 | +open Set Function Filter ProblemStatement CorrectionInitialization | |
| 278 | +open LocalPhysicalCopyBounds SharpCurrentPhysicalPhase | |
| 279 | +open scoped ContDiff Topology | |
| 280 | + | |
| 281 | +private theorem nat_le_infty (k : ℕ) : (k : WithTop ℕ∞) ≤ ∞ := | |
| 282 | + WithTop.coe_le_coe.mpr le_top | |
| 283 | + | |
| 284 | + | |
| 285 | +end NavierStokes.SharpCurrentModeJets | |
| 286 | +end | |
| 287 | + | |
| 288 | +end | |
| 289 | + | |
| 290 | +/-! ## From `NavierStokes/SharpCurrentParticularBounds.lean` | |
| 291 | + | |
| 292 | +The text of `NavierStokes/SharpCurrentParticularBounds.lean`, folded into this file, which was its only importer. -/ | |
| 293 | + | |
| 294 | +section | |
| 295 | + | |
| 296 | +noncomputable section | |
| 297 | + | |
| 298 | +namespace NavierStokes.SharpCurrentParticularBounds | |
| 299 | + | |
| 300 | +open Set Function Filter ProblemStatement CorrectionStep | |
| 301 | +open CorrectionInitialization ActualCurrentParticularBounds | |
| 302 | +open CorrectionInitialization.ActualPrimary (h outgoing nominal) | |
| 303 | +open LocalPhysicalCopyBounds SharpCurrentModeJets | |
| 304 | +open SharpCurrentPhysicalPhase (nativeMap fullMap smoothNear_comp weightedPhase_smoothNear nativeMap_smoothNear) | |
| 305 | +open scoped Topology ContDiff BigOperators | |
| 306 | + | |
| 307 | +variable {B N0 : ℕ} {σ : ℝ} {x : CycleState (ActualInitialization.Index B N0)} | |
| 308 | + | |
| 309 | +private theorem commonGap_bound (n : ℕ) : | |
| 310 | + CurrentPhysicalModeGerms.commonGap n ≤ CommonWindow.gap h := by | |
| 311 | + have hn := CommonWindow.native_le_index_add h outgoing.data.h_pos.le n | |
| 312 | + unfold CurrentPhysicalModeGerms.commonGap | |
| 313 | + omega | |
| 314 | + | |
| 315 | +end NavierStokes.SharpCurrentParticularBounds | |
| 316 | +end | |
| 317 | + | |
| 318 | +end | |
| 319 | + | |
| 320 | +/-! ## From `NavierStokes/SharpActualStageBounds.lean` | |
| 321 | + | |
| 322 | +The text of `NavierStokes/SharpActualStageBounds.lean`, folded into this file, which was its only importer. -/ | |
| 323 | + | |
| 324 | +section | |
| 325 | + | |
| 326 | +noncomputable section | |
| 327 | + | |
| 328 | +namespace NavierStokes.SharpActualStageBounds | |
| 329 | + | |
| 330 | +open Set Function Filter ProblemStatement PhysicalWaveSum SharpGluedStageBounds | |
| 331 | +open CorrectionInitialization.ActualPrimary ActualCandidateAssembly | |
| 332 | +open scoped Topology ContDiff BigOperators | |
| 333 | + | |
| 334 | +end NavierStokes.SharpActualStageBounds | |
| 335 | +end | |
| 336 | + | |
| 337 | +end | |
| 4 | 338 | |
| 5 | 339 | noncomputable section |
| 6 | 340 | |
+0 −172 NavierStokes/SharpPhysicalCarrier.lean deleted
| @@ -1,172 +0,0 @@ | ||
| 1 | -import NavierStokes.SharpPhysicalPhase | |
| 2 | - | |
| 3 | -noncomputable section | |
| 4 | -namespace NavierStokes.SharpPhysicalCarrier | |
| 5 | -open Set Function | |
| 6 | -open ProblemStatement PhysicalGraphBounds SharpPhaseJetAlgebra SharpPhysicalPhase | |
| 7 | -open scoped ContDiff | |
| 8 | - | |
| 9 | -private theorem nat_le_infty (k : ℕ) : (k : WithTop ℕ∞) ≤ ∞ := | |
| 10 | - WithTop.coe_le_coe.mpr le_top | |
| 11 | - | |
| 12 | -/-- The manuscript's common Cartesian derivative cost for an oscillatory factor. -/ | |
| 13 | -def derivativeCost (h : ℝ) : ℝ := 1 + 3*h/2 | |
| 14 | - | |
| 15 | -/-- The printed physical loss includes one derivative for potential recovery. -/ | |
| 16 | -def physicalLoss (h : ℝ) (m : ℕ) : ℝ := | |
| 17 | - 2*CoordinateAlgebra.A h + ((m:ℝ)+1)*derivativeCost h | |
| 18 | - | |
| 19 | -/-- A real physical phase with sharp positive jets gives the exact linear | |
| 20 | -carrier loss. Slow powers remain explicit, and are not absorbed into `Q`. -/ | |
| 21 | -theorem carrier_geometric_bound {h a b : ℝ} (hh : 0 ≤ h) (ha : 0 < a) | |
| 22 | - (m : ℕ) (g d e A B H : ℝ) (hA : 0 ≤ A) (hB : 1 ≤ B) | |
| 23 | - (he : 0 ≤ e) (hH : 0 ≤ H) : | |
| 24 | - ∃ C : ℝ, 0 ≤ C ∧ ∀ n : ℕ, 4 ≤ n → ∀ w : SpaceTime, | |
| 25 | - scaledRadial n w ∈ annulus a b → |w.1| ≤ 1 → | |
| 26 | - ∀ (amp : LiftPoint → ℂ) (Φ : SpaceTime → ℝ) (j : ℤ), | |
| 27 | - ContDiff ℝ ∞ amp → ContDiff ℝ ∞ Φ → |(j:ℝ)| ≤ H → | |
| 28 | - (∀ i ≤ m, ‖iteratedFDeriv ℝ i amp (physicalLift h n w)‖ ≤ | |
| 29 | - A * ChartScales.Q n ^ g * ChartScales.S n ^ d) → | |
| 30 | - (∀ i, 1 ≤ i → i ≤ m → ‖iteratedFDeriv ℝ i Φ w‖ ≤ | |
| 31 | - (B * ChartScales.S n ^ e * ChartScales.Q n ^ (-(1+h))) ^ i) → | |
| 32 | - ‖iteratedFDeriv ℝ m (fun z => amp (physicalLift h n z) * | |
| 33 | - character ((ChartScales.carrier h n:ℝ)*(j:ℝ)) (Φ z)) w‖ ≤ | |
| 34 | - C * ChartScales.Q n ^ (g-(m:ℝ)*derivativeCost h) * | |
| 35 | - ChartScales.S n ^ (d+e*(m:ℝ)) := by | |
| 36 | - obtain ⟨K, hK, hgraph⟩ := SharpGraphBounds.physicalLift_positive_jet_bound (b := b) hh ha m | |
| 37 | - let C := (2:ℝ)^m*(m.factorial:ℝ)^2*A*(1+2*H)^m*(K+B)^m | |
| 38 | - have hK0 : 0 ≤ K := by linarith | |
| 39 | - have hB0 : 0 ≤ B := by linarith | |
| 40 | - refine ⟨C, by dsimp [C]; positivity, ?_⟩ | |
| 41 | - intro n hn w hw ht amp Φ j hamp hΦ hj hab hph | |
| 42 | - have hQ := ChartScales.Q_pos n | |
| 43 | - have hS := ChartScales.S_pos (show 1 ≤ n by omega) | |
| 44 | - have hS1 := S_ge_one (show 1 ≤ n by omega) | |
| 45 | - have hSe : 1 ≤ ChartScales.S n ^ e := Real.one_le_rpow hS1 he | |
| 46 | - let U := (K+B)*ChartScales.S n^e*ChartScales.Q n^(-(1+h)) | |
| 47 | - have hU : 0 ≤ U := by dsimp [U]; positivity | |
| 48 | - have hscale : 1 ≤ ChartScales.Q n ^ (-h/2) := by | |
| 49 | - have hb := Real.rpow_le_rpow_of_exponent_ge hQ (ChartScales.Q_le_one n) (show -h/2 ≤ 0 by linarith) | |
| 50 | - simpa only [Real.rpow_zero] using hb | |
| 51 | - let M := (1+2*H)*ChartScales.Q n^(-h/2) | |
| 52 | - have hM : 1 ≤ M := one_le_mul_of_one_le_of_one_le (by linarith) hscale | |
| 53 | - have hM0 : 0 ≤ M := by linarith | |
| 54 | - have hc : |(ChartScales.carrier h n:ℝ)*(j:ℝ)| ≤ M := by | |
| 55 | - rw [abs_mul, abs_of_nonneg (Nat.cast_nonneg _)] | |
| 56 | - calc | |
| 57 | - _ ≤ (2*ChartScales.Q n^(-h/2))*H := | |
| 58 | - mul_le_mul (carrier_upper hh n) hj (abs_nonneg _) (by positivity) | |
| 59 | - _ ≤ M := by dsimp [M]; nlinarith [Real.rpow_nonneg hQ.le (-h/2)] | |
| 60 | - let W : Set SpaceTime := {z | radialProjection z ≠ 0} | |
| 61 | - have hW : IsOpen W := axisFree_open.preimage radialProjection.continuous | |
| 62 | - have hwW : w ∈ W := scaledRadial_ne_zero (annulus_axisFree ha hw) | |
| 63 | - have hgraphU : ∀ i, 1 ≤ i → i ≤ m → ‖iteratedFDeriv ℝ i (physicalLift h n) w‖ ≤ U^i := by | |
| 64 | - intro i hi him | |
| 65 | - apply (hgraph n hn w hw ht i hi him).trans | |
| 66 | - have hqpow : ChartScales.Q n^(-(i:ℝ)*(1+h)) = (ChartScales.Q n^(-(1+h)))^i := by | |
| 67 | - rw [← Real.rpow_mul_natCast hQ.le] | |
| 68 | - congr 1 | |
| 69 | - ring | |
| 70 | - rw [hqpow] | |
| 71 | - calc | |
| 72 | - _ ≤ K^i*(ChartScales.Q n^(-(1+h)))^i := | |
| 73 | - mul_le_mul_of_nonneg_right (by simpa only [pow_one] using pow_le_pow_right₀ hK hi) (by positivity) | |
| 74 | - _ = (K*ChartScales.Q n^(-(1+h)))^i := (mul_pow _ _ _).symm | |
| 75 | - _ ≤ U^i := by | |
| 76 | - apply pow_le_pow_left₀ (by positivity) | |
| 77 | - dsimp [U] | |
| 78 | - apply mul_le_mul_of_nonneg_right _ (Real.rpow_nonneg hQ.le _) | |
| 79 | - exact (show K ≤ K+B by linarith).trans (le_mul_of_one_le_right (by linarith) hSe) | |
| 80 | - have hphaseU : ∀ i, 1 ≤ i → i ≤ m → ‖iteratedFDeriv ℝ i Φ w‖ ≤ U^i := by | |
| 81 | - intro i hi him | |
| 82 | - apply (hph i hi him).trans | |
| 83 | - apply pow_le_pow_left₀ (by positivity) | |
| 84 | - dsimp [U] | |
| 85 | - gcongr | |
| 86 | - linarith | |
| 87 | - have hampj := composition_geometric_on hW (physicalLift_smooth h n) hamp hwW m | |
| 88 | - (show 0 ≤ A*ChartScales.Q n^g*ChartScales.S n^d by positivity) hU hab hgraphU | |
| 89 | - have hcharj := composition_geometric hΦ (character_smooth ((ChartScales.carrier h n:ℝ)*(j:ℝ))) | |
| 90 | - w m (pow_nonneg hM0 m) hU | |
| 91 | - (fun i hi => by | |
| 92 | - rw [norm_character_jet] | |
| 93 | - exact (pow_le_pow_left₀ (abs_nonneg _) hc i).trans (pow_le_pow_right₀ hM hi)) hphaseU | |
| 94 | - have hampW : ContDiffOn ℝ ∞ (amp ∘ physicalLift h n) W := | |
| 95 | - hamp.contDiffOn.comp (physicalLift_smooth h n) (mapsTo_univ _ _) | |
| 96 | - have hprod := product_geometric_on hW hampW | |
| 97 | - ((character_smooth _).comp hΦ).contDiffOn hwW m | |
| 98 | - (show 0 ≤ (m.factorial:ℝ)*(A*ChartScales.Q n^g*ChartScales.S n^d) by positivity) | |
| 99 | - (show 0 ≤ (m.factorial:ℝ)*M^m by positivity) hU hampj hcharj | |
| 100 | - apply hprod.trans_eq | |
| 101 | - have hqpow : ChartScales.Q n^g * (ChartScales.Q n^(-h/2))^m * | |
| 102 | - (ChartScales.Q n^(-(1+h)))^m = ChartScales.Q n^(g-(m:ℝ)*derivativeCost h) := by | |
| 103 | - rw [← Real.rpow_mul_natCast hQ.le, ← Real.rpow_mul_natCast hQ.le, | |
| 104 | - ← Real.rpow_add hQ, ← Real.rpow_add hQ] | |
| 105 | - congr 1 | |
| 106 | - unfold derivativeCost | |
| 107 | - ring | |
| 108 | - have hspow : ChartScales.S n^d * (ChartScales.S n^e)^m = ChartScales.S n^(d+e*(m:ℝ)) := by | |
| 109 | - rw [← Real.rpow_mul_natCast hS.le, ← Real.rpow_add hS] | |
| 110 | - dsimp [M, U, C] | |
| 111 | - rw [mul_pow, mul_pow, mul_pow] | |
| 112 | - calc | |
| 113 | - _ = (2:ℝ)^m*(m.factorial:ℝ)^2*A*(1+2*H)^m*(K+B)^m * | |
| 114 | - (ChartScales.Q n^g*(ChartScales.Q n^(-h/2))^m*(ChartScales.Q n^(-(1+h)))^m) * | |
| 115 | - (ChartScales.S n^d*(ChartScales.S n^e)^m) := by ring | |
| 116 | - _ = _ := by rw [hqpow,hspow] | |
| 117 | - | |
| 118 | - | |
| 119 | - | |
| 120 | -/-- The exact native carrier, with genuine base-profile hypotheses and all | |
| 121 | -polar branches covered, has the printed cost per Cartesian derivative. -/ | |
| 122 | -theorem native_carrier_bound {h a b r0 P B dBase : ℝ} | |
| 123 | - (hh : 0 ≤ h) (ha : 0 < a) (hr0 : 0 ≤ r0) (hP : 1 ≤ P) (hB : 1 ≤ B) | |
| 124 | - (hdBase : 0 ≤ dBase) (m : ℕ) (g dAmp A H : ℝ) (hA : 0 ≤ A) (hH : 0 ≤ H) : | |
| 125 | - ∃ C : ℝ, 0 ≤ C ∧ ∀ n : ℕ, 4 ≤ n → ∀ w : SpaceTime, | |
| 126 | - scaledRadial n w ∈ annulus a b → |w.1| ≤ 1 → | |
| 127 | - ∀ (chart : PolarCharts.Index) (center : Plane) (p pz x0 : ℝ), | |
| 128 | - |p| ≤ P → |pz| ≤ P → |x0| ≤ P → | |
| 129 | - |etaCoordinate (nativeGraph h n w - center)| ≤ r0 → | |
| 130 | - ∀ (amp : LiftPoint → ℂ) (F G : Slow → ℝ) (j : ℤ), | |
| 131 | - ContDiff ℝ ∞ amp → ContDiff ℝ ∞ F → ContDiff ℝ ∞ G → |(j:ℝ)| ≤ H → | |
| 132 | - (∀ i ≤ m, ‖iteratedFDeriv ℝ i amp (physicalLift h n w)‖ ≤ | |
| 133 | - A * ChartScales.Q n^g * ChartScales.S n^dAmp) → | |
| 134 | - (∀ i ≤ m, ‖iteratedFDeriv ℝ i F | |
| 135 | - (slowMap (PolarCharts.chart a chart) h n w)‖ ≤ B*ChartScales.S n^dBase) → | |
| 136 | - (∀ i ≤ m, ‖iteratedFDeriv ℝ i G | |
| 137 | - (slowMap (PolarCharts.chart a chart) h n w)‖ ≤ B*ChartScales.S n^dBase) → | |
| 138 | - ‖iteratedFDeriv ℝ m ((fun y => amp y * | |
| 139 | - character ((ChartScales.carrier h n:ℝ)*(j:ℝ)) | |
| 140 | - (liftedPhase (PolarCharts.chart a chart) h n center r0 p pz x0 F G y)) ∘ | |
| 141 | - physicalLift h n) w‖ ≤ | |
| 142 | - C*ChartScales.Q n^(g-(m:ℝ)*derivativeCost h)* | |
| 143 | - ChartScales.S n^(dAmp+(dBase+1)*(m:ℝ)) := by | |
| 144 | - obtain ⟨K, hK, hpolar⟩ := PolarCharts.chart_finiteJets_uniform ha b m | |
| 145 | - let V := 1+2*r0*ChartScales.Tg | |
| 146 | - have hV : 1 ≤ V := by dsimp [V]; nlinarith [ChartScales.Tg_pos] | |
| 147 | - obtain ⟨BP, hBP, hphase⟩ := SharpPhysicalPhase.physicalPhase_geometric_bound hh hK hV hP hB hdBase m | |
| 148 | - obtain ⟨C, hC, hbound⟩ := carrier_geometric_bound (b := b) hh ha m | |
| 149 | - g dAmp (dBase+1) A BP H hA hBP (by linarith) hH | |
| 150 | - refine ⟨C,hC,?_⟩ | |
| 151 | - intro n hn w hw ht chart center p pz x0 hp hpz hx0 hslot amp F G j hamp hF hG hj hab hFb hGb | |
| 152 | - have hκ := PolarCharts.chart_contDiff ha chart | |
| 153 | - have hκb : ∀ i ≤ m, ‖iteratedFDeriv ℝ i (PolarCharts.chart a chart) (scaledRadial n w)‖ ≤ K := | |
| 154 | - fun i hi => hpolar chart i hi _ hw.1 | |
| 155 | - have hv : |slotTime h n center r0 w| ≤ V*ChartScales.S n := by | |
| 156 | - unfold slotTime | |
| 157 | - rw [abs_div, abs_of_pos (ChartScales.timeCoefficient_pos h n), div_eq_mul_inv] | |
| 158 | - have hnum : |etaCoordinate (nativeGraph h n w-center)+r0| ≤ 2*r0 := by | |
| 159 | - have ht := abs_add_le (etaCoordinate (nativeGraph h n w-center)) r0 | |
| 160 | - rw [abs_of_nonneg hr0] at ht | |
| 161 | - linarith | |
| 162 | - calc | |
| 163 | - _ ≤ (2*r0)*(ChartScales.Tg*ChartScales.S n) := | |
| 164 | - mul_le_mul hnum (ChartScales.timeCoefficient_inv_upper h hh hn) | |
| 165 | - (inv_nonneg.mpr (ChartScales.timeCoefficient_pos h n).le) (by positivity) | |
| 166 | - _ ≤ _ := by dsimp [V]; nlinarith [ChartScales.S_pos (show 1 ≤ n by omega)] | |
| 167 | - exact hbound n hn w hw ht amp | |
| 168 | - (liftedPhase (PolarCharts.chart a chart) h n center r0 p pz x0 F G ∘ physicalLift h n) j | |
| 169 | - hamp (SharpPhysicalPhase.physicalPhase_smooth hκ h n center r0 p pz x0 hF hG) hj hab | |
| 170 | - (hphase _ hκ n hn center r0 p pz x0 hp hpz hx0 F G hF hG w hκb hv hFb hGb) | |
| 171 | - | |
| 172 | -end NavierStokes.SharpPhysicalCarrier | |
+0 −197 NavierStokes/SharpPhysicalCopyBounds.lean deleted
| @@ -1,197 +0,0 @@ | ||
| 1 | -import NavierStokes.LocalPhysicalCopyBounds | |
| 2 | -import NavierStokes.SharpPhysicalLoss | |
| 3 | - | |
| 4 | -noncomputable section | |
| 5 | -namespace NavierStokes.SharpPhysicalCopyBounds | |
| 6 | -open Set Function Filter ProblemStatement PhysicalWaveSum PhysicalCopyBounds LocalPhysicalCopyBounds | |
| 7 | -open SharpPhysicalPhase SharpPhysicalCarrier | |
| 8 | -open scoped Topology ContDiff BigOperators | |
| 9 | - | |
| 10 | -theorem common_carrier_log_bound {h a b Z r0 P B eBase : ℝ} | |
| 11 | - (hh : 0 ≤ h) (_hh1 : h ≤ 1 / 2) (ha : 0 < a) | |
| 12 | - (_hZ : 0 ≤ Z) (hr0 : 0 ≤ r0) (hP : 1 ≤ P) (hB : 1 ≤ B) (heBase : 0 ≤ eBase) | |
| 13 | - (Δ m : ℕ) (g eAmp A H : ℝ) (hA : 0 ≤ A) (hH : 0 ≤ H) : | |
| 14 | - ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, ∀ n : ℕ, 4 ≤ n → ∀ d : ℕ, d ≤ Δ → | |
| 15 | - ∀ w : SpaceTime, PhysicalGraphBounds.scaledRadial n w ∈ PhysicalGraphBounds.annulus a b → | |
| 16 | - |w.1| ≤ 1 → ‖PhysicalGraphBounds.liftZT (PhysicalGraphBounds.physicalLift h n w)‖ ≤ Z → | |
| 17 | - ∀ q : ℝ, 0 < q → q / 2 ≤ ChartScales.Q n → ChartScales.Q n ≤ 2 * q → | |
| 18 | - ∀ (c : CarrierData) (amp : LiftPoint → ℂ) (j : ℤ), | |
| 19 | - |c.angular| ≤ P → |c.axial| ≤ P → |c.radial| ≤ P → | |
| 20 | - |PhysicalGraphBounds.etaCoordinate (PhysicalGraphBounds.nativeGraph h n w - c.center)| ≤ r0 → | |
| 21 | - ContDiff ℝ ∞ amp → ContDiff ℝ ∞ c.F → ContDiff ℝ ∞ c.G → |(j : ℝ)| ≤ H → | |
| 22 | - (∀ i ≤ m, ‖iteratedFDeriv ℝ i amp (commonLift h n d w)‖ ≤ | |
| 23 | - A * ChartScales.Q n ^ g * ChartScales.S n ^ eAmp) → | |
| 24 | - (∀ i ≤ m, ‖iteratedFDeriv ℝ i c.F | |
| 25 | - (PhysicalGraphBounds.slotMap (PolarCharts.chart a c.chart) | |
| 26 | - (ChartScales.timeCoefficient h n) c.center r0 (PhysicalGraphBounds.physicalLift h n w)).1‖ ≤ | |
| 27 | - B * ChartScales.S n ^ eBase) → | |
| 28 | - (∀ i ≤ m, ‖iteratedFDeriv ℝ i c.G | |
| 29 | - (PhysicalGraphBounds.slotMap (PolarCharts.chart a c.chart) | |
| 30 | - (ChartScales.timeCoefficient h n) c.center r0 (PhysicalGraphBounds.physicalLift h n w)).1‖ ≤ | |
| 31 | - B * ChartScales.S n ^ eBase) → | |
| 32 | - ‖iteratedFDeriv ℝ m (commonWave a h n d r0 c amp j) w‖ ≤ | |
| 33 | - C * q ^ (g - (m:ℝ)*derivativeCost h) * (1+|Real.log q|)^N := by | |
| 34 | - have hK : 0 ≤ coverBound Δ := zero_le_one.trans (coverBound_ge_one Δ) | |
| 35 | - obtain ⟨C,hC,hb⟩ := SharpPhysicalCarrier.native_carrier_bound (b := b) hh ha hr0 hP hB heBase | |
| 36 | - m g eAmp (A*coverBound Δ^m) H (by positivity) hH | |
| 37 | - obtain ⟨D,hD,N,hweight⟩ := SharpLogWeights.chart_weight_bound | |
| 38 | - (g-(m:ℝ)*derivativeCost h) (eAmp+(eBase+1)*(m:ℝ)) | |
| 39 | - refine ⟨C*D,mul_nonneg hC hD.le,N,?_⟩ | |
| 40 | - intro n hn d hd w hw ht hz q hq hlo hhi c amp j hp hpz hx0 hslot hamp hF hG hj hab hFb hGb | |
| 41 | - have hQ := ChartScales.Q_pos n | |
| 42 | - have hS := ChartScales.S_pos (show 1 ≤ n by omega) | |
| 43 | - have ha : ∀ i ≤ m, ‖iteratedFDeriv ℝ i (amp ∘ downLift d) (PhysicalGraphBounds.physicalLift h n w)‖ ≤ | |
| 44 | - (A*coverBound Δ^m)*ChartScales.Q n^g*ChartScales.S n^eAmp := by | |
| 45 | - intro i hi | |
| 46 | - exact (downLift_jet_bound hamp hd (PhysicalGraphBounds.physicalLift h n w) | |
| 47 | - (B := A*ChartScales.Q n^g*ChartScales.S n^eAmp) (by positivity) hab i hi).trans_eq (by ring) | |
| 48 | - have hF' : ∀ i ≤ m, ‖iteratedFDeriv ℝ i c.F (slowMap (PolarCharts.chart a c.chart) h n w)‖ ≤ | |
| 49 | - B*ChartScales.S n^eBase := by | |
| 50 | - intro i hi | |
| 51 | - rw [slowMap_eq_slot _ _ _ c.center r0] | |
| 52 | - exact hFb i hi | |
| 53 | - have hG' : ∀ i ≤ m, ‖iteratedFDeriv ℝ i c.G (slowMap (PolarCharts.chart a c.chart) h n w)‖ ≤ | |
| 54 | - B*ChartScales.S n^eBase := by | |
| 55 | - intro i hi | |
| 56 | - rw [slowMap_eq_slot _ _ _ c.center r0] | |
| 57 | - exact hGb i hi | |
| 58 | - have he := hb n hn w hw ht c.chart c.center c.angular c.axial c.radial hp hpz hx0 hslot | |
| 59 | - (amp ∘ downLift d) c.F c.G j (hamp.comp (downLift d).contDiff) hF hG hj ha hF' hG' | |
| 60 | - apply he.trans | |
| 61 | - calc | |
| 62 | - _ = C*(ChartScales.Q n^(g-(m:ℝ)*derivativeCost h)*ChartScales.S n^(eAmp+(eBase+1)*(m:ℝ))) := by ring | |
| 63 | - _ ≤ C*(D*q^(g-(m:ℝ)*derivativeCost h)*(1+|Real.log q|)^N) := | |
| 64 | - mul_le_mul_of_nonneg_left (hweight n (by omega) q hq hlo hhi) hC | |
| 65 | - _ = _ := by ring | |
| 66 | - | |
| 67 | -theorem common_carrier_log_bound_local {h a b Z r0 P B eBase : ℝ} | |
| 68 | - (hh : 0 ≤ h) (hh1 : h ≤ 1 / 2) (ha : 0 < a) | |
| 69 | - (hZ : 0 ≤ Z) (hr0 : 0 ≤ r0) (hP : 1 ≤ P) (hB : 1 ≤ B) (heBase : 0 ≤ eBase) | |
| 70 | - (Δ m : ℕ) (g eAmp A H : ℝ) (hA : 0 ≤ A) (hH : 0 ≤ H) : | |
| 71 | - ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, ∀ n : ℕ, 4 ≤ n → ∀ d : ℕ, d ≤ Δ → | |
| 72 | - ∀ w : SpaceTime, PhysicalGraphBounds.scaledRadial n w ∈ PhysicalGraphBounds.annulus a b → | |
| 73 | - |w.1| ≤ 1 → ‖PhysicalGraphBounds.liftZT (PhysicalGraphBounds.physicalLift h n w)‖ ≤ Z → | |
| 74 | - ∀ q : ℝ, 0 < q → q / 2 ≤ ChartScales.Q n → ChartScales.Q n ≤ 2 * q → | |
| 75 | - ∀ (c : CarrierData) (amp : LiftPoint → ℂ) (j : ℤ), | |
| 76 | - |c.angular| ≤ P → |c.axial| ≤ P → |c.radial| ≤ P → | |
| 77 | - |PhysicalGraphBounds.etaCoordinate (PhysicalGraphBounds.nativeGraph h n w - c.center)| ≤ r0 → | |
| 78 | - SmoothNear amp (commonLift h n d w) → SmoothNear c.F (slotSlow c a h n r0 w) → | |
| 79 | - SmoothNear c.G (slotSlow c a h n r0 w) → |(j : ℝ)| ≤ H → | |
| 80 | - (∀ i ≤ m, ‖iteratedFDeriv ℝ i amp (commonLift h n d w)‖ ≤ | |
| 81 | - A * ChartScales.Q n ^ g * ChartScales.S n ^ eAmp) → | |
| 82 | - (∀ i ≤ m, ‖iteratedFDeriv ℝ i c.F (slotSlow c a h n r0 w)‖ ≤ | |
| 83 | - B * ChartScales.S n ^ eBase) → | |
| 84 | - (∀ i ≤ m, ‖iteratedFDeriv ℝ i c.G (slotSlow c a h n r0 w)‖ ≤ | |
| 85 | - B * ChartScales.S n ^ eBase) → | |
| 86 | - ‖iteratedFDeriv ℝ m (commonWave a h n d r0 c amp j) w‖ ≤ | |
| 87 | - C * q ^ (g - (m:ℝ)*derivativeCost h) * (1+|Real.log q|)^N := by | |
| 88 | - obtain ⟨C, hC, N, hb⟩ := common_carrier_log_bound (b := b) | |
| 89 | - hh hh1 ha hZ hr0 hP hB heBase Δ m g eAmp A H hA hH | |
| 90 | - refine ⟨C, hC, N, ?_⟩ | |
| 91 | - intro n hn d hd w hann ht hz q hq hlo hhi c amp j hp hpz hpx hslot haNear hFNear hGNear hj hab hFb hGb | |
| 92 | - obtain ⟨amp', ha', hea⟩ := haNear.exists_global_germ | |
| 93 | - obtain ⟨F, hF', heF⟩ := hFNear.exists_global_germ | |
| 94 | - obtain ⟨G, hG', heG⟩ := hGNear.exists_global_germ | |
| 95 | - have haxis := PhysicalGraphBounds.scaledRadial_ne_zero (PhysicalGraphBounds.annulus_axisFree ha hann) | |
| 96 | - rw [iteratedFDeriv_eq_of_eventuallyEq (commonWave_germ ha h n d r0 c j haxis hea heF heG) m] | |
| 97 | - apply hb n hn d hd w hann ht hz q hq hlo hhi (replaceProfiles c F G) amp' j | |
| 98 | - hp hpz hpx hslot ha' hF' hG' hj | |
| 99 | - · intro i hi | |
| 100 | - rw [← iteratedFDeriv_eq_of_eventuallyEq hea i] | |
| 101 | - exact hab i hi | |
| 102 | - · intro i hi | |
| 103 | - change ‖iteratedFDeriv ℝ i F (slotSlow c a h n r0 w)‖ ≤ _ | |
| 104 | - rw [← iteratedFDeriv_eq_of_eventuallyEq heF i] | |
| 105 | - exact hFb i hi | |
| 106 | - · intro i hi | |
| 107 | - change ‖iteratedFDeriv ℝ i G (slotSlow c a h n r0 w)‖ ≤ _ | |
| 108 | - rw [← iteratedFDeriv_eq_of_eventuallyEq heG i] | |
| 109 | - exact hGb i hi | |
| 110 | - | |
| 111 | -theorem physical_sum_log_bound {K : Type*} {h a b Z r0 P B eBase : ℝ} | |
| 112 | - (hh : 0 < h) (hh1 : h < 1 / 2) (ha : 0 < a) | |
| 113 | - (hZ : 0 ≤ Z) (hr0 : 0 ≤ r0) (hP : 1 ≤ P) (hB : 1 ≤ B) (heBase : 0 ≤ eBase) | |
| 114 | - (H Δ m : ℕ) (g eAmp A : ℝ) (hA : 0 ≤ A) : | |
| 115 | - ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, ∀ f : CopyFamily H K, | |
| 116 | - SupportData f a b h r0 Z Δ → SmoothData f a h r0 → ∀ hc : SupportCells f, | |
| 117 | - JetData f hc a b h r0 P A B g eAmp eBase m → | |
| 118 | - ∀ w : SpaceTime, w ∈ preterminal → |w.1| ≤ 1 → | |
| 119 | - ‖iteratedFDeriv ℝ m (f.sum a h r0) w‖ ≤ | |
| 120 | - C * physicalQ h w ^ (g - (m:ℝ)*derivativeCost h) * (1+|Real.log (physicalQ h w)|)^N := by | |
| 121 | - obtain ⟨C, hC, N, hpoint⟩ := common_carrier_log_bound_local (b := b) hh.le hh1.le ha | |
| 122 | - hZ hr0 hP hB heBase Δ m g eAmp A (H : ℝ) hA (Nat.cast_nonneg H) | |
| 123 | - refine ⟨((2250 * (2 * H + 1) : ℕ) : ℝ) * C, mul_nonneg (Nat.cast_nonneg _) hC, N, ?_⟩ | |
| 124 | - intro f hr hs hc hb w hw ht | |
| 125 | - have hq := physicalQ_pos hh hh1 hw | |
| 126 | - have hcopy : ∀ (I : WaveIndex H), | |
| 127 | - physicalParams h w ∈ labelRegion (CoordinateAlgebra.D h) I.1.val → ∀ k, | |
| 128 | - ‖iteratedFDeriv ℝ m (f.term a h r0 I k) w‖ ≤ | |
| 129 | - C * physicalQ h w ^ (g - (m:ℝ)*derivativeCost h) * (1+|Real.log (physicalQ h w)|)^N := by | |
| 130 | - intro I hregion k | |
| 131 | - by_cases hts : w ∈ tsupport (f.term a h r0 I k) | |
| 132 | - · have hgeo := hr.tsupport_geometry I k hts | |
| 133 | - have hcell := hc.term_tsupport_mem ha I k hgeo.1 hts | |
| 134 | - obtain ⟨mode, hmode⟩ := hr.angular_integer k I.1 | |
| 135 | - let chart := chooseChart a (PhysicalGraphBounds.scaledRadial I.1.val.1 w) | |
| 136 | - have hchart : PhysicalGraphBounds.scaledRadial I.1.val.1 w ∈ PolarCharts.chartDomain a chart := | |
| 137 | - chooseChart_valid ha hgeo.1 | |
| 138 | - have he := globalWave_eventually_common (r0 := r0) ha I.1.val.1 (f.gap I.1) | |
| 139 | - (f.carrier k I.1) (f.amplitude k I) I.2.val mode hmode | |
| 140 | - (fun y hy => (hr.geometry_support k I y hy).1) chart hchart | |
| 141 | - change ‖iteratedFDeriv ℝ m (globalWave a h I.1.val.1 (f.gap I.1) r0 | |
| 142 | - (f.carrier k I.1) (f.amplitude k I) I.2.val) w‖ ≤ _ | |
| 143 | - rw [iteratedFDeriv_eq_of_eventuallyEq he m] | |
| 144 | - have hband := labelRegion_active_relation hregion | |
| 145 | - have hp := hs.profiles k I w hw hts chart hchart | |
| 146 | - have hjets := hb.jets k I w hw hregion hgeo.1 hcell hts | |
| 147 | - exact hpoint I.1.val.1 I.1.property (f.gap I.1) (hr.gap_le I.1) | |
| 148 | - w hgeo.1 ht hgeo.2.1 (physicalQ h w) hq hband.1 hband.2 | |
| 149 | - ((f.carrier k I.1).withChart chart) (f.amplitude k I) I.2.val | |
| 150 | - (hb.parameters k I.1).1 (hb.parameters k I.1).2.1 (hb.parameters k I.1).2.2 hgeo.2.2 | |
| 151 | - (hs.amplitude k I w hw hts) hp.1 hp.2 (harmonic_bound I.2) | |
| 152 | - hjets.1 (hjets.2 chart hchart).1 (hjets.2 chart hchart).2 | |
| 153 | - · rw [jet_zero_off_tsupport _ _ hts, norm_zero] | |
| 154 | - positivity | |
| 155 | - have hsum := masked_finsum_jet_bound hh hh1 (f.periodized a h r0) | |
| 156 | - (hr.periodized_smoothAt hs hc ha) hr.periodized_support hw m | |
| 157 | - (B := C * physicalQ h w ^ (g - (m:ℝ)*derivativeCost h) * (1+|Real.log (physicalQ h w)|)^N) (by positivity) | |
| 158 | - refine (hsum ?_).trans_eq (by ring) | |
| 159 | - intro I hregion | |
| 160 | - rcases hr.periodized_germ_cover hc ha I w with ⟨k, _, hg⟩ | hg | |
| 161 | - · rw [iteratedFDeriv_eq_of_eventuallyEq hg m] | |
| 162 | - exact hcopy I hregion k | |
| 163 | - · rw [iteratedFDeriv_eq_of_eventuallyEq hg m] | |
| 164 | - simp only [iteratedFDeriv_fun_zero, Pi.zero_apply, norm_zero] | |
| 165 | - positivity | |
| 166 | - | |
| 167 | - | |
| 168 | - | |
| 169 | -section WeightedInputs | |
| 170 | -open WeightedClasses | |
| 171 | -variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] {ι K : Type*} | |
| 172 | - {h a b r0 Z : ℝ} {H Δ : ℕ} {f : CopyFamily H K} | |
| 173 | - | |
| 174 | -theorem physical_sum_log_bound_of_weighted {s : StripData D} {α σ P : ℝ} | |
| 175 | - {w : ι → ℕ → D → ℝ} {source : ι → ℕ → D → ℂ} | |
| 176 | - (hsource : LocalSourceBounds s h α w source) {hc : SupportCells f} | |
| 177 | - (hchart : CommonChart f hc a b h r0 σ source) | |
| 178 | - (hmap : ∀ k I, MapsTo (hchart.map k I) (hchart.domain k I) s.domain) | |
| 179 | - (hb : PhysicalCopyBounds.CarrierBounds f hc a b h r0) | |
| 180 | - (hr : SupportData f a b h r0 Z Δ) (hs : SmoothData f a h r0) | |
| 181 | - (hh : 0 < h) (hh1 : h < 1 / 2) (ha : 0 < a) (hZ : 0 ≤ Z) (hr0 : 0 ≤ r0) | |
| 182 | - (hP : 1 ≤ P) (hp : ∀ k L, |(f.carrier k L).angular| ≤ P ∧ | |
| 183 | - |(f.carrier k L).axial| ≤ P ∧ |(f.carrier k L).radial| ≤ P) (m : ℕ) : | |
| 184 | - ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, ∀ z : SpaceTime, | |
| 185 | - z ∈ preterminal → |z.1| ≤ 1 → | |
| 186 | - ‖iteratedFDeriv ℝ m (f.sum a h r0) z‖ ≤ | |
| 187 | - C * physicalQ h z ^ (h * α + σ - (m:ℝ)*derivativeCost h) * (1+|Real.log (physicalQ h z)|)^N := by | |
| 188 | - obtain ⟨A, hA, B, hB, p, q, hclass⟩ := localStrippedClass_of_weighted hsource hchart hmap hb hs hp m | |
| 189 | - obtain ⟨C, hC, N, hbound⟩ := physical_sum_log_bound (K := K) | |
| 190 | - (b := b) hh hh1 ha hZ hr0 hP hB (Nat.cast_nonneg q) H Δ m | |
| 191 | - (h * α + σ) p A hA | |
| 192 | - refine ⟨C, hC, N, ?_⟩ | |
| 193 | - intro z hz ht | |
| 194 | - exact hbound f hr hs hc hclass z hz ht | |
| 195 | - | |
| 196 | -end WeightedInputs | |
| 197 | -end NavierStokes.SharpPhysicalCopyBounds | |
+243 −1 NavierStokes/SharpPhysicalLoss.lean View file
| @@ -1,4 +1,246 @@ | ||
| 1 | -import NavierStokes.SharpLogWeights | |
| 1 | +import NavierStokes.SharpPhysicalPhase | |
| 2 | + | |
| 3 | +/-! ## From `NavierStokes/SharpPhysicalCarrier.lean` | |
| 4 | + | |
| 5 | +The text of `NavierStokes/SharpPhysicalCarrier.lean`, folded into this file, which was its only importer. -/ | |
| 6 | + | |
| 7 | +section | |
| 8 | + | |
| 9 | +noncomputable section | |
| 10 | +namespace NavierStokes.SharpPhysicalCarrier | |
| 11 | +open Set Function | |
| 12 | +open ProblemStatement PhysicalGraphBounds SharpPhaseJetAlgebra SharpPhysicalPhase | |
| 13 | +open scoped ContDiff | |
| 14 | + | |
| 15 | +private theorem nat_le_infty (k : ℕ) : (k : WithTop ℕ∞) ≤ ∞ := | |
| 16 | + WithTop.coe_le_coe.mpr le_top | |
| 17 | + | |
| 18 | +/-- The manuscript's common Cartesian derivative cost for an oscillatory factor. -/ | |
| 19 | +def derivativeCost (h : ℝ) : ℝ := 1 + 3*h/2 | |
| 20 | + | |
| 21 | +/-- The printed physical loss includes one derivative for potential recovery. -/ | |
| 22 | +def physicalLoss (h : ℝ) (m : ℕ) : ℝ := | |
| 23 | + 2*CoordinateAlgebra.A h + ((m:ℝ)+1)*derivativeCost h | |
| 24 | + | |
| 25 | +/-- A real physical phase with sharp positive jets gives the exact linear | |
| 26 | +carrier loss. Slow powers remain explicit, and are not absorbed into `Q`. -/ | |
| 27 | +theorem carrier_geometric_bound {h a b : ℝ} (hh : 0 ≤ h) (ha : 0 < a) | |
| 28 | + (m : ℕ) (g d e A B H : ℝ) (hA : 0 ≤ A) (hB : 1 ≤ B) | |
| 29 | + (he : 0 ≤ e) (hH : 0 ≤ H) : | |
| 30 | + ∃ C : ℝ, 0 ≤ C ∧ ∀ n : ℕ, 4 ≤ n → ∀ w : SpaceTime, | |
| 31 | + scaledRadial n w ∈ annulus a b → |w.1| ≤ 1 → | |
| 32 | + ∀ (amp : LiftPoint → ℂ) (Φ : SpaceTime → ℝ) (j : ℤ), | |
| 33 | + ContDiff ℝ ∞ amp → ContDiff ℝ ∞ Φ → |(j:ℝ)| ≤ H → | |
| 34 | + (∀ i ≤ m, ‖iteratedFDeriv ℝ i amp (physicalLift h n w)‖ ≤ | |
| 35 | + A * ChartScales.Q n ^ g * ChartScales.S n ^ d) → | |
| 36 | + (∀ i, 1 ≤ i → i ≤ m → ‖iteratedFDeriv ℝ i Φ w‖ ≤ | |
| 37 | + (B * ChartScales.S n ^ e * ChartScales.Q n ^ (-(1+h))) ^ i) → | |
| 38 | + ‖iteratedFDeriv ℝ m (fun z => amp (physicalLift h n z) * | |
| 39 | + character ((ChartScales.carrier h n:ℝ)*(j:ℝ)) (Φ z)) w‖ ≤ | |
| 40 | + C * ChartScales.Q n ^ (g-(m:ℝ)*derivativeCost h) * | |
| 41 | + ChartScales.S n ^ (d+e*(m:ℝ)) := by | |
| 42 | + obtain ⟨K, hK, hgraph⟩ := SharpGraphBounds.physicalLift_positive_jet_bound (b := b) hh ha m | |
| 43 | + let C := (2:ℝ)^m*(m.factorial:ℝ)^2*A*(1+2*H)^m*(K+B)^m | |
| 44 | + have hK0 : 0 ≤ K := by linarith | |
| 45 | + have hB0 : 0 ≤ B := by linarith | |
| 46 | + refine ⟨C, by dsimp [C]; positivity, ?_⟩ | |
| 47 | + intro n hn w hw ht amp Φ j hamp hΦ hj hab hph | |
| 48 | + have hQ := ChartScales.Q_pos n | |
| 49 | + have hS := ChartScales.S_pos (show 1 ≤ n by omega) | |
| 50 | + have hS1 := S_ge_one (show 1 ≤ n by omega) | |
| 51 | + have hSe : 1 ≤ ChartScales.S n ^ e := Real.one_le_rpow hS1 he | |
| 52 | + let U := (K+B)*ChartScales.S n^e*ChartScales.Q n^(-(1+h)) | |
| 53 | + have hU : 0 ≤ U := by dsimp [U]; positivity | |
| 54 | + have hscale : 1 ≤ ChartScales.Q n ^ (-h/2) := by | |
| 55 | + have hb := Real.rpow_le_rpow_of_exponent_ge hQ (ChartScales.Q_le_one n) (show -h/2 ≤ 0 by linarith) | |
| 56 | + simpa only [Real.rpow_zero] using hb | |
| 57 | + let M := (1+2*H)*ChartScales.Q n^(-h/2) | |
| 58 | + have hM : 1 ≤ M := one_le_mul_of_one_le_of_one_le (by linarith) hscale | |
| 59 | + have hM0 : 0 ≤ M := by linarith | |
| 60 | + have hc : |(ChartScales.carrier h n:ℝ)*(j:ℝ)| ≤ M := by | |
| 61 | + rw [abs_mul, abs_of_nonneg (Nat.cast_nonneg _)] | |
| 62 | + calc | |
| 63 | + _ ≤ (2*ChartScales.Q n^(-h/2))*H := | |
| 64 | + mul_le_mul (carrier_upper hh n) hj (abs_nonneg _) (by positivity) | |
| 65 | + _ ≤ M := by dsimp [M]; nlinarith [Real.rpow_nonneg hQ.le (-h/2)] | |
| 66 | + let W : Set SpaceTime := {z | radialProjection z ≠ 0} | |
| 67 | + have hW : IsOpen W := axisFree_open.preimage radialProjection.continuous | |
| 68 | + have hwW : w ∈ W := scaledRadial_ne_zero (annulus_axisFree ha hw) | |
| 69 | + have hgraphU : ∀ i, 1 ≤ i → i ≤ m → ‖iteratedFDeriv ℝ i (physicalLift h n) w‖ ≤ U^i := by | |
| 70 | + intro i hi him | |
| 71 | + apply (hgraph n hn w hw ht i hi him).trans | |
| 72 | + have hqpow : ChartScales.Q n^(-(i:ℝ)*(1+h)) = (ChartScales.Q n^(-(1+h)))^i := by | |
| 73 | + rw [← Real.rpow_mul_natCast hQ.le] | |
| 74 | + congr 1 | |
| 75 | + ring | |
| 76 | + rw [hqpow] | |
| 77 | + calc | |
| 78 | + _ ≤ K^i*(ChartScales.Q n^(-(1+h)))^i := | |
| 79 | + mul_le_mul_of_nonneg_right (by simpa only [pow_one] using pow_le_pow_right₀ hK hi) (by positivity) | |
| 80 | + _ = (K*ChartScales.Q n^(-(1+h)))^i := (mul_pow _ _ _).symm | |
| 81 | + _ ≤ U^i := by | |
| 82 | + apply pow_le_pow_left₀ (by positivity) | |
| 83 | + dsimp [U] | |
| 84 | + apply mul_le_mul_of_nonneg_right _ (Real.rpow_nonneg hQ.le _) | |
| 85 | + exact (show K ≤ K+B by linarith).trans (le_mul_of_one_le_right (by linarith) hSe) | |
| 86 | + have hphaseU : ∀ i, 1 ≤ i → i ≤ m → ‖iteratedFDeriv ℝ i Φ w‖ ≤ U^i := by | |
| 87 | + intro i hi him | |
| 88 | + apply (hph i hi him).trans | |
| 89 | + apply pow_le_pow_left₀ (by positivity) | |
| 90 | + dsimp [U] | |
| 91 | + gcongr | |
| 92 | + linarith | |
| 93 | + have hampj := composition_geometric_on hW (physicalLift_smooth h n) hamp hwW m | |
| 94 | + (show 0 ≤ A*ChartScales.Q n^g*ChartScales.S n^d by positivity) hU hab hgraphU | |
| 95 | + have hcharj := composition_geometric hΦ (character_smooth ((ChartScales.carrier h n:ℝ)*(j:ℝ))) | |
| 96 | + w m (pow_nonneg hM0 m) hU | |
| 97 | + (fun i hi => by | |
| 98 | + rw [norm_character_jet] | |
| 99 | + exact (pow_le_pow_left₀ (abs_nonneg _) hc i).trans (pow_le_pow_right₀ hM hi)) hphaseU | |
| 100 | + have hampW : ContDiffOn ℝ ∞ (amp ∘ physicalLift h n) W := | |
| 101 | + hamp.contDiffOn.comp (physicalLift_smooth h n) (mapsTo_univ _ _) | |
| 102 | + have hprod := product_geometric_on hW hampW | |
| 103 | + ((character_smooth _).comp hΦ).contDiffOn hwW m | |
| 104 | + (show 0 ≤ (m.factorial:ℝ)*(A*ChartScales.Q n^g*ChartScales.S n^d) by positivity) | |
| 105 | + (show 0 ≤ (m.factorial:ℝ)*M^m by positivity) hU hampj hcharj | |
| 106 | + apply hprod.trans_eq | |
| 107 | + have hqpow : ChartScales.Q n^g * (ChartScales.Q n^(-h/2))^m * | |
| 108 | + (ChartScales.Q n^(-(1+h)))^m = ChartScales.Q n^(g-(m:ℝ)*derivativeCost h) := by | |
| 109 | + rw [← Real.rpow_mul_natCast hQ.le, ← Real.rpow_mul_natCast hQ.le, | |
| 110 | + ← Real.rpow_add hQ, ← Real.rpow_add hQ] | |
| 111 | + congr 1 | |
| 112 | + unfold derivativeCost | |
| 113 | + ring | |
| 114 | + have hspow : ChartScales.S n^d * (ChartScales.S n^e)^m = ChartScales.S n^(d+e*(m:ℝ)) := by | |
| 115 | + rw [← Real.rpow_mul_natCast hS.le, ← Real.rpow_add hS] | |
| 116 | + dsimp [M, U, C] | |
| 117 | + rw [mul_pow, mul_pow, mul_pow] | |
| 118 | + calc | |
| 119 | + _ = (2:ℝ)^m*(m.factorial:ℝ)^2*A*(1+2*H)^m*(K+B)^m * | |
| 120 | + (ChartScales.Q n^g*(ChartScales.Q n^(-h/2))^m*(ChartScales.Q n^(-(1+h)))^m) * | |
| 121 | + (ChartScales.S n^d*(ChartScales.S n^e)^m) := by ring | |
| 122 | + _ = _ := by rw [hqpow,hspow] | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | +/-- The exact native carrier, with genuine base-profile hypotheses and all | |
| 127 | +polar branches covered, has the printed cost per Cartesian derivative. -/ | |
| 128 | +theorem native_carrier_bound {h a b r0 P B dBase : ℝ} | |
| 129 | + (hh : 0 ≤ h) (ha : 0 < a) (hr0 : 0 ≤ r0) (hP : 1 ≤ P) (hB : 1 ≤ B) | |
| 130 | + (hdBase : 0 ≤ dBase) (m : ℕ) (g dAmp A H : ℝ) (hA : 0 ≤ A) (hH : 0 ≤ H) : | |
| 131 | + ∃ C : ℝ, 0 ≤ C ∧ ∀ n : ℕ, 4 ≤ n → ∀ w : SpaceTime, | |
| 132 | + scaledRadial n w ∈ annulus a b → |w.1| ≤ 1 → | |
| 133 | + ∀ (chart : PolarCharts.Index) (center : Plane) (p pz x0 : ℝ), | |
| 134 | + |p| ≤ P → |pz| ≤ P → |x0| ≤ P → | |
| 135 | + |etaCoordinate (nativeGraph h n w - center)| ≤ r0 → | |
| 136 | + ∀ (amp : LiftPoint → ℂ) (F G : Slow → ℝ) (j : ℤ), | |
| 137 | + ContDiff ℝ ∞ amp → ContDiff ℝ ∞ F → ContDiff ℝ ∞ G → |(j:ℝ)| ≤ H → | |
| 138 | + (∀ i ≤ m, ‖iteratedFDeriv ℝ i amp (physicalLift h n w)‖ ≤ | |
| 139 | + A * ChartScales.Q n^g * ChartScales.S n^dAmp) → | |
| 140 | + (∀ i ≤ m, ‖iteratedFDeriv ℝ i F | |
| 141 | + (slowMap (PolarCharts.chart a chart) h n w)‖ ≤ B*ChartScales.S n^dBase) → | |
| 142 | + (∀ i ≤ m, ‖iteratedFDeriv ℝ i G | |
| 143 | + (slowMap (PolarCharts.chart a chart) h n w)‖ ≤ B*ChartScales.S n^dBase) → | |
| 144 | + ‖iteratedFDeriv ℝ m ((fun y => amp y * | |
| 145 | + character ((ChartScales.carrier h n:ℝ)*(j:ℝ)) | |
| 146 | + (liftedPhase (PolarCharts.chart a chart) h n center r0 p pz x0 F G y)) ∘ | |
| 147 | + physicalLift h n) w‖ ≤ | |
| 148 | + C*ChartScales.Q n^(g-(m:ℝ)*derivativeCost h)* | |
| 149 | + ChartScales.S n^(dAmp+(dBase+1)*(m:ℝ)) := by | |
| 150 | + obtain ⟨K, hK, hpolar⟩ := PolarCharts.chart_finiteJets_uniform ha b m | |
| 151 | + let V := 1+2*r0*ChartScales.Tg | |
| 152 | + have hV : 1 ≤ V := by dsimp [V]; nlinarith [ChartScales.Tg_pos] | |
| 153 | + obtain ⟨BP, hBP, hphase⟩ := SharpPhysicalPhase.physicalPhase_geometric_bound hh hK hV hP hB hdBase m | |
| 154 | + obtain ⟨C, hC, hbound⟩ := carrier_geometric_bound (b := b) hh ha m | |
| 155 | + g dAmp (dBase+1) A BP H hA hBP (by linarith) hH | |
| 156 | + refine ⟨C,hC,?_⟩ | |
| 157 | + intro n hn w hw ht chart center p pz x0 hp hpz hx0 hslot amp F G j hamp hF hG hj hab hFb hGb | |
| 158 | + have hκ := PolarCharts.chart_contDiff ha chart | |
| 159 | + have hκb : ∀ i ≤ m, ‖iteratedFDeriv ℝ i (PolarCharts.chart a chart) (scaledRadial n w)‖ ≤ K := | |
| 160 | + fun i hi => hpolar chart i hi _ hw.1 | |
| 161 | + have hv : |slotTime h n center r0 w| ≤ V*ChartScales.S n := by | |
| 162 | + unfold slotTime | |
| 163 | + rw [abs_div, abs_of_pos (ChartScales.timeCoefficient_pos h n), div_eq_mul_inv] | |
| 164 | + have hnum : |etaCoordinate (nativeGraph h n w-center)+r0| ≤ 2*r0 := by | |
| 165 | + have ht := abs_add_le (etaCoordinate (nativeGraph h n w-center)) r0 | |
| 166 | + rw [abs_of_nonneg hr0] at ht | |
| 167 | + linarith | |
| 168 | + calc | |
| 169 | + _ ≤ (2*r0)*(ChartScales.Tg*ChartScales.S n) := | |
| 170 | + mul_le_mul hnum (ChartScales.timeCoefficient_inv_upper h hh hn) | |
| 171 | + (inv_nonneg.mpr (ChartScales.timeCoefficient_pos h n).le) (by positivity) | |
| 172 | + _ ≤ _ := by dsimp [V]; nlinarith [ChartScales.S_pos (show 1 ≤ n by omega)] | |
| 173 | + exact hbound n hn w hw ht amp | |
| 174 | + (liftedPhase (PolarCharts.chart a chart) h n center r0 p pz x0 F G ∘ physicalLift h n) j | |
| 175 | + hamp (SharpPhysicalPhase.physicalPhase_smooth hκ h n center r0 p pz x0 hF hG) hj hab | |
| 176 | + (hphase _ hκ n hn center r0 p pz x0 hp hpz hx0 F G hF hG w hκb hv hFb hGb) | |
| 177 | + | |
| 178 | +end NavierStokes.SharpPhysicalCarrier | |
| 179 | +end | |
| 180 | + | |
| 181 | +end | |
| 182 | + | |
| 183 | +/-! ## From `NavierStokes/SharpLogWeights.lean` | |
| 184 | + | |
| 185 | +The text of `NavierStokes/SharpLogWeights.lean`, folded into this file, which was its only importer. -/ | |
| 186 | + | |
| 187 | +section | |
| 188 | + | |
| 189 | +noncomputable section | |
| 190 | +namespace NavierStokes.SharpLogWeights | |
| 191 | +open PhysicalGraphBounds | |
| 192 | + | |
| 193 | +/-- Dyadic slow powers become a polynomial in the physical logarithm, | |
| 194 | +without sacrificing any power of the physical scale. -/ | |
| 195 | +theorem slow_power_log_bound (e : ℝ) : | |
| 196 | + ∃ C : ℝ, 0 < C ∧ ∃ P : ℕ, ∀ n : ℕ, 1 ≤ n → ∀ q : ℝ, | |
| 197 | + 0 < q → q/2 ≤ ChartScales.Q n → | |
| 198 | + ChartScales.S n^e ≤ C*(1+|Real.log q|)^P := by | |
| 199 | + let D := (Real.log 2+1)/Real.log 2 | |
| 200 | + let P := ⌈2*e⌉₊ | |
| 201 | + have hlog : 0 < Real.log 2 := Real.log_pos (by norm_num) | |
| 202 | + have hD : 0 < D := by dsimp [D]; positivity | |
| 203 | + refine ⟨D^P, pow_pos hD P, P, ?_⟩ | |
| 204 | + intro n hn q hq hlo | |
| 205 | + have hn1 : (1:ℝ) ≤ n := by exact_mod_cast hn | |
| 206 | + have hlogQ : Real.log (ChartScales.Q n) = -(n:ℝ)*Real.log 2 := by | |
| 207 | + simp only [ChartScales.Q, SlotColoring.dyadicQ, Real.log_rpow (by norm_num : (0:ℝ)<2)] | |
| 208 | + have hl := Real.log_le_log (by positivity : 0 < q/2) hlo | |
| 209 | + rw [Real.log_div hq.ne' (by norm_num : (2:ℝ)≠0), hlogQ] at hl | |
| 210 | + have hnlog : (n:ℝ) ≤ D*(1+|Real.log q|) := by | |
| 211 | + dsimp [D] | |
| 212 | + rw [div_mul_eq_mul_div] | |
| 213 | + apply (le_div_iff₀ hlog).mpr | |
| 214 | + nlinarith [neg_le_abs (Real.log q), abs_nonneg (Real.log q)] | |
| 215 | + calc | |
| 216 | + ChartScales.S n^e = (n:ℝ)^(2*e) := by | |
| 217 | + unfold ChartScales.S | |
| 218 | + rw [← Real.rpow_natCast_mul (show 0 ≤ (n:ℝ) by positivity)] | |
| 219 | + norm_num | |
| 220 | + _ ≤ (n:ℝ)^(P:ℝ) := Real.rpow_le_rpow_of_exponent_le hn1 (Nat.le_ceil _) | |
| 221 | + _ = (n:ℝ)^P := Real.rpow_natCast _ _ | |
| 222 | + _ ≤ (D*(1+|Real.log q|))^P := pow_le_pow_left₀ (by positivity) hnlog P | |
| 223 | + _ = _ := mul_pow _ _ _ | |
| 224 | + | |
| 225 | +/-- Preserve the exact real exponent while comparing a dyadic chart with | |
| 226 | +its physical scale and converting the remaining slow factor to logarithms. -/ | |
| 227 | +theorem chart_weight_bound (g e : ℝ) : | |
| 228 | + ∃ C : ℝ, 0 < C ∧ ∃ P : ℕ, ∀ n : ℕ, 1 ≤ n → ∀ q : ℝ, | |
| 229 | + 0 < q → q/2 ≤ ChartScales.Q n → ChartScales.Q n ≤ 2*q → | |
| 230 | + ChartScales.Q n^g * ChartScales.S n^e ≤ C*q^g*(1+|Real.log q|)^P := by | |
| 231 | + obtain ⟨D,hD,P,hslow⟩ := slow_power_log_bound e | |
| 232 | + refine ⟨2^|g| * D, by positivity, P, ?_⟩ | |
| 233 | + intro n hn q hq hlo hhi | |
| 234 | + calc | |
| 235 | + _ ≤ (2^|g| * q^g)*(D*(1+|Real.log q|)^P) := | |
| 236 | + mul_le_mul (comparable_rpow (ChartScales.Q_pos n) hq hlo hhi g) | |
| 237 | + (hslow n hn q hq hlo) (Real.rpow_nonneg (sq_nonneg _) _) (by positivity) | |
| 238 | + _ = _ := by ring | |
| 239 | + | |
| 240 | +end NavierStokes.SharpLogWeights | |
| 241 | +end | |
| 242 | + | |
| 243 | +end | |
| 2 | 244 | |
| 3 | 245 | noncomputable section |
| 4 | 246 | namespace NavierStokes.SharpPhysicalLoss |
+159 −1 NavierStokes/SharpPhysicalPhase.lean View file
| @@ -1,6 +1,164 @@ | ||
| 1 | -import NavierStokes.SharpGraphBounds | |
| 1 | +import NavierStokes.PhysicalGraphBounds | |
| 2 | 2 | import NavierStokes.SharpPhaseJetAlgebra |
| 3 | 3 | |
| 4 | +/-! ## From `NavierStokes/SharpGraphBounds.lean` | |
| 5 | + | |
| 6 | +The text of `NavierStokes/SharpGraphBounds.lean`, folded into this file, which was its only importer. -/ | |
| 7 | + | |
| 8 | +section | |
| 9 | + | |
| 10 | +/-! | |
| 11 | +# Linear derivative loss for the physical graph | |
| 12 | + | |
| 13 | +The normalized radial coefficient costs only `Q^(-h κ)`, while a transverse | |
| 14 | +derivative costs `Q^(-1/2)`. Every positive order `k` of the actual physical | |
| 15 | +lift therefore costs at most `Q^(-k(1+h))`. Keeping the order in this bound | |
| 16 | +gives the manuscript's linear, rather than quadratic, graph restriction loss. | |
| 17 | +-/ | |
| 18 | + | |
| 19 | +noncomputable section | |
| 20 | + | |
| 21 | +namespace NavierStokes.SharpGraphBounds | |
| 22 | + | |
| 23 | +open Set Function | |
| 24 | +open ProblemStatement PhysicalGraphBounds | |
| 25 | +open scoped ContDiff Topology | |
| 26 | + | |
| 27 | +private theorem nat_le_infty (k : ℕ) : (k : WithTop ℕ∞) ≤ ∞ := | |
| 28 | + WithTop.coe_le_coe.mpr le_top | |
| 29 | + | |
| 30 | +theorem native_time_power_le {h : ℝ} (hh : 0 ≤ h) | |
| 31 | + {n : ℕ} (hn : 4 ≤ n) : | |
| 32 | + ChartScales.Tg ^ ChartScales.nativeIndex h n ≤ | |
| 33 | + ChartScales.Q n ^ (-(1 + h)) := by | |
| 34 | + calc | |
| 35 | + _ ≤ ChartScales.Q n ^ (-1 - h) / ChartScales.S n := | |
| 36 | + (ChartScales.native_power_bounds h hh hn).1 | |
| 37 | + _ ≤ ChartScales.Q n ^ (-1 - h) := div_le_self | |
| 38 | + (Real.rpow_nonneg (ChartScales.Q_pos n).le _) (S_ge_one (by omega)) | |
| 39 | + _ = _ := by congr 1; ring | |
| 40 | + | |
| 41 | +theorem native_radial_power_le {h : ℝ} (hh : 0 ≤ h) | |
| 42 | + {n : ℕ} (hn : 4 ≤ n) : | |
| 43 | + ChartScales.radialCoefficient h n ≤ ChartScales.Q n ^ (-h * ChartScales.kappa) := by | |
| 44 | + have hs : ChartScales.S n ^ (-ChartScales.rho) ≤ 1 := | |
| 45 | + Real.rpow_le_one_of_one_le_of_nonpos (S_ge_one (by omega)) | |
| 46 | + (neg_nonpos.mpr ChartScales.rho_pos.le) | |
| 47 | + calc | |
| 48 | + _ ≤ ChartScales.epsilon h n ^ (-ChartScales.kappa) * | |
| 49 | + ChartScales.S n ^ (-ChartScales.rho) := | |
| 50 | + (ChartScales.radialCoefficient_bounds h hh hn).2 | |
| 51 | + _ ≤ ChartScales.epsilon h n ^ (-ChartScales.kappa) := | |
| 52 | + mul_le_of_le_one_right (Real.rpow_nonneg (ChartScales.epsilon_pos h n).le _) hs | |
| 53 | + _ = _ := by | |
| 54 | + unfold ChartScales.epsilon | |
| 55 | + rw [← Real.rpow_mul (ChartScales.Q_pos n).le] | |
| 56 | + congr 1 | |
| 57 | + ring | |
| 58 | + | |
| 59 | +theorem nativeGraph_positive_jet_bound {h a b : ℝ} (hh : 0 ≤ h) (ha : 0 < a) | |
| 60 | + (m : ℕ) : ∃ C : ℝ, 1 ≤ C ∧ ∀ n : ℕ, 4 ≤ n → ∀ p : SpaceTime, | |
| 61 | + scaledRadial n p ∈ annulus a b → |p.1| ≤ 1 → ∀ k, 1 ≤ k → k ≤ m → | |
| 62 | + ‖iteratedFDeriv ℝ k (nativeGraph h n) p‖ ≤ | |
| 63 | + C * ChartScales.Q n ^ (-(k : ℝ) * (1 + h)) := by | |
| 64 | + obtain ⟨C, hC, hbound⟩ := compact_jet_bound axisFree_open | |
| 65 | + (contDiffOn_radialProfile (ChartScales.radialExponent h)) (isCompact_annulus a b) | |
| 66 | + (annulus_axisFree ha) m | |
| 67 | + refine ⟨C + ‖timeDirection‖, by linarith [norm_nonneg timeDirection], ?_⟩ | |
| 68 | + intro n hn p hp ht k hk hkm | |
| 69 | + have hq := ChartScales.Q_pos n | |
| 70 | + have hq1 := ChartScales.Q_le_one n | |
| 71 | + have hC0 : 0 ≤ C := by linarith | |
| 72 | + have hk' : (1 : ℝ) ≤ k := by exact_mod_cast hk | |
| 73 | + have haxis := annulus_axisFree ha hp | |
| 74 | + have hr : ContDiffAt ℝ k | |
| 75 | + (radialProfile (ChartScales.radialExponent h) ∘ scaledRadial n) p := | |
| 76 | + (((contDiffOn_radialProfile (ChartScales.radialExponent h)).contDiffAt | |
| 77 | + (axisFree_open.mem_nhds haxis)).comp p (scaledRadial n).contDiff.contDiffAt).of_le | |
| 78 | + (nat_le_infty k) | |
| 79 | + have he : nativeGraph h n = fun z => | |
| 80 | + ChartScales.radialCoefficient h n • | |
| 81 | + (radialProfile (ChartScales.radialExponent h) ∘ scaledRadial n) z + | |
| 82 | + ChartScales.Tg ^ ChartScales.nativeIndex h n • timeProfile z := by | |
| 83 | + funext z | |
| 84 | + exact nativeGraph_normalized h n z | |
| 85 | + rw [he, fun_iteratedFDeriv_add_apply (hr.const_smul _) | |
| 86 | + ((timeProfile.contDiff.contDiffAt (x := p)).const_smul _), | |
| 87 | + iteratedFDeriv_const_smul_apply' hr, | |
| 88 | + iteratedFDeriv_const_smul_apply' timeProfile.contDiff.contDiffAt] | |
| 89 | + apply (norm_add_le _ _).trans | |
| 90 | + have hrad : ‖ChartScales.radialCoefficient h n • | |
| 91 | + iteratedFDeriv ℝ k (radialProfile (ChartScales.radialExponent h) ∘ scaledRadial n) p‖ ≤ | |
| 92 | + C * ChartScales.Q n ^ (-(k : ℝ) * (1 + h)) := by | |
| 93 | + rw [norm_smul, Real.norm_of_nonneg (ChartScales.radialCoefficient_pos h n).le] | |
| 94 | + have hj := norm_jet_comp_linear axisFree_open | |
| 95 | + (contDiffOn_radialProfile (ChartScales.radialExponent h)) (scaledRadial n) haxis k | |
| 96 | + have hl := pow_le_pow_left₀ (norm_nonneg (scaledRadial n)) (norm_scaledRadial_le n) k | |
| 97 | + have hfull := mul_le_mul_of_nonneg_left | |
| 98 | + (hj.trans (mul_le_mul (hbound k hkm _ hp) hl (by positivity) hC0)) | |
| 99 | + (ChartScales.radialCoefficient_pos h n).le | |
| 100 | + have hprod := hfull.trans (mul_le_mul_of_nonneg_right | |
| 101 | + (native_radial_power_le hh hn) (by positivity)) | |
| 102 | + have hpow : ChartScales.Q n ^ (-h * ChartScales.kappa) * | |
| 103 | + (C * (ChartScales.Q n ^ (-(1 / 2 : ℝ))) ^ k) = | |
| 104 | + C * ChartScales.Q n ^ (-h * ChartScales.kappa - (k : ℝ) / 2) := by | |
| 105 | + rw [← Real.rpow_mul_natCast hq.le, mul_left_comm, ← Real.rpow_add hq] | |
| 106 | + congr 2 | |
| 107 | + ring | |
| 108 | + rw [hpow] at hprod | |
| 109 | + apply hprod.trans | |
| 110 | + apply mul_le_mul_of_nonneg_left _ hC0 | |
| 111 | + apply Real.rpow_le_rpow_of_exponent_ge hq hq1 | |
| 112 | + have hkh : h ≤ (k : ℝ) * h := by nlinarith | |
| 113 | + unfold ChartScales.kappa | |
| 114 | + nlinarith | |
| 115 | + have htime : ‖ChartScales.Tg ^ ChartScales.nativeIndex h n • | |
| 116 | + iteratedFDeriv ℝ k timeProfile p‖ ≤ | |
| 117 | + ‖timeDirection‖ * ChartScales.Q n ^ (-(k : ℝ) * (1 + h)) := by | |
| 118 | + rw [norm_smul, Real.norm_of_nonneg (pow_nonneg ChartScales.Tg_pos.le _)] | |
| 119 | + calc | |
| 120 | + _ ≤ ChartScales.Q n ^ (-(1 + h)) * ‖timeDirection‖ := | |
| 121 | + mul_le_mul (native_time_power_le hh hn) (timeProfile_jet_bound p ht k) | |
| 122 | + (norm_nonneg _) (Real.rpow_nonneg hq.le _) | |
| 123 | + _ ≤ ChartScales.Q n ^ (-(k : ℝ) * (1 + h)) * ‖timeDirection‖ := | |
| 124 | + mul_le_mul_of_nonneg_right (Real.rpow_le_rpow_of_exponent_ge hq hq1 (by | |
| 125 | + nlinarith)) (norm_nonneg _) | |
| 126 | + _ = _ := mul_comm _ _ | |
| 127 | + calc | |
| 128 | + _ ≤ C * ChartScales.Q n ^ (-(k : ℝ) * (1 + h)) + | |
| 129 | + ‖timeDirection‖ * ChartScales.Q n ^ (-(k : ℝ) * (1 + h)) := add_le_add hrad htime | |
| 130 | + _ = _ := by ring | |
| 131 | + | |
| 132 | +theorem physicalLift_positive_jet_bound {h a b : ℝ} (hh : 0 ≤ h) (ha : 0 < a) | |
| 133 | + (m : ℕ) : ∃ C : ℝ, 1 ≤ C ∧ ∀ n : ℕ, 4 ≤ n → ∀ p : SpaceTime, | |
| 134 | + scaledRadial n p ∈ annulus a b → |p.1| ≤ 1 → ∀ k, 1 ≤ k → k ≤ m → | |
| 135 | + ‖iteratedFDeriv ℝ k (physicalLift h n) p‖ ≤ | |
| 136 | + C * ChartScales.Q n ^ (-(k : ℝ) * (1 + h)) := by | |
| 137 | + obtain ⟨C, hC, hbound⟩ := nativeGraph_positive_jet_bound hh ha m | |
| 138 | + refine ⟨C, hC, ?_⟩ | |
| 139 | + intro n hn p hp ht k hk hkm | |
| 140 | + have haxis := scaledRadial_ne_zero (annulus_axisFree ha hp) | |
| 141 | + change ‖iteratedFDeriv ℝ k (fun z => (physicalChart h n z, nativeGraph h n z)) p‖ ≤ _ | |
| 142 | + rw [iteratedFDeriv_pair | |
| 143 | + ((physicalChart_smooth h n).contDiffAt.of_le (nat_le_infty k)) | |
| 144 | + ((contDiffAt_nativeGraph h n haxis).of_le (nat_le_infty k)), | |
| 145 | + ContinuousMultilinearMap.opNorm_prod] | |
| 146 | + apply max_le | |
| 147 | + · calc | |
| 148 | + _ ≤ ChartScales.Q n ^ (-1 : ℝ) := physicalChart_jet_bound hh n p hk | |
| 149 | + _ ≤ ChartScales.Q n ^ (-(k : ℝ) * (1 + h)) := | |
| 150 | + Real.rpow_le_rpow_of_exponent_ge (ChartScales.Q_pos n) (ChartScales.Q_le_one n) (by | |
| 151 | + have hk' : (1 : ℝ) ≤ k := by exact_mod_cast hk | |
| 152 | + nlinarith) | |
| 153 | + _ ≤ C * ChartScales.Q n ^ (-(k : ℝ) * (1 + h)) := | |
| 154 | + le_mul_of_one_le_left (Real.rpow_nonneg (ChartScales.Q_pos n).le _) hC | |
| 155 | + · exact hbound n hn p hp ht k hk hkm | |
| 156 | + | |
| 157 | +end NavierStokes.SharpGraphBounds | |
| 158 | +end | |
| 159 | + | |
| 160 | +end | |
| 161 | + | |
| 4 | 162 | noncomputable section |
| 5 | 163 | namespace NavierStokes.SharpPhysicalPhase |
| 6 | 164 | open Set Function |
+206 −1 NavierStokes/SharpWaveStageBounds.lean View file
| @@ -1,5 +1,210 @@ | ||
| 1 | 1 | import NavierStokes.PhysicalStageBounds |
| 2 | -import NavierStokes.SharpPhysicalCopyBounds | |
| 2 | +import NavierStokes.LocalPhysicalCopyBounds | |
| 3 | +import NavierStokes.SharpPhysicalLoss | |
| 4 | + | |
| 5 | +/-! ## From `NavierStokes/SharpPhysicalCopyBounds.lean` | |
| 6 | + | |
| 7 | +The text of `NavierStokes/SharpPhysicalCopyBounds.lean`, folded into this file, which was its only importer. -/ | |
| 8 | + | |
| 9 | +section | |
| 10 | + | |
| 11 | +noncomputable section | |
| 12 | +namespace NavierStokes.SharpPhysicalCopyBounds | |
| 13 | +open Set Function Filter ProblemStatement PhysicalWaveSum PhysicalCopyBounds LocalPhysicalCopyBounds | |
| 14 | +open SharpPhysicalPhase SharpPhysicalCarrier | |
| 15 | +open scoped Topology ContDiff BigOperators | |
| 16 | + | |
| 17 | +theorem common_carrier_log_bound {h a b Z r0 P B eBase : ℝ} | |
| 18 | + (hh : 0 ≤ h) (_hh1 : h ≤ 1 / 2) (ha : 0 < a) | |
| 19 | + (_hZ : 0 ≤ Z) (hr0 : 0 ≤ r0) (hP : 1 ≤ P) (hB : 1 ≤ B) (heBase : 0 ≤ eBase) | |
| 20 | + (Δ m : ℕ) (g eAmp A H : ℝ) (hA : 0 ≤ A) (hH : 0 ≤ H) : | |
| 21 | + ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, ∀ n : ℕ, 4 ≤ n → ∀ d : ℕ, d ≤ Δ → | |
| 22 | + ∀ w : SpaceTime, PhysicalGraphBounds.scaledRadial n w ∈ PhysicalGraphBounds.annulus a b → | |
| 23 | + |w.1| ≤ 1 → ‖PhysicalGraphBounds.liftZT (PhysicalGraphBounds.physicalLift h n w)‖ ≤ Z → | |
| 24 | + ∀ q : ℝ, 0 < q → q / 2 ≤ ChartScales.Q n → ChartScales.Q n ≤ 2 * q → | |
| 25 | + ∀ (c : CarrierData) (amp : LiftPoint → ℂ) (j : ℤ), | |
| 26 | + |c.angular| ≤ P → |c.axial| ≤ P → |c.radial| ≤ P → | |
| 27 | + |PhysicalGraphBounds.etaCoordinate (PhysicalGraphBounds.nativeGraph h n w - c.center)| ≤ r0 → | |
| 28 | + ContDiff ℝ ∞ amp → ContDiff ℝ ∞ c.F → ContDiff ℝ ∞ c.G → |(j : ℝ)| ≤ H → | |
| 29 | + (∀ i ≤ m, ‖iteratedFDeriv ℝ i amp (commonLift h n d w)‖ ≤ | |
| 30 | + A * ChartScales.Q n ^ g * ChartScales.S n ^ eAmp) → | |
| 31 | + (∀ i ≤ m, ‖iteratedFDeriv ℝ i c.F | |
| 32 | + (PhysicalGraphBounds.slotMap (PolarCharts.chart a c.chart) | |
| 33 | + (ChartScales.timeCoefficient h n) c.center r0 (PhysicalGraphBounds.physicalLift h n w)).1‖ ≤ | |
| 34 | + B * ChartScales.S n ^ eBase) → | |
| 35 | + (∀ i ≤ m, ‖iteratedFDeriv ℝ i c.G | |
| 36 | + (PhysicalGraphBounds.slotMap (PolarCharts.chart a c.chart) | |
| 37 | + (ChartScales.timeCoefficient h n) c.center r0 (PhysicalGraphBounds.physicalLift h n w)).1‖ ≤ | |
| 38 | + B * ChartScales.S n ^ eBase) → | |
| 39 | + ‖iteratedFDeriv ℝ m (commonWave a h n d r0 c amp j) w‖ ≤ | |
| 40 | + C * q ^ (g - (m:ℝ)*derivativeCost h) * (1+|Real.log q|)^N := by | |
| 41 | + have hK : 0 ≤ coverBound Δ := zero_le_one.trans (coverBound_ge_one Δ) | |
| 42 | + obtain ⟨C,hC,hb⟩ := SharpPhysicalCarrier.native_carrier_bound (b := b) hh ha hr0 hP hB heBase | |
| 43 | + m g eAmp (A*coverBound Δ^m) H (by positivity) hH | |
| 44 | + obtain ⟨D,hD,N,hweight⟩ := SharpLogWeights.chart_weight_bound | |
| 45 | + (g-(m:ℝ)*derivativeCost h) (eAmp+(eBase+1)*(m:ℝ)) | |
| 46 | + refine ⟨C*D,mul_nonneg hC hD.le,N,?_⟩ | |
| 47 | + intro n hn d hd w hw ht hz q hq hlo hhi c amp j hp hpz hx0 hslot hamp hF hG hj hab hFb hGb | |
| 48 | + have hQ := ChartScales.Q_pos n | |
| 49 | + have hS := ChartScales.S_pos (show 1 ≤ n by omega) | |
| 50 | + have ha : ∀ i ≤ m, ‖iteratedFDeriv ℝ i (amp ∘ downLift d) (PhysicalGraphBounds.physicalLift h n w)‖ ≤ | |
| 51 | + (A*coverBound Δ^m)*ChartScales.Q n^g*ChartScales.S n^eAmp := by | |
| 52 | + intro i hi | |
| 53 | + exact (downLift_jet_bound hamp hd (PhysicalGraphBounds.physicalLift h n w) | |
| 54 | + (B := A*ChartScales.Q n^g*ChartScales.S n^eAmp) (by positivity) hab i hi).trans_eq (by ring) | |
| 55 | + have hF' : ∀ i ≤ m, ‖iteratedFDeriv ℝ i c.F (slowMap (PolarCharts.chart a c.chart) h n w)‖ ≤ | |
| 56 | + B*ChartScales.S n^eBase := by | |
| 57 | + intro i hi | |
| 58 | + rw [slowMap_eq_slot _ _ _ c.center r0] | |
| 59 | + exact hFb i hi | |
| 60 | + have hG' : ∀ i ≤ m, ‖iteratedFDeriv ℝ i c.G (slowMap (PolarCharts.chart a c.chart) h n w)‖ ≤ | |
| 61 | + B*ChartScales.S n^eBase := by | |
| 62 | + intro i hi | |
| 63 | + rw [slowMap_eq_slot _ _ _ c.center r0] | |
| 64 | + exact hGb i hi | |
| 65 | + have he := hb n hn w hw ht c.chart c.center c.angular c.axial c.radial hp hpz hx0 hslot | |
| 66 | + (amp ∘ downLift d) c.F c.G j (hamp.comp (downLift d).contDiff) hF hG hj ha hF' hG' | |
| 67 | + apply he.trans | |
| 68 | + calc | |
| 69 | + _ = C*(ChartScales.Q n^(g-(m:ℝ)*derivativeCost h)*ChartScales.S n^(eAmp+(eBase+1)*(m:ℝ))) := by ring | |
| 70 | + _ ≤ C*(D*q^(g-(m:ℝ)*derivativeCost h)*(1+|Real.log q|)^N) := | |
| 71 | + mul_le_mul_of_nonneg_left (hweight n (by omega) q hq hlo hhi) hC | |
| 72 | + _ = _ := by ring | |
| 73 | + | |
| 74 | +theorem common_carrier_log_bound_local {h a b Z r0 P B eBase : ℝ} | |
| 75 | + (hh : 0 ≤ h) (hh1 : h ≤ 1 / 2) (ha : 0 < a) | |
| 76 | + (hZ : 0 ≤ Z) (hr0 : 0 ≤ r0) (hP : 1 ≤ P) (hB : 1 ≤ B) (heBase : 0 ≤ eBase) | |
| 77 | + (Δ m : ℕ) (g eAmp A H : ℝ) (hA : 0 ≤ A) (hH : 0 ≤ H) : | |
| 78 | + ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, ∀ n : ℕ, 4 ≤ n → ∀ d : ℕ, d ≤ Δ → | |
| 79 | + ∀ w : SpaceTime, PhysicalGraphBounds.scaledRadial n w ∈ PhysicalGraphBounds.annulus a b → | |
| 80 | + |w.1| ≤ 1 → ‖PhysicalGraphBounds.liftZT (PhysicalGraphBounds.physicalLift h n w)‖ ≤ Z → | |
| 81 | + ∀ q : ℝ, 0 < q → q / 2 ≤ ChartScales.Q n → ChartScales.Q n ≤ 2 * q → | |
| 82 | + ∀ (c : CarrierData) (amp : LiftPoint → ℂ) (j : ℤ), | |
| 83 | + |c.angular| ≤ P → |c.axial| ≤ P → |c.radial| ≤ P → | |
| 84 | + |PhysicalGraphBounds.etaCoordinate (PhysicalGraphBounds.nativeGraph h n w - c.center)| ≤ r0 → | |
| 85 | + SmoothNear amp (commonLift h n d w) → SmoothNear c.F (slotSlow c a h n r0 w) → | |
| 86 | + SmoothNear c.G (slotSlow c a h n r0 w) → |(j : ℝ)| ≤ H → | |
| 87 | + (∀ i ≤ m, ‖iteratedFDeriv ℝ i amp (commonLift h n d w)‖ ≤ | |
| 88 | + A * ChartScales.Q n ^ g * ChartScales.S n ^ eAmp) → | |
| 89 | + (∀ i ≤ m, ‖iteratedFDeriv ℝ i c.F (slotSlow c a h n r0 w)‖ ≤ | |
| 90 | + B * ChartScales.S n ^ eBase) → | |
| 91 | + (∀ i ≤ m, ‖iteratedFDeriv ℝ i c.G (slotSlow c a h n r0 w)‖ ≤ | |
| 92 | + B * ChartScales.S n ^ eBase) → | |
| 93 | + ‖iteratedFDeriv ℝ m (commonWave a h n d r0 c amp j) w‖ ≤ | |
| 94 | + C * q ^ (g - (m:ℝ)*derivativeCost h) * (1+|Real.log q|)^N := by | |
| 95 | + obtain ⟨C, hC, N, hb⟩ := common_carrier_log_bound (b := b) | |
| 96 | + hh hh1 ha hZ hr0 hP hB heBase Δ m g eAmp A H hA hH | |
| 97 | + refine ⟨C, hC, N, ?_⟩ | |
| 98 | + intro n hn d hd w hann ht hz q hq hlo hhi c amp j hp hpz hpx hslot haNear hFNear hGNear hj hab hFb hGb | |
| 99 | + obtain ⟨amp', ha', hea⟩ := haNear.exists_global_germ | |
| 100 | + obtain ⟨F, hF', heF⟩ := hFNear.exists_global_germ | |
| 101 | + obtain ⟨G, hG', heG⟩ := hGNear.exists_global_germ | |
| 102 | + have haxis := PhysicalGraphBounds.scaledRadial_ne_zero (PhysicalGraphBounds.annulus_axisFree ha hann) | |
| 103 | + rw [iteratedFDeriv_eq_of_eventuallyEq (commonWave_germ ha h n d r0 c j haxis hea heF heG) m] | |
| 104 | + apply hb n hn d hd w hann ht hz q hq hlo hhi (replaceProfiles c F G) amp' j | |
| 105 | + hp hpz hpx hslot ha' hF' hG' hj | |
| 106 | + · intro i hi | |
| 107 | + rw [← iteratedFDeriv_eq_of_eventuallyEq hea i] | |
| 108 | + exact hab i hi | |
| 109 | + · intro i hi | |
| 110 | + change ‖iteratedFDeriv ℝ i F (slotSlow c a h n r0 w)‖ ≤ _ | |
| 111 | + rw [← iteratedFDeriv_eq_of_eventuallyEq heF i] | |
| 112 | + exact hFb i hi | |
| 113 | + · intro i hi | |
| 114 | + change ‖iteratedFDeriv ℝ i G (slotSlow c a h n r0 w)‖ ≤ _ | |
| 115 | + rw [← iteratedFDeriv_eq_of_eventuallyEq heG i] | |
| 116 | + exact hGb i hi | |
| 117 | + | |
| 118 | +theorem physical_sum_log_bound {K : Type*} {h a b Z r0 P B eBase : ℝ} | |
| 119 | + (hh : 0 < h) (hh1 : h < 1 / 2) (ha : 0 < a) | |
| 120 | + (hZ : 0 ≤ Z) (hr0 : 0 ≤ r0) (hP : 1 ≤ P) (hB : 1 ≤ B) (heBase : 0 ≤ eBase) | |
| 121 | + (H Δ m : ℕ) (g eAmp A : ℝ) (hA : 0 ≤ A) : | |
| 122 | + ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, ∀ f : CopyFamily H K, | |
| 123 | + SupportData f a b h r0 Z Δ → SmoothData f a h r0 → ∀ hc : SupportCells f, | |
| 124 | + JetData f hc a b h r0 P A B g eAmp eBase m → | |
| 125 | + ∀ w : SpaceTime, w ∈ preterminal → |w.1| ≤ 1 → | |
| 126 | + ‖iteratedFDeriv ℝ m (f.sum a h r0) w‖ ≤ | |
| 127 | + C * physicalQ h w ^ (g - (m:ℝ)*derivativeCost h) * (1+|Real.log (physicalQ h w)|)^N := by | |
| 128 | + obtain ⟨C, hC, N, hpoint⟩ := common_carrier_log_bound_local (b := b) hh.le hh1.le ha | |
| 129 | + hZ hr0 hP hB heBase Δ m g eAmp A (H : ℝ) hA (Nat.cast_nonneg H) | |
| 130 | + refine ⟨((2250 * (2 * H + 1) : ℕ) : ℝ) * C, mul_nonneg (Nat.cast_nonneg _) hC, N, ?_⟩ | |
| 131 | + intro f hr hs hc hb w hw ht | |
| 132 | + have hq := physicalQ_pos hh hh1 hw | |
| 133 | + have hcopy : ∀ (I : WaveIndex H), | |
| 134 | + physicalParams h w ∈ labelRegion (CoordinateAlgebra.D h) I.1.val → ∀ k, | |
| 135 | + ‖iteratedFDeriv ℝ m (f.term a h r0 I k) w‖ ≤ | |
| 136 | + C * physicalQ h w ^ (g - (m:ℝ)*derivativeCost h) * (1+|Real.log (physicalQ h w)|)^N := by | |
| 137 | + intro I hregion k | |
| 138 | + by_cases hts : w ∈ tsupport (f.term a h r0 I k) | |
| 139 | + · have hgeo := hr.tsupport_geometry I k hts | |
| 140 | + have hcell := hc.term_tsupport_mem ha I k hgeo.1 hts | |
| 141 | + obtain ⟨mode, hmode⟩ := hr.angular_integer k I.1 | |
| 142 | + let chart := chooseChart a (PhysicalGraphBounds.scaledRadial I.1.val.1 w) | |
| 143 | + have hchart : PhysicalGraphBounds.scaledRadial I.1.val.1 w ∈ PolarCharts.chartDomain a chart := | |
| 144 | + chooseChart_valid ha hgeo.1 | |
| 145 | + have he := globalWave_eventually_common (r0 := r0) ha I.1.val.1 (f.gap I.1) | |
| 146 | + (f.carrier k I.1) (f.amplitude k I) I.2.val mode hmode | |
| 147 | + (fun y hy => (hr.geometry_support k I y hy).1) chart hchart | |
| 148 | + change ‖iteratedFDeriv ℝ m (globalWave a h I.1.val.1 (f.gap I.1) r0 | |
| 149 | + (f.carrier k I.1) (f.amplitude k I) I.2.val) w‖ ≤ _ | |
| 150 | + rw [iteratedFDeriv_eq_of_eventuallyEq he m] | |
| 151 | + have hband := labelRegion_active_relation hregion | |
| 152 | + have hp := hs.profiles k I w hw hts chart hchart | |
| 153 | + have hjets := hb.jets k I w hw hregion hgeo.1 hcell hts | |
| 154 | + exact hpoint I.1.val.1 I.1.property (f.gap I.1) (hr.gap_le I.1) | |
| 155 | + w hgeo.1 ht hgeo.2.1 (physicalQ h w) hq hband.1 hband.2 | |
| 156 | + ((f.carrier k I.1).withChart chart) (f.amplitude k I) I.2.val | |
| 157 | + (hb.parameters k I.1).1 (hb.parameters k I.1).2.1 (hb.parameters k I.1).2.2 hgeo.2.2 | |
| 158 | + (hs.amplitude k I w hw hts) hp.1 hp.2 (harmonic_bound I.2) | |
| 159 | + hjets.1 (hjets.2 chart hchart).1 (hjets.2 chart hchart).2 | |
| 160 | + · rw [jet_zero_off_tsupport _ _ hts, norm_zero] | |
| 161 | + positivity | |
| 162 | + have hsum := masked_finsum_jet_bound hh hh1 (f.periodized a h r0) | |
| 163 | + (hr.periodized_smoothAt hs hc ha) hr.periodized_support hw m | |
| 164 | + (B := C * physicalQ h w ^ (g - (m:ℝ)*derivativeCost h) * (1+|Real.log (physicalQ h w)|)^N) (by positivity) | |
| 165 | + refine (hsum ?_).trans_eq (by ring) | |
| 166 | + intro I hregion | |
| 167 | + rcases hr.periodized_germ_cover hc ha I w with ⟨k, _, hg⟩ | hg | |
| 168 | + · rw [iteratedFDeriv_eq_of_eventuallyEq hg m] | |
| 169 | + exact hcopy I hregion k | |
| 170 | + · rw [iteratedFDeriv_eq_of_eventuallyEq hg m] | |
| 171 | + simp only [iteratedFDeriv_fun_zero, Pi.zero_apply, norm_zero] | |
| 172 | + positivity | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | +section WeightedInputs | |
| 177 | +open WeightedClasses | |
| 178 | +variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] {ι K : Type*} | |
| 179 | + {h a b r0 Z : ℝ} {H Δ : ℕ} {f : CopyFamily H K} | |
| 180 | + | |
| 181 | +theorem physical_sum_log_bound_of_weighted {s : StripData D} {α σ P : ℝ} | |
| 182 | + {w : ι → ℕ → D → ℝ} {source : ι → ℕ → D → ℂ} | |
| 183 | + (hsource : LocalSourceBounds s h α w source) {hc : SupportCells f} | |
| 184 | + (hchart : CommonChart f hc a b h r0 σ source) | |
| 185 | + (hmap : ∀ k I, MapsTo (hchart.map k I) (hchart.domain k I) s.domain) | |
| 186 | + (hb : PhysicalCopyBounds.CarrierBounds f hc a b h r0) | |
| 187 | + (hr : SupportData f a b h r0 Z Δ) (hs : SmoothData f a h r0) | |
| 188 | + (hh : 0 < h) (hh1 : h < 1 / 2) (ha : 0 < a) (hZ : 0 ≤ Z) (hr0 : 0 ≤ r0) | |
| 189 | + (hP : 1 ≤ P) (hp : ∀ k L, |(f.carrier k L).angular| ≤ P ∧ | |
| 190 | + |(f.carrier k L).axial| ≤ P ∧ |(f.carrier k L).radial| ≤ P) (m : ℕ) : | |
| 191 | + ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, ∀ z : SpaceTime, | |
| 192 | + z ∈ preterminal → |z.1| ≤ 1 → | |
| 193 | + ‖iteratedFDeriv ℝ m (f.sum a h r0) z‖ ≤ | |
| 194 | + C * physicalQ h z ^ (h * α + σ - (m:ℝ)*derivativeCost h) * (1+|Real.log (physicalQ h z)|)^N := by | |
| 195 | + obtain ⟨A, hA, B, hB, p, q, hclass⟩ := localStrippedClass_of_weighted hsource hchart hmap hb hs hp m | |
| 196 | + obtain ⟨C, hC, N, hbound⟩ := physical_sum_log_bound (K := K) | |
| 197 | + (b := b) hh hh1 ha hZ hr0 hP hB (Nat.cast_nonneg q) H Δ m | |
| 198 | + (h * α + σ) p A hA | |
| 199 | + refine ⟨C, hC, N, ?_⟩ | |
| 200 | + intro z hz ht | |
| 201 | + exact hbound f hr hs hc hclass z hz ht | |
| 202 | + | |
| 203 | +end WeightedInputs | |
| 204 | +end NavierStokes.SharpPhysicalCopyBounds | |
| 205 | +end | |
| 206 | + | |
| 207 | +end | |
| 3 | 208 | |
| 4 | 209 | noncomputable section |
| 5 | 210 | namespace NavierStokes.PhysicalStageBounds.WaveData |
+27 −0 routes/s5-ns-sharp-1/README.md added View file
| @@ -0,0 +1,27 @@ | ||
| 1 | +--- | |
| 2 | +issue: 14 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s5-ns-sharp-1 | |
| 6 | + | |
| 7 | +The family `NavierStokes/Sharp*`. This unit folds the small modules of the family that exactly one file | |
| 8 | +imports into that file — `SharpParticularStageBounds.lean` takes ten, `SharpWaveStageBounds.lean` takes | |
| 9 | +`SharpPhysicalCopyBounds.lean`, `SharpPhysicalLoss.lean` takes `SharpPhysicalCarrier.lean` and | |
| 10 | +`SharpLogWeights.lean`, and `SharpPhysicalPhase.lean` takes `SharpGraphBounds.lean`. Each folded module's | |
| 11 | +text moves unchanged under a heading that names it, in a `section` of its own, before the importing file's | |
| 12 | +own text; the importing file takes over its imports. | |
| 13 | + | |
| 14 | +`SharpPhysicalCopyBounds.lean` (197 lines) and `SharpWaveStageBounds.lean` (80) are the two that push | |
| 15 | +`SharpParticularStageBounds.lean` past 600 lines if they go into it too, so they are cut out of that host: | |
| 16 | +the larger one goes into the smaller, which stays a module (285 lines) and is still imported by | |
| 17 | +`SharpParticularStageBounds.lean`; the other ten go into `SharpParticularStageBounds.lean` (359 lines). | |
| 18 | +Every file that takes a module stays at or under 600 lines: 359, 285, 254, 534. | |
| 19 | + | |
| 20 | +The plan is `plan.json` in this folder, and `docs/s5-folding/fold.py check . routes/s5-ns-sharp-1/plan.json` | |
| 21 | +remakes every changed file from `origin/main`'s text and compares it byte for byte. No statement, proof or | |
| 22 | +docstring changes; the counts and how they were taken are in the pull request. | |
| 23 | + | |
| 24 | +## Next | |
| 25 | + | |
| 26 | +Read the four importing files top to bottom at the pull request's head and say whether any of them reads | |
| 27 | +worse folded than the two files read apart. Nothing else is left for this unit. | |
+31 −0 routes/s5-ns-sharp-1/plan.json added View file
| @@ -0,0 +1,31 @@ | ||
| 1 | +{ | |
| 2 | +"imports": "in place", | |
| 3 | +"folds": { | |
| 4 | +"NavierStokes/SharpParticularStageBounds.lean": [ | |
| 5 | +"NavierStokes/SharpGeometricModeJets.lean", | |
| 6 | +"NavierStokes/SharpCommonGraphJets.lean", | |
| 7 | +"NavierStokes/SharpCurrentPhysicalPhase.lean", | |
| 8 | +"NavierStokes/SharpMeanJetBounds.lean", | |
| 9 | +"NavierStokes/SharpMeanStageBounds.lean", | |
| 10 | +"NavierStokes/SharpGluedStageBounds.lean", | |
| 11 | +"NavierStokes/SharpParticularGluing.lean", | |
| 12 | +"NavierStokes/SharpCurrentModeJets.lean", | |
| 13 | +"NavierStokes/SharpCurrentParticularBounds.lean", | |
| 14 | +"NavierStokes/SharpActualStageBounds.lean", | |
| 15 | +"NavierStokes/SharpParticularStageBounds.lean" | |
| 16 | +], | |
| 17 | +"NavierStokes/SharpPhysicalLoss.lean": [ | |
| 18 | +"NavierStokes/SharpPhysicalCarrier.lean", | |
| 19 | +"NavierStokes/SharpLogWeights.lean", | |
| 20 | +"NavierStokes/SharpPhysicalLoss.lean" | |
| 21 | +], | |
| 22 | +"NavierStokes/SharpPhysicalPhase.lean": [ | |
| 23 | +"NavierStokes/SharpGraphBounds.lean", | |
| 24 | +"NavierStokes/SharpPhysicalPhase.lean" | |
| 25 | +], | |
| 26 | +"NavierStokes/SharpWaveStageBounds.lean": [ | |
| 27 | +"NavierStokes/SharpPhysicalCopyBounds.lean", | |
| 28 | +"NavierStokes/SharpWaveStageBounds.lean" | |
| 29 | +] | |
| 30 | +} | |
| 31 | +} | |