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.PiL2

176 declarations and 6 deprecated aliases. Mathlib docs · Source

L² inner product space structure on finite products of inner product spaces

The L² norm on a finite product of inner product spaces is compatible with an inner product $$ \langle x, y\rangle = \sum \langle x_i, y_i \rangle. $$ This is recorded in this file as an inner product space instance on PiLp 2.

This file develops the notion of a finite-dimensional Hilbert space over 𝕜 = ℂ, ℝ, referred to as E. We define an OrthonormalBasis 𝕜 ι E as a linear isometric equivalence between E and EuclideanSpace 𝕜 ι. Then stdOrthonormalBasis shows that such an equivalence always exists if E is finite dimensional. We provide language for converting between a basis that is orthonormal and an orthonormal basis (e.g. Basis.toOrthonormalBasis). We show that orthonormal bases for each summand in a direct sum of spaces can be combined into an orthonormal basis for the whole sum in DirectSum.IsInternal.subordinateOrthonormalBasis. In the last section, various properties of matrices are explored.

Main definitions

  • EuclideanSpace 𝕜 n: defined to be PiLp 2 (n → 𝕜) for any Fintype n, i.e., the space from functions to n to 𝕜 with the L² norm. We register several instances on it (notably that it is a finite-dimensional inner product space), and provide a !ₚ[] notation (for numeric subscripts like ₂) for the case when the indexing type is Fin n.

  • OrthonormalBasis 𝕜 ι: defined to be an isometry to Euclidean space from a given finite-dimensional inner product space, E ≃ₗᵢ[𝕜] EuclideanSpace 𝕜 ι.

  • Basis.toOrthonormalBasis: constructs an OrthonormalBasis for a finite-dimensional Euclidean space from a Basis which is Orthonormal.

  • Orthonormal.exists_orthonormalBasis_extension: provides an existential result of an OrthonormalBasis extending a given orthonormal set

  • exists_orthonormalBasis: provides an orthonormal basis on a finite-dimensional vector space

  • stdOrthonormalBasis: provides an arbitrarily-chosen OrthonormalBasis of a given finite-dimensional inner product space

  • orthonormalBasisSingleton: an orthonormal basis formed by a single unit vector in a one-dimensional inner product space.

For consequences in infinite dimension (Hilbert bases, etc.), see the file Analysis.InnerProductSpace.L2Space.

Matrix representation of an orthonormal basis with respect to another

Existence of orthonormal basis, etc.

def OrthonormalBasis.ctorIdx E1 #

{ι : Type u_1} →
  {𝕜 : Type u_3} →
    {inst : RCLike 𝕜} →
      {E : Type u_4} →
        {inst_1 : NormedAddCommGroup E} →
          {inst_2 : InnerProductSpace 𝕜 E} → {inst_3 : Fintype ι} → OrthonormalBasis ι 𝕜 E → ℕ

theorem DirectSum.IsInternal.collectedOrthonormalBasis.congr_simp E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] {A : ι → Submodule 𝕜 E}
  (hV : OrthogonalFamily 𝕜 (fun i ↦ ↥(A i)) fun i ↦ (A i).subtypeₗᵢ) [inst_4 : DecidableEq ι]
  (hV_sum : DirectSum.IsInternal fun i ↦ A i) {α : ι → Type u_7} [inst_5 : (i : ι) → Fintype (α i)]
  (v_family v_family_1 : (i : ι) → OrthonormalBasis (α i) 𝕜 ↥(A i)),
  v_family = v_family_1 →
    DirectSum.IsInternal.collectedOrthonormalBasis hV hV_sum v_family =
      DirectSum.IsInternal.collectedOrthonormalBasis hV hV_sum v_family_1

theorem DirectSum.IsInternal.sigmaOrthonormalBasisIndexEquiv.congr_simp E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] [inst_4 : FiniteDimensional 𝕜 E] {n : ℕ}
  (hn : Module.finrank 𝕜 E = n) [inst_5 : DecidableEq ι] {V : ι → Submodule 𝕜 E} (hV : DirectSum.IsInternal V)
  (hV' : OrthogonalFamily 𝕜 (fun i ↦ ↥(V i)) fun i ↦ (V i).subtypeₗᵢ),
  DirectSum.IsInternal.sigmaOrthonormalBasisIndexEquiv hn hV hV' =
    DirectSum.IsInternal.sigmaOrthonormalBasisIndexEquiv hn hV hV'

theorem OrthonormalBasis.mk.congr_simp E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] {v v_1 : ι → E} (e_v : v = v_1) (hon : Orthonormal 𝕜 v)
  (hsp : ⊤ ≤ Submodule.span 𝕜 (Set.range v)), OrthonormalBasis.mk hon hsp = OrthonormalBasis.mk ⋯ ⋯

theorem Module.Basis.toOrthonormalBasis.congr_simp E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] (v v_1 : Module.Basis ι 𝕜 E) (e_v : v = v_1)
  (hv : Orthonormal 𝕜 ⇑v), v.toOrthonormalBasis hv = v_1.toOrthonormalBasis ⋯

theorem FiniteDimensional.orthonormalBasisSingleton.congr_simp E1 #

∀ (ι : Type u_1) (𝕜 : Type u_3) [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] [inst_4 : Unique ι] (h : Module.finrank 𝕜 E = 1) (v v_1 : E)
  (e_v : v = v_1) (hv : ‖v‖ = 1),
  FiniteDimensional.orthonormalBasisSingleton ι 𝕜 h v hv = FiniteDimensional.orthonormalBasisSingleton ι 𝕜 h v_1 ⋯

theorem LinearEquiv.isometryOfInner.congr_simp E1 #

∀ {𝕜 : Type u_1} {E : Type u_2} [inst : RCLike 𝕜] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace 𝕜 E]
  {E' : Type u_4} [inst_3 : SeminormedAddCommGroup E'] [inst_4 : InnerProductSpace 𝕜 E'] (f f_1 : E ≃ₗ[𝕜] E')
  (e_f : f = f_1) (h : ∀ (x y : E), inner 𝕜 (f x) (f y) = inner 𝕜 x y), f.isometryOfInner h = f_1.isometryOfInner ⋯

theorem stdOrthonormalBasis.congr_simp E1 #

∀ (𝕜 : Type u_3) [inst : RCLike 𝕜] (E : Type u_4) [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace 𝕜 E]
  [inst_3 : FiniteDimensional 𝕜 E], stdOrthonormalBasis 𝕜 E = stdOrthonormalBasis 𝕜 E

theorem LinearIsometry.comp.congr_simp E1 #

∀ {R : Type u_1} {R₂ : Type u_2} {R₃ : Type u_3} {E : Type u_4} {E₂ : Type u_5} {E₃ : Type u_6} [inst : Semiring R]
  [inst_1 : Semiring R₂] [inst_2 : Semiring R₃] {σ₁₂ : R →+* R₂} {σ₁₃ : R →+* R₃} {σ₂₃ : R₂ →+* R₃}
  [inst_3 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] [inst_4 : SeminormedAddCommGroup E] [inst_5 : SeminormedAddCommGroup E₂]
  [inst_6 : SeminormedAddCommGroup E₃] [inst_7 : Module R E] [inst_8 : Module R₂ E₂] [inst_9 : Module R₃ E₃]
  (g g_1 : E₂ →ₛₗᵢ[σ₂₃] E₃), g = g_1 → ∀ (f f_1 : E →ₛₗᵢ[σ₁₂] E₂), f = f_1 → g.comp f = g_1.comp f_1

theorem LinearIsometryEquiv.ofEq.congr_simp E1 #

∀ {E : Type u_4} [inst : SeminormedAddCommGroup E] {R' : Type u_10} [inst_1 : Ring R'] [inst_2 : Module R' E]
  (p q : Submodule R' E) (hpq : p = q), LinearIsometryEquiv.ofEq p q hpq = LinearIsometryEquiv.ofEq p q hpq

theorem OrthonormalBasis.mkOfOrthogonalEqBot.congr_simp E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] {v v_1 : ι → E} (e_v : v = v_1) (hon : Orthonormal 𝕜 v)
  (hsp : (Submodule.span 𝕜 (Set.range v))ᗮ = ⊥),
  OrthonormalBasis.mkOfOrthogonalEqBot hon hsp = OrthonormalBasis.mkOfOrthogonalEqBot ⋯ ⋯

theorem OrthonormalBasis.ofRepr.injEq E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] (repr repr_1 : E ≃ₗᵢ[𝕜] EuclideanSpace 𝕜 ι),
  ({ repr := repr } = { repr := repr_1 }) = (repr = repr_1)

theorem Fin.cast.hcongr_4 E1 #

