Physlib.SpaceAndTime.Space.Module
93 declarations
Addition on
#instAddFor a given dimension , the addition operation on is defined such that for any two elements , their sum is the element whose components are given by the sum of the corresponding components of and . That is, for each index , .
in
#add_valFor any natural number and any elements , the underlying vector value of their sum is equal to the sum of their individual underlying vector values. This is expressed as .
in
#add_applyFor any dimension , given two elements and an index , the -th coordinate of their sum is equal to the sum of their individual -th coordinates. That is, .
Zero element of
#instZeroFor any dimension , the zero element is defined as the element whose components are all equal to .
The value of is the constant zero function
#zero_valFor any dimension , the underlying value of the zero element is the constant function that maps every index to .
The -th component of is
#zero_applyFor any natural number and any index , the -th component of the zero element is equal to .
is an additive commutative monoid
#instAddCommMonoidFor a given dimension , the type is equipped with the structure of an additive commutative monoid. This means that for all elements , the addition operation is associative, , and commutative, . Furthermore, the zero element acts as the additive identity, satisfying and .
The components of are in
#nsmul_valFor any dimension , natural number , and element , the underlying representation of the natural scalar multiplication is the function that maps each index to the scalar product , where denotes the -th component of .
in
#nsmul_applyFor any dimension , any natural number , any element , and any index , the -th component of the natural scalar multiplication is equal to the natural scalar multiplication of with the -th component of . This is expressed by the identity .
For any dimension and any two vectors in the Euclidean space , let denote the zero element of . The sum of the points and in is equal to the point , where denotes the additive action of a vector on a point. That is,
Scalar multiplication of on
#instSMulRealThe definition provides a scalar multiplication operation of real numbers on elements of the -dimensional space . For any scalar and point , the result is defined component-wise such that its -th coordinate is the product of and the -th coordinate of , i.e., for all .
Scalar multiplication in is defined component-wise.
#smul_valFor any natural number , real scalar , and point , the coordinate-wise representation of the scalar product is given by the function mapping each index to the product of and the -th coordinate of . That is, .
in
#smul_applyFor any natural number , real number , and point , the -th coordinate of the scalar product is equal to the product of and the -th coordinate of , i.e., for all indices .
For any dimension , real scalar , and vector in the -dimensional Euclidean space , the scalar multiplication of the point by is equal to the translation of the origin by the scaled vector . That is, \[ k \cdot (v +_v 0) = (k \cdot v) +_v 0 \] where is the zero element of and denotes the operation of adding a vector to a point.
is a vector space over
#instModuleRealFor a natural number , the type is equipped with the structure of a module over the real numbers . This defines as a real vector space where the scalar multiplication and addition satisfy the standard axioms (associativity, distributivity, and identity) through component-wise operations.
Norm on
#instNormThe Euclidean norm for an element in the -dimensional space is defined as the square root of the sum of the squares of its components: \[ \|p\| = \sqrt{\sum_{i} (p_i)^2} \] where denotes the -th coordinate of .
For an element in the -dimensional space , the Euclidean norm is equal to the square root of the sum of the squares of its coordinates : \[ \|p\| = \sqrt{\sum_{i} (p_i)^2} \]
For any element in the -dimensional space and any coordinate index , the absolute value of the -th coordinate is less than or equal to the Euclidean norm of the element: \[ |p_i| \le \|p\| \]
for
#norm_sq_eqFor any element in the -dimensional space , the square of its Euclidean norm is equal to the sum of the squares of its coordinates : \[ \|p\|^2 = \sum_{i} p_i^2 \] where denotes the -th coordinate of .
for all
#point_dim_zero_eqIn the zero-dimensional space , any element is equal to the zero element .
For any dimension and any vector in the -dimensional Euclidean space (represented as `EuclideanSpace ℝ (Fin d)`), the norm of the element in obtained by adding the vector to the zero element is equal to the norm of : \[ \|v +_{\text{v}} 0\| = \|v\| \] where denotes the additive action of a vector on a point.
Negation in
#instNegFor any element in the -dimensional space , the negation is defined component-wise such that for each index , the -th component of the result is .
in
#neg_valFor any element in the -dimensional space , the valuation of its negation is obtained by negating each component of . Mathematically, for every index , the -th component of the negation is given by .
in
#neg_applyFor any natural number , any vector in the -dimensional space , and any index , the -th component of the negation of is equal to the negative of its -th component, i.e., .
is an Additive Commutative Group
#instAddCommGroupFor any dimension , the type is equipped with the structure of an additive commutative group. This means that for all elements , the addition operation is associative, , and commutative, . There exists a zero element such that , and for every element , there exists an additive inverse such that . Additionally, integer scalar multiplication for is defined component-wise such that for each index .
in
#sub_applyFor any dimension , given two elements and an index , the -th coordinate of their difference is equal to the difference of their individual -th coordinates. That is, .
in
#sub_valFor any dimension and any two elements , the value function of their difference is equal to the pointwise difference of their respective value functions. Specifically, for every index , the -th component of the difference satisfies .
For any dimension and any two vectors , the following identity holds in : \[ (v_1 + 0) - (v_2 + 0) = (v_1 - v_2) + 0 \] where is the zero element of , denotes the additive action of a vector on a point, and denotes the subtraction operation within the additive group structure of .
For any dimension and points in the -dimensional space , the distance between and is equal to the norm of their difference: \[ \text{dist}(p, q) = \|p - q\| \] where denotes the Euclidean norm on .
is a Seminormed Additive Commutative Group
#instSeminormedAddCommGroupFor any dimension , the space is equipped with the structure of a seminormed additive commutative group. This structure ensures that is an additive commutative group where the distance between any two points and is induced by the norm of their difference, such that .
is a Normed Additive Commutative Group
#instNormedAddCommGroupFor any dimension , the space is equipped with the structure of a normed additive commutative group. This structure combines its additive commutative group properties with a norm such that the distance between any two points is induced by the norm of their difference: \[ \text{dist}(x, y) = \|x - y\| \] where the norm is the Euclidean norm defined as .
Inner product on `Space d` defined as
#instInnerRealThe definition provides an inner product structure on the -dimensional space `Space d` over the real numbers . For any two elements , their inner product is defined as the sum of the products of their components:
For any dimension and any two vectors in the Euclidean space , let denote the zero element of . The inner product of the points and in is equal to the Euclidean inner product of and : where denotes the action of a vector on a point in the space.
in
#inner_applyIn the -dimensional space , the inner product of any two elements is equal to the sum of the products of their components:
is an inner product space over
#instInnerProductSpaceRealFor any dimension , the space is equipped with the structure of an inner product space over the real numbers . The inner product for elements is defined as the sum of the products of their components, , which induces the corresponding norm and metric properties on the space.
Borel measurable space structure on
#instMeasurableSpaceFor a space of dimension (denoted by ), the measurable space structure is defined as the Borel -algebra, which is the -algebra generated by the open sets of its topology.
is a Borel space
#instBorelSpaceFor any natural number , the -dimensional space is a Borel space, meaning that its measurable space structure is defined by the Borel -algebra, which is the -algebra generated by the open sets of its topology.
For any dimension and any two vectors in the -dimensional space , the inner product of and is equal to the sum of the products of their corresponding components: where and denote the -th components of the vectors and .
in
#sum_applyFor any dimension , finite index set , and family of vectors , the -th coordinate of the sum of the vectors is equal to the sum of the -th coordinates of each vector. That is, for any index :
Standard orthonormal basis of
#basisFor any dimension , the standard basis of is an orthonormal basis indexed by the set . This basis provides an isometric isomorphism between the real inner product space and , such that the coordinate representation of a vector is given by its components , preserving the Euclidean () norm.
For any dimension , vector , and index , the -th coordinate of is equal to the -th component of the representation of with respect to the standard orthonormal basis of .
The -th component of equals in
#basis_repr_applyFor any dimension , given a vector in the real inner product space and an index , the -th component of the coordinate representation of with respect to the standard orthonormal basis is equal to the -th coordinate of . That is, \[ (\text{basis.repr } p)_i = p_i \] where is the isometric isomorphism between and the Euclidean space provided by the standard basis.
The -th component of equals
#basis_repr_symm_applyFor any dimension , given a vector in the Euclidean space and an index , the -th component of the element in obtained by the inverse coordinate representation map applied to is equal to the -th component of . That is, \[ (\text{basis.repr}^{-1}(v))_i = v_i \] where is the isometric isomorphism between and provided by the standard orthonormal basis.
in
#basis_applyFor any dimension and indices , the -th component of the -th vector in the standard orthonormal basis of is equal to 1 if and 0 otherwise. In other words, , where is the Kronecker delta.
The -th component of is 1
#basis_selfFor any dimension and index , the -th component of the -th vector in the standard orthonormal basis of is equal to 1. That is, .
in
#inner_basisFor any dimension , let be a vector in the -dimensional real inner product space . For any index , the inner product of with the -th vector of the standard orthonormal basis is equal to the -th component of :
in
#basis_innerFor any dimension , given an index and a vector in the -dimensional real inner product space , the inner product of the -th standard orthonormal basis vector with is equal to the -th component of :
Let be the -dimensional real inner product space and let be its standard orthonormal basis. Let denote the linear isometric isomorphism that maps a vector to its coordinate representation in the Euclidean space , and let be its inverse mapping. For any vector and any coordinate vector , the inner product of their representations satisfies: where the left-hand side is the standard Euclidean inner product on and the right-hand side is the inner product on .
is Finite-Dimensional over
#instFiniteDimensionalRealFor any natural number , the real vector space is finite-dimensional.
For any natural number , the dimension of the real vector space is equal to . That is, .
The rank of equals
#rank_eq_dimFor any natural number , the dimension (or rank) of the real vector space over the field of real numbers is equal to . That is, .
The Fréchet derivative of the basis representation is the representation itself
#fderiv_basis_reprFor any dimension , let be the isometric isomorphism defined by the standard orthonormal basis (the basis representation). For any point , the Fréchet derivative of at is equal to itself, considered as a continuous linear map.
The Fréchet derivative of the inverse basis representation equals the map itself
#fderiv_basis_repr_symmFor any dimension , let be the inverse of the coordinate representation map (the isometric isomorphism) defined by the standard orthonormal basis of . For any vector , the Fréchet derivative of at the point is equal to itself, considered as a continuous linear map.
-th coordinate function on
#coordFor a given dimension , an index (represented by `Fin d`), and a point in the space , the coordinate function returns the -th component of . It is defined as the inner product of the point with the -th vector of the standard orthonormal basis : This value represents the scalar projection of onto the -th axis.
in
#coord_applyFor any dimension , given an index and a point in the space , the value of the -th coordinate function applied to is equal to the -th component of . That is,
-th coordinate continuous linear map on
#coordCLMFor a given dimension and an index , the function is the continuous linear map from to that maps a vector to its -th coordinate. It is defined as the inner product of with the -th standard basis vector :
The coordinate function on is
#coord_contDiffFor a given dimension and an index , the -th coordinate function on , defined as the map , is infinitely differentiable () over the real numbers .
For any dimension , any index , and any point , the value of the -th coordinate continuous linear map applied to is equal to the -th coordinate of : where is defined as the inner product with the -th standard basis vector.
Coordinate notation
#term𝔁The notation represents the coordinate projection function on a -dimensional space . For a given index , maps a point in the space to its -th coordinate.
The coordinate evaluation map is continuous
#eval_continuousIn the -dimensional real vector space , for any index , the coordinate evaluation map , which maps a vector to its -th component, is continuous.
The coordinate evaluation map is differentiable
#eval_differentiableIn the -dimensional real vector space , for any index , the coordinate evaluation map , which maps a vector to its -th component, is differentiable over .
Coordinate projections on are
#eval_contDiffFor any dimension , any order of differentiability , and any index , the -th coordinate function from the -dimensional real inner product space to is -times continuously differentiable () over .
Continuous linear equivalence
#equivPiFor a natural number , the function `Space.equivPi` defines a continuous linear equivalence (a topological vector space isomorphism) between the -dimensional space and the space of -tuples of real numbers (formally represented as the type of functions ). This map identifies an element with its coordinate representation , and its inverse constructs a point in from a given vector of coordinates.
The map from coordinates to is continuous
#mk_continuousFor any natural number , the map that sends a coordinate vector (represented as a function ) to its corresponding point in the -dimensional space is continuous.
The map is differentiable
#mk_differentiableFor any natural number , the function that maps a -tuple of real numbers (represented as a function ) to its corresponding point in is differentiable over .
The map is for all
#mk_contDiffFor any natural number and any , the map that sends a vector of real coordinates (represented as a function ) to its corresponding point in the -dimensional space is -times continuously differentiable () over .
The Fréchet derivative of is
#fderiv_mkFor any natural number and any -tuple of real numbers , the Fréchet derivative of the coordinate-to-space construction map at the point is equal to the inverse of the canonical continuous linear equivalence .
The Fréchet derivative of the valuation map on is
#fderiv_valFor any dimension and any point , the Fréchet derivative of the valuation map (which identifies a point with its coordinate representation) evaluated at is equal to the continuous linear equivalence .
The vector addition map is on
#contDiffOn_vaddFor any dimension and any fixed point , the mapping from the Euclidean space (represented as `EuclideanSpace ℝ (Fin d)`) to defined by is on the entire domain .
The map on is differentiable
#vadd_differentiableFor any dimension and any fixed element , the function defined by is differentiable over the real numbers , where is the -dimensional Euclidean space.
The vector subtraction map is on
#contDiffOn_vsubFor any dimension and any fixed point , the function defined by (where denotes the vector subtraction) is (analytic) on the entire space .
The map on is differentiable
#vsub_differentiableFor any dimension and any fixed element , the function defined by is differentiable over the real numbers .
The -th component of the Fréchet derivative is the derivative of the -th component function
#fderiv_space_componentsLet be a real normed space and be a natural number. Let be a function that is differentiable at a point . For any coordinate index and any vector , the -th component of the Fréchet derivative of at applied to is equal to the Fréchet derivative of the -th component function (defined by ) evaluated at and . In mathematical notation:
Direction of a non-zero vector
#toDirectionFor any non-zero element in the -dimensional space , the function `toDirection` returns the direction (unit vector) of with respect to the origin. The unit vector components of the resulting direction are defined by normalizing : \[ \text{unit}(x) = \frac{1}{\|x\|} x \] where is the Euclidean norm of . The condition ensures that the norm is non-zero, making the scalar multiplication well-defined.
for a direction
#direction_unit_sq_sumFor any direction in a -dimensional space, the sum of the squares of the components of its associated unit vector is equal to 1: \[ \sum_{i} (s.\text{unit}_i)^2 = 1 \] where ranges over the indices of the dimensions .
Linear isometric equivalence
#oneEquivThe linear isometric equivalence between the one-dimensional space and the real numbers is defined by the mapping , where is the unique coordinate of the vector . This isomorphism preserves the vector space structure and the norm, such that for any , the norm equals the absolute value .
The linear isometric equivalence is defined such that for any , its image is the zeroth coordinate .
The inverse map sends to the vector with coordinate in
#oneEquiv_symm_coeThe inverse of the linear isometric equivalence is the function from to that maps a real number to the vector whose unique coordinate is , i.e., .
Let be the linear isometric equivalence between the one-dimensional space and the real numbers. For any real number and any index (the unique index for a 1-dimensional vector), the -th component of the vector is equal to .
The map is continuous
#oneEquiv_continuousThe linear isometric equivalence , which identifies a vector in the one-dimensional space with its unique real coordinate , is continuous.
The inverse map is continuous
#oneEquiv_symm_continuousLet be the linear isometric equivalence identifying the one-dimensional space with the real numbers. The inverse map , which maps a real number to its corresponding vector in , is continuous.
Continuous linear equivalence
#oneEquivCLEThe continuous linear equivalence between the one-dimensional space and the real numbers is a topological vector space isomorphism. It establishes a bijective linear map between and such that both the map and its inverse are continuous. This equivalence is based on the underlying linear isometric equivalence that identifies a vector in with its unique real coordinate.
is a Measurable Embedding
#oneEquiv_measurableEmbeddingThe linear isometric equivalence , which maps a vector in the one-dimensional space to its unique real coordinate, is a measurable embedding. This implies that the map is injective and that a set is measurable if and only if its image is measurable in with respect to their respective Borel -algebras.
The inverse of the equivalence is a measurable embedding
#oneEquiv_symm_measurableEmbeddingThe inverse of the linear isometric equivalence between the one-dimensional space and the real numbers is a measurable embedding.
is measure-preserving
#oneEquiv_measurePreservingThe linear isometric equivalence , which maps a vector in the one-dimensional space to its unique real coordinate, is a measure-preserving map with respect to the volume measures (Lebesgue measures) on and .
The inverse equivalence is measure-preserving
#oneEquiv_symm_measurePreservingThe inverse of the linear isometric equivalence is a measure-preserving map with respect to the standard volume measures (Lebesgue measures) on and .
-diffeomorphism between `manifoldStructure d` and
#modelDiffeoFor a given dimension , the identity map on the set defines a -diffeomorphism between two manifold structures: the specific structure denoted by `manifoldStructure d` and the canonical manifold structure induced by the real vector space structure of .
For any dimension and any point in the space , the -diffeomorphism (which identifies the specific manifold structure of the space with its canonical vector space manifold structure) maps the point to itself: \[ \text{modelDiffeo}(p) = p \]
equals the manifold derivative of applied to the -th unit vector
#basis_eq_mfderiv_modelDiffeo_singleFor a given dimension , an index , and any point , the -th vector of the standard orthonormal basis of is equal to the manifold Fréchet derivative of the diffeomorphism at applied to the -th standard basis vector of the Euclidean space . Mathematically: where is the manifold Fréchet derivative at point , and is the vector in the Euclidean space with at the -th coordinate and elsewhere.
For any dimension , let be a vector in the -dimensional Euclidean space and be an element of . The norm of the element resulting from the additive action of on , denoted by , is less than or equal to the sum of the norm of and the norm of : \[ \|v +_{\text{v}} s\| \le \|v\| + \|s\| \] where denotes the Euclidean norm.
The map is differentiable over
#differentiable_vaddFor any dimension , let be a vector in the -dimensional Euclidean space . The map from to itself, which represents the additive action of on , is differentiable over .
The Fréchet derivative of the translation is the identity map
#fderiv_vaddFor any dimension and any vector in the -dimensional Euclidean space , the Fréchet derivative of the translation map from to itself is the identity continuous linear map at every point . In mathematical notation: where denotes the Fréchet derivative and is the identity map on .
The translation has temperate growth
#vadd_hasTemperateGrowthFor any dimension and any vector in the -dimensional Euclidean space , the translation map from to itself has temperate growth. (A function has temperate growth if its norm is bounded by a polynomial in the norm of its argument.)
