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.TensorProduct

15 declarations. Mathlib docs · Source

The quadratic form on a tensor product

Main definitions

  • QuadraticForm.tensorDistrib (Q₁ ⊗ₜ Q₂): the quadratic form on M₁ ⊗ M₂ constructed by applying Q₁ on M₁ and Q₂ on M₂. This construction is not available in characteristic two.

def QuadraticMap.tensorDistrib E1 #

(R : Type uR) →
  (A : Type uA) →
    {M₁ : Type uM₁} →
      {M₂ : Type uM₂} →
        {N₁ : Type uN₁} →
          {N₂ : Type uN₂} →
            [inst : CommRing R] →
              [inst_1 : CommRing A] →
                [inst_2 : AddCommGroup M₁] →
                  [inst_3 : AddCommGroup M₂] →
                    [inst_4 : AddCommGroup N₁] →
                      [inst_5 : AddCommGroup N₂] →
                        [inst_6 : Algebra R A] →
                          [inst_7 : Module R M₁] →
                            [inst_8 : Module A M₁] →
                              [inst_9 : Module R N₁] →
                                [inst_10 : Module A N₁] →
                                  [inst_11 : IsScalarTower R A M₁] →
                                    [inst_12 : IsScalarTower R A N₁] →
                                      [inst_13 : Module R M₂] →
                                        [inst_14 : Module R N₂] →
                                          [Invertible 2] →
                                            TensorProduct R (QuadraticMap A M₁ N₁) (QuadraticMap R M₂ N₂) →ₗ[A]
                                              QuadraticMap A (TensorProduct R M₁ M₂) (TensorProduct R N₁ N₂)

The tensor product of two quadratic maps injects into quadratic maps on tensor products.

Note this is heterobasic; the quadratic map on the left can take values in a module over a larger ring than the one on the right.

theorem QuadraticMap.tensorDistrib_tmul E0 #

∀ {R : Type uR} {A : Type uA} {M₁ : Type uM₁} {M₂ : Type uM₂} {N₁ : Type uN₁} {N₂ : Type uN₂} [inst : CommRing R]
  [inst_1 : CommRing A] [inst_2 : AddCommGroup M₁] [inst_3 : AddCommGroup M₂] [inst_4 : AddCommGroup N₁]
  [inst_5 : AddCommGroup N₂] [inst_6 : Algebra R A] [inst_7 : Module R M₁] [inst_8 : Module A M₁] [inst_9 : Module R N₁]
  [inst_10 : Module A N₁] [inst_11 : IsScalarTower R A M₁] [inst_12 : IsScalarTower R A N₁] [inst_13 : Module R M₂]
  [inst_14 : Module R N₂] [inst_15 : Invertible 2] (Q₁ : QuadraticMap A M₁ N₁) (Q₂ : QuadraticMap R M₂ N₂) (m₁ : M₁)
  (m₂ : M₂), ((QuadraticMap.tensorDistrib R A) (Q₁ ⊗ₜ[R] Q₂)) (m₁ ⊗ₜ[R] m₂) = Q₁ m₁ ⊗ₜ[R] Q₂ m₂

abbrev QuadraticMap.tmul E1 #

{R : Type uR} →
  {A : Type uA} →
    {M₁ : Type uM₁} →
      {M₂ : Type uM₂} →
        {N₁ : Type uN₁} →
          {N₂ : Type uN₂} →
            [inst : CommRing R] →
              [inst_1 : CommRing A] →
                [inst_2 : AddCommGroup M₁] →
                  [inst_3 : AddCommGroup M₂] →
                    [inst_4 : AddCommGroup N₁] →
                      [inst_5 : AddCommGroup N₂] →
                        [inst_6 : Algebra R A] →
                          [inst_7 : Module R M₁] →
                            [inst_8 : Module A M₁] →
                              [inst_9 : Module R N₁] →
                                [inst_10 : Module A N₁] →
                                  [inst_11 : IsScalarTower R A M₁] →
                                    [inst_12 : IsScalarTower R A N₁] →
                                      [inst_13 : Module R M₂] →
                                        [inst_14 : Module R N₂] →
                                          [Invertible 2] →
                                            QuadraticMap A M₁ N₁ →
                                              QuadraticMap R M₂ N₂ →
                                                QuadraticMap A (TensorProduct R M₁ M₂) (TensorProduct R N₁ N₂)

The tensor product of two quadratic maps, a shorthand for dot notation.

theorem QuadraticMap.associated_tmul E1 #

