Documentation

Physlib.Relativity.Tensors.TensorSpecies.DualBasis

Species whose bases at dual colors are dual bases #

i. Overview #

This file defines HasContrDualBases: species whose basis at S.τ c is dual to the basis at c under the pairing S.contr c.

A matching e : basisIdx (S.τ c) ≃ basisIdx c satisfies the δ law (IsContrDualMatching) if S.contr c (b c x₁ ⊗ₜ b (S.τ c) x₂) = if x₁ = e x₂ then 1 else 0. The class asks for one such matching at every color, so the label types need only be in bijection.

Over a nontrivial ring the matching is unique (IsContrDualMatching.unique). Hence contrDualIdxEquiv, although picked by choice, is the only matching, so nothing depends on the choice. A concrete species identifies it through contrDualIdxEquiv_eq_of_isContrDualMatching, and the double-dual law contrDualIdxEquiv_tau is a theorem.

The contraction functionals are the dual basis of b c (contr_tmul_basis_eq_dualBasis). Contracted basis vectors have δ coefficients (Pure.contrPCoeff_basisVector), and components of a contraction are single sums (contrT_basis_repr_apply_eq_sum_dual).

ii. Key results #

iii. Table of contents #

iv. References #

There are no known references for the material in this module.

A. Matchings satisfying the δ law #

def TensorSpecies.IsContrDualMatching {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} (S : TensorSpecies k C G V basisIdx rep b) (c : C) (e : basisIdx (S.τ c) ≃ basisIdx c) :

A matching e of the basis labels at S.τ c with those at c satisfies the δ law: contracting a basis vector at c with one at S.τ c gives 1 if e matches their labels and 0 otherwise.

Equations
Instances For
    theorem TensorSpecies.IsContrDualMatching.unique {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} [Nontrivial k] {S : TensorSpecies k C G V basisIdx rep b} {c : C} {e e' : basisIdx (S.τ c) ≃ basisIdx c} (he : S.IsContrDualMatching c e) (he' : S.IsContrDualMatching c e') :
    e = e'

    Over a nontrivial ring the δ law determines the matching: the label matched with x₂ is the one whose basis vector pairs with b (S.τ c) x₂ to 1.

    B. The class #

    class TensorSpecies.HasContrDualBases {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} (S : TensorSpecies k C G V basisIdx rep b) :

    A tensor species whose basis at S.τ c is dual to its basis at c under the pairing S.contr c: for every color some matching of the labels satisfies the δ law.

    • exists_matching (c : C) : ∃ (e : basisIdx (S.τ c) ≃ basisIdx c), S.IsContrDualMatching c e

      At every color, some matching of the labels at S.τ c with those at c satisfies the δ law.

    Instances

      C. The matching #

      noncomputable def TensorSpecies.HasContrDualBases.contrDualIdxEquiv {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} (S : TensorSpecies k C G V basisIdx rep b) [S.HasContrDualBases] (c : C) :
      basisIdx (S.τ c) ≃ basisIdx c

      A matching of the basis labels at S.τ c with those at c satisfying the δ law, chosen by Classical.choose. Over a nontrivial ring it is the only one (contrDualIdxEquiv_eq_of_isContrDualMatching).

      Equations
      Instances For
        theorem TensorSpecies.HasContrDualBases.contr_basis_eq_ite {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} [S.HasContrDualBases] (c : C) (x₁ : basisIdx c) (x₂ : basisIdx (S.τ c)) :
        (S.contr c) ((b c) x₁ ⊗ₜ[k] (b (S.τ c)) x₂) = if x₁ = (contrDualIdxEquiv S c) x₂ then 1 else 0

        The δ law for contrDualIdxEquiv.

        theorem TensorSpecies.HasContrDualBases.contrDualIdxEquiv_eq_of_isContrDualMatching {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} [S.HasContrDualBases] [Nontrivial k] {c : C} {e : basisIdx (S.τ c) ≃ basisIdx c} (he : S.IsContrDualMatching c e) :

        Any matching satisfying the δ law is contrDualIdxEquiv. This is how a concrete species identifies its matching.

        noncomputable def TensorSpecies.HasContrDualBases.dualIdxEquiv {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} [S.HasContrDualBases] {c1 c2 : C} (h : S.τ c1 = c2) :
        basisIdx c1 ≃ basisIdx c2

        The equivalence between labels of dual indices: a label at c1 carried across the variance dual by contrDualIdxEquiv, then along h.

        Equations
        Instances For
          @[simp]
          theorem TensorSpecies.HasContrDualBases.dualIdxEquiv_apply {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} [S.HasContrDualBases] {c1 c2 : C} (h : S.τ c1 = c2) (x : basisIdx c1) :

          D. The double dual #

          theorem TensorSpecies.HasContrDualBases.contrDualIdxEquiv_tau {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} [S.HasContrDualBases] [Nontrivial k] (c : C) (x : basisIdx (S.τ (S.τ c))) :

          The matching at S.τ c is the inverse of the one at c, once S.τ (S.τ c) is identified with c by S.τ_τ_apply. The inverse matching satisfies the δ law at S.τ c by contr_tmul_symm, so uniqueness identifies the two.

          theorem TensorSpecies.HasContrDualBases.dualIdxEquiv_symm {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} [S.HasContrDualBases] [Nontrivial k] {c1 c2 : C} (h : S.τ c1 = c2) (h' : S.τ c2 = c1) :

          The inverse of dualIdxEquiv from c1 to c2 is dualIdxEquiv from c2 to c1.

          E. The dual basis #

          theorem TensorSpecies.HasContrDualBases.contr_tmul_basis_eq_dualBasis {k : Type} [CommRing k] {C G : Type} [Group G] {V : C → Type} [(c : C) → AddCommGroup (V c)] [(c : C) → Module k (V c)] {basisIdx : C → Type} [(c : C) → Fintype (basisIdx c)] [(c : C) → DecidableEq (basisIdx c)] {rep : (c : C) → Representation k G (V c)} {b : (c : C) → Module.Basis (basisIdx c) k (V c)} {S : TensorSpecies k C G V basisIdx rep b} [S.HasContrDualBases] (c : C) (x : basisIdx (S.τ c)) (v : V c) :
          (S.contr c) (v ⊗ₜ[k] (b (S.τ c)) x) = ((b c).dualBasis ((contrDualIdxEquiv S c) x)) v

          The functional v ↦ S.contr c (v ⊗ₜ b (S.τ c) x) is the element of (b c).dualBasis at the label matched with x.