The areas / V08. Multilinear algebra and forms
Mathlib.LinearAlgebra.QuadraticForm.Basis
14 declarations. Mathlib docs · Source
theorem QuadraticMap.map_finsuppSum' E0 #
∀ {ι : Type u_1} {R : Type u_2} {M : Type u_3} {N : Type u_4} [inst : CommRing R] [inst_1 : AddCommGroup M]
[inst_2 : AddCommGroup N] [inst_3 : Module R M] [inst_4 : Module R N] (Q : QuadraticMap R M N) (f : ι →₀ R)
(g : ι → R → M),
Q (f.sum g) =
∑ p ∈ f.support.sym2, QuadraticMap.polarSym2 (⇑Q) (Sym2.map (fun i ↦ g i (f i)) p) - f.sum fun i a ↦ Q (g i a)
theorem QuadraticMap.apply_linearCombination' E1 #
∀ {ι : Type u_1} {R : Type u_2} {M : Type u_3} {N : Type u_4} [inst : CommRing R] [inst_1 : AddCommGroup M]
[inst_2 : AddCommGroup N] [inst_3 : Module R M] [inst_4 : Module R N] (Q : QuadraticMap R M N) {g : ι → M}
(l : ι →₀ R),
Q ((Finsupp.linearCombination R g) l) =
(Finsupp.linearCombination R (QuadraticMap.polarSym2 ⇑Q ∘ Sym2.map g)) l.sym2Mul -
(Finsupp.linearCombination R (⇑Q ∘ g)) (l * l)
theorem QuadraticMap.sum_polar_sub_repr_sq E1 #
∀ {ι : Type u_1} {R : Type u_2} {M : Type u_3} {N : Type u_4} [inst : CommRing R] [inst_1 : AddCommGroup M]
[inst_2 : AddCommGroup N] [inst_3 : Module R M] [inst_4 : Module R N] (Q : QuadraticMap R M N)
(bm : Module.Basis ι R M) (x : M),
(Finsupp.linearCombination R (QuadraticMap.polarSym2 ⇑Q ∘ Sym2.map ⇑bm)) (bm.repr x).sym2Mul -
(Finsupp.linearCombination R (⇑Q ∘ ⇑bm)) (bm.repr x * bm.repr x) =
Q x
theorem QuadraticMap.map_finsuppSum E0 #
∀ {ι : Type u_1} {R : Type u_2} {M : Type u_3} {N : Type u_4} [inst : CommRing R] [inst_1 : AddCommGroup M]
[inst_2 : AddCommGroup N] [inst_3 : Module R M] [inst_4 : Module R N] [inst_5 : DecidableEq ι]
(Q : QuadraticMap R M N) (f : ι →₀ R) (g : ι → R → M),
Q (f.sum g) =
(f.sum fun i r ↦ Q (g i r)) +
∑ p ∈ f.support.sym2 with ¬p.IsDiag, QuadraticMap.polarSym2 (⇑Q) (Sym2.map (fun i ↦ g i (f i)) p)
The quadratic version of _root_.map_finsupp_sum.
theorem QuadraticMap.apply_linearCombination E1 #
∀ {ι : Type u_1} {R : Type u_2} {M : Type u_3} {N : Type u_4} [inst : CommRing R] [inst_1 : AddCommGroup M]
[inst_2 : AddCommGroup N] [inst_3 : Module R M] [inst_4 : Module R N] [inst_5 : DecidableEq ι]
(Q : QuadraticMap R M N) {g : ι → M} (l : ι →₀ R),
Q ((Finsupp.linearCombination R g) l) =
(Finsupp.linearCombination R (⇑Q ∘ g)) (l * l) +
∑ p ∈ l.support.sym2 with ¬p.IsDiag, (Sym2.map (⇑l) p).mul • QuadraticMap.polarSym2 (⇑Q) (Sym2.map g p)
The quadratic version of Finsupp.apply_linearCombination.
theorem QuadraticMap.sum_repr_sq_add_sum_repr_mul_polar E1 #
∀ {ι : Type u_1} {R : Type u_2} {M : Type u_3} {N : Type u_4} [inst : CommRing R] [inst_1 : AddCommGroup M]
[inst_2 : AddCommGroup N] [inst_3 : Module R M] [inst_4 : Module R N] [inst_5 : DecidableEq ι]
(Q : QuadraticMap R M N) (bm : Module.Basis ι R M) (x : M),
(Finsupp.linearCombination R (⇑Q ∘ ⇑bm)) (bm.repr x * bm.repr x) +
∑ p ∈ (bm.repr x).support.sym2 with ¬p.IsDiag,
(Sym2.map (⇑(bm.repr x)) p).mul • QuadraticMap.polarSym2 (⇑Q) (Sym2.map (⇑bm) p) =
Q x
The quadratic version of LinearMap.sum_repr_mul_repr_mul.
def QuadraticMap.toBilin E1 #
{ι : Type u_1} →
{R : Type u_2} →
{M : Type u_3} →
{N : Type u_4} →
[LinearOrder ι] →
[inst : CommRing R] →
[inst_1 : AddCommGroup M] →
[inst_2 : AddCommGroup N] →
[inst_3 : Module R M] →
[inst_4 : Module R N] → QuadraticMap R M N → Module.Basis ι R M → LinearMap.BilinMap R M N
Given an ordered basis, produce a bilinear form associated with the quadratic form.
Unlike QuadraticMap.associated, this is not symmetric; however, as a result it can be used even
in characteristic two. When considered as a matrix, the form is triangular.
theorem QuadraticMap.toBilin_apply E0 #
∀ {ι : Type u_1} {R : Type u_2} {M : Type u_3} {N : Type u_4} [inst : LinearOrder ι] [inst_1 : CommRing R]
[inst_2 : AddCommGroup M] [inst_3 : AddCommGroup N] [inst_4 : Module R M] [inst_5 : Module R N]
(Q : QuadraticMap R M N) (bm : Module.Basis ι R M) (i j : ι),
((Q.toBilin bm) (bm i)) (bm j) =
if i = j then Q (bm i) else if i < j then QuadraticMap.polar (⇑Q) (bm i) (bm j) else 0
theorem QuadraticMap.toQuadraticMap_toBilin E1 #
∀ {ι : Type u_1} {R : Type u_2} {M : Type u_3} {N : Type u_4} [inst : LinearOrder ι] [inst_1 : CommRing R]
[inst_2 : AddCommGroup M] [inst_3 : AddCommGroup N] [inst_4 : Module R M] [inst_5 : Module R N]
(Q : QuadraticMap R M N) (bm : Module.Basis ι R M), (Q.toBilin bm).toQuadraticMap = Q
theorem LinearMap.BilinMap.toQuadraticMap_surjective E1 #
∀ {R : Type u_2} {M : Type u_3} {N : Type u_4} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : AddCommGroup N]
[inst_3 : Module R M] [inst_4 : Module R N] [Module.Free R M], Function.Surjective LinearMap.BilinMap.toQuadraticMap
From a free module, every quadratic map can be built from a bilinear form.
See BilinMap.not_forall_toQuadraticMap_surjective for a counterexample when the module is
not free.
theorem QuadraticMap.add_toBilin E0 #
∀ {ι : Type u_1} {R : Type u_2} {M : Type u_3} {N : Type u_4} [inst : LinearOrder ι] [inst_1 : CommRing R]
[inst_2 : AddCommGroup M] [inst_3 : AddCommGroup N] [inst_4 : Module R M] [inst_5 : Module R N]
(bm : Module.Basis ι R M) (Q₁ Q₂ : QuadraticMap R M N), (Q₁ + Q₂).toBilin bm = Q₁.toBilin bm + Q₂.toBilin bm
theorem QuadraticMap.smul_toBilin E0 #
∀ {ι : Type u_1} {R : Type u_2} {M : Type u_3} {N : Type u_4} [inst : LinearOrder ι] [inst_1 : CommRing R]
[inst_2 : AddCommGroup M] [inst_3 : AddCommGroup N] [inst_4 : Module R M] [inst_5 : Module R N] (S : Type u_5)
[inst_6 : CommSemiring S] [inst_7 : Algebra S R] [inst_8 : Module S N] [inst_9 : IsScalarTower S R N]
(bm : Module.Basis ι R M) (s : S) (Q : QuadraticMap R M N), (s • Q).toBilin bm = s • Q.toBilin bm
def QuadraticMap.toBilinHom E1 #
{ι : Type u_1} →
{R : Type u_2} →
{M : Type u_3} →
{N : Type u_4} →
[LinearOrder ι] →
[inst : CommRing R] →
[inst_1 : AddCommGroup M] →
[inst_2 : AddCommGroup N] →
[inst_3 : Module R M] →
[inst_4 : Module R N] →
(S : Type u_5) →
[inst_5 : CommSemiring S] →
[inst_6 : Algebra S R] →
[inst_7 : Module S N] →
[inst_8 : IsScalarTower S R N] →
Module.Basis ι R M → QuadraticMap R M N →ₗ[S] LinearMap.BilinMap R M N
QuadraticMap.toBilin as an S-linear map
theorem QuadraticMap.toBilinHom_apply E0 #
∀ {ι : Type u_1} {R : Type u_2} {M : Type u_3} {N : Type u_4} [inst : LinearOrder ι] [inst_1 : CommRing R]
[inst_2 : AddCommGroup M] [inst_3 : AddCommGroup N] [inst_4 : Module R M] [inst_5 : Module R N] (S : Type u_5)
[inst_6 : CommSemiring S] [inst_7 : Algebra S R] [inst_8 : Module S N] [inst_9 : IsScalarTower S R N]
(bm : Module.Basis ι R M) (Q : QuadraticMap R M N), (QuadraticMap.toBilinHom S bm) Q = Q.toBilin bm