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.Multilinear.Pi

13 declarations. Mathlib docs · Source

Interactions between (dependent) functions and multilinear maps

Main definitions

  • MultilinearMap.pi_ext, a multilinear version of LinearMap.pi_ext

  • MultilinearMap.piFamily, which satisfies piFamily f x p = f p (fun i => x i (p i)).

    This is useful because all the intermediate results are bundled:

    • MultilinearMap.piFamily f is a MultilinearMap operating on functions x.
    • MultilinearMap.piFamilyₗ is a LinearMap, linear in the family of multilinear maps f.

theorem MultilinearMap.pi_ext E3 #

∀ {ι : Type uι} {κ : ι → Type uκ} {R : Type uR} {S : Type uS} {M : (i : ι) → κ i → Type uM} {N : Type uN}
  [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} [inst_2 : (i : ι) → (k : κ i) → AddCommMonoid (M i k)]
  [inst_3 : AddCommMonoid N] [inst_4 : (i : ι) → (k : κ i) → Module R (M i k)] [inst_5 : Module S N] [Finite ι]
  [∀ (i : ι), Finite (κ i)] [inst_8 : (i : ι) → DecidableEq (κ i)] ⦃f g : (Π (i : ι), (j : κ i) → M i j) →ₘₛₗ[σ] N⦄,
  (∀ (p : (i : ι) → κ i),
      (f.compLinearMap fun i ↦ LinearMap.single R (M i) (p i)) =
        g.compLinearMap fun i ↦ LinearMap.single R (M i) (p i)) →
    f = g

Two multilinear maps from finite families are equal if they agree on the generators.

This is a multilinear version of LinearMap.pi_ext.

theorem MultilinearMap.pi_ext_iff E0 #

∀ {ι : Type uι} {κ : ι → Type uκ} {R : Type uR} {S : Type uS} {M : (i : ι) → κ i → Type uM} {N : Type uN}
  [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} [inst_2 : (i : ι) → (k : κ i) → AddCommMonoid (M i k)]
  [inst_3 : AddCommMonoid N] [inst_4 : (i : ι) → (k : κ i) → Module R (M i k)] [inst_5 : Module S N] [Finite ι]
  [∀ (i : ι), Finite (κ i)] [inst_8 : (i : ι) → DecidableEq (κ i)] {f g : (Π (i : ι), (j : κ i) → M i j) →ₘₛₗ[σ] N},
  f = g ↔
    ∀ (p : (i : ι) → κ i),
      (f.compLinearMap fun i ↦ LinearMap.single R (M i) (p i)) = g.compLinearMap fun i ↦ LinearMap.single R (M i) (p i)

def MultilinearMap.piFamily E3 #

{ι : Type uι} →
  {κ : ι → Type uκ} →
    {R : Type uR} →
      {S : Type uS} →
        {M : (i : ι) → κ i → Type uM} →
          {N : ((i : ι) → κ i) → Type uN} →
            [inst : Semiring R] →
              [inst_1 : Semiring S] →
                {σ : R →+* S} →
                  [inst_2 : (i : ι) → (k : κ i) → AddCommMonoid (M i k)] →
                    [inst_3 : (p : (i : ι) → κ i) → AddCommMonoid (N p)] →
                      [inst_4 : (i : ι) → (k : κ i) → Module R (M i k)] →
                        [inst_5 : (p : (i : ι) → κ i) → Module S (N p)] →
                          ((p : (i : ι) → κ i) → (Π (i : ι), M i (p i)) →ₘₛₗ[σ] N p) →
                            (Π (i : ι), (j : κ i) → M i j) →ₘₛₗ[σ] (t : (i : ι) → κ i) → N t

Given a family of indices κ and a multilinear map f p for each way p to select one index from each family, piFamily f maps a family of functions (one for each domain κ i) into a function from each selection of indices (with domain Π i, κ i).

theorem MultilinearMap.piFamily_apply E0 #

∀ {ι : Type uι} {κ : ι → Type uκ} {R : Type uR} {S : Type uS} {M : (i : ι) → κ i → Type uM}
  {N : ((i : ι) → κ i) → Type uN} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S}
  [inst_2 : (i : ι) → (k : κ i) → AddCommMonoid (M i k)] [inst_3 : (p : (i : ι) → κ i) → AddCommMonoid (N p)]
  [inst_4 : (i : ι) → (k : κ i) → Module R (M i k)] [inst_5 : (p : (i : ι) → κ i) → Module S (N p)]
  (f : (p : (i : ι) → κ i) → (Π (i : ι), M i (p i)) →ₘₛₗ[σ] N p) (x : (i : ι) → (j : κ i) → M i j) (p : (i : ι) → κ i),
  (MultilinearMap.piFamily f) x p = (f p) fun i ↦ x i (p i)

