math / data /lean /OAI /MathematicalPhysics /NavierStokes /ForcedComputation /Flow /CompactPlanarBounds.lean
Download data/lean/OAI/MathematicalPhysics/NavierStokes/ForcedComputation/Flow/CompactPlanarBounds.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.21 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MathematicalPhysics/NavierStokes/ForcedComputation/Flow/CompactPlanarBounds.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/MathematicalPhysics/NavierStokes/ForcedComputation/Flow/CompactPlanarBounds.lean
-
curl -L -o CompactPlanarBounds.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MathematicalPhysics/NavierStokes/ForcedComputation/Flow/CompactPlanarBounds.lean
5.21 kB
| import OAI.MathematicalPhysics.NavierStokes.ForcedComputation.Flow.PlanarCompactBridge | |
| import OAI.MathematicalPhysics.NavierStokes.ForcedComputation.Flow.PlanarTransition | |
| namespace OAI | |
| /-! Bounds and actual global transitions for the compact planar version of | |
| the normalized program. The periodic spatial expression agrees on the | |
| chart; outside the common support all derivatives vanish. -/ | |
| noncomputable section | |
| namespace ForcedComputation.Recorder.Planar | |
| open ShearFlows PlanarHamiltonian Set Filter | |
| open scoped Topology ContDiff NNReal | |
| def compactVelocity (I : Alternating.MachineInput) (hI : Alternating.ValidInput I) | |
| (s : β) : Plane β Plane := | |
| PlanarHamiltonian.periodicVelocity | |
| (n := (actions (freshMachine I.1) (freshInput_wellFormed hI)).length) | |
| (normalizedPulse I hI) s | |
| theorem compactVelocity_smooth (I : Alternating.MachineInput) | |
| (hI : Alternating.ValidInput I) : | |
| ContDiff β β (fun y : β Γ Plane => compactVelocity I hI y.1 y.2) := | |
| periodicVelocity_smooth (normalizedPulse_valid I hI) | |
| theorem compactVelocity_germ (I : Alternating.MachineInput) | |
| (hI : Alternating.ValidInput I) (s : β) {x : Plane} | |
| (hxβ : x 0 β Ioo (0 : β) 1) (hxβ : x 1 β Ioo (0 : β) 1) : | |
| compactVelocity I hI s =αΆ [π x] planarSlice (normalizedHamiltonian I hI) s := by | |
| have ho : IsOpen {y : Plane | y 0 β Ioo (0 : β) 1 β§ y 1 β Ioo (0 : β) 1} := | |
| (isOpen_Ioo.preimage (continuous_apply 0)).inter | |
| (isOpen_Ioo.preimage (continuous_apply 1)) | |
| filter_upwards [ho.mem_nhds β¨hxβ, hxββ©] with y hy | |
| exact normalized_planar_field_on_chart I hI s y hy.1 hy.2 | |
| theorem compactVelocity_support (I : Alternating.MachineInput) | |
| (hI : Alternating.ValidInput I) (s : β) : | |
| tsupport (compactVelocity I hI s) β commonSupport (normalizedPulse I hI) := | |
| (periodicVelocity_properties (normalizedPulse_valid I hI) s).1 | |
| theorem compactVelocity_off_chart (I : Alternating.MachineInput) | |
| (hI : Alternating.ValidInput I) (s : β) {x : Plane} | |
| (hx : Β¬ (x 0 β Ioo (0 : β) 1 β§ x 1 β Ioo (0 : β) 1)) : | |
| x β tsupport (compactVelocity I hI s) := by | |
| intro hm | |
| have h := commonSupport_in_unit (normalizedPulse_inUnit I hI) | |
| (compactVelocity_support I hI s hm) | |
| exact hx β¨h 0, h 1β© | |
| theorem compactVelocity_bound (I : Alternating.MachineInput) | |
| (hI : Alternating.ValidInput I) (s : β) (x : Plane) : | |
| βcompactVelocity I hI s xβ β€ | |
| ((SpatialExpression.suspensionCode (normalizedHamiltonian I hI)).bound [] : β) := by | |
| by_cases hx : x 0 β Ioo (0 : β) 1 β§ x 1 β Ioo (0 : β) 1 | |
| Β· rw [(compactVelocity_germ I hI s hx.1 hx.2).eq_of_nhds] | |
| exact planarSlice_bound (normalizedHamiltonian_valid I hI) | |
| (normalizedHamiltonian_noTime I hI) s x | |
| Β· rw [image_eq_zero_of_notMem_tsupport (compactVelocity_off_chart I hI s hx), norm_zero] | |
| exact Nat.cast_nonneg _ | |
| theorem compactVelocity_derivative_bounds (I : Alternating.MachineInput) | |
| (hI : Alternating.ValidInput I) (s : β) (x : Plane) : | |
| βfderiv β (compactVelocity I hI s) xβ β€ | |
| (planarVariationCoefficient (normalizedHamiltonian I hI) : β) β§ | |
| βfderiv β (fderiv β (compactVelocity I hI s)) xβ β€ | |
| (planarVariationCoefficient (normalizedHamiltonian I hI) : β) := by | |
| by_cases hx : x 0 β Ioo (0 : β) 1 β§ x 1 β Ioo (0 : β) 1 | |
| Β· have he := compactVelocity_germ I hI s hx.1 hx.2 | |
| rw [he.fderiv_eq, he.fderiv.fderiv_eq] | |
| exact planar_derivative_bounds (normalizedHamiltonian_valid I hI) | |
| (normalizedHamiltonian_noTime I hI) s x | |
| Β· have hn := compactVelocity_off_chart I hI s hx | |
| have hn' : x β tsupport (fderiv β (compactVelocity I hI s)) := | |
| fun h => hn (tsupport_fderiv_subset β h) | |
| constructor | |
| Β· rw [fderiv_of_notMem_tsupport β hn, norm_zero] | |
| exact Nat.cast_nonneg _ | |
| Β· have hz := fderiv_of_notMem_tsupport β hn' | |
| exact (congrArg norm hz).le.trans ((ContinuousLinearMap.opNorm_zero : | |
| β(0 : Plane βL[β] (Plane βL[β] Plane))β = 0).le.trans (Nat.cast_nonneg _)) | |
| theorem compactVelocity_lipschitz (I : Alternating.MachineInput) | |
| (hI : Alternating.ValidInput I) (s : β) : | |
| LipschitzWith (planarVariationCoefficient (normalizedHamiltonian I hI) : ββ₯0) | |
| (compactVelocity I hI s) := by | |
| have hi : ContDiff β β (fun x : Plane => (s, x)) := | |
| contDiff_const.prodMk contDiff_id | |
| have hs := (compactVelocity_smooth I hI).comp hi | |
| apply lipschitzWith_of_nnnorm_fderiv_le (hs.differentiable (by simp)) | |
| intro x | |
| exact_mod_cast (compactVelocity_derivative_bounds I hI s x).1 | |
| theorem compactVelocity_transitions (I : Alternating.MachineInput) | |
| (hI : Alternating.ValidInput I) : | |
| β Ξ¨, IsPlanarTransition (compactVelocity I hI) Ξ¨ := by | |
| apply exists_planarTransition_of_bounds (B := | |
| ((SpatialExpression.suspensionCode (normalizedHamiltonian I hI)).bound [] : ββ₯0)) | |
| (compactVelocity_lipschitz I hI) | |
| Β· intro x | |
| have hi : Continuous (fun t : β => (t, x)) := continuous_id.prodMk continuous_const | |
| have h := (compactVelocity_smooth I hI).continuous.comp hi | |
| exact h | |
| Β· exact compactVelocity_bound I hI | |
| end ForcedComputation.Recorder.Planar | |
| end | |
| end OAI | |