A pre-Hilbert space is a vector space over $\mathbb{K} = \mathbb{R}, \mathbb{C}$ equipped
with a Hermitian inner product $\langle \cdot, \cdot \rangle : H \times H \to \mathbb{K}$ satisfying
linearity in the first argument, conjugate symmetry, and positive-definiteness. In Mathlib this is
modeled by InnerProductSpace ๐ H.
Instances For
Norm from inner product. In a (pre-)Hilbert space $H$, the norm of any $v \in H$ satisfies $\|v\| = \sqrt{\operatorname{Re}\,\langle v, v \rangle}$.
An inner product (given as InnerProductSpace.Core data) induces a NormedAddCommGroup
structure on $H$ via the norm $\|v\| = \langle v, v \rangle^{1/2}$. Hence, if $H$ is a pre-Hilbert
space, then $\|\cdot\|$ is a genuine norm on $H$.
Instances For
Cauchy-Schwarz inequality. In a pre-Hilbert space $H$, for all $u, v \in H$ we have $|\langle u, v \rangle| \le \|u\|\,\|v\|$.
Parallelogram law (and its converse). A normed vector space $H$ over $\mathbb{K}$ satisfies the parallelogram law $$\|u+v\|^2 + \|u-v\|^2 = 2(\|u\|^2 + \|v\|^2) \quad \forall u, v \in H$$ if and only if $H$ is a pre-Hilbert space, i.e. there exists an inner product on $H$ inducing its norm.
Bessel's inequality. Let $\{e_n\}$ be a (countable) orthonormal family in a pre-Hilbert space $H$. Then for every $u \in H$, $$\sum_n |\langle u, e_n \rangle|^2 \le \|u\|^2.$$
Continuity of the inner product. If $u_n \to a$ and $v_n \to b$ in a pre-Hilbert space, then $\langle u_n, v_n \rangle \to \langle a, b \rangle$.
Parseval's identity (Hilbert basis version). If $\{e_i\}_{i \in \iota}$ is a Hilbert basis of $H$, then for all $u \in H$, $$\sum_i |\langle u, e_i \rangle|^2 = \|u\|^2.$$
Parseval's identity. Let $H$ be a Hilbert space and let $\{e_i\}_{i \in \iota}$ be an orthonormal family whose span is dense in $H$ (i.e. an orthonormal basis). Then for all $u \in H$, $$\sum_i |\langle u, e_i \rangle|^2 = \|u\|^2.$$
Separable Hilbert spaces are isometric to $\ell^2$. If $H$ is an infinite-dimensional separable Hilbert space (equivalently, if $H$ admits a countable Hilbert basis indexed by $\mathbb{N}$), then $H$ is isometrically linearly isomorphic to $\ell^2$, the space of square-summable sequences. In particular, the isomorphism preserves both norms and inner products.
Orthogonal projection onto a closed subspace. Let $H$ be a Hilbert space and let $W \subset H$ be a closed subspace. The orthogonal projection $\Pi_W : H \to H$ that sends $v = w + w^\perp$ (with $w \in W$ and $w^\perp \in W^\perp$) to $w$ is a projection operator: it is idempotent ($\Pi_W \circ \Pi_W = \Pi_W$) and has operator norm at most $1$.
Riesz Representation Theorem. Let $H$ be a Hilbert space. Then for every bounded linear functional $f \in H'$, there exists a unique $y \in H$ such that $f(x) = \langle y, x \rangle$ for all $x \in H$, and moreover $\|f\| = \|y\|$.
A Hilbert space with a countable orthonormal basis is separable. If a Hilbert space $H$ admits a Hilbert basis indexed by a countable set, then $H$ is separable: the closure of the $\mathbb{K}$-linear span of the basis contains a countable dense subset of $H$.