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.Alternating.DomCoprod

13 declarations and 3 deprecated aliases. Mathlib docs · Source

Exterior product of alternating maps

In this file we define AlternatingMap.domCoprod to be the exterior product of two alternating maps, taking values in the tensor product of the codomains of the original maps.

abbrev Equiv.Perm.ModSumCongr E1 #

Type u_7 → Type u_8 → Type (max u_7 u_8)

Elements which are considered equivalent if they differ only by swaps within α or β

def AlternatingMap.domCoprod.summand E1 #

{ιa : Type u_1} →
  {ιb : Type u_2} →
    [Fintype ιa] →
      [Fintype ιb] →
        {R' : Type u_3} →
          {Mᵢ : Type u_4} →
            {N₁ : Type u_5} →
              {N₂ : Type u_6} →
                [inst : CommSemiring R'] →
                  [inst_1 : AddCommGroup N₁] →
                    [inst_2 : Module R' N₁] →
                      [inst_3 : AddCommGroup N₂] →
                        [inst_4 : Module R' N₂] →
                          [inst_5 : AddCommMonoid Mᵢ] →
                            [inst_6 : Module R' Mᵢ] →
                              [DecidableEq ιa] →
                                [DecidableEq ιb] →
                                  Mᵢ [⋀^ιa]→ₗ[R'] N₁ →
                                    Mᵢ [⋀^ιb]→ₗ[R'] N₂ →
                                      Equiv.Perm.ModSumCongr ιa ιb → (ιa ⊕ ιb → Mᵢ) →ₘₗ[R'] TensorProduct R' N₁ N₂

summand used in AlternatingMap.domCoprod

theorem AlternatingMap.domCoprod.summand_mk'' E1 #

∀ {ιa : Type u_1} {ιb : Type u_2} [inst : Fintype ιa] [inst_1 : Fintype ιb] {R' : Type u_3} {Mᵢ : Type u_4}
  {N₁ : Type u_5} {N₂ : Type u_6} [inst_2 : CommSemiring R'] [inst_3 : AddCommGroup N₁] [inst_4 : Module R' N₁]
  [inst_5 : AddCommGroup N₂] [inst_6 : Module R' N₂] [inst_7 : AddCommMonoid Mᵢ] [inst_8 : Module R' Mᵢ]
  [inst_9 : DecidableEq ιa] [inst_10 : DecidableEq ιb] (a : Mᵢ [⋀^ιa]→ₗ[R'] N₁) (b : Mᵢ [⋀^ιb]→ₗ[R'] N₂)
  (σ : Equiv.Perm (ιa ⊕ ιb)),
  AlternatingMap.domCoprod.summand a b (Quotient.mk'' σ) =
    Equiv.Perm.sign σ • MultilinearMap.domDomCongr σ ((↑a).domCoprod ↑b)

theorem AlternatingMap.domCoprod.summand_add_swap_smul_eq_zero E1 #

∀ {ιa : Type u_1} {ιb : Type u_2} [inst : Fintype ιa] [inst_1 : Fintype ιb] {R' : Type u_3} {Mᵢ : Type u_4}
  {N₁ : Type u_5} {N₂ : Type u_6} [inst_2 : CommSemiring R'] [inst_3 : AddCommGroup N₁] [inst_4 : Module R' N₁]
  [inst_5 : AddCommGroup N₂] [inst_6 : Module R' N₂] [inst_7 : AddCommMonoid Mᵢ] [inst_8 : Module R' Mᵢ]
  [inst_9 : DecidableEq ιa] [inst_10 : DecidableEq ιb] (a : Mᵢ [⋀^ιa]→ₗ[R'] N₁) (b : Mᵢ [⋀^ιb]→ₗ[R'] N₂)
  (σ : Equiv.Perm.ModSumCongr ιa ιb) {v : ιa ⊕ ιb → Mᵢ} {i j : ιa ⊕ ιb},
  v i = v j →
    i ≠ j →
      (AlternatingMap.domCoprod.summand a b σ) v + (AlternatingMap.domCoprod.summand a b (Equiv.swap i j • σ)) v = 0

Swapping elements in σ with equal values in v results in an addition that cancels

theorem AlternatingMap.domCoprod.summand_eq_zero_of_smul_invariant E1 #

∀ {ιa : Type u_1} {ιb : Type u_2} [inst : Fintype ιa] [inst_1 : Fintype ιb] {R' : Type u_3} {Mᵢ : Type u_4}
  {N₁ : Type u_5} {N₂ : Type u_6} [inst_2 : CommSemiring R'] [inst_3 : AddCommGroup N₁] [inst_4 : Module R' N₁]
  [inst_5 : AddCommGroup N₂] [inst_6 : Module R' N₂] [inst_7 : AddCommMonoid Mᵢ] [inst_8 : Module R' Mᵢ]
  [inst_9 : DecidableEq ιa] [inst_10 : DecidableEq ιb] (a : Mᵢ [⋀^ιa]→ₗ[R'] N₁) (b : Mᵢ [⋀^ιb]→ₗ[R'] N₂)
  (σ : Equiv.Perm.ModSumCongr ιa ιb) {v : ιa ⊕ ιb → Mᵢ} {i j : ιa ⊕ ιb},
  v i = v j → i ≠ j → Equiv.swap i j • σ = σ → (AlternatingMap.domCoprod.summand a b σ) v = 0

Swapping elements in σ with equal values in v result in zero if the swap has no effect on the quotient.

def AlternatingMap.domCoprod E1 #

{ιa : Type u_1} →
  {ιb : Type u_2} →
    [Fintype ιa] →
      [Fintype ιb] →
        {R' : Type u_3} →
          {Mᵢ : Type u_4} →
            {N₁ : Type u_5} →
              {N₂ : Type u_6} →
                [inst : CommSemiring R'] →
                  [inst_1 : AddCommGroup N₁] →
                    [inst_2 : Module R' N₁] →
                      [inst_3 : AddCommGroup N₂] →
                        [inst_4 : Module R' N₂] →
                          [inst_5 : AddCommMonoid Mᵢ] →
                            [inst_6 : Module R' Mᵢ] →
                              [DecidableEq ιa] →
                                [DecidableEq ιb] →
                                  Mᵢ [⋀^ιa]→ₗ[R'] N₁ → Mᵢ [⋀^ιb]→ₗ[R'] N₂ → Mᵢ [⋀^ιa ⊕ ιb]→ₗ[R'] TensorProduct R' N₁ N₂

Like MultilinearMap.domCoprod, but ensures the result is also alternating.

Note that this is usually defined (for instance, as used in Proposition 22.24 in [Gallier2011Notes]) over integer indices ιa = Fin n and ιb = Fin m, as $$ (f \wedge g)(u_1, \ldots, u_{m+n}) = \sum_{\operatorname{shuffle}(m, n)} \operatorname{sign}(\sigma) f(u_{\sigma(1)}, \ldots, u_{\sigma(m)}) g(u_{\sigma(m+1)}, \ldots, u_{\sigma(m+n)}), $$ where $\operatorname{shuffle}(m, n)$ consists of all permutations of $[1, m+n]$ such that $\sigma(1) < \cdots < \sigma(m)$ and $\sigma(m+1) < \cdots < \sigma(m+n)$.

Here, we generalize this by replacing:

  • the product in the sum with a tensor product
  • the filtering of $[1, m+n]$ to shuffles with an isomorphic quotient
  • the additions in the subscripts of $\sigma$ with an index of type Sum

The specialized version can be obtained by combining this definition with finSumFinEquiv and LinearMap.mul'.

theorem AlternatingMap.domCoprod_apply E0 #

∀ {ιa : Type u_1} {ιb : Type u_2} [inst : Fintype ιa] [inst_1 : Fintype ιb] {R' : Type u_3} {Mᵢ : Type u_4}
  {N₁ : Type u_5} {N₂ : Type u_6} [inst_2 : CommSemiring R'] [inst_3 : AddCommGroup N₁] [inst_4 : Module R' N₁]
  [inst_5 : AddCommGroup N₂] [inst_6 : Module R' N₂] [inst_7 : AddCommMonoid Mᵢ] [inst_8 : Module R' Mᵢ]
  [inst_9 : DecidableEq ιa] [inst_10 : DecidableEq ιb] (a : Mᵢ [⋀^ιa]→ₗ[R'] N₁) (b : Mᵢ [⋀^ιb]→ₗ[R'] N₂)
  (v : ιa ⊕ ιb → Mᵢ), (a.domCoprod b) v = (∑ σ, AlternatingMap.domCoprod.summand a b σ) v

theorem AlternatingMap.domCoprod_coe E0 #

∀ {ιa : Type u_1} {ιb : Type u_2} [inst : Fintype ιa] [inst_1 : Fintype ιb] {R' : Type u_3} {Mᵢ : Type u_4}
  {N₁ : Type u_5} {N₂ : Type u_6} [inst_2 : CommSemiring R'] [inst_3 : AddCommGroup N₁] [inst_4 : Module R' N₁]
  [inst_5 : AddCommGroup N₂] [inst_6 : Module R' N₂] [inst_7 : AddCommMonoid Mᵢ] [inst_8 : Module R' Mᵢ]
  [inst_9 : DecidableEq ιa] [inst_10 : DecidableEq ιb] (a : Mᵢ [⋀^ιa]→ₗ[R'] N₁) (b : Mᵢ [⋀^ιb]→ₗ[R'] N₂),
  ↑(a.domCoprod b) = ∑ σ, AlternatingMap.domCoprod.summand a b σ

def AlternatingMap.domCoprod' E1 #

{ιa : Type u_1} →
  {ιb : Type u_2} →
    [Fintype ιa] →
      [Fintype ιb] →
        {R' : Type u_3} →
          {Mᵢ : Type u_4} →
            {N₁ : Type u_5} →
              {N₂ : Type u_6} →
                [inst : CommSemiring R'] →
                  [inst_1 : AddCommGroup N₁] →
                    [inst_2 : Module R' N₁] →
                      [inst_3 : AddCommGroup N₂] →
                        [inst_4 : Module R' N₂] →
                          [inst_5 : AddCommMonoid Mᵢ] →
                            [inst_6 : Module R' Mᵢ] →
                              [DecidableEq ιa] →
                                [DecidableEq ιb] →
                                  TensorProduct R' (Mᵢ [⋀^ιa]→ₗ[R'] N₁) (Mᵢ [⋀^ιb]→ₗ[R'] N₂) →ₗ[R']
                                    Mᵢ [⋀^ιa ⊕ ιb]→ₗ[R'] TensorProduct R' N₁ N₂

A more bundled version of AlternatingMap.domCoprod that maps ((ι₁ → N) → N₁) ⊗ ((ι₂ → N) → N₂) to (ι₁ ⊕ ι₂ → N) → N₁ ⊗ N₂.

theorem AlternatingMap.domCoprod'_apply E0 #

∀ {ιa : Type u_1} {ιb : Type u_2} [inst : Fintype ιa] [inst_1 : Fintype ιb] {R' : Type u_3} {Mᵢ : Type u_4}
  {N₁ : Type u_5} {N₂ : Type u_6} [inst_2 : CommSemiring R'] [inst_3 : AddCommGroup N₁] [inst_4 : Module R' N₁]
  [inst_5 : AddCommGroup N₂] [inst_6 : Module R' N₂] [inst_7 : AddCommMonoid Mᵢ] [inst_8 : Module R' Mᵢ]
  [inst_9 : DecidableEq ιa] [inst_10 : DecidableEq ιb] (a : Mᵢ [⋀^ιa]→ₗ[R'] N₁) (b : Mᵢ [⋀^ιb]→ₗ[R'] N₂),
  AlternatingMap.domCoprod' (a ⊗ₜ[R'] b) = a.domCoprod b

theorem MultilinearMap.domCoprod_alternatization_coe E0 #

∀ {ιa : Type u_1} {ιb : Type u_2} [inst : Fintype ιa] [inst_1 : Fintype ιb] {R' : Type u_3} {Mᵢ : Type u_4}
  {N₁ : Type u_5} {N₂ : Type u_6} [inst_2 : CommSemiring R'] [inst_3 : AddCommGroup N₁] [inst_4 : Module R' N₁]
  [inst_5 : AddCommGroup N₂] [inst_6 : Module R' N₂] [inst_7 : AddCommMonoid Mᵢ] [inst_8 : Module R' Mᵢ]
  [inst_9 : DecidableEq ιa] [inst_10 : DecidableEq ιb] (a : (ιa → Mᵢ) →ₘₗ[R'] N₁) (b : (ιb → Mᵢ) →ₘₗ[R'] N₂),
  (↑(MultilinearMap.alternatization a)).domCoprod ↑(MultilinearMap.alternatization b) =
    ∑ σa,
      ∑ σb,
        Equiv.Perm.sign σa •
          Equiv.Perm.sign σb • (MultilinearMap.domDomCongr σa a).domCoprod (MultilinearMap.domDomCongr σb b)

A helper lemma for MultilinearMap.domCoprod_alternatization.

theorem MultilinearMap.domCoprod_alternatization E1 #

∀ {ιa : Type u_1} {ιb : Type u_2} [inst : Fintype ιa] [inst_1 : Fintype ιb] {R' : Type u_3} {Mᵢ : Type u_4}
  {N₁ : Type u_5} {N₂ : Type u_6} [inst_2 : CommSemiring R'] [inst_3 : AddCommGroup N₁] [inst_4 : Module R' N₁]
  [inst_5 : AddCommGroup N₂] [inst_6 : Module R' N₂] [inst_7 : AddCommMonoid Mᵢ] [inst_8 : Module R' Mᵢ]
  [inst_9 : DecidableEq ιa] [inst_10 : DecidableEq ιb] (a : (ιa → Mᵢ) →ₘₗ[R'] N₁) (b : (ιb → Mᵢ) →ₘₗ[R'] N₂),
  MultilinearMap.alternatization (a.domCoprod b) =
    (MultilinearMap.alternatization a).domCoprod (MultilinearMap.alternatization b)

Computing the MultilinearMap.alternatization of the MultilinearMap.domCoprod is the same as computing the AlternatingMap.domCoprod of the MultilinearMap.alternatizations.

theorem MultilinearMap.domCoprod_alternatization_eq E0 #

∀ {ιa : Type u_1} {ιb : Type u_2} [inst : Fintype ιa] [inst_1 : Fintype ιb] {R' : Type u_3} {Mᵢ : Type u_4}
  {N₁ : Type u_5} {N₂ : Type u_6} [inst_2 : CommSemiring R'] [inst_3 : AddCommGroup N₁] [inst_4 : Module R' N₁]
  [inst_5 : AddCommGroup N₂] [inst_6 : Module R' N₂] [inst_7 : AddCommMonoid Mᵢ] [inst_8 : Module R' Mᵢ]
  [inst_9 : DecidableEq ιa] [inst_10 : DecidableEq ιb] (a : Mᵢ [⋀^ιa]→ₗ[R'] N₁) (b : Mᵢ [⋀^ιb]→ₗ[R'] N₂),
  MultilinearMap.alternatization ((↑a).domCoprod ↑b) =
    ((Fintype.card ιa).factorial * (Fintype.card ιb).factorial) • a.domCoprod b

Taking the MultilinearMap.alternatization of the MultilinearMap.domCoprod of two AlternatingMaps gives a scaled version of the AlternatingMap.coprod of those maps.

Deprecated aliases

NameNew nameSince
MultilinearMap.domCoprod_alternizationMultilinearMap.domCoprod_alternatization2026-09-17
MultilinearMap.domCoprod_alternization_coeMultilinearMap.domCoprod_alternatization_coe2026-09-17
MultilinearMap.domCoprod_alternization_eqMultilinearMap.domCoprod_alternatization_eq2026-09-17