∀ {R : Type uR} {A : Type uA} {M₁ : Type uM₁} {M₂ : Type uM₂} {N₁ : Type uN₁} {N₂ : Type uN₂} [inst : CommRing R]
  [inst_1 : CommRing A] [inst_2 : AddCommGroup M₁] [inst_3 : AddCommGroup M₂] [inst_4 : AddCommGroup N₁]
  [inst_5 : AddCommGroup N₂] [inst_6 : Algebra R A] [inst_7 : Module R M₁] [inst_8 : Module A M₁] [inst_9 : Module R N₁]
  [inst_10 : Module A N₁] [inst_11 : IsScalarTower R A M₁] [inst_12 : IsScalarTower R A N₁] [inst_13 : Module R M₂]
  [inst_14 : Module R N₂] [inst_15 : Invertible 2] [inst_16 : Invertible 2] (Q₁ : QuadraticMap A M₁ N₁)
  (Q₂ : QuadraticMap R M₂ N₂),
  QuadraticMap.associated (Q₁.tmul Q₂) = (QuadraticMap.associated Q₁).tmul (QuadraticMap.associated Q₂)

def QuadraticForm.tensorDistrib E1 #

(R : Type uR) →
  (A : Type uA) →
    {M₁ : Type uM₁} →
      {M₂ : Type uM₂} →
        [inst : CommRing R] →
          [inst_1 : CommRing A] →
            [inst_2 : AddCommGroup M₁] →
              [inst_3 : AddCommGroup M₂] →
                [inst_4 : Algebra R A] →
                  [inst_5 : Module R M₁] →
                    [inst_6 : Module A M₁] →
                      [inst_7 : IsScalarTower R A M₁] →
                        [inst_8 : Module R M₂] →
                          [Invertible 2] →
                            TensorProduct R (QuadraticForm A M₁) (QuadraticForm R M₂) →ₗ[A]
                              QuadraticForm A (TensorProduct R M₁ M₂)

The tensor product of two quadratic forms injects into quadratic forms on tensor products.

Note this is heterobasic; the quadratic form on the left can take values in a larger ring than the one on the right.

theorem QuadraticForm.tensorDistrib_tmul E0 #

∀ {R : Type uR} {A : Type uA} {M₁ : Type uM₁} {M₂ : Type uM₂} [inst : CommRing R] [inst_1 : CommRing A]
  [inst_2 : AddCommGroup M₁] [inst_3 : AddCommGroup M₂] [inst_4 : Algebra R A] [inst_5 : Module R M₁]
  [inst_6 : Module A M₁] [inst_7 : IsScalarTower R A M₁] [inst_8 : Module R M₂] [inst_9 : Invertible 2]
  (Q₁ : QuadraticForm A M₁) (Q₂ : QuadraticForm R M₂) (m₁ : M₁) (m₂ : M₂),
  ((QuadraticForm.tensorDistrib R A) (Q₁ ⊗ₜ[R] Q₂)) (m₁ ⊗ₜ[R] m₂) = Q₂ m₂ • Q₁ m₁

abbrev QuadraticForm.tmul E1 #

{R : Type uR} →
  {A : Type uA} →
    {M₁ : Type uM₁} →
      {M₂ : Type uM₂} →
        [inst : CommRing R] →
          [inst_1 : CommRing A] →
            [inst_2 : AddCommGroup M₁] →
              [inst_3 : AddCommGroup M₂] →
                [inst_4 : Algebra R A] →
                  [inst_5 : Module R M₁] →
                    [inst_6 : Module A M₁] →
                      [inst_7 : IsScalarTower R A M₁] →
                        [inst_8 : Module R M₂] →
                          [Invertible 2] →
                            QuadraticForm A M₁ → QuadraticForm R M₂ → QuadraticForm A (TensorProduct R M₁ M₂)

The tensor product of two quadratic forms, a shorthand for dot notation.

theorem QuadraticForm.associated_tmul E1 #

∀ {R : Type uR} {A : Type uA} {M₁ : Type uM₁} {M₂ : Type uM₂} [inst : CommRing R] [inst_1 : CommRing A]
  [inst_2 : AddCommGroup M₁] [inst_3 : AddCommGroup M₂] [inst_4 : Algebra R A] [inst_5 : Module R M₁]
  [inst_6 : Module A M₁] [inst_7 : IsScalarTower R A M₁] [inst_8 : Module R M₂] [inst_9 : Invertible 2]
  [inst_10 : Invertible 2] (Q₁ : QuadraticForm A M₁) (Q₂ : QuadraticForm R M₂),
  QuadraticMap.associated (Q₁.tmul Q₂) =
    LinearMap.BilinForm.tmul (QuadraticMap.associated Q₁) (QuadraticMap.associated Q₂)

theorem QuadraticForm.polarBilin_tmul E1 #

