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

178 declarations and 10 deprecated aliases. Mathlib docs · Source

Multilinear maps

We define multilinear maps as maps from Π (i : ι), M i to N which are σ-semilinear in each coordinate. Here, M i and N are modules over rings R and S, respectively, σ is a ring homomorphism R →+* S and ι is an arbitrary type (although some statements will require it to be a fintype). This space, denoted by (Π i, M i) →ₘₛₗ[σ] N, inherits a module structure by pointwise addition and multiplication.

Main definitions

  • MultilinearMap σ M N ((Π i, M i) →ₘₛₗ[σ] N) is the space of σ-multisemilinear maps from (i : ι) → M i to N. Here σ is a RingHom from R to S and we recover plain multilinear maps by choosing σ to be RingHom.id R, in which case the space is denoted by (Π i, M i) →ₘₗ[R] N.
  • f.map_update_smul is the multiplicativity of the multilinear map f along each coordinate.
  • f.map_update_add is the additivity of the multilinear map f along each coordinate.
  • f.map_smul_univ expresses the multiplicativity of f over all coordinates at the same time, writing f (fun i => c i • m i) as (∏ i, σ (c i)) • f m.
  • f.map_add_univ expresses the additivity of f over all coordinates at the same time, writing f (m + m') as the sum over all subsets s of ι of f (s.piecewise m m').
  • f.map_sum expresses f (Σ_{j₁} g₁ j₁, ..., Σ_{jₙ} gₙ jₙ) as the sum of f (g₁ (r 1), ..., gₙ (r n)) where r ranges over all possible functions.

See Mathlib/LinearAlgebra/Multilinear/Curry.lean for the currying of multilinear maps.

Implementation notes

Expressing that a map is linear along the i-th coordinate when all other coordinates are fixed can be done in two (equivalent) different ways:

  • fixing a vector m : ∀ (j : ι - i), M j.val, and then choosing separately the i-th coordinate
  • fixing a vector m : ∀ j, M j, and then modifying its i-th coordinate

The second way is more artificial as the value of m at i is not relevant, but it has the advantage of avoiding subtype inclusion issues. This is the definition we use, based on Function.update that allows to change the value of m at i.

Note that the use of Function.update requires a DecidableEq ι term to appear somewhere in the statement of MultilinearMap.map_update_add' and MultilinearMap.map_update_smul'. Three possible choices are:

  1. Requiring DecidableEq ι as an argument to MultilinearMap (as we did originally).
  2. Using Classical.decEq ι in the statement of map_add' and map_smul'.
  3. Quantifying over all possible DecidableEq ι instances in the statement of map_add' and map_smul'.

Option 1 works fine, but puts unnecessary constraints on the user (the zero map certainly does not need decidability). Option 2 looks great at first, but in the common case when ι = Fin n it introduces non-defeq decidability instance diamonds within the context of proving map_update_add' and map_update_smul', of the form Fin.decidableEq n = Classical.decEq (Fin n). Option 3 of course does something similar, but of the form Fin.decidableEq n = _inst, which is much easier to clean up since _inst is a free variable and so the equality can just be substituted.

If {a // P a} is a subtype of ι and if we fix an element z of (i : {a // ¬ P a}) → M₁ i, then a multilinear map on M₁ defines a multilinear map on the restriction of M₁ to {a // P a}, by fixing the arguments out of {a // P a} equal to the values of z.

theorem MultilinearMap.compLinearMapₗ.congr_simp E1 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} {R₃ : Type u_3} [inst : Semiring R₁] [inst_1 : Semiring R₂] [inst_2 : CommSemiring R₃]
  {σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_3 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {ι : Type u_4}
  {M₁ : ι → Type u_5} {M₂ : ι → Type u_6} {N₃ : Type u_7} [inst_4 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_5 : (i : ι) → AddCommMonoid (M₂ i)] [inst_6 : AddCommMonoid N₃] [inst_7 : (i : ι) → Module R₁ (M₁ i)]
  [inst_8 : (i : ι) → Module R₂ (M₂ i)] [inst_9 : Module R₃ N₃] (f f_1 : (i : ι) → M₁ i →ₛₗ[σ₁₂] M₂ i),
  f = f_1 → MultilinearMap.compLinearMapₗ f = MultilinearMap.compLinearMapₗ f_1

theorem MultilinearMap.ofSubsingleton.congr_simp E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] (σ : R →+* S) {ι : Type u_4} (N : Type u_6)
  (N' : Type u_7) [inst_2 : AddCommMonoid N] [inst_3 : AddCommMonoid N'] [inst_4 : Module S N'] [inst_5 : Module R N]
  [inst_6 : Subsingleton ι] (i i_1 : ι),
  i = i_1 → MultilinearMap.ofSubsingleton σ N N' i = MultilinearMap.ofSubsingleton σ N N' i_1

theorem LinearMap.compMultilinearMapₗ.congr_simp E1 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} (S : Type u_5) [inst : Semiring R₁] [inst_1 : Semiring R₂] {σ₁₂ : R₁ →+* R₂}
  {ι : Type u_6} {M₁ : ι → Type u_7} {N₂ : Type u_9} {N₂' : Type u_10} [inst_2 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_3 : AddCommMonoid N₂] [inst_4 : AddCommMonoid N₂'] [inst_5 : (i : ι) → Module R₁ (M₁ i)] [inst_6 : Module R₂ N₂]
  [inst_7 : Module R₂ N₂'] [inst_8 : Semiring S] [inst_9 : Module S N₂] [inst_10 : SMulCommClass R₂ S N₂]
  [inst_11 : Module S N₂'] [inst_12 : SMulCommClass R₂ S N₂'] [inst_13 : LinearMap.CompatibleSMul N₂ N₂' S R₂]
  (g g_1 : N₂ →ₗ[R₂] N₂'), g = g_1 → LinearMap.compMultilinearMapₗ S g = LinearMap.compMultilinearMapₗ S g_1

theorem MultilinearMap.compLinearMap.congr_simp E1 #

∀ {R₁ : Type u_8} {R₂ : Type u_9} {R₃ : Type u_10} [inst : Semiring R₁] [inst_1 : Semiring R₂] [inst_2 : Semiring R₃]
  {σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_3 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {ι : Type u_12}
  {M₁ : ι → Type u_13} {M₂ : ι → Type u_14} {N₃ : Type u_17} [inst_4 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_5 : (i : ι) → AddCommMonoid (M₂ i)] [inst_6 : (i : ι) → Module R₁ (M₁ i)] [inst_7 : (i : ι) → Module R₂ (M₂ i)]
  [inst_8 : AddCommMonoid N₃] [inst_9 : Module R₃ N₃] (g g_1 : (Π (i : ι), M₂ i) →ₘₛₗ[σ₂₃] N₃),
  g = g_1 → ∀ (f f_1 : (i : ι) → M₁ i →ₛₗ[σ₁₂] M₂ i), f = f_1 → g.compLinearMap f = g_1.compLinearMap f_1

theorem MultilinearMap.mk.congr_simp E1 #

∀ {R : Type uR} {S : Type uS} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type uι} {M : ι → Type u}
  {N : Type v} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : AddCommMonoid N] [inst_4 : (i : ι) → Module R (M i)]
  [inst_5 : Module S N] (toFun toFun_1 : ((i : ι) → M i) → N) (e_toFun : toFun = toFun_1)
  (map_update_add' :
    ∀ [inst : DecidableEq ι] (m : (i : ι) → M i) (i : ι) (x y : M i),
      toFun (Function.update m i (x + y)) = toFun (Function.update m i x) + toFun (Function.update m i y))
  (map_update_smul' :
    ∀ [inst_6 : DecidableEq ι] (m : (i : ι) → M i) (i : ι) (c : R) (x : M i),
      toFun (Function.update m i (c • x)) = σ c • toFun (Function.update m i x)),
  { toFun := toFun, map_update_add' := map_update_add', map_update_smul' := map_update_smul' } =
    { toFun := toFun_1, map_update_add' := ⋯, map_update_smul' := ⋯ }

theorem LinearMap.compMultilinearMap.congr_simp E1 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} {R₃ : Type u_3} [inst : Semiring R₁] [inst_1 : Semiring R₂] [inst_2 : Semiring R₃]
  {σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_3 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {ι : Type u_6}
  {M₁ : ι → Type u_7} {N₂ : Type u_9} {N₃ : Type u_11} [inst_4 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_5 : AddCommMonoid N₂] [inst_6 : AddCommMonoid N₃] [inst_7 : (i : ι) → Module R₁ (M₁ i)] [inst_8 : Module R₂ N₂]
  [inst_9 : Module R₃ N₃] (g g_1 : N₂ →ₛₗ[σ₂₃] N₃),
  g = g_1 → ∀ (f f_1 : (Π (i : ι), M₁ i) →ₘₛₗ[σ₁₂] N₂), f = f_1 → g.compMultilinearMap f = g_1.compMultilinearMap f_1

theorem MultilinearMap.toLinearMap.congr_simp E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N] (f f_1 : (Π (i : ι), M i) →ₘₛₗ[σ] N),
  f = f_1 →
    ∀ {inst_6 : DecidableEq ι} [inst_7 : DecidableEq ι] (m m_1 : (i : ι) → M i),
      m = m_1 → ∀ (i : ι), f.toLinearMap m i = f_1.toLinearMap m_1 i

theorem MultilinearMap.compLinearMapMultilinear.congr_simp E1 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} {R₃ : Type u_3} [inst : Semiring R₁] [inst_1 : CommSemiring R₂]
  [inst_2 : CommSemiring R₃] {σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃}
  [inst_3 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {ι : Type u_4} {M₁ : ι → Type u_5} {M₂ : ι → Type u_6} {N₃ : Type u_8}
  [inst_4 : (i : ι) → AddCommMonoid (M₁ i)] [inst_5 : (i : ι) → AddCommMonoid (M₂ i)] [inst_6 : AddCommMonoid N₃]
  [inst_7 : (i : ι) → Module R₁ (M₁ i)] [inst_8 : (i : ι) → Module R₂ (M₂ i)] [inst_9 : Module R₃ N₃],
  MultilinearMap.compLinearMapMultilinear = MultilinearMap.compLinearMapMultilinear

def MultilinearMap.ctorIdx E1 #

{R : Type uR} →
  {S : Type uS} →
    {inst : Semiring R} →
      {inst_1 : Semiring S} →
        {σ : R →+* S} →
          {ι : Type uι} →
            {M : ι → Type u} →
              {N : Type v} →
                {inst_2 : (i : ι) → AddCommMonoid (M i)} →
                  {inst_3 : AddCommMonoid N} →
                    {inst_4 : (i : ι) → Module R (M i)} → {inst_5 : Module S N} → ((Π (a : ι), M a) →ₘₛₗ[σ] N) → ℕ

structure MultilinearMap E3 #

{R : Type uR} →
  {S : Type uS} →
    [inst : Semiring R] →
      [inst_1 : Semiring S] →
        (R →+* S) →
          {ι : Type uι} →
            (M : ι → Type u) →
              (N : Type v) →
                [inst_2 : (i : ι) → AddCommMonoid (M i)] →
                  [inst_3 : AddCommMonoid N] → [(i : ι) → Module R (M i)] → [Module S N] → Type (max (max u uι) v)

Multilinear maps from the R-module Π i, M i to the S-module N over a ring homomorphism σ : R →+* S.

ctor MultilinearMap.mk E0 #

{R : Type uR} →
  {S : Type uS} →
    [inst : Semiring R] →
      [inst_1 : Semiring S] →
        {σ : R →+* S} →
          {ι : Type uι} →
            {M : ι → Type u} →
              {N : Type v} →
                [inst_2 : (i : ι) → AddCommMonoid (M i)] →
                  [inst_3 : AddCommMonoid N] →
                    [inst_4 : (i : ι) → Module R (M i)] →
                      [inst_5 : Module S N] →
                        (toFun : ((i : ι) → M i) → N) →
                          (∀ [inst : DecidableEq ι] (m : (i : ι) → M i) (i : ι) (x y : M i),
                              toFun (Function.update m i (x + y)) =
                                toFun (Function.update m i x) + toFun (Function.update m i y)) →
                            (∀ [inst_6 : DecidableEq ι] (m : (i : ι) → M i) (i : ι) (c : R) (x : M i),
                                toFun (Function.update m i (c • x)) = σ c • toFun (Function.update m i x)) →
                              (Π (a : ι), M a) →ₘₛₗ[σ] N

abbrev MultilinearMap.toFun E1 #

{R : Type uR} →
  {S : Type uS} →
    [inst : Semiring R] →
      [inst_1 : Semiring S] →
        {σ : R →+* S} →
          {ι : Type uι} →
            {M : ι → Type u} →
              {N : Type v} →
                [inst_2 : (i : ι) → AddCommMonoid (M i)] →
                  [inst_3 : AddCommMonoid N] →
                    [inst_4 : (i : ι) → Module R (M i)] →
                      [inst_5 : Module S N] → ((Π (a : ι), M a) →ₘₛₗ[σ] N) → ((i : ι) → M i) → N

The underlying multivariate function of a multilinear map.

theorem MultilinearMap.map_update_add' E0 #

∀ {R : Type uR} {S : Type uS} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type uι} {M : ι → Type u}
  {N : Type v} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : AddCommMonoid N] [inst_4 : (i : ι) → Module R (M i)]
  [inst_5 : Module S N] (self : (Π (a : ι), M a) →ₘₛₗ[σ] N) [inst_6 : DecidableEq ι] (m : (i : ι) → M i) (i : ι)
  (x y : M i),
  self.toFun (Function.update m i (x + y)) = self.toFun (Function.update m i x) + self.toFun (Function.update m i y)

A multilinear map is additive in every argument.

theorem MultilinearMap.map_update_smul' E0 #

∀ {R : Type uR} {S : Type uS} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type uι} {M : ι → Type u}
  {N : Type v} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : AddCommMonoid N] [inst_4 : (i : ι) → Module R (M i)]
  [inst_5 : Module S N] (self : (Π (a : ι), M a) →ₘₛₗ[σ] N) [inst_6 : DecidableEq ι] (m : (i : ι) → M i) (i : ι) (c : R)
  (x : M i), self.toFun (Function.update m i (c • x)) = σ c • self.toFun (Function.update m i x)

A multilinear map is compatible with scalar multiplication in every argument.

def «term_→ₘₛₗ[_]_» E1 #

Lean.TrailingParserDescr

(Π i, M i) →ₘₛₗ[σ] N is the type of σ-multisemilinear maps from Π i, M i to N.

def «term_→ₘₗ[_]_» E1 #

Lean.TrailingParserDescr

(Π i, M i) →ₘₗ[R] N is the type of R-multilinear maps from Π i, M i to N.

def delabMultilinearMap E1 #

Lean.PrettyPrinter.Delaborator.Delab

Delaborator for MultilinearMap.

instance MultilinearMap.instFunLikeForall E0 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : Semiring S] →
        {σ : R →+* S} →
          {ι : Type u_4} →
            {M : ι → Type u_5} →
              {N : Type u_6} →
                [inst_2 : (i : ι) → AddCommMonoid (M i)] →
                  [inst_3 : (i : ι) → Module R (M i)] →
                    [inst_4 : AddCommMonoid N] →
                      [inst_5 : Module S N] → FunLike ((Π (i : ι), M i) →ₘₛₗ[σ] N) ((i : ι) → M i) N

def MultilinearMap.mk' E1 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : Semiring S] →
        {σ : R →+* S} →
          {ι : Type u_4} →
            {M : ι → Type u_5} →
              {N : Type u_6} →
                [inst_2 : (i : ι) → AddCommMonoid (M i)] →
                  [inst_3 : (i : ι) → Module R (M i)] →
                    [inst_4 : AddCommMonoid N] →
                      [inst_5 : Module S N] →
                        [inst_6 : DecidableEq ι] →
                          (f : ((i : ι) → M i) → N) →
                            autoParam
                                (∀ (m : (i : ι) → M i) (i : ι) (x y : M i),
                                  f (Function.update m i (x + y)) =
                                    f (Function.update m i x) + f (Function.update m i y))
                                MultilinearMap.mk'._auto_1 →
                              autoParam
                                  (∀ (m : (i : ι) → M i) (i : ι) (c : R) (x : M i),
                                    f (Function.update m i (c • x)) = σ c • f (Function.update m i x))
                                  MultilinearMap.mk'._auto_3 →
                                (Π (i : ι), M i) →ₘₛₗ[σ] N

Constructor for (Π i, M i) →ₘₛₗ[σ] N when the index type ι is already endowed with a DecidableEq instance.

theorem MultilinearMap.mk'_apply E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N] [inst_6 : DecidableEq ι] (f : ((i : ι) → M i) → N)
  (h₁ :
    autoParam
      (∀ (m : (i : ι) → M i) (i : ι) (x y : M i),
        f (Function.update m i (x + y)) = f (Function.update m i x) + f (Function.update m i y))
      MultilinearMap.mk'._auto_1)
  (h₂ :
    autoParam
      (∀ (m : (i : ι) → M i) (i : ι) (c : R) (x : M i),
        f (Function.update m i (c • x)) = σ c • f (Function.update m i x))
      MultilinearMap.mk'._auto_3)
  (a : (i : ι) → M i), (MultilinearMap.mk' f h₁ h₂) a = f a

theorem MultilinearMap.toFun_eq_coe E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N] (f : (Π (i : ι), M i) →ₘₛₗ[σ] N), f.toFun = ⇑f

theorem MultilinearMap.coe_mk E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N] (f : ((i : ι) → M i) → N)
  (h₁ :
    ∀ [inst : DecidableEq ι] (m : (i : ι) → M i) (i : ι) (x y : M i),
      f (Function.update m i (x + y)) = f (Function.update m i x) + f (Function.update m i y))
  (h₂ :
    ∀ [inst_6 : DecidableEq ι] (m : (i : ι) → M i) (i : ι) (c : R) (x : M i),
      f (Function.update m i (c • x)) = σ c • f (Function.update m i x)),
  ⇑{ toFun := f, map_update_add' := h₁, map_update_smul' := h₂ } = f

theorem MultilinearMap.congr_fun E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N] {f g : (Π (i : ι), M i) →ₘₛₗ[σ] N},
  f = g → ∀ (x : (i : ι) → M i), f x = g x

