The areas / V08. Multilinear algebra and forms
Mathlib.LinearAlgebra.BilinearForm.Basic
29 declarations. Mathlib docs · Source
Bilinear form
This file defines a bilinear form over a module. Basic ideas such as orthogonality are also introduced, as well as reflexive, symmetric, non-degenerate and alternating bilinear forms. Adjoints of linear maps with respect to a bilinear form are also introduced.
A bilinear form on an R-(semi)module M, is a function from M × M to R,
that is linear in both arguments. Comments will typically abbreviate
"(semi)module" as just "module", but the definitions should be as general as
possible.
The result that there exists an orthogonal basis with respect to a symmetric,
nondegenerate bilinear form can be found in QuadraticForm.lean with
exists_orthogonal_basis.
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,
theorem LinearMap.BilinForm.add_left 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} (x y z : M), (B (x + y)) z = (B x) z + (B y) z
theorem LinearMap.BilinForm.smul_left 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} (a : R) (x y : M), (B (a • x)) y = a * (B x) y
theorem LinearMap.BilinForm.add_right 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} (x y z : M), (B x) (y + z) = (B x) y + (B x) z
theorem LinearMap.BilinForm.smul_right 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} (a : R) (x y : M), (B x) (a • y) = a * (B x) y
theorem LinearMap.BilinForm.zero_left 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} (x : M), (B 0) x = 0
theorem LinearMap.BilinForm.zero_right 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} (x : M), (B x) 0 = 0
theorem LinearMap.BilinForm.neg_left E1 #
∀ {R₁ : Type u_4} {M₁ : Type u_5} [inst : CommRing R₁] [inst_1 : AddCommGroup M₁] [inst_2 : Module R₁ M₁]
{B₁ : LinearMap.BilinForm R₁ M₁} (x y : M₁), (B₁ (-x)) y = -(B₁ x) y
theorem LinearMap.BilinForm.neg_right E1 #
∀ {R₁ : Type u_4} {M₁ : Type u_5} [inst : CommRing R₁] [inst_1 : AddCommGroup M₁] [inst_2 : Module R₁ M₁]
{B₁ : LinearMap.BilinForm R₁ M₁} (x y : M₁), (B₁ x) (-y) = -(B₁ x) y
theorem LinearMap.BilinForm.sub_left E1 #
∀ {R₁ : Type u_4} {M₁ : Type u_5} [inst : CommRing R₁] [inst_1 : AddCommGroup M₁] [inst_2 : Module R₁ M₁]
{B₁ : LinearMap.BilinForm R₁ M₁} (x y z : M₁), (B₁ (x - y)) z = (B₁ x) z - (B₁ y) z
theorem LinearMap.BilinForm.sub_right E1 #
∀ {R₁ : Type u_4} {M₁ : Type u_5} [inst : CommRing R₁] [inst_1 : AddCommGroup M₁] [inst_2 : Module R₁ M₁]
{B₁ : LinearMap.BilinForm R₁ M₁} (x y z : M₁), (B₁ x) (y - z) = (B₁ x) y - (B₁ x) z
theorem LinearMap.BilinForm.smul_left_of_tower E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {S : Type u_3}
[inst_3 : CommSemiring S] [inst_4 : Algebra S R] [inst_5 : Module S M] [IsScalarTower S R M]
{B : LinearMap.BilinForm R M} (r : S) (x y : M), (B (r • x)) y = r • (B x) y
theorem LinearMap.BilinForm.smul_right_of_tower E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {S : Type u_3}
[inst_3 : CommSemiring S] [inst_4 : Algebra S R] [inst_5 : Module S M] [IsScalarTower S R M]
{B : LinearMap.BilinForm R M} (r : S) (x y : M), (B x) (r • y) = r • (B x) y
theorem LinearMap.BilinForm.coe_injective E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M],
Function.Injective fun B x y ↦ (B x) y
theorem LinearMap.BilinForm.ext E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
{B D : LinearMap.BilinForm R M}, (∀ (x y : M), (B x) y = (D x) y) → B = D
theorem LinearMap.BilinForm.ext_iff E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
{B D : LinearMap.BilinForm R M}, B = D ↔ ∀ (x y : M), (B x) y = (D x) y
theorem LinearMap.BilinForm.congr_fun E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
{B D : LinearMap.BilinForm R M}, B = D → ∀ (x y : M), (B x) y = (D x) y
theorem LinearMap.BilinForm.zero_apply E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (x y : M),
(0 x) y = 0
theorem LinearMap.BilinForm.add_apply E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
(B D : LinearMap.BilinForm R M) (x y : M), ((B + D) x) y = (B x) y + (D x) y
theorem LinearMap.BilinForm.neg_apply E0 #
∀ {R₁ : Type u_4} {M₁ : Type u_5} [inst : CommRing R₁] [inst_1 : AddCommGroup M₁] [inst_2 : Module R₁ M₁]
(B₁ : LinearMap.BilinForm R₁ M₁) (x y : M₁), ((-B₁) x) y = -(B₁ x) y
theorem LinearMap.BilinForm.sub_apply E0 #
∀ {R₁ : Type u_4} {M₁ : Type u_5} [inst : CommRing R₁] [inst_1 : AddCommGroup M₁] [inst_2 : Module R₁ M₁]
(B₁ D₁ : LinearMap.BilinForm R₁ M₁) (x y : M₁), ((B₁ - D₁) x) y = (B₁ x) y - (D₁ x) y
def LinearMap.BilinForm.coeFnAddMonoidHom 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 →+ M → M → R
coeFn as an AddMonoidHom
theorem LinearMap.BilinForm.coeFnAddMonoidHom_apply 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) (x y : M), LinearMap.BilinForm.coeFnAddMonoidHom B x y = (B x) y
def LinearMap.BilinForm.flipHom 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 ≃ₗ[R] LinearMap.BilinForm R M
The flip of a bilinear form, obtained by exchanging the left and right arguments.
theorem LinearMap.BilinForm.flip_apply E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
(A : LinearMap.BilinForm R M) (x y : M), ((LinearMap.BilinForm.flipHom A) x) y = (A y) x
theorem LinearMap.BilinForm.flip_flip E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M],
LinearMap.BilinForm.flipHom ≪≫ₗ LinearMap.BilinForm.flipHom = LinearEquiv.refl R (LinearMap.BilinForm R M)
abbrev LinearMap.BilinForm.flip 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 → LinearMap.BilinForm R M
The flip of a bilinear form over a commutative ring, obtained by exchanging the left and
right arguments.
def LinearMap.BilinForm.restrict 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 → (W : Submodule R M) → LinearMap.BilinForm R ↥W
The restriction of a bilinear form on a submodule.
theorem LinearMap.BilinForm.restrict_apply 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) (W : Submodule R M) (m : ↥W), (B.restrict W) m = (B ↑m).domRestrict W
theorem LinearMap.lsmul_flip_apply E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] (m : M),
(LinearMap.lsmul R M).flip m = LinearMap.toSpanSingleton R M m