Space #
This file contains d
-dimensional space.
Note on implementation #
The definition of Space d
currently inherits all instances of
EuclideanSpace ā (Fin d)
.
This, in particular, automatically equips Space d
with a
norm. This norm induces a metric on Space d
which is the standard
Euclidean metric. Thus Space d
automatically corresponds to
flat space.
The definition of deriv
through fderiv
explicitly uses this metric.
Space d
also inherits instances of EuclideanSpace ā (Fin d)
such as
a zero vector, the ability to add two space positions etc, which
are not really allowed operations on Space d
.
The standard coordinate functions of Space based on Fin d
.
The notation š μ p
can be used for this.
Equations
- Space.coord μ p = inner p (Space.basis μ)
Instances For
The standard coordinate functions of Space based on Fin d
.
The notation š μ p
can be used for this.
Equations
- Space.termš = Lean.ParserDescr.node `Space.termš 1024 (Lean.ParserDescr.symbol "š")
Instances For
Calculus #
Given a function f : Space d ā M
the derivative of f
in direction μ
.
Equations
- Space.deriv μ f x = (fderiv ā f x) (EuclideanSpace.single μ 1)
Instances For
Given a function f : Space d ā M
the derivative of f
in direction μ
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The vector calculus operator grad
.
Equations
- Space.grad f x i = Space.deriv i f x
Instances For
The vector calculus operator grad
.
Equations
- Space.Ā«termāĀ» = Lean.ParserDescr.node `Space.Ā«termāĀ» 1024 (Lean.ParserDescr.symbol "ā")
Instances For
The vector calculus operator curl
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The vector calculus operator curl
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The vector calculus operator div
.
Equations
- Space.div f x = ā i : Fin d, (fun (i : Fin d) (x : Space d) => Space.deriv i ((fun (i : Fin d) (x : Space d) => Space.coord i (f x)) i) x) i x
Instances For
The vector calculus operator div
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The scalar laplacian
operator.
Equations
- Space.laplacian f x = ā i : Fin d, (fun (i : Fin d) (x : Space d) => Space.deriv i (Space.deriv i f) x) i x
Instances For
The scalar laplacian
operator.
Equations
- Space.termĪ = Lean.ParserDescr.node `Space.termĪ 1024 (Lean.ParserDescr.symbol "Ī")
Instances For
The vector laplacian_vec
operator.
Equations
- Space.laplacian_vec f x i = Space.laplacian ((fun (i : Fin d) (x : Space d) => Space.coord i (f x)) i) x
Instances For
The vector laplacian_vec
operator.
Equations
- Space.termĪ_1 = Lean.ParserDescr.node `Space.termĪ_1 1024 (Lean.ParserDescr.symbol "Ī")