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 / V07. Linear algebra

Mathlib.LinearAlgebra.Projection

132 declarations and 32 deprecated aliases. Mathlib docs · Source

Projection to a subspace

In this file we define

  • Submodule.projectionOnto (p q : Submodule R E) (h : IsCompl p q): the projection of a module E to a submodule p along its complement q; it is the unique linear map f : E → p such that f x = x for x ∈ p and f x = 0 for x ∈ q.
  • Submodule.projection (p q : Submodule R E) (h : IsCompl p q): the projection Submodule.projectionOnto as a linear map from E to E.
  • Submodule.isComplEquivProj p: equivalence between submodules q such that IsCompl p q and projections f : E → p, ∀ x ∈ p, f x = x.

We also provide some lemmas justifying correctness of our definitions.

Tags

projection, complement subspace

Deprecated

theorem LinearMap.ofIsComplProd.congr_simp E1 #

∀ {E : Type u_2} [inst : AddCommGroup E] {F : Type u_3} [inst_1 : AddCommGroup F] {R₁ : Type u_7} [inst_2 : CommRing R₁]
  [inst_3 : Module R₁ E] [inst_4 : Module R₁ F] {p q : Submodule R₁ E} (h : IsCompl p q),
  LinearMap.ofIsComplProd h = LinearMap.ofIsComplProd h

theorem Submodule.prodEquivOfIsCompl.congr_simp E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] (p q : Submodule R E)
  (h : IsCompl p q), p.prodEquivOfIsCompl q h = p.prodEquivOfIsCompl q h

theorem Submodule.projectionOnto.congr_simp E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E]
  (p q q_1 : Submodule R E) (e_q : q = q_1) (h : IsCompl p q), p.projectionOnto q h = p.projectionOnto q_1 ⋯

theorem Submodule.projection.congr_simp E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] (p p_1 : Submodule R E)
  (e_p : p = p_1) (q q_1 : Submodule R E) (e_q : q = q_1) (hpq : IsCompl p q), p.projection q hpq = p_1.projection q_1 ⋯

theorem LinearMap.ofIsCompl.congr_simp E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {F : Type u_3}
  [inst_3 : AddCommGroup F] [inst_4 : Module R F] {p q : Submodule R E} (h : IsCompl p q) (φ φ_1 : ↥p →ₗ[R] F),
  φ = φ_1 → ∀ (ψ ψ_1 : ↥q →ₗ[R] F), ψ = ψ_1 → LinearMap.ofIsCompl h φ ψ = LinearMap.ofIsCompl h φ_1 ψ_1

theorem LinearMap.ker_id_sub_eq_of_proj E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p : Submodule R E}
  {f : E →ₗ[R] ↥p}, (∀ (x : ↥p), f ↑x = x) → (LinearMap.id - p.subtype ∘ₗ f).ker = p

theorem LinearMap.range_eq_of_proj E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p : Submodule R E}
  {f : E →ₗ[R] ↥p}, (∀ (x : ↥p), f ↑x = x) → f.range = ⊤

theorem LinearMap.isCompl_of_proj E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p : Submodule R E}
  {f : E →ₗ[R] ↥p}, (∀ (x : ↥p), f ↑x = x) → IsCompl p f.ker

def Submodule.prodEquivOfIsCompl E1 #

{R : Type u_1} →
  [inst : Ring R] →
    {E : Type u_2} →
      [inst_1 : AddCommGroup E] → [inst_2 : Module R E] → (p q : Submodule R E) → IsCompl p q → (↥p × ↥q) ≃ₗ[R] E

If q is a complement of p, then p × q is isomorphic to E.

theorem Submodule.coe_prodEquivOfIsCompl E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] (p q : Submodule R E)
  (h : IsCompl p q), ↑(p.prodEquivOfIsCompl q h) = p.subtype.coprod q.subtype

theorem Submodule.coe_prodEquivOfIsCompl' E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] (p q : Submodule R E)
  (h : IsCompl p q) (x : ↥p × ↥q), (p.prodEquivOfIsCompl q h) x = ↑x.1 + ↑x.2

theorem Submodule.prodEquivOfIsCompl_symm_apply_left E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] (p q : Submodule R E)
  (h : IsCompl p q) (x : ↥p), (p.prodEquivOfIsCompl q h).symm ↑x = (x, 0)

theorem Submodule.prodEquivOfIsCompl_symm_apply_right E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] (p q : Submodule R E)
  (h : IsCompl p q) (x : ↥q), (p.prodEquivOfIsCompl q h).symm ↑x = (0, x)

theorem Submodule.prodEquivOfIsCompl_symm_apply_fst_eq_zero E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] (p q : Submodule R E)
  (h : IsCompl p q) {x : E}, ((p.prodEquivOfIsCompl q h).symm x).1 = 0 ↔ x ∈ q

theorem Submodule.prodEquivOfIsCompl_symm_apply_snd_eq_zero E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] (p q : Submodule R E)
  (h : IsCompl p q) {x : E}, ((p.prodEquivOfIsCompl q h).symm x).2 = 0 ↔ x ∈ p

theorem Submodule.prodComm_trans_prodEquivOfIsCompl E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] (p q : Submodule R E)
  (h : IsCompl p q), LinearEquiv.prodComm R ↥q ↥p ≪≫ₗ p.prodEquivOfIsCompl q h = q.prodEquivOfIsCompl p ⋯

def Submodule.projectionOnto E3 #

{R : Type u_1} →
  [inst : Ring R] →
    {E : Type u_2} →
      [inst_1 : AddCommGroup E] → [inst_2 : Module R E] → (p q : Submodule R E) → IsCompl p q → E →ₗ[R] ↥p

Projection to a submodule along a complement. It is the unique linear map f : E → p such that f x = x for x ∈ p and f x = 0 for x ∈ q.

For the projection from E to E, see Submodule.projection. See also:

  • Submodule.projectionOntoL and Submodule.projectionL for the continuous versions.
  • Submodule.orthogonalProjection and Submodule.orthogonalProjectionOnto for the projections along the orthogonal subspace.

See also LinearMap.linearProjOfIsCompl.

def Submodule.projection E1 #

