Documentation

Mathlib.LinearAlgebra.BilinearForm.Properties

Bilinear form #

This file defines various properties of bilinear forms, including reflexivity, symmetry, alternativity, adjoint, and non-degeneracy. For orthogonality, see LinearAlgebra/BilinearForm/Orthogonal.lean.

Notations #

Given any term B of type BilinForm, due to a coercion, can use the notation B x y to refer to the function field, ie. B x y = B.bilin x y.

In this file we use the following type variables:

References #

Tags #

Bilinear form,

Reflexivity, symmetry, and alternativity #

The proposition that a bilinear form is reflexive

Equations
Instances For
    theorem LinearMap.BilinForm.IsRefl.eq_zero {R : Type u_1} {M : Type u_2} [CommSemiring R] [AddCommMonoid M] [Module R M] {B : LinearMap.BilinForm R M} (H : LinearMap.BilinForm.IsRefl B) {x : M} {y : M} :
    (B x) y = 0(B y) x = 0
    theorem LinearMap.BilinForm.IsRefl.neg {R₁ : Type u_3} {M₁ : Type u_4} [CommRing R₁] [AddCommGroup M₁] [Module R₁ M₁] {B : LinearMap.BilinForm R₁ M₁} (hB : LinearMap.BilinForm.IsRefl B) :
    @[simp]

    The proposition that a bilinear form is symmetric

    Equations
    Instances For
      theorem LinearMap.BilinForm.IsSymm.eq {R : Type u_1} {M : Type u_2} [CommSemiring R] [AddCommMonoid M] [Module R M] {B : LinearMap.BilinForm R M} (H : LinearMap.BilinForm.IsSymm B) (x : M) (y : M) :
      (B x) y = (B y) x
      theorem LinearMap.BilinForm.IsSymm.sub {R₁ : Type u_3} {M₁ : Type u_4} [CommRing R₁] [AddCommGroup M₁] [Module R₁ M₁] {B₁ : LinearMap.BilinForm R₁ M₁} {B₂ : LinearMap.BilinForm R₁ M₁} (hB₁ : LinearMap.BilinForm.IsSymm B₁) (hB₂ : LinearMap.BilinForm.IsSymm B₂) :
      theorem LinearMap.BilinForm.IsSymm.neg {R₁ : Type u_3} {M₁ : Type u_4} [CommRing R₁] [AddCommGroup M₁] [Module R₁ M₁] {B : LinearMap.BilinForm R₁ M₁} (hB : LinearMap.BilinForm.IsSymm B) :

      The restriction of a symmetric bilinear form on a submodule is also symmetric.

      @[simp]
      theorem LinearMap.BilinForm.isSymm_iff_flip {R : Type u_1} {M : Type u_2} [CommSemiring R] [AddCommMonoid M] [Module R M] {B : LinearMap.BilinForm R M} :
      LinearMap.BilinForm.IsSymm B LinearMap.BilinForm.flipHom B = B

      The proposition that a bilinear form is alternating

      Equations
      Instances For
        theorem LinearMap.BilinForm.IsAlt.self_eq_zero {R : Type u_1} {M : Type u_2} [CommSemiring R] [AddCommMonoid M] [Module R M] {B : LinearMap.BilinForm R M} (H : LinearMap.BilinForm.IsAlt B) (x : M) :
        (B x) x = 0
        theorem LinearMap.BilinForm.IsAlt.neg_eq {R₁ : Type u_3} {M₁ : Type u_4} [CommRing R₁] [AddCommGroup M₁] [Module R₁ M₁] {B₁ : LinearMap.BilinForm R₁ M₁} (H : LinearMap.BilinForm.IsAlt B₁) (x : M₁) (y : M₁) :
        -(B₁ x) y = (B₁ y) x
        theorem LinearMap.BilinForm.IsAlt.isRefl {R₁ : Type u_3} {M₁ : Type u_4} [CommRing R₁] [AddCommGroup M₁] [Module R₁ M₁] {B₁ : LinearMap.BilinForm R₁ M₁} (H : LinearMap.BilinForm.IsAlt B₁) :
        theorem LinearMap.BilinForm.IsAlt.sub {R₁ : Type u_3} {M₁ : Type u_4} [CommRing R₁] [AddCommGroup M₁] [Module R₁ M₁] {B₁ : LinearMap.BilinForm R₁ M₁} {B₂ : LinearMap.BilinForm R₁ M₁} (hB₁ : LinearMap.BilinForm.IsAlt B₁) (hB₂ : LinearMap.BilinForm.IsAlt B₂) :
        theorem LinearMap.BilinForm.IsAlt.neg {R₁ : Type u_3} {M₁ : Type u_4} [CommRing R₁] [AddCommGroup M₁] [Module R₁ M₁] {B : LinearMap.BilinForm R₁ M₁} (hB : LinearMap.BilinForm.IsAlt B) :
        @[simp]
        theorem LinearMap.BilinForm.isAlt_neg {R₁ : Type u_3} {M₁ : Type u_4} [CommRing R₁] [AddCommGroup M₁] [Module R₁ M₁] {B : LinearMap.BilinForm R₁ M₁} :

        Linear adjoints #

        def LinearMap.BilinForm.IsAdjointPair {R : Type u_1} {M : Type u_2} [CommSemiring R] [AddCommMonoid M] [Module R M] (B : LinearMap.BilinForm R M) {M' : Type u_9} [AddCommMonoid M'] [Module R M'] (B' : LinearMap.BilinForm R M') (f : M →ₗ[R] M') (g : M' →ₗ[R] M) :

        Given a pair of modules equipped with bilinear forms, this is the condition for a pair of maps between them to be mutually adjoint.

        Equations
        Instances For
          theorem LinearMap.BilinForm.IsAdjointPair.eq {R : Type u_1} {M : Type u_2} [CommSemiring R] [AddCommMonoid M] [Module R M] {B : LinearMap.BilinForm R M} {M' : Type u_9} [AddCommMonoid M'] [Module R M'] {B' : LinearMap.BilinForm R M'} {f : M →ₗ[R] M'} {g : M' →ₗ[R] M} (h : LinearMap.BilinForm.IsAdjointPair B B' f g) {x : M} {y : M'} :
          (B' (f x)) y = (B x) (g y)
          theorem LinearMap.BilinForm.IsAdjointPair.add {R : Type u_1} {M : Type u_2} [CommSemiring R] [AddCommMonoid M] [Module R M] {B : LinearMap.BilinForm R M} {M' : Type u_9} [AddCommMonoid M'] [Module R M'] {B' : LinearMap.BilinForm R M'} {f : M →ₗ[R] M'} {f' : M →ₗ[R] M'} {g : M' →ₗ[R] M} {g' : M' →ₗ[R] M} (h : LinearMap.BilinForm.IsAdjointPair B B' f g) (h' : LinearMap.BilinForm.IsAdjointPair B B' f' g') :
          theorem LinearMap.BilinForm.IsAdjointPair.sub {R₁ : Type u_3} {M₁ : Type u_4} [CommRing R₁] [AddCommGroup M₁] [Module R₁ M₁] {B₁ : LinearMap.BilinForm R₁ M₁} {M₁' : Type u_10} [AddCommGroup M₁'] [Module R₁ M₁'] {B₁' : LinearMap.BilinForm R₁ M₁'} {f₁ : M₁ →ₗ[R₁] M₁'} {f₁' : M₁ →ₗ[R₁] M₁'} {g₁ : M₁' →ₗ[R₁] M₁} {g₁' : M₁' →ₗ[R₁] M₁} (h : LinearMap.BilinForm.IsAdjointPair B₁ B₁' f₁ g₁) (h' : LinearMap.BilinForm.IsAdjointPair B₁ B₁' f₁' g₁') :
          LinearMap.BilinForm.IsAdjointPair B₁ B₁' (f₁ - f₁') (g₁ - g₁')
          theorem LinearMap.BilinForm.IsAdjointPair.smul {R : Type u_1} {M : Type u_2} [CommSemiring R] [AddCommMonoid M] [Module R M] {B : LinearMap.BilinForm R M} {M' : Type u_9} [AddCommMonoid M'] [Module R M'] {B₂' : LinearMap.BilinForm R M'} {f₂ : M →ₗ[R] M'} {g₂ : M' →ₗ[R] M} (c : R) (h : LinearMap.BilinForm.IsAdjointPair B B₂' f₂ g₂) :
          LinearMap.BilinForm.IsAdjointPair B B₂' (c f₂) (c g₂)
          theorem LinearMap.BilinForm.IsAdjointPair.comp {R : Type u_1} {M : Type u_2} [CommSemiring R] [AddCommMonoid M] [Module R M] {B : LinearMap.BilinForm R M} {M' : Type u_9} [AddCommMonoid M'] [Module R M'] {B' : LinearMap.BilinForm R M'} {f : M →ₗ[R] M'} {g : M' →ₗ[R] M} {M'' : Type u_11} [AddCommMonoid M''] [Module R M''] (B'' : LinearMap.BilinForm R M'') {f' : M' →ₗ[R] M''} {g' : M'' →ₗ[R] M'} (h : LinearMap.BilinForm.IsAdjointPair B B' f g) (h' : LinearMap.BilinForm.IsAdjointPair B' B'' f' g') :
          LinearMap.BilinForm.IsAdjointPair B B'' (f' ∘ₗ f) (g ∘ₗ g')

          The condition for an endomorphism to be "self-adjoint" with respect to a pair of bilinear forms on the underlying module. In the case that these two forms are identical, this is the usual concept of self adjointness. In the case that one of the forms is the negation of the other, this is the usual concept of skew adjointness.

          Equations
          Instances For

            The set of pair-self-adjoint endomorphisms are a submodule of the type of all endomorphisms.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For

              An endomorphism of a module is self-adjoint with respect to a bilinear form if it serves as an adjoint for itself.

              Equations
              Instances For
                def LinearMap.BilinForm.IsSkewAdjoint {R₁ : Type u_3} {M₁ : Type u_4} [CommRing R₁] [AddCommGroup M₁] [Module R₁ M₁] (B₁ : LinearMap.BilinForm R₁ M₁) (f : Module.End R₁ M₁) :

                An endomorphism of a module is skew-adjoint with respect to a bilinear form if its negation serves as an adjoint.

                Equations
                Instances For
                  theorem LinearMap.BilinForm.isSkewAdjoint_iff_neg_self_adjoint {R₁ : Type u_3} {M₁ : Type u_4} [CommRing R₁] [AddCommGroup M₁] [Module R₁ M₁] (B₁ : LinearMap.BilinForm R₁ M₁) (f : Module.End R₁ M₁) :

                  The set of self-adjoint endomorphisms of a module with bilinear form is a submodule. (In fact it is a Jordan subalgebra.)

                  Equations
                  Instances For
                    def LinearMap.BilinForm.skewAdjointSubmodule {R₁ : Type u_3} {M₁ : Type u_4} [CommRing R₁] [AddCommGroup M₁] [Module R₁ M₁] (B₁ : LinearMap.BilinForm R₁ M₁) :
                    Submodule R₁ (Module.End R₁ M₁)

                    The set of skew-adjoint endomorphisms of a module with bilinear form is a submodule. (In fact it is a Lie subalgebra.)

                    Equations
                    Instances For
                      @[simp]

                      A nondegenerate bilinear form is a bilinear form such that the only element that is orthogonal to every other element is 0; i.e., for all nonzero m in M, there exists n in M with B m n ≠ 0.

                      Note that for general (neither symmetric nor antisymmetric) bilinear forms this definition has a chirality; in addition to this "left" nondegeneracy condition one could define a "right" nondegeneracy condition that in the situation described, B n m ≠ 0. This variant definition is not currently provided in mathlib. In finite dimension either definition implies the other.

                      Equations
                      Instances For

                        In a non-trivial module, zero is not non-degenerate.

                        A bilinear form is nondegenerate if and only if it has a trivial kernel.

                        theorem LinearMap.BilinForm.isAdjointPair_unique_of_nondegenerate {R₁ : Type u_3} {M₁ : Type u_4} [CommRing R₁] [AddCommGroup M₁] [Module R₁ M₁] (B : LinearMap.BilinForm R₁ M₁) (b : LinearMap.BilinForm.Nondegenerate B) (φ : M₁ →ₗ[R₁] M₁) (ψ₁ : M₁ →ₗ[R₁] M₁) (ψ₂ : M₁ →ₗ[R₁] M₁) (hψ₁ : LinearMap.BilinForm.IsAdjointPair B B ψ₁ φ) (hψ₂ : LinearMap.BilinForm.IsAdjointPair B B ψ₂ φ) :
                        ψ₁ = ψ₂

                        Given a nondegenerate bilinear form B on a finite-dimensional vector space, B.toDual is the linear equivalence between a vector space and its dual with the underlying linear map B.toLin.

                        Equations
                        Instances For
                          theorem LinearMap.BilinForm.toDual_def {V : Type u_5} {K : Type u_6} [Field K] [AddCommGroup V] [Module K V] [FiniteDimensional K V] {B : LinearMap.BilinForm K V} (b : LinearMap.SeparatingLeft B) {m : V} {n : V} :
                          ((LinearMap.BilinForm.toDual B b) m) n = (B m) n
                          noncomputable def LinearMap.BilinForm.dualBasis {V : Type u_5} {K : Type u_6} [Field K] [AddCommGroup V] [Module K V] {ι : Type u_10} [DecidableEq ι] [Finite ι] (B : LinearMap.BilinForm K V) (hB : LinearMap.BilinForm.Nondegenerate B) (b : Basis ι K V) :
                          Basis ι K V

                          The B-dual basis B.dualBasis hB b to a finite basis b satisfies B (B.dualBasis hB b i) (b j) = B (b i) (B.dualBasis hB b j) = if i = j then 1 else 0, where B is a nondegenerate (symmetric) bilinear form and b is a finite basis.

                          Equations
                          Instances For
                            @[simp]
                            theorem LinearMap.BilinForm.dualBasis_repr_apply {V : Type u_5} {K : Type u_6} [Field K] [AddCommGroup V] [Module K V] {ι : Type u_10} [DecidableEq ι] [Finite ι] (B : LinearMap.BilinForm K V) (hB : LinearMap.BilinForm.Nondegenerate B) (b : Basis ι K V) (x : V) (i : ι) :
                            ((LinearMap.BilinForm.dualBasis B hB b).repr x) i = (B x) (b i)
                            theorem LinearMap.BilinForm.apply_dualBasis_left {V : Type u_5} {K : Type u_6} [Field K] [AddCommGroup V] [Module K V] {ι : Type u_10} [DecidableEq ι] [Finite ι] (B : LinearMap.BilinForm K V) (hB : LinearMap.BilinForm.Nondegenerate B) (b : Basis ι K V) (i : ι) (j : ι) :
                            (B ((LinearMap.BilinForm.dualBasis B hB b) i)) (b j) = if j = i then 1 else 0
                            theorem LinearMap.BilinForm.apply_dualBasis_right {V : Type u_5} {K : Type u_6} [Field K] [AddCommGroup V] [Module K V] {ι : Type u_10} [DecidableEq ι] [Finite ι] (B : LinearMap.BilinForm K V) (hB : LinearMap.BilinForm.Nondegenerate B) (sym : LinearMap.BilinForm.IsSymm B) (b : Basis ι K V) (i : ι) (j : ι) :
                            (B (b i)) ((LinearMap.BilinForm.dualBasis B hB b) j) = if i = j then 1 else 0
                            noncomputable def LinearMap.BilinForm.symmCompOfNondegenerate {V : Type u_5} {K : Type u_6} [Field K] [AddCommGroup V] [Module K V] [FiniteDimensional K V] (B₁ : LinearMap.BilinForm K V) (B₂ : LinearMap.BilinForm K V) (b₂ : LinearMap.BilinForm.Nondegenerate B₂) :

                            Given bilinear forms B₁, B₂ where B₂ is nondegenerate, symmCompOfNondegenerate is the linear map B₂.toLin⁻¹ ∘ B₁.toLin.

                            Equations
                            Instances For
                              @[simp]
                              theorem LinearMap.BilinForm.symmCompOfNondegenerate_left_apply {V : Type u_5} {K : Type u_6} [Field K] [AddCommGroup V] [Module K V] [FiniteDimensional K V] (B₁ : LinearMap.BilinForm K V) {B₂ : LinearMap.BilinForm K V} (b₂ : LinearMap.BilinForm.Nondegenerate B₂) (v : V) (w : V) :
                              (B₂ ((LinearMap.BilinForm.symmCompOfNondegenerate B₁ B₂ b₂) w)) v = (B₁ w) v

                              Given the nondegenerate bilinear form B and the linear map φ, leftAdjointOfNondegenerate provides the left adjoint of φ with respect to B. The lemma proving this property is BilinForm.isAdjointPairLeftAdjointOfNondegenerate.

                              Equations
                              Instances For

                                Given the nondegenerate bilinear form B, the linear map φ has a unique left adjoint given by BilinForm.leftAdjointOfNondegenerate.