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.Projection.FiniteDimensional

19 declarations. Mathlib docs ยท Source

Orthogonal projections in finite-dimensional spaces

This file contains results about orthogonal projections in finite-dimensional spaces.

Main results

  • Submodule.det_reflection: The determinant of K.reflection is (-1) ^ finrank ๐•œ Kแ—ฎ.
  • LinearIsometryEquiv.reflections_generate: The orthogonal group of F is generated by reflections.

Results that do not use finite dimensionality:

  • OrthogonalFamily.isInternal_iff_of_isComplete
  • OrthogonalFamily.sum_projection_of_mem_iSup
  • OrthogonalFamily.projection_directSum_coeAddHom
  • OrthogonalFamily.decomposition
  • maximal_orthonormal_iff_orthogonalComplement_eq_bot

theorem Submodule.topologicalClosure_eq_self E0 #

โˆ€ {๐•œ : Type u_1} {E : Type u_2} [inst : RCLike ๐•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace ๐•œ E]
  (K : Submodule ๐•œ E) [FiniteDimensional ๐•œ โ†ฅK], K.topologicalClosure = K

theorem Submodule.det_reflection E3 #

โˆ€ {๐•œ : Type u_1} {E : Type u_2} [inst : RCLike ๐•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace ๐•œ E]
  (K : Submodule ๐•œ E) [inst_3 : FiniteDimensional ๐•œ โ†ฅK],
  LinearMap.det โ†‘K.reflection.toLinearEquiv = (-1) ^ Module.finrank ๐•œ โ†ฅKแ—ฎ

theorem Submodule.linearEquiv_det_reflection E0 #

โˆ€ {๐•œ : Type u_1} {E : Type u_2} [inst : RCLike ๐•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace ๐•œ E]
  (K : Submodule ๐•œ E) [inst_3 : FiniteDimensional ๐•œ โ†ฅK],
  LinearEquiv.det K.reflection.toLinearEquiv = (-1) ^ Module.finrank ๐•œ โ†ฅKแ—ฎ

theorem Submodule.finrank_add_inf_finrank_orthogonal E1 #

โˆ€ {๐•œ : Type u_1} {E : Type u_2} [inst : RCLike ๐•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace ๐•œ E]
  {Kโ‚ Kโ‚‚ : Submodule ๐•œ E} [FiniteDimensional ๐•œ โ†ฅKโ‚‚],
  Kโ‚ โ‰ค Kโ‚‚ โ†’ Module.finrank ๐•œ โ†ฅKโ‚ + Module.finrank ๐•œ โ†ฅ(Kโ‚แ—ฎ โŠ“ Kโ‚‚) = Module.finrank ๐•œ โ†ฅKโ‚‚

Given a finite-dimensional subspace Kโ‚‚, and a subspace Kโ‚ contained in it, the dimensions of Kโ‚ and the intersection of its orthogonal subspace with Kโ‚‚ add to that of Kโ‚‚.

theorem Submodule.finrank_add_inf_finrank_orthogonal' E1 #

โˆ€ {๐•œ : Type u_1} {E : Type u_2} [inst : RCLike ๐•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace ๐•œ E]
  {Kโ‚ Kโ‚‚ : Submodule ๐•œ E} [FiniteDimensional ๐•œ โ†ฅKโ‚‚],
  Kโ‚ โ‰ค Kโ‚‚ โ†’ โˆ€ {n : โ„•}, Module.finrank ๐•œ โ†ฅKโ‚ + n = Module.finrank ๐•œ โ†ฅKโ‚‚ โ†’ Module.finrank ๐•œ โ†ฅ(Kโ‚แ—ฎ โŠ“ Kโ‚‚) = n

Given a finite-dimensional subspace Kโ‚‚, and a subspace Kโ‚ contained in it, the dimensions of Kโ‚ and the intersection of its orthogonal subspace with Kโ‚‚ add to that of Kโ‚‚.

theorem Submodule.finrank_add_finrank_orthogonal E1 #

โˆ€ {๐•œ : Type u_1} {E : Type u_2} [inst : RCLike ๐•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace ๐•œ E]
  [FiniteDimensional ๐•œ E] (K : Submodule ๐•œ E), Module.finrank ๐•œ โ†ฅK + Module.finrank ๐•œ โ†ฅKแ—ฎ = Module.finrank ๐•œ E

Given a finite-dimensional space E and subspace K, the dimensions of K and Kแ—ฎ add to that of E.

theorem Submodule.finrank_add_finrank_orthogonal' E1 #

โˆ€ {๐•œ : Type u_1} {E : Type u_2} [inst : RCLike ๐•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace ๐•œ E]
  [FiniteDimensional ๐•œ E] {K : Submodule ๐•œ E} {n : โ„•},
  Module.finrank ๐•œ โ†ฅK + n = Module.finrank ๐•œ E โ†’ Module.finrank ๐•œ โ†ฅKแ—ฎ = n

Given a finite-dimensional space E and subspace K, the dimensions of K and Kแ—ฎ add to that of E.

theorem Submodule.finrank_orthogonal_span_singleton E1 #

โˆ€ {๐•œ : Type u_1} {E : Type u_2} [inst : RCLike ๐•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace ๐•œ E]
  {n : โ„•} [_i : Fact (Module.finrank ๐•œ E = n + 1)] {v : E}, v โ‰  0 โ†’ Module.finrank ๐•œ โ†ฅ(๐•œ โˆ™ v)แ—ฎ = n

In a finite-dimensional inner product space, the dimension of the orthogonal complement of the span of a nonzero vector is one less than the dimension of the space.