theorem MultilinearMap.piFamily_single E0 #

∀ {ι : Type uι} {κ : ι → Type uκ} {R : Type uR} {S : Type uS} {M : (i : ι) → κ i → Type uM}
  {N : ((i : ι) → κ i) → Type uN} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S}
  [inst_2 : (i : ι) → (k : κ i) → AddCommMonoid (M i k)] [inst_3 : (p : (i : ι) → κ i) → AddCommMonoid (N p)]
  [inst_4 : (i : ι) → (k : κ i) → Module R (M i k)] [inst_5 : (p : (i : ι) → κ i) → Module S (N p)] [inst_6 : Fintype ι]
  [inst_7 : (i : ι) → DecidableEq (κ i)] (f : (p : (i : ι) → κ i) → (Π (i : ι), M i (p i)) →ₘₛₗ[σ] N p)
  (p : (i : ι) → κ i) (m : (i : ι) → M i (p i)),
  ((MultilinearMap.piFamily f) fun i ↦ Pi.single (p i) (m i)) = Pi.single p ((f p) m)

When applied to a family of finitely-supported functions each supported on a single element, piFamily is itself supported on a single element, with value equal to the map f applied at that point.

theorem MultilinearMap.piFamily_single_left_apply E0 #

∀ {ι : Type uι} {κ : ι → Type uκ} {R : Type uR} {S : Type uS} {M : (i : ι) → κ i → Type uM}
  {N : ((i : ι) → κ i) → Type uN} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S}
  [inst_2 : (i : ι) → (k : κ i) → AddCommMonoid (M i k)] [inst_3 : (p : (i : ι) → κ i) → AddCommMonoid (N p)]
  [inst_4 : (i : ι) → (k : κ i) → Module R (M i k)] [inst_5 : (p : (i : ι) → κ i) → Module S (N p)] [inst_6 : Fintype ι]
  [inst_7 : (i : ι) → DecidableEq (κ i)] (p : (i : ι) → κ i) (f : (Π (i : ι), M i (p i)) →ₘₛₗ[σ] N p)
  (x : (i : ι) → (j : κ i) → M i j), (MultilinearMap.piFamily (Pi.single p f)) x = Pi.single p (f fun i ↦ x i (p i))

When only one member of the family of multilinear maps is nonzero, the result consists only of the component from that member.

theorem MultilinearMap.piFamily_single_left E1 #

∀ {ι : Type uι} {κ : ι → Type uκ} {R : Type uR} {S : Type uS} {M : (i : ι) → κ i → Type uM}
  {N : ((i : ι) → κ i) → Type uN} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S}
  [inst_2 : (i : ι) → (k : κ i) → AddCommMonoid (M i k)] [inst_3 : (p : (i : ι) → κ i) → AddCommMonoid (N p)]
  [inst_4 : (i : ι) → (k : κ i) → Module R (M i k)] [inst_5 : (p : (i : ι) → κ i) → Module S (N p)] [inst_6 : Fintype ι]
  [inst_7 : (i : ι) → DecidableEq (κ i)] (p : (i : ι) → κ i) (f : (Π (i : ι), M i (p i)) →ₘₛₗ[σ] N p),
  MultilinearMap.piFamily (Pi.single p f) =
    (LinearMap.single S N p).compMultilinearMap (f.compLinearMap fun i ↦ LinearMap.proj (p i))

theorem MultilinearMap.piFamily_compLinearMap_lsingle E0 #

∀ {ι : Type uι} {κ : ι → Type uκ} {R : Type uR} {S : Type uS} {M : (i : ι) → κ i → Type uM}
  {N : ((i : ι) → κ i) → Type uN} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S}
  [inst_2 : (i : ι) → (k : κ i) → AddCommMonoid (M i k)] [inst_3 : (p : (i : ι) → κ i) → AddCommMonoid (N p)]
  [inst_4 : (i : ι) → (k : κ i) → Module R (M i k)] [inst_5 : (p : (i : ι) → κ i) → Module S (N p)] [inst_6 : Fintype ι]
  [inst_7 : (i : ι) → DecidableEq (κ i)] (f : (p : (i : ι) → κ i) → (Π (i : ι), M i (p i)) →ₘₛₗ[σ] N p)
  (p : (i : ι) → κ i),
  ((MultilinearMap.piFamily f).compLinearMap fun i ↦ LinearMap.single R (M i) (p i)) =
    (LinearMap.single S N p).compMultilinearMap (f p)

theorem MultilinearMap.piFamily_zero E0 #

