Download data/lean/OAI/MathematicalPhysics/RecorderFlows/Model.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.4 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MathematicalPhysics/RecorderFlows/Model.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/MathematicalPhysics/RecorderFlows/Model.lean
-
curl -L -o Model.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MathematicalPhysics/RecorderFlows/Model.lean
5.4 kB
| import Mathlib | |
| namespace OAI | |
| /-! Periodic incompressible fields, classical solutions and bounded smooth forcing. -/ | |
| namespace Solenoidal | |
| namespace Fluid | |
| open scoped ContDiff | |
| abbrev Space := Fin 3 β β | |
| abbrev SpaceTime := Fin 4 β β | |
| abbrev Field := SpaceTime β Space | |
| abbrev Pressure := SpaceTime β β | |
| def point (t : β) (x : Space) : SpaceTime := Fin.cons t x | |
| def translateTime (h : β) (p : SpaceTime) : SpaceTime := | |
| Function.update p 0 (p 0 + h) | |
| def translateSpace (k : Fin 3 β β€) (p : SpaceTime) : SpaceTime := | |
| point (p 0) (fun i => p i.succ + (k i : β)) | |
| def SpatiallyPeriodic {E : Type*} (F : SpaceTime β E) : Prop := | |
| β (p : SpaceTime) (k : Fin 3 β β€), F (translateSpace k p) = F p | |
| noncomputable def partialD (i : Fin 4) (F : Field) : Field := | |
| fun p => fderiv β F p (Pi.single i 1) | |
| noncomputable def mixedD : List (Fin 4) β Field β Field | |
| | [], F => F | |
| | i :: l, F => partialD i (mixedD l F) | |
| noncomputable def diverge (F : Field) (p : SpaceTime) : β := | |
| β i : Fin 3, partialD i.succ F p i | |
| noncomputable def laplacian (F : Field) (p : SpaceTime) : Space := | |
| β i : Fin 3, partialD i.succ (partialD i.succ F) p | |
| noncomputable def advection (F : Field) (p : SpaceTime) : Space := | |
| β i : Fin 3, (F p i) β’ partialD i.succ F p | |
| noncomputable def force (Ξ½ : β) (U : Field) : Field := | |
| fun p => partialD 0 U p - Ξ½ β’ laplacian U p | |
| def cell : Set Space := Set.Icc 0 (fun _ => 1) | |
| noncomputable def spatialMean (F : Field) (t : β) : Space := | |
| β« x in cell, F (point t x) | |
| noncomputable def pressureMean (p : Pressure) (t : β) : β := | |
| β« x in cell, p (point t x) | |
| noncomputable def energy (U : Field) (t : β) : β := | |
| (1 / 2 : β) * β« x in cell, β i : Fin 3, (U (point t x) i) ^ 2 | |
| def BoundedMixed (F : Field) : Prop := | |
| β a : List (Fin 4), β C : β, 0 β€ C β§ | |
| β p : SpaceTime, 0 β€ p 0 β βmixedD a F pβ β€ C | |
| def PeriodicAfterOne (F : Field) : Prop := | |
| β p : SpaceTime, 1 β€ p 0 β F (translateTime 1 p) = F p | |
| def ZeroNearIntegers (U f : Field) : Prop := | |
| β n : β€, β Ξ΅ : β, 0 < Ξ΅ β§ β p : SpaceTime, | |
| 0 β€ p 0 β |p 0 - (n : β)| < Ξ΅ β U p = 0 β§ f p = 0 | |
| structure ClassicalSolutionOn (Ξ½ : β) (f v : Field) (p : Pressure) (T : β) : Prop where | |
| periodic_v : β t β Set.Icc 0 T, β (x : Space) (k : Fin 3 β β€), | |
| v (point t (fun i => x i + (k i : β))) = v (point t x) | |
| periodic_p : β t β Set.Icc 0 T, β (x : Space) (k : Fin 3 β β€), | |
| p (point t (fun i => x i + (k i : β))) = p (point t x) | |
| continuous_v : ContinuousOn (fun tx : β Γ Space => v (point tx.1 tx.2)) | |
| (Set.Icc 0 T ΓΛ’ Set.univ) | |
| continuous_p : ContinuousOn (fun tx : β Γ Space => p (point tx.1 tx.2)) | |
| (Set.Icc 0 T ΓΛ’ Set.univ) | |
| zero_initial : β x : Space, v (point 0 x) = 0 | |
| zero_pressure_mean : β t β Set.Icc 0 T, pressureMean p t = 0 | |
| derivatives : β (vTime : Field) (vSpace : Fin 3 β Field) | |
| (vSpace2 : Fin 3 β Fin 3 β Field) (pSpace : Fin 3 β Pressure), | |
| (ContinuousOn (fun tx : β Γ Space => vTime (point tx.1 tx.2)) | |
| (Set.Icc 0 T ΓΛ’ Set.univ)) β§ | |
| (β i, ContinuousOn (fun tx : β Γ Space => vSpace i (point tx.1 tx.2)) | |
| (Set.Icc 0 T ΓΛ’ Set.univ)) β§ | |
| (β i j, ContinuousOn (fun tx : β Γ Space => vSpace2 i j (point tx.1 tx.2)) | |
| (Set.Icc 0 T ΓΛ’ Set.univ)) β§ | |
| (β i, ContinuousOn (fun tx : β Γ Space => pSpace i (point tx.1 tx.2)) | |
| (Set.Icc 0 T ΓΛ’ Set.univ)) β§ | |
| (β t β Set.Icc 0 T, β x : Space, | |
| HasDerivWithinAt (fun s => v (point s x)) (vTime (point t x)) (Set.Icc 0 T) t) β§ | |
| (β i, β t β Set.Icc 0 T, β x : Space, | |
| HasDerivAt (fun s : β => v (point t (x + s β’ Pi.single i 1))) | |
| (vSpace i (point t x)) 0) β§ | |
| (β i j, β t β Set.Icc 0 T, β x : Space, | |
| HasDerivAt (fun s : β => vSpace i (point t (x + s β’ Pi.single j 1))) | |
| (vSpace2 i j (point t x)) 0) β§ | |
| (β i, β t β Set.Icc 0 T, β x : Space, | |
| HasDerivAt (fun s : β => p (point t (x + s β’ Pi.single i 1))) | |
| (pSpace i (point t x)) 0) β§ | |
| (β t β Set.Icc 0 T, β x : Space, β i : Fin 3, vSpace i (point t x) i = 0) β§ | |
| (β t β Set.Icc 0 T, β x : Space, | |
| vTime (point t x) + β i : Fin 3, v (point t x) i β’ vSpace i (point t x) = | |
| -(fun i => pSpace i (point t x)) + | |
| Ξ½ β’ (β i : Fin 3, vSpace2 i i (point t x)) + f (point t x)) | |
| def FluidAssertions (Ξ½ : β) (U f : Field) : Prop := | |
| ContDiff β β U β§ ContDiff β β f β§ SpatiallyPeriodic U β§ SpatiallyPeriodic f β§ | |
| (β q : SpaceTime, 0 β€ q 0 β diverge f q = 0) β§ | |
| (β t : β, 0 β€ t β spatialMean f t = 0) β§ | |
| (β q : SpaceTime, 0 β€ q 0 β | |
| partialD 0 U q + advection U q = Ξ½ β’ laplacian U q + f q) β§ | |
| (β q : SpaceTime, 0 β€ q 0 β diverge U q = 0) β§ | |
| (β x : Space, U (point 0 x) = 0) β§ | |
| (β T : β, 0 < T β β (v : Field) (p : Pressure), ClassicalSolutionOn Ξ½ f v p T β | |
| β t β Set.Icc 0 T, β x : Space, v (point t x) = U (point t x) β§ p (point t x) = 0) | |
| def BoundedPeriodicAssertions (U f : Field) : Prop := | |
| BoundedMixed U β§ BoundedMixed f β§ | |
| (β C : β, 0 β€ C β§ β t : β, 0 β€ t β energy U t β€ C) β§ | |
| PeriodicAfterOne U β§ PeriodicAfterOne f β§ ZeroNearIntegers U f | |
| end Fluid | |
| end Solenoidal | |
| end OAI | |