The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V16. Normed spaces and functional analysis

Mathlib.Analysis.InnerProductSpace.Subspace

19 declarations and 1 deprecated aliases. Mathlib docs ยท Source

Subspaces of inner product spaces

This file defines the inner-product structure on a subspace of an inner-product space, and proves some theorems about orthogonal families of subspaces.

Inner product space structure on subspaces

Families of mutually-orthogonal subspaces of an inner product space

theorem LinearIsometry.toSpanSingleton.congr_simp E1 #

โˆ€ (๐•œ : Type u_1) (E : Type u_4) [inst : SeminormedAddCommGroup E] [inst_1 : NontriviallyNormedField ๐•œ]
  [inst_2 : NormedSpace ๐•œ E] {v v_1 : E} (e_v : v = v_1) (hv : โ€–vโ€– = 1),
  LinearIsometry.toSpanSingleton ๐•œ E hv = LinearIsometry.toSpanSingleton ๐•œ E โ‹ฏ

instance Submodule.innerProductSpace E0 #

{๐•œ : Type u_1} โ†’
  {E : Type u_2} โ†’
    [inst : RCLike ๐•œ] โ†’
      [inst_1 : SeminormedAddCommGroup E] โ†’
        [inst_2 : InnerProductSpace ๐•œ E] โ†’ (W : Submodule ๐•œ E) โ†’ InnerProductSpace ๐•œ โ†ฅW

Induced inner product on a submodule.

theorem Submodule.coe_inner E0 #

โˆ€ {๐•œ : Type u_1} {E : Type u_2} [inst : RCLike ๐•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace ๐•œ E]
  (W : Submodule ๐•œ E) (x y : โ†ฅW), inner ๐•œ x y = inner ๐•œ โ†‘x โ†‘y

The inner product on submodules is the same as on the ambient space.

theorem Orthonormal.codRestrict E1 #

โˆ€ {๐•œ : Type u_1} {E : Type u_2} [inst : RCLike ๐•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace ๐•œ E]
  {ฮน : Type u_4} {v : ฮน โ†’ E},
  Orthonormal ๐•œ v โ†’ โˆ€ (s : Submodule ๐•œ E) (hvs : โˆ€ (i : ฮน), v i โˆˆ s), Orthonormal ๐•œ (Set.codRestrict v (โ†‘s) hvs)

theorem orthonormal_span E1 #

โˆ€ {๐•œ : Type u_1} {E : Type u_2} [inst : RCLike ๐•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace ๐•œ E]
  {ฮน : Type u_4} {v : ฮน โ†’ E}, Orthonormal ๐•œ v โ†’ Orthonormal ๐•œ fun i โ†ฆ โŸจv i, โ‹ฏโŸฉ

instance ClosedSubmodule.innerProductSpace E0 #

{๐•œ : Type u_1} โ†’
  {E : Type u_2} โ†’
    [inst : RCLike ๐•œ] โ†’
      [inst_1 : SeminormedAddCommGroup E] โ†’
        [inst_2 : InnerProductSpace ๐•œ E] โ†’ (W : ClosedSubmodule ๐•œ E) โ†’ InnerProductSpace ๐•œ โ†ฅW

Induced inner product on a closed submodule.

theorem ClosedSubmodule.coe_inner E0 #

โˆ€ {๐•œ : Type u_1} {E : Type u_2} [inst : RCLike ๐•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace ๐•œ E]
  (W : Submodule ๐•œ E) (x y : โ†ฅW), inner ๐•œ x y = inner ๐•œ โ†‘x โ†‘y

The inner product on closed submodules is the same as on the ambient space.

def OrthogonalFamily E3 #