∀ (n n' : ℕ),
  n = n' →
    ∀ (m m' : ℕ),
      m = m' →
        ∀ (eq : n = m) (eq' : n' = m'), eq ≍ eq' → ∀ (i : Fin n) (i' : Fin n'), i ≍ i' → Fin.cast eq i ≍ Fin.cast eq' i'

theorem OrthonormalBasis.ofRepr.inj E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} {inst : RCLike 𝕜} {E : Type u_4} {inst_1 : NormedAddCommGroup E}
  {inst_2 : InnerProductSpace 𝕜 E} {inst_3 : Fintype ι} {repr repr_1 : E ≃ₗᵢ[𝕜] EuclideanSpace 𝕜 ι},
  { repr := repr } = { repr := repr_1 } → repr = repr_1

theorem Sigma.snd.hcongr_3 E1 #

∀ (α α' : Type u),
  α = α' →
    ∀ (β : α → Type v) (β' : α' → Type v),
      β ≍ β' → ∀ (self : Sigma β) (self' : Sigma β'), self ≍ self' → self.snd ≍ self'.snd

theorem DirectSum.IsInternal.subordinateOrthonormalBasisIndex.congr_simp E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] [inst_4 : FiniteDimensional 𝕜 E] {n : ℕ}
  (hn : Module.finrank 𝕜 E = n) [inst_5 : DecidableEq ι] {V V_1 : ι → Submodule 𝕜 E} (e_V : V = V_1)
  (hV : DirectSum.IsInternal V) (a a_1 : Fin n),
  a = a_1 →
    ∀ (hV' : OrthogonalFamily 𝕜 (fun i ↦ ↥(V i)) fun i ↦ (V i).subtypeₗᵢ),
      DirectSum.IsInternal.subordinateOrthonormalBasisIndex hn hV a hV' =
        DirectSum.IsInternal.subordinateOrthonormalBasisIndex hn ⋯ a_1 ⋯

instance PiLp.innerProductSpace E0 #

{𝕜 : Type u_3} →
  [inst : RCLike 𝕜] →
    {ι : Type u_7} →
      [inst_1 : Fintype ι] →
        (f : ι → Type u_8) →
          [inst_2 : (i : ι) → NormedAddCommGroup (f i)] →
            [(i : ι) → InnerProductSpace 𝕜 (f i)] → InnerProductSpace 𝕜 (PiLp 2 f)

theorem PiLp.inner_apply E0 #

∀ {𝕜 : Type u_3} [inst : RCLike 𝕜] {ι : Type u_7} [inst_1 : Fintype ι] {f : ι → Type u_8}
  [inst_2 : (i : ι) → NormedAddCommGroup (f i)] [inst_3 : (i : ι) → InnerProductSpace 𝕜 (f i)] (x y : PiLp 2 f),
  inner 𝕜 x y = ∑ i, inner 𝕜 (x.ofLp i) (y.ofLp i)

abbrev EuclideanSpace E1 #

Type u_7 → Type u_8 → Type (max u_7 u_8)

The standard real/complex Euclidean space, functions on a finite type. For an n-dimensional space use EuclideanSpace 𝕜 (Fin n).

For the case when n = Fin _, there is !₂[x, y, ...] notation for building elements of this type, analogous to ![x, y, ...] notation.

instance EuclideanSpace.instLatticeReal E0 #

{n : Type u_7} → Lattice (EuclideanSpace ℝ n)

instance EuclideanSpace.instIsOrderedAddMonoidReal E0 #

∀ {n : Type u_7}, IsOrderedAddMonoid (EuclideanSpace ℝ n)

def PiLp.vecNotation E1 #

Lean.ParserDescr

Notation for vectors in Lp space. !₂[x, y, ...] is a shorthand for WithLp.toLp 2 ![x, y, ...], of type EuclideanSpace _ (Fin _).

This also works for other subscripts.

def EuclideanSpace.delabVecNotation E1 #

Lean.PrettyPrinter.Delaborator.Delab

Unexpander for the !₂[x, y, ...] notation.

theorem EuclideanSpace.nnNorm_eq E0 #

∀ {𝕜 : Type u_7} [inst : RCLike 𝕜] {n : Type u_8} [inst_1 : Fintype n] (x : EuclideanSpace 𝕜 n),
  ‖x‖₊ = NNReal.sqrt (∑ i, ‖x.ofLp i‖₊ ^ 2)

theorem EuclideanSpace.norm_eq E0 #

∀ {𝕜 : Type u_7} [inst : RCLike 𝕜] {n : Type u_8} [inst_1 : Fintype n] (x : EuclideanSpace 𝕜 n),
  ‖x‖ = √(∑ i, ‖x.ofLp i‖ ^ 2)

theorem EuclideanSpace.norm_sq_eq E0 #

∀ {𝕜 : Type u_7} [inst : RCLike 𝕜] {n : Type u_8} [inst_1 : Fintype n] (x : EuclideanSpace 𝕜 n),
  ‖x‖ ^ 2 = ∑ i, ‖x.ofLp i‖ ^ 2

theorem EuclideanSpace.real_norm_sq_eq E0 #

∀ {n : Type u_7} [inst : Fintype n] (x : EuclideanSpace ℝ n), ‖x‖ ^ 2 = ∑ i, x.ofLp i ^ 2

instance instHasSolidNormEuclideanSpaceReal E0 #

∀ {n : Type u_7} [inst : Fintype n], HasSolidNorm (EuclideanSpace ℝ n)

theorem EuclideanSpace.dist_eq E0 #

∀ {𝕜 : Type u_7} [inst : RCLike 𝕜] {n : Type u_8} [inst_1 : Fintype n] (x y : EuclideanSpace 𝕜 n),
  dist x y = √(∑ i, dist (x.ofLp i) (y.ofLp i) ^ 2)

theorem EuclideanSpace.dist_sq_eq E0 #

∀ {𝕜 : Type u_7} [inst : RCLike 𝕜] {n : Type u_8} [inst_1 : Fintype n] (x y : EuclideanSpace 𝕜 n),
  dist x y ^ 2 = ∑ i, dist (x.ofLp i) (y.ofLp i) ^ 2

theorem EuclideanSpace.nnDist_eq E0 #

∀ {𝕜 : Type u_7} [inst : RCLike 𝕜] {n : Type u_8} [inst_1 : Fintype n] (x y : EuclideanSpace 𝕜 n),
  nnDist x y = NNReal.sqrt (∑ i, nnDist (x.ofLp i) (y.ofLp i) ^ 2)

theorem EuclideanSpace.edist_eq E0 #

∀ {𝕜 : Type u_7} [inst : RCLike 𝕜] {n : Type u_8} [inst_1 : Fintype n] (x y : EuclideanSpace 𝕜 n),
  edist x y = (∑ i, edist (x.ofLp i) (y.ofLp i) ^ 2) ^ (1 / 2)

theorem EuclideanSpace.ball_zero_eq E0 #

∀ {n : Type u_7} [inst : Fintype n] (r : ℝ), 0 ≤ r → Metric.ball 0 r = {x | ∑ i, x.ofLp i ^ 2 < r ^ 2}

theorem EuclideanSpace.closedBall_zero_eq E0 #

∀ {n : Type u_7} [inst : Fintype n] (r : ℝ), 0 ≤ r → Metric.closedBall 0 r = {x | ∑ i, x.ofLp i ^ 2 ≤ r ^ 2}

theorem EuclideanSpace.sphere_zero_eq E0 #

∀ {n : Type u_7} [inst : Fintype n] (r : ℝ), 0 ≤ r → Metric.sphere 0 r = {x | ∑ i, x.ofLp i ^ 2 = r ^ 2}

instance EuclideanSpace.infinite E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [RCLike 𝕜] [Nonempty ι], Infinite (EuclideanSpace 𝕜 ι)

theorem finrank_euclideanSpace E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] [inst_1 : Fintype ι],
  Module.finrank 𝕜 (EuclideanSpace 𝕜 ι) = Fintype.card ι

theorem finrank_euclideanSpace_fin E1 #

∀ {𝕜 : Type u_3} [inst : RCLike 𝕜] {n : ℕ}, Module.finrank 𝕜 (EuclideanSpace 𝕜 (Fin n)) = n

theorem EuclideanSpace.instFactEqNatFinrankFin E1 #

∀ {𝕜 : Type u_3} [inst : RCLike 𝕜] (n : ℕ), Fact (Module.finrank 𝕜 (EuclideanSpace 𝕜 (Fin n)) = n)

theorem EuclideanSpace.inner_eq_star_dotProduct E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] [inst_1 : Fintype ι] (x y : EuclideanSpace 𝕜 ι),
  inner 𝕜 x y = y.ofLp ⬝ᵥ star x.ofLp

theorem EuclideanSpace.inner_toLp_toLp E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] [inst_1 : Fintype ι] (x y : ι → 𝕜),
  inner 𝕜 (WithLp.toLp 2 x) (WithLp.toLp 2 y) = y ⬝ᵥ star x

def EuclideanSpace.restrict₂ E1 #

