A Hilbert space is a complex vector space with an inner product , linear in and conjugate-linear in , with for , which is complete for the norm : every Cauchy sequence converges in . It is separable if it has a countable dense subset.
An orthonormal basis is an orthonormal family whose finite linear combinations are dense; then every satisfies (convergent in norm) and Parseval's identity . Every Hilbert space has an orthonormal basis; it is countable exactly when is separable, and two Hilbert spaces are unitarily isomorphic exactly when their bases have the same cardinality. So every separable Hilbert space is isomorphic to or to .
Two structural facts are used constantly. Projection theorem: for every closed subspace , , and the orthogonal projection onto is a bounded operator. Riesz representation: every bounded linear functional is for a unique , with ; this is what makes bras well defined.
Examples: for -level systems; with basis the number states for a bosonic mode; , square-integrable wavefunctions modulo equality almost everywhere, for a particle on a line. The two infinite-dimensional examples are isomorphic, via the Hermite functions. See chapter II of Reed and Simon and chapter I of Conway.