(๐•œ : Type u_1) โ†’
  {E : Type u_2} โ†’
    [inst : RCLike ๐•œ] โ†’
      [inst_1 : SeminormedAddCommGroup E] โ†’
        [inst_2 : InnerProductSpace ๐•œ E] โ†’
          {ฮน : Type u_4} โ†’
            (G : ฮน โ†’ Type u_5) โ†’
              [inst_3 : (i : ฮน) โ†’ SeminormedAddCommGroup (G i)] โ†’
                [inst_4 : (i : ฮน) โ†’ InnerProductSpace ๐•œ (G i)] โ†’ ((i : ฮน) โ†’ G i โ†’โ‚—แตข[๐•œ] E) โ†’ Prop

An indexed family of mutually-orthogonal subspaces of an inner product space E.

The simple way to express this concept would be as a condition on V : ฮน โ†’ Submodule ๐•œ E. We instead implement it as a condition on a family of inner product spaces each equipped with an isometric embedding into E, thus making it a property of morphisms rather than subobjects. The connection to the subobject spelling is shown in orthogonalFamily_iff_pairwise.

This definition is less lightweight, but allows for better definitional properties when the inner product space structure on each of the submodules is important -- for example, when considering their Hilbert sum (PiLp V 2). For example, given an orthonormal set of vectors v : ฮน โ†’ E, we have an associated orthogonal family of one-dimensional subspaces of E, which it is convenient to be able to discuss using ฮน โ†’ ๐•œ rather than ฮ  i : ฮน, span ๐•œ (v i).

theorem Orthonormal.orthogonalFamily E1 #

โˆ€ {๐•œ : Type u_1} {E : Type u_2} [inst : RCLike ๐•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace ๐•œ E]
  {ฮน : Type u_4} {v : ฮน โ†’ E} (hv : Orthonormal ๐•œ v),
  OrthogonalFamily ๐•œ (fun _i โ†ฆ ๐•œ) fun i โ†ฆ LinearIsometry.toSpanSingleton ๐•œ E โ‹ฏ

theorem OrthogonalFamily.inner_right_dfinsupp E1 #

โˆ€ {๐•œ : Type u_1} {E : Type u_2} [inst : RCLike ๐•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace ๐•œ E]
  {ฮน : Type u_4} {G : ฮน โ†’ Type u_5} [inst_3 : (i : ฮน) โ†’ NormedAddCommGroup (G i)]
  [inst_4 : (i : ฮน) โ†’ InnerProductSpace ๐•œ (G i)] {V : (i : ฮน) โ†’ G i โ†’โ‚—แตข[๐•œ] E},
  OrthogonalFamily ๐•œ G V โ†’
    โˆ€ [inst_5 : (i : ฮน) โ†’ (x : G i) โ†’ Decidable (x โ‰  0)] [inst_6 : DecidableEq ฮน] (l : DirectSum ฮน fun i โ†ฆ G i) (i : ฮน)
      (v : G i), inner ๐•œ ((V i) v) (DFinsupp.sum l fun j โ†ฆ โ‡‘(V j)) = inner ๐•œ v (l i)

theorem OrthogonalFamily.inner_right_fintype E1 #

โˆ€ {๐•œ : Type u_1} {E : Type u_2} [inst : RCLike ๐•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace ๐•œ E]
  {ฮน : Type u_4} {G : ฮน โ†’ Type u_5} [inst_3 : (i : ฮน) โ†’ NormedAddCommGroup (G i)]
  [inst_4 : (i : ฮน) โ†’ InnerProductSpace ๐•œ (G i)] {V : (i : ฮน) โ†’ G i โ†’โ‚—แตข[๐•œ] E},
  OrthogonalFamily ๐•œ G V โ†’
    โˆ€ [inst_5 : Fintype ฮน] (l : (i : ฮน) โ†’ G i) (i : ฮน) (v : G i), inner ๐•œ ((V i) v) (โˆ‘ j, (V j) (l j)) = inner ๐•œ v (l i)

theorem OrthogonalFamily.inner_sum E1 #