∀ {ι : Type uι} {κ : ι → Type uκ} {R : Type uR} {S : Type uS} {M : (i : ι) → κ i → Type uM}
  {N : ((i : ι) → κ i) → Type uN} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S}
  [inst_2 : (i : ι) → (k : κ i) → AddCommMonoid (M i k)] [inst_3 : (p : (i : ι) → κ i) → AddCommMonoid (N p)]
  [inst_4 : (i : ι) → (k : κ i) → Module R (M i k)] [inst_5 : (p : (i : ι) → κ i) → Module S (N p)],
  MultilinearMap.piFamily 0 = 0

theorem MultilinearMap.piFamily_add E0 #

∀ {ι : Type uι} {κ : ι → Type uκ} {R : Type uR} {S : Type uS} {M : (i : ι) → κ i → Type uM}
  {N : ((i : ι) → κ i) → Type uN} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S}
  [inst_2 : (i : ι) → (k : κ i) → AddCommMonoid (M i k)] [inst_3 : (p : (i : ι) → κ i) → AddCommMonoid (N p)]
  [inst_4 : (i : ι) → (k : κ i) → Module R (M i k)] [inst_5 : (p : (i : ι) → κ i) → Module S (N p)]
  (f g : (p : (i : ι) → κ i) → (Π (i : ι), M i (p i)) →ₘₛₗ[σ] N p),
  MultilinearMap.piFamily (f + g) = MultilinearMap.piFamily f + MultilinearMap.piFamily g

theorem MultilinearMap.piFamily_smul E0 #

∀ {ι : Type uι} {κ : ι → Type uκ} {S' : Type uS'} {R : Type uR} {S : Type uS} {M : (i : ι) → κ i → Type uM}
  {N : ((i : ι) → κ i) → Type uN} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S}
  [inst_2 : (i : ι) → (k : κ i) → AddCommMonoid (M i k)] [inst_3 : (p : (i : ι) → κ i) → AddCommMonoid (N p)]
  [inst_4 : (i : ι) → (k : κ i) → Module R (M i k)] [inst_5 : (p : (i : ι) → κ i) → Module S (N p)] [inst_6 : Monoid S']
  [inst_7 : (p : (i : ι) → κ i) → DistribMulAction S' (N p)] [inst_8 : ∀ (p : (i : ι) → κ i), SMulCommClass S S' (N p)]
  (s : S') (f : (p : (i : ι) → κ i) → (Π (i : ι), M i (p i)) →ₘₛₗ[σ] N p),
  MultilinearMap.piFamily (s • f) = s • MultilinearMap.piFamily f

def MultilinearMap.piFamilyₗ E3 #

{ι : Type uι} →
  {κ : ι → Type uκ} →
    {R : Type uR} →
      {S : Type uS} →
        {M : (i : ι) → κ i → Type uM} →
          {N : ((i : ι) → κ i) → Type uN} →
            [inst : Semiring R] →
              [inst_1 : CommSemiring S] →
                {σ : R →+* S} →
                  [inst_2 : (i : ι) → (k : κ i) → AddCommMonoid (M i k)] →
                    [inst_3 : (p : (i : ι) → κ i) → AddCommMonoid (N p)] →
                      [inst_4 : (i : ι) → (k : κ i) → Module R (M i k)] →
                        [inst_5 : (p : (i : ι) → κ i) → Module S (N p)] →
                          ((p : (i : ι) → κ i) → (Π (i : ι), M i (p i)) →ₘₛₗ[σ] N p) →ₗ[S]
                            (Π (i : ι), (j : κ i) → M i j) →ₘₛₗ[σ] (t : (i : ι) → κ i) → N t

MultilinearMap.piFamily as a linear map.

theorem MultilinearMap.piFamilyₗ_apply E0 #

∀ {ι : Type uι} {κ : ι → Type uκ} {R : Type uR} {S : Type uS} {M : (i : ι) → κ i → Type uM}
  {N : ((i : ι) → κ i) → Type uN} [inst : Semiring R] [inst_1 : CommSemiring S] {σ : R →+* S}
  [inst_2 : (i : ι) → (k : κ i) → AddCommMonoid (M i k)] [inst_3 : (p : (i : ι) → κ i) → AddCommMonoid (N p)]
  [inst_4 : (i : ι) → (k : κ i) → Module R (M i k)] [inst_5 : (p : (i : ι) → κ i) → Module S (N p)]
  (f : (p : (i : ι) → κ i) → (Π (i : ι), M i (p i)) →ₘₛₗ[σ] N p), MultilinearMap.piFamilyₗ f = MultilinearMap.piFamily f