Download data/lean/OAI/Geometry/IsometricImmersion/Pulses/QPulseFirstJetBudget.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 4.36 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/IsometricImmersion/Pulses/QPulseFirstJetBudget.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/IsometricImmersion/Pulses/QPulseFirstJetBudget.lean
-
curl -L -o QPulseFirstJetBudget.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/IsometricImmersion/Pulses/QPulseFirstJetBudget.lean
4.36 kB
| import OAI.Geometry.IsometricImmersion.Comparison.ShearFirstJetComparison | |
| namespace OAI | |
| noncomputable section | |
| open Set Filter | |
| open scoped ContDiff Topology Matrix Matrix.Norms.Elementwise | |
| namespace SmoothLocal.Pulse | |
| open SmoothLocal.Geometry SmoothLocal.HighEquation | |
| def qPulseFirstJetBudget (a : β) (ha : 0 < a) (N : β) (delta tau : β) : β := | |
| (8+scalarPulseFirstJetBound a ha delta)*tau/tau^N | |
| theorem qPulseFirstJetBudget_nonneg {a : β} (ha : 0 < a) (N : β) (delta : β) | |
| {tau : β} (ht : 0 β€ tau) : 0 β€ qPulseFirstJetBudget a ha N delta tau := | |
| div_nonneg (mul_nonneg (by linarith [scalarPulseFirstJetBound_nonneg ha delta]) ht) | |
| (pow_nonneg ht N) | |
| theorem actual_sheared_first_jet_error_nat | |
| {gStar gTau : MetricField} {U : Set Coord} {q0 a delta : β} {N n : β} | |
| (hgStar : SmoothPositiveOn gStar U) | |
| (hgTest : SmoothPositiveOn (testMetric gStar q0 a N delta n) U) | |
| (hgTau : SmoothPositiveOn gTau U) (hU : IsOpen U) | |
| (hq : |q0| β€ 1) (ha : 0 < a) (hN : 0 < N) (hn : 1 β€ n) (hlarge : N-1 β€ n) | |
| {p : Coord} (hp : inverseShearCoordinates q0 p β U) | |
| (hjet : βactualCurvatureFirstInput gTau (inverseShearCoordinates q0 p)- | |
| actualCurvatureFirstInput (testMetric gStar q0 a N delta n) | |
| (inverseShearCoordinates q0 p)β β€ 1/(n : β)^n) : | |
| βactualCurvatureFirstInput (metricInShearCoordinates gTau q0) p- | |
| actualCurvatureFirstInput (metricInShearCoordinates gStar q0) pβ β€ | |
| qPulseFirstJetBudget a ha N delta n := by | |
| have ht : (1 : β) β€ (n : β) := by exact_mod_cast hn | |
| have hfirst := actual_sheared_solution_first_jet_error hgStar hgTest hgTau hU hq ha ht hp hjet | |
| calc | |
| _ β€ 8*(1/(n : β)^n)+scalarPulseFirstJetBudget a ha N delta n := hfirst | |
| _ β€ 8*((n : β)/(n : β)^N)+scalarPulseFirstJetBudget a ha N delta n := | |
| add_le_add (mul_le_mul_of_nonneg_left | |
| (approximation_budget_le_pulse_error hN hn hlarge) (by norm_num : (0 : β) β€ 8)) le_rfl | |
| _ = _ := by unfold qPulseFirstJetBudget scalarPulseFirstJetBudget; ring | |
| theorem qPulseFirstJetBudget_tendsto_zero {a : β} (ha : 0 < a) (N : β) | |
| (hN : 1 < N) (delta : β) : | |
| Tendsto (qPulseFirstJetBudget a ha N delta) atTop (π 0) := by | |
| have hn : N-1 β 0 := by omega | |
| have hi := (tendsto_inv_atTop_zero : Tendsto (fun t : β => tβ»ΒΉ) atTop (π 0)).pow (N-1) | |
| have h : Tendsto (fun t : β => (8+scalarPulseFirstJetBound a ha delta)*(tβ»ΒΉ)^(N-1)) | |
| atTop (π 0) := by | |
| simpa only [zero_pow hn,mul_zero] using hi.const_mul (8+scalarPulseFirstJetBound a ha delta) | |
| apply h.congr' | |
| filter_upwards [eventually_gt_atTop (0 : β)] with t ht | |
| have hN' : N = 1+(N-1) := by omega | |
| have hr : t/t^N = (tβ»ΒΉ)^(N-1) := by | |
| conv_lhs => rw [hN',pow_add,pow_one] | |
| rw [inv_pow] | |
| field_simp [ht.ne'] | |
| simp only [qPulseFirstJetBudget,mul_div_assoc,hr] | |
| theorem qPulseFirstJetBudget_eventual_margins (B H : β) {d c a : β} | |
| (hd : 0 < d) (hc : 0 < c) (ha : 0 < a) (N : β) (hN : 1 < N) | |
| (delta : β) : | |
| β T : β, 1 β€ T β§ β tau : β, T β€ tau β | |
| qPulseFirstJetBudget a ha N delta tau β€ 1 β§ | |
| (4*max B 0+2)*qPulseFirstJetBudget a ha N delta tau β€ d/2 β§ | |
| H*qPulseFirstJetBudget a ha N delta tau β€ c/2 := by | |
| have htend := qPulseFirstJetBudget_tendsto_zero ha N hN delta | |
| have h1 : βαΆ t : β in atTop, qPulseFirstJetBudget a ha N delta t < 1 := | |
| htend.eventually (eventually_lt_nhds zero_lt_one) | |
| have hd' : Tendsto (fun t : β => (4*max B 0+2)*qPulseFirstJetBudget a ha N delta t) | |
| atTop (π 0) := by simpa only [mul_zero] using htend.const_mul (4*max B 0+2) | |
| have hc' : Tendsto (fun t : β => H*qPulseFirstJetBudget a ha N delta t) | |
| atTop (π 0) := by simpa only [mul_zero] using htend.const_mul H | |
| have hev : βαΆ t : β in atTop, | |
| qPulseFirstJetBudget a ha N delta t β€ 1 β§ | |
| (4*max B 0+2)*qPulseFirstJetBudget a ha N delta t β€ d/2 β§ | |
| H*qPulseFirstJetBudget a ha N delta t β€ c/2 := by | |
| filter_upwards [h1,hd'.eventually (eventually_lt_nhds (half_pos hd)), | |
| hc'.eventually (eventually_lt_nhds (half_pos hc))] with t ht1 htd htc | |
| exact β¨ht1.le,htd.le,htc.leβ© | |
| obtain β¨T,hTβ© := eventually_atTop.mp hev | |
| exact β¨max T 1,le_max_right _ _,fun t ht => hT t ((le_max_left _ _).trans ht)β© | |
| end SmoothLocal.Pulse | |
| end | |
| end OAI | |