The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V08. Multilinear algebra and forms

Mathlib.LinearAlgebra.QuadraticForm.Real

6 declarations. Mathlib docs · Source

theorem QuadraticMap.basisRepr.congr_simp 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} [inst_5 : Finite ι] (Q Q_1 : QuadraticMap R M N),
  Q = Q_1 → ∀ (v v_1 : Module.Basis ι R M), v = v_1 → Q.basisRepr v = Q_1.basisRepr v_1

def QuadraticForm.isometryEquivSignWeightedSumSquares E1 #

{ι : Type u_1} →
  [inst : Fintype ι] →
    (w : ι → ℝ) →
      (QuadraticMap.weightedSumSquares ℝ w).IsometryEquiv
        (QuadraticMap.weightedSumSquares ℝ fun i ↦ ↑(SignType.sign (w i)))

The isometry between a weighted sum of squares with weights u on the (non-zero) real numbers and the weighted sum of squares with weights sign ∘ u.

theorem QuadraticForm.equivalent_sign_ne_zero_weighted_sum_squared E1 #

∀ {M : Type u_2} [inst : AddCommGroup M] [inst_1 : Module ℝ M] [FiniteDimensional ℝ M] (Q : QuadraticForm ℝ M),
  LinearMap.SeparatingLeft (QuadraticMap.associated Q) →
    ∃ w,
      (∀ (i : Fin (Module.finrank ℝ M)), w i ≠ 0) ∧
        QuadraticMap.Equivalent Q (QuadraticMap.weightedSumSquares ℝ fun i ↦ ↑(w i))

Sylvester's law of inertia: A nondegenerate real quadratic form is equivalent to a weighted sum of squares with the weights being ±1, SignType version.

theorem QuadraticForm.equivalent_one_neg_one_weighted_sum_squared E1 #

∀ {M : Type u_2} [inst : AddCommGroup M] [inst_1 : Module ℝ M] [FiniteDimensional ℝ M] (Q : QuadraticForm ℝ M),
  LinearMap.SeparatingLeft (QuadraticMap.associated Q) →
    ∃ w,
      (∀ (i : Fin (Module.finrank ℝ M)), w i = -1 ∨ w i = 1) ∧
        QuadraticMap.Equivalent Q (QuadraticMap.weightedSumSquares ℝ w)

Sylvester's law of inertia: A nondegenerate real quadratic form is equivalent to a weighted sum of squares with the weights being ±1.

theorem QuadraticForm.equivalent_signType_weighted_sum_squared E1 #

∀ {M : Type u_2} [inst : AddCommGroup M] [inst_1 : Module ℝ M] [FiniteDimensional ℝ M] (Q : QuadraticForm ℝ M),
  ∃ w, QuadraticMap.Equivalent Q (QuadraticMap.weightedSumSquares ℝ fun i ↦ ↑(w i))

Sylvester's law of inertia: A real quadratic form is equivalent to a weighted sum of squares with the weights being ±1 or 0, SignType version.

theorem QuadraticForm.equivalent_one_zero_neg_one_weighted_sum_squared E3 #

∀ {M : Type u_2} [inst : AddCommGroup M] [inst_1 : Module ℝ M] [FiniteDimensional ℝ M] (Q : QuadraticForm ℝ M),
  ∃ w,
    (∀ (i : Fin (Module.finrank ℝ M)), w i = -1 ∨ w i = 0 ∨ w i = 1) ∧
      QuadraticMap.Equivalent Q (QuadraticMap.weightedSumSquares ℝ w)

Sylvester's law of inertia: A real quadratic form is equivalent to a weighted sum of squares with the weights being ±1 or 0.