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

39 declarations and 1 deprecated aliases. Mathlib docs Β· Source

Gram-Schmidt Orthogonalization and Orthonormalization

In this file we introduce Gram-Schmidt Orthogonalization and Orthonormalization.

The Gram-Schmidt process takes a set of vectors as input and outputs a set of orthogonal vectors which have the same span.

Main results

  • gramSchmidt: the Gram-Schmidt process
  • gramSchmidt_orthogonal: gramSchmidt produces an orthogonal system of vectors.
  • span_gramSchmidt: gramSchmidt preserves span of vectors.
  • gramSchmidt_linearIndependent: if the input vectors of gramSchmidt are linearly independent, then so are the output vectors.
  • gramSchmidt_ne_zero: if the input vectors of gramSchmidt are linearly independent, then the output vectors are non-zero.
  • gramSchmidtBasis: the basis produced by the Gram-Schmidt process when given a basis as input
  • gramSchmidtNormed: the normalized gramSchmidt process, i.e each vector in gramSchmidtNormed has unit length
  • gramSchmidt_orthonormal: gramSchmidtNormed produces an orthonormal system of vectors.
  • gramSchmidtOrthonormalBasis: orthonormal basis constructed by the Gram-Schmidt process from an indexed set of vectors of the right size

theorem InnerProductSpace.gramSchmidtOrthonormalBasis.congr_simp E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] [inst_5 : Fintype ΞΉ]
  [inst_6 : FiniteDimensional π•œ E] (h : Module.finrank π•œ E = Fintype.card ΞΉ) (f f_1 : ΞΉ β†’ E),
  f = f_1 β†’ InnerProductSpace.gramSchmidtOrthonormalBasis h f = InnerProductSpace.gramSchmidtOrthonormalBasis h f_1

def InnerProductSpace.gramSchmidt E3 #

(π•œ : Type u_1) β†’
  {E : Type u_2} β†’
    [inst : RCLike π•œ] β†’
      [inst_1 : NormedAddCommGroup E] β†’
        [InnerProductSpace π•œ E] β†’ {ΞΉ : Type u_3} β†’ [inst : LinearOrder ΞΉ] β†’ [LocallyFiniteOrderBot ΞΉ] β†’ (ΞΉ β†’ E) β†’ ΞΉ β†’ E

The Gram-Schmidt process takes a set of vectors as input and outputs a set of orthogonal vectors which have the same span.

theorem InnerProductSpace.gramSchmidt_def E0 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] (f : ΞΉ β†’ E) (n : ΞΉ),
  InnerProductSpace.gramSchmidt π•œ f n = f n - βˆ‘ i < n, (π•œ βˆ™ InnerProductSpace.gramSchmidt π•œ f i).starProjection (f n)

This lemma uses βˆ‘ i in instead of βˆ‘ i :.

theorem InnerProductSpace.gramSchmidt_def' E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] (f : ΞΉ β†’ E) (n : ΞΉ),
  f n = InnerProductSpace.gramSchmidt π•œ f n + βˆ‘ i < n, (π•œ βˆ™ InnerProductSpace.gramSchmidt π•œ f i).starProjection (f n)

theorem InnerProductSpace.gramSchmidt_def'' E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] (f : ΞΉ β†’ E) (n : ΞΉ),
  f n =
    InnerProductSpace.gramSchmidt π•œ f n +
      βˆ‘ i < n,
        (inner π•œ (InnerProductSpace.gramSchmidt π•œ f i) (f n) / ↑‖InnerProductSpace.gramSchmidt π•œ f iβ€– ^ 2) β€’
          InnerProductSpace.gramSchmidt π•œ f i

theorem InnerProductSpace.gramSchmidt_bot E0 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_4} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrder ΞΉ] [inst_5 : OrderBot ΞΉ] (f : ΞΉ β†’ E),
  InnerProductSpace.gramSchmidt π•œ f βŠ₯ = f βŠ₯

theorem InnerProductSpace.gramSchmidt_zero E0 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] (n : ΞΉ),
  InnerProductSpace.gramSchmidt π•œ 0 n = 0

theorem InnerProductSpace.gramSchmidt_orthogonal E3 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] (f : ΞΉ β†’ E) {a b : ΞΉ},
  a β‰  b β†’ inner π•œ (InnerProductSpace.gramSchmidt π•œ f a) (InnerProductSpace.gramSchmidt π•œ f b) = 0

Gram-Schmidt Orthogonalisation: gramSchmidt produces an orthogonal system of vectors.