{R : Type u_1} →
  [inst : Ring R] →
    {E : Type u_2} → [inst_1 : AddCommGroup E] → [inst_2 : Module R E] → (p q : Submodule R E) → IsCompl p q → E →ₗ[R] E

The linear projection onto a subspace along its complement as a map from the full space to itself, as opposed to Submodule.projectionOnto, which maps into the subtype. This version is important as it satisfies IsIdempotentElem.

See also:

  • Submodule.projectionOntoL and Submodule.projectionL for the continuous versions.
  • Submodule.orthogonalProjection and Submodule.orthogonalProjectionOnto for the projections along the orthogonal subspace.

theorem Submodule.projection_apply E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (hpq : IsCompl p q) (x : E), (p.projection q hpq) x = ↑((p.projectionOnto q hpq) x)

theorem Submodule.coe_projectionOnto_apply E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (hpq : IsCompl p q) (x : E), ↑((p.projectionOnto q hpq) x) = (p.projection q hpq) x

theorem Submodule.projection_apply_mem E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (hpq : IsCompl p q) (x : E), (p.projection q hpq) x ∈ p

theorem Submodule.projectionOnto_apply_left E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (h : IsCompl p q) (x : ↥p), (p.projectionOnto q h) ↑x = x

theorem Submodule.projection_apply_left E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (hpq : IsCompl p q) (x : ↥p), (p.projection q hpq) ↑x = ↑x

theorem Submodule.projectionOnto_apply_of_mem_left E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (hpq : IsCompl p q) {x : E} (hx : x ∈ p), (p.projectionOnto q hpq) x = ⟨x, hx⟩

theorem Submodule.projection_apply_of_mem_left E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (hpq : IsCompl p q) {x : E}, x ∈ p → (p.projection q hpq) x = x

theorem Submodule.range_projectionOnto E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (h : IsCompl p q), (p.projectionOnto q h).range = ⊤

theorem Submodule.range_projection E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (hpq : IsCompl p q), (p.projection q hpq).range = p

theorem Submodule.projectionOnto_surjective E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (h : IsCompl p q), Function.Surjective ⇑(p.projectionOnto q h)

theorem Submodule.projectionOnto_apply_eq_zero_iff E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (h : IsCompl p q) {x : E}, (p.projectionOnto q h) x = 0 ↔ x ∈ q

theorem Submodule.projection_apply_eq_zero_iff E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (hpq : IsCompl p q) {x : E}, (p.projection q hpq) x = 0 ↔ x ∈ q

theorem Submodule.projectionOnto_apply_of_mem_right E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (h : IsCompl p q) {x : E}, x ∈ q → (p.projectionOnto q h) x = 0

Alias of the reverse direction of Submodule.projectionOnto_apply_eq_zero_iff.

theorem Submodule.projection_apply_of_mem_right E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (hpq : IsCompl p q) {x : E}, x ∈ q → (p.projection q hpq) x = 0

Alias of the reverse direction of Submodule.projection_apply_eq_zero_iff.

theorem Submodule.projectionOnto_apply_right E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (h : IsCompl p q) (x : ↥q), (p.projectionOnto q h) ↑x = 0

theorem Submodule.projection_apply_right E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (h : IsCompl p q) (x : ↥q), (p.projection q h) ↑x = 0

theorem Submodule.ker_projectionOnto E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (h : IsCompl p q), (p.projectionOnto q h).ker = q

theorem Submodule.ker_projection E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (hpq : IsCompl p q), (p.projection q hpq).ker = q

theorem Submodule.projectionOnto_comp_subtype E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (h : IsCompl p q), p.projectionOnto q h ∘ₗ p.subtype = LinearMap.id

theorem Submodule.projectionOnto_comp_subtype_eq_zero E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (h : IsCompl p q), p.projectionOnto q h ∘ₗ q.subtype = 0

theorem Submodule.projectionOnto_projection E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (h : IsCompl p q) (x : E), (p.projectionOnto q h) ((p.projection q h) x) = (p.projectionOnto q h) x

theorem Submodule.isIdempotentElem_projection E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (hpq : IsCompl p q), IsIdempotentElem (p.projection q hpq)

The linear projection onto a subspace along its complement is an idempotent.

theorem Submodule.existsUnique_add_of_isCompl_prod E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E},
  IsCompl p q → ∀ (x : E), ∃! u, ↑u.1 + ↑u.2 = x

theorem Submodule.existsUnique_add_of_isCompl E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E},
  IsCompl p q → ∀ (x : E), ∃ u v, ↑u + ↑v = x ∧ ∀ (r : ↥p) (s : ↥q), ↑r + ↑s = x → r = u ∧ s = v

theorem Submodule.projection_add_projection_eq_self E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (hpq : IsCompl p q) (x : E), (p.projection q hpq) x + (q.projection p ⋯) x = x

theorem Submodule.subtype_comp_projectionOnto_add_eq_id E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (h : IsCompl p q), p.subtype ∘ₗ p.projectionOnto q h + q.subtype ∘ₗ q.projectionOnto p ⋯ = LinearMap.id

theorem Submodule.projection_add_projection_eq_id E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (hpq : IsCompl p q), p.projection q hpq + q.projection p ⋯ = LinearMap.id

theorem Submodule.projection_eq_self_sub_projection E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (hpq : IsCompl p q) (x : E), (q.projection p ⋯) x = x - (p.projection q hpq) x

theorem Submodule.projection_eq_id_sub_projection E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (hpq : IsCompl p q), q.projection p ⋯ = LinearMap.id - p.projection q hpq

theorem Submodule.projection_eq_self_iff E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (hpq : IsCompl p q) (x : E), (p.projection q hpq) x = x ↔ x ∈ p

The projection to p along q of x equals x if and only if x ∈ p.

theorem Submodule.prodEquivOfIsCompl_symm_apply E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (hpq : IsCompl p q) (x : E),
  (p.prodEquivOfIsCompl q hpq).symm x = ((p.projectionOnto q hpq) x, (q.projectionOnto p ⋯) x)

theorem Submodule.toLinearMap_prodEquivOfIsCompl_symm E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (hpq : IsCompl p q), ↑(p.prodEquivOfIsCompl q hpq).symm = (p.projectionOnto q hpq).prod (q.projectionOnto p ⋯)