{ι' : Type u_2} →
  {𝕜 : Type u_3} → [inst : RCLike 𝕜] → {I J : Finset ι'} → I ⊆ J → EuclideanSpace 𝕜 ↥J →L[𝕜] EuclideanSpace 𝕜 ↥I

The restriction from EuclideanSpace 𝕜 J to EuclideanSpace 𝕜 I when I ⊆ J.

theorem EuclideanSpace.restrict₂_apply E0 #

∀ {ι' : Type u_2} {𝕜 : Type u_3} [inst : RCLike 𝕜] {I J : Finset ι'} (hIJ : I ⊆ J) (x : EuclideanSpace 𝕜 ↥J) (i : ↥I),
  ((EuclideanSpace.restrict₂ hIJ) x).ofLp i = x.ofLp ⟨↑i, ⋯⟩

def DirectSum.IsInternal.isometryL2OfOrthogonalFamily E1 #

{ι : Type u_1} →
  {𝕜 : Type u_3} →
    [inst : RCLike 𝕜] →
      {E : Type u_4} →
        [inst_1 : NormedAddCommGroup E] →
          [inst_2 : InnerProductSpace 𝕜 E] →
            [inst_3 : Fintype ι] →
              [inst_4 : DecidableEq ι] →
                {V : ι → Submodule 𝕜 E} →
                  DirectSum.IsInternal V →
                    (OrthogonalFamily 𝕜 (fun i ↦ ↥(V i)) fun i ↦ (V i).subtypeₗᵢ) → E ≃ₗᵢ[𝕜] PiLp 2 fun i ↦ ↥(V i)

A finite, mutually orthogonal family of subspaces of E, which span E, induce an isometry from E to PiLp 2 of the subspaces equipped with the L2 inner product.

theorem DirectSum.IsInternal.isometryL2OfOrthogonalFamily_symm_apply E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] [inst_4 : DecidableEq ι] {V : ι → Submodule 𝕜 E}
  (hV : DirectSum.IsInternal V) (hV' : OrthogonalFamily 𝕜 (fun i ↦ ↥(V i)) fun i ↦ (V i).subtypeₗᵢ)
  (w : PiLp 2 fun i ↦ ↥(V i)), (hV.isometryL2OfOrthogonalFamily hV').symm w = ∑ i, ↑(w.ofLp i)

abbrev EuclideanSpace.equiv E1 #

(ι : Type u_1) → (𝕜 : Type u_3) → [inst : RCLike 𝕜] → EuclideanSpace 𝕜 ι ≃L[𝕜] ι → 𝕜

A shorthand for PiLp.continuousLinearEquiv.

abbrev EuclideanSpace.projₗ E1 #

{ι : Type u_1} → {𝕜 : Type u_3} → [inst : RCLike 𝕜] → ι → EuclideanSpace 𝕜 ι →ₗ[𝕜] 𝕜

The projection on the i-th coordinate of EuclideanSpace 𝕜 ι, as a linear map.

abbrev EuclideanSpace.proj E1 #

{ι : Type u_1} → {𝕜 : Type u_3} → [inst : RCLike 𝕜] → ι → StrongDual 𝕜 (EuclideanSpace 𝕜 ι)

The projection on the i-th coordinate of EuclideanSpace 𝕜 ι, as a continuous linear map.

theorem EuclideanSpace.coe_proj E0 #

∀ {ι : Type u_7} (𝕜 : Type u_8) [inst : RCLike 𝕜] {i : ι}, ⇑(EuclideanSpace.proj i) = fun x ↦ x.ofLp i

abbrev EuclideanSpace.single E1 #

{ι : Type u_1} → {𝕜 : Type u_3} → [RCLike 𝕜] → [DecidableEq ι] → ι → 𝕜 → EuclideanSpace 𝕜 ι

The vector given in Euclidean space by being a : 𝕜 at coordinate i : ι and 0 : 𝕜 at all other coordinates.

theorem EuclideanSpace.inner_single_left E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] [inst_1 : DecidableEq ι] [inst_2 : Fintype ι] (i : ι) (a : 𝕜)
  (v : EuclideanSpace 𝕜 ι), inner 𝕜 (EuclideanSpace.single i a) v = (starRingEnd 𝕜) a * v.ofLp i

theorem EuclideanSpace.inner_single_right E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] [inst_1 : DecidableEq ι] [inst_2 : Fintype ι] (i : ι) (a : 𝕜)
  (v : EuclideanSpace 𝕜 ι), inner 𝕜 v (EuclideanSpace.single i a) = a * (starRingEnd ((fun x ↦ 𝕜) i)) (v.ofLp i)

theorem EuclideanSpace.orthonormal_single E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] [inst_1 : DecidableEq ι] [inst_2 : Fintype ι],
  Orthonormal 𝕜 fun i ↦ EuclideanSpace.single i 1

EuclideanSpace.single forms an orthonormal family.

theorem EuclideanSpace.piLpCongrLeft_single E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] [inst_1 : DecidableEq ι] [inst_2 : Fintype ι] {ι' : Type u_7}
  [inst_3 : Fintype ι'] [inst_4 : DecidableEq ι'] (e : ι' ≃ ι) (i' : ι') (v : 𝕜),
  (LinearIsometryEquiv.piLpCongrLeft 2 𝕜 𝕜 e) (EuclideanSpace.single i' v) = EuclideanSpace.single (e i') v

abbrev EuclideanSpace.sumEquivProd E1 #

{𝕜 : Type u_7} →
  [inst : RCLike 𝕜] →
    {ι : Type u_8} →
      {κ : Type u_9} →
        [Fintype ι] → [Fintype κ] → EuclideanSpace 𝕜 (ι ⊕ κ) ≃L[𝕜] EuclideanSpace 𝕜 ι × EuclideanSpace 𝕜 κ

The canonical linear homeomorphism between EuclideanSpace 𝕜 (ι ⊕ κ) and EuclideanSpace 𝕜 ι × EuclideanSpace 𝕜 κ.

See PiLp.sumPiLpEquivProdLpPiLp for the isometry version, where the RHS is equipped with the Euclidean norm rather than the supremum norm.

abbrev EuclideanSpace.finAddEquivProd E1 #

{𝕜 : Type u_7} →
  [inst : RCLike 𝕜] →
    {n m : ℕ} → EuclideanSpace 𝕜 (Fin (n + m)) ≃L[𝕜] EuclideanSpace 𝕜 (Fin n) × EuclideanSpace 𝕜 (Fin m)

The canonical linear homeomorphism between EuclideanSpace 𝕜 (Fin (n + m)) and EuclideanSpace 𝕜 (Fin n) × EuclideanSpace 𝕜 (Fin m).

structure OrthonormalBasis E3 #

(ι : Type u_1) →
  (𝕜 : Type u_3) →
    [inst : RCLike 𝕜] →
      (E : Type u_4) →
        [inst_1 : NormedAddCommGroup E] → [InnerProductSpace 𝕜 E] → [Fintype ι] → Type (max (max u_1 u_3) u_4)

An orthonormal basis on E is an identification of E with its dimensional-matching EuclideanSpace 𝕜 ι.

ctor OrthonormalBasis.ofRepr E0 #

{ι : Type u_1} →
  {𝕜 : Type u_3} →
    [inst : RCLike 𝕜] →
      {E : Type u_4} →
        [inst_1 : NormedAddCommGroup E] →
          [inst_2 : InnerProductSpace 𝕜 E] →
            [inst_3 : Fintype ι] → (E ≃ₗᵢ[𝕜] EuclideanSpace 𝕜 ι) → OrthonormalBasis ι 𝕜 E

abbrev OrthonormalBasis.repr E1 #

{ι : Type u_1} →
  {𝕜 : Type u_3} →
    [inst : RCLike 𝕜] →
      {E : Type u_4} →
        [inst_1 : NormedAddCommGroup E] →
          [inst_2 : InnerProductSpace 𝕜 E] → [inst_3 : Fintype ι] → OrthonormalBasis ι 𝕜 E → E ≃ₗᵢ[𝕜] EuclideanSpace 𝕜 ι

Linear isometry between E and EuclideanSpace 𝕜 ι representing the orthonormal basis.

theorem OrthonormalBasis.repr_injective E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι], Function.Injective OrthonormalBasis.repr

instance OrthonormalBasis.instFunLike E0 #

{ι : Type u_1} →
  {𝕜 : Type u_3} →
    [inst : RCLike 𝕜] →
      {E : Type u_4} →
        [inst_1 : NormedAddCommGroup E] →
          [inst_2 : InnerProductSpace 𝕜 E] → [inst_3 : Fintype ι] → FunLike (OrthonormalBasis ι 𝕜 E) ι E

b i is the ith basis vector.

theorem OrthonormalBasis.coe_ofRepr E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] [inst_4 : DecidableEq ι] (e : E ≃ₗᵢ[𝕜] EuclideanSpace 𝕜 ι),
  ⇑{ repr := e } = fun i ↦ e.symm (EuclideanSpace.single i 1)

theorem OrthonormalBasis.repr_symm_single E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] [inst_4 : DecidableEq ι] (b : OrthonormalBasis ι 𝕜 E) (i : ι),
  b.repr.symm (EuclideanSpace.single i 1) = b i

theorem OrthonormalBasis.repr_self E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] [inst_4 : DecidableEq ι] (b : OrthonormalBasis ι 𝕜 E) (i : ι),
  b.repr (b i) = EuclideanSpace.single i 1

theorem OrthonormalBasis.repr_apply_apply E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] (b : OrthonormalBasis ι 𝕜 E) (v : E) (i : ι),
  (b.repr v).ofLp i = inner 𝕜 (b i) v

theorem OrthonormalBasis.orthonormal E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] (b : OrthonormalBasis ι 𝕜 E), Orthonormal 𝕜 ⇑b

theorem OrthonormalBasis.norm_eq_one E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] (b : OrthonormalBasis ι 𝕜 E) (i : ι), ‖b i‖ = 1

theorem OrthonormalBasis.nnNorm_eq_one E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] (b : OrthonormalBasis ι 𝕜 E) (i : ι), ‖b i‖₊ = 1

theorem OrthonormalBasis.eNorm_eq_one E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] (b : OrthonormalBasis ι 𝕜 E) (i : ι), ‖b i‖ₑ = 1

theorem OrthonormalBasis.inner_eq_zero E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] (b : OrthonormalBasis ι 𝕜 E) {i j : ι},
  i ≠ j → inner 𝕜 (b i) (b j) = 0

theorem OrthonormalBasis.inner_eq_one E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] (b : OrthonormalBasis ι 𝕜 E) (i : ι), inner 𝕜 (b i) (b i) = 1

theorem OrthonormalBasis.inner_eq_ite E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] [inst_4 : DecidableEq ι] (b : OrthonormalBasis ι 𝕜 E) (i j : ι),
  inner 𝕜 (b i) (b j) = if i = j then 1 else 0

