Basics on bilinear maps #
This file provides basics on bilinear maps. The most general form considered are maps that are
semilinear in both arguments. They are of type M →ₛₗ[ρ₁₂] N →ₛₗ[σ₁₂] P
, where M
and N
are modules over R
and S
respectively, P
is a module over both R₂
and S₂
with
commuting actions, and ρ₁₂ : R →+* R₂
and σ₁₂ : S →+* S₂
.
Main declarations #
LinearMap.mk₂
: a constructor for bilinear maps, taking an unbundled function together with proof witnesses of bilinearityLinearMap.flip
: turns a bilinear mapM × N → P
intoN × M → P
LinearMap.lcomp
andLinearMap.llcomp
: composition of linear maps as a bilinear mapLinearMap.compl₂
: composition of a bilinear mapM × N → P
with a linear mapQ → M
LinearMap.compr₂
: composition of a bilinear mapM × N → P
with a linear mapQ → N
LinearMap.lsmul
: scalar multiplication as a bilinear mapR × M → M
Tags #
bilinear
Create a bilinear map from a function that is semilinear in each component.
See mk₂'
and mk₂
for the linear case.
Equations
- LinearMap.mk₂'ₛₗ ρ₁₂ σ₁₂ f H1 H2 H3 H4 = { toFun := fun (m : M) => { toFun := f m, map_add' := ⋯, map_smul' := ⋯ }, map_add' := ⋯, map_smul' := ⋯ }
Instances For
Create a bilinear map from a function that is linear in each component.
See mk₂
for the special case where both arguments come from modules over the same ring.
Equations
- LinearMap.mk₂' R S f H1 H2 H3 H4 = LinearMap.mk₂'ₛₗ (RingHom.id R) (RingHom.id S) f H1 H2 H3 H4
Instances For
Given a linear map from M
to linear maps from N
to P
, i.e., a bilinear map from M × N
to
P
, change the order of variables and get a linear map from N
to linear maps from M
to P
.
Equations
- f.flip = LinearMap.mk₂'ₛₗ σ₁₂ ρ₁₂ (fun (n : N) (m : M) => (f m) n) ⋯ ⋯ ⋯ ⋯
Instances For
Restricting a bilinear map in the second entry
Equations
- f.domRestrict₂ q = { toFun := fun (m : M) => (f m).domRestrict q, map_add' := ⋯, map_smul' := ⋯ }
Instances For
Restricting a bilinear map in both components
Equations
- f.domRestrict₁₂ p q = (f.domRestrict p).domRestrict₂ q
Instances For
If B : M → N → Pₗ
is R
-S
bilinear and R'
and S'
are compatible scalar multiplications,
then the restriction of scalars is a R'
-S'
bilinear map.
Equations
- LinearMap.restrictScalars₁₂ R' S' B = LinearMap.mk₂' R' S' (fun (x1 : M) (x2 : N) => (B x1) x2) ⋯ ⋯ ⋯ ⋯
Instances For
Create a bilinear map from a function that is linear in each component.
This is a shorthand for mk₂'
for the common case when R = S
.
Equations
- LinearMap.mk₂ R f H1 H2 H3 H4 = LinearMap.mk₂' R R f H1 H2 H3 H4
Instances For
Given a linear map from M
to linear maps from N
to P
, i.e., a bilinear map M → N → P
,
change the order of variables and get a linear map from N
to linear maps from M
to P
.
Equations
- LinearMap.lflip = { toFun := LinearMap.flip, map_add' := ⋯, map_smul' := ⋯ }
Instances For
Composing a linear map M → N
and a linear map N → P
to form a linear map M → P
.
Equations
- LinearMap.lcomp R Pₗ f = (LinearMap.id.flip ∘ₗ f).flip
Instances For
Composing a semilinear map M → N
and a semilinear map N → P
to form a semilinear map
M → P
is itself a linear map.
Equations
- LinearMap.lcompₛₗ P σ₂₃ f = (LinearMap.id.flip.comp f).flip
Instances For
Composing a linear map M → N
and a linear map N → P
to form a linear map M → P
.
Equations
- LinearMap.llcomp R M Nₗ Pₗ = { toFun := LinearMap.lcomp R Pₗ, map_add' := ⋯, map_smul' := ⋯ }.flip
Instances For
Composing a linear map Q → N
and a bilinear map M → N → P
to
form a bilinear map M → Q → P
.
Equations
- h.compl₂ g = { toFun := fun (a : M) => (LinearMap.lcompₛₗ P σ₂₃ g) (h a), map_add' := ⋯, map_smul' := ⋯ }
Instances For
Composing linear maps Q → M
and Q' → N
with a bilinear map M → N → P
to
form a bilinear map Q → Q' → P
.
Equations
- f.compl₁₂ g g' = (f ∘ₗ g).compl₂ g'
Instances For
Composing a linear map P → Q
and a bilinear map M → N → P
to
form a bilinear map M → N → Q
.
Equations
- f.compr₂ g = (LinearMap.llcomp R Nₗ Pₗ Qₗ) g ∘ₗ f
Instances For
Scalar multiplication as a bilinear map R → M → M
.
Equations
- LinearMap.lsmul R M = LinearMap.mk₂ R (fun (x1 : R) (x2 : M) => x1 • x2) ⋯ ⋯ ⋯ ⋯
Instances For
A shorthand for the type of R
-bilinear Nₗ
-valued maps on M
.
Instances For
For convenience, a shorthand for the type of bilinear forms from M
to R
.
Equations
- LinearMap.BilinForm R M = LinearMap.BilinMap R M R
Instances For
Restrict the scalars, domains, and range of a bilinear map.
Equations
- i.restrictScalarsRange j k hk B hB = ((LinearMap.restrictScalarsₗ S R N P S ∘ₗ ↑S B).compl₁₂ i j).codRestrict₂ k hk hB