theorem Submodule.sub_projection_mem E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (h : IsCompl p q) (x : E), x - (p.projection q h) x ∈ q

def Submodule.quotientEquivOfIsCompl E1 #

{R : Type u_1} →
  [inst : Ring R] →
    {E : Type u_2} →
      [inst_1 : AddCommGroup E] → [inst_2 : Module R E] → (p q : Submodule R E) → IsCompl p q → (E ⧸ p) ≃ₗ[R] ↥q

If q is a complement of p, then M ⧸ p ≃ q. The forward direction sends a quotient class to its projection onto q along p; the backward direction sends an element of q to its class in M ⧸ p.

theorem Submodule.quotientEquivOfIsCompl_symm_apply E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] (p q : Submodule R E)
  (h : IsCompl p q) (a : ↥q), (p.quotientEquivOfIsCompl q h).symm a = Submodule.Quotient.mk ↑a

theorem Submodule.quotientEquivOfIsCompl_comp_mkQ E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (h : IsCompl p q), ↑(p.quotientEquivOfIsCompl q h) ∘ₗ p.mkQ = q.projectionOnto p ⋯

theorem Submodule.quotientEquivOfIsCompl_apply_mk E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (h : IsCompl p q) (x : E), (p.quotientEquivOfIsCompl q h) (Submodule.Quotient.mk x) = (q.projectionOnto p ⋯) x

theorem Submodule.quotientEquivOfIsCompl_apply_mk_right E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (h : IsCompl p q) (x : ↥q), (p.quotientEquivOfIsCompl q h) (Submodule.Quotient.mk ↑x) = x

theorem Submodule.mk_quotientEquivOfIsCompl_apply E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (h : IsCompl p q) (x : E ⧸ p), Submodule.Quotient.mk ↑((p.quotientEquivOfIsCompl q h) x) = x

theorem Submodule.toLinearMap_quotientEquivOfIsCompl E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (h : IsCompl p q), ↑(p.quotientEquivOfIsCompl q h) = p.liftQ (q.projectionOnto p ⋯) ⋯

theorem Submodule.toLinearMap_symm_quotientEquivOfIsCompl E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (h : IsCompl p q), ↑(p.quotientEquivOfIsCompl q h).symm = p.mkQ ∘ₗ q.subtype

def LinearMap.linearProjOfIsCompl E1 #

{R : Type u_1} →
  [inst : Ring R] →
    {E : Type u_2} →
      [inst_1 : AddCommGroup E] →
        [inst_2 : Module R E] →
          (q : Submodule R E) →
            {F : Type u_7} →
              [inst_3 : AddCommGroup F] →
                [inst_4 : Module R F] → (i : F →ₗ[R] E) → Function.Injective ⇑i → IsCompl i.range q → E →ₗ[R] F

Projection to the image of an injection along a complement.

This has an advantage over Submodule.projectionOnto in that it allows the user better definitional control over the type.

theorem LinearMap.linearProjOfIsCompl_apply_left E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] (q : Submodule R E)
  {F : Type u_7} [inst_3 : AddCommGroup F] [inst_4 : Module R F] (i : F →ₗ[R] E) (hi : Function.Injective ⇑i)
  (h : IsCompl i.range q) (x : F), (LinearMap.linearProjOfIsCompl q i hi h) (i x) = x

theorem LinearMap.linearProjOfIsCompl_apply_right' E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] (q : Submodule R E)
  {F : Type u_7} [inst_3 : AddCommGroup F] [inst_4 : Module R F] (i : F →ₗ[R] E) (hi : Function.Injective ⇑i)
  (h : IsCompl i.range q), ∀ x ∈ q, (LinearMap.linearProjOfIsCompl q i hi h) x = 0

theorem LinearMap.linearProjOfIsCompl_apply_right E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] (q : Submodule R E)
  {F : Type u_7} [inst_3 : AddCommGroup F] [inst_4 : Module R F] (i : F →ₗ[R] E) (hi : Function.Injective ⇑i)
  (h : IsCompl i.range q) (x : ↥q), (LinearMap.linearProjOfIsCompl q i hi h) ↑x = 0

theorem LinearMap.ker_linearProjOfIsCompl E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] (q : Submodule R E)
  {F : Type u_7} [inst_3 : AddCommGroup F] [inst_4 : Module R F] (i : F →ₗ[R] E) (hi : Function.Injective ⇑i)
  (h : IsCompl i.range q), (LinearMap.linearProjOfIsCompl q i hi h).ker = q

def LinearMap.ofIsCompl E1 #

{R : Type u_1} →
  [inst : Ring R] →
    {E : Type u_2} →
      [inst_1 : AddCommGroup E] →
        [inst_2 : Module R E] →
          {F : Type u_3} →
            [inst_3 : AddCommGroup F] →
              [inst_4 : Module R F] → {p q : Submodule R E} → IsCompl p q → (↥p →ₗ[R] F) → (↥q →ₗ[R] F) → E →ₗ[R] F

Given linear maps φ and ψ from complement submodules, LinearMap.ofIsCompl is the induced linear map over the entire module.

theorem LinearMap.ofIsCompl_apply_left E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {F : Type u_3}
  [inst_3 : AddCommGroup F] [inst_4 : Module R F] {p q : Submodule R E} (h : IsCompl p q) {φ : ↥p →ₗ[R] F}
  {ψ : ↥q →ₗ[R] F} (u : ↥p), (LinearMap.ofIsCompl h φ ψ) ↑u = φ u

theorem LinearMap.ofIsCompl_apply_right E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {F : Type u_3}
  [inst_3 : AddCommGroup F] [inst_4 : Module R F] {p q : Submodule R E} (h : IsCompl p q) {φ : ↥p →ₗ[R] F}
  {ψ : ↥q →ₗ[R] F} (v : ↥q), (LinearMap.ofIsCompl h φ ψ) ↑v = ψ v

theorem LinearMap.ofIsCompl_eq E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {F : Type u_3}
  [inst_3 : AddCommGroup F] [inst_4 : Module R F] {p q : Submodule R E} (h : IsCompl p q) {φ : ↥p →ₗ[R] F}
  {ψ : ↥q →ₗ[R] F} {χ : E →ₗ[R] F}, (∀ (u : ↥p), φ u = χ ↑u) → (∀ (u : ↥q), ψ u = χ ↑u) → LinearMap.ofIsCompl h φ ψ = χ