def OrthonormalBasis.toBasis E1 #

{ι : Type u_1} →
  {𝕜 : Type u_3} →
    [inst : RCLike 𝕜] →
      {E : Type u_4} →
        [inst_1 : NormedAddCommGroup E] →
          [inst_2 : InnerProductSpace 𝕜 E] → [inst_3 : Fintype ι] → OrthonormalBasis ι 𝕜 E → Module.Basis ι 𝕜 E

The Basis ι 𝕜 E underlying the OrthonormalBasis

theorem OrthonormalBasis.coe_toBasis E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] (b : OrthonormalBasis ι 𝕜 E), ⇑b.toBasis = ⇑b

theorem OrthonormalBasis.coe_toBasis_repr E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] (b : OrthonormalBasis ι 𝕜 E),
  b.toBasis.equivFun = b.repr.toLinearEquiv ≪≫ₗ WithLp.linearEquiv 2 𝕜 (ι → 𝕜)

theorem OrthonormalBasis.coe_toBasis_repr_apply E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] (b : OrthonormalBasis ι 𝕜 E) (x : E) (i : ι),
  (b.toBasis.repr x) i = (b.repr x).ofLp i

theorem OrthonormalBasis.sum_repr E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] (b : OrthonormalBasis ι 𝕜 E) (x : E),
  ∑ i, (b.repr x).ofLp i • b i = x

theorem OrthonormalBasis.sum_repr' E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] (b : OrthonormalBasis ι 𝕜 E) (x : E),
  ∑ i, inner 𝕜 (b i) x • b i = x

theorem OrthonormalBasis.sum_repr_symm E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] (b : OrthonormalBasis ι 𝕜 E) (v : EuclideanSpace 𝕜 ι),
  ∑ i, v.ofLp i • b i = b.repr.symm v

theorem OrthonormalBasis.sum_inner_mul_inner E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] (b : OrthonormalBasis ι 𝕜 E) (x y : E),
  ∑ i, inner 𝕜 x (b i) * inner 𝕜 (b i) y = inner 𝕜 x y

theorem OrthonormalBasis.sum_sq_norm_inner_right E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] (b : OrthonormalBasis ι 𝕜 E) (x : E),
  ∑ i, ‖inner 𝕜 (b i) x‖ ^ 2 = ‖x‖ ^ 2

theorem OrthonormalBasis.sum_sq_norm_inner_left E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] (b : OrthonormalBasis ι 𝕜 E) (x : E),
  ∑ i, ‖inner 𝕜 x (b i)‖ ^ 2 = ‖x‖ ^ 2

theorem OrthonormalBasis.sum_sq_inner_right E1 #

∀ {ι : Type u_1} [inst : Fintype ι] {E : Type u_7} [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace ℝ E]
  (b : OrthonormalBasis ι ℝ E) (x : E), ∑ i, inner ℝ (b i) x ^ 2 = ‖x‖ ^ 2

theorem OrthonormalBasis.sum_sq_inner_left E1 #

∀ {ι : Type u_7} {E : Type u_8} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E] [inst_2 : Fintype ι]
  (b : OrthonormalBasis ι ℝ E) (x : E), ∑ i, inner ℝ x (b i) ^ 2 = ‖x‖ ^ 2

theorem OrthonormalBasis.norm_le_card_mul_iSup_norm_inner E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] (b : OrthonormalBasis ι 𝕜 E) (x : E),
  ‖x‖ ≤ √↑(Fintype.card ι) * ⨆ i, ‖inner 𝕜 (b i) x‖

theorem OrthonormalBasis.orthogonalProjectionOnto_apply_eq_sum E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] {U : Submodule 𝕜 E} [inst_4 : U.HasOrthogonalProjection]
  (b : OrthonormalBasis ι 𝕜 ↥U) (x : E), U.orthogonalProjectionOnto x = ∑ i, inner 𝕜 (↑(b i)) x • b i

theorem OrthonormalBasis.orthogonalProjectionOnto_eq_sum_rankOne E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] {U : Submodule 𝕜 E} [inst_4 : U.HasOrthogonalProjection]
  (b : OrthonormalBasis ι 𝕜 ↥U), U.orthogonalProjectionOnto = ∑ i, ((InnerProductSpace.rankOne 𝕜) (b i)) ↑(b i)

theorem OrthonormalBasis.starProjection_eq_sum_rankOne E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] {U : Submodule 𝕜 E} [inst_4 : U.HasOrthogonalProjection]
  (b : OrthonormalBasis ι 𝕜 ↥U), U.starProjection = ∑ i, ((InnerProductSpace.rankOne 𝕜) ↑(b i)) ↑(b i)

theorem OrthonormalBasis.sum_rankOne_eq_id E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] (b : OrthonormalBasis ι 𝕜 E),
  ∑ i, ((InnerProductSpace.rankOne 𝕜) (b i)) (b i) = ContinuousLinearMap.id 𝕜 E

def OrthonormalBasis.map E1 #

{ι : Type u_1} →
  {𝕜 : Type u_3} →
    [inst : RCLike 𝕜] →
      {E : Type u_4} →
        [inst_1 : NormedAddCommGroup E] →
          [inst_2 : InnerProductSpace 𝕜 E] →
            [inst_3 : Fintype ι] →
              {G : Type u_7} →
                [inst_4 : NormedAddCommGroup G] →
                  [inst_5 : InnerProductSpace 𝕜 G] → OrthonormalBasis ι 𝕜 E → (E ≃ₗᵢ[𝕜] G) → OrthonormalBasis ι 𝕜 G

Mapping an orthonormal basis along a LinearIsometryEquiv.

theorem OrthonormalBasis.map_apply E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] {G : Type u_7} [inst_4 : NormedAddCommGroup G]
  [inst_5 : InnerProductSpace 𝕜 G] (b : OrthonormalBasis ι 𝕜 E) (L : E ≃ₗᵢ[𝕜] G) (i : ι), (b.map L) i = L (b i)

theorem OrthonormalBasis.coe_map E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] {G : Type u_7} [inst_4 : NormedAddCommGroup G]
  [inst_5 : InnerProductSpace 𝕜 G] (b : OrthonormalBasis ι 𝕜 E) (L : E ≃ₗᵢ[𝕜] G), ⇑(b.map L) = ⇑L ∘ ⇑b

theorem OrthonormalBasis.toBasis_map E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] {G : Type u_7} [inst_4 : NormedAddCommGroup G]
  [inst_5 : InnerProductSpace 𝕜 G] (b : OrthonormalBasis ι 𝕜 E) (L : E ≃ₗᵢ[𝕜] G),
  (b.map L).toBasis = b.toBasis.map L.toLinearEquiv

def Module.Basis.toOrthonormalBasis E3 #

{ι : Type u_1} →
  {𝕜 : Type u_3} →
    [inst : RCLike 𝕜] →
      {E : Type u_4} →
        [inst_1 : NormedAddCommGroup E] →
          [inst_2 : InnerProductSpace 𝕜 E] →
            [inst_3 : Fintype ι] → (v : Module.Basis ι 𝕜 E) → Orthonormal 𝕜 ⇑v → OrthonormalBasis ι 𝕜 E

A basis that is orthonormal is an orthonormal basis.

theorem Module.Basis.coe_toOrthonormalBasis_repr E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] (v : Module.Basis ι 𝕜 E) (hv : Orthonormal 𝕜 ⇑v),
  ⇑(v.toOrthonormalBasis hv).repr = ⇑(v.equivFun ≪≫ₗ (WithLp.linearEquiv 2 𝕜 (ι → 𝕜)).symm)

theorem Module.Basis.coe_toOrthonormalBasis_repr_symm E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] (v : Module.Basis ι 𝕜 E) (hv : Orthonormal 𝕜 ⇑v),
  ⇑(v.toOrthonormalBasis hv).repr.symm = ⇑(WithLp.linearEquiv 2 𝕜 (ι → 𝕜) ≪≫ₗ v.equivFun.symm)

theorem Module.Basis.toBasis_toOrthonormalBasis E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] (v : Module.Basis ι 𝕜 E) (hv : Orthonormal 𝕜 ⇑v),
  (v.toOrthonormalBasis hv).toBasis = v

theorem Module.Basis.coe_toOrthonormalBasis E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] (v : Module.Basis ι 𝕜 E) (hv : Orthonormal 𝕜 ⇑v),
  ⇑(v.toOrthonormalBasis hv) = ⇑v

def OrthonormalBasis.singleton E1 #

(ι : Type u_7) → (𝕜 : Type u_8) → [inst : Unique ι] → [inst_1 : RCLike 𝕜] → OrthonormalBasis ι 𝕜 𝕜

OrthonormalBasis.singleton ι 𝕜 is the orthonormal basis sending the unique element of ι to 1 : 𝕜.

theorem OrthonormalBasis.singleton_apply E0 #

∀ {ι : Type u_7} {𝕜 : Type u_8} [inst : Unique ι] [inst_1 : RCLike 𝕜] (i : ι), (OrthonormalBasis.singleton ι 𝕜) i = 1

theorem OrthonormalBasis.singleton_repr E0 #

∀ {ι : Type u_7} {𝕜 : Type u_8} [inst : Unique ι] [inst_1 : RCLike 𝕜] (x : 𝕜) (i : ι),
  ((OrthonormalBasis.singleton ι 𝕜).repr x).ofLp i = x

theorem OrthonormalBasis.coe_singleton E0 #

∀ {ι : Type u_7} {𝕜 : Type u_8} [inst : Unique ι] [inst_1 : RCLike 𝕜], ⇑(OrthonormalBasis.singleton ι 𝕜) = 1

