The areas / V08. Multilinear algebra and forms
Mathlib.LinearAlgebra.BilinearForm.Orthogonal
33 declarations. Mathlib docs · Source
Bilinear form
This file defines orthogonal bilinear forms.
Notation
Given any term B of type BilinForm, due to a coercion, can use
the notation B x y to refer to the function field, i.e. B x y = B.bilin x y.
In this file we use the following type variables:
M,M', ... are modules over the commutative semiringR,M₁,M₁', ... are modules over the commutative ringR₁,V, ... is a vector space over the fieldK.
References
Tags
Bilinear form,
We note that we cannot use BilinForm.restrict_nondegenerate_iff_isCompl_orthogonal for the
lemma below since the below lemma does not require V to be finite dimensional. However,
BilinForm.restrict_nondegenerate_iff_isCompl_orthogonal does not require B to be nondegenerate
on the whole space.
theorem LinearMap.BilinForm.ne_zero_of_not_isOrtho_self E1 #
∀ {V : Type u_5} {K : Type u_6} [inst : Field K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
{B : LinearMap.BilinForm K V} (x : V), (B x) x ≠ 0 → x ≠ 0
def LinearMap.BilinForm.iIsOrtho E3 #
{R : Type u_1} →
{M : Type u_2} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → {n : Type w} → LinearMap.BilinForm R M → (n → M) → Prop
A set of vectors v is orthogonal with respect to some bilinear form B if and only
if for all i ≠ j, B (v i) (v j) = 0.
theorem LinearMap.BilinForm.iIsOrtho_def E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {n : Type w}
{B : LinearMap.BilinForm R M} {v : n → M}, B.iIsOrtho v ↔ ∀ (i j : n), i ≠ j → (B (v i)) (v j) = 0
theorem LinearMap.BilinForm.linearIndependent_of_iIsOrtho E1 #
∀ {V : Type u_5} {K : Type u_6} [inst : Field K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] {n : Type w}
{B : LinearMap.BilinForm K V} {v : n → V}, B.iIsOrtho v → (∀ (i : n), (B (v i)) (v i) ≠ 0) → LinearIndependent K v
A set of orthogonal vectors v with respect to some bilinear form B is linearly independent
if for all i, B (v i) (v i) ≠ 0.
def LinearMap.BilinForm.orthogonal E1 #
{R : Type u_1} →
{M : Type u_2} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → LinearMap.BilinForm R M → Submodule R M → Submodule R M
The orthogonal complement of a submodule N with respect to some bilinear form is the set of
elements x which are orthogonal to all elements of N; i.e., for all y in N, B y x = 0.
Note that for general (neither symmetric nor antisymmetric) bilinear forms this definition has a
chirality; in addition to this "right" orthogonal complement one could define a "left" orthogonal
complement for which, for all y in N, B x y = 0. This variant definition is not currently
provided in mathlib.
theorem LinearMap.BilinForm.mem_orthogonal_iff E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
{B : LinearMap.BilinForm R M} {N : Submodule R M} {m : M}, m ∈ B.orthogonal N ↔ ∀ n ∈ N, (B n) m = 0
theorem LinearMap.BilinForm.orthogonal_bot E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
{B : LinearMap.BilinForm R M}, B.orthogonal ⊥ = ⊤
theorem LinearMap.BilinForm.orthogonal_le E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
{B : LinearMap.BilinForm R M} {N L : Submodule R M}, N ≤ L → B.orthogonal L ≤ B.orthogonal N
theorem LinearMap.BilinForm.le_orthogonal_orthogonal E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
{B : LinearMap.BilinForm R M} {N : Submodule R M}, B.IsRefl → N ≤ B.orthogonal (B.orthogonal N)
theorem LinearMap.BilinForm.orthogonal_top_eq_ker E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
{B : LinearMap.BilinForm R M}, B.IsRefl → B.orthogonal ⊤ = LinearMap.ker B
theorem LinearMap.BilinForm.orthogonal_top_eq_bot E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
{B : LinearMap.BilinForm R M}, B.Nondegenerate → B.orthogonal ⊤ = ⊥
theorem LinearMap.BilinForm.span_singleton_inf_orthogonal_eq_bot E1 #
∀ {V : Type u_5} {K : Type u_6} [inst : Field K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
{B : LinearMap.BilinForm K V} {x : V}, (B x) x ≠ 0 → K ∙ x ⊓ B.orthogonal (K ∙ x) = ⊥
theorem LinearMap.BilinForm.orthogonal_span_singleton_eq_toLin_ker E1 #
∀ {V : Type u_5} {K : Type u_6} [inst : Field K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
{B : LinearMap.BilinForm K V} (x : V), B.orthogonal (K ∙ x) = (B.toLinHomAux₁ x).ker
theorem LinearMap.BilinForm.span_singleton_sup_orthogonal_eq_top E1 #
∀ {V : Type u_5} {K : Type u_6} [inst : Field K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
{B : LinearMap.BilinForm K V} {x : V}, (B x) x ≠ 0 → K ∙ x ⊔ B.orthogonal (K ∙ x) = ⊤
theorem LinearMap.BilinForm.isCompl_span_singleton_orthogonal E1 #
∀ {V : Type u_5} {K : Type u_6} [inst : Field K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
{B : LinearMap.BilinForm K V} {x : V}, (B x) x ≠ 0 → IsCompl (K ∙ x) (B.orthogonal (K ∙ x))
Given a bilinear form B and some x such that B x x ≠ 0, the span of the singleton of x
is complement to its orthogonal complement.
theorem LinearMap.BilinForm.nondegenerate_restrict_of_disjoint_orthogonal E1 #
∀ {R₁ : Type u_3} {M₁ : Type u_4} [inst : CommRing R₁] [inst_1 : AddCommGroup M₁] [inst_2 : Module R₁ M₁]
(B : LinearMap.BilinForm R₁ M₁),
B.IsRefl → ∀ {W : Submodule R₁ M₁}, Disjoint W (B.orthogonal W) → (B.restrict W).Nondegenerate
The restriction of a reflexive bilinear form B onto a submodule W is
nondegenerate if Disjoint W (B.orthogonal W).
theorem LinearMap.BilinForm.iIsOrtho.not_isOrtho_basis_self_of_nondegenerate E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {n : Type w}
[Nontrivial R] {B : LinearMap.BilinForm R M} {v : Module.Basis n R M},
B.iIsOrtho ⇑v → B.Nondegenerate → ∀ (i : n), (B (v i)) (v i) ≠ 0
An orthogonal basis with respect to a nondegenerate bilinear form has no self-orthogonal elements.
theorem LinearMap.BilinForm.iIsOrtho.nondegenerate_iff_not_isOrtho_basis_self E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {n : Type w}
[IsDomain R] (B : LinearMap.BilinForm R M) (v : Module.Basis n R M),
B.iIsOrtho ⇑v → (B.Nondegenerate ↔ ∀ (i : n), (B (v i)) (v i) ≠ 0)
Given an orthogonal basis with respect to a bilinear form, the bilinear form is nondegenerate iff the basis has no elements which are self-orthogonal.
theorem LinearMap.BilinForm.toLin_restrict_ker_eq_inf_ker E1 #
∀ {V : Type u_5} {K : Type u_6} [inst : Field K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
(B : LinearMap.BilinForm K V) (W : Subspace K V),
Submodule.map (Submodule.subtype W) (LinearMap.domRestrict B W).ker = W ⊓ LinearMap.ker B
theorem LinearMap.BilinForm.toLin_restrict_ker_eq_inf_orthogonal E1 #
∀ {V : Type u_5} {K : Type u_6} [inst : Field K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
(B : LinearMap.BilinForm K V) (W : Subspace K V),
B.IsRefl → Submodule.map (Submodule.subtype W) (LinearMap.domRestrict B W).ker = W ⊓ B.orthogonal ⊤
theorem LinearMap.BilinForm.toLin_restrict_range_dualCoannihilator_eq_orthogonal E1 #
∀ {V : Type u_5} {K : Type u_6} [inst : Field K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
(B : LinearMap.BilinForm K V) (W : Subspace K V), (LinearMap.domRestrict B W).range.dualCoannihilator = B.orthogonal W
theorem LinearMap.BilinForm.ker_restrict_eq_of_codisjoint E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
{p q : Submodule R M},
Codisjoint p q →
∀ {B : LinearMap.BilinForm R M},
(∀ x ∈ p, ∀ y ∈ q, (B x) y = 0) → LinearMap.ker (B.restrict p) = Submodule.comap p.subtype (LinearMap.ker B)
theorem LinearMap.BilinForm.inf_orthogonal_self_le_ker_restrict E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
{B : LinearMap.BilinForm R M} {W : Submodule R M},
B.IsRefl → W ⊓ B.orthogonal W ≤ Submodule.map W.subtype (LinearMap.ker (B.restrict W))
theorem LinearMap.BilinForm.finrank_add_finrank_orthogonal' E1 #
∀ {V : Type u_5} {K : Type u_6} [inst : Field K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] [FiniteDimensional K V]
{B : LinearMap.BilinForm K V} (W : Submodule K V),
Module.finrank K ↥W + Module.finrank K ↥(B.orthogonal W) =
Module.finrank K V + Module.finrank K ↥(W ⊓ LinearMap.ker B)
theorem LinearMap.BilinForm.finrank_add_finrank_orthogonal E1 #
∀ {V : Type u_5} {K : Type u_6} [inst : Field K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] [FiniteDimensional K V]
{B : LinearMap.BilinForm K V},
B.IsRefl →
∀ (W : Submodule K V),
Module.finrank K ↥W + Module.finrank K ↥(B.orthogonal W) =
Module.finrank K V + Module.finrank K ↥(W ⊓ B.orthogonal ⊤)
theorem LinearMap.BilinForm.finrank_orthogonal E1 #
∀ {V : Type u_5} {K : Type u_6} [inst : Field K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] [FiniteDimensional K V]
{B : LinearMap.BilinForm K V},
B.Nondegenerate → ∀ (W : Submodule K V), Module.finrank K ↥(B.orthogonal W) = Module.finrank K V - Module.finrank K ↥W
theorem LinearMap.BilinForm.orthogonal_orthogonal E1 #
∀ {V : Type u_5} {K : Type u_6} [inst : Field K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] [FiniteDimensional K V]
{B : LinearMap.BilinForm K V}, B.Nondegenerate → B.IsRefl → ∀ (W : Submodule K V), B.orthogonal (B.orthogonal W) = W
theorem LinearMap.BilinForm.isCompl_orthogonal_iff_disjoint E1 #
∀ {V : Type u_5} {K : Type u_6} [inst : Field K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] [FiniteDimensional K V]
{B : LinearMap.BilinForm K V} {W : Submodule K V},
B.IsRefl → (IsCompl W (B.orthogonal W) ↔ Disjoint W (B.orthogonal W))
theorem LinearMap.BilinForm.isCompl_orthogonal_of_restrict_nondegenerate E1 #
∀ {V : Type u_5} {K : Type u_6} [inst : Field K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] [FiniteDimensional K V]
{B : LinearMap.BilinForm K V} {W : Submodule K V},
B.IsRefl → (B.restrict W).Nondegenerate → IsCompl W (B.orthogonal W)
A subspace is complement to its orthogonal complement with respect to some reflexive bilinear form if that bilinear form restricted on to the subspace is nondegenerate.
theorem LinearMap.BilinForm.restrict_nondegenerate_iff_isCompl_orthogonal E1 #
∀ {V : Type u_5} {K : Type u_6} [inst : Field K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] [FiniteDimensional K V]
{B : LinearMap.BilinForm K V} {W : Submodule K V},
B.IsRefl → ((B.restrict W).Nondegenerate ↔ IsCompl W (B.orthogonal W))
A subspace is complement to its orthogonal complement with respect to some reflexive bilinear form if and only if that bilinear form restricted on to the subspace is nondegenerate.
theorem LinearMap.BilinForm.orthogonal_eq_top_iff E0 #
∀ {V : Type u_5} {K : Type u_6} [inst : Field K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] [FiniteDimensional K V]
{B : LinearMap.BilinForm K V} {W : Submodule K V},
B.IsRefl → (B.restrict W).Nondegenerate → (B.orthogonal W = ⊤ ↔ W = ⊥)
theorem LinearMap.BilinForm.orthogonal_eq_bot_iff E0 #
∀ {V : Type u_5} {K : Type u_6} [inst : Field K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] [FiniteDimensional K V]
{B : LinearMap.BilinForm K V} {W : Submodule K V},
B.IsRefl → (B.restrict W).Nondegenerate → B.Nondegenerate → (B.orthogonal W = ⊥ ↔ W = ⊤)
theorem LinearMap.BilinForm.restrict_nondegenerate_orthogonal_spanSingleton E1 #
∀ {V : Type u_5} {K : Type u_6} [inst : Field K] [inst_1 : AddCommGroup V] [inst_2 : Module K V]
(B : LinearMap.BilinForm K V),
B.Nondegenerate → B.IsRefl → ∀ {x : V}, (B x) x ≠ 0 → (B.restrict (B.orthogonal (K ∙ x))).Nondegenerate
The restriction of a reflexive, non-degenerate bilinear form on the orthogonal complement of the span of a singleton is also non-degenerate.