theorem LinearMap.ofIsCompl_eq' E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {F : Type u_3}
  [inst_3 : AddCommGroup F] [inst_4 : Module R F] {p q : Submodule R E} (h : IsCompl p q) {φ : ↥p →ₗ[R] F}
  {ψ : ↥q →ₗ[R] F} {χ : E →ₗ[R] F}, φ = χ ∘ₗ p.subtype → ψ = χ ∘ₗ q.subtype → LinearMap.ofIsCompl h φ ψ = χ

theorem LinearMap.ofIsCompl_eq_add E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {F : Type u_3}
  [inst_3 : AddCommGroup F] [inst_4 : Module R F] {p q : Submodule R E} (hpq : IsCompl p q) {φ : ↥p →ₗ[R] F}
  {ψ : ↥q →ₗ[R] F}, LinearMap.ofIsCompl hpq φ ψ = φ ∘ₗ p.projectionOnto q hpq + ψ ∘ₗ q.projectionOnto p ⋯

theorem LinearMap.ofIsCompl_zero E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {F : Type u_3}
  [inst_3 : AddCommGroup F] [inst_4 : Module R F] {p q : Submodule R E} (h : IsCompl p q), LinearMap.ofIsCompl h 0 0 = 0

theorem LinearMap.ofIsCompl_add E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {F : Type u_3}
  [inst_3 : AddCommGroup F] [inst_4 : Module R F] {p q : Submodule R E} (h : IsCompl p q) {φ₁ φ₂ : ↥p →ₗ[R] F}
  {ψ₁ ψ₂ : ↥q →ₗ[R] F},
  LinearMap.ofIsCompl h (φ₁ + φ₂) (ψ₁ + ψ₂) = LinearMap.ofIsCompl h φ₁ ψ₁ + LinearMap.ofIsCompl h φ₂ ψ₂

theorem LinearMap.ofIsCompl_smul E0 #

∀ {R : Type u_7} [inst : CommRing R] {E : Type u_8} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {F : Type u_9}
  [inst_3 : AddCommGroup F] [inst_4 : Module R F] {p q : Submodule R E} (h : IsCompl p q) {φ : ↥p →ₗ[R] F}
  {ψ : ↥q →ₗ[R] F} (c : R), LinearMap.ofIsCompl h (c • φ) (c • ψ) = c • LinearMap.ofIsCompl h φ ψ

theorem LinearMap.surjective_comp_projectionOnto E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  {M : Type u_6} [inst_3 : AddCommMonoid M] (h : IsCompl p q) [inst_4 : Module R M],
  Function.Surjective (p.projectionOnto q h).comp

theorem LinearMap.surjective_comp_subtype_of_isComplemented E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p : Submodule R E}
  {M : Type u_6} [inst_3 : AddCommMonoid M],
  IsComplemented p → ∀ [inst_4 : Module R M], Function.Surjective fun f ↦ f ∘ₗ p.subtype

theorem LinearMap.range_ofIsCompl E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {F : Type u_3}
  [inst_3 : AddCommGroup F] [inst_4 : Module R F] {p q : Submodule R E} (hpq : IsCompl p q) {φ : ↥p →ₗ[R] F}
  {ψ : ↥q →ₗ[R] F}, (LinearMap.ofIsCompl hpq φ ψ).range = φ.range ⊔ ψ.range

theorem LinearMap.ofIsCompl_subtype_zero_eq E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : Submodule R E}
  (hpq : IsCompl p q), LinearMap.ofIsCompl hpq p.subtype 0 = p.projection q hpq

theorem LinearMap.ofIsCompl_symm E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {F : Type u_3}
  [inst_3 : AddCommGroup F] [inst_4 : Module R F] {p q : Submodule R E} (hpq : IsCompl p q) {φ : ↥p →ₗ[R] F}
  {ψ : ↥q →ₗ[R] F}, LinearMap.ofIsCompl ⋯ ψ φ = LinearMap.ofIsCompl hpq φ ψ

def LinearMap.ofIsComplProd E1 #

{E : Type u_2} →
  [inst : AddCommGroup E] →
    {F : Type u_3} →
      [inst_1 : AddCommGroup F] →
        {R₁ : Type u_7} →
          [inst_2 : CommRing R₁] →
            [inst_3 : Module R₁ E] →
              [inst_4 : Module R₁ F] →
                {p q : Submodule R₁ E} → IsCompl p q → (↥p →ₗ[R₁] F) × (↥q →ₗ[R₁] F) →ₗ[R₁] E →ₗ[R₁] F

The linear map from (p →ₗ[R₁] F) × (q →ₗ[R₁] F) to E →ₗ[R₁] F.

theorem LinearMap.ofIsComplProd_apply E0 #

∀ {E : Type u_2} [inst : AddCommGroup E] {F : Type u_3} [inst_1 : AddCommGroup F] {R₁ : Type u_7} [inst_2 : CommRing R₁]
  [inst_3 : Module R₁ E] [inst_4 : Module R₁ F] {p q : Submodule R₁ E} (h : IsCompl p q)
  (φ : (↥p →ₗ[R₁] F) × (↥q →ₗ[R₁] F)), (LinearMap.ofIsComplProd h) φ = LinearMap.ofIsCompl h φ.1 φ.2

def LinearMap.ofIsComplProdEquiv E1 #

{E : Type u_2} →
  [inst : AddCommGroup E] →
    {F : Type u_3} →
      [inst_1 : AddCommGroup F] →
        {R₁ : Type u_7} →
          [inst_2 : CommRing R₁] →
            [inst_3 : Module R₁ E] →
              [inst_4 : Module R₁ F] →
                {p q : Submodule R₁ E} → IsCompl p q → ((↥p →ₗ[R₁] F) × (↥q →ₗ[R₁] F)) ≃ₗ[R₁] E →ₗ[R₁] F

The natural linear equivalence between (p →ₗ[R₁] F) × (q →ₗ[R₁] F) and E →ₗ[R₁] F.