theorem OrthonormalBasis.toBasis_singleton E0 #

∀ {ι : Type u_7} {𝕜 : Type u_8} [inst : Unique ι] [inst_1 : RCLike 𝕜],
  (OrthonormalBasis.singleton ι 𝕜).toBasis = Module.Basis.singleton ι 𝕜

def Pi.orthonormalBasis E1 #

{η : Type u_7} →
  [inst : Fintype η] →
    {ι : η → Type u_8} →
      [inst_1 : (i : η) → Fintype (ι i)] →
        {𝕜 : Type u_9} →
          [inst_2 : RCLike 𝕜] →
            {E : η → Type u_10} →
              [inst_3 : (i : η) → NormedAddCommGroup (E i)] →
                [inst_4 : (i : η) → InnerProductSpace 𝕜 (E i)] →
                  ((i : η) → OrthonormalBasis (ι i) 𝕜 (E i)) → OrthonormalBasis ((i : η) × ι i) 𝕜 (PiLp 2 E)

Pi.orthonormalBasis (B : ∀ i, OrthonormalBasis (ι i) 𝕜 (E i)) is the Σ i, ι i-indexed orthonormal basis on Π i, E i given by B i on each component.

theorem Pi.orthonormalBasis.toBasis E1 #

∀ {η : Type u_7} [inst : Fintype η] {ι : η → Type u_8} [inst_1 : (i : η) → Fintype (ι i)] {𝕜 : Type u_9}
  [inst_2 : RCLike 𝕜] {E : η → Type u_10} [inst_3 : (i : η) → NormedAddCommGroup (E i)]
  [inst_4 : (i : η) → InnerProductSpace 𝕜 (E i)] (B : (i : η) → OrthonormalBasis (ι i) 𝕜 (E i)),
  (Pi.orthonormalBasis B).toBasis = (Pi.basis fun i ↦ (B i).toBasis).map (WithLp.linearEquiv 2 𝕜 ((j : η) → E j)).symm

theorem Pi.orthonormalBasis_apply E0 #

∀ {η : Type u_7} [inst : Fintype η] [inst_1 : DecidableEq η] {ι : η → Type u_8} [inst_2 : (i : η) → Fintype (ι i)]
  {𝕜 : Type u_9} [inst_3 : RCLike 𝕜] {E : η → Type u_10} [inst_4 : (i : η) → NormedAddCommGroup (E i)]
  [inst_5 : (i : η) → InnerProductSpace 𝕜 (E i)] (B : (i : η) → OrthonormalBasis (ι i) 𝕜 (E i)) (j : (i : η) × ι i),
  (Pi.orthonormalBasis B) j = PiLp.single 2 j.fst ((B j.fst) j.snd)

theorem Pi.orthonormalBasis_repr E0 #

∀ {η : Type u_7} [inst : Fintype η] {ι : η → Type u_8} [inst_1 : (i : η) → Fintype (ι i)] {𝕜 : Type u_9}
  [inst_2 : RCLike 𝕜] {E : η → Type u_10} [inst_3 : (i : η) → NormedAddCommGroup (E i)]
  [inst_4 : (i : η) → InnerProductSpace 𝕜 (E i)] (B : (i : η) → OrthonormalBasis (ι i) 𝕜 (E i)) (x : (i : η) → E i)
  (j : (i : η) × ι i), ((Pi.orthonormalBasis B).repr (WithLp.toLp 2 x)).ofLp j = ((B j.fst).repr (x j.fst)).ofLp j.snd

def OrthonormalBasis.mk E1 #

{ι : Type u_1} →
  {𝕜 : Type u_3} →
    [inst : RCLike 𝕜] →
      {E : Type u_4} →
        [inst_1 : NormedAddCommGroup E] →
          [inst_2 : InnerProductSpace 𝕜 E] →
            [inst_3 : Fintype ι] →
              {v : ι → E} → Orthonormal 𝕜 v → ⊤ ≤ Submodule.span 𝕜 (Set.range v) → OrthonormalBasis ι 𝕜 E

A finite orthonormal set that spans is an orthonormal basis

theorem OrthonormalBasis.coe_mk E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] {v : ι → E} (hon : Orthonormal 𝕜 v)
  (hsp : ⊤ ≤ Submodule.span 𝕜 (Set.range v)), ⇑(OrthonormalBasis.mk hon hsp) = v

def OrthonormalBasis.span E1 #

