The areas / V08. Multilinear algebra and forms
Mathlib.LinearAlgebra.QuadraticForm.Basic
200 declarations and 22 deprecated aliases. Mathlib docs · Source
Quadratic maps
This file defines quadratic maps on an R-module M, taking values in an R-module N.
An N-valued quadratic map on a module M over a commutative ring R is a map Q : M → N such
that:
QuadraticMap.map_smul:Q (a • x) = (a * a) • Q xQuadraticMap.polar_add_left,QuadraticMap.polar_add_right,QuadraticMap.polar_smul_left,QuadraticMap.polar_smul_right: the mapQuadraticMap.polar Q := fun x y ↦ Q (x + y) - Q x - Q yis bilinear.
This notion generalizes to commutative semirings using the approach in [izhakian2016][] which
requires that there be a (possibly non-unique) companion bilinear map B such that
∀ x y, Q (x + y) = Q x + Q y + B x y. Over a ring, this B is precisely QuadraticMap.polar Q.
To build a QuadraticMap from the polar axioms, use QuadraticMap.ofPolar.
Quadratic maps come with a scalar multiplication, (a • Q) x = a • Q x,
and composition with linear maps f, Q.comp f x = Q (f x).
Main definitions
QuadraticMap.ofPolar: a more familiar constructor that works on ringsQuadraticMap.associated: associated bilinear mapQuadraticMap.PosDef: positive definite quadratic mapsQuadraticMap.Anisotropic: anisotropic quadratic mapsQuadraticMap.discr: discriminant of a quadratic mapQuadraticMap.IsOrtho: orthogonality of vectors with respect to a quadratic map.
Main statements
QuadraticMap.associated_left_inverse,QuadraticMap.associated_rightInverse: in a commutative ring where 2 has an inverse, there is a correspondence between quadratic maps and symmetric bilinear formsLinearMap.BilinForm.exists_orthogonal_basis: There exists an orthogonal basis with respect to any nondegenerate, symmetric bilinear mapB.
Notation
In this file, the variable R is used when a CommSemiring structure is available.
The variable S is used when R itself has a • action.
Implementation notes
While the definition and many results make sense if we drop commutativity assumptions, the correct definition of a quadratic maps in the noncommutative setting would require substantial refactors from the current version, such that $Q(rm) = rQ(m)r^$ for some suitable conjugation $r^$.
The Zulip thread has some further discussion.
References
- https://en.wikipedia.org/wiki/Quadratic_form
- https://en.wikipedia.org/wiki/Discriminant#Quadratic_forms
Tags
quadratic map, homogeneous polynomial, quadratic polynomial
Associated bilinear maps
If multiplication by 2 is invertible on the target module N of
QuadraticMap R M N, then there is a linear bijection QuadraticMap.associated
between quadratic maps Q over R from M to N and symmetric bilinear maps
B : M →ₗ[R] M →ₗ[R] → N such that BilinMap.toQuadraticMap B = Q
(see QuadraticMap.associated_rightInverse). The associated bilinear map is half
Q.polarBilin (see QuadraticMap.two_nsmul_associated); this is where the invertibility condition
comes from. We spell the condition as [Invertible (2 : Module.End R N)].
Note that this makes the bijection available in more cases than the simpler condition
Invertible (2 : R), e.g., when R = ℤ and N = ℝ.
Orthogonality
Quadratic forms and matrices
Connect quadratic forms and matrices, in order to explicitly compute with them. The convention is twos out, so there might be a factor 2⁻¹ in the entries of the matrix. The determinant of the matrix is the discriminant of the quadratic form.
def QuadraticMap.ctorIdx E1 #
{R : Type u} →
{M : Type v} →
{N : Type w} →
{inst : CommSemiring R} →
{inst_1 : AddCommMonoid M} →
{inst_2 : Module R M} → {inst_3 : AddCommMonoid N} → {inst_4 : Module R N} → QuadraticMap R M N → ℕ
theorem LinearMap.compQuadraticMap'.congr_simp E1 #
∀ {S : Type u_1} {R : Type u_3} {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : CommSemiring R]
[inst_1 : AddCommMonoid M] [inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N]
[inst_5 : AddCommMonoid P] [inst_6 : CommSemiring S] [inst_7 : Algebra S R] [inst_8 : Module S N]
[inst_9 : Module S M] [inst_10 : IsScalarTower S R N] [inst_11 : IsScalarTower S R M] [inst_12 : Module S P]
(f f_1 : N →ₗ[S] P),
f = f_1 → ∀ (Q Q_1 : QuadraticMap R M N), Q = Q_1 → f.compQuadraticMap' Q = f_1.compQuadraticMap' Q_1
theorem QuadraticForm.toMatrix.congr_simp E1 #
∀ {R : Type u_3} {N : Type u_5} {n : Type w} [inst : Fintype n] {inst_1 : DecidableEq n} [inst_2 : DecidableEq n]
[inst_3 : CommRing R] [inst_4 : Invertible 2] [inst_5 : AddCommGroup N] [inst_6 : Module R N]
(b b_1 : Module.Basis n R N),
b = b_1 →
∀ (Q Q_1 : QuadraticForm R N),
Q = Q_1 →
∀ (a a_1 : n),
a = a_1 →
∀ (a_2 a_3 : n), a_2 = a_3 → QuadraticForm.toMatrix b Q a a_2 = QuadraticForm.toMatrix b_1 Q_1 a_1 a_3
theorem QuadraticForm.toMatrix'.congr_simp E1 #
∀ {R : Type u_3} {n : Type w} [inst : Fintype n] {inst_1 : DecidableEq n} [inst_2 : DecidableEq n] [inst_3 : CommRing R]
[inst_4 : Invertible 2] (Q Q_1 : QuadraticForm R (n → R)),
Q = Q_1 → ∀ (a a_1 : n), a = a_1 → ∀ (a_2 a_3 : n), a_2 = a_3 → Q.toMatrix' a a_2 = Q_1.toMatrix' a_1 a_3
theorem QuadraticMap.mk.injEq E0 #
∀ {R : Type u} {M : Type v} {N : Type w} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] (toFun : M → N)
(toFun_smul : ∀ (a : R) (x : M), toFun (a • x) = (a * a) • toFun x)
(exists_companion' : ∃ B, ∀ (x y : M), toFun (x + y) = toFun x + toFun y + (B x) y) (toFun_1 : M → N)
(toFun_smul_1 : ∀ (a : R) (x : M), toFun_1 (a • x) = (a * a) • toFun_1 x)
(exists_companion'_1 : ∃ B, ∀ (x y : M), toFun_1 (x + y) = toFun_1 x + toFun_1 y + (B x) y),
({ toFun := toFun, toFun_smul := toFun_smul, exists_companion' := exists_companion' } =
{ toFun := toFun_1, toFun_smul := toFun_smul_1, exists_companion' := exists_companion'_1 }) =
(toFun = toFun_1)
theorem QuadraticMap.linMulLin.congr_simp E1 #
∀ {R : Type u_3} {M : Type u_4} {A : Type u_7} [inst : CommSemiring R] [inst_1 : NonUnitalNonAssocSemiring A]
[inst_2 : AddCommMonoid M] [inst_3 : Module R M] [inst_4 : Module R A] [inst_5 : SMulCommClass R A A]
[inst_6 : IsScalarTower R A A] (f f_1 : M →ₗ[R] A),
f = f_1 → ∀ (g g_1 : M →ₗ[R] A), g = g_1 → QuadraticMap.linMulLin f g = QuadraticMap.linMulLin f_1 g_1
theorem QuadraticMap.mk.inj E1 #
∀ {R : Type u} {M : Type v} {N : Type w} {inst : CommSemiring R} {inst_1 : AddCommMonoid M} {inst_2 : Module R M}
{inst_3 : AddCommMonoid N} {inst_4 : Module R N} {toFun : M → N}
{toFun_smul : ∀ (a : R) (x : M), toFun (a • x) = (a * a) • toFun x}
{exists_companion' : ∃ B, ∀ (x y : M), toFun (x + y) = toFun x + toFun y + (B x) y} {toFun_1 : M → N}
{toFun_smul_1 : ∀ (a : R) (x : M), toFun_1 (a • x) = (a * a) • toFun_1 x}
{exists_companion'_1 : ∃ B, ∀ (x y : M), toFun_1 (x + y) = toFun_1 x + toFun_1 y + (B x) y},
{ toFun := toFun, toFun_smul := toFun_smul, exists_companion' := exists_companion' } =
{ toFun := toFun_1, toFun_smul := toFun_smul_1, exists_companion' := exists_companion'_1 } →
toFun = toFun_1
theorem LinearMap.mk₂.congr_simp E1 #
∀ (R : Type u_2) [inst : CommSemiring R] {M : Type u_5} {Nₗ : Type u_8} {Pₗ : Type u_9} [inst_1 : AddCommMonoid M]
[inst_2 : AddCommMonoid Nₗ] [inst_3 : AddCommMonoid Pₗ] [inst_4 : Module R M] [inst_5 : Module R Nₗ]
[inst_6 : Module R Pₗ] (f f_1 : M → Nₗ → Pₗ) (e_f : f = f_1)
(H1 : ∀ (m₁ m₂ : M) (n : Nₗ), f (m₁ + m₂) n = f m₁ n + f m₂ n)
(H2 : ∀ (c : R) (m : M) (n : Nₗ), f (c • m) n = c • f m n)
(H3 : ∀ (m : M) (n₁ n₂ : Nₗ), f m (n₁ + n₂) = f m n₁ + f m n₂)
(H4 : ∀ (c : R) (m : M) (n : Nₗ), f m (c • n) = c • f m n),
LinearMap.mk₂ R f H1 H2 H3 H4 = LinearMap.mk₂ R f_1 ⋯ ⋯ ⋯ ⋯
def QuadraticMap.polar E3 #
{M : Type u_4} → {N : Type u_5} → [AddCommGroup M] → [AddCommGroup N] → (M → N) → M → M → N
Up to a factor 2, Q.polar is the associated bilinear map for a quadratic map Q.
Source of this name: https://en.wikipedia.org/wiki/Quadratic_form#Generalization
theorem QuadraticMap.map_add E0 #
∀ {M : Type u_4} {N : Type u_5} [inst : AddCommGroup M] [inst_1 : AddCommGroup N] (f : M → N) (x y : M),
f (x + y) = f x + f y + QuadraticMap.polar f x y
theorem QuadraticMap.polar_add E1 #
∀ {M : Type u_4} {N : Type u_5} [inst : AddCommGroup M] [inst_1 : AddCommGroup N] (f g : M → N) (x y : M),
QuadraticMap.polar (f + g) x y = QuadraticMap.polar f x y + QuadraticMap.polar g x y
theorem QuadraticMap.polar_neg E1 #
∀ {M : Type u_4} {N : Type u_5} [inst : AddCommGroup M] [inst_1 : AddCommGroup N] (f : M → N) (x y : M),
QuadraticMap.polar (-f) x y = -QuadraticMap.polar f x y
theorem QuadraticMap.polar_smul E1 #
∀ {S : Type u_1} {M : Type u_4} {N : Type u_5} [inst : AddCommGroup M] [inst_1 : AddCommGroup N] [inst_2 : Monoid S]
[inst_3 : DistribMulAction S N] (f : M → N) (s : S) (x y : M),
QuadraticMap.polar (s • f) x y = s • QuadraticMap.polar f x y
theorem QuadraticMap.polar_comm E1 #
∀ {M : Type u_4} {N : Type u_5} [inst : AddCommGroup M] [inst_1 : AddCommGroup N] (f : M → N) (x y : M),
QuadraticMap.polar f x y = QuadraticMap.polar f y x
theorem QuadraticMap.polar_add_left_iff E0 #
∀ {M : Type u_4} {N : Type u_5} [inst : AddCommGroup M] [inst_1 : AddCommGroup N] {f : M → N} {x x' y : M},
QuadraticMap.polar f (x + x') y = QuadraticMap.polar f x y + QuadraticMap.polar f x' y ↔
f (x + x' + y) + (f x + f x' + f y) = f (x + x') + f (x' + y) + f (y + x)
Auxiliary lemma to express bilinearity of QuadraticMap.polar without subtraction.
theorem QuadraticMap.polar_comp E1 #
∀ {S : Type u_1} {M : Type u_4} {N : Type u_5} [inst : AddCommGroup M] [inst_1 : AddCommGroup N] {F : Type u_8}
[inst_2 : AddCommGroup S] [inst_3 : FunLike F N S] [AddMonoidHomClass F N S] (f : M → N) (g : F) (x y : M),
QuadraticMap.polar (⇑g ∘ f) x y = g (QuadraticMap.polar f x y)
def QuadraticMap.polarSym2 E1 #
{M : Type u_4} → {N : Type u_5} → [AddCommGroup M] → [AddCommGroup N] → (M → N) → Sym2 M → N
QuadraticMap.polar as a function from Sym2.
theorem QuadraticMap.polarSym2_sym2Mk E0 #
∀ {M : Type u_4} {N : Type u_5} [inst : AddCommGroup M] [inst_1 : AddCommGroup N] (f : M → N) (x y : M),
QuadraticMap.polarSym2 f s(x, y) = QuadraticMap.polar f x y
structure QuadraticMap E1 #
(R : Type u) →
(M : Type v) →
(N : Type w) →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] → [Module R M] → [inst_3 : AddCommMonoid N] → [Module R N] → Type (max v w)
A quadratic map on a module.
For a more familiar constructor when R is a ring, see QuadraticMap.ofPolar.
ctor QuadraticMap.mk E0 #
{R : Type u} →
{M : Type v} →
{N : Type w} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R M] →
[inst_3 : AddCommMonoid N] →
[inst_4 : Module R N] →
(toFun : M → N) →
(∀ (a : R) (x : M), toFun (a • x) = (a * a) • toFun x) →
(∃ B, ∀ (x y : M), toFun (x + y) = toFun x + toFun y + (B x) y) → QuadraticMap R M N
abbrev QuadraticMap.toFun E1 #
{R : Type u} →
{M : Type v} →
{N : Type w} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R M] → [inst_3 : AddCommMonoid N] → [inst_4 : Module R N] → QuadraticMap R M N → M → N
The underlying function.
Do NOT use directly. Use the coercion instead.
theorem QuadraticMap.toFun_smul E0 #
∀ {R : Type u} {M : Type v} {N : Type w} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] (self : QuadraticMap R M N) (a : R) (x : M),
self.toFun (a • x) = (a * a) • self.toFun x
theorem QuadraticMap.exists_companion' E1 #
∀ {R : Type u} {M : Type v} {N : Type w} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] (self : QuadraticMap R M N),
∃ B, ∀ (x y : M), self.toFun (x + y) = self.toFun x + self.toFun y + (B x) y
abbrev QuadraticForm E3 #
(R : Type u) → (M : Type v) → [inst : CommSemiring R] → [inst_1 : AddCommMonoid M] → [Module R M] → Type (max u v)
A quadratic form on a module.
instance QuadraticMap.instFunLike E0 #
{R : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R M] → [inst_3 : AddCommMonoid N] → [inst_4 : Module R N] → FunLike (QuadraticMap R M N) M N
theorem QuadraticMap.toFun_eq_coe E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] (Q : QuadraticMap R M N), Q.toFun = ⇑Q
The simp normal form for a quadratic map is DFunLike.coe, not toFun.
theorem QuadraticMap.coe_mk E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] (toFun : M → N)
(toFun_smul : ∀ (a : R) (x : M), toFun (a • x) = (a * a) • toFun x)
(exists_companion' : ∃ B, ∀ (x y : M), toFun (x + y) = toFun x + toFun y + (B x) y),
⇑{ toFun := toFun, toFun_smul := toFun_smul, exists_companion' := exists_companion' } = toFun
theorem QuadraticMap.ext E1 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] {Q Q' : QuadraticMap R M N}, (∀ (x : M), Q x = Q' x) → Q = Q'
theorem QuadraticMap.ext_iff E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] {Q Q' : QuadraticMap R M N}, Q = Q' ↔ ∀ (x : M), Q x = Q' x
theorem QuadraticMap.congr_fun E1 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] {Q Q' : QuadraticMap R M N}, Q = Q' → ∀ (x : M), Q x = Q' x
def QuadraticMap.copy E1 #
{R : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R M] →
[inst_3 : AddCommMonoid N] →
[inst_4 : Module R N] → (Q : QuadraticMap R M N) → (Q' : M → N) → Q' = ⇑Q → QuadraticMap R M N
Copy of a QuadraticMap with a new toFun equal to the old one. Useful to fix definitional
equalities.
theorem QuadraticMap.coe_copy E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] (Q : QuadraticMap R M N) (Q' : M → N) (h : Q' = ⇑Q),
⇑(Q.copy Q' h) = Q'
theorem QuadraticMap.copy_eq E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] (Q : QuadraticMap R M N) (Q' : M → N) (h : Q' = ⇑Q), Q.copy Q' h = Q
theorem QuadraticMap.map_smul E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] (Q : QuadraticMap R M N) (a : R) (x : M), Q (a • x) = (a * a) • Q x
theorem QuadraticMap.exists_companion E1 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] (Q : QuadraticMap R M N),
∃ B, ∀ (x y : M), Q (x + y) = Q x + Q y + (B x) y
theorem QuadraticMap.map_add_add_add_map E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] (Q : QuadraticMap R M N) (x y z : M),
Q (x + y + z) + (Q x + Q y + Q z) = Q (x + y) + Q (y + z) + Q (z + x)
theorem QuadraticMap.map_add_self E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] (Q : QuadraticMap R M N) (x : M), Q (x + x) = 4 • Q x
theorem QuadraticMap.map_zero E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] (Q : QuadraticMap R M N), Q 0 = 0
instance QuadraticMap.zeroHomClass E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N], ZeroHomClass (QuadraticMap R M N) M N
theorem QuadraticMap.map_smul_of_tower E0 #
∀ {S : Type u_1} {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
[inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N] (Q : QuadraticMap R M N)
[inst_5 : CommSemiring S] [inst_6 : Algebra S R] [inst_7 : SMul S M] [IsScalarTower S R M] [inst_9 : Module S N]
[IsScalarTower S R N] (a : S) (x : M), Q (a • x) = (a * a) • Q x
def QuadraticMap.restrict E1 #
{R : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R M] →
[inst_3 : AddCommMonoid N] →
[inst_4 : Module R N] → QuadraticMap R M N → (V : Submodule R M) → QuadraticMap R (↥V) N
Restrict the domain of a quadratic map
theorem QuadraticMap.restrict_apply E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] (Q : QuadraticMap R M N) (V : Submodule R M) (v : ↥V),
(Q.restrict V) v = Q ↑v
theorem QuadraticMap.map_neg E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [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) (x : M), Q (-x) = Q x
theorem QuadraticMap.map_sub E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [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) (x y : M), Q (x - y) = Q (y - x)
theorem QuadraticMap.polar_zero_left E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [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) (y : M), QuadraticMap.polar (⇑Q) 0 y = 0
theorem QuadraticMap.polar_add_left E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [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) (x x' y : M),
QuadraticMap.polar (⇑Q) (x + x') y = QuadraticMap.polar (⇑Q) x y + QuadraticMap.polar (⇑Q) x' y
theorem QuadraticMap.polar_smul_left E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [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) (a : R) (x y : M),
QuadraticMap.polar (⇑Q) (a • x) y = a • QuadraticMap.polar (⇑Q) x y
theorem QuadraticMap.polar_neg_left E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [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) (x y : M),
QuadraticMap.polar (⇑Q) (-x) y = -QuadraticMap.polar (⇑Q) x y
theorem QuadraticMap.polar_sub_left E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [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) (x x' y : M),
QuadraticMap.polar (⇑Q) (x - x') y = QuadraticMap.polar (⇑Q) x y - QuadraticMap.polar (⇑Q) x' y
theorem QuadraticMap.polar_zero_right E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [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) (y : M), QuadraticMap.polar (⇑Q) y 0 = 0
theorem QuadraticMap.polar_add_right E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [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) (x y y' : M),
QuadraticMap.polar (⇑Q) x (y + y') = QuadraticMap.polar (⇑Q) x y + QuadraticMap.polar (⇑Q) x y'
theorem QuadraticMap.polar_smul_right E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [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) (a : R) (x y : M),
QuadraticMap.polar (⇑Q) x (a • y) = a • QuadraticMap.polar (⇑Q) x y
theorem QuadraticMap.polar_neg_right E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [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) (x y : M),
QuadraticMap.polar (⇑Q) x (-y) = -QuadraticMap.polar (⇑Q) x y
theorem QuadraticMap.polar_sub_right E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [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) (x y y' : M),
QuadraticMap.polar (⇑Q) x (y - y') = QuadraticMap.polar (⇑Q) x y - QuadraticMap.polar (⇑Q) x y'
theorem QuadraticMap.polar_self E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [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) (x : M), QuadraticMap.polar (⇑Q) x x = 2 • Q x
def QuadraticMap.polarBilin E1 #
{R : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
[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 → LinearMap.BilinMap R M N
QuadraticMap.polar as a bilinear map
theorem QuadraticMap.polarBilin_apply_apply E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [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) (m y : M),
(Q.polarBilin m) y = QuadraticMap.polar (⇑Q) m y
theorem QuadraticMap.polarSym2_map_smul E1 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : AddCommGroup N]
[inst_3 : Module R M] [inst_4 : Module R N] {ι : Type u_8} (Q : QuadraticMap R M N) (g : ι → M) (l : ι → R)
(p : Sym2 ι),
QuadraticMap.polarSym2 (⇑Q) (Sym2.map (l • g) p) = (Sym2.map l p).mul • QuadraticMap.polarSym2 (⇑Q) (Sym2.map g p)
theorem QuadraticMap.polar_smul_left_of_tower E0 #
∀ {S : Type u_1} {R : Type u_3} {M : Type u_4} {N : Type u_5} [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)
[inst_5 : CommSemiring S] [inst_6 : Algebra S R] [inst_7 : Module S M] [IsScalarTower S R M] [inst_9 : Module S N]
[IsScalarTower S R N] (a : S) (x y : M), QuadraticMap.polar (⇑Q) (a • x) y = a • QuadraticMap.polar (⇑Q) x y
theorem QuadraticMap.polar_smul_right_of_tower E0 #
∀ {S : Type u_1} {R : Type u_3} {M : Type u_4} {N : Type u_5} [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)
[inst_5 : CommSemiring S] [inst_6 : Algebra S R] [inst_7 : Module S M] [IsScalarTower S R M] [inst_9 : Module S N]
[IsScalarTower S R N] (a : S) (x y : M), QuadraticMap.polar (⇑Q) x (a • y) = a • QuadraticMap.polar (⇑Q) x y
def QuadraticMap.ofPolar E3 #
{R : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
[inst : CommRing R] →
[inst_1 : AddCommGroup M] →
[inst_2 : AddCommGroup N] →
[inst_3 : Module R M] →
[inst_4 : Module R N] →
(toFun : M → N) →
(∀ (a : R) (x : M), toFun (a • x) = (a * a) • toFun x) →
(∀ (x x' y : M),
QuadraticMap.polar toFun (x + x') y =
QuadraticMap.polar toFun x y + QuadraticMap.polar toFun x' y) →
(∀ (a : R) (x y : M), QuadraticMap.polar toFun (a • x) y = a • QuadraticMap.polar toFun x y) →
QuadraticMap R M N
An alternative constructor to QuadraticMap.mk, for rings where polar can be used.
theorem QuadraticMap.ofPolar_apply E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : AddCommGroup N]
[inst_3 : Module R M] [inst_4 : Module R N] (toFun : M → N)
(toFun_smul : ∀ (a : R) (x : M), toFun (a • x) = (a * a) • toFun x)
(polar_add_left :
∀ (x x' y : M), QuadraticMap.polar toFun (x + x') y = QuadraticMap.polar toFun x y + QuadraticMap.polar toFun x' y)
(polar_smul_left : ∀ (a : R) (x y : M), QuadraticMap.polar toFun (a • x) y = a • QuadraticMap.polar toFun x y)
(a : M), (QuadraticMap.ofPolar toFun toFun_smul polar_add_left polar_smul_left) a = toFun a
theorem QuadraticMap.choose_exists_companion E1 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [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), ⋯.choose = Q.polarBilin
In a ring the companion bilinear form is unique and equal to QuadraticMap.polar.
theorem QuadraticMap.map_sum E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : AddCommGroup N]
[inst_3 : Module R M] [inst_4 : Module R N] {ι : Type u_8} [inst_5 : DecidableEq ι] (Q : QuadraticMap R M N)
(s : Finset ι) (f : ι → M),
Q (∑ i ∈ s, f i) = ∑ i ∈ s, Q (f i) + ∑ ij ∈ s.sym2 with ¬ij.IsDiag, QuadraticMap.polarSym2 (⇑Q) (Sym2.map f ij)
theorem QuadraticMap.map_sum' E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : AddCommGroup N]
[inst_3 : Module R M] [inst_4 : Module R N] {ι : Type u_8} (Q : QuadraticMap R M N) (s : Finset ι) (f : ι → M),
Q (∑ i ∈ s, f i) = ∑ ij ∈ s.sym2, QuadraticMap.polarSym2 (⇑Q) (Sym2.map f ij) - ∑ i ∈ s, Q (f i)
instance QuadraticMap.instSMul E0 #
{S : Type u_1} →
{R : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R M] →
[inst_3 : AddCommMonoid N] →
[inst_4 : Module R N] →
[inst_5 : Monoid S] →
[inst_6 : DistribMulAction S N] → [SMulCommClass S R N] → SMul S (QuadraticMap R M N)
QuadraticMap R M N inherits the scalar action from any algebra over R.
This provides an R-action via Algebra.id.
instance QuadraticMap.instIsSMulApply E0 #
∀ {S : Type u_1} {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
[inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N] [inst_5 : Monoid S]
[inst_6 : DistribMulAction S N] [inst_7 : SMulCommClass S R N], IsSMulApply S (QuadraticMap R M N)
instance QuadraticMap.instSMulCommClass E0 #
∀ {S : Type u_1} {T : Type u_2} {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R]
[inst_1 : AddCommMonoid M] [inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N] [inst_5 : Monoid S]
[inst_6 : Monoid T] [inst_7 : DistribMulAction S N] [inst_8 : DistribMulAction T N] [inst_9 : SMulCommClass S R N]
[inst_10 : SMulCommClass T R N] [SMulCommClass S T N], SMulCommClass S T (QuadraticMap R M N)
instance QuadraticMap.instIsScalarTower E0 #
∀ {S : Type u_1} {T : Type u_2} {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R]
[inst_1 : AddCommMonoid M] [inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N] [inst_5 : Monoid S]
[inst_6 : Monoid T] [inst_7 : DistribMulAction S N] [inst_8 : DistribMulAction T N] [inst_9 : SMulCommClass S R N]
[inst_10 : SMulCommClass T R N] [inst_11 : SMul S T] [IsScalarTower S T N], IsScalarTower S T (QuadraticMap R M N)
instance QuadraticMap.instZero E0 #
{R : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R M] → [inst_3 : AddCommMonoid N] → [inst_4 : Module R N] → Zero (QuadraticMap R M N)
instance QuadraticMap.instIsZeroApply E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N], IsZeroApply (QuadraticMap R M N)
instance QuadraticMap.instInhabited E0 #
{R : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R M] → [inst_3 : AddCommMonoid N] → [inst_4 : Module R N] → Inhabited (QuadraticMap R M N)
instance QuadraticMap.instAdd E0 #
{R : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R M] → [inst_3 : AddCommMonoid N] → [inst_4 : Module R N] → Add (QuadraticMap R M N)
instance QuadraticMap.instIsAddApply E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N], IsAddApply (QuadraticMap R M N)
instance QuadraticMap.instAddCommMonoid E0 #
{R : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R M] →
[inst_3 : AddCommMonoid N] → [inst_4 : Module R N] → AddCommMonoid (QuadraticMap R M N)
def QuadraticMap.evalAddMonoidHom E1 #
{R : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R M] → [inst_3 : AddCommMonoid N] → [inst_4 : Module R N] → M → QuadraticMap R M N →+ N
Evaluation on a particular element of the module M is an additive map on quadratic maps.
theorem QuadraticMap.evalAddMonoidHom_apply E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] (m : M) (x : QuadraticMap R M N),
(QuadraticMap.evalAddMonoidHom m) x = x m
instance QuadraticMap.instDistribMulActionOfSMulCommClass E0 #
{S : Type u_1} →
{R : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R M] →
[inst_3 : AddCommMonoid N] →
[inst_4 : Module R N] →
[inst_5 : Monoid S] →
[inst_6 : DistribMulAction S N] → [SMulCommClass S R N] → DistribMulAction S (QuadraticMap R M N)
instance QuadraticMap.instModuleOfSMulCommClass E0 #
{S : Type u_1} →
{R : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R M] →
[inst_3 : AddCommMonoid N] →
[inst_4 : Module R N] →
[inst_5 : Semiring S] → [inst_6 : Module S N] → [SMulCommClass S R N] → Module S (QuadraticMap R M N)
instance QuadraticMap.instNeg E0 #
{R : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
[inst : CommRing R] →
[inst_1 : AddCommGroup M] →
[inst_2 : Module R M] → [inst_3 : AddCommGroup N] → [inst_4 : Module R N] → Neg (QuadraticMap R M N)
instance QuadraticMap.instIsNegApply E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
[inst_3 : AddCommGroup N] [inst_4 : Module R N], IsNegApply (QuadraticMap R M N)
instance QuadraticMap.instSub E0 #
{R : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
[inst : CommRing R] →
[inst_1 : AddCommGroup M] →
[inst_2 : Module R M] → [inst_3 : AddCommGroup N] → [inst_4 : Module R N] → Sub (QuadraticMap R M N)
instance QuadraticMap.instIsSubApply E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
[inst_3 : AddCommGroup N] [inst_4 : Module R N], IsSubApply (QuadraticMap R M N)
instance QuadraticMap.instAddCommGroup E0 #
{R : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
[inst : CommRing R] →
[inst_1 : AddCommGroup M] →
[inst_2 : Module R M] → [inst_3 : AddCommGroup N] → [inst_4 : Module R N] → AddCommGroup (QuadraticMap R M N)
def QuadraticMap.restrictScalars E1 #
{S : Type u_1} →
{R : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
[inst : CommSemiring R] →
[inst_1 : CommSemiring S] →
[inst_2 : AddCommMonoid M] →
[inst_3 : Module R M] →
[inst_4 : AddCommMonoid N] →
[inst_5 : Module R N] →
[inst_6 : Module S M] →
[inst_7 : Module S N] →
[inst_8 : Algebra S R] →
[IsScalarTower S R M] → [IsScalarTower S R N] → QuadraticMap R M N → QuadraticMap S M N
If Q : M → N is a quadratic map of R-modules and R is an S-algebra,
then the restriction of scalars is a quadratic map of S-modules.
theorem QuadraticMap.restrictScalars_apply E0 #
∀ {S : Type u_1} {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : CommSemiring S]
[inst_2 : AddCommMonoid M] [inst_3 : Module R M] [inst_4 : AddCommMonoid N] [inst_5 : Module R N]
[inst_6 : Module S M] [inst_7 : Module S N] [inst_8 : Algebra S R] [inst_9 : IsScalarTower S R M]
[inst_10 : IsScalarTower S R N] (Q : QuadraticMap R M N) (x : M), Q.restrictScalars x = Q x
def QuadraticMap.comp E1 #
{R : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
{P : Type u_6} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R M] →
[inst_3 : AddCommMonoid N] →
[inst_4 : Module R N] →
[inst_5 : AddCommMonoid P] →
[inst_6 : Module R P] → QuadraticMap R N P → (M →ₗ[R] N) → QuadraticMap R M P
Compose the quadratic map with a linear function on the right.
theorem QuadraticMap.comp_apply E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
[inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N] [inst_5 : AddCommMonoid P]
[inst_6 : Module R P] (Q : QuadraticMap R N P) (f : M →ₗ[R] N) (x : M), (Q.comp f) x = Q (f x)
def LinearMap.compQuadraticMap E1 #
{R : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
{P : Type u_6} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R M] →
[inst_3 : AddCommMonoid N] →
[inst_4 : Module R N] →
[inst_5 : AddCommMonoid P] →
[inst_6 : Module R P] → (N →ₗ[R] P) → QuadraticMap R M N → QuadraticMap R M P
Compose a quadratic map with a linear function on the left.
theorem LinearMap.compQuadraticMap_apply E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
[inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N] [inst_5 : AddCommMonoid P]
[inst_6 : Module R P] (f : N →ₗ[R] P) (Q : QuadraticMap R M N) (x : M), (f.compQuadraticMap Q) x = f (Q x)
def LinearMap.compQuadraticMap' E1 #
{S : Type u_1} →
{R : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
{P : Type u_6} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R M] →
[inst_3 : AddCommMonoid N] →
[inst_4 : Module R N] →
[inst_5 : AddCommMonoid P] →
[inst_6 : CommSemiring S] →
[inst_7 : Algebra S R] →
[inst_8 : Module S N] →
[inst_9 : Module S M] →
[IsScalarTower S R N] →
[IsScalarTower S R M] →
[inst_12 : Module S P] → (N →ₗ[S] P) → QuadraticMap R M N → QuadraticMap S M P
Compose a quadratic map with a linear function on the left.
theorem LinearMap.compQuadraticMap'_apply E0 #
∀ {S : Type u_1} {R : Type u_3} {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : CommSemiring R]
[inst_1 : AddCommMonoid M] [inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N]
[inst_5 : AddCommMonoid P] [inst_6 : CommSemiring S] [inst_7 : Algebra S R] [inst_8 : Module S N]
[inst_9 : Module S M] [inst_10 : IsScalarTower S R N] [inst_11 : IsScalarTower S R M] [inst_12 : Module S P]
(f : N →ₗ[S] P) (Q : QuadraticMap R M N) (x : M), (f.compQuadraticMap' Q) x = f (Q x)
def LinearEquiv.congrQuadraticMap E1 #
{R : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
{P : Type u_6} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R M] →
[inst_3 : AddCommMonoid N] →
[inst_4 : Module R N] →
[inst_5 : AddCommMonoid P] →
[inst_6 : Module R P] → (N ≃ₗ[R] P) → QuadraticMap R M N ≃ₗ[R] QuadraticMap R M P
When N and P are equivalent, quadratic maps on M into N are equivalent to quadratic
maps on M into P.
See LinearMap.BilinMap.congr₂ for the bilinear map version.
theorem LinearEquiv.congrQuadraticMap_apply E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
[inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N] [inst_5 : AddCommMonoid P]
[inst_6 : Module R P] (e : N ≃ₗ[R] P) (Q : QuadraticMap R M N), e.congrQuadraticMap Q = (↑e).compQuadraticMap Q
theorem LinearEquiv.congrQuadraticMap_refl E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N],
(LinearEquiv.refl R N).congrQuadraticMap = LinearEquiv.refl R (QuadraticMap R M N)
theorem LinearEquiv.congrQuadraticMap_symm E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} {P : Type u_6} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
[inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N] [inst_5 : AddCommMonoid P]
[inst_6 : Module R P] (e : N ≃ₗ[R] P), e.congrQuadraticMap.symm = e.symm.congrQuadraticMap
def QuadraticMap.linMulLin E1 #
{R : Type u_3} →
{M : Type u_4} →
{A : Type u_7} →
[inst : CommSemiring R] →
[inst_1 : NonUnitalNonAssocSemiring A] →
[inst_2 : AddCommMonoid M] →
[inst_3 : Module R M] →
[inst_4 : Module R A] →
[SMulCommClass R A A] → [IsScalarTower R A A] → (M →ₗ[R] A) → (M →ₗ[R] A) → QuadraticMap R M A
The product of linear maps into an R-algebra is a quadratic map.
theorem QuadraticMap.linMulLin_apply E0 #
∀ {R : Type u_3} {M : Type u_4} {A : Type u_7} [inst : CommSemiring R] [inst_1 : NonUnitalNonAssocSemiring A]
[inst_2 : AddCommMonoid M] [inst_3 : Module R M] [inst_4 : Module R A] [inst_5 : SMulCommClass R A A]
[inst_6 : IsScalarTower R A A] (f g : M →ₗ[R] A) (x : M), (QuadraticMap.linMulLin f g) x = f x * g x
theorem QuadraticMap.add_linMulLin E0 #
∀ {R : Type u_3} {M : Type u_4} {A : Type u_7} [inst : CommSemiring R] [inst_1 : NonUnitalNonAssocSemiring A]
[inst_2 : AddCommMonoid M] [inst_3 : Module R M] [inst_4 : Module R A] [inst_5 : SMulCommClass R A A]
[inst_6 : IsScalarTower R A A] (f g h : M →ₗ[R] A),
QuadraticMap.linMulLin (f + g) h = QuadraticMap.linMulLin f h + QuadraticMap.linMulLin g h
theorem QuadraticMap.linMulLin_add E0 #
∀ {R : Type u_3} {M : Type u_4} {A : Type u_7} [inst : CommSemiring R] [inst_1 : NonUnitalNonAssocSemiring A]
[inst_2 : AddCommMonoid M] [inst_3 : Module R M] [inst_4 : Module R A] [inst_5 : SMulCommClass R A A]
[inst_6 : IsScalarTower R A A] (f g h : M →ₗ[R] A),
QuadraticMap.linMulLin f (g + h) = QuadraticMap.linMulLin f g + QuadraticMap.linMulLin f h
theorem QuadraticMap.linMulLin_comp E0 #
∀ {R : Type u_3} {M : Type u_4} {A : Type u_7} [inst : CommSemiring R] [inst_1 : NonUnitalNonAssocSemiring A]
[inst_2 : AddCommMonoid M] [inst_3 : Module R M] [inst_4 : Module R A] [inst_5 : SMulCommClass R A A]
[inst_6 : IsScalarTower R A A] {N' : Type u_8} [inst_7 : AddCommMonoid N'] [inst_8 : Module R N'] (f g : M →ₗ[R] A)
(h : N' →ₗ[R] M), (QuadraticMap.linMulLin f g).comp h = QuadraticMap.linMulLin (f ∘ₗ h) (g ∘ₗ h)
def QuadraticMap.sq E1 #
{R : Type u_3} →
{A : Type u_7} →
[inst : CommSemiring R] →
[inst_1 : NonUnitalNonAssocSemiring A] →
[inst_2 : Module R A] → [SMulCommClass R A A] → [IsScalarTower R A A] → QuadraticMap R A A
sq is the quadratic map sending the vector x : A to x * x
theorem QuadraticMap.sq_apply E0 #
∀ {R : Type u_3} {A : Type u_7} [inst : CommSemiring R] [inst_1 : NonUnitalNonAssocSemiring A] [inst_2 : Module R A]
[inst_3 : SMulCommClass R A A] [inst_4 : IsScalarTower R A A] (a : A), QuadraticMap.sq a = a * a
def QuadraticMap.proj E1 #
{R : Type u_3} →
{A : Type u_7} →
[inst : CommSemiring R] →
[inst_1 : NonUnitalNonAssocSemiring A] →
[inst_2 : Module R A] →
[SMulCommClass R A A] → [IsScalarTower R A A] → {n : Type u_9} → n → n → QuadraticMap R (n → A) A
proj i j is the quadratic map sending the vector x : n → R to x i * x j
theorem QuadraticMap.proj_apply E0 #
∀ {R : Type u_3} {A : Type u_7} [inst : CommSemiring R] [inst_1 : NonUnitalNonAssocSemiring A] [inst_2 : Module R A]
[inst_3 : SMulCommClass R A A] [inst_4 : IsScalarTower R A A] {n : Type u_9} (i j : n) (x : n → A),
(QuadraticMap.proj i j) x = x i * x j
def LinearMap.BilinMap.toQuadraticMap E1 #
{R : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R M] →
[inst_3 : AddCommMonoid N] → [inst_4 : Module R N] → LinearMap.BilinMap R M N → QuadraticMap R M N
A bilinear map gives a quadratic map by applying the argument twice.
theorem LinearMap.BilinMap.toQuadraticMap_apply E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] (B : LinearMap.BilinMap R M N) (x : M), B.toQuadraticMap x = (B x) x
theorem LinearMap.BilinMap.toQuadraticMap_comp_same E1 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] {N' : Type u_8} [inst_5 : AddCommMonoid N'] [inst_6 : Module R N']
(B : LinearMap.BilinMap R M N) (f : N' →ₗ[R] M),
LinearMap.BilinMap.toQuadraticMap (LinearMap.compl₁₂ B f f) = B.toQuadraticMap.comp f
theorem LinearMap.BilinMap.toQuadraticMap_zero E0 #
∀ (R : Type u_3) (M : Type u_4) {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N], LinearMap.BilinMap.toQuadraticMap 0 = 0
theorem LinearMap.BilinMap.toQuadraticMap_add E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] (B₁ B₂ : LinearMap.BilinMap R M N),
(B₁ + B₂).toQuadraticMap = B₁.toQuadraticMap + B₂.toQuadraticMap
theorem LinearMap.BilinMap.toQuadraticMap_smul E0 #
∀ {S : Type u_1} {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
[inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N] [inst_5 : Monoid S]
[inst_6 : DistribMulAction S N] [inst_7 : SMulCommClass S R N] [inst_8 : SMulCommClass R S N] (a : S)
(B : LinearMap.BilinMap R M N), (a • B).toQuadraticMap = a • B.toQuadraticMap
def LinearMap.BilinMap.toQuadraticMapAddMonoidHom E1 #
(R : Type u_3) →
(M : Type u_4) →
{N : Type u_5} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R M] →
[inst_3 : AddCommMonoid N] → [inst_4 : Module R N] → LinearMap.BilinMap R M N →+ QuadraticMap R M N
LinearMap.BilinMap.toQuadraticMap as an additive homomorphism
theorem LinearMap.BilinMap.toQuadraticMapAddMonoidHom_apply E0 #
∀ (R : Type u_3) (M : Type u_4) {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] (B : LinearMap.BilinMap R M N),
(LinearMap.BilinMap.toQuadraticMapAddMonoidHom R M) B = B.toQuadraticMap
def LinearMap.BilinMap.toQuadraticMapLinearMap E1 #
(S : Type u_1) →
(R : Type u_3) →
(M : Type u_4) →
{N : Type u_5} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R M] →
[inst_3 : AddCommMonoid N] →
[inst_4 : Module R N] →
[inst_5 : Semiring S] →
[inst_6 : Module S N] →
[inst_7 : SMulCommClass S R N] →
[inst_8 : SMulCommClass R S N] → LinearMap.BilinMap R M N →ₗ[S] QuadraticMap R M N
LinearMap.BilinMap.toQuadraticMap as a linear map
theorem LinearMap.BilinMap.toQuadraticMapLinearMap_apply E0 #
∀ (S : Type u_1) (R : Type u_3) (M : Type u_4) {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
[inst_2 : Module R M] [inst_3 : AddCommMonoid N] [inst_4 : Module R N] [inst_5 : Semiring S] [inst_6 : Module S N]
[inst_7 : SMulCommClass S R N] [inst_8 : SMulCommClass R S N] (B : LinearMap.BilinMap R M N),
(LinearMap.BilinMap.toQuadraticMapLinearMap S R M) B = B.toQuadraticMap
theorem LinearMap.BilinMap.toQuadraticMap_list_sum E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] (B : List (LinearMap.BilinMap R M N)),
B.sum.toQuadraticMap = (List.map LinearMap.BilinMap.toQuadraticMap B).sum
theorem LinearMap.BilinMap.toQuadraticMap_multiset_sum E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] (B : Multiset (LinearMap.BilinMap R M N)),
B.sum.toQuadraticMap = (Multiset.map LinearMap.BilinMap.toQuadraticMap B).sum
theorem LinearMap.BilinMap.toQuadraticMap_sum E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] {ι : Type u_9} (s : Finset ι) (B : ι → LinearMap.BilinMap R M N),
(∑ i ∈ s, B i).toQuadraticMap = ∑ i ∈ s, (B i).toQuadraticMap
theorem LinearMap.BilinMap.toQuadraticMap_eq_zero E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] {B : LinearMap.BilinMap R M N},
B.toQuadraticMap = 0 ↔ LinearMap.IsAlt B
theorem LinearMap.BilinMap.toQuadraticMap_neg E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : AddCommGroup N]
[inst_3 : Module R M] [inst_4 : Module R N] (B : LinearMap.BilinMap R M N), (-B).toQuadraticMap = -B.toQuadraticMap
theorem LinearMap.BilinMap.toQuadraticMap_sub E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : AddCommGroup N]
[inst_3 : Module R M] [inst_4 : Module R N] (B₁ B₂ : LinearMap.BilinMap R M N),
(B₁ - B₂).toQuadraticMap = B₁.toQuadraticMap - B₂.toQuadraticMap
theorem LinearMap.BilinMap.polar_toQuadraticMap E1 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : AddCommGroup N]
[inst_3 : Module R M] [inst_4 : Module R N] {B : LinearMap.BilinMap R M N} (x y : M),
QuadraticMap.polar (⇑B.toQuadraticMap) x y = (B x) y + (B y) x
theorem LinearMap.BilinMap.polarBilin_toQuadraticMap E1 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : AddCommGroup N]
[inst_3 : Module R M] [inst_4 : Module R N] {B : LinearMap.BilinMap R M N},
B.toQuadraticMap.polarBilin = B + LinearMap.flip B
theorem QuadraticMap.toQuadraticMap_polarBilin E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [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), Q.polarBilin.toQuadraticMap = 2 • Q
theorem QuadraticMap.polarBilin_injective E1 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : AddCommGroup N]
[inst_3 : Module R M] [inst_4 : Module R N], IsUnit 2 → Function.Injective QuadraticMap.polarBilin
theorem QuadraticMap.polarBilin_comp E1 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : AddCommGroup N]
[inst_3 : Module R M] [inst_4 : Module R N] {N' : Type u_8} [inst_5 : AddCommGroup N'] [inst_6 : Module R N']
(Q : QuadraticMap R N' N) (f : M →ₗ[R] N'), (Q.comp f).polarBilin = LinearMap.compl₁₂ Q.polarBilin f f
theorem LinearMap.compQuadraticMap_polar E1 #
∀ {S : Type u_1} {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M]
[inst_2 : AddCommGroup N] [inst_3 : Module R M] [inst_4 : Module R N] {N' : Type u_8} [inst_5 : AddCommGroup N']
[inst_6 : CommSemiring S] [inst_7 : Algebra S R] [inst_8 : Module S N] [inst_9 : Module S N']
[inst_10 : IsScalarTower S R N] [inst_11 : Module S M] [inst_12 : IsScalarTower S R M] (f : N →ₗ[S] N')
(Q : QuadraticMap R M N) (x y : M),
QuadraticMap.polar (⇑(f.compQuadraticMap' Q)) x y = f (QuadraticMap.polar (⇑Q) x y)
theorem LinearMap.compQuadraticMap_polarBilin E1 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : AddCommGroup N]
[inst_3 : Module R M] [inst_4 : Module R N] {N' : Type u_8} [inst_5 : AddCommGroup N'] [inst_6 : Module R N']
(f : N →ₗ[R] N') (Q : QuadraticMap R M N), (f.compQuadraticMap' Q).polarBilin = LinearMap.compr₂ Q.polarBilin f
instance QuadraticMap.instInvertibleEndOfNat E0 #
{R : Type u_3} →
{M : Type u_4} →
[inst : Semiring R] → [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → [Invertible 2] → Invertible 2
If 2 is invertible in R, then it is also invertible in End R M.
theorem QuadraticMap.half_moduleEnd_apply_eq_half_smul E0 #
∀ {R : Type u_3} {M : Type u_4} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : Invertible 2] (x : M), ⅟2 x = ⅟2 • x
If 2 is invertible in R, then applying the inverse of 2 in End R M to an element
of M is the same as multiplying by the inverse of 2 in R.
def QuadraticMap.associatedHom E1 #
(S : Type u_1) →
{R : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
[inst : CommRing R] →
[inst_1 : AddCommGroup M] →
[inst_2 : Module R M] →
[inst_3 : AddCommGroup N] →
[inst_4 : Module R N] →
[inst_5 : CommSemiring S] →
[inst_6 : Algebra S R] →
[inst_7 : Module S N] →
[inst_8 : IsScalarTower S R N] →
[Invertible 2] → QuadraticMap R M N →ₗ[S] LinearMap.BilinMap R M N
associatedHom is the map that sends a quadratic map on a module M over R to its
associated symmetric bilinear map. As provided here, this has the structure of an S-linear map
where S is a commutative ring and R is an S-algebra.
Over a commutative ring, use QuadraticMap.associated, which gives an R-linear map. Over a
general ring with no nontrivial distinguished commutative subring, use QuadraticMap.associated',
which gives an additive homomorphism (or more precisely a ℤ-linear map.)
theorem QuadraticMap.associated_apply E0 #
∀ (S : Type u_1) {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M]
[inst_2 : Module R M] [inst_3 : AddCommGroup N] [inst_4 : Module R N] [inst_5 : CommSemiring S] [inst_6 : Algebra S R]
[inst_7 : Module S N] [inst_8 : IsScalarTower S R N] [inst_9 : Invertible 2] (Q : QuadraticMap R M N) (x y : M),
(((QuadraticMap.associatedHom S) Q) x) y = ⅟2 • (Q (x + y) - Q x - Q y)
theorem QuadraticMap.two_nsmul_associated E0 #
∀ (S : Type u_1) {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M]
[inst_2 : Module R M] [inst_3 : AddCommGroup N] [inst_4 : Module R N] [inst_5 : CommSemiring S] [inst_6 : Algebra S R]
[inst_7 : Module S N] [inst_8 : IsScalarTower S R N] [inst_9 : Invertible 2] (Q : QuadraticMap R M N),
2 • (QuadraticMap.associatedHom S) Q = Q.polarBilin
Twice the associated bilinear map of Q is the same as the polar of Q.
theorem QuadraticMap.associated_isSymm E1 #
∀ (S : Type u_1) {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M]
[inst_2 : Module R M] [inst_3 : AddCommGroup N] [inst_4 : Module R N] [inst_5 : CommSemiring S] [inst_6 : Algebra S R]
[inst_7 : Module S N] [inst_8 : IsScalarTower S R N] [inst_9 : Invertible 2] (Q : QuadraticMap R M N) (x y : M),
(((QuadraticMap.associatedHom S) Q) x) y = (((QuadraticMap.associatedHom S) Q) y) x
theorem QuadraticForm.associated_isSymm E1 #
∀ (S : Type u_1) {R : Type u_3} {M : Type u_4} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
[inst_3 : CommSemiring S] [inst_4 : Algebra S R] (Q : QuadraticForm R M) [inst_5 : Invertible 2],
LinearMap.IsSymm ((QuadraticMap.associatedHom S) Q)
theorem QuadraticMap.associated_flip E1 #
∀ (S : Type u_1) {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M]
[inst_2 : Module R M] [inst_3 : AddCommGroup N] [inst_4 : Module R N] [inst_5 : CommSemiring S] [inst_6 : Algebra S R]
[inst_7 : Module S N] [inst_8 : IsScalarTower S R N] [inst_9 : Invertible 2] (Q : QuadraticMap R M N),
LinearMap.flip ((QuadraticMap.associatedHom S) Q) = (QuadraticMap.associatedHom S) Q
A version of QuadraticMap.associated_isSymm for general targets
(using flip because IsSymm does not apply here).
theorem QuadraticMap.associated_comp E0 #
∀ (S : Type u_1) {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M]
[inst_2 : Module R M] [inst_3 : AddCommGroup N] [inst_4 : Module R N] [inst_5 : CommSemiring S] [inst_6 : Algebra S R]
[inst_7 : Module S N] [inst_8 : IsScalarTower S R N] [inst_9 : Invertible 2] (Q : QuadraticMap R M N) {N' : Type u_8}
[inst_10 : AddCommGroup N'] [inst_11 : Module R N'] (f : N' →ₗ[R] M),
(QuadraticMap.associatedHom S) (Q.comp f) = LinearMap.compl₁₂ ((QuadraticMap.associatedHom S) Q) f f
theorem QuadraticMap.associated_toQuadraticMap E1 #
∀ (S : Type u_1) {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M]
[inst_2 : Module R M] [inst_3 : AddCommGroup N] [inst_4 : Module R N] [inst_5 : CommSemiring S] [inst_6 : Algebra S R]
[inst_7 : Module S N] [inst_8 : IsScalarTower S R N] [inst_9 : Invertible 2] (B : LinearMap.BilinMap R M N) (x y : M),
(((QuadraticMap.associatedHom S) B.toQuadraticMap) x) y = ⅟2 • ((B x) y + (B y) x)
theorem QuadraticMap.associated_left_inverse E3 #
∀ (S : Type u_1) {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M]
[inst_2 : Module R M] [inst_3 : AddCommGroup N] [inst_4 : Module R N] [inst_5 : CommSemiring S] [inst_6 : Algebra S R]
[inst_7 : Module S N] [inst_8 : IsScalarTower S R N] [inst_9 : Invertible 2] {B₁ : LinearMap.BilinMap R M N},
(∀ (x y : M), (B₁ x) y = (B₁ y) x) → (QuadraticMap.associatedHom S) B₁.toQuadraticMap = B₁
theorem QuadraticMap.associated_left_inverse' E1 #
∀ (S : Type u_1) {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M]
[inst_2 : Module R M] [inst_3 : AddCommGroup N] [inst_4 : Module R N] [inst_5 : CommSemiring S] [inst_6 : Algebra S R]
[inst_7 : Module S N] [inst_8 : IsScalarTower S R N] [inst_9 : Invertible 2] {B₁ : LinearMap.BilinMap R M N},
LinearMap.flip B₁ = B₁ → (QuadraticMap.associatedHom S) B₁.toQuadraticMap = B₁
A version of QuadraticMap.associated_left_inverse for general targets.
theorem QuadraticMap.associated_eq_self_apply E0 #
∀ (S : Type u_1) {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M]
[inst_2 : Module R M] [inst_3 : AddCommGroup N] [inst_4 : Module R N] [inst_5 : CommSemiring S] [inst_6 : Algebra S R]
[inst_7 : Module S N] [inst_8 : IsScalarTower S R N] [inst_9 : Invertible 2] (Q : QuadraticMap R M N) (x : M),
(((QuadraticMap.associatedHom S) Q) x) x = Q x
theorem QuadraticMap.toQuadraticMap_associated E1 #
∀ (S : Type u_1) {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M]
[inst_2 : Module R M] [inst_3 : AddCommGroup N] [inst_4 : Module R N] [inst_5 : CommSemiring S] [inst_6 : Algebra S R]
[inst_7 : Module S N] [inst_8 : IsScalarTower S R N] [inst_9 : Invertible 2] (Q : QuadraticMap R M N),
((QuadraticMap.associatedHom S) Q).toQuadraticMap = Q
theorem QuadraticMap.associated_rightInverse E3 #
∀ (S : Type u_1) {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M]
[inst_2 : Module R M] [inst_3 : AddCommGroup N] [inst_4 : Module R N] [inst_5 : CommSemiring S] [inst_6 : Algebra S R]
[inst_7 : Module S N] [inst_8 : IsScalarTower S R N] [inst_9 : Invertible 2],
Function.RightInverse (⇑(QuadraticMap.associatedHom S)) LinearMap.BilinMap.toQuadraticMap
abbrev QuadraticMap.associated' E1 #
{R : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
[inst : CommRing R] →
[inst_1 : AddCommGroup M] →
[inst_2 : Module R M] →
[inst_3 : AddCommGroup N] →
[inst_4 : Module R N] → [Invertible 2] → QuadraticMap R M N →ₗ[ℤ] LinearMap.BilinMap R M N
associated' is the ℤ-linear map that sends a quadratic form on a module M over R to its
associated symmetric bilinear form.
instance QuadraticMap.canLift E0 #
∀ {R : Type u_3} {M : Type u_4} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
[inst_3 : Invertible 2],
CanLift (LinearMap.BilinMap R M R) (QuadraticForm R M) (⇑(QuadraticMap.associatedHom ℕ)) LinearMap.IsSymm
Symmetric bilinear forms can be lifted to quadratic forms
instance QuadraticMap.canLift' E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
[inst_3 : AddCommGroup N] [inst_4 : Module R N] [inst_5 : Invertible 2],
CanLift (LinearMap.BilinMap R M N) (QuadraticMap R M N) ⇑(QuadraticMap.associatedHom ℕ) fun B ↦ LinearMap.flip B = B
Symmetric bilinear maps can be lifted to quadratic maps
theorem QuadraticMap.exists_quadraticMap_ne_zero E1 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
[inst_3 : AddCommGroup N] [inst_4 : Module R N] [inst_5 : Invertible 2] {Q : QuadraticMap R M N},
QuadraticMap.associated' Q ≠ 0 → ∃ x, Q x ≠ 0
There exists a non-null vector with respect to any quadratic form Q whose associated
bilinear form is non-zero, i.e. there exists x such that Q x ≠ 0.
abbrev QuadraticMap.associated E3 #
{R : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
[inst : CommRing R] →
[inst_1 : AddCommGroup M] →
[inst_2 : Module R M] →
[inst_3 : AddCommGroup N] →
[inst_4 : Module R N] → [Invertible 2] → QuadraticMap R M N →ₗ[R] LinearMap.BilinMap R M N
associated is the linear map that sends a quadratic map over a commutative ring to its
associated symmetric bilinear map.
theorem QuadraticMap.coe_associatedHom E0 #
∀ (S : Type u_1) {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring S] [inst_1 : CommRing R]
[inst_2 : AddCommGroup M] [inst_3 : Algebra S R] [inst_4 : Module R M] [inst_5 : AddCommGroup N] [inst_6 : Module R N]
[inst_7 : Module S N] [inst_8 : IsScalarTower S R N] [inst_9 : Invertible 2],
⇑(QuadraticMap.associatedHom S) = ⇑QuadraticMap.associated
theorem QuadraticMap.associated_linMulLin E0 #
∀ {R : Type u_3} {M : Type u_4} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
[inst_3 : Invertible 2] (f g : M →ₗ[R] R),
QuadraticMap.associated (QuadraticMap.linMulLin f g) =
⅟2 • ((LinearMap.mul R R).compl₁₂ f g + (LinearMap.mul R R).compl₁₂ g f)
theorem QuadraticMap.associated_sq E0 #
∀ {R : Type u_3} [inst : CommRing R] [inst_1 : Invertible 2],
QuadraticMap.associated QuadraticMap.sq = LinearMap.mul R R
def QuadraticMap.IsOrtho E3 #
{R : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R M] → [inst_3 : AddCommMonoid N] → [inst_4 : Module R N] → QuadraticMap R M N → M → M → Prop
The proposition that two elements of a quadratic map space are orthogonal.
theorem QuadraticMap.isOrtho_def E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] {Q : QuadraticMap R M N} {x y : M},
Q.IsOrtho x y ↔ Q (x + y) = Q x + Q y
theorem QuadraticMap.IsOrtho.all E1 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] (x y : M), QuadraticMap.IsOrtho 0 x y
theorem QuadraticMap.IsOrtho.zero_left E1 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] {Q : QuadraticMap R M N} (x : M), Q.IsOrtho 0 x
theorem QuadraticMap.IsOrtho.zero_right E1 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] {Q : QuadraticMap R M N} (x : M), Q.IsOrtho x 0
theorem QuadraticMap.ne_zero_of_not_isOrtho_self E1 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] {Q : QuadraticMap R M N} (x : M), ¬Q.IsOrtho x x → x ≠ 0
theorem QuadraticMap.isOrtho_comm E1 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] {Q : QuadraticMap R M N} {x y : M}, Q.IsOrtho x y ↔ Q.IsOrtho y x
theorem QuadraticMap.IsOrtho.symm E1 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] {Q : QuadraticMap R M N} {x y : M}, Q.IsOrtho x y → Q.IsOrtho y x
Alias of the forward direction of QuadraticMap.isOrtho_comm.
theorem LinearMap.BilinForm.toQuadraticMap_isOrtho E1 #
∀ {R : Type u_3} {M : Type u_4} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] [IsCancelAdd R]
[NoZeroDivisors R] [CharZero R] {B : LinearMap.BilinMap R M R} {x y : M},
LinearMap.IsSymm B → (B.toQuadraticMap.IsOrtho x y ↔ (B x) y = 0)
theorem QuadraticMap.isOrtho_polarBilin E1 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
[inst_3 : AddCommGroup N] [inst_4 : Module R N] {Q : QuadraticMap R M N} {x y : M},
(Q.polarBilin x) y = 0 ↔ Q.IsOrtho x y
theorem QuadraticMap.IsOrtho.polar_eq_zero E1 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
[inst_3 : AddCommGroup N] [inst_4 : Module R N] {Q : QuadraticMap R M N} {x y : M},
Q.IsOrtho x y → QuadraticMap.polar (⇑Q) x y = 0
theorem QuadraticMap.associated_isOrtho E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
[inst_3 : AddCommGroup N] [inst_4 : Module R N] {Q : QuadraticMap R M N} [inst_5 : Invertible 2] {x y : M},
((QuadraticMap.associated Q) x) y = 0 ↔ Q.IsOrtho x y
def QuadraticMap.Anisotropic E3 #
{R : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : AddCommMonoid N] → [inst_3 : Module R M] → [inst_4 : Module R N] → QuadraticMap R M N → Prop
An anisotropic quadratic map is zero only on zero vectors.
theorem QuadraticMap.not_anisotropic_iff_exists E1 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
[inst_2 : AddCommMonoid N] [inst_3 : Module R M] [inst_4 : Module R N] (Q : QuadraticMap R M N),
¬Q.Anisotropic ↔ ∃ x, x ≠ 0 ∧ Q x = 0
theorem QuadraticMap.separatingLeft_of_anisotropic E1 #
∀ {R : Type u_3} {M : Type u_4} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
[inst_3 : Invertible 2] (Q : QuadraticMap R M R),
Q.Anisotropic → LinearMap.SeparatingLeft (QuadraticMap.associated' Q)
The associated bilinear form of an anisotropic quadratic form is nondegenerate.
def QuadraticMap.PosDef E3 #
{M : Type u_4} →
{N : Type u_5} →
{R₂ : Type u} →
[inst : CommSemiring R₂] →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R₂ M] →
[PartialOrder N] → [inst_4 : AddCommMonoid N] → [inst_5 : Module R₂ N] → QuadraticMap R₂ M N → Prop
A positive definite quadratic form is positive on nonzero vectors.
theorem QuadraticMap.PosDef.smul E1 #
∀ {M : Type u_4} {N : Type u_5} [inst : AddCommMonoid M] [inst_1 : PartialOrder N] [inst_2 : AddCommMonoid N]
{R : Type u_8} [inst_3 : CommSemiring R] [inst_4 : PartialOrder R] [inst_5 : Module R M] [inst_6 : Module R N]
[PosSMulStrictMono R N] {Q : QuadraticMap R M N}, Q.PosDef → ∀ {a : R}, 0 < a → (a • Q).PosDef
theorem QuadraticMap.PosDef.nonneg E1 #
∀ {M : Type u_4} {N : Type u_5} {R₂ : Type u} [inst : CommSemiring R₂] [inst_1 : AddCommMonoid M] [inst_2 : Module R₂ M]
[inst_3 : PartialOrder N] [inst_4 : AddCommMonoid N] [inst_5 : Module R₂ N] {Q : QuadraticMap R₂ M N},
Q.PosDef → ∀ (x : M), 0 ≤ Q x
theorem QuadraticMap.PosDef.anisotropic E1 #
∀ {M : Type u_4} {N : Type u_5} {R₂ : Type u} [inst : CommSemiring R₂] [inst_1 : AddCommMonoid M] [inst_2 : Module R₂ M]
[inst_3 : PartialOrder N] [inst_4 : AddCommMonoid N] [inst_5 : Module R₂ N] {Q : QuadraticMap R₂ M N},
Q.PosDef → Q.Anisotropic
theorem QuadraticMap.PosDef.le_zero_iff E0 #
∀ {M : Type u_4} {N : Type u_5} {R₂ : Type u} [inst : CommSemiring R₂] [inst_1 : AddCommMonoid M] [inst_2 : Module R₂ M]
[inst_3 : PartialOrder N] [inst_4 : AddCommMonoid N] [inst_5 : Module R₂ N] {Q : QuadraticMap R₂ M N},
Q.PosDef → ∀ {x : M}, Q x ≤ 0 ↔ x = 0
theorem QuadraticMap.posDef_of_nonneg E1 #
∀ {M : Type u_4} {N : Type u_5} {R₂ : Type u} [inst : CommSemiring R₂] [inst_1 : AddCommMonoid M] [inst_2 : Module R₂ M]
[inst_3 : PartialOrder N] [inst_4 : AddCommMonoid N] [inst_5 : Module R₂ N] {Q : QuadraticMap R₂ M N},
(∀ (x : M), 0 ≤ Q x) → Q.Anisotropic → Q.PosDef
theorem QuadraticMap.posDef_iff_nonneg E1 #
∀ {M : Type u_4} {N : Type u_5} {R₂ : Type u} [inst : CommSemiring R₂] [inst_1 : AddCommMonoid M] [inst_2 : Module R₂ M]
[inst_3 : PartialOrder N] [inst_4 : AddCommMonoid N] [inst_5 : Module R₂ N] {Q : QuadraticMap R₂ M N},
Q.PosDef ↔ (∀ (x : M), 0 ≤ Q x) ∧ Q.Anisotropic
theorem QuadraticMap.PosDef.add E1 #
∀ {M : Type u_4} {N : Type u_5} {R₂ : Type u} [inst : CommSemiring R₂] [inst_1 : AddCommMonoid M] [inst_2 : Module R₂ M]
[inst_3 : PartialOrder N] [inst_4 : AddCommMonoid N] [inst_5 : Module R₂ N] [AddLeftStrictMono N]
(Q Q' : QuadraticMap R₂ M N), Q.PosDef → Q'.PosDef → (Q + Q').PosDef
theorem QuadraticMap.linMulLinSelfPosDef E1 #
∀ {M : Type u_4} {A : Type u_7} [inst : AddCommMonoid M] {R : Type u_9} [inst_1 : CommSemiring R] [inst_2 : Module R M]
[inst_3 : Semiring A] [inst_4 : LinearOrder A] [IsStrictOrderedRing A] [ExistsAddOfLE A] [inst_7 : Module R A]
[inst_8 : SMulCommClass R A A] [inst_9 : IsScalarTower R A A] (f : M →ₗ[R] A),
f.ker = ⊥ → (QuadraticMap.linMulLin f f).PosDef
def Matrix.toQuadraticForm' E1 #
{R : Type u_3} →
{n : Type w} → [Fintype n] → [DecidableEq n] → [inst : CommRing R] → Matrix n n R → QuadraticForm R (n → R)
M.toQuadraticForm' is the map fun x ↦ row x * M * col x as a quadratic form on n → R.
def QuadraticForm.toMatrix' E1 #
{R : Type u_3} →
{n : Type w} →
[Fintype n] → [DecidableEq n] → [inst : CommRing R] → [Invertible 2] → QuadraticForm R (n → R) → Matrix n n R
A matrix representation of a quadratic form Q : QuadraticForm R (n → R).
See also QuadraticForm.toMatrix which gives the matrix in a given basis of a quadratic form on
an abstract vector space.
theorem QuadraticForm.toMatrix'_smul E1 #
∀ {R : Type u_3} {n : Type w} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : CommRing R] [inst_3 : Invertible 2]
(a : R) (Q : QuadraticForm R (n → R)), (a • Q).toMatrix' = a • Q.toMatrix'
theorem QuadraticForm.isSymm_toMatrix' E1 #
∀ {R : Type u_3} {n : Type w} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : CommRing R] [inst_3 : Invertible 2]
(Q : QuadraticForm R (n → R)), Q.toMatrix'.IsSymm
theorem QuadraticForm.toMatrix'_comp E0 #
∀ {R : Type u_3} {n : Type w} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : CommRing R] [inst_3 : Invertible 2]
{m : Type w} [inst_4 : DecidableEq m] [inst_5 : Fintype m] (Q : QuadraticForm R (m → R)) (f : (n → R) →ₗ[R] m → R),
QuadraticForm.toMatrix' (QuadraticMap.comp Q f) =
(LinearMap.toMatrix' f).transpose * Q.toMatrix' * LinearMap.toMatrix' f
def QuadraticForm.toMatrix E1 #
{R : Type u_3} →
{N : Type u_5} →
{n : Type w} →
[Fintype n] →
[DecidableEq n] →
[inst : CommRing R] →
[Invertible 2] →
[inst_2 : AddCommGroup N] → [inst_3 : Module R N] → Module.Basis n R N → QuadraticForm R N → Matrix n n R
A matrix representation of the quadratic form Q : QuadraticForm R N with respect to a
given basis. See also QuadraticForm.toMatrix' for the special case of N = n → R with
the standard basis.
theorem QuadraticForm.toMatrix_eq_toMatrix' E1 #
∀ {R : Type u_3} {n : Type w} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : CommRing R] [inst_3 : Invertible 2]
(Q : QuadraticForm R (n → R)), QuadraticForm.toMatrix (Pi.basisFun R n) Q = Q.toMatrix'
theorem QuadraticForm.toMatrix_smul E1 #
∀ {R : Type u_3} {N : Type u_5} {n : Type w} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : CommRing R]
[inst_3 : Invertible 2] [inst_4 : AddCommGroup N] [inst_5 : Module R N] (b : Module.Basis n R N) (a : R)
(Q : QuadraticForm R N), QuadraticForm.toMatrix b (a • Q) = a • QuadraticForm.toMatrix b Q
theorem QuadraticForm.isSymm_toMatrix E1 #
∀ {R : Type u_3} {N : Type u_5} {n : Type w} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : CommRing R]
[inst_3 : Invertible 2] [inst_4 : AddCommGroup N] [inst_5 : Module R N] (b : Module.Basis n R N)
(Q : QuadraticForm R N), (QuadraticForm.toMatrix b Q).IsSymm
theorem QuadraticForm.toMatrix_comp E1 #
∀ {R : Type u_3} {N : Type u_5} {P : Type u_6} {n : Type w} [inst : Fintype n] [inst_1 : DecidableEq n]
[inst_2 : CommRing R] [inst_3 : Invertible 2] [inst_4 : AddCommGroup N] [inst_5 : Module R N] (b : Module.Basis n R N)
{m : Type w} [inst_6 : DecidableEq m] [inst_7 : Fintype m] [inst_8 : AddCommGroup P] [inst_9 : Module R P]
(b' : Module.Basis m R P) (Q : QuadraticForm R P) (f : N →ₗ[R] P),
QuadraticForm.toMatrix b (QuadraticMap.comp Q f) =
((LinearMap.toMatrix b b') f).transpose * QuadraticForm.toMatrix b' Q * (LinearMap.toMatrix b b') f
def QuadraticForm.discr' E1 #
{R : Type u_3} →
{n : Type w} → [Fintype n] → [DecidableEq n] → [inst : CommRing R] → [Invertible 2] → QuadraticForm R (n → R) → R
The discriminant of a quadratic form Q : QuadraticForm R (n → R) generalizes the discriminant
of a quadratic polynomial.
theorem QuadraticForm.discr'_smul E1 #
∀ {R : Type u_3} {n : Type w} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : CommRing R] [inst_3 : Invertible 2]
{Q : QuadraticForm R (n → R)} (a : R), (a • Q).discr' = a ^ Fintype.card n * Q.discr'
theorem QuadraticForm.discr'_comp E1 #
∀ {R : Type u_3} {n : Type w} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : CommRing R] [inst_3 : Invertible 2]
{Q : QuadraticForm R (n → R)} (f : (n → R) →ₗ[R] n → R),
QuadraticForm.discr' (QuadraticMap.comp Q f) = (LinearMap.toMatrix' f).det * (LinearMap.toMatrix' f).det * Q.discr'
def QuadraticForm.discr E1 #
{R : Type u_3} →
{N : Type u_5} →
{n : Type w} →
[Fintype n] →
[DecidableEq n] →
[inst : CommRing R] →
[Invertible 2] →
[inst_2 : AddCommGroup N] → [inst_3 : Module R N] → Module.Basis n R N → QuadraticForm R N → R
The discriminant of a quadratic form Q : QuadraticForm R N generalizes the discriminant
of a quadratic polynomial.
theorem QuadraticForm.discr_smul E1 #
∀ {R : Type u_3} {N : Type u_5} {n : Type w} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : CommRing R]
[inst_3 : Invertible 2] [inst_4 : AddCommGroup N] [inst_5 : Module R N] {b : Module.Basis n R N}
{Q : QuadraticForm R N} (a : R), QuadraticForm.discr b (a • Q) = a ^ Fintype.card n * QuadraticForm.discr b Q
theorem QuadraticForm.discr_comp E1 #
∀ {R : Type u_3} {N : Type u_5} {P : Type u_6} {n : Type w} [inst : Fintype n] [inst_1 : DecidableEq n]
[inst_2 : CommRing R] [inst_3 : Invertible 2] [inst_4 : AddCommGroup N] [inst_5 : Module R N] {b : Module.Basis n R N}
[inst_6 : AddCommGroup P] [inst_7 : Module R P] (b' : Module.Basis n R P) (Q : QuadraticForm R P) (f : N →ₗ[R] P),
QuadraticForm.discr b (QuadraticMap.comp Q f) =
((LinearMap.toMatrix b b') f).det * ((LinearMap.toMatrix b b') f).det * QuadraticForm.discr b' Q
theorem QuadraticForm.discr_eq_discr' E1 #
∀ {R : Type u_3} {n : Type w} [inst : Fintype n] [inst_1 : DecidableEq n] [inst_2 : CommRing R] [inst_3 : Invertible 2]
(Q : QuadraticForm R (n → R)), QuadraticForm.discr (Pi.basisFun R n) Q = Q.discr'
theorem LinearMap.BilinForm.separatingLeft_of_anisotropic E1 #
∀ {R : Type u_3} {M : Type u_4} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
{B : LinearMap.BilinForm R M}, (LinearMap.BilinMap.toQuadraticMap B).Anisotropic → LinearMap.SeparatingLeft B
A bilinear form is separating left if the quadratic form it is associated with is anisotropic.
theorem LinearMap.BilinForm.exists_bilinForm_self_ne_zero E1 #
∀ {R : Type u_3} {M : Type u_4} [inst : CommRing R] [inst_1 : AddCommGroup M] [inst_2 : Module R M]
[htwo : Invertible 2] {B : LinearMap.BilinForm R M}, B ≠ 0 → LinearMap.IsSymm B → ∃ x, (B x) x ≠ 0
There exists a non-null vector with respect to any symmetric, nonzero bilinear form B
on a module M over a ring R with invertible 2, i.e. there exists some
x : M such that B x x ≠ 0.
theorem LinearMap.BilinForm.exists_orthogonal_basis E3 #
∀ {V : Type u} {K : Type v} [inst : Field K] [inst_1 : AddCommGroup V] [inst_2 : Module K V] [FiniteDimensional K V]
[hK : Invertible 2] {B : LinearMap.BilinForm K V}, LinearMap.IsSymm B → ∃ v, LinearMap.IsOrthoᵢ B ⇑v
Given a symmetric bilinear form B on some vector space V over a field K
in which 2 is invertible, there exists an orthogonal basis with respect to B.
def QuadraticMap.basisRepr E1 #
{R : Type u_3} →
{M : Type u_4} →
{N : Type u_5} →
[inst : CommSemiring R] →
[inst_1 : AddCommMonoid M] →
[inst_2 : Module R M] →
[inst_3 : AddCommMonoid N] →
[inst_4 : Module R N] →
{ι : Type u_8} → [Finite ι] → QuadraticMap R M N → Module.Basis ι R M → QuadraticMap R (ι → R) N
Given a quadratic map Q and a basis, basisRepr is the basis representation of Q.
theorem QuadraticMap.basisRepr_apply E0 #
∀ {R : Type u_3} {M : Type u_4} {N : Type u_5} [inst : CommSemiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M]
[inst_3 : AddCommMonoid N] [inst_4 : Module R N] {ι : Type u_8} [inst_5 : Fintype ι] {v : Module.Basis ι R M}
(Q : QuadraticMap R M N) (w : ι → R), (Q.basisRepr v) w = Q (∑ i, w i • v i)
def QuadraticMap.weightedSumSquares E1 #
{S : Type u_1} →
(R : Type u_3) →
[inst : CommSemiring R] →
{ι : Type u_8} →
[Fintype ι] →
[inst_2 : Monoid S] →
[inst_3 : DistribMulAction S R] → [SMulCommClass S R R] → (ι → S) → QuadraticMap R (ι → R) R
The weighted sum of squares with respect to some weight as a quadratic form.
The weights are applied using •; typically this definition is used either with S = R or
[Algebra S R], although this is stated more generally.
theorem QuadraticMap.weightedSumSquares_apply E0 #
∀ {S : Type u_1} {R : Type u_3} [inst : CommSemiring R] {ι : Type u_8} [inst_1 : Fintype ι] [inst_2 : Monoid S]
[inst_3 : DistribMulAction S R] [inst_4 : SMulCommClass S R R] (w : ι → S) (v : ι → R),
(QuadraticMap.weightedSumSquares R w) v = ∑ i, w i • (v i * v i)
theorem QuadraticMap.basisRepr_eq_of_iIsOrtho E1 #
∀ {ι : Type u_8} [inst : Fintype ι] {R : Type u_9} {M : Type u_10} [inst_1 : CommRing R] [inst_2 : AddCommGroup M]
[inst_3 : Module R M] [inst_4 : Invertible 2] (Q : QuadraticForm R M) (v : Module.Basis ι R M),
LinearMap.IsOrthoᵢ (QuadraticMap.associated Q) ⇑v →
QuadraticMap.basisRepr Q v = QuadraticMap.weightedSumSquares R fun i ↦ Q (v i)
On an orthogonal basis, the basis representation of Q is just a sum of squares.
Deprecated aliases
| Name | New name | Since |
|---|---|---|
Matrix.toQuadraticMap' | Matrix.toQuadraticForm' | 2026-05-15 |
QuadraticForm.QuadraticMap.discr | QuadraticForm.discr' | 2026-05-15 |
QuadraticForm.QuadraticMap.discr_comp | QuadraticForm.discr'_comp | 2026-05-15 |
QuadraticForm.QuadraticMap.discr_smul | QuadraticForm.discr'_smul | 2026-05-15 |
QuadraticForm.QuadraticMap.isSymm_toMatrix' | QuadraticForm.isSymm_toMatrix' | 2026-05-15 |
QuadraticForm.QuadraticMap.toMatrix' | QuadraticForm.toMatrix' | 2026-05-15 |
QuadraticForm.QuadraticMap.toMatrix'_comp | QuadraticForm.toMatrix'_comp | 2026-05-15 |
QuadraticForm.QuadraticMap.toMatrix'_smul | QuadraticForm.toMatrix'_smul | 2026-05-15 |
QuadraticMap.add_apply | add_apply | 2026-07-27 |
QuadraticMap.coeFnAddMonoidHom | FunLike.coeAddMonoidHom | 2026-07-27 |
QuadraticMap.coeFnAddMonoidHom_apply | FunLike.coeAddMonoidHom_apply | 2026-07-27 |
QuadraticMap.coeFn_add | FunLike.coe_add | 2026-07-27 |
QuadraticMap.coeFn_neg | FunLike.coe_neg | 2026-07-27 |
QuadraticMap.coeFn_smul | FunLike.coe_smul | 2026-07-27 |
QuadraticMap.coeFn_sub | FunLike.coe_sub | 2026-07-27 |
QuadraticMap.coeFn_sum | FunLike.coe_sum | 2026-07-27 |
QuadraticMap.coeFn_zero | FunLike.coe_zero | 2026-07-27 |
QuadraticMap.neg_apply | neg_apply | 2026-07-27 |
QuadraticMap.smul_apply | smul_apply | 2026-07-27 |
QuadraticMap.sub_apply | sub_apply | 2026-07-27 |
QuadraticMap.sum_apply | sum_apply | 2026-07-27 |
QuadraticMap.zero_apply | zero_apply | 2026-07-27 |