theorem Submodule.mem_span_singleton_of_inner_eq_zero_of_inner_eq_zero E0 #

โˆ€ {๐•œ : Type u_1} {E : Type u_2} [inst : RCLike ๐•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace ๐•œ E]
  [Fact (Module.finrank ๐•œ E = 2)] {u v w : E}, v โ‰  0 โ†’ w โ‰  0 โ†’ inner ๐•œ v u = 0 โ†’ inner ๐•œ v w = 0 โ†’ u โˆˆ ๐•œ โˆ™ w

If a nonzero vector w and a vector u are both orthogonal to the same nonzero vector v in a two-dimensional inner product space, then u lies in the span of w.

theorem LinearIsometryEquiv.reflections_generate_dim_aux E0 #

โˆ€ {F : Type u_3} [inst : NormedAddCommGroup F] [inst_1 : InnerProductSpace โ„ F] [FiniteDimensional โ„ F] {n : โ„•}
  (ฯ† : F โ‰ƒโ‚—แตข[โ„] F),
  Module.finrank โ„ โ†ฅ(โ†‘(ContinuousLinearMap.id โ„ F - โ†‘โ†‘ฯ†)).kerแ—ฎ โ‰ค n โ†’
    โˆƒ l, l.length โ‰ค n โˆง ฯ† = (List.map (fun v โ†ฆ (โ„ โˆ™ v)แ—ฎ.reflection) l).prod

An element ฯ† of the orthogonal group of F can be factored as a product of reflections, and specifically at most as many reflections as the dimension of the complement of the fixed subspace of ฯ†.

theorem LinearIsometryEquiv.reflections_generate_dim E2 #

โˆ€ {F : Type u_3} [inst : NormedAddCommGroup F] [inst_1 : InnerProductSpace โ„ F] [FiniteDimensional โ„ F]
  (ฯ† : F โ‰ƒโ‚—แตข[โ„] F), โˆƒ l, l.length โ‰ค Module.finrank โ„ F โˆง ฯ† = (List.map (fun v โ†ฆ (โ„ โˆ™ v)แ—ฎ.reflection) l).prod

The orthogonal group of F is generated by reflections; specifically each element ฯ† of the orthogonal group is a product of at most as many reflections as the dimension of F.

Special case of the Cartanโ€“Dieudonnรฉ theorem.

theorem LinearIsometryEquiv.reflections_generate E3 #

โˆ€ {F : Type u_3} [inst : NormedAddCommGroup F] [inst_1 : InnerProductSpace โ„ F] [FiniteDimensional โ„ F],
  Subgroup.closure (Set.range fun v โ†ฆ (โ„ โˆ™ v)แ—ฎ.reflection) = โŠค

The orthogonal group of F is generated by reflections.

theorem OrthogonalFamily.isInternal_iff_of_isComplete 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โ‚—แตข) โ†’
    IsComplete โ†‘(iSup V) โ†’ (DirectSum.IsInternal V โ†” (iSup V)แ—ฎ = โŠฅ)

An orthogonal family of subspaces of E satisfies DirectSum.IsInternal (that is, they provide an internal direct sum decomposition of E) if and only if their span has trivial orthogonal complement.

theorem OrthogonalFamily.isInternal_iff E0 #

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

An orthogonal family of subspaces of E satisfies DirectSum.IsInternal (that is, they provide an internal direct sum decomposition of E) if and only if their span has trivial orthogonal complement.

theorem OrthogonalFamily.sum_projection_of_mem_iSup E1 #

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

If x lies within an orthogonal family v, it can be expressed as a sum of projections.

theorem OrthogonalFamily.projection_directSum_coeAddHom 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โ‚—แตข) โ†’
    โˆ€ (x : DirectSum ฮน fun i โ†ฆ โ†ฅ(V i)) (i : ฮน) [inst_4 : CompleteSpace โ†ฅ(V i)],
      (V i).orthogonalProjectionOnto ((DirectSum.coeAddMonoidHom V) x) = x i

If a family of submodules is orthogonal, then the orthogonalProjection on a direct sum is just the coefficient of that direct sum.

abbrev OrthogonalFamily.decomposition E1 #

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

If a family of submodules is orthogonal and they span the whole space, then the orthogonal projection provides a means to decompose the space into its submodules.

The projection function is decompose V x i = (V i).orthogonalProjection x.

See note [reducible non-instances].

theorem maximal_orthonormal_iff_orthogonalComplement_eq_bot E1 #

โˆ€ {๐•œ : Type u_1} {E : Type u_2} [inst : RCLike ๐•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace ๐•œ E]
  {v : Set E}, Orthonormal ๐•œ Subtype.val โ†’ ((โˆ€ u โЇ v, Orthonormal ๐•œ Subtype.val โ†’ u = v) โ†” (Submodule.span ๐•œ v)แ—ฎ = โŠฅ)

An orthonormal set in an InnerProductSpace is maximal, if and only if the orthogonal complement of its span is empty.

theorem maximal_orthonormal_iff_basis_of_finiteDimensional E3 #

โˆ€ {๐•œ : Type u_1} {E : Type u_2} [inst : RCLike ๐•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace ๐•œ E]
  {v : Set E} [FiniteDimensional ๐•œ E],
  Orthonormal ๐•œ Subtype.val โ†’ ((โˆ€ u โЇ v, Orthonormal ๐•œ Subtype.val โ†’ u = v) โ†” โˆƒ b, โ‡‘b = Subtype.val)

An orthonormal set in a finite-dimensional InnerProductSpace is maximal, if and only if it is a basis.