WithAbs #
WithAbs v
is a type synonym for a semiring R
which depends on an absolute value. The point of
this is to allow the type class inference system to handle multiple sources of instances that
arise from absolute values. See NumberTheory.NumberField.Completion
for an example of this
being used to define Archimedean completions of a number field.
Main definitions #
WithAbs
: type synonym for a semiring which depends on an absolute value. This is a function that takes an absolute value on a semiring and returns the semiring. This can be used to assign and infer instances on a semiring that depend on absolute values.WithAbs.equiv v
: the canonical (type) equivalence betweenWithAbs v
andR
.WithAbs.ringEquiv v
: The canonical ring equivalence betweenWithAbs v
andR
.AbsoluteValue.completion
: the uniform space completion of a fieldK
according to the uniform structure defined by the specified real absolute value.
Type synonym for a semiring which depends on an absolute value. This is a function that takes an absolute value on a semiring and returns the semiring. We use this to assign and infer instances on a semiring that depend on absolute values.
Instances For
Canonical equivalence between WithAbs v
and R
.
Equations
- WithAbs.equiv v = Equiv.refl (WithAbs v)
Instances For
Equations
- ⋯ = ⋯
Equations
Equations
Equations
- WithAbs.instRing v = inferInstanceAs (Ring R)
Equations
- WithAbs.instInhabited v = { default := 0 }
Equations
- WithAbs.normedRing v = v.toNormedRing
Equations
- WithAbs.normedField v = v.toNormedField
WithAbs.equiv
preserves the ring structure.
The completion of a field at an absolute value.
If the absolute value v
factors through an embedding f
into a normed field, then
f
is an isometry.
If the absolute value v
factors through an embedding f
into a normed field, then
the pseudo metric space associated to the absolute value is the same as the pseudo metric space
induced by f
.
If the absolute value v
factors through an embedding f
into a normed field, then
the uniform structure associated to the absolute value is the same as the uniform structure
induced by f
.
If the absolute value v
factors through an embedding f
into a normed field, then
f
is uniform inducing.
The completion of a field with respect to a real absolute value.
Equations
- v.completion = UniformSpace.Completion (WithAbs v)
Instances For
Equations
If the absolute value of a normed field factors through an embedding into another normed field
L
, then we can extend that embedding to an embedding on the completion v.completion →+* L
.
Equations
Instances For
If the absolute value of a normed field factors through an embedding into another normed field,
then the extended embedding v.completion →+* L
preserves distances.
If the absolute value of a normed field factors through an embedding into another normed field,
then the extended embedding v.completion →+* L
is an isometry.
If the absolute value of a normed field factors through an embedding into another normed field,
then the extended embedding v.completion →+* L
is a closed embedding.
If the absolute value of a normed field factors through an embedding into another normed field that is locally compact, then the completion of the first normed field is also locally compact.