Quadratic form on product and pi types #
THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.
Main definitions #
quadratic_form.prod Q₁ Q₂
: the quadratic form constructed elementwise on a productquadratic_form.pi Q
: the quadratic form constructed elementwise on a pi type
Main results #
quadratic_form.equivalent.prod
,quadratic_form.equivalent.pi
: quadratic forms are equivalent if their components are equivalentquadratic_form.nonneg_prod_iff
,quadratic_form.nonneg_pi_iff
: quadratic forms are positive- semidefinite if and only if their components are positive-semidefinite.quadratic_form.pos_def_prod_iff
,quadratic_form.pos_def_pi_iff
: quadratic forms are positive- definite if and only if their components are positive-definite.
Implementation notes #
Many of the lemmas in this file could be generalized into results about sums of positive and
non-negative elements, and would generalize to any map Q
where Q 0 = 0
, not just quadratic
forms specifically.
Construct a quadratic form on a product of two modules from the quadratic form on each module.
Equations
- Q₁.prod Q₂ = Q₁.comp (linear_map.fst R M₁ M₂) + Q₂.comp (linear_map.snd R M₁ M₂)
An isometry between quadratic forms generated by quadratic_form.prod
can be constructed
from a pair of isometries between the left and right parts.
Equations
- e₁.prod e₂ = {to_linear_equiv := e₁.to_linear_equiv.prod e₂.to_linear_equiv, map_app' := _}
If a product is anisotropic then its components must be. The converse is not true.
Construct a quadratic form on a family of modules from the quadratic form on each module.
Equations
- quadratic_form.pi Q = finset.univ.sum (λ (i : ι), (Q i).comp (linear_map.proj i))
An isometry between quadratic forms generated by quadratic_form.prod
can be constructed
from a pair of isometries between the left and right parts.
Equations
- quadratic_form.isometry.pi e = {to_linear_equiv := linear_equiv.Pi_congr_right (λ (i : ι), ↑(e i)), map_app' := _}
If a family is anisotropic then its components must be. The converse is not true.