Main definitions #
ScaledReal ν n: ℝ with norm|x| · νⁿ
Positive Reals #
Equations
- PosReal.instCoeReal = { coe := Subtype.val }
Scaled Real Numbers #
ScaledReal ν n is ℝ with norm ‖x‖ = |x| · νⁿ.
The parameters ν and n are not used in the definition (which is just ℝ), but they
create distinct types with different Norm instances via inferInstanceAs.
This allows lp (ScaledReal ν) 1 to compute the weighted norm Σₙ |aₙ| νⁿ automatically.
Borrow algebraic instances from ℝ
Equations
Equations
Equations
Equations
Equations
Coercion from ScaledReal to ℝ. This is the identity since ScaledReal is definitionally ℝ.
Equations
The instance of type Norm for ScaledReal: ‖x‖ = |x| · νⁿ
Equations
- ScaledReal.instNorm = { norm := fun (x : ScaledReal ν n) => |↑x| * ↑ν ^ n }
ScaledReal ν n is a normed abelian group.
This instance establishes that ScaledReal ν n is a metric space where the
distance is induced by the norm: d(x, y) = ‖x - y‖.
Required properties:
dist_self: d(x, x) = 0dist_comm: d(x, y) = d(y, x)dist_triangle: d(x, z) ≤ d(x, y) + d(y, z)eq_of_dist_eq_zero: d(x, y) = 0 → x = y
This is a prerequisite for NormedSpace and enables the use of ScaledReal
in Mathlib's lp space construction.
Equations
- One or more equations did not get rendered due to their size.
ScaledReal ν n is a normed vector space over ℝ.
This instance proves that scalar multiplication is compatible with the norm: ‖c • x‖ = |c| · ‖x‖
Together with instNormedAddCommGroup, this makes ScaledReal ν n a normed
space, enabling:
- Use as fiber type in
lp (ScaledReal ν) pfor weighted ℓᵖ spaces - Completeness (Banach space structure inherited from ℝ)
- Continuous linear maps and Fréchet derivatives
- Integration with Mathlib's analysis library
Equations
- ScaledReal.instNormedSpace = { toModule := ScaledReal.instModuleReal, norm_smul_le := ⋯ }
ScaledReal ν n is finite-dimensional over ℝ since it is just ℝ with a rescaled norm.
Completeness of ScaledReal ν n, inherited from finite dimensionality.
Additive isomorphism from ℝ to ScaledReal