Download lean/OAI/MathematicalPhysics/PrefixFlows/Model.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 3.48 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/MathematicalPhysics/PrefixFlows/Model.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/MathematicalPhysics/PrefixFlows/Model.lean
-
curl -L -o Model.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/MathematicalPhysics/PrefixFlows/Model.lean
3.48 kB
Lean 4 · 22
declarations statementsfull
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 := body · 2 lines
∀ 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 := body · 1 line
∫ x in unitCube, f (point t x)def MeanZero {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]
[CompleteSpace E] (f : Spacetime → E) : Prop := body · 1 line
∀ t, 0 ≤ t → spatialMean f t = 0structure ClassicalJet where body · 4 lines
dt : Field
dx : Fin 3 → Field
dxx : Fin 3 → Fin 3 → Field
dp : Fin 3 → Pressuredef ClassicalRegularity (v : Field) (p : Pressure) (J : ClassicalJet) : Prop := body · 15 lines
(∀ 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 := body · 9 lines
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 : ℝ) : ℝ := body · 1 line
(1 / 2 : ℝ) * ∫ x in unitCube, ∑ i : Fin 3, (v (point t x) i) ^ 2def BoundedEnergy (v : Field) : Prop := body · 1 line
∃ C : ℝ, 0 ≤ C ∧ ∀ t, 0 ≤ t → kineticEnergy v t ≤ Cdef initialLabel : Space := ![1 / 8, 1 / 4, 1 / 4] def MaterialTrajectory (u : Field) (X : ℝ → Space) : Prop := body · 2 lines
X 0 = initialLabel ∧ ContinuousOn X (Set.Ici 0) ∧
∀ t, 0 ≤ t → HasDerivWithinAt X (u (point t (X t))) (Set.Ici 0) tdef observed (x : Space) : Prop := body · 1 line
∃ k : ℤ, (1 / 2 : ℝ) < x 0 - k ∧ x 0 - k < 1Outline
- abbrev
Space10 - abbrev
Spacetime11 - abbrev
Field12 - abbrev
Pressure13 - def
point15 - def
position16 - def
future17 - def
cylinder18 - def
unitCube19 - def
axis21 - def
SpacePeriodic23 - def
spatialMean27 - def
MeanZero31 - structure
ClassicalJet37 - def
ClassicalRegularity45 - def
ClassicalSolution64 - def
GloballySmooth75 - def
kineticEnergy78 - def
BoundedEnergy81 - def
initialLabel84 - def
MaterialTrajectory87 - def
observed92