โˆ€ {๐•œ : Type u_1} {E : Type u_2} [inst : RCLike ๐•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace ๐•œ E]
  {ฮน : Type u_4} {G : ฮน โ†’ Type u_5} [inst_3 : (i : ฮน) โ†’ NormedAddCommGroup (G i)]
  [inst_4 : (i : ฮน) โ†’ InnerProductSpace ๐•œ (G i)] {V : (i : ฮน) โ†’ G i โ†’โ‚—แตข[๐•œ] E},
  OrthogonalFamily ๐•œ G V โ†’
    โˆ€ (lโ‚ lโ‚‚ : (i : ฮน) โ†’ G i) (s : Finset ฮน),
      inner ๐•œ (โˆ‘ i โˆˆ s, (V i) (lโ‚ i)) (โˆ‘ j โˆˆ s, (V j) (lโ‚‚ j)) = โˆ‘ i โˆˆ s, inner ๐•œ (lโ‚ i) (lโ‚‚ i)

theorem OrthogonalFamily.norm_sum E1 #

โˆ€ {๐•œ : Type u_1} {E : Type u_2} [inst : RCLike ๐•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace ๐•œ E]
  {ฮน : Type u_4} {G : ฮน โ†’ Type u_5} [inst_3 : (i : ฮน) โ†’ NormedAddCommGroup (G i)]
  [inst_4 : (i : ฮน) โ†’ InnerProductSpace ๐•œ (G i)] {V : (i : ฮน) โ†’ G i โ†’โ‚—แตข[๐•œ] E},
  OrthogonalFamily ๐•œ G V โ†’ โˆ€ (l : (i : ฮน) โ†’ G i) (s : Finset ฮน), โ€–โˆ‘ i โˆˆ s, (V i) (l i)โ€– ^ 2 = โˆ‘ i โˆˆ s, โ€–l iโ€– ^ 2

theorem OrthogonalFamily.comp E1 #

โˆ€ {๐•œ : Type u_1} {E : Type u_2} [inst : RCLike ๐•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace ๐•œ E]
  {ฮน : Type u_4} {G : ฮน โ†’ Type u_5} [inst_3 : (i : ฮน) โ†’ NormedAddCommGroup (G i)]
  [inst_4 : (i : ฮน) โ†’ InnerProductSpace ๐•œ (G i)] {V : (i : ฮน) โ†’ G i โ†’โ‚—แตข[๐•œ] E},
  OrthogonalFamily ๐•œ G V โ†’
    โˆ€ {ฮณ : Type u_6} {f : ฮณ โ†’ ฮน}, Function.Injective f โ†’ OrthogonalFamily ๐•œ (fun g โ†ฆ G (f g)) fun g โ†ฆ V (f g)

The composition of an orthogonal family of subspaces with an injective function is also an orthogonal family.

theorem OrthogonalFamily.orthonormal_sigma_orthonormal E1 #

โˆ€ {๐•œ : Type u_1} {E : Type u_2} [inst : RCLike ๐•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace ๐•œ E]
  {ฮน : Type u_4} {G : ฮน โ†’ Type u_5} [inst_3 : (i : ฮน) โ†’ NormedAddCommGroup (G i)]
  [inst_4 : (i : ฮน) โ†’ InnerProductSpace ๐•œ (G i)] {V : (i : ฮน) โ†’ G i โ†’โ‚—แตข[๐•œ] E},
  OrthogonalFamily ๐•œ G V โ†’
    โˆ€ {ฮฑ : ฮน โ†’ Type u_6} {v_family : (i : ฮน) โ†’ ฮฑ i โ†’ G i},
      (โˆ€ (i : ฮน), Orthonormal ๐•œ (v_family i)) โ†’ Orthonormal ๐•œ fun a โ†ฆ (V a.fst) (v_family a.fst a.snd)

theorem OrthogonalFamily.norm_sq_sdiff_sum E1 #