theorem LinearMap.projectionOnto_of_proj E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p : Submodule R E}
  (f : E →ₗ[R] ↥p) (hf : ∀ (x : ↥p), f ↑x = x), p.projectionOnto f.ker ⋯ = f

def LinearMap.equivProdOfSurjectiveOfIsCompl E1 #

{R : Type u_1} →
  [inst : Ring R] →
    {E : Type u_2} →
      [inst_1 : AddCommGroup E] →
        [inst_2 : Module R E] →
          {F : Type u_3} →
            [inst_3 : AddCommGroup F] →
              [inst_4 : Module R F] →
                {G : Type u_4} →
                  [inst_5 : AddCommGroup G] →
                    [inst_6 : Module R G] →
                      (f : E →ₗ[R] F) →
                        (g : E →ₗ[R] G) → f.range = ⊤ → g.range = ⊤ → IsCompl f.ker g.ker → E ≃ₗ[R] F × G

If f : E →ₗ[R] F and g : E →ₗ[R] G are two surjective linear maps and their kernels are complement of each other, then x ↦ (f x, g x) defines a linear equivalence E ≃ₗ[R] F × G.

theorem LinearMap.coe_equivProdOfSurjectiveOfIsCompl E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {F : Type u_3}
  [inst_3 : AddCommGroup F] [inst_4 : Module R F] {G : Type u_4} [inst_5 : AddCommGroup G] [inst_6 : Module R G]
  {f : E →ₗ[R] F} {g : E →ₗ[R] G} (hf : f.range = ⊤) (hg : g.range = ⊤) (hfg : IsCompl f.ker g.ker),
  ↑(f.equivProdOfSurjectiveOfIsCompl g hf hg hfg) = f.prod g

theorem LinearMap.equivProdOfSurjectiveOfIsCompl_apply E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {F : Type u_3}
  [inst_3 : AddCommGroup F] [inst_4 : Module R F] {G : Type u_4} [inst_5 : AddCommGroup G] [inst_6 : Module R G]
  {f : E →ₗ[R] F} {g : E →ₗ[R] G} (hf : f.range = ⊤) (hg : g.range = ⊤) (hfg : IsCompl f.ker g.ker) (x : E),
  (f.equivProdOfSurjectiveOfIsCompl g hf hg hfg) x = (f x, g x)

def Submodule.isComplEquivProj E1 #