∀ {R : Type uR} {A : Type uA} {M₁ : Type uM₁} {M₂ : Type uM₂} [inst : CommRing R] [inst_1 : CommRing A]
  [inst_2 : AddCommGroup M₁] [inst_3 : AddCommGroup M₂] [inst_4 : Algebra R A] [inst_5 : Module R M₁]
  [inst_6 : Module A M₁] [inst_7 : IsScalarTower R A M₁] [inst_8 : Module R M₂] [inst_9 : Invertible 2]
  [inst_10 : Invertible 2] (Q₁ : QuadraticForm A M₁) (Q₂ : QuadraticForm R M₂),
  QuadraticMap.polarBilin (Q₁.tmul Q₂) =
    ⅟2 • LinearMap.BilinForm.tmul (QuadraticMap.polarBilin Q₁) (QuadraticMap.polarBilin Q₂)

def QuadraticForm.baseChange E1 #

{R : Type uR} →
  (A : Type uA) →
    {M₂ : Type uM₂} →
      [inst : CommRing R] →
        [inst_1 : CommRing A] →
          [inst_2 : AddCommGroup M₂] →
            [inst_3 : Algebra R A] →
              [inst_4 : Module R M₂] → [Invertible 2] → QuadraticForm R M₂ → QuadraticForm A (TensorProduct R A M₂)

The base change of a quadratic form.

theorem QuadraticForm.baseChange_tmul E0 #

∀ {R : Type uR} {A : Type uA} {M₂ : Type uM₂} [inst : CommRing R] [inst_1 : CommRing A] [inst_2 : AddCommGroup M₂]
  [inst_3 : Algebra R A] [inst_4 : Module R M₂] [inst_5 : Invertible 2] (Q : QuadraticForm R M₂) (a : A) (m₂ : M₂),
  (QuadraticForm.baseChange A Q) (a ⊗ₜ[R] m₂) = Q m₂ • (a * a)

theorem QuadraticForm.associated_baseChange E1 #

∀ {R : Type uR} {A : Type uA} {M₂ : Type uM₂} [inst : CommRing R] [inst_1 : CommRing A] [inst_2 : AddCommGroup M₂]
  [inst_3 : Algebra R A] [inst_4 : Module R M₂] [inst_5 : Invertible 2] [inst_6 : Invertible 2]
  (Q : QuadraticForm R M₂),
  QuadraticMap.associated (QuadraticForm.baseChange A Q) = LinearMap.BilinForm.baseChange A (QuadraticMap.associated Q)

theorem QuadraticForm.polarBilin_baseChange E1 #

∀ {R : Type uR} {A : Type uA} {M₂ : Type uM₂} [inst : CommRing R] [inst_1 : CommRing A] [inst_2 : AddCommGroup M₂]
  [inst_3 : Algebra R A] [inst_4 : Module R M₂] [inst_5 : Invertible 2] [Invertible 2] (Q : QuadraticForm R M₂),
  QuadraticMap.polarBilin (QuadraticForm.baseChange A Q) = LinearMap.BilinForm.baseChange A (QuadraticMap.polarBilin Q)

theorem baseChange_ext E1 #

∀ {R : Type uR} {A : Type uA} {M₂ : Type uM₂} {N₁ : Type uN₁} [inst : CommRing R] [inst_1 : CommRing A]
  [inst_2 : AddCommGroup M₂] [inst_3 : AddCommGroup N₁] [inst_4 : Algebra R A] [inst_5 : Module R N₁]
  [inst_6 : Module A N₁] [IsScalarTower R A N₁] [inst_8 : Module R M₂]
  ⦃Q₁ Q₂ : QuadraticMap A (TensorProduct R A M₂) N₁⦄, (∀ (m : M₂), Q₁ (1 ⊗ₜ[R] m) = Q₂ (1 ⊗ₜ[R] m)) → Q₁ = Q₂

If two quadratic maps from A ⊗[R] M₂ agree on elements of the form 1 ⊗ m, they are equal.

In other words, if a base change exists for a quadratic map, it is unique.

Note that unlike QuadraticForm.baseChange, this does not need Invertible (2 : R).

theorem baseChange_ext_iff E0 #

∀ {R : Type uR} {A : Type uA} {M₂ : Type uM₂} {N₁ : Type uN₁} [inst : CommRing R] [inst_1 : CommRing A]
  [inst_2 : AddCommGroup M₂] [inst_3 : AddCommGroup N₁] [inst_4 : Algebra R A] [inst_5 : Module R N₁]
  [inst_6 : Module A N₁] [IsScalarTower R A N₁] [inst_8 : Module R M₂]
  {Q₁ Q₂ : QuadraticMap A (TensorProduct R A M₂) N₁}, Q₁ = Q₂ ↔ ∀ (m : M₂), Q₁ (1 ⊗ₜ[R] m) = Q₂ (1 ⊗ₜ[R] m)