theorem InnerProductSpace.gramSchmidt_pairwise_orthogonal E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] (f : ΞΉ β†’ E),
  Pairwise fun a b ↦ inner π•œ (InnerProductSpace.gramSchmidt π•œ f a) (InnerProductSpace.gramSchmidt π•œ f b) = 0

This is another version of gramSchmidt_orthogonal using Pairwise instead.

theorem InnerProductSpace.gramSchmidt_inv_triangular E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] (v : ΞΉ β†’ E) {i j : ΞΉ},
  i < j β†’ inner π•œ (InnerProductSpace.gramSchmidt π•œ v j) (v i) = 0

theorem InnerProductSpace.mem_span_gramSchmidt E0 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] (f : ΞΉ β†’ E) {i j : ΞΉ},
  i ≀ j β†’ f i ∈ Submodule.span π•œ (InnerProductSpace.gramSchmidt π•œ f '' Set.Iic j)

theorem InnerProductSpace.gramSchmidt_mem_span E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] (f : ΞΉ β†’ E) {j i : ΞΉ},
  i ≀ j β†’ InnerProductSpace.gramSchmidt π•œ f i ∈ Submodule.span π•œ (f '' Set.Iic j)

theorem InnerProductSpace.span_gramSchmidt_Iic E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] (f : ΞΉ β†’ E) (c : ΞΉ),
  Submodule.span π•œ (InnerProductSpace.gramSchmidt π•œ f '' Set.Iic c) = Submodule.span π•œ (f '' Set.Iic c)

theorem InnerProductSpace.span_gramSchmidt_Iio E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] (f : ΞΉ β†’ E) (c : ΞΉ),
  Submodule.span π•œ (InnerProductSpace.gramSchmidt π•œ f '' Set.Iio c) = Submodule.span π•œ (f '' Set.Iio c)

theorem InnerProductSpace.span_gramSchmidt E3 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] (f : ΞΉ β†’ E),
  Submodule.span π•œ (Set.range (InnerProductSpace.gramSchmidt π•œ f)) = Submodule.span π•œ (Set.range f)

gramSchmidt preserves span of vectors.

theorem InnerProductSpace.gramSchmidt_of_orthogonal E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] {f : ΞΉ β†’ E},
  (Pairwise fun x1 x2 ↦ inner π•œ (f x1) (f x2) = 0) β†’ InnerProductSpace.gramSchmidt π•œ f = f

If given an orthogonal set of vectors, gramSchmidt fixes its input.

theorem InnerProductSpace.gramSchmidt_ne_zero_coe E0 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] {f : ΞΉ β†’ E} (n : ΞΉ),
  LinearIndependent π•œ (f ∘ Subtype.val) β†’ InnerProductSpace.gramSchmidt π•œ f n β‰  0

theorem InnerProductSpace.gramSchmidt_ne_zero E3 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] {f : ΞΉ β†’ E} (n : ΞΉ),
  LinearIndependent π•œ f β†’ InnerProductSpace.gramSchmidt π•œ f n β‰  0

If the input vectors of gramSchmidt are linearly independent, then the output vectors are non-zero.

theorem InnerProductSpace.gramSchmidt_triangular E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] {i j : ΞΉ},
  i < j β†’ βˆ€ (b : Module.Basis ΞΉ π•œ E), (b.repr (InnerProductSpace.gramSchmidt π•œ (⇑b) i)) j = 0

gramSchmidt produces a triangular matrix of vectors when given a basis.

theorem InnerProductSpace.gramSchmidt_linearIndependent E3 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] {f : ΞΉ β†’ E},
  LinearIndependent π•œ f β†’ LinearIndependent π•œ (InnerProductSpace.gramSchmidt π•œ f)

gramSchmidt produces linearly independent vectors when given linearly independent vectors.

def InnerProductSpace.gramSchmidtBasis E3 #

{π•œ : Type u_1} β†’
  {E : Type u_2} β†’
    [inst : RCLike π•œ] β†’
      [inst_1 : NormedAddCommGroup E] β†’
        [inst_2 : InnerProductSpace π•œ E] β†’
          {ΞΉ : Type u_3} β†’
            [inst_3 : LinearOrder ΞΉ] β†’ [LocallyFiniteOrderBot ΞΉ] β†’ Module.Basis ΞΉ π•œ E β†’ Module.Basis ΞΉ π•œ E

When given a basis, gramSchmidt produces a basis.