theorem MultilinearMap.congr_arg E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N] (f : (Π (i : ι), M i) →ₘₛₗ[σ] N) {x y : (i : ι) → M i},
  x = y → f x = f y

theorem MultilinearMap.coe_injective E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N], Function.Injective DFunLike.coe

theorem MultilinearMap.coe_inj E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N] {f g : (Π (i : ι), M i) →ₘₛₗ[σ] N}, ⇑f = ⇑g ↔ f = g

theorem MultilinearMap.ext E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N] {f f' : (Π (i : ι), M i) →ₘₛₗ[σ] N},
  (∀ (x : (i : ι) → M i), f x = f' x) → f = f'

theorem MultilinearMap.ext_iff E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N] {f f' : (Π (i : ι), M i) →ₘₛₗ[σ] N},
  f = f' ↔ ∀ (x : (i : ι) → M i), f x = f' x

theorem MultilinearMap.mk_coe E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N] (f : (Π (i : ι), M i) →ₘₛₗ[σ] N)
  (h₁ :
    ∀ [inst_6 : DecidableEq ι] (m : (i : ι) → M i) (i : ι) (x y : M i),
      f (Function.update m i (x + y)) = f (Function.update m i x) + f (Function.update m i y))
  (h₂ :
    ∀ [inst_6 : DecidableEq ι] (m : (i : ι) → M i) (i : ι) (c : R) (x : M i),
      f (Function.update m i (c • x)) = σ c • f (Function.update m i x)),
  { toFun := ⇑f, map_update_add' := h₁, map_update_smul' := h₂ } = f

theorem MultilinearMap.map_update_add E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N] (f : (Π (i : ι), M i) →ₘₛₗ[σ] N) [inst_6 : DecidableEq ι]
  (m : (i : ι) → M i) (i : ι) (x y : M i),
  f (Function.update m i (x + y)) = f (Function.update m i x) + f (Function.update m i y)

theorem MultilinearMap.map_update_smul E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N] (f : (Π (i : ι), M i) →ₘₛₗ[σ] N) [inst_6 : DecidableEq ι]
  (m : (i : ι) → M i) (i : ι) (c : R) (x : M i), f (Function.update m i (c • x)) = σ c • f (Function.update m i x)

Earlier, this name was used by what is now called MultilinearMap.map_update_smul_left.

theorem MultilinearMap.map_coord_zero E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N] (f : (Π (i : ι), M i) →ₘₛₗ[σ] N) {m : (i : ι) → M i} (i : ι),
  m i = 0 → f m = 0

theorem MultilinearMap.map_update_zero E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N] (f : (Π (i : ι), M i) →ₘₛₗ[σ] N) [inst_6 : DecidableEq ι]
  (m : (i : ι) → M i) (i : ι), f (Function.update m i 0) = 0

theorem MultilinearMap.map_zero E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N] (f : (Π (i : ι), M i) →ₘₛₗ[σ] N) [Nonempty ι], f 0 = 0

instance MultilinearMap.instAdd E0 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : Semiring S] →
        {σ : R →+* S} →
          {ι : Type u_4} →
            {M : ι → Type u_5} →
              {N : Type u_6} →
                [inst_2 : (i : ι) → AddCommMonoid (M i)] →
                  [inst_3 : (i : ι) → Module R (M i)] →
                    [inst_4 : AddCommMonoid N] → [inst_5 : Module S N] → Add ((Π (i : ι), M i) →ₘₛₗ[σ] N)

instance MultilinearMap.instIsAddApplyForall E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N], IsAddApply ((Π (i : ι), M i) →ₘₛₗ[σ] N)

instance MultilinearMap.instZero E0 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : Semiring S] →
        {σ : R →+* S} →
          {ι : Type u_4} →
            {M : ι → Type u_5} →
              {N : Type u_6} →
                [inst_2 : (i : ι) → AddCommMonoid (M i)] →
                  [inst_3 : (i : ι) → Module R (M i)] →
                    [inst_4 : AddCommMonoid N] → [inst_5 : Module S N] → Zero ((Π (i : ι), M i) →ₘₛₗ[σ] N)

instance MultilinearMap.instIsZeroApplyForall E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N], IsZeroApply ((Π (i : ι), M i) →ₘₛₗ[σ] N)

instance MultilinearMap.instInhabited E0 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : Semiring S] →
        {σ : R →+* S} →
          {ι : Type u_4} →
            {M : ι → Type u_5} →
              {N : Type u_6} →
                [inst_2 : (i : ι) → AddCommMonoid (M i)] →
                  [inst_3 : (i : ι) → Module R (M i)] →
                    [inst_4 : AddCommMonoid N] → [inst_5 : Module S N] → Inhabited ((Π (i : ι), M i) →ₘₛₗ[σ] N)

instance MultilinearMap.instSMul E0 #

{R : Type u_1} →
  {S : Type u_2} →
    {S' : Type u_3} →
      [inst : Semiring R] →
        [inst_1 : Semiring S] →
          {σ : R →+* S} →
            {ι : Type u_4} →
              {M : ι → Type u_5} →
                {N : Type u_6} →
                  [inst_2 : (i : ι) → AddCommMonoid (M i)] →
                    [inst_3 : (i : ι) → Module R (M i)] →
                      [inst_4 : AddCommMonoid N] →
                        [inst_5 : Module S N] →
                          [inst_6 : DistribSMul S' N] → [SMulCommClass S S' N] → SMul S' ((Π (i : ι), M i) →ₘₛₗ[σ] N)

instance MultilinearMap.instIsSMulApplyForall E0 #

∀ {R : Type u_1} {S : Type u_2} {S' : Type u_3} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N] [inst_6 : DistribSMul S' N] [inst_7 : SMulCommClass S S' N],
  IsSMulApply S' ((Π (i : ι), M i) →ₘₛₗ[σ] N)

instance MultilinearMap.instAddMonoid E0 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : Semiring S] →
        {σ : R →+* S} →
          {ι : Type u_4} →
            {M : ι → Type u_5} →
              {N : Type u_6} →
                [inst_2 : (i : ι) → AddCommMonoid (M i)] →
                  [inst_3 : (i : ι) → Module R (M i)] →
                    [inst_4 : AddCommMonoid N] → [inst_5 : Module S N] → AddMonoid ((Π (i : ι), M i) →ₘₛₗ[σ] N)

instance MultilinearMap.addCommMonoid E0 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : Semiring S] →
        {σ : R →+* S} →
          {ι : Type u_4} →
            {M : ι → Type u_5} →
              {N : Type u_6} →
                [inst_2 : (i : ι) → AddCommMonoid (M i)] →
                  [inst_3 : (i : ι) → Module R (M i)] →
                    [inst_4 : AddCommMonoid N] → [inst_5 : Module S N] → AddCommMonoid ((Π (i : ι), M i) →ₘₛₗ[σ] N)

def MultilinearMap.toLinearMap E1 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : Semiring S] →
        {σ : R →+* S} →
          {ι : Type u_4} →
            {M : ι → Type u_5} →
              {N : Type u_6} →
                [inst_2 : (i : ι) → AddCommMonoid (M i)] →
                  [inst_3 : (i : ι) → Module R (M i)] →
                    [inst_4 : AddCommMonoid N] →
                      [inst_5 : Module S N] →
                        ((Π (i : ι), M i) →ₘₛₗ[σ] N) → [DecidableEq ι] → ((i : ι) → M i) → (i : ι) → M i →ₛₗ[σ] N

If f is a multilinear map, then f.toLinearMap m i is the linear map obtained by fixing all coordinates but i equal to those of m, and varying the i-th coordinate.

theorem MultilinearMap.toLinearMap_apply E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N] (f : (Π (i : ι), M i) →ₘₛₗ[σ] N) [inst_6 : DecidableEq ι]
  (m : (i : ι) → M i) (i : ι) (x : M i), (f.toLinearMap m i) x = f (Function.update m i x)

