The areas / V16. Normed spaces and functional analysis
Mathlib.Analysis.InnerProductSpace.Defs
92 declarations. Mathlib docs Β· Source
Inner product spaces
This file defines inner product spaces.
Hilbert spaces can be obtained using the set of assumptions
[RCLike π] [NormedAddCommGroup E] [InnerProductSpace π E] [CompleteSpace E].
For convenience, a variable alias HilbertSpace is provided so that one can write
variable? [HilbertSpace π E] and get this as a suggestion.
An inner product space is a vector space endowed with an inner product. It generalizes the notion of
dot product in β^n and provides the means of defining the length of a vector and the angle between
two vectors. In particular vectors x and y are orthogonal if their inner product equals zero.
We define both the real and complex cases at the same time using the RCLike typeclass.
Rather than defining the norm on an inner product space to be β(re βͺx, xβ«), we assume that a norm
is given, and add a hypothesis stating that βxβ ^ 2 = re βͺx, xβ«. This makes it possible to
handle spaces where the norm is equal, but not defeq, to the square root of the
inner product. Defining a norm starting from an inner product is handled via the
InnerProductSpace.Core structure.
This file is intended to contain the minimal amount of machinery needed to define inner product
spaces, and to construct a normed space from an inner product space. Many more general lemmas can
be found in Analysis.InnerProductSpace.Basic. For the specific construction of an inner product
structure on n β π for π = β or β, see EuclideanSpace in
Analysis.InnerProductSpace.PiL2.
Main results
- We define the class
InnerProductSpace π EextendingNormedSpace π Ewith a number of basic properties, most notably the Cauchy-Schwarz inequality. Hereπis understood to be eitherβorβ, through theRCLiketypeclass.
Notation
We globally denote the real and complex inner products by βͺΒ·, Β·β«_β and βͺΒ·, Β·β«_β respectively.
We also provide two notation namespaces: RealInnerProductSpace, ComplexInnerProductSpace,
which respectively introduce the plain notation βͺΒ·, Β·β« for the real and complex inner product.
Implementation notes
We choose the convention that inner products are conjugate linear in the first argument and linear in the second.
Tags
inner product space, Hilbert space, norm
References
- [ClΓ©ment & Martin, The Lax-Milgram Theorem. A detailed proof to be formalized in Coq]
- [ClΓ©ment & Martin, A Coq formal proof of the LaxβMilgram theorem]
The Coq code is available at the following address: http://www.lri.fr/~sboldo/elfic/index.html
Constructing a normed space structure from an inner product
In the definition of an inner product space, we require the existence of a norm, which is equal
(but maybe not defeq) to the square root of the scalar product. This makes it possible to put
an inner product space structure on spaces with a preexisting norm (for instance β), with good
properties. However, sometimes, one would like to define the norm starting only from a well-behaved
scalar product. This is what we implement in this paragraph, starting from a structure
InnerProductSpace.Core stating that we have a nice scalar product.
Our goal here is not to develop a whole theory with all the supporting API, as this will be done
below for InnerProductSpace. Instead, we implement the bare minimum to go as directly as
possible to the construction of the norm and the proof of the triangular inequality.
Warning: Do not use this Core structure if the space you are interested in already has a norm
instance defined on it, otherwise this will create a second non-defeq norm instance!
def InnerProductSpace.ctorIdx E1 #
{π : Type u_4} β {E : Type u_5} β {inst : RCLike π} β {inst_1 : SeminormedAddCommGroup E} β InnerProductSpace π E β β
theorem InnerProductSpace.Core.mk.inj E1 #
β {π : Type u_4} {F : Type u_5} {inst : RCLike π} {inst_1 : AddCommGroup F} {inst_2 : Module π F}
{toCore : PreInnerProductSpace.Core π F} {definite : β (x : F), inner π x x = 0 β x = 0}
{toCore_1 : PreInnerProductSpace.Core π F} {definite_1 : β (x : F), inner π x x = 0 β x = 0},
{ toCore := toCore, definite := definite } = { toCore := toCore_1, definite := definite_1 } β toCore = toCore_1
def InnerProductSpace.Core.ctorIdx E1 #
{π : Type u_4} β
{F : Type u_5} β
{inst : RCLike π} β {inst_1 : AddCommGroup F} β {inst_2 : Module π F} β InnerProductSpace.Core π F β β
def Inner.ctorIdx E1 #
{π : Type u_4} β {E : Type u_5} β Inner π E β β
def PreInnerProductSpace.Core.ctorIdx E1 #
{π : Type u_4} β
{F : Type u_5} β
{inst : RCLike π} β {inst_1 : AddCommGroup F} β {inst_2 : Module π F} β PreInnerProductSpace.Core π F β β
def HilbertSpace.ctorIdx E1 #
{π : Type u_4} β
{E : Type u_5} β
{inst : RCLike π} β
{inst_1 : NormedAddCommGroup E} β
{inst_2 : InnerProductSpace π E} β {inst_3 : CompleteSpace E} β HilbertSpace π E β β
theorem PreInnerProductSpace.Core.mk.injEq E0 #
β {π : Type u_4} {F : Type u_5} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F] (toInner : Inner π F)
(conj_inner_symm : β (x y : F), (starRingEnd π) (inner π y x) = inner π x y)
(re_inner_nonneg : β (x : F), 0 β€ RCLike.re (inner π x x))
(add_left : β (x y z : F), inner π (x + y) z = inner π x z + inner π y z)
(smul_left : β (x y : F) (r : π), inner π (r β’ x) y = (starRingEnd π) r * inner π x y) (toInner_1 : Inner π F)
(conj_inner_symm_1 : β (x y : F), (starRingEnd π) (inner π y x) = inner π x y)
(re_inner_nonneg_1 : β (x : F), 0 β€ RCLike.re (inner π x x))
(add_left_1 : β (x y z : F), inner π (x + y) z = inner π x z + inner π y z)
(smul_left_1 : β (x y : F) (r : π), inner π (r β’ x) y = (starRingEnd π) r * inner π x y),
({ toInner := toInner, conj_inner_symm := conj_inner_symm, re_inner_nonneg := re_inner_nonneg, add_left := add_left,
smul_left := smul_left } =
{ toInner := toInner_1, conj_inner_symm := conj_inner_symm_1, re_inner_nonneg := re_inner_nonneg_1,
add_left := add_left_1, smul_left := smul_left_1 }) =
(toInner = toInner_1)
theorem InnerProductSpace.Core.mk.injEq E0 #
β {π : Type u_4} {F : Type u_5} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
(toCore : PreInnerProductSpace.Core π F) (definite : β (x : F), inner π x x = 0 β x = 0)
(toCore_1 : PreInnerProductSpace.Core π F) (definite_1 : β (x : F), inner π x x = 0 β x = 0),
({ toCore := toCore, definite := definite } = { toCore := toCore_1, definite := definite_1 }) = (toCore = toCore_1)
theorem PreInnerProductSpace.Core.mk.inj E1 #
β {π : Type u_4} {F : Type u_5} {inst : RCLike π} {inst_1 : AddCommGroup F} {inst_2 : Module π F} {toInner : Inner π F}
{conj_inner_symm : β (x y : F), (starRingEnd π) (inner π y x) = inner π x y}
{re_inner_nonneg : β (x : F), 0 β€ RCLike.re (inner π x x)}
{add_left : β (x y z : F), inner π (x + y) z = inner π x z + inner π y z}
{smul_left : β (x y : F) (r : π), inner π (r β’ x) y = (starRingEnd π) r * inner π x y} {toInner_1 : Inner π F}
{conj_inner_symm_1 : β (x y : F), (starRingEnd π) (inner π y x) = inner π x y}
{re_inner_nonneg_1 : β (x : F), 0 β€ RCLike.re (inner π x x)}
{add_left_1 : β (x y z : F), inner π (x + y) z = inner π x z + inner π y z}
{smul_left_1 : β (x y : F) (r : π), inner π (r β’ x) y = (starRingEnd π) r * inner π x y},
{ toInner := toInner, conj_inner_symm := conj_inner_symm, re_inner_nonneg := re_inner_nonneg, add_left := add_left,
smul_left := smul_left } =
{ toInner := toInner_1, conj_inner_symm := conj_inner_symm_1, re_inner_nonneg := re_inner_nonneg_1,
add_left := add_left_1, smul_left := smul_left_1 } β
toInner = toInner_1
class Inner E1 #
Type u_4 β Type u_5 β Type (max u_4 u_5)
Syntactic typeclass for types endowed with an inner product
ctor Inner.mk E0 #
{π : Type u_4} β {E : Type u_5} β (E β E β π) β Inner π E
abbrev Inner.inner E1 #
(π : Type u_4) β {E : Type u_5} β [self : Inner π E] β E β E β π
The inner product function.
def InnerProductSpace.Β«termβͺ_,_β«__Β» E1 #
Lean.ParserDescr
The inner product with values in π.
def RealInnerProductSpace.Β«termβͺ_,_β«Β» E1 #
Lean.ParserDescr
The inner product with values in β.
def ComplexInnerProductSpace.Β«termβͺ_,_β«Β» E1 #
Lean.ParserDescr
The inner product with values in β.
class InnerProductSpace E3 #
(π : Type u_4) β (E : Type u_5) β [RCLike π] β [SeminormedAddCommGroup E] β Type (max u_4 u_5)
A (pre) inner product space is a vector space with an additional operation called inner product.
The (semi)norm could be derived from the inner product, instead we require the existence of a
seminorm and the fact that βxβ^2 = re βͺx, xβ« to be able to put instances on π or product spaces.
Note that NormedSpace does not assume that βxβ=0 implies x=0 (it is rather a seminorm).
To construct a seminorm from an inner product, see PreInnerProductSpace.ofCore.
instance InnerProductSpace.toNormedSpace E0 #
{π : Type u_4} β
{E : Type u_5} β
{inst : RCLike π} β {inst_1 : SeminormedAddCommGroup E} β [self : InnerProductSpace π E] β NormedSpace π E
ctor InnerProductSpace.mk E0 #
{π : Type u_4} β
{E : Type u_5} β
[inst : RCLike π] β
[inst_1 : SeminormedAddCommGroup E] β
[toNormedSpace : NormedSpace π E] β
[toInner : Inner π E] β
(β (x : E), βxβ ^ 2 = RCLike.re (inner π x x)) β
(β (x y : E), (starRingEnd π) (inner π y x) = inner π x y) β
(β (x y z : E), inner π (x + y) z = inner π x z + inner π y z) β
(β (x y : E) (r : π), inner π (r β’ x) y = (starRingEnd π) r * inner π x y) β InnerProductSpace π E
instance InnerProductSpace.toInner E0 #
{π : Type u_4} β
{E : Type u_5} β {inst : RCLike π} β {inst_1 : SeminormedAddCommGroup E} β [self : InnerProductSpace π E] β Inner π E
theorem InnerProductSpace.norm_sq_eq_re_inner E1 #
β {π : Type u_4} {E : Type u_5} {inst : RCLike π} {inst_1 : SeminormedAddCommGroup E} [self : InnerProductSpace π E]
(x : E), βxβ ^ 2 = RCLike.re (inner π x x)
The inner product induces the norm.
theorem InnerProductSpace.conj_inner_symm E1 #
β {π : Type u_4} {E : Type u_5} {inst : RCLike π} {inst_1 : SeminormedAddCommGroup E} [self : InnerProductSpace π E]
(x y : E), (starRingEnd π) (inner π y x) = inner π x y
The inner product is Hermitian, taking the conj swaps the arguments.
theorem InnerProductSpace.add_left E1 #
β {π : Type u_4} {E : Type u_5} {inst : RCLike π} {inst_1 : SeminormedAddCommGroup E} [self : InnerProductSpace π E]
(x y z : E), inner π (x + y) z = inner π x z + inner π y z
The inner product is additive in the first coordinate.
theorem InnerProductSpace.smul_left E1 #
β {π : Type u_4} {E : Type u_5} {inst : RCLike π} {inst_1 : SeminormedAddCommGroup E} [self : InnerProductSpace π E]
(x y : E) (r : π), inner π (r β’ x) y = (starRingEnd π) r * inner π x y
The inner product is conjugate linear in the first coordinate.
class PreInnerProductSpace.Core E1 #
(π : Type u_4) β (F : Type u_5) β [inst : RCLike π] β [inst_1 : AddCommGroup F] β [Module π F] β Type (max u_4 u_5)
A structure requiring that a scalar product is positive semidefinite and symmetric.
abbrev PreInnerProductSpace.Core.toInner E1 #
{π : Type u_4} β
{F : Type u_5} β
[inst : RCLike π] β [inst_1 : AddCommGroup F] β [inst_2 : Module π F] β PreInnerProductSpace.Core π F β Inner π F
ctor PreInnerProductSpace.Core.mk E0 #
{π : Type u_4} β
{F : Type u_5} β
[inst : RCLike π] β
[inst_1 : AddCommGroup F] β
[inst_2 : Module π F] β
(toInner : Inner π F) β
(β (x y : F), (starRingEnd π) (inner π y x) = inner π x y) β
(β (x : F), 0 β€ RCLike.re (inner π x x)) β
(β (x y z : F), inner π (x + y) z = inner π x z + inner π y z) β
(β (x y : F) (r : π), inner π (r β’ x) y = (starRingEnd π) r * inner π x y) β
PreInnerProductSpace.Core π F
theorem PreInnerProductSpace.Core.conj_inner_symm E1 #
β {π : Type u_4} {F : Type u_5} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
(self : PreInnerProductSpace.Core π F) (x y : F), (starRingEnd π) (inner π y x) = inner π x y
The inner product is Hermitian, taking the conj swaps the arguments.
theorem PreInnerProductSpace.Core.re_inner_nonneg E1 #
β {π : Type u_4} {F : Type u_5} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
(self : PreInnerProductSpace.Core π F) (x : F), 0 β€ RCLike.re (inner π x x)
The inner product is positive (semi)definite.
theorem PreInnerProductSpace.Core.add_left E1 #
β {π : Type u_4} {F : Type u_5} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
(self : PreInnerProductSpace.Core π F) (x y z : F), inner π (x + y) z = inner π x z + inner π y z
The inner product is additive in the first coordinate.
theorem PreInnerProductSpace.Core.smul_left E1 #
β {π : Type u_4} {F : Type u_5} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
(self : PreInnerProductSpace.Core π F) (x y : F) (r : π), inner π (r β’ x) y = (starRingEnd π) r * inner π x y
The inner product is conjugate linear in the first coordinate.
class InnerProductSpace.Core E1 #
(π : Type u_4) β (F : Type u_5) β [inst : RCLike π] β [inst_1 : AddCommGroup F] β [Module π F] β Type (max u_4 u_5)
A structure requiring that a scalar product is positive definite. Some theorems that
require these assumptions are put under section InnerProductSpace.Core.
abbrev InnerProductSpace.Core.toCore E1 #
{π : Type u_4} β
{F : Type u_5} β
[inst : RCLike π] β
[inst_1 : AddCommGroup F] β [inst_2 : Module π F] β InnerProductSpace.Core π F β PreInnerProductSpace.Core π F
ctor InnerProductSpace.Core.mk E0 #
{π : Type u_4} β
{F : Type u_5} β
[inst : RCLike π] β
[inst_1 : AddCommGroup F] β
[inst_2 : Module π F] β
(toCore : PreInnerProductSpace.Core π F) β (β (x : F), inner π x x = 0 β x = 0) β InnerProductSpace.Core π F
theorem InnerProductSpace.Core.definite E1 #
β {π : Type u_4} {F : Type u_5} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
(self : InnerProductSpace.Core π F) (x : F), inner π x x = 0 β x = 0
The inner product is positive definite.
instance instCoreOfCore E0 #
(π : Type u_4) β
(F : Type u_5) β
[inst : RCLike π] β
[inst_1 : AddCommGroup F] β
[inst_2 : Module π F] β [cd : InnerProductSpace.Core π F] β PreInnerProductSpace.Core π F
def PreInnerProductSpace.toCore E1 #
{π : Type u_1} β
{E : Type u_2} β
[inst : RCLike π] β
[inst_1 : SeminormedAddCommGroup E] β [c : InnerProductSpace π E] β PreInnerProductSpace.Core π E
Define PreInnerProductSpace.Core from InnerProductSpace. Defined to reuse lemmas about
PreInnerProductSpace.Core for PreInnerProductSpaces. Note that the Seminorm instance provided
by PreInnerProductSpace.Core.norm is propositionally but not definitionally equal to the original
norm.
def InnerProductSpace.toCore E1 #
{π : Type u_1} β
{E : Type u_2} β
[inst : RCLike π] β [inst_1 : NormedAddCommGroup E] β [c : InnerProductSpace π E] β InnerProductSpace.Core π E
Define InnerProductSpace.Core from InnerProductSpace. Defined to reuse lemmas about
InnerProductSpace.Core for InnerProductSpaces. Note that the Norm instance provided by
InnerProductSpace.Core.norm is propositionally but not definitionally equal to the original
norm.
def InnerProductSpace.Core.toPreInner' E1 #
{π : Type u_1} β
{F : Type u_3} β
[inst : RCLike π] β
[inst_1 : AddCommGroup F] β [inst_2 : Module π F] β [c : PreInnerProductSpace.Core π F] β Inner π F
Inner product defined by the PreInnerProductSpace.Core structure. We can't reuse
PreInnerProductSpace.Core.toInner because it takes PreInnerProductSpace.Core as an explicit
argument.
def InnerProductSpace.Core.normSq E1 #
{π : Type u_1} β
{F : Type u_3} β
[inst : RCLike π] β [inst_1 : AddCommGroup F] β [inst_2 : Module π F] β [c : PreInnerProductSpace.Core π F] β F β β
The norm squared function for PreInnerProductSpace.Core structure.
theorem InnerProductSpace.Core.inner_conj_symm E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x y : F), (starRingEnd π) (inner π y x) = inner π x y
theorem InnerProductSpace.Core.inner_self_nonneg E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] {x : F}, 0 β€ RCLike.re (inner π x x)
theorem InnerProductSpace.Core.inner_self_im E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x : F), RCLike.im (inner π x x) = 0
theorem InnerProductSpace.Core.inner_add_left E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x y z : F), inner π (x + y) z = inner π x z + inner π y z
theorem InnerProductSpace.Core.inner_add_right E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x y z : F), inner π x (y + z) = inner π x y + inner π x z
theorem InnerProductSpace.Core.ofReal_normSq_eq_inner_self E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x : F), β(InnerProductSpace.Core.normSq x) = inner π x x
theorem InnerProductSpace.Core.inner_re_symm E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x y : F), RCLike.re (inner π x y) = RCLike.re (inner π y x)
theorem InnerProductSpace.Core.inner_im_symm E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x y : F), RCLike.im (inner π x y) = -RCLike.im (inner π y x)
theorem InnerProductSpace.Core.inner_smul_left E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x y : F) {r : π}, inner π (r β’ x) y = (starRingEnd π) r * inner π x y
theorem InnerProductSpace.Core.inner_smul_right E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x y : F) {r : π}, inner π x (r β’ y) = r * inner π x y
theorem InnerProductSpace.Core.inner_zero_left E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x : F), inner π 0 x = 0
theorem InnerProductSpace.Core.inner_zero_right E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x : F), inner π x 0 = 0
theorem InnerProductSpace.Core.inner_self_of_eq_zero E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] {x : F}, x = 0 β inner π x x = 0
theorem InnerProductSpace.Core.normSq_eq_zero_of_eq_zero E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] {x : F}, x = 0 β InnerProductSpace.Core.normSq x = 0
theorem InnerProductSpace.Core.ne_zero_of_inner_self_ne_zero E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] {x : F}, inner π x x β 0 β x β 0
theorem InnerProductSpace.Core.inner_self_ofReal_re E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x : F), β(RCLike.re (inner π x x)) = inner π x x
theorem InnerProductSpace.Core.norm_inner_symm E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x y : F), βinner π x yβ = βinner π y xβ
theorem InnerProductSpace.Core.inner_neg_left E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x y : F), inner π (-x) y = -inner π x y
theorem InnerProductSpace.Core.inner_neg_right E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x y : F), inner π x (-y) = -inner π x y
theorem InnerProductSpace.Core.inner_sub_left E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x y z : F), inner π (x - y) z = inner π x z - inner π y z
theorem InnerProductSpace.Core.inner_sub_right E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x y z : F), inner π x (y - z) = inner π x y - inner π x z
theorem InnerProductSpace.Core.inner_mul_symm_re_eq_norm E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x y : F), RCLike.re (inner π x y * inner π y x) = βinner π x y * inner π y xβ
theorem InnerProductSpace.Core.inner_add_add_self E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x y : F),
inner π (x + y) (x + y) = inner π x x + inner π x y + inner π y x + inner π y y
Expand βͺx + y, x + yβ«
theorem InnerProductSpace.Core.inner_sub_sub_self E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x y : F),
inner π (x - y) (x - y) = inner π x x - inner π x y - inner π y x + inner π y y
theorem InnerProductSpace.Core.inner_smul_ofReal_left E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x y : F) {t : β}, inner π (βt β’ x) y = inner π x y * βt
theorem InnerProductSpace.Core.inner_smul_ofReal_right E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x y : F) {t : β}, inner π x (βt β’ y) = inner π x y * βt
theorem InnerProductSpace.Core.re_inner_smul_ofReal_smul_self E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x : F) {t : β},
RCLike.re (inner π (βt β’ x) (βt β’ x)) = InnerProductSpace.Core.normSq x * t * t
theorem InnerProductSpace.Core.cauchy_schwarz_aux' E2 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x y : F) (t : β),
0 β€ InnerProductSpace.Core.normSq x * t * t + 2 * RCLike.re (inner π x y) * t + InnerProductSpace.Core.normSq y
An auxiliary equality useful to prove the CauchyβSchwarz inequality. Here we use the standard argument involving the discriminant of quadratic form.
theorem InnerProductSpace.Core.cauchy_schwarz_aux E0 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x y : F),
InnerProductSpace.Core.normSq (inner π x y β’ x - inner π x x β’ y) =
InnerProductSpace.Core.normSq x *
(InnerProductSpace.Core.normSq x * InnerProductSpace.Core.normSq y - βinner π x yβ ^ 2)
Another auxiliary equality related with the CauchyβSchwarz inequality: the square of the
seminorm of βͺx, yβ« β’ x - βͺx, xβ« β’ y is equal to βxβ ^ 2 * (βxβ ^ 2 * βyβ ^ 2 - ββͺx, yβ«β ^ 2).
We use InnerProductSpace.ofCore.normSq x etc. (defeq to is_R_or_C.re βͺx, xβ«) instead of
βxβ ^ 2 etc. to avoid extra rewrites when applying it to an InnerProductSpace.
theorem InnerProductSpace.Core.inner_mul_inner_self_le E2 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x y : F),
βinner π x yβ * βinner π y xβ β€ RCLike.re (inner π x x) * RCLike.re (inner π y y)
CauchyβSchwarz inequality.
We need this for the PreInnerProductSpace.Core structure to prove the triangle inequality below
when showing the core is a normed group and to take the quotient.
(This is not intended for general use; see Analysis.InnerProductSpace.Basic for a variety of
versions of Cauchy-Schwarz for an inner product space, rather than a PreInnerProductSpace.Core).
def InnerProductSpace.Core.toNorm E3 #
{π : Type u_1} β
{F : Type u_3} β
[inst : RCLike π] β [inst_1 : AddCommGroup F] β [inst_2 : Module π F] β [c : PreInnerProductSpace.Core π F] β Norm F
(Semi)norm constructed from a PreInnerProductSpace.Core structure, defined to be the square
root of the scalar product.
theorem InnerProductSpace.Core.norm_eq_sqrt_re_inner E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x : F), βxβ = β(RCLike.re (inner π x x))
theorem InnerProductSpace.Core.inner_self_eq_norm_mul_norm E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x : F), RCLike.re (inner π x x) = βxβ * βxβ
theorem InnerProductSpace.Core.sqrt_normSq_eq_norm E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x : F), β(InnerProductSpace.Core.normSq x) = βxβ
theorem InnerProductSpace.Core.norm_inner_le_norm E2 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[c : PreInnerProductSpace.Core π F] (x y : F), βinner π x yβ β€ βxβ * βyβ
CauchyβSchwarz inequality with norm
def InnerProductSpace.Core.toSeminormedAddCommGroup E1 #
{π : Type u_1} β
{F : Type u_3} β
[inst : RCLike π] β
[inst_1 : AddCommGroup F] β [inst_2 : Module π F] β [c : PreInnerProductSpace.Core π F] β SeminormedAddCommGroup F
Seminormed group structure constructed from a PreInnerProductSpace.Core structure
def InnerProductSpace.Core.toNormedSpace E1 #
{π : Type u_1} β
{F : Type u_3} β
[inst : RCLike π] β
[inst_1 : AddCommGroup F] β [inst_2 : Module π F] β [c : PreInnerProductSpace.Core π F] β NormedSpace π F
Normed space (which is actually a seminorm in general) structure constructed from a
PreInnerProductSpace.Core structure
theorem InnerProductSpace.Core.toSeminormedSpaceCore E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
(c : PreInnerProductSpace.Core π F), SeminormedSpace.Core π F
Seminormed space core structure constructed from a PreInnerProductSpace.Core structure
def InnerProductSpace.Core.toInner' E1 #
{π : Type u_1} β
{F : Type u_3} β
[inst : RCLike π] β
[inst_1 : AddCommGroup F] β [inst_2 : Module π F] β [cd : InnerProductSpace.Core π F] β Inner π F
Inner product defined by the InnerProductSpace.Core structure. We can't reuse
InnerProductSpace.Core.toInner because it takes InnerProductSpace.Core as an explicit
argument.
theorem InnerProductSpace.Core.inner_self_eq_zero E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[cd : InnerProductSpace.Core π F] {x : F}, inner π x x = 0 β x = 0
theorem InnerProductSpace.Core.normSq_eq_zero E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[cd : InnerProductSpace.Core π F] {x : F}, InnerProductSpace.Core.normSq x = 0 β x = 0
theorem InnerProductSpace.Core.inner_self_ne_zero E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[cd : InnerProductSpace.Core π F] {x : F}, inner π x x β 0 β x β 0
def InnerProductSpace.Core.toNormedAddCommGroup E1 #
{π : Type u_1} β
{F : Type u_3} β
[inst : RCLike π] β
[inst_1 : AddCommGroup F] β [inst_2 : Module π F] β [cd : InnerProductSpace.Core π F] β NormedAddCommGroup F
Normed group structure constructed from an InnerProductSpace.Core structure
theorem InnerProductSpace.Core.toNormedSpaceCore E1 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
(cd : InnerProductSpace.Core π F), NormedSpace.Core π F
Normed space core structure constructed from an InnerProductSpace.Core structure
theorem InnerProductSpace.Core.topology_eq E0 #
β {π : Type u_1} {F : Type u_3} [inst : RCLike π] [inst_1 : AddCommGroup F] [inst_2 : Module π F]
[cd : InnerProductSpace.Core π F] [tF : TopologicalSpace F] [IsTopologicalAddGroup F] [ContinuousConstSMul π F],
ContinuousAt (fun v β¦ inner π v v) 0 β
Bornology.IsVonNBounded π {v | RCLike.re (inner π v v) < 1} β
tF = PseudoMetricSpace.toUniformSpace.toTopologicalSpace
In a topological vector space, if the unit ball of a continuous inner product is von Neumann bounded, then the inner product defines the same topology as the original one.
def InnerProductSpace.Core.toNormedAddCommGroupOfTopology E1 #
{π : Type u_1} β
{F : Type u_3} β
[inst : RCLike π] β
[inst_1 : AddCommGroup F] β
[inst_2 : Module π F] β
[cd : InnerProductSpace.Core π F] β
[tF : TopologicalSpace F] β
[IsTopologicalAddGroup F] β
[ContinuousConstSMul π F] β
ContinuousAt (fun v β¦ inner π v v) 0 β
Bornology.IsVonNBounded π {v | RCLike.re (inner π v v) < 1} β NormedAddCommGroup F
Normed space structure constructed from an InnerProductSpace.Core structure, adjusting the
topology to make sure it is defeq to an already existing topology.
def InnerProductSpace.Core.toNormedSpaceOfTopology E1 #
{π : Type u_1} β
{F : Type u_3} β
[inst : RCLike π] β
[inst_1 : AddCommGroup F] β
[inst_2 : Module π F] β
[cd : InnerProductSpace.Core π F] β
[tF : TopologicalSpace F] β
[inst_3 : IsTopologicalAddGroup F] β
[inst_4 : ContinuousConstSMul π F] β
(h : ContinuousAt (fun v β¦ inner π v v) 0) β
(h' : Bornology.IsVonNBounded π {v | RCLike.re (inner π v v) < 1}) β NormedSpace π F
Normed space structure constructed from an InnerProductSpace.Core structure, adjusting the
topology to make sure it is defeq to an already existing topology.
def InnerProductSpace.ofCore E1 #
{π : Type u_1} β
{F : Type u_3} β
[inst : RCLike π] β
[inst_1 : AddCommGroup F] β [inst_2 : Module π F] β (cd : PreInnerProductSpace.Core π F) β InnerProductSpace π F
Given a PreInnerProductSpace.Core structure on a space, one can use it to turn
the space into a pre-inner product space (i.e., SeminormedAddCommGroup and InnerProductSpace).
The SeminormedAddCommGroup structure is expected to already be defined with
InnerProductSpace.ofCore.toSeminormedAddCommGroup.
def InnerProductSpace.ofCoreOfTopology E1 #
{π : Type u_1} β
{F : Type u_3} β
[inst : RCLike π] β
[inst_1 : AddCommGroup F] β
[hF : Module π F] β
[inst_2 : TopologicalSpace F] β
[inst_3 : IsTopologicalAddGroup F] β
[inst_4 : ContinuousConstSMul π F] β
(cd : InnerProductSpace.Core π F) β
(h : ContinuousAt (fun v β¦ inner π v v) 0) β
(h' : Bornology.IsVonNBounded π {v | RCLike.re (inner π v v) < 1}) β InnerProductSpace π F
Given an InnerProductSpace.Core structure on a space with a topology, one can use it to turn
the space into an inner product space. The NormedAddCommGroup structure is expected
to already be defined with InnerProductSpace.ofCore.toNormedAddCommGroupOfTopology.
structure HilbertSpace E1 #
(π : Type u_4) β
(E : Type u_5) β
[inst : RCLike π] β [inst_1 : NormedAddCommGroup E] β [InnerProductSpace π E] β [CompleteSpace E] β Type
A Hilbert space is a complete normed inner product space.
ctor HilbertSpace.mk E0 #
{π : Type u_4} β
{E : Type u_5} β
[inst : RCLike π] β
[inst_1 : NormedAddCommGroup E] β [inst_2 : InnerProductSpace π E] β [inst_3 : CompleteSpace E] β HilbertSpace π E
instance PUnit.instInnerProductSpace E0 #
{π : Type u_1} β [inst : RCLike π] β InnerProductSpace π PUnit.{u_4 + 1}
theorem PUnit.inner_eq_zero E0 #
β {π : Type u_1} [inst : RCLike π] (x y : PUnit.{u_4 + 1}), inner π x y = 0