{ι' : Type u_2} →
  {𝕜 : Type u_3} →
    [inst : RCLike 𝕜] →
      {E : Type u_4} →
        [inst_1 : NormedAddCommGroup E] →
          [inst_2 : InnerProductSpace 𝕜 E] →
            [inst_3 : DecidableEq E] →
              {v' : ι' → E} →
                Orthonormal 𝕜 v' → (s : Finset ι') → OrthonormalBasis (↥s) 𝕜 ↥(Submodule.span 𝕜 ↑(Finset.image v' s))

Any finite subset of an orthonormal family is an OrthonormalBasis for its span.

theorem OrthonormalBasis.span_apply E0 #

∀ {ι' : Type u_2} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : DecidableEq E] {v' : ι' → E} (h : Orthonormal 𝕜 v') (s : Finset ι')
  (i : ↥s), ↑((OrthonormalBasis.span h s) i) = v' ↑i

def OrthonormalBasis.mkOfOrthogonalEqBot E1 #

{ι : Type u_1} →
  {𝕜 : Type u_3} →
    [inst : RCLike 𝕜] →
      {E : Type u_4} →
        [inst_1 : NormedAddCommGroup E] →
          [inst_2 : InnerProductSpace 𝕜 E] →
            [inst_3 : Fintype ι] →
              {v : ι → E} → Orthonormal 𝕜 v → (Submodule.span 𝕜 (Set.range v))ᗮ = ⊥ → OrthonormalBasis ι 𝕜 E

A finite orthonormal family of vectors whose span has trivial orthogonal complement is an orthonormal basis.

theorem OrthonormalBasis.coe_of_orthogonal_eq_bot_mk E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] {v : ι → E} (hon : Orthonormal 𝕜 v)
  (hsp : (Submodule.span 𝕜 (Set.range v))ᗮ = ⊥), ⇑(OrthonormalBasis.mkOfOrthogonalEqBot hon hsp) = v

def OrthonormalBasis.reindex E1 #

{ι : Type u_1} →
  {ι' : Type u_2} →
    {𝕜 : Type u_3} →
      [inst : RCLike 𝕜] →
        {E : Type u_4} →
          [inst_1 : NormedAddCommGroup E] →
            [inst_2 : InnerProductSpace 𝕜 E] →
              [inst_3 : Fintype ι] → [inst_4 : Fintype ι'] → OrthonormalBasis ι 𝕜 E → ι ≃ ι' → OrthonormalBasis ι' 𝕜 E

b.reindex (e : ι ≃ ι') is an OrthonormalBasis indexed by ι'

theorem OrthonormalBasis.reindex_apply E0 #

∀ {ι : Type u_1} {ι' : Type u_2} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] [inst_4 : Fintype ι'] (b : OrthonormalBasis ι 𝕜 E) (e : ι ≃ ι')
  (i' : ι'), (b.reindex e) i' = b (e.symm i')

theorem OrthonormalBasis.reindex_toBasis E0 #

∀ {ι : Type u_1} {ι' : Type u_2} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] [inst_4 : Fintype ι'] (b : OrthonormalBasis ι 𝕜 E) (e : ι ≃ ι'),
  (b.reindex e).toBasis = b.toBasis.reindex e

theorem OrthonormalBasis.coe_reindex E0 #

∀ {ι : Type u_1} {ι' : Type u_2} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] [inst_4 : Fintype ι'] (b : OrthonormalBasis ι 𝕜 E) (e : ι ≃ ι'),
  ⇑(b.reindex e) = ⇑b ∘ ⇑e.symm

theorem OrthonormalBasis.repr_reindex E0 #

∀ {ι : Type u_1} {ι' : Type u_2} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] [inst_4 : Fintype ι'] (b : OrthonormalBasis ι 𝕜 E) (e : ι ≃ ι')
  (x : E) (i' : ι'), ((b.reindex e).repr x).ofLp i' = (b.repr x).ofLp (e.symm i')

def EuclideanSpace.basisFun E1 #

(ι : Type u_1) → (𝕜 : Type u_3) → [inst : RCLike 𝕜] → [inst_1 : Fintype ι] → OrthonormalBasis ι 𝕜 (EuclideanSpace 𝕜 ι)

The basis Pi.basisFun, bundled as an orthonormal basis of EuclideanSpace 𝕜 ι.

theorem EuclideanSpace.basisFun_apply E0 #

∀ (ι : Type u_1) (𝕜 : Type u_3) [inst : RCLike 𝕜] [inst_1 : Fintype ι] [inst_2 : DecidableEq ι] (i : ι),
  (EuclideanSpace.basisFun ι 𝕜) i = EuclideanSpace.single i 1

theorem EuclideanSpace.basisFun_repr E0 #

∀ (ι : Type u_1) (𝕜 : Type u_3) [inst : RCLike 𝕜] [inst_1 : Fintype ι] (x : EuclideanSpace 𝕜 ι) (i : ι),
  ((EuclideanSpace.basisFun ι 𝕜).repr x).ofLp i = x.ofLp i

theorem EuclideanSpace.basisFun_inner E0 #

∀ (ι : Type u_1) (𝕜 : Type u_3) [inst : RCLike 𝕜] [inst_1 : Fintype ι] (x : EuclideanSpace 𝕜 ι) (i : ι),
  inner 𝕜 ((EuclideanSpace.basisFun ι 𝕜) i) x = x.ofLp i

theorem EuclideanSpace.inner_basisFun_real E0 #

∀ (ι : Type u_1) [inst : Fintype ι] (x : EuclideanSpace ℝ ι) (i : ι),
  inner ℝ x ((EuclideanSpace.basisFun ι ℝ) i) = x.ofLp i

theorem EuclideanSpace.basisFun_toBasis E1 #

∀ (ι : Type u_1) (𝕜 : Type u_3) [inst : RCLike 𝕜] [inst_1 : Fintype ι],
  (EuclideanSpace.basisFun ι 𝕜).toBasis = PiLp.basisFun 2 𝕜 ι

instance OrthonormalBasis.instInhabited E0 #

{ι : Type u_1} →
  {𝕜 : Type u_3} → [inst : RCLike 𝕜] → [inst_1 : Fintype ι] → Inhabited (OrthonormalBasis ι 𝕜 (EuclideanSpace 𝕜 ι))

def OrthonormalBasis.equiv E1 #

{ι : Type u_1} →
  {ι' : Type u_2} →
    {𝕜 : Type u_3} →
      [inst : RCLike 𝕜] →
        {E : Type u_4} →
          [inst_1 : NormedAddCommGroup E] →
            [inst_2 : InnerProductSpace 𝕜 E] →
              [inst_3 : Fintype ι] →
                {E' : Type u_7} →
                  [inst_4 : Fintype ι'] →
                    [inst_5 : NormedAddCommGroup E'] →
                      [inst_6 : InnerProductSpace 𝕜 E'] →
                        OrthonormalBasis ι 𝕜 E → OrthonormalBasis ι' 𝕜 E' → ι ≃ ι' → E ≃ₗᵢ[𝕜] E'

The LinearIsometryEquiv which maps an orthonormal basis to another. This is a convenience wrapper around Orthonormal.equiv.

theorem OrthonormalBasis.equiv_symm E0 #

∀ {ι : Type u_1} {ι' : Type u_2} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] {E' : Type u_7} [inst_4 : Fintype ι']
  [inst_5 : NormedAddCommGroup E'] [inst_6 : InnerProductSpace 𝕜 E'] (b : OrthonormalBasis ι 𝕜 E)
  (b' : OrthonormalBasis ι' 𝕜 E') (e : ι ≃ ι'), (b.equiv b' e).symm = b'.equiv b e.symm

theorem OrthonormalBasis.equiv_apply_basis E0 #

∀ {ι : Type u_1} {ι' : Type u_2} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] {E' : Type u_7} [inst_4 : Fintype ι']
  [inst_5 : NormedAddCommGroup E'] [inst_6 : InnerProductSpace 𝕜 E'] (b : OrthonormalBasis ι 𝕜 E)
  (b' : OrthonormalBasis ι' 𝕜 E') (e : ι ≃ ι') (i : ι), (b.equiv b' e) (b i) = b' (e i)

theorem OrthonormalBasis.equiv_self_rfl E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] (b : OrthonormalBasis ι 𝕜 E),
  b.equiv b (Equiv.refl ι) = LinearIsometryEquiv.refl 𝕜 E

theorem OrthonormalBasis.equiv_apply E0 #

∀ {ι : Type u_1} {ι' : Type u_2} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] {E' : Type u_7} [inst_4 : Fintype ι']
  [inst_5 : NormedAddCommGroup E'] [inst_6 : InnerProductSpace 𝕜 E'] (b : OrthonormalBasis ι 𝕜 E)
  (b' : OrthonormalBasis ι' 𝕜 E') (e : ι ≃ ι') (x : E), (b.equiv b' e) x = ∑ i, (b.repr x).ofLp i • b' (e i)

theorem OrthonormalBasis.equiv_apply_euclideanSpace E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] (b : OrthonormalBasis ι 𝕜 E) (x : EuclideanSpace 𝕜 ι),
  ((EuclideanSpace.basisFun ι 𝕜).equiv b (Equiv.refl ι)) x = ∑ i, x.ofLp i • b i

theorem OrthonormalBasis.coe_equiv_euclideanSpace E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] (b : OrthonormalBasis ι 𝕜 E),
  ⇑((EuclideanSpace.basisFun ι 𝕜).equiv b (Equiv.refl ι)) = fun x ↦ ∑ i, x.ofLp i • b i

def Complex.orthonormalBasisOneI E1 #

OrthonormalBasis (Fin 2) ℝ ℂ

![1, I] is an orthonormal basis for ℂ considered as a real inner product space.

theorem Complex.orthonormalBasisOneI_repr_apply E0 #

∀ (z : ℂ), (Complex.orthonormalBasisOneI.repr z).ofLp = ![z.re, z.im]

theorem Complex.orthonormalBasisOneI_repr_symm_apply E0 #

∀ (x : EuclideanSpace ℝ (Fin 2)), Complex.orthonormalBasisOneI.repr.symm x = ↑(x.ofLp 0) + ↑(x.ofLp 1) * Complex.I

theorem Complex.toBasis_orthonormalBasisOneI E0 #

Complex.orthonormalBasisOneI.toBasis = Complex.basisOneI

theorem Complex.coe_orthonormalBasisOneI E0 #

⇑Complex.orthonormalBasisOneI = ![1, Complex.I]

def Complex.isometryOfOrthonormal E1 #

{F : Type u_5} →
  [inst : NormedAddCommGroup F] → [inst_1 : InnerProductSpace ℝ F] → OrthonormalBasis (Fin 2) ℝ F → ℂ ≃ₗᵢ[ℝ] F

The isometry between ℂ and a two-dimensional real inner product space given by a basis.

theorem Complex.map_isometryOfOrthonormal E0 #

∀ {F : Type u_5} [inst : NormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] {F' : Type u_6}
  [inst_2 : NormedAddCommGroup F'] [inst_3 : InnerProductSpace ℝ F'] (v : OrthonormalBasis (Fin 2) ℝ F)
  (f : F ≃ₗᵢ[ℝ] F'), Complex.isometryOfOrthonormal (v.map f) = (Complex.isometryOfOrthonormal v).trans f

theorem Complex.isometryOfOrthonormal_symm_apply E0 #

∀ {F : Type u_5} [inst : NormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (v : OrthonormalBasis (Fin 2) ℝ F)
  (f : F), (Complex.isometryOfOrthonormal v).symm f = ↑((v.toBasis.coord 0) f) + ↑((v.toBasis.coord 1) f) * Complex.I

theorem Complex.isometryOfOrthonormal_apply E0 #

∀ {F : Type u_5} [inst : NormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (v : OrthonormalBasis (Fin 2) ℝ F)
  (z : ℂ), (Complex.isometryOfOrthonormal v) z = z.re • v 0 + z.im • v 1

theorem OrthonormalBasis.toMatrix_orthonormalBasis_conjTranspose_mul_self E0 #

∀ {ι : Type u_1} {ι' : Type u_2} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] [inst_4 : DecidableEq ι] [inst_5 : Fintype ι']
  (a : OrthonormalBasis ι' 𝕜 E) (b : OrthonormalBasis ι 𝕜 E),
  (a.toBasis.toMatrix ⇑b).conjTranspose * a.toBasis.toMatrix ⇑b = 1

A version of OrthonormalBasis.toMatrix_orthonormalBasis_mem_unitary that works for bases with different index types.

theorem OrthonormalBasis.toMatrix_orthonormalBasis_self_mul_conjTranspose E0 #

∀ {ι : Type u_1} {ι' : Type u_2} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] [inst_4 : DecidableEq ι] [inst_5 : Fintype ι']
  (a : OrthonormalBasis ι 𝕜 E) (b : OrthonormalBasis ι' 𝕜 E),
  a.toBasis.toMatrix ⇑b * (a.toBasis.toMatrix ⇑b).conjTranspose = 1

A version of OrthonormalBasis.toMatrix_orthonormalBasis_mem_unitary that works for bases with different index types.

theorem OrthonormalBasis.toMatrix_orthonormalBasis_mem_unitary E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] [inst_4 : DecidableEq ι] (a b : OrthonormalBasis ι 𝕜 E),
  a.toBasis.toMatrix ⇑b ∈ Matrix.unitaryGroup ι 𝕜

The change-of-basis matrix between two orthonormal bases a, b is a unitary matrix.

theorem OrthonormalBasis.det_to_matrix_orthonormalBasis E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] [inst_4 : DecidableEq ι] (a b : OrthonormalBasis ι 𝕜 E),
  ‖a.toBasis.det ⇑b‖ = 1

The determinant of the change-of-basis matrix between two orthonormal bases a, b has unit length.

theorem LinearIsometryEquiv.toMatrix_mem_unitaryGroup E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] [inst_4 : DecidableEq ι] {G : Type u_7}
  [inst_5 : NormedAddCommGroup G] [inst_6 : InnerProductSpace 𝕜 G] (f : E ≃ₗᵢ[𝕜] G) (b : OrthonormalBasis ι 𝕜 E)
  (b' : OrthonormalBasis ι 𝕜 G), (LinearMap.toMatrix b.toBasis b'.toBasis) ↑f.toLinearEquiv ∈ Matrix.unitaryGroup ι 𝕜

theorem OrthonormalBasis.toMatrix_orthonormalBasis_mem_orthogonal E1 #

∀ {ι : Type u_1} {F : Type u_5} [inst : NormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] [inst_2 : Fintype ι]
  [inst_3 : DecidableEq ι] (a b : OrthonormalBasis ι ℝ F), a.toBasis.toMatrix ⇑b ∈ Matrix.orthogonalGroup ι ℝ

The change-of-basis matrix between two orthonormal bases a, b is an orthogonal matrix.

theorem OrthonormalBasis.det_to_matrix_orthonormalBasis_real E1 #

∀ {ι : Type u_1} {F : Type u_5} [inst : NormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] [inst_2 : Fintype ι]
  [inst_3 : DecidableEq ι] (a b : OrthonormalBasis ι ℝ F), a.toBasis.det ⇑b = 1 ∨ a.toBasis.det ⇑b = -1

The determinant of the change-of-basis matrix between two orthonormal bases a, b is ±1.

def DirectSum.IsInternal.collectedOrthonormalBasis E1 #

{ι : Type u_1} →
  {𝕜 : Type u_3} →
    [inst : RCLike 𝕜] →
      {E : Type u_4} →
        [inst_1 : NormedAddCommGroup E] →
          [inst_2 : InnerProductSpace 𝕜 E] →
            [inst_3 : Fintype ι] →
              {A : ι → Submodule 𝕜 E} →
                (OrthogonalFamily 𝕜 (fun i ↦ ↥(A i)) fun i ↦ (A i).subtypeₗᵢ) →
                  [inst_4 : DecidableEq ι] →
                    (DirectSum.IsInternal fun i ↦ A i) →
                      {α : ι → Type u_7} →
                        [inst_5 : (i : ι) → Fintype (α i)] →
                          ((i : ι) → OrthonormalBasis (α i) 𝕜 ↥(A i)) → OrthonormalBasis ((i : ι) × α i) 𝕜 E

Given an internal direct sum decomposition of a module M, and an orthonormal basis for each of the components of the direct sum, the disjoint union of these orthonormal bases is an orthonormal basis for M.

theorem DirectSum.IsInternal.collectedOrthonormalBasis_mem E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] {A : ι → Submodule 𝕜 E} [inst_4 : DecidableEq ι]
  (h : DirectSum.IsInternal A) {α : ι → Type u_7} [inst_5 : (i : ι) → Fintype (α i)]
  (hV : OrthogonalFamily 𝕜 (fun i ↦ ↥(A i)) fun i ↦ (A i).subtypeₗᵢ) (v : (i : ι) → OrthonormalBasis (α i) 𝕜 ↥(A i))
  (a : (i : ι) × α i), (DirectSum.IsInternal.collectedOrthonormalBasis hV h v) a ∈ A a.fst

theorem Orthonormal.exists_orthonormalBasis_extension E3 #

∀ {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace 𝕜 E]
  {v : Set E} [FiniteDimensional 𝕜 E], Orthonormal 𝕜 Subtype.val → ∃ u b, v ⊆ ↑u ∧ ⇑b = Subtype.val

In a finite-dimensional InnerProductSpace, any orthonormal subset can be extended to an orthonormal basis.

theorem Orthonormal.exists_orthonormalBasis_extension_of_card_eq E0 #

∀ {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace 𝕜 E]
  [FiniteDimensional 𝕜 E] {ι : Type u_7} [inst_4 : Fintype ι],
  Module.finrank 𝕜 E = Fintype.card ι →
    ∀ {v : ι → E} {s : Set ι}, Orthonormal 𝕜 (s.domRestrict v) → ∃ b, ∀ i ∈ s, b i = v i

theorem exists_orthonormalBasis E3 #

∀ (𝕜 : Type u_3) [inst : RCLike 𝕜] (E : Type u_4) [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace 𝕜 E]
  [FiniteDimensional 𝕜 E], ∃ w b, ⇑b = Subtype.val

A finite-dimensional inner product space admits an orthonormal basis.

def stdOrthonormalBasis E3 #

(𝕜 : Type u_3) →
  [inst : RCLike 𝕜] →
    (E : Type u_4) →
      [inst_1 : NormedAddCommGroup E] →
        [inst_2 : InnerProductSpace 𝕜 E] → [FiniteDimensional 𝕜 E] → OrthonormalBasis (Fin (Module.finrank 𝕜 E)) 𝕜 E

A finite-dimensional InnerProductSpace has an orthonormal basis.

theorem orthonormalBasis_one_dim E1 #

∀ {ι : Type u_1} [inst : Fintype ι] (b : OrthonormalBasis ι ℝ ℝ), (⇑b = fun x ↦ 1) ∨ ⇑b = fun x ↦ -1

An orthonormal basis of ℝ is made either of the vector 1, or of the vector -1.

def DirectSum.IsInternal.sigmaOrthonormalBasisIndexEquiv E1 #

{ι : Type u_1} →
  {𝕜 : Type u_3} →
    [inst : RCLike 𝕜] →
      {E : Type u_4} →
        [inst_1 : NormedAddCommGroup E] →
          [inst_2 : InnerProductSpace 𝕜 E] →
            [Fintype ι] →
              [FiniteDimensional 𝕜 E] →
                {n : ℕ} →
                  Module.finrank 𝕜 E = n →
                    [inst_5 : DecidableEq ι] →
                      {V : ι → Submodule 𝕜 E} →
                        DirectSum.IsInternal V →
                          (OrthogonalFamily 𝕜 (fun i ↦ ↥(V i)) fun i ↦ (V i).subtypeₗᵢ) →
                            (i : ι) × Fin (Module.finrank 𝕜 ↥(V i)) ≃ Fin n

Exhibit a bijection between Fin n and the index set of a certain basis of an n-dimensional inner product space E. This should not be accessed directly, but only via the subsequent API.

def DirectSum.IsInternal.subordinateOrthonormalBasis E1 #

{ι : Type u_1} →
  {𝕜 : Type u_3} →
    [inst : RCLike 𝕜] →
      {E : Type u_4} →
        [inst_1 : NormedAddCommGroup E] →
          [inst_2 : InnerProductSpace 𝕜 E] →
            [Fintype ι] →
              [FiniteDimensional 𝕜 E] →
                {n : ℕ} →
                  Module.finrank 𝕜 E = n →
                    [inst_5 : DecidableEq ι] →
                      {V : ι → Submodule 𝕜 E} →
                        DirectSum.IsInternal V →
                          (OrthogonalFamily 𝕜 (fun i ↦ ↥(V i)) fun i ↦ (V i).subtypeₗᵢ) → OrthonormalBasis (Fin n) 𝕜 E

An n-dimensional InnerProductSpace equipped with a decomposition as an internal direct sum has an orthonormal basis indexed by Fin n and subordinate to that direct sum.

def DirectSum.IsInternal.subordinateOrthonormalBasisIndex E1 #

{ι : Type u_1} →
  {𝕜 : Type u_3} →
    [inst : RCLike 𝕜] →
      {E : Type u_4} →
        [inst_1 : NormedAddCommGroup E] →
          [inst_2 : InnerProductSpace 𝕜 E] →
            [Fintype ι] →
              [FiniteDimensional 𝕜 E] →
                {n : ℕ} →
                  Module.finrank 𝕜 E = n →
                    [inst_5 : DecidableEq ι] →
                      {V : ι → Submodule 𝕜 E} →
                        DirectSum.IsInternal V →
                          Fin n → (OrthogonalFamily 𝕜 (fun i ↦ ↥(V i)) fun i ↦ (V i).subtypeₗᵢ) → ι

An n-dimensional InnerProductSpace equipped with a decomposition as an internal direct sum has an orthonormal basis indexed by Fin n and subordinate to that direct sum. This function provides the mapping by which it is subordinate.

theorem DirectSum.IsInternal.subordinateOrthonormalBasis_subordinate E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] [inst_4 : FiniteDimensional 𝕜 E] {n : ℕ}
  (hn : Module.finrank 𝕜 E = n) [inst_5 : DecidableEq ι] {V : ι → Submodule 𝕜 E} (hV : DirectSum.IsInternal V)
  (a : Fin n) (hV' : OrthogonalFamily 𝕜 (fun i ↦ ↥(V i)) fun i ↦ (V i).subtypeₗᵢ),
  (DirectSum.IsInternal.subordinateOrthonormalBasis hn hV hV') a ∈
    V (DirectSum.IsInternal.subordinateOrthonormalBasisIndex hn hV a hV')

The basis constructed in DirectSum.IsInternal.subordinateOrthonormalBasis is subordinate to the OrthogonalFamily in question.

theorem DirectSum.IsInternal.exists_subordinateOrthonormalBasisIndex_eq E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] [inst_4 : FiniteDimensional 𝕜 E] {n : ℕ}
  (hn : Module.finrank 𝕜 E = n) [inst_5 : DecidableEq ι] {V : ι → Submodule 𝕜 E} (hV : DirectSum.IsInternal V)
  (hV' : OrthogonalFamily 𝕜 (fun i ↦ ↥(V i)) fun i ↦ (V i).subtypeₗᵢ) {i : ι},
  V i ≠ ⊥ → ∃ a, DirectSum.IsInternal.subordinateOrthonormalBasisIndex hn hV a hV' = i

theorem DirectSum.IsInternal.card_filter_subordinateOrthonormalBasisIndex_eq E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] [inst_4 : FiniteDimensional 𝕜 E] {n : ℕ}
  (hn : Module.finrank 𝕜 E = n) [inst_5 : DecidableEq ι] {V : ι → Submodule 𝕜 E} (hV : DirectSum.IsInternal V)
  (hV' : OrthogonalFamily 𝕜 (fun i ↦ ↥(V i)) fun i ↦ (V i).subtypeₗᵢ) (i : ι),
  {a | DirectSum.IsInternal.subordinateOrthonormalBasisIndex hn hV a hV' = i}.card = Module.finrank 𝕜 ↥(V i)

def OrthonormalBasis.fromOrthogonalSpanSingleton E1 #

{𝕜 : Type u_3} →
  [inst : RCLike 𝕜] →
    {E : Type u_4} →
      [inst_1 : NormedAddCommGroup E] →
        [inst_2 : InnerProductSpace 𝕜 E] →
          (n : ℕ) → [Fact (Module.finrank 𝕜 E = n + 1)] → {v : E} → v ≠ 0 → OrthonormalBasis (Fin n) 𝕜 ↥(𝕜 ∙ v)ᗮ

Given a natural number n one less than the finrank of a finite-dimensional inner product space, there exists an isometry from the orthogonal complement of a nonzero singleton to EuclideanSpace 𝕜 (Fin n).

def LinearIsometry.extend E1 #

{𝕜 : Type u_3} →
  [inst : RCLike 𝕜] →
    {V : Type u_7} →
      [inst_1 : NormedAddCommGroup V] →
        [inst_2 : InnerProductSpace 𝕜 V] → [FiniteDimensional 𝕜 V] → {S : Submodule 𝕜 V} → (↥S →ₗᵢ[𝕜] V) → V →ₗᵢ[𝕜] V

Let S be a subspace of a finite-dimensional complex inner product space V. A linear isometry mapping S into V can be extended to a full isometry of V.

TODO: The case when S is a finite-dimensional subspace of an infinite-dimensional V.

theorem LinearIsometry.extend_apply E0 #

∀ {𝕜 : Type u_3} [inst : RCLike 𝕜] {V : Type u_7} [inst_1 : NormedAddCommGroup V] [inst_2 : InnerProductSpace 𝕜 V]
  [inst_3 : FiniteDimensional 𝕜 V] {S : Submodule 𝕜 V} (L : ↥S →ₗᵢ[𝕜] V) (s : ↥S), L.extend ↑s = L s

abbrev Matrix.toEuclideanLin E1 #

{𝕜 : Type u_3} →
  [inst : RCLike 𝕜] →
    {m : Type u_7} →
      {n : Type u_8} → [Fintype n] → [DecidableEq n] → Matrix m n 𝕜 ≃ₗ[𝕜] EuclideanSpace 𝕜 n →ₗ[𝕜] EuclideanSpace 𝕜 m

A shorthand for Matrix.toLpLin 2 2.

theorem Matrix.toEuclideanLin_eq_toLin_orthonormal E1 #

∀ {𝕜 : Type u_3} [inst : RCLike 𝕜] {m : Type u_7} {n : Type u_8} [inst_1 : Fintype n] [inst_2 : DecidableEq n]
  [inst_3 : Fintype m],
  Matrix.toEuclideanLin = Matrix.toLin (EuclideanSpace.basisFun n 𝕜).toBasis (EuclideanSpace.basisFun m 𝕜).toBasis

theorem inner_matrix_row_row E1 #

∀ {𝕜 : Type u_3} [inst : RCLike 𝕜] {m : Type u_7} {n : Type u_8} {m' : Type u_9} [inst_1 : Fintype n]
  (A : Matrix m' n 𝕜) (B : Matrix m n 𝕜) (i : m') (j : m),
  inner 𝕜 (WithLp.toLp 2 (A i)) (WithLp.toLp 2 (B j)) = (B * A.conjTranspose) j i

The inner product of a row of A and a row of B is an entry of B * Aᴴ.

theorem inner_matrix_col_col E1 #

∀ {𝕜 : Type u_3} [inst : RCLike 𝕜] {m : Type u_7} {n : Type u_8} {n' : Type u_9} [inst_1 : Fintype m]
  (A : Matrix m n' 𝕜) (B : Matrix m n 𝕜) (i : n') (j : n),
  inner 𝕜 (WithLp.toLp 2 (A.transpose i)) (WithLp.toLp 2 (B.transpose j)) = (A.conjTranspose * B) i j

The inner product of a column of A and a column of B is an entry of Aᴴ * B.

theorem LinearMap.toMatrix_innerₛₗ_apply E0 #

∀ {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace 𝕜 E]
  {m : Type u_7} {n : Type u_8} [inst_3 : Fintype n] [inst_4 : DecidableEq n] [inst_5 : Fintype m]
  (b : OrthonormalBasis n 𝕜 E) (b₂ : OrthonormalBasis m 𝕜 𝕜) (x : E),
  (LinearMap.toMatrix b.toBasis b₂.toBasis) ((innerₛₗ 𝕜) x) = Matrix.vecMulVec (star ⇑b₂) (star (b.repr x).ofLp)

The matrix representation of innerSL 𝕜 x given by an orthonormal basis b and b₂ is equal to vecMulVec (star b₂) (star (b.repr x)).

theorem InnerProductSpace.toMatrix_rankOne E1 #

∀ {𝕜 : Type u_7} {E : Type u_8} {F : Type u_9} {ι : Type u_10} {ι' : Type u_11} [inst : RCLike 𝕜]
  [inst_1 : SeminormedAddCommGroup E] [inst_2 : NormedSpace 𝕜 E] [inst_3 : NormedAddCommGroup F]
  [inst_4 : InnerProductSpace 𝕜 F] [inst_5 : Finite ι] [inst_6 : Fintype ι'] [inst_7 : DecidableEq ι'] (x : E) (y : F)
  (b : Module.Basis ι 𝕜 E) (b' : OrthonormalBasis ι' 𝕜 F),
  (LinearMap.toMatrix b'.toBasis b) ↑(((InnerProductSpace.rankOne 𝕜) x) y) =
    Matrix.vecMulVec (⇑(b.repr x)) (star (b'.repr y).ofLp)

theorem InnerProductSpace.symm_toEuclideanLin_rankOne E1 #

∀ {𝕜 : Type u_7} {m : Type u_8} {n : Type u_9} [inst : RCLike 𝕜] [inst_1 : Fintype m] [inst_2 : Fintype n]
  [inst_3 : DecidableEq n] (x : EuclideanSpace 𝕜 m) (y : EuclideanSpace 𝕜 n),
  Matrix.toEuclideanLin.symm ↑(((InnerProductSpace.rankOne 𝕜) x) y) = Matrix.vecMulVec x.ofLp (star y.ofLp)

def FiniteDimensional.orthonormalBasisSingleton E3 #

(ι : Type u_1) →
  (𝕜 : Type u_3) →
    [inst : RCLike 𝕜] →
      {E : Type u_4} →
        [inst_1 : NormedAddCommGroup E] →
          [inst_2 : InnerProductSpace 𝕜 E] →
            [inst_3 : Fintype ι] → [Unique ι] → Module.finrank 𝕜 E = 1 → (v : E) → ‖v‖ = 1 → OrthonormalBasis ι 𝕜 E

In an inner product space with dimension 1, a set {v} is an orthonormal basis for ‖v‖ = 1.

theorem FiniteDimensional.orthonormalBasisSingleton_apply E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] [inst_4 : Unique ι] (h : Module.finrank 𝕜 E = 1) {v : E}
  (hv : ‖v‖ = 1) (i : ι), (FiniteDimensional.orthonormalBasisSingleton ι 𝕜 h v hv) i = v

theorem FiniteDimensional.toBasis_orthonormalBasisSingleton E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] [inst_4 : Unique ι] (h : Module.finrank 𝕜 E = 1) {v : E}
  (hv : ‖v‖ = 1),
  (FiniteDimensional.orthonormalBasisSingleton ι 𝕜 h v hv).toBasis = FiniteDimensional.basisSingleton ι h v ⋯

theorem FiniteDimensional.orthonormalBasisSingleton_repr_apply E0 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] [inst_4 : Unique ι] (h : Module.finrank 𝕜 E = 1) {v : E}
  (hv : ‖v‖ = 1) (w : E),
  (FiniteDimensional.orthonormalBasisSingleton ι 𝕜 h v hv).repr w = EuclideanSpace.single default (inner 𝕜 v w)

theorem FiniteDimensional.range_orthonormalBasisSingleton E1 #

∀ {ι : Type u_1} {𝕜 : Type u_3} [inst : RCLike 𝕜] {E : Type u_4} [inst_1 : NormedAddCommGroup E]
  [inst_2 : InnerProductSpace 𝕜 E] [inst_3 : Fintype ι] [inst_4 : Unique ι] (h : Module.finrank 𝕜 E = 1) {v : E}
  (hv : ‖v‖ = 1), Set.range ⇑(FiniteDimensional.orthonormalBasisSingleton ι 𝕜 h v hv) = {v}

Deprecated aliases

NameNew nameSince
EuclideanSpace.nndist_eqEuclideanSpace.nnDist_eq2026-11-07
EuclideanSpace.nnnorm_eqEuclideanSpace.nnNorm_eq2026-10-31
OrthonormalBasis.enorm_eq_oneOrthonormalBasis.eNorm_eq_one2026-11-06
OrthonormalBasis.nnnorm_eq_oneOrthonormalBasis.nnNorm_eq_one2026-10-31
OrthonormalBasis.orthogonalProjection_apply_eq_sumOrthonormalBasis.orthogonalProjectionOnto_apply_eq_sum2026-05-05
OrthonormalBasis.orthogonalProjection_eq_sum_rankOneOrthonormalBasis.orthogonalProjectionOnto_eq_sum_rankOne2026-05-05