theorem InnerProductSpace.coe_gramSchmidtBasis E0 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] (b : Module.Basis ΞΉ π•œ E),
  ⇑(InnerProductSpace.gramSchmidtBasis b) = InnerProductSpace.gramSchmidt π•œ ⇑b

def InnerProductSpace.gramSchmidtNormed E3 #

(π•œ : Type u_1) β†’
  {E : Type u_2} β†’
    [inst : RCLike π•œ] β†’
      [inst_1 : NormedAddCommGroup E] β†’
        [InnerProductSpace π•œ E] β†’ {ΞΉ : Type u_3} β†’ [inst : LinearOrder ΞΉ] β†’ [LocallyFiniteOrderBot ΞΉ] β†’ (ΞΉ β†’ E) β†’ ΞΉ β†’ E

the normalized gramSchmidt (i.e each vector in gramSchmidtNormed has unit length.)

theorem InnerProductSpace.gramSchmidtNormed_unit_length_coe E0 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] {f : ΞΉ β†’ E} (n : ΞΉ),
  LinearIndependent π•œ (f ∘ Subtype.val) β†’ β€–InnerProductSpace.gramSchmidtNormed π•œ f nβ€– = 1

theorem InnerProductSpace.gramSchmidtNormed_unit_length E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] {f : ΞΉ β†’ E} (n : ΞΉ),
  LinearIndependent π•œ f β†’ β€–InnerProductSpace.gramSchmidtNormed π•œ f nβ€– = 1

theorem InnerProductSpace.gramSchmidtNormed_unit_length' E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] {f : ΞΉ β†’ E} {n : ΞΉ},
  InnerProductSpace.gramSchmidtNormed π•œ f n β‰  0 β†’ β€–InnerProductSpace.gramSchmidtNormed π•œ f nβ€– = 1

theorem InnerProductSpace.gramSchmidtNormed_orthonormal E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] {f : ΞΉ β†’ E},
  LinearIndependent π•œ f β†’ Orthonormal π•œ (InnerProductSpace.gramSchmidtNormed π•œ f)

Gram-Schmidt Orthonormalization: gramSchmidtNormed applied to a linearly independent set of vectors produces an orthonormal system of vectors.

theorem InnerProductSpace.gramSchmidtNormed_orthonormal' E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] (f : ΞΉ β†’ E),
  Orthonormal π•œ fun i ↦ InnerProductSpace.gramSchmidtNormed π•œ f ↑i

Gram-Schmidt Orthonormalization: gramSchmidtNormed produces an orthonormal system of vectors after removing the vectors which become zero in the process.

theorem InnerProductSpace.span_gramSchmidtNormed E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] (f : ΞΉ β†’ E) (s : Set ΞΉ),
  Submodule.span π•œ (InnerProductSpace.gramSchmidtNormed π•œ f '' s) =
    Submodule.span π•œ (InnerProductSpace.gramSchmidt π•œ f '' s)

theorem InnerProductSpace.span_gramSchmidtNormed_range E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] (f : ΞΉ β†’ E),
  Submodule.span π•œ (Set.range (InnerProductSpace.gramSchmidtNormed π•œ f)) =
    Submodule.span π•œ (Set.range (InnerProductSpace.gramSchmidt π•œ f))

theorem InnerProductSpace.gramSchmidtNormed_linearIndependent E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] {f : ΞΉ β†’ E},
  LinearIndependent π•œ f β†’ LinearIndependent π•œ (InnerProductSpace.gramSchmidtNormed π•œ f)

gramSchmidtNormed produces linearly independent vectors when given linearly independent vectors.

def InnerProductSpace.gramSchmidtOrthonormalBasis E3 #

{π•œ : Type u_1} β†’
  {E : Type u_2} β†’
    [inst : RCLike π•œ] β†’
      [inst_1 : NormedAddCommGroup E] β†’
        [inst_2 : InnerProductSpace π•œ E] β†’
          {ΞΉ : Type u_3} β†’
            [inst_3 : LinearOrder ΞΉ] β†’
              [LocallyFiniteOrderBot ΞΉ] β†’
                [inst_5 : Fintype ΞΉ] β†’
                  [FiniteDimensional π•œ E] β†’ Module.finrank π•œ E = Fintype.card ΞΉ β†’ (ΞΉ β†’ E) β†’ OrthonormalBasis ΞΉ π•œ E

Given an indexed family f : ΞΉ β†’ E of vectors in an inner product space E, for which the size of the index set is the dimension of E, produce an orthonormal basis for E which agrees with the orthonormal set produced by the Gram-Schmidt orthonormalization process on the elements of ΞΉ for which this process gives a nonzero number.