def MultilinearMap.prod E1 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : Semiring S] →
        {σ : R →+* S} →
          {ι : Type u_4} →
            {M : ι → Type u_5} →
              {N : Type u_6} →
                {N' : Type u_7} →
                  [inst_2 : (i : ι) → AddCommMonoid (M i)] →
                    [inst_3 : (i : ι) → Module R (M i)] →
                      [inst_4 : AddCommMonoid N] →
                        [inst_5 : AddCommMonoid N'] →
                          [inst_6 : Module S N] →
                            [inst_7 : Module S N'] →
                              ((Π (i : ι), M i) →ₘₛₗ[σ] N) →
                                ((Π (i : ι), M i) →ₘₛₗ[σ] N') → (Π (i : ι), M i) →ₘₛₗ[σ] N × N'

The Cartesian product of two multilinear maps, as a multilinear map.

theorem MultilinearMap.prod_apply E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} {N' : Type u_7} [inst_2 : (i : ι) → AddCommMonoid (M i)]
  [inst_3 : (i : ι) → Module R (M i)] [inst_4 : AddCommMonoid N] [inst_5 : AddCommMonoid N'] [inst_6 : Module S N]
  [inst_7 : Module S N'] (f : (Π (i : ι), M i) →ₘₛₗ[σ] N) (g : (Π (i : ι), M i) →ₘₛₗ[σ] N') (m : (i : ι) → M i),
  (f.prod g) m = (f m, g m)

def MultilinearMap.pi E1 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : Semiring S] →
        {σ : R →+* S} →
          {ι : Type u_4} →
            {M : ι → Type u_5} →
              [inst_2 : (i : ι) → AddCommMonoid (M i)] →
                [inst_3 : (i : ι) → Module R (M i)] →
                  {ι' : Type u_8} →
                    {M' : ι' → Type u_9} →
                      [inst_4 : (i : ι') → AddCommMonoid (M' i)] →
                        [inst_5 : (i : ι') → Module S (M' i)] →
                          ((i : ι') → (Π (i : ι), M i) →ₘₛₗ[σ] M' i) → (Π (i : ι), M i) →ₘₛₗ[σ] (i : ι') → M' i

Combine a family of multilinear maps with the same domain and codomains M' i into a multilinear map taking values in the space of functions ∀ i, M' i.

theorem MultilinearMap.pi_apply E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)] {ι' : Type u_8}
  {M' : ι' → Type u_9} [inst_4 : (i : ι') → AddCommMonoid (M' i)] [inst_5 : (i : ι') → Module S (M' i)]
  (f : (i : ι') → (Π (i : ι), M i) →ₘₛₗ[σ] M' i) (m : (i : ι) → M i) (i : ι'), (MultilinearMap.pi f) m i = (f i) m

def MultilinearMap.ofSubsingleton E1 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : Semiring S] →
        (σ : R →+* S) →
          {ι : Type u_4} →
            (N : Type u_6) →
              (N' : Type u_7) →
                [inst_2 : AddCommMonoid N] →
                  [inst_3 : AddCommMonoid N'] →
                    [inst_4 : Module S N'] →
                      [inst_5 : Module R N] → [Subsingleton ι] → ι → (N →ₛₗ[σ] N') ≃ ((ι → N) →ₘₛₗ[σ] N')

Equivalence between linear maps N₁ →ₛₗ[σ] N₂ and one-multilinear maps.

theorem MultilinearMap.ofSubsingleton_symm_apply_apply E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] (σ : R →+* S) {ι : Type u_4} (N : Type u_6)
  (N' : Type u_7) [inst_2 : AddCommMonoid N] [inst_3 : AddCommMonoid N'] [inst_4 : Module S N'] [inst_5 : Module R N]
  [inst_6 : Subsingleton ι] (i : ι) (f : (ι → N) →ₘₛₗ[σ] N') (x : N),
  ((MultilinearMap.ofSubsingleton σ N N' i).symm f) x = f fun x_1 ↦ x

theorem MultilinearMap.ofSubsingleton_apply_apply E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] (σ : R →+* S) {ι : Type u_4} (N : Type u_6)
  (N' : Type u_7) [inst_2 : AddCommMonoid N] [inst_3 : AddCommMonoid N'] [inst_4 : Module S N'] [inst_5 : Module R N]
  [inst_6 : Subsingleton ι] (i : ι) (f : N →ₛₗ[σ] N') (x : ι → N),
  ((MultilinearMap.ofSubsingleton σ N N' i) f) x = f (x i)

def MultilinearMap.constOfIsEmpty E1 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : Semiring S] →
        (σ : R →+* S) →
          {ι : Type u_4} →
            (M : ι → Type u_5) →
              {N : Type u_6} →
                [inst_2 : (i : ι) → AddCommMonoid (M i)] →
                  [inst_3 : (i : ι) → Module R (M i)] →
                    [inst_4 : AddCommMonoid N] → [inst_5 : Module S N] → [IsEmpty ι] → N → (Π (i : ι), M i) →ₘₛₗ[σ] N

The constant map is multilinear when ι is empty.

theorem MultilinearMap.constOfIsEmpty_apply E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] (σ : R →+* S) {ι : Type u_4}
  (M : ι → Type u_5) {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N] [inst_6 : IsEmpty ι] (m : N),
  ⇑(MultilinearMap.constOfIsEmpty σ M m) = Function.const ((i : ι) → M i) m

def MultilinearMap.restr E1 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : Semiring S] →
        {σ : R →+* S} →
          {N : Type u_6} →
            {N' : Type u_7} →
              [inst_2 : AddCommMonoid N] →
                [inst_3 : AddCommMonoid N'] →
                  [inst_4 : Module S N'] →
                    [inst_5 : Module R N] →
                      {n k : ℕ} →
                        ((Fin n → N) →ₘₛₗ[σ] N') → (s : Finset (Fin n)) → s.card = k → N → (Fin k → N) →ₘₛₗ[σ] N'

Given a multilinear map f on n variables (parameterized by Fin n) and a subset s of k of these variables, one gets a new multilinear map on Fin k by varying these variables, and fixing the other ones equal to a given value z. It is denoted by f.restr s hk z, where hk is a proof that the cardinality of s is k. The implicit identification between Fin k and s that we use is the canonical (increasing) bijection.

theorem MultilinearMap.cons_add E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {N : Type u_6}
  [inst_2 : AddCommMonoid N] [inst_3 : Module S N] {n : ℕ} {M' : Fin n.succ → Type u_8}
  [inst_4 : (i : Fin n.succ) → AddCommMonoid (M' i)] [inst_5 : (i : Fin n.succ) → Module R (M' i)]
  (f : (Π (i : Fin n.succ), M' i) →ₘₛₗ[σ] N) (m : (i : Fin n) → M' i.succ) (x y : M' 0),
  f (Fin.cons (x + y) m) = f (Fin.cons x m) + f (Fin.cons y m)

In the specific case of multilinear maps on spaces indexed by Fin (n+1), where one can build an element of ∀ (i : Fin (n+1)), M i using cons, one can express directly the additivity of a multilinear map along the first variable.

theorem MultilinearMap.cons_smul E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {N : Type u_6}
  [inst_2 : AddCommMonoid N] [inst_3 : Module S N] {n : ℕ} {M' : Fin n.succ → Type u_8}
  [inst_4 : (i : Fin n.succ) → AddCommMonoid (M' i)] [inst_5 : (i : Fin n.succ) → Module R (M' i)]
  (f : (Π (i : Fin n.succ), M' i) →ₘₛₗ[σ] N) (m : (i : Fin n) → M' i.succ) (c : R) (x : M' 0),
  f (Fin.cons (c • x) m) = σ c • f (Fin.cons x m)

In the specific case of multilinear maps on spaces indexed by Fin (n+1), where one can build an element of ∀ (i : Fin (n+1)), M i using cons, one can express directly the multiplicativity of a multilinear map along the first variable.

theorem MultilinearMap.snoc_add E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {N : Type u_6}
  [inst_2 : AddCommMonoid N] [inst_3 : Module S N] {n : ℕ} {M' : Fin n.succ → Type u_8}
  [inst_4 : (i : Fin n.succ) → AddCommMonoid (M' i)] [inst_5 : (i : Fin n.succ) → Module R (M' i)]
  (f : (Π (i : Fin n.succ), M' i) →ₘₛₗ[σ] N) (m : (i : Fin n) → M' i.castSucc) (x y : M' (Fin.last n)),
  f (Fin.snoc m (x + y)) = f (Fin.snoc m x) + f (Fin.snoc m y)

In the specific case of multilinear maps on spaces indexed by Fin (n+1), where one can build an element of ∀ (i : Fin (n+1)), M i using snoc, one can express directly the additivity of a multilinear map along the first variable.

theorem MultilinearMap.snoc_smul E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {N : Type u_6}
  [inst_2 : AddCommMonoid N] [inst_3 : Module S N] {n : ℕ} {M' : Fin n.succ → Type u_8}
  [inst_4 : (i : Fin n.succ) → AddCommMonoid (M' i)] [inst_5 : (i : Fin n.succ) → Module R (M' i)]
  (f : (Π (i : Fin n.succ), M' i) →ₘₛₗ[σ] N) (m : (i : Fin n) → M' i.castSucc) (c : R) (x : M' (Fin.last n)),
  f (Fin.snoc m (c • x)) = σ c • f (Fin.snoc m x)

In the specific case of multilinear maps on spaces indexed by Fin (n+1), where one can build an element of ∀ (i : Fin (n+1)), M i using cons, one can express directly the multiplicativity of a multilinear map along the first variable.

theorem MultilinearMap.map_insertNth_add E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {N : Type u_6}
  [inst_2 : AddCommMonoid N] [inst_3 : Module S N] {n : ℕ} {M' : Fin n.succ → Type u_8}
  [inst_4 : (i : Fin n.succ) → AddCommMonoid (M' i)] [inst_5 : (i : Fin n.succ) → Module R (M' i)]
  (f : (Π (i : Fin n.succ), M' i) →ₘₛₗ[σ] N) (p : Fin (n + 1)) (m : (i : Fin n) → M' (p.succAbove i)) (x y : M' p),
  f (p.insertNth (x + y) m) = f (p.insertNth x m) + f (p.insertNth y m)

theorem MultilinearMap.map_insertNth_smul E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {N : Type u_6}
  [inst_2 : AddCommMonoid N] [inst_3 : Module S N] {n : ℕ} {M' : Fin n.succ → Type u_8}
  [inst_4 : (i : Fin n.succ) → AddCommMonoid (M' i)] [inst_5 : (i : Fin n.succ) → Module R (M' i)]
  (f : (Π (i : Fin n.succ), M' i) →ₘₛₗ[σ] N) (p : Fin (n + 1)) (m : (i : Fin n) → M' (p.succAbove i)) (c : R)
  (x : M' p), f (p.insertNth (c • x) m) = σ c • f (p.insertNth x m)

def MultilinearMap.compLinearMap E1 #

{R₁ : Type u_8} →
  {R₂ : Type u_9} →
    {R₃ : Type u_10} →
      [inst : Semiring R₁] →
        [inst_1 : Semiring R₂] →
          [inst_2 : Semiring R₃] →
            {σ₁₂ : R₁ →+* R₂} →
              {σ₂₃ : R₂ →+* R₃} →
                {σ₁₃ : R₁ →+* R₃} →
                  [RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] →
                    {ι : Type u_12} →
                      {M₁ : ι → Type u_13} →
                        {M₂ : ι → Type u_14} →
                          {N₃ : Type u_17} →
                            [inst_4 : (i : ι) → AddCommMonoid (M₁ i)] →
                              [inst_5 : (i : ι) → AddCommMonoid (M₂ i)] →
                                [inst_6 : (i : ι) → Module R₁ (M₁ i)] →
                                  [inst_7 : (i : ι) → Module R₂ (M₂ i)] →
                                    [inst_8 : AddCommMonoid N₃] →
                                      [inst_9 : Module R₃ N₃] →
                                        ((Π (i : ι), M₂ i) →ₘₛₗ[σ₂₃] N₃) →
                                          ((i : ι) → M₁ i →ₛₗ[σ₁₂] M₂ i) → (Π (i : ι), M₁ i) →ₘₛₗ[σ₁₃] N₃

If g is a multilinear map and f is a collection of linear maps, then g (f₁ m₁, ..., fₙ mₙ) is again a multilinear map, that we call g.compLinearMap f.

theorem MultilinearMap.compLinearMap_apply E0 #

∀ {R₁ : Type u_8} {R₂ : Type u_9} {R₃ : Type u_10} [inst : Semiring R₁] [inst_1 : Semiring R₂] [inst_2 : Semiring R₃]
  {σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_3 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {ι : Type u_12}
  {M₁ : ι → Type u_13} {M₂ : ι → Type u_14} {N₃ : Type u_17} [inst_4 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_5 : (i : ι) → AddCommMonoid (M₂ i)] [inst_6 : (i : ι) → Module R₁ (M₁ i)] [inst_7 : (i : ι) → Module R₂ (M₂ i)]
  [inst_8 : AddCommMonoid N₃] [inst_9 : Module R₃ N₃] (g : (Π (i : ι), M₂ i) →ₘₛₗ[σ₂₃] N₃)
  (f : (i : ι) → M₁ i →ₛₗ[σ₁₂] M₂ i) (m : (i : ι) → M₁ i), (g.compLinearMap f) m = g fun i ↦ (f i) (m i)

theorem MultilinearMap.compLinearMap_assoc E1 #

∀ {R₁ : Type u_8} {R₂ : Type u_9} {R₃ : Type u_10} {R₄ : Type u_11} [inst : Semiring R₁] [inst_1 : Semiring R₂]
  [inst_2 : Semiring R₃] [inst_3 : Semiring R₄] {σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃}
  [inst_4 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {σ₃₄ : R₃ →+* R₄} {σ₂₄ : R₂ →+* R₄} {σ₁₄ : R₁ →+* R₄}
  [inst_5 : RingHomCompTriple σ₁₃ σ₃₄ σ₁₄] [inst_6 : RingHomCompTriple σ₂₃ σ₃₄ σ₂₄]
  [inst_7 : RingHomCompTriple σ₁₂ σ₂₄ σ₁₄] {ι : Type u_12} {M₁ : ι → Type u_13} {M₂ : ι → Type u_14}
  {M₃ : ι → Type u_15} {N₄ : Type u_18} [inst_8 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_9 : (i : ι) → AddCommMonoid (M₂ i)] [inst_10 : (i : ι) → AddCommMonoid (M₃ i)]
  [inst_11 : (i : ι) → Module R₁ (M₁ i)] [inst_12 : (i : ι) → Module R₂ (M₂ i)] [inst_13 : (i : ι) → Module R₃ (M₃ i)]
  [inst_14 : AddCommMonoid N₄] [inst_15 : Module R₄ N₄] (g : (Π (i : ι), M₃ i) →ₘₛₗ[σ₃₄] N₄)
  (f₁ : (i : ι) → M₂ i →ₛₗ[σ₂₃] M₃ i) (f₂ : (i : ι) → M₁ i →ₛₗ[σ₁₂] M₂ i),
  (g.compLinearMap f₁).compLinearMap f₂ = g.compLinearMap fun i ↦ f₁ i ∘ₛₗ f₂ i

Composing a multilinear map twice with a linear map in each argument is the same as composing with their composition.

theorem MultilinearMap.zero_compLinearMap E0 #

∀ {R₁ : Type u_8} {R₂ : Type u_9} {R₃ : Type u_10} [inst : Semiring R₁] [inst_1 : Semiring R₂] [inst_2 : Semiring R₃]
  {σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_3 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {ι : Type u_12}
  {M₁ : ι → Type u_13} {M₂ : ι → Type u_14} {N₃ : Type u_17} [inst_4 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_5 : (i : ι) → AddCommMonoid (M₂ i)] [inst_6 : (i : ι) → Module R₁ (M₁ i)] [inst_7 : (i : ι) → Module R₂ (M₂ i)]
  [inst_8 : AddCommMonoid N₃] [inst_9 : Module R₃ N₃] (f : (i : ι) → M₁ i →ₛₗ[σ₁₂] M₂ i),
  MultilinearMap.compLinearMap 0 f = 0

Composing the zero multilinear map with a linear map in each argument.

theorem MultilinearMap.compLinearMap_id E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N] (g : (Π (i : ι), M i) →ₘₛₗ[σ] N),
  (g.compLinearMap fun x ↦ LinearMap.id) = g

Composing a multilinear map with the identity linear map in each argument.

theorem MultilinearMap.compLinearMap_injective E1 #

∀ {R₁ : Type u_8} {R₂ : Type u_9} {R₃ : Type u_10} [inst : Semiring R₁] [inst_1 : Semiring R₂] [inst_2 : Semiring R₃]
  {σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_3 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {ι : Type u_12}
  {M₁ : ι → Type u_13} {M₂ : ι → Type u_14} {N₃ : Type u_17} [inst_4 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_5 : (i : ι) → AddCommMonoid (M₂ i)] [inst_6 : (i : ι) → Module R₁ (M₁ i)] [inst_7 : (i : ι) → Module R₂ (M₂ i)]
  [inst_8 : AddCommMonoid N₃] [inst_9 : Module R₃ N₃] (f : (i : ι) → M₁ i →ₛₗ[σ₁₂] M₂ i),
  (∀ (i : ι), Function.Surjective ⇑(f i)) → Function.Injective fun g ↦ g.compLinearMap f

Composing with a family of surjective linear maps is injective.

theorem MultilinearMap.compLinearMap_inj E1 #

∀ {R₁ : Type u_8} {R₂ : Type u_9} {R₃ : Type u_10} [inst : Semiring R₁] [inst_1 : Semiring R₂] [inst_2 : Semiring R₃]
  {σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_3 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {ι : Type u_12}
  {M₁ : ι → Type u_13} {M₂ : ι → Type u_14} {N₃ : Type u_17} [inst_4 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_5 : (i : ι) → AddCommMonoid (M₂ i)] [inst_6 : (i : ι) → Module R₁ (M₁ i)] [inst_7 : (i : ι) → Module R₂ (M₂ i)]
  [inst_8 : AddCommMonoid N₃] [inst_9 : Module R₃ N₃] (f : (i : ι) → M₁ i →ₛₗ[σ₁₂] M₂ i),
  (∀ (i : ι), Function.Surjective ⇑(f i)) →
    ∀ (g₁ g₂ : (Π (i : ι), M₂ i) →ₘₛₗ[σ₂₃] N₃), g₁.compLinearMap f = g₂.compLinearMap f ↔ g₁ = g₂

theorem MultilinearMap.comp_linearEquiv_eq_zero_iff E0 #

∀ {R₁ : Type u_8} {R₂ : Type u_9} {R₃ : Type u_10} [inst : Semiring R₁] [inst_1 : Semiring R₂] [inst_2 : Semiring R₃]
  {σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_3 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {ι : Type u_12}
  {M₁ : ι → Type u_13} {M₂ : ι → Type u_14} {N₃ : Type u_17} [inst_4 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_5 : (i : ι) → AddCommMonoid (M₂ i)] [inst_6 : (i : ι) → Module R₁ (M₁ i)] [inst_7 : (i : ι) → Module R₂ (M₂ i)]
  [inst_8 : AddCommMonoid N₃] [inst_9 : Module R₃ N₃] {σ₂₁ : R₂ →+* R₁} [inst_10 : RingHomInvPair σ₁₂ σ₂₁]
  [inst_11 : RingHomInvPair σ₂₁ σ₁₂] (g : (Π (i : ι), M₂ i) →ₘₛₗ[σ₂₃] N₃) (f : (i : ι) → M₁ i ≃ₛₗ[σ₁₂] M₂ i),
  (g.compLinearMap fun i ↦ ↑(f i)) = 0 ↔ g = 0

Composing a multilinear map with a linear equiv on each argument gives the zero map if and only if the multilinear map is the zero map.

def MultilinearMap.compMultilinearMap E1 #

{R₁ : Type u_8} →
  {R₂ : Type u_9} →
    {R₃ : Type u_10} →
      [inst : Semiring R₁] →
        [inst_1 : Semiring R₂] →
          [inst_2 : Semiring R₃] →
            {σ₁₂ : R₁ →+* R₂} →
              {σ₂₃ : R₂ →+* R₃} →
                {σ₁₃ : R₁ →+* R₃} →
                  [RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] →
                    {ι : Type u_12} →
                      {M₂ : ι → Type u_14} →
                        {N₃ : Type u_17} →
                          [inst_4 : (i : ι) → AddCommMonoid (M₂ i)] →
                            [inst_5 : (i : ι) → Module R₂ (M₂ i)] →
                              [inst_6 : AddCommMonoid N₃] →
                                [inst_7 : Module R₃ N₃] →
                                  {β : ι → Type u_19} →
                                    {M₁' : (i : ι) → β i → Type u_20} →
                                      [inst_8 : (i : ι) → (b : β i) → AddCommMonoid (M₁' i b)] →
                                        [inst_9 : (i : ι) → (b : β i) → Module R₁ (M₁' i b)] →
                                          ((Π (i : ι), M₂ i) →ₘₛₗ[σ₂₃] N₃) →
                                            ((i : ι) → (Π (j : β i), M₁' i j) →ₘₛₗ[σ₁₂] M₂ i) →
                                              (Π (j : (i : ι) × β i), M₁' j.fst j.snd) →ₘₛₗ[σ₁₃] N₃

Composition of multilinear maps. If g is multilinear, and if for every i : ι, we have a multilinear map f i with index type β i, then m ↦ g (f₁ m_11 m_12 ...) (f₂ m_21 m_22 ...) ... is multilinear with index type (Σ i, β i).

theorem MultilinearMap.compMultilinearMap_apply E0 #

∀ {R₁ : Type u_8} {R₂ : Type u_9} {R₃ : Type u_10} [inst : Semiring R₁] [inst_1 : Semiring R₂] [inst_2 : Semiring R₃]
  {σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_3 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {ι : Type u_12}
  {M₂ : ι → Type u_14} {N₃ : Type u_17} [inst_4 : (i : ι) → AddCommMonoid (M₂ i)] [inst_5 : (i : ι) → Module R₂ (M₂ i)]
  [inst_6 : AddCommMonoid N₃] [inst_7 : Module R₃ N₃] {β : ι → Type u_19} {M₁' : (i : ι) → β i → Type u_20}
  [inst_8 : (i : ι) → (b : β i) → AddCommMonoid (M₁' i b)] [inst_9 : (i : ι) → (b : β i) → Module R₁ (M₁' i b)]
  (g : (Π (i : ι), M₂ i) →ₘₛₗ[σ₂₃] N₃) (f : (i : ι) → (Π (j : β i), M₁' i j) →ₘₛₗ[σ₁₂] M₂ i)
  (m : (i : (i : ι) × β i) → M₁' i.fst i.snd), (g.compMultilinearMap f) m = g fun i ↦ (f i) (Sigma.curry m i)

theorem MultilinearMap.map_piecewise_add E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N] (f : (Π (i : ι), M i) →ₘₛₗ[σ] N) [inst_6 : DecidableEq ι]
  (m m' : (i : ι) → M i) (t : Finset ι), f (t.piecewise (m + m') m') = ∑ s ∈ t.powerset, f (s.piecewise m m')

If one adds to a vector m' another vector m, but only for coordinates in a finset t, then the image under a multilinear map f is the sum of f (s.piecewise m m') along all subsets s of t. This is mainly an auxiliary statement to prove the result when t = univ, given in map_add_univ, although it can be useful in its own right as it does not require the index set ι to be finite.

theorem MultilinearMap.map_add_univ E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N] (f : (Π (i : ι), M i) →ₘₛₗ[σ] N) [inst_6 : DecidableEq ι]
  [inst_7 : Fintype ι] (m m' : (i : ι) → M i), f (m + m') = ∑ s, f (s.piecewise m m')

Additivity of a multilinear map along all coordinates at the same time, writing f (m + m') as the sum of f (s.piecewise m m') over all sets s.

theorem MultilinearMap.map_sum_finset_aux E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N] (f : (Π (i : ι), M i) →ₘₛₗ[σ] N) {α : ι → Type u_8}
  (g : (i : ι) → α i → M i) (A : (i : ι) → Finset (α i)) [inst_6 : DecidableEq ι] [inst_7 : Fintype ι] {n : ℕ},
  ∑ i, (A i).card = n → (f fun i ↦ ∑ j ∈ A i, g i j) = ∑ r ∈ Fintype.piFinset A, f fun i ↦ g i (r i)

If f is multilinear, then f (Σ_{j₁ ∈ A₁} g₁ j₁, ..., Σ_{jₙ ∈ Aₙ} gₙ jₙ) is the sum of f (g₁ (r 1), ..., gₙ (r n)) where r ranges over all functions with r 1 ∈ A₁, ..., r n ∈ Aₙ. This follows from multilinearity by expanding successively with respect to each coordinate. Here, we give an auxiliary statement tailored for an inductive proof. Use instead map_sum_finset.

theorem MultilinearMap.map_sum_finset E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N] (f : (Π (i : ι), M i) →ₘₛₗ[σ] N) {α : ι → Type u_8}
  (g : (i : ι) → α i → M i) (A : (i : ι) → Finset (α i)) [inst_6 : DecidableEq ι] [inst_7 : Fintype ι],
  (f fun i ↦ ∑ j ∈ A i, g i j) = ∑ r ∈ Fintype.piFinset A, f fun i ↦ g i (r i)

If f is multilinear, then f (Σ_{j₁ ∈ A₁} g₁ j₁, ..., Σ_{jₙ ∈ Aₙ} gₙ jₙ) is the sum of f (g₁ (r 1), ..., gₙ (r n)) where r ranges over all functions with r 1 ∈ A₁, ..., r n ∈ Aₙ. This follows from multilinearity by expanding successively with respect to each coordinate.

theorem MultilinearMap.map_sum E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N] (f : (Π (i : ι), M i) →ₘₛₗ[σ] N) {α : ι → Type u_8}
  (g : (i : ι) → α i → M i) [inst_6 : DecidableEq ι] [inst_7 : Fintype ι] [inst_8 : (i : ι) → Fintype (α i)],
  (f fun i ↦ ∑ j, g i j) = ∑ r, f fun i ↦ g i (r i)

If f is multilinear, then f (Σ_{j₁} g₁ j₁, ..., Σ_{jₙ} gₙ jₙ) is the sum of f (g₁ (r 1), ..., gₙ (r n)) where r ranges over all functions r. This follows from multilinearity by expanding successively with respect to each coordinate.

theorem MultilinearMap.map_update_sum E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N] (f : (Π (i : ι), M i) →ₘₛₗ[σ] N) {α : Type u_9}
  [inst_6 : DecidableEq ι] (t : Finset α) (i : ι) (g : α → M i) (m : (i : ι) → M i),
  f (Function.update m i (∑ a ∈ t, g a)) = ∑ a ∈ t, f (Function.update m i (g a))

def MultilinearMap.codRestrict E1 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : Semiring S] →
        {σ : R →+* S} →
          {ι : Type u_4} →
            {M : ι → Type u_5} →
              {N : Type u_6} →
                [inst_2 : (i : ι) → AddCommMonoid (M i)] →
                  [inst_3 : (i : ι) → Module R (M i)] →
                    [inst_4 : AddCommMonoid N] →
                      [inst_5 : Module S N] →
                        (f : (Π (i : ι), M i) →ₘₛₗ[σ] N) →
                          (p : Submodule S N) → (∀ (v : (i : ι) → M i), f v ∈ p) → (Π (i : ι), M i) →ₘₛₗ[σ] ↥p

Restrict the codomain of a multilinear map to a submodule.

This is the multilinear version of LinearMap.codRestrict.

theorem MultilinearMap.codRestrict_apply_coe E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N] (f : (Π (i : ι), M i) →ₘₛₗ[σ] N) (p : Submodule S N)
  (h : ∀ (v : (i : ι) → M i), f v ∈ p) (v : (i : ι) → M i), ↑((f.codRestrict p h) v) = f v

def MultilinearMap.restrictScalars E1 #

(R : Type u_1) →
  [inst : Semiring R] →
    {ι : Type u_4} →
      {M : ι → Type u_5} →
        {N : Type u_6} →
          [inst_1 : (i : ι) → AddCommMonoid (M i)] →
            [inst_2 : (i : ι) → Module R (M i)] →
              [inst_3 : AddCommMonoid N] →
                {A : Type u_8} →
                  [inst_4 : Semiring A] →
                    [inst_5 : SMul R A] →
                      [inst_6 : (i : ι) → Module A (M i)] →
                        [inst_7 : Module A N] →
                          [inst_8 : Module R N] →
                            [∀ (i : ι), IsScalarTower R A (M i)] →
                              [IsScalarTower R A N] → ((Π (i : ι), M i) →ₘₗ[A] N) → (Π (i : ι), M i) →ₘₗ[R] N

Reinterpret an A-multilinear map as an R-multilinear map, if A is an algebra over R and their actions on all involved modules agree with the action of R on A.

theorem MultilinearMap.coe_restrictScalars E0 #

∀ (R : Type u_1) [inst : Semiring R] {ι : Type u_4} {M : ι → Type u_5} {N : Type u_6}
  [inst_1 : (i : ι) → AddCommMonoid (M i)] [inst_2 : (i : ι) → Module R (M i)] [inst_3 : AddCommMonoid N] {A : Type u_8}
  [inst_4 : Semiring A] [inst_5 : SMul R A] [inst_6 : (i : ι) → Module A (M i)] [inst_7 : Module A N]
  [inst_8 : Module R N] [inst_9 : ∀ (i : ι), IsScalarTower R A (M i)] [inst_10 : IsScalarTower R A N]
  (f : (Π (i : ι), M i) →ₘₗ[A] N), ⇑(MultilinearMap.restrictScalars R f) = ⇑f

def MultilinearMap.domDomCongr E1 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : Semiring S] →
        {σ : R →+* S} →
          {ι₁ : Type u_8} →
            {ι₂ : Type u_9} →
              {N₁ : Type u_11} →
                {N₂ : Type u_12} →
                  [inst_2 : AddCommMonoid N₁] →
                    [inst_3 : AddCommMonoid N₂] →
                      [inst_4 : Module R N₁] →
                        [inst_5 : Module S N₂] → ι₁ ≃ ι₂ → ((ι₁ → N₁) →ₘₛₗ[σ] N₂) → (ι₂ → N₁) →ₘₛₗ[σ] N₂

Transfer the arguments to a map along an equivalence between argument indices.

The naming is derived from Finsupp.domCongr, noting that here the permutation applies to the domain of the domain.

theorem MultilinearMap.domDomCongr_apply E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι₁ : Type u_8} {ι₂ : Type u_9}
  {N₁ : Type u_11} {N₂ : Type u_12} [inst_2 : AddCommMonoid N₁] [inst_3 : AddCommMonoid N₂] [inst_4 : Module R N₁]
  [inst_5 : Module S N₂] (e : ι₁ ≃ ι₂) (m : (ι₁ → N₁) →ₘₛₗ[σ] N₂) (v : ι₂ → N₁),
  (MultilinearMap.domDomCongr e m) v = m fun i ↦ v (e i)

theorem MultilinearMap.domDomCongr_trans E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι₁ : Type u_8} {ι₂ : Type u_9}
  {ι₃ : Type u_10} {N₁ : Type u_11} {N₂ : Type u_12} [inst_2 : AddCommMonoid N₁] [inst_3 : AddCommMonoid N₂]
  [inst_4 : Module R N₁] [inst_5 : Module S N₂] (e : ι₁ ≃ ι₂) (e' : ι₂ ≃ ι₃) (m : (ι₁ → N₁) →ₘₛₗ[σ] N₂),
  MultilinearMap.domDomCongr (e.trans e') m = MultilinearMap.domDomCongr e' (MultilinearMap.domDomCongr e m)

theorem MultilinearMap.domDomCongr_mul E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι₁ : Type u_8} {N₁ : Type u_11}
  {N₂ : Type u_12} [inst_2 : AddCommMonoid N₁] [inst_3 : AddCommMonoid N₂] [inst_4 : Module R N₁] [inst_5 : Module S N₂]
  (e e' : Equiv.Perm ι₁) (m : (ι₁ → N₁) →ₘₛₗ[σ] N₂),
  MultilinearMap.domDomCongr (e' * e) m = MultilinearMap.domDomCongr e' (MultilinearMap.domDomCongr e m)

def MultilinearMap.domDomCongrEquiv E1 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : Semiring S] →
        {σ : R →+* S} →
          {ι₁ : Type u_8} →
            {ι₂ : Type u_9} →
              {N₁ : Type u_11} →
                {N₂ : Type u_12} →
                  [inst_2 : AddCommMonoid N₁] →
                    [inst_3 : AddCommMonoid N₂] →
                      [inst_4 : Module R N₁] →
                        [inst_5 : Module S N₂] → ι₁ ≃ ι₂ → ((ι₁ → N₁) →ₘₛₗ[σ] N₂) ≃+ ((ι₂ → N₁) →ₘₛₗ[σ] N₂)

MultilinearMap.domDomCongr as an equivalence.

This is declared separately because it does not work with dot notation.

theorem MultilinearMap.domDomCongrEquiv_symm_apply E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι₁ : Type u_8} {ι₂ : Type u_9}
  {N₁ : Type u_11} {N₂ : Type u_12} [inst_2 : AddCommMonoid N₁] [inst_3 : AddCommMonoid N₂] [inst_4 : Module R N₁]
  [inst_5 : Module S N₂] (e : ι₁ ≃ ι₂) (m : (ι₂ → N₁) →ₘₛₗ[σ] N₂),
  (MultilinearMap.domDomCongrEquiv e).symm m = MultilinearMap.domDomCongr e.symm m

theorem MultilinearMap.domDomCongrEquiv_apply E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι₁ : Type u_8} {ι₂ : Type u_9}
  {N₁ : Type u_11} {N₂ : Type u_12} [inst_2 : AddCommMonoid N₁] [inst_3 : AddCommMonoid N₂] [inst_4 : Module R N₁]
  [inst_5 : Module S N₂] (e : ι₁ ≃ ι₂) (m : (ι₁ → N₁) →ₘₛₗ[σ] N₂),
  (MultilinearMap.domDomCongrEquiv e) m = MultilinearMap.domDomCongr e m

theorem MultilinearMap.domDomCongr_eq_iff E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι₁ : Type u_8} {ι₂ : Type u_9}
  {N₁ : Type u_11} {N₂ : Type u_12} [inst_2 : AddCommMonoid N₁] [inst_3 : AddCommMonoid N₂] [inst_4 : Module R N₁]
  [inst_5 : Module S N₂] (e : ι₁ ≃ ι₂) (f g : (ι₁ → N₁) →ₘₛₗ[σ] N₂),
  MultilinearMap.domDomCongr e f = MultilinearMap.domDomCongr e g ↔ f = g

The results of applying domDomCongr to two maps are equal if and only if those maps are.

theorem MultilinearMap.domDomRestrict_aux E0 #

∀ {ι : Sort u_9} [inst : DecidableEq ι] (P : ι → Prop) [inst_1 : DecidablePred P] {M₁ : ι → Type u_8}
  [inst_2 : DecidableEq { a // P a }] (x : (i : { a // P a }) → M₁ ↑i) (z : (i : { a // ¬P a }) → M₁ ↑i)
  (i : { a // P a }) (c : M₁ ↑i),
  (fun j ↦ if h : P j then Function.update x i c ⟨j, h⟩ else z ⟨j, h⟩) =
    Function.update (fun j ↦ if h : P j then x ⟨j, h⟩ else z ⟨j, h⟩) (↑i) c

theorem MultilinearMap.domDomRestrict_aux_right E1 #

∀ {ι : Sort u_9} [inst : DecidableEq ι] (P : ι → Prop) [inst_1 : DecidablePred P] {M₁ : ι → Type u_8}
  [inst_2 : DecidableEq { a // ¬P a }] (x : (i : { a // P a }) → M₁ ↑i) (z : (i : { a // ¬P a }) → M₁ ↑i)
  (i : { a // ¬P a }) (c : M₁ ↑i),
  (fun j ↦ if h : P j then x ⟨j, h⟩ else Function.update z i c ⟨j, h⟩) =
    Function.update (fun j ↦ if h : P j then x ⟨j, h⟩ else z ⟨j, h⟩) (↑i) c

def MultilinearMap.domDomRestrict E1 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : Semiring S] →
        {σ : R →+* S} →
          {ι : Type u_4} →
            {M : ι → Type u_5} →
              {N : Type u_6} →
                [inst_2 : (i : ι) → AddCommMonoid (M i)] →
                  [inst_3 : (i : ι) → Module R (M i)] →
                    [inst_4 : AddCommMonoid N] →
                      [inst_5 : Module S N] →
                        ((Π (i : ι), M i) →ₘₛₗ[σ] N) →
                          (P : ι → Prop) →
                            [DecidablePred P] → ((i : { a // ¬P a }) → M ↑i) → (Π (i : { a // P a }), M ↑i) →ₘₛₗ[σ] N

Given a multilinear map f on (i : ι) → M i, a (decidable) predicate P on ι and an element z of (i : {a // ¬ P a}) → M i, construct a multilinear map on (i : {a // P a}) → M i whose value at x is f evaluated at the vector with ith coordinate x i if P i and z i otherwise.

The naming is similar to MultilinearMap.domDomCongr: here we are applying the restriction to the domain of the domain.

For a linear map version, see MultilinearMap.domDomRestrictₗ.

theorem MultilinearMap.domDomRestrict_apply E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N] (f : (Π (i : ι), M i) →ₘₛₗ[σ] N) (P : ι → Prop)
  [inst_6 : DecidablePred P] (x : (i : { a // P a }) → M ↑i) (z : (i : { a // ¬P a }) → M ↑i),
  (f.domDomRestrict P z) x = f fun j ↦ if h : P j then x ⟨j, h⟩ else z ⟨j, h⟩

def MultilinearMap.linearDeriv E1 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : Semiring S] →
        {σ : R →+* S} →
          {ι : Type u_4} →
            {M : ι → Type u_5} →
              {N : Type u_6} →
                [inst_2 : (i : ι) → AddCommMonoid (M i)] →
                  [inst_3 : (i : ι) → Module R (M i)] →
                    [inst_4 : AddCommMonoid N] →
                      [inst_5 : Module S N] →
                        [DecidableEq ι] →
                          [Fintype ι] → ((Π (i : ι), M i) →ₘₛₗ[σ] N) → ((i : ι) → M i) → ((i : ι) → M i) →ₛₗ[σ] N

The "derivative" of a multilinear map, as a linear map from (i : ι) → M i to N. For continuous multilinear maps, this will indeed be the derivative.

theorem MultilinearMap.linearDeriv_apply E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_4}
  {M : ι → Type u_5} {N : Type u_6} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  [inst_4 : AddCommMonoid N] [inst_5 : Module S N] [inst_6 : DecidableEq ι] [inst_7 : Fintype ι]
  (f : (Π (i : ι), M i) →ₘₛₗ[σ] N) (x y : (i : ι) → M i), (f.linearDeriv x) y = ∑ i, f (Function.update x i (y i))

def LinearMap.compMultilinearMap E1 #

{R₁ : Type u_1} →
  {R₂ : Type u_2} →
    {R₃ : Type u_3} →
      [inst : Semiring R₁] →
        [inst_1 : Semiring R₂] →
          [inst_2 : Semiring R₃] →
            {σ₁₂ : R₁ →+* R₂} →
              {σ₂₃ : R₂ →+* R₃} →
                {σ₁₃ : R₁ →+* R₃} →
                  [RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] →
                    {ι : Type u_6} →
                      {M₁ : ι → Type u_7} →
                        {N₂ : Type u_9} →
                          {N₃ : Type u_11} →
                            [inst_4 : (i : ι) → AddCommMonoid (M₁ i)] →
                              [inst_5 : AddCommMonoid N₂] →
                                [inst_6 : AddCommMonoid N₃] →
                                  [inst_7 : (i : ι) → Module R₁ (M₁ i)] →
                                    [inst_8 : Module R₂ N₂] →
                                      [inst_9 : Module R₃ N₃] →
                                        (N₂ →ₛₗ[σ₂₃] N₃) →
                                          ((Π (i : ι), M₁ i) →ₘₛₗ[σ₁₂] N₂) → (Π (i : ι), M₁ i) →ₘₛₗ[σ₁₃] N₃

Composing a multilinear map with a linear map gives again a multilinear map.

theorem LinearMap.coe_compMultilinearMap E0 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} {R₃ : Type u_3} [inst : Semiring R₁] [inst_1 : Semiring R₂] [inst_2 : Semiring R₃]
  {σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_3 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {ι : Type u_6}
  {M₁ : ι → Type u_7} {N₂ : Type u_9} {N₃ : Type u_11} [inst_4 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_5 : AddCommMonoid N₂] [inst_6 : AddCommMonoid N₃] [inst_7 : (i : ι) → Module R₁ (M₁ i)] [inst_8 : Module R₂ N₂]
  [inst_9 : Module R₃ N₃] (g : N₂ →ₛₗ[σ₂₃] N₃) (f : (Π (i : ι), M₁ i) →ₘₛₗ[σ₁₂] N₂), ⇑(g.compMultilinearMap f) = ⇑g ∘ ⇑f

theorem LinearMap.compMultilinearMap_apply E0 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} {R₃ : Type u_3} [inst : Semiring R₁] [inst_1 : Semiring R₂] [inst_2 : Semiring R₃]
  {σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_3 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {ι : Type u_6}
  {M₁ : ι → Type u_7} {N₂ : Type u_9} {N₃ : Type u_11} [inst_4 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_5 : AddCommMonoid N₂] [inst_6 : AddCommMonoid N₃] [inst_7 : (i : ι) → Module R₁ (M₁ i)] [inst_8 : Module R₂ N₂]
  [inst_9 : Module R₃ N₃] (g : N₂ →ₛₗ[σ₂₃] N₃) (f : (Π (i : ι), M₁ i) →ₘₛₗ[σ₁₂] N₂) (m : (i : ι) → M₁ i),
  (g.compMultilinearMap f) m = g (f m)

theorem LinearMap.id_compMultilinearMap E0 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} [inst : Semiring R₁] [inst_1 : Semiring R₂] {σ₁₂ : R₁ →+* R₂} {ι : Type u_6}
  {M₁ : ι → Type u_7} {N₂ : Type u_9} [inst_2 : (i : ι) → AddCommMonoid (M₁ i)] [inst_3 : AddCommMonoid N₂]
  [inst_4 : (i : ι) → Module R₁ (M₁ i)] [inst_5 : Module R₂ N₂] (f : (Π (i : ι), M₁ i) →ₘₛₗ[σ₁₂] N₂),
  LinearMap.id.compMultilinearMap f = f

theorem LinearMap.comp_compMultilinearMap E1 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} {R₃ : Type u_3} {R₄ : Type u_4} [inst : Semiring R₁] [inst_1 : Semiring R₂]
  [inst_2 : Semiring R₃] [inst_3 : Semiring R₄] {σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} {σ₃₄ : R₃ →+* R₄}
  {σ₂₄ : R₂ →+* R₄} {σ₁₄ : R₁ →+* R₄} [inst_4 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] [inst_5 : RingHomCompTriple σ₁₃ σ₃₄ σ₁₄]
  [inst_6 : RingHomCompTriple σ₂₃ σ₃₄ σ₂₄] [inst_7 : RingHomCompTriple σ₁₂ σ₂₄ σ₁₄] {ι : Type u_6} {M₁ : ι → Type u_7}
  {N₂ : Type u_9} {N₃ : Type u_11} {N₄ : Type u_12} [inst_8 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_9 : AddCommMonoid N₂] [inst_10 : AddCommMonoid N₃] [inst_11 : AddCommMonoid N₄]
  [inst_12 : (i : ι) → Module R₁ (M₁ i)] [inst_13 : Module R₂ N₂] [inst_14 : Module R₃ N₃] [inst_15 : Module R₄ N₄]
  (g : N₃ →ₛₗ[σ₃₄] N₄) (g' : N₂ →ₛₗ[σ₂₃] N₃) (f : (Π (i : ι), M₁ i) →ₘₛₗ[σ₁₂] N₂),
  (g ∘ₛₗ g').compMultilinearMap f = g.compMultilinearMap (g'.compMultilinearMap f)

theorem LinearMap.compMultilinearMap_compLinearMap E1 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} {R₃ : Type u_3} {R₄ : Type u_4} [inst : Semiring R₁] [inst_1 : Semiring R₂]
  [inst_2 : Semiring R₃] [inst_3 : Semiring R₄] {σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} {σ₃₄ : R₃ →+* R₄}
  {σ₂₄ : R₂ →+* R₄} {σ₁₄ : R₁ →+* R₄} [inst_4 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] [inst_5 : RingHomCompTriple σ₁₃ σ₃₄ σ₁₄]
  [inst_6 : RingHomCompTriple σ₂₃ σ₃₄ σ₂₄] [inst_7 : RingHomCompTriple σ₁₂ σ₂₄ σ₁₄] {ι : Type u_6} {M₁ : ι → Type u_7}
  {M₂ : ι → Type u_8} {N₃ : Type u_11} {N₄ : Type u_12} [inst_8 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_9 : (i : ι) → AddCommMonoid (M₂ i)] [inst_10 : AddCommMonoid N₃] [inst_11 : AddCommMonoid N₄]
  [inst_12 : (i : ι) → Module R₁ (M₁ i)] [inst_13 : (i : ι) → Module R₂ (M₂ i)] [inst_14 : Module R₃ N₃]
  [inst_15 : Module R₄ N₄] (g : N₃ →ₛₗ[σ₃₄] N₄) (f : (Π (i : ι), M₂ i) →ₘₛₗ[σ₂₃] N₃)
  (f' : (i : ι) → M₁ i →ₛₗ[σ₁₂] M₂ i),
  g.compMultilinearMap (f.compLinearMap f') = (g.compMultilinearMap f).compLinearMap f'

The two types of composition are associative.

theorem LinearMap.compMultilinearMap_zero E0 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} {R₃ : Type u_3} [inst : Semiring R₁] [inst_1 : Semiring R₂] [inst_2 : Semiring R₃]
  {σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_3 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {ι : Type u_6}
  {M₁ : ι → Type u_7} {N₂ : Type u_9} {N₃ : Type u_11} [inst_4 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_5 : AddCommMonoid N₂] [inst_6 : AddCommMonoid N₃] [inst_7 : (i : ι) → Module R₁ (M₁ i)] [inst_8 : Module R₂ N₂]
  [inst_9 : Module R₃ N₃] (g : N₂ →ₛₗ[σ₂₃] N₃), g.compMultilinearMap 0 = 0

theorem LinearMap.zero_compMultilinearMap E0 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} {R₃ : Type u_3} [inst : Semiring R₁] [inst_1 : Semiring R₂] [inst_2 : Semiring R₃]
  {σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_3 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {ι : Type u_6}
  {M₁ : ι → Type u_7} {N₂ : Type u_9} {N₃ : Type u_11} [inst_4 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_5 : AddCommMonoid N₂] [inst_6 : AddCommMonoid N₃] [inst_7 : (i : ι) → Module R₁ (M₁ i)] [inst_8 : Module R₂ N₂]
  [inst_9 : Module R₃ N₃] (f : (Π (i : ι), M₁ i) →ₘₛₗ[σ₁₂] N₂), LinearMap.compMultilinearMap 0 f = 0

theorem LinearMap.compMultilinearMap_add E0 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} {R₃ : Type u_3} [inst : Semiring R₁] [inst_1 : Semiring R₂] [inst_2 : Semiring R₃]
  {σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_3 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {ι : Type u_6}
  {M₁ : ι → Type u_7} {N₂ : Type u_9} {N₃ : Type u_11} [inst_4 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_5 : AddCommMonoid N₂] [inst_6 : AddCommMonoid N₃] [inst_7 : (i : ι) → Module R₁ (M₁ i)] [inst_8 : Module R₂ N₂]
  [inst_9 : Module R₃ N₃] (g : N₂ →ₛₗ[σ₂₃] N₃) (f₁ f₂ : (Π (i : ι), M₁ i) →ₘₛₗ[σ₁₂] N₂),
  g.compMultilinearMap (f₁ + f₂) = g.compMultilinearMap f₁ + g.compMultilinearMap f₂

theorem LinearMap.add_compMultilinearMap E0 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} {R₃ : Type u_3} [inst : Semiring R₁] [inst_1 : Semiring R₂] [inst_2 : Semiring R₃]
  {σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_3 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {ι : Type u_6}
  {M₁ : ι → Type u_7} {N₂ : Type u_9} {N₃ : Type u_11} [inst_4 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_5 : AddCommMonoid N₂] [inst_6 : AddCommMonoid N₃] [inst_7 : (i : ι) → Module R₁ (M₁ i)] [inst_8 : Module R₂ N₂]
  [inst_9 : Module R₃ N₃] (g₁ g₂ : N₂ →ₛₗ[σ₂₃] N₃) (f : (Π (i : ι), M₁ i) →ₘₛₗ[σ₁₂] N₂),
  (g₁ + g₂).compMultilinearMap f = g₁.compMultilinearMap f + g₂.compMultilinearMap f

theorem LinearMap.compMultilinearMap_smul E0 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} {S : Type u_5} [inst : Semiring R₁] [inst_1 : Semiring R₂] {σ₁₂ : R₁ →+* R₂}
  {ι : Type u_6} {M₁ : ι → Type u_7} {N₂ : Type u_9} {N₂' : Type u_10} [inst_2 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_3 : AddCommMonoid N₂] [inst_4 : AddCommMonoid N₂'] [inst_5 : (i : ι) → Module R₁ (M₁ i)] [inst_6 : Module R₂ N₂]
  [inst_7 : Module R₂ N₂'] [inst_8 : DistribSMul S N₂] [inst_9 : DistribSMul S N₂'] [inst_10 : SMulCommClass R₂ S N₂]
  [inst_11 : SMulCommClass R₂ S N₂'] [LinearMap.CompatibleSMul N₂ N₂' S R₂] (g : N₂ →ₗ[R₂] N₂') (s : S)
  (f : (Π (i : ι), M₁ i) →ₘₛₗ[σ₁₂] N₂), g.compMultilinearMap (s • f) = s • g.compMultilinearMap f

theorem LinearMap.compMultilinearMap_smulₛₗ E0 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} {R₃ : Type u_3} [inst : Semiring R₁] [inst_1 : Semiring R₂] [inst_2 : Semiring R₃]
  {σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_3 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {ι : Type u_6}
  {M₁ : ι → Type u_7} {N₂ : Type u_9} {N₃ : Type u_11} [inst_4 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_5 : AddCommMonoid N₂] [inst_6 : AddCommMonoid N₃] [inst_7 : (i : ι) → Module R₁ (M₁ i)] [inst_8 : Module R₂ N₂]
  [inst_9 : Module R₃ N₃] [inst_10 : SMulCommClass R₂ R₂ N₂] [inst_11 : SMulCommClass R₃ R₃ N₃] (g : N₂ →ₛₗ[σ₂₃] N₃)
  (r : R₂) (f : (Π (i : ι), M₁ i) →ₘₛₗ[σ₁₂] N₂), g.compMultilinearMap (r • f) = σ₂₃ r • g.compMultilinearMap f

theorem LinearMap.smul_compMultilinearMap E0 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} {R₃ : Type u_3} {S : Type u_5} [inst : Semiring R₁] [inst_1 : Semiring R₂]
  [inst_2 : Semiring R₃] {σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_3 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃]
  {ι : Type u_6} {M₁ : ι → Type u_7} {N₂ : Type u_9} {N₃ : Type u_11} [inst_4 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_5 : AddCommMonoid N₂] [inst_6 : AddCommMonoid N₃] [inst_7 : (i : ι) → Module R₁ (M₁ i)] [inst_8 : Module R₂ N₂]
  [inst_9 : Module R₃ N₃] [inst_10 : Monoid S] [inst_11 : DistribMulAction S N₃] [inst_12 : SMulCommClass R₃ S N₃]
  (g : N₂ →ₛₗ[σ₂₃] N₃) (s : S) (f : (Π (i : ι), M₁ i) →ₘₛₗ[σ₁₂] N₂),
  (s • g).compMultilinearMap f = s • g.compMultilinearMap f

theorem LinearMap.subtype_compMultilinearMap_codRestrict E0 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} [inst : Semiring R₁] [inst_1 : Semiring R₂] {σ₁₂ : R₁ →+* R₂} {ι : Type u_6}
  {M₁ : ι → Type u_7} {N₂ : Type u_9} [inst_2 : (i : ι) → AddCommMonoid (M₁ i)] [inst_3 : AddCommMonoid N₂]
  [inst_4 : (i : ι) → Module R₁ (M₁ i)] [inst_5 : Module R₂ N₂] (f : (Π (i : ι), M₁ i) →ₘₛₗ[σ₁₂] N₂)
  (p : Submodule R₂ N₂) (h : ∀ (v : (i : ι) → M₁ i), f v ∈ p), p.subtype.compMultilinearMap (f.codRestrict p h) = f

The multilinear version of LinearMap.subtype_comp_codRestrict

theorem LinearMap.compMultilinearMap_codRestrict E0 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} {R₃ : Type u_3} [inst : Semiring R₁] [inst_1 : Semiring R₂] [inst_2 : Semiring R₃]
  {σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_3 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {ι : Type u_6}
  {M₁ : ι → Type u_7} {N₂ : Type u_9} {N₃ : Type u_11} [inst_4 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_5 : AddCommMonoid N₂] [inst_6 : AddCommMonoid N₃] [inst_7 : (i : ι) → Module R₁ (M₁ i)] [inst_8 : Module R₂ N₂]
  [inst_9 : Module R₃ N₃] (g : N₂ →ₛₗ[σ₂₃] N₃) (f : (Π (i : ι), M₁ i) →ₘₛₗ[σ₁₂] N₂) (p : Submodule R₃ N₃)
  (h : ∀ (c : N₂), g c ∈ p),
  (LinearMap.codRestrict p g h).compMultilinearMap f = (g.compMultilinearMap f).codRestrict p ⋯

The multilinear version of LinearMap.comp_codRestrict

theorem LinearMap.compMultilinearMap_domDomCongr E0 #

∀ {R₂ : Type u_2} {R₃ : Type u_3} {R₄ : Type u_4} [inst : Semiring R₂] [inst_1 : Semiring R₃] [inst_2 : Semiring R₄]
  {σ₂₃ : R₂ →+* R₃} {σ₃₄ : R₃ →+* R₄} {σ₂₄ : R₂ →+* R₄} [inst_3 : RingHomCompTriple σ₂₃ σ₃₄ σ₂₄] {N₂ : Type u_9}
  {N₃ : Type u_11} {N₄ : Type u_12} [inst_4 : AddCommMonoid N₂] [inst_5 : AddCommMonoid N₃] [inst_6 : AddCommMonoid N₄]
  [inst_7 : Module R₂ N₂] [inst_8 : Module R₃ N₃] [inst_9 : Module R₄ N₄] {ι₁ : Type u_13} {ι₂ : Type u_14}
  (e : ι₁ ≃ ι₂) (g : N₃ →ₛₗ[σ₃₄] N₄) (f : (ι₁ → N₂) →ₘₛₗ[σ₂₃] N₃),
  MultilinearMap.domDomCongr e (g.compMultilinearMap f) = g.compMultilinearMap (MultilinearMap.domDomCongr e f)

instance MultilinearMap.instDistribMulActionOfSMulCommClass E0 #

{R₁ : Type u_1} →
  {R₂ : Type u_2} →
    {S : Type u_5} →
      [inst : Semiring R₁] →
        [inst_1 : Semiring R₂] →
          {σ₁₂ : R₁ →+* R₂} →
            {ι : Type u_6} →
              {M₁ : ι → Type u_7} →
                {N₂ : Type u_9} →
                  [inst_2 : (i : ι) → AddCommMonoid (M₁ i)] →
                    [inst_3 : AddCommMonoid N₂] →
                      [inst_4 : (i : ι) → Module R₁ (M₁ i)] →
                        [inst_5 : Module R₂ N₂] →
                          [inst_6 : Monoid S] →
                            [inst_7 : DistribMulAction S N₂] →
                              [SMulCommClass R₂ S N₂] → DistribMulAction S ((Π (i : ι), M₁ i) →ₘₛₗ[σ₁₂] N₂)

instance MultilinearMap.instModule E0 #

{R₁ : Type u_1} →
  {R₂ : Type u_2} →
    {S : Type u_5} →
      [inst : Semiring R₁] →
        [inst_1 : Semiring R₂] →
          {σ₁₂ : R₁ →+* R₂} →
            {ι : Type u_6} →
              {M₁ : ι → Type u_7} →
                {N₂ : Type u_9} →
                  [inst_2 : (i : ι) → AddCommMonoid (M₁ i)] →
                    [inst_3 : AddCommMonoid N₂] →
                      [inst_4 : (i : ι) → Module R₁ (M₁ i)] →
                        [inst_5 : Module R₂ N₂] →
                          [inst_6 : Semiring S] →
                            [inst_7 : Module S N₂] → [SMulCommClass R₂ S N₂] → Module S ((Π (i : ι), M₁ i) →ₘₛₗ[σ₁₂] N₂)

The space of multilinear maps over an algebra over R₂ is a module over S, for the pointwise addition and scalar multiplication.

instance MultilinearMap.instIsTorsionFree E0 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} {S : Type u_5} [inst : Semiring R₁] [inst_1 : Semiring R₂] {σ₁₂ : R₁ →+* R₂}
  {ι : Type u_6} {M₁ : ι → Type u_7} {N₂ : Type u_9} [inst_2 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_3 : AddCommMonoid N₂] [inst_4 : (i : ι) → Module R₁ (M₁ i)] [inst_5 : Module R₂ N₂] [inst_6 : Semiring S]
  [inst_7 : Module S N₂] [inst_8 : SMulCommClass R₂ S N₂] [Module.IsTorsionFree S N₂],
  Module.IsTorsionFree S ((Π (i : ι), M₁ i) →ₘₛₗ[σ₁₂] N₂)

def LinearMap.compMultilinearMapₗ E1 #

{R₁ : Type u_1} →
  {R₂ : Type u_2} →
    (S : Type u_5) →
      [inst : Semiring R₁] →
        [inst_1 : Semiring R₂] →
          {σ₁₂ : R₁ →+* R₂} →
            {ι : Type u_6} →
              {M₁ : ι → Type u_7} →
                {N₂ : Type u_9} →
                  {N₂' : Type u_10} →
                    [inst_2 : (i : ι) → AddCommMonoid (M₁ i)] →
                      [inst_3 : AddCommMonoid N₂] →
                        [inst_4 : AddCommMonoid N₂'] →
                          [inst_5 : (i : ι) → Module R₁ (M₁ i)] →
                            [inst_6 : Module R₂ N₂] →
                              [inst_7 : Module R₂ N₂'] →
                                [inst_8 : Semiring S] →
                                  [inst_9 : Module S N₂] →
                                    [inst_10 : SMulCommClass R₂ S N₂] →
                                      [inst_11 : Module S N₂'] →
                                        [inst_12 : SMulCommClass R₂ S N₂'] →
                                          [LinearMap.CompatibleSMul N₂ N₂' S R₂] →
                                            (N₂ →ₗ[R₂] N₂') →
                                              ((Π (i : ι), M₁ i) →ₘₛₗ[σ₁₂] N₂) →ₗ[S] (Π (i : ι), M₁ i) →ₘₛₗ[σ₁₂] N₂'

LinearMap.compMultilinearMap as an S-linear map.

theorem LinearMap.compMultilinearMapₗ_apply E0 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} (S : Type u_5) [inst : Semiring R₁] [inst_1 : Semiring R₂] {σ₁₂ : R₁ →+* R₂}
  {ι : Type u_6} {M₁ : ι → Type u_7} {N₂ : Type u_9} {N₂' : Type u_10} [inst_2 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_3 : AddCommMonoid N₂] [inst_4 : AddCommMonoid N₂'] [inst_5 : (i : ι) → Module R₁ (M₁ i)] [inst_6 : Module R₂ N₂]
  [inst_7 : Module R₂ N₂'] [inst_8 : Semiring S] [inst_9 : Module S N₂] [inst_10 : SMulCommClass R₂ S N₂]
  [inst_11 : Module S N₂'] [inst_12 : SMulCommClass R₂ S N₂'] [inst_13 : LinearMap.CompatibleSMul N₂ N₂' S R₂]
  (g : N₂ →ₗ[R₂] N₂') (f : (Π (i : ι), M₁ i) →ₘₛₗ[σ₁₂] N₂),
  (LinearMap.compMultilinearMapₗ S g) f = g.compMultilinearMap f

def LinearEquiv.multilinearMapCongrRight E1 #

{R₁ : Type u_1} →
  {R₂ : Type u_2} →
    (S : Type u_5) →
      [inst : Semiring R₁] →
        [inst_1 : Semiring R₂] →
          {σ₁₂ : R₁ →+* R₂} →
            {ι : Type u_6} →
              {M₁ : ι → Type u_7} →
                {N₂ : Type u_9} →
                  {N₂' : Type u_10} →
                    [inst_2 : (i : ι) → AddCommMonoid (M₁ i)] →
                      [inst_3 : AddCommMonoid N₂] →
                        [inst_4 : AddCommMonoid N₂'] →
                          [inst_5 : (i : ι) → Module R₁ (M₁ i)] →
                            [inst_6 : Module R₂ N₂] →
                              [inst_7 : Module R₂ N₂'] →
                                [inst_8 : Semiring S] →
                                  [inst_9 : Module S N₂] →
                                    [inst_10 : SMulCommClass R₂ S N₂] →
                                      [inst_11 : Module S N₂'] →
                                        [inst_12 : SMulCommClass R₂ S N₂'] →
                                          [LinearMap.CompatibleSMul N₂ N₂' S R₂] →
                                            [LinearMap.CompatibleSMul N₂' N₂ S R₂] →
                                              (N₂ ≃ₗ[R₂] N₂') →
                                                ((Π (i : ι), M₁ i) →ₘₛₗ[σ₁₂] N₂) ≃ₗ[S] (Π (i : ι), M₁ i) →ₘₛₗ[σ₁₂] N₂'

An isomorphism of multilinear maps given an isomorphism between their codomains.

This is LinearMap.compMultilinearMap as an S-linear equivalence, and a multilinear version of LinearEquiv.congrRight.

theorem LinearEquiv.multilinearMapCongrRight_apply E0 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} (S : Type u_5) [inst : Semiring R₁] [inst_1 : Semiring R₂] {σ₁₂ : R₁ →+* R₂}
  {ι : Type u_6} {M₁ : ι → Type u_7} {N₂ : Type u_9} {N₂' : Type u_10} [inst_2 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_3 : AddCommMonoid N₂] [inst_4 : AddCommMonoid N₂'] [inst_5 : (i : ι) → Module R₁ (M₁ i)] [inst_6 : Module R₂ N₂]
  [inst_7 : Module R₂ N₂'] [inst_8 : Semiring S] [inst_9 : Module S N₂] [inst_10 : SMulCommClass R₂ S N₂]
  [inst_11 : Module S N₂'] [inst_12 : SMulCommClass R₂ S N₂'] [inst_13 : LinearMap.CompatibleSMul N₂ N₂' S R₂]
  [inst_14 : LinearMap.CompatibleSMul N₂' N₂ S R₂] (g : N₂ ≃ₗ[R₂] N₂') (f : (Π (i : ι), M₁ i) →ₘₛₗ[σ₁₂] N₂),
  (LinearEquiv.multilinearMapCongrRight S g) f = (↑g).compMultilinearMap f

theorem LinearEquiv.multilinearMapCongrRight_symm_apply E0 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} (S : Type u_5) [inst : Semiring R₁] [inst_1 : Semiring R₂] {σ₁₂ : R₁ →+* R₂}
  {ι : Type u_6} {M₁ : ι → Type u_7} {N₂ : Type u_9} {N₂' : Type u_10} [inst_2 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_3 : AddCommMonoid N₂] [inst_4 : AddCommMonoid N₂'] [inst_5 : (i : ι) → Module R₁ (M₁ i)] [inst_6 : Module R₂ N₂]
  [inst_7 : Module R₂ N₂'] [inst_8 : Semiring S] [inst_9 : Module S N₂] [inst_10 : SMulCommClass R₂ S N₂]
  [inst_11 : Module S N₂'] [inst_12 : SMulCommClass R₂ S N₂'] [inst_13 : LinearMap.CompatibleSMul N₂ N₂' S R₂]
  [inst_14 : LinearMap.CompatibleSMul N₂' N₂ S R₂] (g : N₂ ≃ₗ[R₂] N₂') (a : (Π (i : ι), M₁ i) →ₘₛₗ[σ₁₂] N₂'),
  (LinearEquiv.multilinearMapCongrRight S g).symm a = (↑g.symm).compMultilinearMap a

def MultilinearMap.ofSubsingletonₗ E1 #

{R₁ : Type u_1} →
  {R₂ : Type u_2} →
    (S : Type u_5) →
      [inst : Semiring R₁] →
        [inst_1 : Semiring R₂] →
          (σ₁₂ : R₁ →+* R₂) →
            {ι : Type u_6} →
              (N₁ : Type u_8) →
                (N₂ : Type u_9) →
                  [inst_2 : AddCommMonoid N₁] →
                    [inst_3 : AddCommMonoid N₂] →
                      [inst_4 : Module R₁ N₁] →
                        [inst_5 : Module R₂ N₂] →
                          [inst_6 : Semiring S] →
                            [inst_7 : Module S N₂] →
                              [inst_8 : SMulCommClass R₂ S N₂] →
                                [Subsingleton ι] → ι → (N₁ →ₛₗ[σ₁₂] N₂) ≃ₗ[S] (ι → N₁) →ₘₛₗ[σ₁₂] N₂

Linear equivalence between linear maps N₁ →ₛₗ[σ₁₂] N₂ and one-multilinear maps (ι → N₁) →ₘₛₗ[σ₁₂] N₂.

theorem MultilinearMap.ofSubsingletonₗ_apply E0 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} (S : Type u_5) [inst : Semiring R₁] [inst_1 : Semiring R₂] (σ₁₂ : R₁ →+* R₂)
  {ι : Type u_6} (N₁ : Type u_8) (N₂ : Type u_9) [inst_2 : AddCommMonoid N₁] [inst_3 : AddCommMonoid N₂]
  [inst_4 : Module R₁ N₁] [inst_5 : Module R₂ N₂] [inst_6 : Semiring S] [inst_7 : Module S N₂]
  [inst_8 : SMulCommClass R₂ S N₂] [inst_9 : Subsingleton ι] (i : ι) (a : N₁ →ₛₗ[σ₁₂] N₂),
  (MultilinearMap.ofSubsingletonₗ S σ₁₂ N₁ N₂ i) a = (MultilinearMap.ofSubsingleton σ₁₂ N₁ N₂ i) a

theorem MultilinearMap.ofSubsingletonₗ_symm_apply E0 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} (S : Type u_5) [inst : Semiring R₁] [inst_1 : Semiring R₂] (σ₁₂ : R₁ →+* R₂)
  {ι : Type u_6} (N₁ : Type u_8) (N₂ : Type u_9) [inst_2 : AddCommMonoid N₁] [inst_3 : AddCommMonoid N₂]
  [inst_4 : Module R₁ N₁] [inst_5 : Module R₂ N₂] [inst_6 : Semiring S] [inst_7 : Module S N₂]
  [inst_8 : SMulCommClass R₂ S N₂] [inst_9 : Subsingleton ι] (i : ι) (a : (ι → N₁) →ₘₛₗ[σ₁₂] N₂),
  (MultilinearMap.ofSubsingletonₗ S σ₁₂ N₁ N₂ i).symm a = (MultilinearMap.ofSubsingleton σ₁₂ N₁ N₂ i).symm a

def MultilinearMap.domDomCongrLinearEquiv' E1 #

{R₁ : Type u_1} →
  {R₂ : Type u_2} →
    (S : Type u_5) →
      [inst : Semiring R₁] →
        [inst_1 : Semiring R₂] →
          (σ₁₂ : R₁ →+* R₂) →
            {ι : Type u_6} →
              (M₁ : ι → Type u_7) →
                (N₂ : Type u_9) →
                  [inst_2 : (i : ι) → AddCommMonoid (M₁ i)] →
                    [inst_3 : AddCommMonoid N₂] →
                      [inst_4 : (i : ι) → Module R₁ (M₁ i)] →
                        [inst_5 : Module R₂ N₂] →
                          [inst_6 : Semiring S] →
                            [inst_7 : Module S N₂] →
                              [inst_8 : SMulCommClass R₂ S N₂] →
                                {ι' : Type u_11} →
                                  (e : ι ≃ ι') →
                                    ((Π (i : ι), M₁ i) →ₘₛₗ[σ₁₂] N₂) ≃ₗ[S] (Π (i : ι'), M₁ (e.symm i)) →ₘₛₗ[σ₁₂] N₂

The dependent version of MultilinearMap.domDomCongrLinearEquiv.

theorem MultilinearMap.domDomCongrLinearEquiv'_symm_apply E0 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} (S : Type u_5) [inst : Semiring R₁] [inst_1 : Semiring R₂] (σ₁₂ : R₁ →+* R₂)
  {ι : Type u_6} (M₁ : ι → Type u_7) (N₂ : Type u_9) [inst_2 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_3 : AddCommMonoid N₂] [inst_4 : (i : ι) → Module R₁ (M₁ i)] [inst_5 : Module R₂ N₂] [inst_6 : Semiring S]
  [inst_7 : Module S N₂] [inst_8 : SMulCommClass R₂ S N₂] {ι' : Type u_11} (e : ι ≃ ι')
  (f : (Π (i : ι'), M₁ (e.symm i)) →ₘₛₗ[σ₁₂] N₂),
  (MultilinearMap.domDomCongrLinearEquiv' S σ₁₂ M₁ N₂ e).symm f =
    { toFun := ⇑f ∘ ⇑(Equiv.piCongrLeft' M₁ e), map_update_add' := ⋯, map_update_smul' := ⋯ }

theorem MultilinearMap.domDomCongrLinearEquiv'_apply E0 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} (S : Type u_5) [inst : Semiring R₁] [inst_1 : Semiring R₂] (σ₁₂ : R₁ →+* R₂)
  {ι : Type u_6} (M₁ : ι → Type u_7) (N₂ : Type u_9) [inst_2 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_3 : AddCommMonoid N₂] [inst_4 : (i : ι) → Module R₁ (M₁ i)] [inst_5 : Module R₂ N₂] [inst_6 : Semiring S]
  [inst_7 : Module S N₂] [inst_8 : SMulCommClass R₂ S N₂] {ι' : Type u_11} (e : ι ≃ ι')
  (f : (Π (i : ι), M₁ i) →ₘₛₗ[σ₁₂] N₂),
  (MultilinearMap.domDomCongrLinearEquiv' S σ₁₂ M₁ N₂ e) f =
    { toFun := ⇑f ∘ ⇑(Equiv.piCongrLeft' M₁ e).symm, map_update_add' := ⋯, map_update_smul' := ⋯ }

def MultilinearMap.constLinearEquivOfIsEmpty E1 #

{R₁ : Type u_1} →
  {R₂ : Type u_2} →
    (S : Type u_5) →
      [inst : Semiring R₁] →
        [inst_1 : Semiring R₂] →
          (σ₁₂ : R₁ →+* R₂) →
            {ι : Type u_6} →
              (M₁ : ι → Type u_7) →
                (N₂ : Type u_9) →
                  [inst_2 : (i : ι) → AddCommMonoid (M₁ i)] →
                    [inst_3 : AddCommMonoid N₂] →
                      [inst_4 : (i : ι) → Module R₁ (M₁ i)] →
                        [inst_5 : Module R₂ N₂] →
                          [inst_6 : Semiring S] →
                            [inst_7 : Module S N₂] →
                              [inst_8 : SMulCommClass R₂ S N₂] → [IsEmpty ι] → N₂ ≃ₗ[S] (Π (i : ι), M₁ i) →ₘₛₗ[σ₁₂] N₂

The space of constant maps is equivalent to the space of maps that are multilinear with respect to an empty family.

theorem MultilinearMap.constLinearEquivOfIsEmpty_apply E0 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} (S : Type u_5) [inst : Semiring R₁] [inst_1 : Semiring R₂] (σ₁₂ : R₁ →+* R₂)
  {ι : Type u_6} (M₁ : ι → Type u_7) (N₂ : Type u_9) [inst_2 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_3 : AddCommMonoid N₂] [inst_4 : (i : ι) → Module R₁ (M₁ i)] [inst_5 : Module R₂ N₂] [inst_6 : Semiring S]
  [inst_7 : Module S N₂] [inst_8 : SMulCommClass R₂ S N₂] [inst_9 : IsEmpty ι] (m : N₂),
  (MultilinearMap.constLinearEquivOfIsEmpty S σ₁₂ M₁ N₂) m = MultilinearMap.constOfIsEmpty σ₁₂ M₁ m

theorem MultilinearMap.constLinearEquivOfIsEmpty_symm_apply E0 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} (S : Type u_5) [inst : Semiring R₁] [inst_1 : Semiring R₂] (σ₁₂ : R₁ →+* R₂)
  {ι : Type u_6} (M₁ : ι → Type u_7) (N₂ : Type u_9) [inst_2 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_3 : AddCommMonoid N₂] [inst_4 : (i : ι) → Module R₁ (M₁ i)] [inst_5 : Module R₂ N₂] [inst_6 : Semiring S]
  [inst_7 : Module S N₂] [inst_8 : SMulCommClass R₂ S N₂] [inst_9 : IsEmpty ι] (f : (Π (i : ι), M₁ i) →ₘₛₗ[σ₁₂] N₂),
  (MultilinearMap.constLinearEquivOfIsEmpty S σ₁₂ M₁ N₂).symm f = f 0

def MultilinearMap.domDomCongrLinearEquiv E1 #

{R₁ : Type u_1} →
  {R₂ : Type u_2} →
    (S : Type u_5) →
      [inst : Semiring R₁] →
        [inst_1 : Semiring R₂] →
          (σ₁₂ : R₁ →+* R₂) →
            (N₁ : Type u_8) →
              (N₂ : Type u_9) →
                [inst_2 : AddCommMonoid N₁] →
                  [inst_3 : AddCommMonoid N₂] →
                    [inst_4 : Module R₁ N₁] →
                      [inst_5 : Module R₂ N₂] →
                        [inst_6 : Semiring S] →
                          [inst_7 : Module S N₂] →
                            [inst_8 : SMulCommClass R₂ S N₂] →
                              {ι₁ : Type u_11} →
                                {ι₂ : Type u_12} → ι₁ ≃ ι₂ → ((ι₁ → N₁) →ₘₛₗ[σ₁₂] N₂) ≃ₗ[S] (ι₂ → N₁) →ₘₛₗ[σ₁₂] N₂

MultilinearMap.domDomCongr as a LinearEquiv.

theorem MultilinearMap.domDomCongrLinearEquiv_symm_apply E0 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} (S : Type u_5) [inst : Semiring R₁] [inst_1 : Semiring R₂] (σ₁₂ : R₁ →+* R₂)
  (N₁ : Type u_8) (N₂ : Type u_9) [inst_2 : AddCommMonoid N₁] [inst_3 : AddCommMonoid N₂] [inst_4 : Module R₁ N₁]
  [inst_5 : Module R₂ N₂] [inst_6 : Semiring S] [inst_7 : Module S N₂] [inst_8 : SMulCommClass R₂ S N₂] {ι₁ : Type u_11}
  {ι₂ : Type u_12} (e : ι₁ ≃ ι₂) (a : (ι₂ → N₁) →ₘₛₗ[σ₁₂] N₂),
  (MultilinearMap.domDomCongrLinearEquiv S σ₁₂ N₁ N₂ e).symm a = (MultilinearMap.domDomCongrEquiv e).invFun a

theorem MultilinearMap.domDomCongrLinearEquiv_apply E0 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} (S : Type u_5) [inst : Semiring R₁] [inst_1 : Semiring R₂] (σ₁₂ : R₁ →+* R₂)
  (N₁ : Type u_8) (N₂ : Type u_9) [inst_2 : AddCommMonoid N₁] [inst_3 : AddCommMonoid N₂] [inst_4 : Module R₁ N₁]
  [inst_5 : Module R₂ N₂] [inst_6 : Semiring S] [inst_7 : Module S N₂] [inst_8 : SMulCommClass R₂ S N₂] {ι₁ : Type u_11}
  {ι₂ : Type u_12} (e : ι₁ ≃ ι₂) (a : (ι₁ → N₁) →ₘₛₗ[σ₁₂] N₂),
  (MultilinearMap.domDomCongrLinearEquiv S σ₁₂ N₁ N₂ e) a = (MultilinearMap.domDomCongrEquiv e).toFun a

def MultilinearMap.domDomRestrictₗ E1 #

{R₂ : Type u_2} →
  {R₃ : Type u_3} →
    [inst : Semiring R₂] →
      [inst_1 : CommSemiring R₃] →
        {σ₂₃ : R₂ →+* R₃} →
          {ι : Type u_4} →
            {M₂ : ι → Type u_6} →
              {N₃ : Type u_7} →
                [inst_2 : (i : ι) → AddCommMonoid (M₂ i)] →
                  [inst_3 : AddCommMonoid N₃] →
                    [inst_4 : (i : ι) → Module R₂ (M₂ i)] →
                      [inst_5 : Module R₃ N₃] →
                        ((Π (i : ι), M₂ i) →ₘₛₗ[σ₂₃] N₃) →
                          (P : ι → Prop) →
                            [DecidablePred P] →
                              (Π (i : { a // ¬P a }), M₂ ↑i) →ₘₛₗ[σ₂₃] (Π (i : { a // P a }), M₂ ↑i) →ₘₛₗ[σ₂₃] N₃

Given a predicate P, one may associate to a multilinear map f a multilinear map from the elements satisfying P to the multilinear maps on elements not satisfying P. In other words, splitting the variables into two subsets one gets a multilinear map into multilinear maps. This is a linear map version of the function MultilinearMap.domDomRestrict.

theorem MultilinearMap.iteratedFDeriv_aux E0 #

∀ {ι : Type u_10} {M₁ : ι → Type u_8} {α : Type u_9} [inst : DecidableEq α] (s : Set ι)
  [inst_1 : DecidableEq { x // x ∈ s }] (e : α ≃ ↑s) (m : α → (i : ι) → M₁ i) (a : α) (z : (i : ι) → M₁ i),
  (fun i ↦ Function.update m a z (e.symm i) ↑i) = fun i ↦ Function.update (fun j ↦ m (e.symm j) ↑j) (e a) (z ↑(e a)) i

def MultilinearMap.iteratedFDerivComponent E1 #

{R₂ : Type u_2} →
  {R₃ : Type u_3} →
    [inst : Semiring R₂] →
      [inst_1 : CommSemiring R₃] →
        {σ₂₃ : R₂ →+* R₃} →
          {ι : Type u_4} →
            {M₂ : ι → Type u_6} →
              {N₃ : Type u_7} →
                [inst_2 : (i : ι) → AddCommMonoid (M₂ i)] →
                  [inst_3 : AddCommMonoid N₃] →
                    [inst_4 : (i : ι) → Module R₂ (M₂ i)] →
                      [inst_5 : Module R₃ N₃] →
                        {α : Type u_8} →
                          ((Π (i : ι), M₂ i) →ₘₛₗ[σ₂₃] N₃) →
                            {s : Set ι} →
                              α ≃ ↑s →
                                [DecidablePred fun x ↦ x ∈ s] →
                                  (Π (i : { a // a ∉ s }), M₂ ↑i) →ₘₛₗ[σ₂₃] (α → (i : ι) → M₂ i) →ₘₛₗ[σ₂₃] N₃

One of the components of the iterated derivative of a multilinear map. Given a bijection e between a type α (typically Fin k) and a subset s of ι, this component is a multilinear map of k vectors v₁, ..., vₖ, mapping them to f (x₁, (v_{e.symm 2})₂, x₃, ...), where at indices i in s one uses the i-th coordinate of the vector v_{e.symm i} and otherwise one uses the i-th coordinate of a reference vector x. This is multilinear in the components of x outside of s, and in the v_j.

def MultilinearMap.iteratedFDeriv E1 #

{R₂ : Type u_2} →
  {R₃ : Type u_3} →
    [inst : Semiring R₂] →
      [inst_1 : CommSemiring R₃] →
        {σ₂₃ : R₂ →+* R₃} →
          {ι : Type u_4} →
            {M₂ : ι → Type u_6} →
              {N₃ : Type u_7} →
                [inst_2 : (i : ι) → AddCommMonoid (M₂ i)] →
                  [inst_3 : AddCommMonoid N₃] →
                    [inst_4 : (i : ι) → Module R₂ (M₂ i)] →
                      [inst_5 : Module R₃ N₃] →
                        [Fintype ι] →
                          ((Π (i : ι), M₂ i) →ₘₛₗ[σ₂₃] N₃) →
                            (k : ℕ) → ((i : ι) → M₂ i) → (Fin k → (i : ι) → M₂ i) →ₘₛₗ[σ₂₃] N₃

The k-th iterated derivative of a multilinear map f at the point x. It is a multilinear map of k vectors v₁, ..., vₖ (with the same type as x), mapping them to ∑ f (x₁, (v_{i₁})₂, x₃, ...), where at each index j one uses either xⱼ or one of the (vᵢ)ⱼ, and each vᵢ has to be used exactly once. The sum is parameterized by the embeddings of Fin k in the index type ι (or, equivalently, by the subsets s of ι of cardinality k and then the bijections between Fin k and s).

For the continuous version, see ContinuousMultilinearMap.iteratedFDeriv.

def MultilinearMap.compLinearMapₗ E1 #

{R₁ : Type u_1} →
  {R₂ : Type u_2} →
    {R₃ : Type u_3} →
      [inst : Semiring R₁] →
        [inst_1 : Semiring R₂] →
          [inst_2 : CommSemiring R₃] →
            {σ₁₂ : R₁ →+* R₂} →
              {σ₂₃ : R₂ →+* R₃} →
                {σ₁₃ : R₁ →+* R₃} →
                  [RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] →
                    {ι : Type u_4} →
                      {M₁ : ι → Type u_5} →
                        {M₂ : ι → Type u_6} →
                          {N₃ : Type u_7} →
                            [inst_4 : (i : ι) → AddCommMonoid (M₁ i)] →
                              [inst_5 : (i : ι) → AddCommMonoid (M₂ i)] →
                                [inst_6 : AddCommMonoid N₃] →
                                  [inst_7 : (i : ι) → Module R₁ (M₁ i)] →
                                    [inst_8 : (i : ι) → Module R₂ (M₂ i)] →
                                      [inst_9 : Module R₃ N₃] →
                                        ((i : ι) → M₁ i →ₛₗ[σ₁₂] M₂ i) →
                                          ((Π (i : ι), M₂ i) →ₘₛₗ[σ₂₃] N₃) →ₗ[R₃] (Π (i : ι), M₁ i) →ₘₛₗ[σ₁₃] N₃

If f is a collection of linear maps, then the construction MultilinearMap.compLinearMap sending a multilinear map g to g (f₁ ⬝ , ..., fₙ ⬝ ) is linear in g.

theorem MultilinearMap.compLinearMapₗ_apply E0 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} {R₃ : Type u_3} [inst : Semiring R₁] [inst_1 : Semiring R₂] [inst_2 : CommSemiring R₃]
  {σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_3 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {ι : Type u_4}
  {M₁ : ι → Type u_5} {M₂ : ι → Type u_6} {N₃ : Type u_7} [inst_4 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_5 : (i : ι) → AddCommMonoid (M₂ i)] [inst_6 : AddCommMonoid N₃] [inst_7 : (i : ι) → Module R₁ (M₁ i)]
  [inst_8 : (i : ι) → Module R₂ (M₂ i)] [inst_9 : Module R₃ N₃] (f : (i : ι) → M₁ i →ₛₗ[σ₁₂] M₂ i)
  (g : (Π (i : ι), M₂ i) →ₘₛₗ[σ₂₃] N₃), (MultilinearMap.compLinearMapₗ f) g = g.compLinearMap f

def LinearEquiv.multilinearMapCongrLeft E1 #

{R₁ : Type u_1} →
  {R₂ : Type u_2} →
    {R₃ : Type u_3} →
      [inst : Semiring R₁] →
        [inst_1 : Semiring R₂] →
          [inst_2 : CommSemiring R₃] →
            {σ₁₂ : R₁ →+* R₂} →
              {σ₂₃ : R₂ →+* R₃} →
                {σ₁₃ : R₁ →+* R₃} →
                  [RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] →
                    {ι : Type u_4} →
                      {M₁ : ι → Type u_5} →
                        {M₂ : ι → Type u_6} →
                          {N₃ : Type u_7} →
                            [inst_4 : (i : ι) → AddCommMonoid (M₁ i)] →
                              [inst_5 : (i : ι) → AddCommMonoid (M₂ i)] →
                                [inst_6 : AddCommMonoid N₃] →
                                  [inst_7 : (i : ι) → Module R₁ (M₁ i)] →
                                    [inst_8 : (i : ι) → Module R₂ (M₂ i)] →
                                      [inst_9 : Module R₃ N₃] →
                                        {σ₂₁ : R₂ →+* R₁} →
                                          [inst_10 : RingHomInvPair σ₁₂ σ₂₁] →
                                            [inst_11 : RingHomInvPair σ₂₁ σ₁₂] →
                                              [RingHomCompTriple σ₂₁ σ₁₃ σ₂₃] →
                                                ((i : ι) → M₁ i ≃ₛₗ[σ₁₂] M₂ i) →
                                                  ((Π (i : ι), M₂ i) →ₘₛₗ[σ₂₃] N₃) ≃ₗ[R₃] (Π (i : ι), M₁ i) →ₘₛₗ[σ₁₃] N₃

An isomorphism of multilinear maps given an isomorphism between their domains.

This is MultilinearMap.compLinearMap as a linear equivalence, and the multilinear version of LinearEquiv.congrLeft.

theorem LinearEquiv.multilinearMapCongrLeft_symm_apply E0 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} {R₃ : Type u_3} [inst : Semiring R₁] [inst_1 : Semiring R₂] [inst_2 : CommSemiring R₃]
  {σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_3 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {ι : Type u_4}
  {M₁ : ι → Type u_5} {M₂ : ι → Type u_6} {N₃ : Type u_7} [inst_4 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_5 : (i : ι) → AddCommMonoid (M₂ i)] [inst_6 : AddCommMonoid N₃] [inst_7 : (i : ι) → Module R₁ (M₁ i)]
  [inst_8 : (i : ι) → Module R₂ (M₂ i)] [inst_9 : Module R₃ N₃] {σ₂₁ : R₂ →+* R₁} [inst_10 : RingHomInvPair σ₁₂ σ₂₁]
  [inst_11 : RingHomInvPair σ₂₁ σ₁₂] [inst_12 : RingHomCompTriple σ₂₁ σ₁₃ σ₂₃] (e : (i : ι) → M₁ i ≃ₛₗ[σ₁₂] M₂ i)
  (a : (Π (i : ι), M₁ i) →ₘₛₗ[σ₁₃] N₃),
  (LinearEquiv.multilinearMapCongrLeft e).symm a = a.compLinearMap fun x ↦ ↑(e x).symm

theorem LinearEquiv.multilinearMapCongrLeft_apply E0 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} {R₃ : Type u_3} [inst : Semiring R₁] [inst_1 : Semiring R₂] [inst_2 : CommSemiring R₃]
  {σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃} [inst_3 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {ι : Type u_4}
  {M₁ : ι → Type u_5} {M₂ : ι → Type u_6} {N₃ : Type u_7} [inst_4 : (i : ι) → AddCommMonoid (M₁ i)]
  [inst_5 : (i : ι) → AddCommMonoid (M₂ i)] [inst_6 : AddCommMonoid N₃] [inst_7 : (i : ι) → Module R₁ (M₁ i)]
  [inst_8 : (i : ι) → Module R₂ (M₂ i)] [inst_9 : Module R₃ N₃] {σ₂₁ : R₂ →+* R₁} [inst_10 : RingHomInvPair σ₁₂ σ₂₁]
  [inst_11 : RingHomInvPair σ₂₁ σ₁₂] [inst_12 : RingHomCompTriple σ₂₁ σ₁₃ σ₂₃] (e : (i : ι) → M₁ i ≃ₛₗ[σ₁₂] M₂ i)
  (g : (Π (i : ι), M₂ i) →ₘₛₗ[σ₂₃] N₃), (LinearEquiv.multilinearMapCongrLeft e) g = g.compLinearMap fun x ↦ ↑(e x)

def MultilinearMap.compLinearMapMultilinear E1 #

{R₁ : Type u_1} →
  {R₂ : Type u_2} →
    {R₃ : Type u_3} →
      [inst : Semiring R₁] →
        [inst_1 : CommSemiring R₂] →
          [inst_2 : CommSemiring R₃] →
            {σ₁₂ : R₁ →+* R₂} →
              {σ₂₃ : R₂ →+* R₃} →
                {σ₁₃ : R₁ →+* R₃} →
                  [RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] →
                    {ι : Type u_4} →
                      {M₁ : ι → Type u_5} →
                        {M₂ : ι → Type u_6} →
                          {N₃ : Type u_8} →
                            [inst_4 : (i : ι) → AddCommMonoid (M₁ i)] →
                              [inst_5 : (i : ι) → AddCommMonoid (M₂ i)] →
                                [inst_6 : AddCommMonoid N₃] →
                                  [inst_7 : (i : ι) → Module R₁ (M₁ i)] →
                                    [inst_8 : (i : ι) → Module R₂ (M₂ i)] →
                                      [inst_9 : Module R₃ N₃] →
                                        (Π (i : ι), M₁ i →ₛₗ[σ₁₂] M₂ i) →ₘₛₗ[σ₂₃]
                                          ((Π (i : ι), M₂ i) →ₘₛₗ[σ₂₃] N₃) →ₗ[R₃] (Π (i : ι), M₁ i) →ₘₛₗ[σ₁₃] N₃

If f is a collection of linear maps, then the construction MultilinearMap.compLinearMap sending a multilinear map g to g (f₁ ⬝ , ..., fₙ ⬝ ) is linear in g and multilinear in f₁, ..., fₙ.

theorem MultilinearMap.compLinearMapMultilinear_apply E0 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} {R₃ : Type u_3} [inst : Semiring R₁] [inst_1 : CommSemiring R₂]
  [inst_2 : CommSemiring R₃] {σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃}
  [inst_3 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {ι : Type u_4} {M₁ : ι → Type u_5} {M₂ : ι → Type u_6} {N₃ : Type u_8}
  [inst_4 : (i : ι) → AddCommMonoid (M₁ i)] [inst_5 : (i : ι) → AddCommMonoid (M₂ i)] [inst_6 : AddCommMonoid N₃]
  [inst_7 : (i : ι) → Module R₁ (M₁ i)] [inst_8 : (i : ι) → Module R₂ (M₂ i)] [inst_9 : Module R₃ N₃]
  (f : (i : ι) → M₁ i →ₛₗ[σ₁₂] M₂ i), MultilinearMap.compLinearMapMultilinear f = MultilinearMap.compLinearMapₗ f

def MultilinearMap.piLinearMap E1 #

{R₁ : Type u_1} →
  {R₂ : Type u_2} →
    {R₃ : Type u_3} →
      [inst : Semiring R₁] →
        [inst_1 : CommSemiring R₂] →
          [inst_2 : CommSemiring R₃] →
            {σ₁₂ : R₁ →+* R₂} →
              {σ₂₃ : R₂ →+* R₃} →
                {σ₁₃ : R₁ →+* R₃} →
                  [RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] →
                    {ι : Type u_4} →
                      {M₁ : ι → Type u_5} →
                        {M₂ : ι → Type u_6} →
                          {N₃ : Type u_8} →
                            [inst_4 : (i : ι) → AddCommMonoid (M₁ i)] →
                              [inst_5 : (i : ι) → AddCommMonoid (M₂ i)] →
                                [inst_6 : AddCommMonoid N₃] →
                                  [inst_7 : (i : ι) → Module R₁ (M₁ i)] →
                                    [inst_8 : (i : ι) → Module R₂ (M₂ i)] →
                                      [inst_9 : Module R₃ N₃] →
                                        ((Π (i : ι), M₂ i) →ₘₛₗ[σ₂₃] N₃) →ₗ[R₃]
                                          (Π (i : ι), M₁ i →ₛₗ[σ₁₂] M₂ i) →ₘₛₗ[σ₂₃] (Π (i : ι), M₁ i) →ₘₛₗ[σ₁₃] N₃

Let M₁ᵢ be a family of R₁-modules, M₂ᵢ a family of R₂-modules and N₃ an R₃-module. Let us denote Π i, M₁ᵢ and Π i, M₂ᵢ by M₁ and M₂ respectively. If g is a multilinear map M₂ → N₃, then g can be reinterpreted as a multilinear map from Π i, M₁ᵢ ⟶ M₂ᵢ to M₁ ⟶ N₃ via (fᵢ) ↦ v ↦ g(fᵢ vᵢ).

theorem MultilinearMap.piLinearMap_apply_apply_apply E0 #

∀ {R₁ : Type u_1} {R₂ : Type u_2} {R₃ : Type u_3} [inst : Semiring R₁] [inst_1 : CommSemiring R₂]
  [inst_2 : CommSemiring R₃] {σ₁₂ : R₁ →+* R₂} {σ₂₃ : R₂ →+* R₃} {σ₁₃ : R₁ →+* R₃}
  [inst_3 : RingHomCompTriple σ₁₂ σ₂₃ σ₁₃] {ι : Type u_4} {M₁ : ι → Type u_5} {M₂ : ι → Type u_6} {N₃ : Type u_8}
  [inst_4 : (i : ι) → AddCommMonoid (M₁ i)] [inst_5 : (i : ι) → AddCommMonoid (M₂ i)] [inst_6 : AddCommMonoid N₃]
  [inst_7 : (i : ι) → Module R₁ (M₁ i)] [inst_8 : (i : ι) → Module R₂ (M₂ i)] [inst_9 : Module R₃ N₃]
  (g : (Π (i : ι), M₂ i) →ₘₛₗ[σ₂₃] N₃) (a : (i : ι) → (fun i ↦ M₁ i →ₛₗ[σ₁₂] M₂ i) i) (m : (i : ι) → M₁ i),
  ((MultilinearMap.piLinearMap g) a) m = g fun i ↦ (a i) (m i)

theorem MultilinearMap.map_piecewise_smul E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : CommSemiring S] {σ : R →+* S} {ι : Type u_3}
  {M : ι → Type u_4} {N : Type u_5} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : AddCommMonoid N]
  [inst_4 : (i : ι) → Module R (M i)] [inst_5 : Module S N] (f : (Π (i : ι), M i) →ₘₛₗ[σ] N) [inst_6 : DecidableEq ι]
  (c : ι → R) (m : (i : ι) → M i) (s : Finset ι), f (s.piecewise (fun i ↦ c i • m i) m) = (∏ i ∈ s, σ (c i)) • f m

If one multiplies by c i the coordinates in a finset s, then the image under a multilinear map is multiplied by ∏ i ∈ s, σ (c i). This is mainly an auxiliary statement to prove the result when s = univ, given in map_smul_univ, although it can be useful in its own right as it does not require the index set ι to be finite.

theorem MultilinearMap.map_smul_univ E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : CommSemiring S] {σ : R →+* S} {ι : Type u_3}
  {M : ι → Type u_4} {N : Type u_5} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : AddCommMonoid N]
  [inst_4 : (i : ι) → Module R (M i)] [inst_5 : Module S N] (f : (Π (i : ι), M i) →ₘₛₗ[σ] N) [inst_6 : Fintype ι]
  (c : ι → R) (m : (i : ι) → M i), (f fun i ↦ c i • m i) = (∏ i, σ (c i)) • f m

Multiplicativity of a multilinear map along all coordinates at the same time, writing f (fun i => c i • m i) as (∏ i, σ (c i)) • f m.

theorem MultilinearMap.map_update_smul_left E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : CommSemiring S] {σ : R →+* S} {ι : Type u_3}
  {M : ι → Type u_4} {N : Type u_5} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : AddCommMonoid N]
  [inst_4 : (i : ι) → Module R (M i)] [inst_5 : Module S N] (f : (Π (i : ι), M i) →ₘₛₗ[σ] N) [inst_6 : DecidableEq ι]
  [inst_7 : Fintype ι] (m : (i : ι) → M i) (i : ι) (c : R) (x : M i),
  f (Function.update (c • m) i x) = σ c ^ (Fintype.card ι - 1) • f (Function.update m i x)

theorem MultilinearMap.ext_ring E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : CommSemiring S] {σ : R →+* S} {ι : Type u_3}
  {N : Type u_5} [inst_2 : AddCommMonoid N] [inst_3 : Module S N] [Finite ι] ⦃f g : (ι → R) →ₘₛₗ[σ] N⦄,
  ((f fun x ↦ 1) = g fun x ↦ 1) → f = g

If two σ-multilinear maps from R are equal on 1, then they are equal.

This is the multilinear version of LinearMap.ext_ring.

theorem MultilinearMap.ext_ring_iff E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : CommSemiring S] {σ : R →+* S} {ι : Type u_3}
  {N : Type u_5} [inst_2 : AddCommMonoid N] [inst_3 : Module S N] [Finite ι] {f g : (ι → R) →ₘₛₗ[σ] N},
  f = g ↔ (f fun x ↦ 1) = g fun x ↦ 1

def MultilinearMap.mkPiAlgebra E1 #

(R : Type u_1) →
  (ι : Type u_2) →
    (A : Type u_3) →
      [inst : CommSemiring R] → [Fintype ι] → [inst_2 : CommSemiring A] → [inst_3 : Algebra R A] → (ι → A) →ₘₗ[R] A

Given an R-algebra A, mkPiAlgebra is the multilinear map on A^ι associating to m the product of all the m i.

See also MultilinearMap.mkPiAlgebraFin for a version that works with a non-commutative algebra A but requires ι = Fin n.

theorem MultilinearMap.mkPiAlgebra_apply E0 #

∀ {R : Type u_1} {ι : Type u_2} {A : Type u_3} [inst : CommSemiring R] [inst_1 : Fintype ι] [inst_2 : CommSemiring A]
  [inst_3 : Algebra R A] (m : ι → A), (MultilinearMap.mkPiAlgebra R ι A) m = ∏ i, m i

def MultilinearMap.mkPiAlgebraFin E1 #

(R : Type u_1) →
  (n : ℕ) →
    (A : Type u_2) → [inst : CommSemiring R] → [inst_1 : Semiring A] → [inst_2 : Algebra R A] → (Fin n → A) →ₘₗ[R] A

Given an R-algebra A, mkPiAlgebraFin is the multilinear map on A^n associating to m the product of all the m i.

See also MultilinearMap.mkPiAlgebra for a version that assumes [CommSemiring A] but works for A^ι with any finite type ι.

theorem MultilinearMap.mkPiAlgebraFin_apply E0 #

∀ {R : Type u_1} {n : ℕ} {A : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A]
  (m : Fin n → A), (MultilinearMap.mkPiAlgebraFin R n A) m = (List.ofFn m).prod

theorem MultilinearMap.mkPiAlgebraFin_apply_const E1 #

∀ {R : Type u_1} {n : ℕ} {A : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Algebra R A] (a : A),
  ((MultilinearMap.mkPiAlgebraFin R n A) fun x ↦ a) = a ^ n

def MultilinearMap.smulRight E1 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : Semiring S] →
        {σ : R →+* S} →
          {ι : Type u_3} →
            {M : ι → Type u_4} →
              {N : Type u_5} →
                [inst_2 : (i : ι) → AddCommMonoid (M i)] →
                  [inst_3 : AddCommMonoid N] →
                    [inst_4 : (i : ι) → Module R (M i)] →
                      [inst_5 : Module S N] → ((Π (i : ι), M i) →ₘₛₗ[σ] S) → N → (Π (i : ι), M i) →ₘₛₗ[σ] N

Given a σ-multilinear map f taking values in S, f.smulRight z is the map sending m to f m • z.

theorem MultilinearMap.smulRight_apply E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_3}
  {M : ι → Type u_4} {N : Type u_5} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : AddCommMonoid N]
  [inst_4 : (i : ι) → Module R (M i)] [inst_5 : Module S N] (f : (Π (i : ι), M i) →ₘₛₗ[σ] S) (z : N)
  (m : (i : ι) → M i), (f.smulRight z) m = f m • z

def MultilinearMap.mkPiRing E1 #

(R : Type u_6) →
  [inst : CommSemiring R] →
    (ι : Type u_7) →
      {N : Type u_9} → [inst_1 : AddCommMonoid N] → [inst_2 : Module R N] → [Fintype ι] → N → (ι → R) →ₘₗ[R] N

The canonical multilinear map on R^ι when ι is finite, associating to m the product of all the m i (multiplied by a fixed reference element z in the target module). See also mkPiAlgebra for a more general version.

theorem MultilinearMap.mkPiRing_apply E0 #

∀ {R : Type u_6} [inst : CommSemiring R] {ι : Type u_7} {N : Type u_9} [inst_1 : AddCommMonoid N] [inst_2 : Module R N]
  [inst_3 : Fintype ι] (z : N) (m : ι → R), (MultilinearMap.mkPiRing R ι z) m = (∏ i, m i) • z

theorem MultilinearMap.mkPiRing_apply_one_eq_self E1 #

∀ {R : Type u_6} [inst : CommSemiring R] {ι : Type u_7} {N : Type u_9} [inst_1 : AddCommMonoid N] [inst_2 : Module R N]
  [inst_3 : Fintype ι] (f : (ι → R) →ₘₗ[R] N), MultilinearMap.mkPiRing R ι (f fun x ↦ 1) = f

theorem MultilinearMap.mkPiRing_eq_iff E0 #

∀ {R : Type u_6} [inst : CommSemiring R] {ι : Type u_7} {N : Type u_9} [inst_1 : AddCommMonoid N] [inst_2 : Module R N]
  [inst_3 : Fintype ι] {z₁ z₂ : N}, MultilinearMap.mkPiRing R ι z₁ = MultilinearMap.mkPiRing R ι z₂ ↔ z₁ = z₂

theorem MultilinearMap.mkPiRing_zero E1 #

∀ {R : Type u_6} [inst : CommSemiring R] {ι : Type u_7} {N : Type u_9} [inst_1 : AddCommMonoid N] [inst_2 : Module R N]
  [inst_3 : Fintype ι], MultilinearMap.mkPiRing R ι 0 = 0

theorem MultilinearMap.mkPiRing_eq_zero_iff E0 #

∀ {R : Type u_6} [inst : CommSemiring R] {ι : Type u_7} {N : Type u_9} [inst_1 : AddCommMonoid N] [inst_2 : Module R N]
  [inst_3 : Fintype ι] (z : N), MultilinearMap.mkPiRing R ι z = 0 ↔ z = 0

instance MultilinearMap.instNeg E0 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : Semiring S] →
        {σ : R →+* S} →
          {ι : Type u_3} →
            {M : ι → Type u_4} →
              {N : Type u_5} →
                [inst_2 : (i : ι) → AddCommMonoid (M i)] →
                  [inst_3 : AddCommGroup N] →
                    [inst_4 : (i : ι) → Module R (M i)] → [inst_5 : Module S N] → Neg ((Π (i : ι), M i) →ₘₛₗ[σ] N)

instance MultilinearMap.instIsNegApplyForall E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_3}
  {M : ι → Type u_4} {N : Type u_5} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : AddCommGroup N]
  [inst_4 : (i : ι) → Module R (M i)] [inst_5 : Module S N], IsNegApply ((Π (i : ι), M i) →ₘₛₗ[σ] N)

instance MultilinearMap.instSub E0 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : Semiring S] →
        {σ : R →+* S} →
          {ι : Type u_3} →
            {M : ι → Type u_4} →
              {N : Type u_5} →
                [inst_2 : (i : ι) → AddCommMonoid (M i)] →
                  [inst_3 : AddCommGroup N] →
                    [inst_4 : (i : ι) → Module R (M i)] → [inst_5 : Module S N] → Sub ((Π (i : ι), M i) →ₘₛₗ[σ] N)

instance MultilinearMap.instIsSubApplyForall E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_3}
  {M : ι → Type u_4} {N : Type u_5} [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : AddCommGroup N]
  [inst_4 : (i : ι) → Module R (M i)] [inst_5 : Module S N], IsSubApply ((Π (i : ι), M i) →ₘₛₗ[σ] N)

instance MultilinearMap.instAddCommGroup E0 #

{R : Type u_1} →
  {S : Type u_2} →
    [inst : Semiring R] →
      [inst_1 : Semiring S] →
        {σ : R →+* S} →
          {ι : Type u_3} →
            {M : ι → Type u_4} →
              {N : Type u_5} →
                [inst_2 : (i : ι) → AddCommMonoid (M i)] →
                  [inst_3 : AddCommGroup N] →
                    [inst_4 : (i : ι) → Module R (M i)] →
                      [inst_5 : Module S N] → AddCommGroup ((Π (i : ι), M i) →ₘₛₗ[σ] N)

theorem MultilinearMap.map_update_neg E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_3}
  {M : ι → Type u_4} {N : Type u_5} [inst_2 : (i : ι) → AddCommGroup (M i)] [inst_3 : AddCommGroup N]
  [inst_4 : (i : ι) → Module R (M i)] [inst_5 : Module S N] (f : (Π (i : ι), M i) →ₘₛₗ[σ] N) [inst_6 : DecidableEq ι]
  (m : (i : ι) → M i) (i : ι) (x : M i), f (Function.update m i (-x)) = -f (Function.update m i x)

theorem MultilinearMap.map_update_sub E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_3}
  {M : ι → Type u_4} {N : Type u_5} [inst_2 : (i : ι) → AddCommGroup (M i)] [inst_3 : AddCommGroup N]
  [inst_4 : (i : ι) → Module R (M i)] [inst_5 : Module S N] (f : (Π (i : ι), M i) →ₘₛₗ[σ] N) [inst_6 : DecidableEq ι]
  (m : (i : ι) → M i) (i : ι) (x y : M i),
  f (Function.update m i (x - y)) = f (Function.update m i x) - f (Function.update m i y)

theorem MultilinearMap.map_update E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_3}
  {M : ι → Type u_4} {N : Type u_5} [inst_2 : (i : ι) → AddCommGroup (M i)] [inst_3 : AddCommGroup N]
  [inst_4 : (i : ι) → Module R (M i)] [inst_5 : Module S N] (f : (Π (i : ι), M i) →ₘₛₗ[σ] N) [inst_6 : DecidableEq ι]
  (x : (i : ι) → M i) (i : ι) (v : M i), f (Function.update x i v) = f x - f (Function.update x i (x i - v))

theorem MultilinearMap.map_sub_map_piecewise E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_3}
  {M : ι → Type u_4} {N : Type u_5} [inst_2 : (i : ι) → AddCommGroup (M i)] [inst_3 : AddCommGroup N]
  [inst_4 : (i : ι) → Module R (M i)] [inst_5 : Module S N] (f : (Π (i : ι), M i) →ₘₛₗ[σ] N) [inst_6 : LinearOrder ι]
  (a b : (i : ι) → M i) (s : Finset ι),
  f a - f (s.piecewise b a) = ∑ i ∈ s, f fun j ↦ if j ∈ s → j < i then a j else if i = j then a j - b j else b j

theorem MultilinearMap.map_piecewise_sub_map_piecewise E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_3}
  {M : ι → Type u_4} {N : Type u_5} [inst_2 : (i : ι) → AddCommGroup (M i)] [inst_3 : AddCommGroup N]
  [inst_4 : (i : ι) → Module R (M i)] [inst_5 : Module S N] (f : (Π (i : ι), M i) →ₘₛₗ[σ] N) [inst_6 : LinearOrder ι]
  (a b v : (i : ι) → M i) (s : Finset ι),
  f (s.piecewise a v) - f (s.piecewise b v) =
    ∑ i ∈ s, f fun j ↦ if j ∈ s then if j < i then a j else if j = i then a j - b j else b j else v j

This calculates the differences between the values of a multilinear map at two arguments that differ on a finset s of ι. It requires a linear order on ι in order to express the result.

theorem MultilinearMap.map_add_eq_map_add_linearDeriv_add E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_3}
  {M : ι → Type u_4} {N : Type u_5} [inst_2 : (i : ι) → AddCommGroup (M i)] [inst_3 : AddCommGroup N]
  [inst_4 : (i : ι) → Module R (M i)] [inst_5 : Module S N] (f : (Π (i : ι), M i) →ₘₛₗ[σ] N) [inst_6 : DecidableEq ι]
  [inst_7 : Fintype ι] (x h : (i : ι) → M i),
  f (x + h) = f x + (f.linearDeriv x) h + ∑ s with 2 ≤ s.card, f (s.piecewise h x)

theorem MultilinearMap.map_add_sub_map_add_sub_linearDeriv E0 #

∀ {R : Type u_1} {S : Type u_2} [inst : Semiring R] [inst_1 : Semiring S] {σ : R →+* S} {ι : Type u_3}
  {M : ι → Type u_4} {N : Type u_5} [inst_2 : (i : ι) → AddCommGroup (M i)] [inst_3 : AddCommGroup N]
  [inst_4 : (i : ι) → Module R (M i)] [inst_5 : Module S N] (f : (Π (i : ι), M i) →ₘₛₗ[σ] N) [inst_6 : DecidableEq ι]
  [inst_7 : Fintype ι] (x h h' : (i : ι) → M i),
  f (x + h) - f (x + h') - (f.linearDeriv x) (h - h') =
    ∑ s with 2 ≤ s.card, (f (s.piecewise h x) - f (s.piecewise h' x))

This expresses the difference between the values of a multilinear map at two points "close to x" in terms of the "derivative" of the multilinear map at x and of "second-order" terms.

def MultilinearMap.piRingEquiv E1 #

{R : Type u_1} →
  [inst : CommSemiring R] →
    {ι : Type u_2} →
      {N : Type u_4} → [inst_1 : AddCommMonoid N] → [inst_2 : Module R N] → [Fintype ι] → N ≃ₗ[R] (ι → R) →ₘₗ[R] N

When ι is finite, multilinear maps on R^ι with values in N are in bijection with N, as such a multilinear map is completely determined by its value on the constant vector made of ones. We register this bijection as a linear equivalence in MultilinearMap.piRingEquiv.

def MultilinearMap.map E1 #

{R : Type u_1} →
  [inst : Semiring R] →
    {ι : Type u_2} →
      [Nonempty ι] →
        {M : ι → Type u_3} →
          {N : Type u_4} →
            [inst_2 : (i : ι) → AddCommMonoid (M i)] →
              [inst_3 : AddCommMonoid N] →
                [inst_4 : (i : ι) → Module R (M i)] →
                  [inst_5 : Module R N] → ((Π (i : ι), M i) →ₘₗ[R] N) → ((i : ι) → Submodule R (M i)) → SubMulAction R N

The pushforward of an indexed collection of submodule p i ⊆ M i by f : M → N.

Note that this is not a submodule - it is not closed under addition.

theorem MultilinearMap.map_nonempty E0 #

∀ {R : Type u_1} [inst : Semiring R] {ι : Type u_2} [inst_1 : Nonempty ι] {M : ι → Type u_3} {N : Type u_4}
  [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : AddCommMonoid N] [inst_4 : (i : ι) → Module R (M i)]
  [inst_5 : Module R N] (f : (Π (i : ι), M i) →ₘₗ[R] N) (p : (i : ι) → Submodule R (M i)), (↑(f.map p)).Nonempty

The map is always nonempty. This lemma is needed to apply SubMulAction.zero_mem.

def MultilinearMap.range E1 #

{R : Type u_1} →
  [inst : Semiring R] →
    {ι : Type u_2} →
      [Nonempty ι] →
        {M : ι → Type u_3} →
          {N : Type u_4} →
            [inst_2 : (i : ι) → AddCommMonoid (M i)] →
              [inst_3 : AddCommMonoid N] →
                [inst_4 : (i : ι) → Module R (M i)] →
                  [inst_5 : Module R N] → ((Π (i : ι), M i) →ₘₗ[R] N) → SubMulAction R N

The range of a multilinear map, closed under scalar multiplication.

Deprecated aliases

NameNew nameSince
MultilinearMap.add_applyadd_apply2026-06-10
MultilinearMap.coeAddMonoidHomFunLike.coeAddMonoidHom2026-06-10
MultilinearMap.coeAddMonoidHom_applyFunLike.coeAddMonoidHom_apply2026-06-10
MultilinearMap.coe_smulFunLike.coe_smul2026-06-10
MultilinearMap.coe_sumFunLike.coe_sum2026-06-10
MultilinearMap.neg_applyneg_apply2026-06-10
MultilinearMap.smul_applysmul_apply2026-06-10
MultilinearMap.sub_applysub_apply2026-06-10
MultilinearMap.sum_applysum_apply2026-06-10
MultilinearMap.zero_applyzero_apply2026-06-10