The areas / V08. Multilinear algebra and forms
Mathlib.LinearAlgebra.BilinearForm.Hom
43 declarations. Mathlib docs · Source
Bilinear form and linear maps
This file describes the relation between bilinear forms and linear maps.
TODO
A lot of this file is now redundant following the replacement of the dedicated _root_.BilinForm
structure with LinearMap.BilinForm, which is just an alias for M →ₗ[R] M →ₗ[R] R. For example
LinearMap.BilinForm.toLinHom is now just the identity map. This redundant code should be removed.
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,
def LinearMap.BilinForm.toLinHomAux₁ 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] R
Auxiliary definition to define toLinHom; see below.
theorem LinearMap.BilinForm.sum_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) {α : Type u_7} (t : Finset α) (g : α → M) (w : M),
(B (∑ i ∈ t, g i)) w = ∑ i ∈ t, (B (g i)) w
theorem LinearMap.BilinForm.sum_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) {α : Type u_7} (t : Finset α) (w : M) (g : α → M),
(B w) (∑ i ∈ t, g i) = ∑ i ∈ t, (B w) (g i)
theorem LinearMap.BilinForm.sum_apply E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {α : Type u_7}
(t : Finset α) (B : α → LinearMap.BilinForm R M) (v w : M), ((∑ i ∈ t, B i) v) w = ∑ i ∈ t, ((B i) v) w
def LinearMap.BilinForm.toLinHomFlip 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] M →ₗ[R] M →ₗ[R] R
The linear map obtained from a BilinForm by fixing the right co-ordinate and evaluating in
the left.
theorem LinearMap.BilinForm.toLin'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 : M), ⇑((LinearMap.BilinForm.toLinHomFlip A) x) = fun y ↦ (A y) x
def LinearMap.compBilinForm E1 #
{R : Type u_1} →
{M : Type u_2} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R M] →
{R' : Type u_7} →
[inst_3 : CommSemiring R'] →
[inst_4 : Algebra R' R] →
[inst_5 : Module R' M] →
[IsScalarTower R' R M] → (R →ₗ[R'] R') → LinearMap.BilinForm R M → LinearMap.BilinForm R' M
Apply a linear map on the output of a bilinear form.
theorem LinearMap.compBilinForm_apply_apply E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {R' : Type u_7}
[inst_3 : CommSemiring R'] [inst_4 : Algebra R' R] [inst_5 : Module R' M] [inst_6 : IsScalarTower R' R M]
(f : R →ₗ[R'] R') (B : LinearMap.BilinForm R M) (x x_1 : M), ((f.compBilinForm B) x) x_1 = f ((B x) x_1)
def LinearMap.BilinForm.comp E1 #
{R : Type u_1} →
{M : Type u_2} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R M] →
{M' : Type w} →
[inst_3 : AddCommMonoid M'] →
[inst_4 : Module R M'] → LinearMap.BilinForm R M' → (M →ₗ[R] M') → (M →ₗ[R] M') → LinearMap.BilinForm R M
Apply a linear map on the left and right argument of a bilinear form.
def LinearMap.BilinForm.compLeft 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 →ₗ[R] M) → LinearMap.BilinForm R M
Apply a linear map to the left argument of a bilinear form.
def LinearMap.BilinForm.compRight 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 →ₗ[R] M) → LinearMap.BilinForm R M
Apply a linear map to the right argument of a bilinear form.
theorem LinearMap.BilinForm.comp_comp E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {M' : Type w}
[inst_3 : AddCommMonoid M'] [inst_4 : Module R M'] {M'' : Type u_7} [inst_5 : AddCommMonoid M'']
[inst_6 : Module R M''] (B : LinearMap.BilinForm R M'') (l r : M →ₗ[R] M') (l' r' : M' →ₗ[R] M''),
(B.comp l' r').comp l r = B.comp (l' ∘ₗ l) (r' ∘ₗ r)
theorem LinearMap.BilinForm.compLeft_compRight 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) (l r : M →ₗ[R] M), (B.compLeft l).compRight r = B.comp l r
theorem LinearMap.BilinForm.compRight_compLeft 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) (l r : M →ₗ[R] M), (B.compRight r).compLeft l = B.comp l r
theorem LinearMap.BilinForm.comp_apply E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {M' : Type w}
[inst_3 : AddCommMonoid M'] [inst_4 : Module R M'] (B : LinearMap.BilinForm R M') (l r : M →ₗ[R] M') (v w : M),
((B.comp l r) v) w = (B (l v)) (r w)
theorem LinearMap.BilinForm.compLeft_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) (f : M →ₗ[R] M) (v w : M), ((B.compLeft f) v) w = (B (f v)) w
theorem LinearMap.BilinForm.compRight_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) (f : M →ₗ[R] M) (v w : M), ((B.compRight f) v) w = (B v) (f w)
theorem LinearMap.BilinForm.comp_id_left 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) (r : M →ₗ[R] M), B.comp LinearMap.id r = B.compRight r
theorem LinearMap.BilinForm.comp_id_right 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) (l : M →ₗ[R] M), B.comp l LinearMap.id = B.compLeft l
theorem LinearMap.BilinForm.compLeft_id 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.compLeft LinearMap.id = B
theorem LinearMap.BilinForm.compRight_id 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.compRight LinearMap.id = B
theorem LinearMap.BilinForm.comp_id_id 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.comp LinearMap.id LinearMap.id = B
theorem LinearMap.BilinForm.comp_inj E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {M' : Type w}
[inst_3 : AddCommMonoid M'] [inst_4 : Module R M'] (B₁ B₂ : LinearMap.BilinForm R M') {l r : M →ₗ[R] M'},
Function.Surjective ⇑l → Function.Surjective ⇑r → (B₁.comp l r = B₂.comp l r ↔ B₁ = B₂)
def LinearMap.BilinForm.congr E1 #
{R : Type u_1} →
{M : Type u_2} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R M] →
{M' : Type u_7} →
[inst_3 : AddCommMonoid M'] →
[inst_4 : Module R M'] → (M ≃ₗ[R] M') → LinearMap.BilinForm R M ≃ₗ[R] LinearMap.BilinForm R M'
Apply a linear equivalence on the arguments of a bilinear form.
theorem LinearMap.BilinForm.congr_apply E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {M' : Type u_7}
[inst_3 : AddCommMonoid M'] [inst_4 : Module R M'] (e : M ≃ₗ[R] M') (B : LinearMap.BilinForm R M) (x y : M'),
(((LinearMap.BilinForm.congr e) B) x) y = (B (e.symm x)) (e.symm y)
theorem LinearMap.BilinForm.congr_symm E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {M' : Type u_7}
[inst_3 : AddCommMonoid M'] [inst_4 : Module R M'] (e : M ≃ₗ[R] M'),
(LinearMap.BilinForm.congr e).symm = LinearMap.BilinForm.congr e.symm
theorem LinearMap.BilinForm.congr_refl E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M],
LinearMap.BilinForm.congr (LinearEquiv.refl R M) = LinearEquiv.refl R (LinearMap.BilinForm R M)
theorem LinearMap.BilinForm.congr_trans E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {M' : Type u_7}
{M'' : Type u_8} [inst_3 : AddCommMonoid M'] [inst_4 : AddCommMonoid M''] [inst_5 : Module R M']
[inst_6 : Module R M''] (e : M ≃ₗ[R] M') (f : M' ≃ₗ[R] M''),
LinearMap.BilinForm.congr e ≪≫ₗ LinearMap.BilinForm.congr f = LinearMap.BilinForm.congr (e ≪≫ₗ f)
theorem LinearMap.BilinForm.congr_congr E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {M' : Type u_7}
{M'' : Type u_8} [inst_3 : AddCommMonoid M'] [inst_4 : AddCommMonoid M''] [inst_5 : Module R M']
[inst_6 : Module R M''] (e : M' ≃ₗ[R] M'') (f : M ≃ₗ[R] M') (B : LinearMap.BilinForm R M),
(LinearMap.BilinForm.congr e) ((LinearMap.BilinForm.congr f) B) = (LinearMap.BilinForm.congr (f ≪≫ₗ e)) B
theorem LinearMap.BilinForm.congr_comp E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {M' : Type u_7}
{M'' : Type u_8} [inst_3 : AddCommMonoid M'] [inst_4 : AddCommMonoid M''] [inst_5 : Module R M']
[inst_6 : Module R M''] (e : M ≃ₗ[R] M') (B : LinearMap.BilinForm R M) (l r : M'' →ₗ[R] M'),
((LinearMap.BilinForm.congr e) B).comp l r = B.comp (↑e.symm ∘ₗ l) (↑e.symm ∘ₗ r)
theorem LinearMap.BilinForm.comp_congr E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {M' : Type u_7}
{M'' : Type u_8} [inst_3 : AddCommMonoid M'] [inst_4 : AddCommMonoid M''] [inst_5 : Module R M']
[inst_6 : Module R M''] (e : M' ≃ₗ[R] M'') (B : LinearMap.BilinForm R M) (l r : M' →ₗ[R] M),
(LinearMap.BilinForm.congr e) (B.comp l r) = B.comp (l ∘ₗ ↑e.symm) (r ∘ₗ ↑e.symm)
def LinearEquiv.congrRight₂ E1 #
{R : Type u_1} →
{M : Type u_2} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R M] →
{N₁ : Type u_9} →
{N₂ : Type u_10} →
[inst_3 : AddCommMonoid N₁] →
[inst_4 : AddCommMonoid N₂] →
[inst_5 : Module R N₁] →
[inst_6 : Module R N₂] → (N₁ ≃ₗ[R] N₂) → LinearMap.BilinMap R M N₁ ≃ₗ[R] LinearMap.BilinMap R M N₂
When N₁ and N₂ are equivalent, bilinear maps on M into N₁ are equivalent to bilinear
maps into N₂.
theorem LinearEquiv.congrRight₂_apply E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {N₁ : Type u_9}
{N₂ : Type u_10} [inst_3 : AddCommMonoid N₁] [inst_4 : AddCommMonoid N₂] [inst_5 : Module R N₁] [inst_6 : Module R N₂]
(e : N₁ ≃ₗ[R] N₂) (B : LinearMap.BilinMap R M N₁), e.congrRight₂ B = LinearMap.compr₂ B ↑e
theorem LinearEquiv.congrRight₂_refl E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {N₁ : Type u_9}
[inst_3 : AddCommMonoid N₁] [inst_4 : Module R N₁],
(LinearEquiv.refl R N₁).congrRight₂ = LinearEquiv.refl R (LinearMap.BilinMap R M N₁)
theorem LinearEquiv.congrRight_symm E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {N₁ : Type u_9}
{N₂ : Type u_10} [inst_3 : AddCommMonoid N₁] [inst_4 : AddCommMonoid N₂] [inst_5 : Module R N₁] [inst_6 : Module R N₂]
(e : N₁ ≃ₗ[R] N₂), e.congrRight₂.symm = e.symm.congrRight₂
theorem LinearEquiv.congrRight₂_trans E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {N₁ : Type u_9}
{N₂ : Type u_10} {N₃ : Type u_11} [inst_3 : AddCommMonoid N₁] [inst_4 : AddCommMonoid N₂] [inst_5 : AddCommMonoid N₃]
[inst_6 : Module R N₁] [inst_7 : Module R N₂] [inst_8 : Module R N₃] (e₁₂ : N₁ ≃ₗ[R] N₂) (e₂₃ : N₂ ≃ₗ[R] N₃),
(e₁₂ ≪≫ₗ e₂₃).congrRight₂ = e₁₂.congrRight₂ ≪≫ₗ e₂₃.congrRight₂
def LinearMap.BilinForm.linMulLin E1 #
{R : Type u_1} →
{M : Type u_2} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → (M →ₗ[R] R) → (M →ₗ[R] R) → LinearMap.BilinForm R M
linMulLin f g is the bilinear form mapping x and y to f x * g y
theorem LinearMap.BilinForm.linMulLin_apply E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
{f g : M →ₗ[R] R} (x y : M), ((LinearMap.BilinForm.linMulLin f g) x) y = f x * g y
theorem LinearMap.BilinForm.linMulLin_comp E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {M' : Type u_7}
[inst_3 : AddCommMonoid M'] [inst_4 : Module R M'] {f g : M →ₗ[R] R} (l r : M' →ₗ[R] M),
(LinearMap.BilinForm.linMulLin f g).comp l r = LinearMap.BilinForm.linMulLin (f ∘ₗ l) (g ∘ₗ r)
theorem LinearMap.BilinForm.linMulLin_compLeft E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
{f g : M →ₗ[R] R} (l : M →ₗ[R] M),
(LinearMap.BilinForm.linMulLin f g).compLeft l = LinearMap.BilinForm.linMulLin (f ∘ₗ l) g
theorem LinearMap.BilinForm.linMulLin_compRight E0 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
{f g : M →ₗ[R] R} (r : M →ₗ[R] M),
(LinearMap.BilinForm.linMulLin f g).compRight r = LinearMap.BilinForm.linMulLin f (g ∘ₗ r)
theorem LinearMap.BilinForm.ext_basis E1 #
∀ {R : Type u_1} {M : Type u_2} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
{B F₂ : LinearMap.BilinForm R M} {ι : Type u_9} (b : Module.Basis ι R M),
(∀ (i j : ι), (B (b i)) (b j) = (F₂ (b i)) (b j)) → B = F₂
Two bilinear forms are equal when they are equal on all basis vectors.
theorem LinearMap.BilinForm.sum_repr_mul_repr_mul 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} {ι : Type u_9} (b : Module.Basis ι R M) (x y : M),
((b.repr x).sum fun i xi ↦ (b.repr y).sum fun j yj ↦ xi • yj • (B (b i)) (b j)) = (B x) y
Write out B x y as a sum over B (b i) (b j) if b is a basis.