Download data/lean/OAI/MathematicalPhysics/PrefixFlows/Model.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.48 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MathematicalPhysics/PrefixFlows/Model.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/MathematicalPhysics/PrefixFlows/Model.lean
-
curl -L -o Model.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MathematicalPhysics/PrefixFlows/Model.lean
3.48 kB
| import Mathlib | |
| namespace OAI | |
| /-! Periodic classical solutions and material trajectories. -/ | |
| noncomputable section | |
| open scoped ContDiff | |
| namespace PrefixFlows | |
| abbrev Space := Fin 3 β β | |
| abbrev Spacetime := Fin 4 β β | |
| abbrev Field := Spacetime β Space | |
| abbrev Pressure := Spacetime β β | |
| def point (t : β) (x : Space) : Spacetime := ![t, x 0, x 1, x 2] | |
| def position (z : Spacetime) : Space := ![z 1, z 2, z 3] | |
| def future : Set Spacetime := {z | 0 β€ z 0} | |
| def cylinder (T : β) : Set Spacetime := {z | 0 β€ z 0 β§ z 0 β€ T} | |
| def unitCube : Set Space := Set.pi Set.univ (fun _ => Set.Icc (0 : β) 1) | |
| def axis (i : Fin 3) : Space := Pi.single i 1 | |
| def SpacePeriodic {E : Type*} (f : Spacetime β E) : Prop := | |
| β t, 0 β€ t β β (x : Space) (k : Fin 3 β β€), | |
| f (point t (x + fun i => (k i : β))) = f (point t x) | |
| noncomputable def spatialMean {E : Type*} [NormedAddCommGroup E] | |
| [NormedSpace β E] [CompleteSpace E] (f : Spacetime β E) (t : β) : E := | |
| β« x in unitCube, f (point t x) | |
| def MeanZero {E : Type*} [NormedAddCommGroup E] [NormedSpace β E] | |
| [CompleteSpace E] (f : Spacetime β E) : Prop := | |
| β t, 0 β€ t β spatialMean f t = 0 | |
| structure ClassicalJet where | |
| dt : Field | |
| dx : Fin 3 β Field | |
| dxx : Fin 3 β Fin 3 β Field | |
| dp : Fin 3 β Pressure | |
| def ClassicalRegularity (v : Field) (p : Pressure) (J : ClassicalJet) : Prop := | |
| (β t, 0 β€ t β β x, | |
| HasDerivWithinAt (fun s => v (point s x)) (J.dt (point t x)) (Set.Ici 0) t) β§ | |
| (β t, 0 β€ t β β x i, | |
| HasDerivAt (fun (s : β) => v (point t (x + s β’ axis i))) (J.dx i (point t x)) 0) β§ | |
| (β t, 0 β€ t β β x i j, | |
| HasDerivAt (fun (s : β) => J.dx i (point t (x + s β’ axis j))) | |
| (J.dxx i j (point t x)) 0) β§ | |
| (β t, 0 β€ t β β x i, | |
| HasDerivAt (fun (s : β) => p (point t (x + s β’ axis i))) (J.dp i (point t x)) 0) β§ | |
| (β T, 0 β€ T β | |
| ContinuousOn v (cylinder T) β§ ContinuousOn p (cylinder T) β§ | |
| ContinuousOn J.dt (cylinder T) β§ | |
| (β i, ContinuousOn (J.dx i) (cylinder T)) β§ | |
| (β i j, ContinuousOn (J.dxx i j) (cylinder T)) β§ | |
| (β i, ContinuousOn (J.dp i) (cylinder T))) | |
| def ClassicalSolution (Ξ½ : β) (f v : Field) (p : Pressure) : Prop := | |
| SpacePeriodic v β§ SpacePeriodic p β§ MeanZero p β§ | |
| (β x, v (point 0 x) = 0) β§ | |
| β J : ClassicalJet, ClassicalRegularity v p J β§ | |
| (β t, 0 β€ t β β x, β i : Fin 3, J.dx i (point t x) i = 0) β§ | |
| (β t, 0 β€ t β β x, | |
| J.dt (point t x) + | |
| (β i : Fin 3, v (point t x) i β’ J.dx i (point t x)) - | |
| Ξ½ β’ (β i : Fin 3, J.dxx i i (point t x)) + | |
| (fun i => J.dp i (point t x)) = f (point t x)) | |
| def GloballySmooth {E : Type*} [NormedAddCommGroup E] [NormedSpace β E] | |
| (f : Spacetime β E) : Prop := ContDiffOn β β f future | |
| noncomputable def kineticEnergy (v : Field) (t : β) : β := | |
| (1 / 2 : β) * β« x in unitCube, β i : Fin 3, (v (point t x) i) ^ 2 | |
| def BoundedEnergy (v : Field) : Prop := | |
| β C : β, 0 β€ C β§ β t, 0 β€ t β kineticEnergy v t β€ C | |
| def initialLabel : Space := ![1 / 8, 1 / 4, 1 / 4] | |
| def MaterialTrajectory (u : Field) (X : β β Space) : Prop := | |
| X 0 = initialLabel β§ ContinuousOn X (Set.Ici 0) β§ | |
| β t, 0 β€ t β HasDerivWithinAt X (u (point t (X t))) (Set.Ici 0) t | |
| def observed (x : Space) : Prop := | |
| β k : β€, (1 / 2 : β) < x 0 - k β§ x 0 - k < 1 | |
| end PrefixFlows | |
| end | |
| end OAI | |