{R : Type u_1} →
  [inst : Ring R] →
    {E : Type u_2} →
      [inst_1 : AddCommGroup E] →
        [inst_2 : Module R E] → (p : Submodule R E) → { q // IsCompl p q } ≃ { f // ∀ (x : ↥p), f ↑x = x }

Equivalence between submodules q such that IsCompl p q and linear maps f : E →ₗ[R] p such that ∀ x : p, f x = x.

theorem Submodule.coe_isComplEquivProj_apply E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] (p : Submodule R E)
  (q : { q // IsCompl p q }), ↑(p.isComplEquivProj q) = p.projectionOnto ↑q ⋯

theorem Submodule.coe_isComplEquivProj_symm_apply E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] (p : Submodule R E)
  (f : { f // ∀ (x : ↥p), f ↑x = x }), ↑(p.isComplEquivProj.symm f) = (↑f).ker

def Submodule.isIdempotentElemEquiv E1 #

{R : Type u_1} →
  [inst : Ring R] →
    {E : Type u_2} →
      [inst_1 : AddCommGroup E] →
        [inst_2 : Module R E] →
          (p : Submodule R E) → { f // IsIdempotentElem f ∧ LinearMap.range f = p } ≃ { f // ∀ (x : ↥p), f ↑x = x }

The idempotent endomorphisms of a module with range equal to a submodule are in 1-1 correspondence with linear maps to the submodule that restrict to the identity on the submodule.

theorem Submodule.isIdempotentElemEquiv_apply_coe E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] (p : Submodule R E)
  (f : { f // IsIdempotentElem f ∧ LinearMap.range f = p }), ↑(p.isIdempotentElemEquiv f) = LinearMap.codRestrict p ↑f ⋯

theorem Submodule.isIdempotentElemEquiv_symm_apply_coe E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] (p : Submodule R E)
  (f : { f // ∀ (x : ↥p), f ↑x = x }), ↑(p.isIdempotentElemEquiv.symm f) = p.subtype ∘ₗ ↑f

structure LinearMap.IsProj E1 #

{S : Type u_5} →
  [inst : Semiring S] →
    {M : Type u_6} →
      [inst_1 : AddCommMonoid M] → [inst_2 : Module S M] → Submodule S M → {F : Type u_7} → [FunLike F M M] → F → Prop

A linear endomorphism of a module E is a projection onto a submodule p if it sends every element of E to p and fixes every element of p. The definition allow more generally any FunLike type and not just linear maps, so that it can be used for example with ContinuousLinearMap or Matrix.

ctor LinearMap.IsProj.mk E0 #

∀ {S : Type u_5} [inst : Semiring S] {M : Type u_6} [inst_1 : AddCommMonoid M] [inst_2 : Module S M] {m : Submodule S M}
  {F : Type u_7} [inst_3 : FunLike F M M] {f : F}, (∀ (x : M), f x ∈ m) → (∀ x ∈ m, f x = x) → LinearMap.IsProj m f

theorem LinearMap.IsProj.map_mem E0 #

∀ {S : Type u_5} [inst : Semiring S] {M : Type u_6} [inst_1 : AddCommMonoid M] [inst_2 : Module S M] {m : Submodule S M}
  {F : Type u_7} [inst_3 : FunLike F M M] {f : F}, LinearMap.IsProj m f → ∀ (x : M), f x ∈ m

theorem LinearMap.IsProj.map_id E0 #

∀ {S : Type u_5} [inst : Semiring S] {M : Type u_6} [inst_1 : AddCommMonoid M] [inst_2 : Module S M] {m : Submodule S M}
  {F : Type u_7} [inst_3 : FunLike F M M] {f : F}, LinearMap.IsProj m f → ∀ x ∈ m, f x = x

theorem LinearMap.isProj_range_iff_isIdempotentElem E1 #

∀ {S : Type u_5} [inst : Semiring S] {M : Type u_6} [inst_1 : AddCommMonoid M] [inst_2 : Module S M] (f : M →ₗ[S] M),
  LinearMap.IsProj f.range f ↔ IsIdempotentElem f

theorem LinearMap.IsIdempotentElem.isProj_range E1 #

∀ {S : Type u_5} [inst : Semiring S] {M : Type u_6} [inst_1 : AddCommMonoid M] [inst_2 : Module S M] (f : M →ₗ[S] M),
  IsIdempotentElem f → LinearMap.IsProj f.range f

Alias of the reverse direction of LinearMap.isProj_range_iff_isIdempotentElem.

theorem LinearMap.isProj_iff_isIdempotentElem E1 #

∀ {S : Type u_5} [inst : Semiring S] {M : Type u_6} [inst_1 : AddCommMonoid M] [inst_2 : Module S M] (f : M →ₗ[S] M),
  (∃ p, LinearMap.IsProj p f) ↔ IsIdempotentElem f

theorem LinearMap.IsProj.isIdempotentElem E1 #

∀ {S : Type u_5} [inst : Semiring S] {M : Type u_6} [inst_1 : AddCommMonoid M] [inst_2 : Module S M] {m : Submodule S M}
  {f : M →ₗ[S] M}, LinearMap.IsProj m f → IsIdempotentElem f

theorem LinearMap.IsProj.mem_iff_map_id E0 #

∀ {S : Type u_5} [inst : Semiring S] {M : Type u_6} [inst_1 : AddCommMonoid M] [inst_2 : Module S M] {m : Submodule S M}
  {f : M →ₗ[S] M}, LinearMap.IsProj m f → ∀ {x : M}, x ∈ m ↔ f x = x

def LinearMap.IsProj.codRestrict E1 #

{S : Type u_5} →
  [inst : Semiring S] →
    {M : Type u_6} →
      [inst_1 : AddCommMonoid M] →
        [inst_2 : Module S M] → {m : Submodule S M} → {f : M →ₗ[S] M} → LinearMap.IsProj m f → M →ₗ[S] ↥m

Restriction of the codomain of a projection of onto a subspace p to p instead of the whole space.

theorem LinearMap.IsProj.codRestrict_apply E0 #

∀ {S : Type u_5} [inst : Semiring S] {M : Type u_6} [inst_1 : AddCommMonoid M] [inst_2 : Module S M] {m : Submodule S M}
  {f : M →ₗ[S] M} (h : LinearMap.IsProj m f) (x : M), ↑(h.codRestrict x) = f x

theorem LinearMap.IsProj.codRestrict_apply_cod E0 #

∀ {S : Type u_5} [inst : Semiring S] {M : Type u_6} [inst_1 : AddCommMonoid M] [inst_2 : Module S M] {m : Submodule S M}
  {f : M →ₗ[S] M} (h : LinearMap.IsProj m f) (x : ↥m), h.codRestrict ↑x = x

theorem LinearMap.IsProj.codRestrict_ker E1 #

∀ {S : Type u_5} [inst : Semiring S] {M : Type u_6} [inst_1 : AddCommMonoid M] [inst_2 : Module S M] {m : Submodule S M}
  {f : M →ₗ[S] M} (h : LinearMap.IsProj m f), h.codRestrict.ker = f.ker

theorem LinearMap.IsProj.isCompl E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p : Submodule R E}
  {f : E →ₗ[R] E}, LinearMap.IsProj p f → IsCompl p f.ker

theorem LinearMap.IsProj.submodule_unique E1 #

∀ {S : Type u_5} [inst : Semiring S] {M : Type u_6} [inst_1 : AddCommMonoid M] [inst_2 : Module S M] {f : M →ₗ[S] M}
  {m₁ m₂ : Submodule S M}, LinearMap.IsProj m₁ f → LinearMap.IsProj m₂ f → m₁ = m₂

theorem LinearMap.IsProj.range E1 #

∀ {S : Type u_5} [inst : Semiring S] {M : Type u_6} [inst_1 : AddCommMonoid M] [inst_2 : Module S M] {m : Submodule S M}
  {f : M →ₗ[S] M}, LinearMap.IsProj m f → f.range = m

theorem LinearMap.IsProj.bot E1 #

∀ (S : Type u_5) [inst : Semiring S] (M : Type u_6) [inst_1 : AddCommMonoid M] [inst_2 : Module S M],
  LinearMap.IsProj ⊥ 0

theorem LinearMap.IsProj.top E1 #

∀ (S : Type u_5) [inst : Semiring S] (M : Type u_6) [inst_1 : AddCommMonoid M] [inst_2 : Module S M],
  LinearMap.IsProj ⊤ LinearMap.id

theorem LinearMap.IsProj.subtype_comp_codRestrict E1 #

∀ {S : Type u_5} [inst : Semiring S] {M : Type u_6} [inst_1 : AddCommMonoid M] [inst_2 : Module S M] {U : Submodule S M}
  {f : M →ₗ[S] M} (hf : LinearMap.IsProj U f), U.subtype ∘ₗ hf.codRestrict = f

theorem LinearMap.IsProj.submodule_eq_top_iff E0 #

∀ {S : Type u_5} [inst : Semiring S] {M : Type u_6} [inst_1 : AddCommMonoid M] [inst_2 : Module S M] {m : Submodule S M}
  {f : M →ₗ[S] M}, LinearMap.IsProj m f → (m = ⊤ ↔ f = LinearMap.id)

theorem LinearMap.IsProj.submodule_eq_bot_iff E0 #

∀ {S : Type u_5} [inst : Semiring S] {M : Type u_6} [inst_1 : AddCommMonoid M] [inst_2 : Module S M] {m : Submodule S M}
  {f : M →ₗ[S] M}, LinearMap.IsProj m f → (m = ⊥ ↔ f = 0)

theorem LinearMap.IsIdempotentElem.isCompl E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {f : E →ₗ[R] E},
  IsIdempotentElem f → IsCompl f.range f.ker

theorem LinearMap.IsIdempotentElem.mem_range_iff E0 #

∀ {S : Type u_5} [inst : Semiring S] {M : Type u_6} [inst_1 : AddCommMonoid M] [inst_2 : Module S M] {p : M →ₗ[S] M},
  IsIdempotentElem p → ∀ {x : M}, x ∈ p.range ↔ p x = x

Given an idempotent linear operator p, we have x ∈ range p if and only if p(x) = x for all x.

theorem LinearMap.isIdempotentElem_iff_eq_projection_range_ker E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {T : E →ₗ[R] E},
  IsIdempotentElem T ↔ ∃ (h : IsCompl T.range T.ker), T = T.range.projection T.ker h

A linear map is an idempotent if and only if it equals the projection onto its range along its kernel.

theorem LinearMap.IsIdempotentElem.comp_eq_right_iff E0 #

∀ {S : Type u_5} [inst : Semiring S] {M : Type u_6} [inst_1 : AddCommMonoid M] [inst_2 : Module S M] {q : M →ₗ[S] M},
  IsIdempotentElem q →
    ∀ {E : Type u_7} [inst_3 : AddCommMonoid E] [inst_4 : Module S E] (p : E →ₗ[S] M), q ∘ₗ p = p ↔ p.range ≤ q.range

Given an idempotent linear operator q, we have q ∘ p = p iff range p ⊆ range q for all p.

theorem LinearMap.IsIdempotentElem.ext_iff E0 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : E →ₗ[R] E},
  IsIdempotentElem p → IsIdempotentElem q → (p = q ↔ p.range = q.range ∧ p.ker = q.ker)

Idempotent operators are equal iff their range and kernels are.

theorem LinearMap.IsIdempotentElem.ext E1 #

∀ {R : Type u_1} [inst : Ring R] {E : Type u_2} [inst_1 : AddCommGroup E] [inst_2 : Module R E] {p q : E →ₗ[R] E},
  IsIdempotentElem p → IsIdempotentElem q → p.range = q.range ∧ p.ker = q.ker → p = q

Alias of the reverse direction of LinearMap.IsIdempotentElem.ext_iff.


Idempotent operators are equal iff their range and kernels are.

theorem LinearMap.IsIdempotentElem.range_eq_ker E1 #

∀ {S : Type u_5} [inst : Semiring S] {E : Type u_7} [inst_1 : AddCommGroup E] [inst_2 : Module S E] {p : E →ₗ[S] E},
  IsIdempotentElem p → p.range = (LinearMap.id - p).ker

theorem LinearMap.IsIdempotentElem.range_eq_ker_one_sub E1 #

∀ {S : Type u_5} [inst : Semiring S] {E : Type u_7} [inst_1 : AddCommGroup E] [inst_2 : Module S E] {p : E →ₗ[S] E},
  IsIdempotentElem p → p.range = (1 - p).ker

theorem LinearMap.IsIdempotentElem.ker_eq_range E1 #

∀ {S : Type u_5} [inst : Semiring S] {E : Type u_7} [inst_1 : AddCommGroup E] [inst_2 : Module S E] {p : E →ₗ[S] E},
  IsIdempotentElem p → p.ker = (LinearMap.id - p).range

theorem LinearMap.IsIdempotentElem.ker_eq_range_one_sub E1 #

∀ {S : Type u_5} [inst : Semiring S] {E : Type u_7} [inst_1 : AddCommGroup E] [inst_2 : Module S E] {p : E →ₗ[S] E},
  IsIdempotentElem p → p.ker = (1 - p).range

theorem LinearMap.IsIdempotentElem.comp_eq_left_iff E0 #

∀ {S : Type u_5} [inst : Semiring S] {M : Type u_7} [inst_1 : AddCommGroup M] [inst_2 : Module S M] {q : M →ₗ[S] M},
  IsIdempotentElem q →
    ∀ {E : Type u_8} [inst_3 : AddCommGroup E] [inst_4 : Module S E] (p : M →ₗ[S] E), p ∘ₗ q = p ↔ q.ker ≤ p.ker

theorem LinearMap.IsIdempotentElem.range_mem_invtSubmodule_iff E0 #

∀ {E : Type u_1} {R : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup E] [inst_2 : Module R E] {T f : E →ₗ[R] E},
  IsIdempotentElem f → (f.range ∈ Module.End.invtSubmodule T ↔ f ∘ₗ T ∘ₗ f = T ∘ₗ f)

range f is invariant under T if and only if f ∘ₗ T ∘ₗ f = T ∘ₗ f, for idempotent f.

theorem LinearMap.IsIdempotentElem.conj_eq_of_range_mem_invtSubmodule E1 #

∀ {E : Type u_1} {R : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup E] [inst_2 : Module R E] {T f : E →ₗ[R] E},
  IsIdempotentElem f → f.range ∈ Module.End.invtSubmodule T → f ∘ₗ T ∘ₗ f = T ∘ₗ f

Alias of the forward direction of LinearMap.IsIdempotentElem.range_mem_invtSubmodule_iff.


range f is invariant under T if and only if f ∘ₗ T ∘ₗ f = T ∘ₗ f, for idempotent f.

theorem LinearMap.IsIdempotentElem.range_mem_invtSubmodule E1 #

∀ {E : Type u_1} {R : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup E] [inst_2 : Module R E] {T f : E →ₗ[R] E},
  IsIdempotentElem f → f ∘ₗ T ∘ₗ f = T ∘ₗ f → f.range ∈ Module.End.invtSubmodule T

Alias of the reverse direction of LinearMap.IsIdempotentElem.range_mem_invtSubmodule_iff.


range f is invariant under T if and only if f ∘ₗ T ∘ₗ f = T ∘ₗ f, for idempotent f.

theorem LinearMap.IsProj.mem_invtSubmodule_iff E0 #

∀ {E : Type u_1} {R : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup E] [inst_2 : Module R E] {T f : E →ₗ[R] E}
  {U : Submodule R E}, LinearMap.IsProj U f → (U ∈ Module.End.invtSubmodule T ↔ f ∘ₗ T ∘ₗ f = T ∘ₗ f)

theorem LinearMap.IsIdempotentElem.ker_mem_invtSubmodule_iff E0 #

∀ {E : Type u_1} {R : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup E] [inst_2 : Module R E] {T f : E →ₗ[R] E},
  IsIdempotentElem f → (f.ker ∈ Module.End.invtSubmodule T ↔ f ∘ₗ T ∘ₗ f = f ∘ₗ T)

ker f is invariant under T if and only if f ∘ₗ T ∘ₗ f = f ∘ₗ T, for idempotent f.

theorem LinearMap.IsIdempotentElem.conj_eq_of_ker_mem_invtSubmodule E1 #

∀ {E : Type u_1} {R : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup E] [inst_2 : Module R E] {T f : E →ₗ[R] E},
  IsIdempotentElem f → f.ker ∈ Module.End.invtSubmodule T → f ∘ₗ T ∘ₗ f = f ∘ₗ T

Alias of the forward direction of LinearMap.IsIdempotentElem.ker_mem_invtSubmodule_iff.


ker f is invariant under T if and only if f ∘ₗ T ∘ₗ f = f ∘ₗ T, for idempotent f.

theorem LinearMap.IsIdempotentElem.ker_mem_invtSubmodule E1 #

∀ {E : Type u_1} {R : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup E] [inst_2 : Module R E] {T f : E →ₗ[R] E},
  IsIdempotentElem f → f ∘ₗ T ∘ₗ f = f ∘ₗ T → f.ker ∈ Module.End.invtSubmodule T

Alias of the reverse direction of LinearMap.IsIdempotentElem.ker_mem_invtSubmodule_iff.


ker f is invariant under T if and only if f ∘ₗ T ∘ₗ f = f ∘ₗ T, for idempotent f.

theorem LinearMap.IsIdempotentElem.commute_iff E0 #

∀ {E : Type u_1} {R : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup E] [inst_2 : Module R E] {T f : E →ₗ[R] E},
  IsIdempotentElem f → (Commute f T ↔ f.range ∈ Module.End.invtSubmodule T ∧ f.ker ∈ Module.End.invtSubmodule T)

An idempotent operator f commutes with a linear operator T if and only if both range f and ker f are invariant under T.

theorem LinearMap.IsIdempotentElem.commute_iff_of_isUnit E1 #

∀ {E : Type u_1} {R : Type u_2} [inst : Ring R] [inst_1 : AddCommGroup E] [inst_2 : Module R E] {T f : E →ₗ[R] E},
  IsUnit T → IsIdempotentElem f → (Commute f T ↔ Submodule.map T f.range = f.range ∧ Submodule.map T f.ker = f.ker)

An idempotent operator f commutes with a unit operator T if and only if T (range f) = range f and T (ker f) = ker f.

Deprecated aliases

NameNew nameSince
LinearMap.isIdempotentElem_iff_eq_isCompl_projection_range_kerLinearMap.isIdempotentElem_iff_eq_projection_range_ker2026-05-04
LinearMap.linearProjOfIsCompl_of_projLinearMap.projectionOnto_of_proj2026-05-04
LinearMap.ofIsCompl_left_applyLinearMap.ofIsCompl_apply_left2026-05-16
LinearMap.ofIsCompl_right_applyLinearMap.ofIsCompl_apply_right2026-05-16
LinearMap.surjective_comp_linearProjOfIsComplLinearMap.surjective_comp_projectionOnto2026-05-04
Submodule.IsCompl.projectionSubmodule.projection2026-05-04
Submodule.IsCompl.projection_add_projection_eq_idSubmodule.projection_add_projection_eq_id2026-05-04
Submodule.IsCompl.projection_add_projection_eq_selfSubmodule.projection_add_projection_eq_self2026-05-04
Submodule.IsCompl.projection_applySubmodule.projection_apply2026-05-04
Submodule.IsCompl.projection_apply_eq_zero_iffSubmodule.projection_apply_eq_zero_iff2026-05-04
Submodule.IsCompl.projection_apply_leftSubmodule.projection_apply_left2026-05-04
Submodule.IsCompl.projection_apply_memSubmodule.projection_apply_mem2026-05-04
Submodule.IsCompl.projection_apply_of_mem_rightSubmodule.projection_apply_of_mem_right2026-05-05
Submodule.IsCompl.projection_apply_rightSubmodule.projection_apply_right2026-05-05
Submodule.IsCompl.projection_eq_id_sub_projectionSubmodule.projection_eq_id_sub_projection2026-05-05
Submodule.IsCompl.projection_eq_self_iffSubmodule.projection_eq_self_iff2026-05-04
Submodule.IsCompl.projection_eq_self_sub_projectionSubmodule.projection_eq_self_sub_projection2026-05-05
Submodule.IsCompl.projection_isIdempotentElemSubmodule.isIdempotentElem_projection2026-05-04
Submodule.IsCompl.projection_kerSubmodule.ker_projection2026-05-04
Submodule.IsCompl.projection_rangeSubmodule.range_projection2026-05-04
Submodule.coe_linearProjOfIsCompl_applySubmodule.coe_projectionOnto_apply2026-05-04
Submodule.linearProjOfIsComplSubmodule.projectionOnto2026-05-04
Submodule.linearProjOfIsCompl_apply_eq_zero_iffSubmodule.projectionOnto_apply_eq_zero_iff2026-05-04
Submodule.linearProjOfIsCompl_apply_leftSubmodule.projectionOnto_apply_left2026-05-04
Submodule.linearProjOfIsCompl_apply_of_mem_rightSubmodule.projectionOnto_apply_of_mem_right2026-05-05
Submodule.linearProjOfIsCompl_apply_rightSubmodule.projectionOnto_apply_right2026-05-04
Submodule.linearProjOfIsCompl_comp_subtypeSubmodule.projectionOnto_comp_subtype2026-05-04
Submodule.linearProjOfIsCompl_isCompl_projectionSubmodule.projectionOnto_projection2026-05-04
Submodule.linearProjOfIsCompl_kerSubmodule.ker_projectionOnto2026-05-04
Submodule.linearProjOfIsCompl_rangeSubmodule.range_projectionOnto2026-05-04
Submodule.linearProjOfIsCompl_surjectiveSubmodule.projectionOnto_surjective2026-05-04
Submodule.quotientEquivOfIsCompl_apply_mk_coeSubmodule.quotientEquivOfIsCompl_apply_mk_right2026-05-06