theorem InnerProductSpace.gramSchmidtOrthonormalBasis_apply E0 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] [inst_5 : Fintype ΞΉ]
  [inst_6 : FiniteDimensional π•œ E] (h : Module.finrank π•œ E = Fintype.card ΞΉ) {f : ΞΉ β†’ E} {i : ΞΉ},
  InnerProductSpace.gramSchmidtNormed π•œ f i β‰  0 β†’
    (InnerProductSpace.gramSchmidtOrthonormalBasis h f) i = InnerProductSpace.gramSchmidtNormed π•œ f i

theorem InnerProductSpace.gramSchmidtOrthonormalBasis_apply_of_orthogonal E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] [inst_5 : Fintype ΞΉ]
  [inst_6 : FiniteDimensional π•œ E] (h : Module.finrank π•œ E = Fintype.card ΞΉ) {f : ΞΉ β†’ E},
  (Pairwise fun i j ↦ inner π•œ (f i) (f j) = 0) β†’
    βˆ€ {i : ΞΉ}, f i β‰  0 β†’ (InnerProductSpace.gramSchmidtOrthonormalBasis h f) i = (↑‖f iβ€–)⁻¹ β€’ f i

theorem InnerProductSpace.inner_gramSchmidtOrthonormalBasis_eq_zero E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] [inst_5 : Fintype ΞΉ]
  [inst_6 : FiniteDimensional π•œ E] (h : Module.finrank π•œ E = Fintype.card ΞΉ) {f : ΞΉ β†’ E} {i : ΞΉ},
  InnerProductSpace.gramSchmidtNormed π•œ f i = 0 β†’
    βˆ€ (j : ΞΉ), inner π•œ ((InnerProductSpace.gramSchmidtOrthonormalBasis h f) i) (f j) = 0

theorem InnerProductSpace.gramSchmidtOrthonormalBasis_inv_triangular E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] [inst_5 : Fintype ΞΉ]
  [inst_6 : FiniteDimensional π•œ E] (h : Module.finrank π•œ E = Fintype.card ΞΉ) (f : ΞΉ β†’ E) {i j : ΞΉ},
  i < j β†’ inner π•œ ((InnerProductSpace.gramSchmidtOrthonormalBasis h f) j) (f i) = 0

theorem InnerProductSpace.gramSchmidtOrthonormalBasis_inv_triangular' E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] [inst_5 : Fintype ΞΉ]
  [inst_6 : FiniteDimensional π•œ E] (h : Module.finrank π•œ E = Fintype.card ΞΉ) (f : ΞΉ β†’ E) {i j : ΞΉ},
  i < j β†’ ((InnerProductSpace.gramSchmidtOrthonormalBasis h f).repr (f i)).ofLp j = 0

theorem InnerProductSpace.gramSchmidtOrthonormalBasis_inv_isUpperTriangular E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] [inst_5 : Fintype ΞΉ]
  [inst_6 : FiniteDimensional π•œ E] (h : Module.finrank π•œ E = Fintype.card ΞΉ) (f : ΞΉ β†’ E),
  ((InnerProductSpace.gramSchmidtOrthonormalBasis h f).toBasis.toMatrix f).IsUpperTriangular

Given an indexed family f : ΞΉ β†’ E of vectors in an inner product space E, for which the size of the index set is the dimension of E, the matrix of coefficients of f with respect to the orthonormal basis gramSchmidtOrthonormalBasis constructed from f is upper-triangular.

theorem InnerProductSpace.gramSchmidtOrthonormalBasis_det E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_3} [inst_3 : LinearOrder ΞΉ] [inst_4 : LocallyFiniteOrderBot ΞΉ] [inst_5 : Fintype ΞΉ]
  [inst_6 : FiniteDimensional π•œ E] (h : Module.finrank π•œ E = Fintype.card ΞΉ) (f : ΞΉ β†’ E) [inst_7 : DecidableEq ΞΉ],
  (InnerProductSpace.gramSchmidtOrthonormalBasis h f).toBasis.det f =
    ∏ i, inner π•œ ((InnerProductSpace.gramSchmidtOrthonormalBasis h f) i) (f i)

Deprecated aliases

NameNew nameSince
InnerProductSpace.gramSchmidtOrthonormalBasis_inv_blockTriangularInnerProductSpace.gramSchmidtOrthonormalBasis_inv_isUpperTriangular2026-07-30