โˆ€ {๐•œ : Type u_1} {E : Type u_2} [inst : RCLike ๐•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace ๐•œ E]
  {ฮน : Type u_4} {G : ฮน โ†’ Type u_5} [inst_3 : (i : ฮน) โ†’ NormedAddCommGroup (G i)]
  [inst_4 : (i : ฮน) โ†’ InnerProductSpace ๐•œ (G i)] {V : (i : ฮน) โ†’ G i โ†’โ‚—แตข[๐•œ] E},
  OrthogonalFamily ๐•œ G V โ†’
    โˆ€ [inst_5 : DecidableEq ฮน] (f : (i : ฮน) โ†’ G i) (sโ‚ sโ‚‚ : Finset ฮน),
      โ€–โˆ‘ i โˆˆ sโ‚, (V i) (f i) - โˆ‘ i โˆˆ sโ‚‚, (V i) (f i)โ€– ^ 2 = โˆ‘ i โˆˆ sโ‚ \ sโ‚‚, โ€–f iโ€– ^ 2 + โˆ‘ i โˆˆ sโ‚‚ \ sโ‚, โ€–f iโ€– ^ 2

theorem OrthogonalFamily.summable_iff_norm_sq_summable E1 #

โˆ€ {๐•œ : Type u_1} {E : Type u_2} [inst : RCLike ๐•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace ๐•œ E]
  {ฮน : Type u_4} {G : ฮน โ†’ Type u_5} [inst_3 : (i : ฮน) โ†’ NormedAddCommGroup (G i)]
  [inst_4 : (i : ฮน) โ†’ InnerProductSpace ๐•œ (G i)] {V : (i : ฮน) โ†’ G i โ†’โ‚—แตข[๐•œ] E},
  OrthogonalFamily ๐•œ G V โ†’
    โˆ€ [CompleteSpace E] (f : (i : ฮน) โ†’ G i), (Summable fun i โ†ฆ (V i) (f i)) โ†” Summable fun i โ†ฆ โ€–f iโ€– ^ 2

A family f of mutually-orthogonal elements of E is summable, if and only if (fun i โ†ฆ โ€–f iโ€– ^ 2) is summable.

theorem OrthogonalFamily.independent E1 #

โˆ€ {๐•œ : Type u_1} {E : Type u_2} [inst : RCLike ๐•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace ๐•œ E]
  {ฮน : Type u_4} {V : ฮน โ†’ Submodule ๐•œ E}, (OrthogonalFamily ๐•œ (fun i โ†ฆ โ†ฅ(V i)) fun i โ†ฆ (V i).subtypeโ‚—แตข) โ†’ iSupIndep V

An orthogonal family forms an independent family of subspaces; that is, any collection of elements each from a different subspace in the family is linearly independent. In particular, the pairwise intersections of elements of the family are 0.

theorem DirectSum.IsInternal.collectedBasis_orthonormal E1 #

โˆ€ {๐•œ : Type u_1} {E : Type u_2} [inst : RCLike ๐•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace ๐•œ E]
  {ฮน : Type u_4} [inst_3 : DecidableEq ฮน] {V : ฮน โ†’ Submodule ๐•œ E},
  (OrthogonalFamily ๐•œ (fun i โ†ฆ โ†ฅ(V i)) fun i โ†ฆ (V i).subtypeโ‚—แตข) โ†’
    โˆ€ (hV_sum : DirectSum.IsInternal fun i โ†ฆ V i) {ฮฑ : ฮน โ†’ Type u_5} {v_family : (i : ฮน) โ†’ Module.Basis (ฮฑ i) ๐•œ โ†ฅ(V i)},
      (โˆ€ (i : ฮน), Orthonormal ๐•œ โ‡‘(v_family i)) โ†’ Orthonormal ๐•œ โ‡‘(hV_sum.collectedBasis v_family)

Deprecated aliases

NameNew nameSince
OrthogonalFamily.norm_sq_diff_sumOrthogonalFamily.norm_sq_sdiff_sum2026-06-03