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 / V07. Linear algebra

Mathlib.LinearAlgebra.Pi

99 declarations. Mathlib docs · Source

Pi types of modules

This file defines constructors for linear maps whose domains or codomains are pi types.

It contains theorems relating these to each other, as well as to LinearMap.ker.

Main definitions

  • pi types in the codomain:
    • LinearMap.single
  • pi types in the domain:
    • LinearMap.diag

Bundled versions of Matrix.vecCons and Matrix.vecEmpty

The idea of these definitions is to be able to define a map as x ↦ ![f₁ x, f₂ x, f₃ x], where f₁ f₂ f₃ are already linear maps, as f₁.vecCons <| f₂.vecCons <| f₃.vecCons <| vecEmpty.

While the same thing could be achieved using LinearMap.pi ![f₁, f₂, f₃], this is not definitionally equal to the result using LinearMap.vecCons, as Fin.cases and function application do not commute definitionally.

Versions for when f₁ f₂ f₃ are bilinear maps are also provided.

theorem LinearMap.ker_pi E1 #

∀ {R : Type u} {M₂ : Type w} {ι : Type x} [inst : Semiring R] [inst_1 : AddCommMonoid M₂] [inst_2 : Module R M₂]
  {φ : ι → Type i} [inst_3 : (i : ι) → AddCommMonoid (φ i)] [inst_4 : (i : ι) → Module R (φ i)]
  (f : (i : ι) → M₂ →ₗ[R] φ i), (LinearMap.pi f).ker = ⨅ i, (f i).ker

theorem LinearMap.proj_comp_funLeft E0 #

∀ {R : Type u} {M₂ : Type w} {ι : Type x} {ι' : Type x'} [inst : Semiring R] [inst_1 : AddCommMonoid M₂]
  [inst_2 : Module R M₂] (f : ι' → ι) (i : ι'), LinearMap.proj i ∘ₗ LinearMap.funLeft R M₂ f = LinearMap.proj (f i)

def LinearEquiv.linearMapPi E1 #

{R : Type u} →
  {M₂ : Type w} →
    {ι : Type x} →
      [inst : Semiring R] →
        [inst_1 : AddCommMonoid M₂] →
          [inst_2 : Module R M₂] →
            {φ : ι → Type i} →
              [inst_3 : (i : ι) → AddCommMonoid (φ i)] →
                [inst_4 : (i : ι) → Module R (φ i)] →
                  (S : Type u_1) →
                    [inst_5 : Semiring S] →
                      [inst_6 : (i : ι) → Module S (φ i)] →
                        [inst_7 : ∀ (i : ι), SMulCommClass R S (φ i)] →
                          ((i : ι) → M₂ →ₗ[R] φ i) ≃ₗ[S] M₂ →ₗ[R] (i : ι) → φ i

Homs to a pi module are canonically identified with a product of hom types, even linearly so.

theorem LinearEquiv.linearMapPi_symm_apply E0 #

∀ {R : Type u} {M₂ : Type w} {ι : Type x} [inst : Semiring R] [inst_1 : AddCommMonoid M₂] [inst_2 : Module R M₂]
  {φ : ι → Type i} [inst_3 : (i : ι) → AddCommMonoid (φ i)] [inst_4 : (i : ι) → Module R (φ i)] (S : Type u_1)
  [inst_5 : Semiring S] [inst_6 : (i : ι) → Module S (φ i)] [inst_7 : ∀ (i : ι), SMulCommClass R S (φ i)]
  (f : M₂ →ₗ[R] (i : ι) → φ i) (i : ι), (LinearEquiv.linearMapPi S).symm f i = LinearMap.proj i ∘ₗ f

theorem LinearEquiv.linearMapPi_apply E0 #

∀ {R : Type u} {M₂ : Type w} {ι : Type x} [inst : Semiring R] [inst_1 : AddCommMonoid M₂] [inst_2 : Module R M₂]
  {φ : ι → Type i} [inst_3 : (i : ι) → AddCommMonoid (φ i)] [inst_4 : (i : ι) → Module R (φ i)] (S : Type u_1)
  [inst_5 : Semiring S] [inst_6 : (i : ι) → Module S (φ i)] [inst_7 : ∀ (i : ι), SMulCommClass R S (φ i)]
  (f : (i : ι) → M₂ →ₗ[R] φ i), (LinearEquiv.linearMapPi S) f = LinearMap.pi f

theorem LinearMap.iInf_ker_proj E1 #

∀ {R : Type u} {ι : Type x} [inst : Semiring R] {φ : ι → Type i} [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)], ⨅ i, (LinearMap.proj i).ker = ⊥

instance LinearMap.CompatibleSMul.pi E0 #

∀ (R : Type u_1) (S : Type u_2) (M : Type u_3) (N : Type u_4) (ι : Type u_5) [inst : Semiring S]
  [inst_1 : AddCommMonoid M] [inst_2 : AddCommMonoid N] [inst_3 : SMul R M] [inst_4 : SMul R N] [inst_5 : Module S M]
  [inst_6 : Module S N] [LinearMap.CompatibleSMul M N R S], LinearMap.CompatibleSMul M (ι → N) R S

def LinearMap.piMap E3 #

{R : Type u} →
  {ι : Type x} →
    [inst : Semiring R] →
      {φ : ι → Type i} →
        [inst_1 : (i : ι) → AddCommMonoid (φ i)] →
          [inst_2 : (i : ι) → Module R (φ i)] →
            {ψ : ι → Type u_1} →
              [inst_3 : (i : ι) → AddCommMonoid (ψ i)] →
                [inst_4 : (i : ι) → Module R (ψ i)] → ((i : ι) → φ i →ₗ[R] ψ i) → ((i : ι) → φ i) →ₗ[R] (i : ι) → ψ i

Construct a linear map between two (dependent) function spaces by applying index-dependent linear maps to the coordinates. A bundled version of Pi.map.

If the index type is finite, then this map can be seen as a “block diagonal” map between indexed products of modules.

theorem LinearMap.coe_piMap E0 #

∀ {R : Type u} {ι : Type x} [inst : Semiring R] {φ : ι → Type i} [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] {ψ : ι → Type u_1} [inst_3 : (i : ι) → AddCommMonoid (ψ i)]
  [inst_4 : (i : ι) → Module R (ψ i)] (f : (i : ι) → φ i →ₗ[R] ψ i), ⇑(LinearMap.piMap f) = Pi.map fun i ↦ ⇑(f i)

def LinearMap.compLeft E1 #

{R : Type u} →
  {M₂ : Type w} →
    {M₃ : Type y} →
      [inst : Semiring R] →
        [inst_1 : AddCommMonoid M₂] →
          [inst_2 : Module R M₂] →
            [inst_3 : AddCommMonoid M₃] →
              [inst_4 : Module R M₃] → (M₂ →ₗ[R] M₃) → (I : Type u_1) → (I → M₂) →ₗ[R] I → M₃

Linear map between the function spaces I → M₂ and I → M₃, induced by a linear map f between M₂ and M₃.

theorem LinearMap.compLeft_apply E0 #

∀ {R : Type u} {M₂ : Type w} {M₃ : Type y} [inst : Semiring R] [inst_1 : AddCommMonoid M₂] [inst_2 : Module R M₂]
  [inst_3 : AddCommMonoid M₃] [inst_4 : Module R M₃] (f : M₂ →ₗ[R] M₃) (I : Type u_1) (h : I → M₂) (a : I),
  (f.compLeft I) h a = (⇑f ∘ h) a

theorem LinearMap.apply_single E1 #

∀ {R : Type u} {M : Type v} {ι : Type x} [inst : Semiring R] {φ : ι → Type i} [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] [inst_3 : AddCommMonoid M] [inst_4 : Module R M] [inst_5 : DecidableEq ι]
  (f : (i : ι) → φ i →ₗ[R] M) (i j : ι) (x : φ i), (f j) (Pi.single i x j) = Pi.single i ((f i) x) j

def LinearMap.single E3 #

(R : Type u) →
  {ι : Type x} →
    [inst : Semiring R] →
      (φ : ι → Type i) →
        [inst_1 : (i : ι) → AddCommMonoid (φ i)] →
          [inst_2 : (i : ι) → Module R (φ i)] → [DecidableEq ι] → (i : ι) → φ i →ₗ[R] (i : ι) → φ i

The LinearMap version of AddMonoidHom.single and Pi.single.

theorem LinearMap.single_apply E0 #

∀ (R : Type u) {ι : Type x} [inst : Semiring R] (φ : ι → Type i) [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] [inst_3 : DecidableEq ι] {i : ι} (v : φ i),
  (LinearMap.single R φ i) v = Pi.single i v

theorem LinearMap.sum_single_apply E0 #

∀ {ι : Type x} (φ : ι → Type i) [inst : (i : ι) → AddCommMonoid (φ i)] [inst_1 : Fintype ι] [inst_2 : DecidableEq ι]
  (v : (i : ι) → φ i), ∑ i, Pi.single i (v i) = v

theorem LinearMap.coe_single E0 #

∀ (R : Type u) {ι : Type x} [inst : Semiring R] (φ : ι → Type i) [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] [inst_3 : DecidableEq ι] (i : ι), ⇑(LinearMap.single R φ i) = Pi.single i

theorem LinearMap.proj_comp_single_same E1 #

∀ (R : Type u) {ι : Type x} [inst : Semiring R] (φ : ι → Type i) [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] [inst_3 : DecidableEq ι] (i : ι),
  LinearMap.proj i ∘ₗ LinearMap.single R φ i = LinearMap.id

theorem LinearMap.proj_comp_single_ne E1 #

∀ (R : Type u) {ι : Type x} [inst : Semiring R] (φ : ι → Type i) [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] [inst_3 : DecidableEq ι] (i j : ι),
  i ≠ j → LinearMap.proj i ∘ₗ LinearMap.single R φ j = 0

theorem LinearMap.iSup_range_single_le_iInf_ker_proj E1 #

∀ (R : Type u) {ι : Type x} [inst : Semiring R] (φ : ι → Type i) [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] [inst_3 : DecidableEq ι] (I J : Set ι),
  Disjoint I J → ⨆ i ∈ I, (LinearMap.single R φ i).range ≤ ⨅ i ∈ J, (LinearMap.proj i).ker

theorem LinearMap.iInf_ker_proj_le_iSup_range_single E1 #

∀ (R : Type u) {ι : Type x} [inst : Semiring R] (φ : ι → Type i) [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] [inst_3 : DecidableEq ι] {I J : Set ι},
  I.Finite → Codisjoint I J → ⨅ i ∈ J, (LinearMap.proj i).ker ≤ ⨆ i ∈ I, (LinearMap.single R φ i).range

theorem LinearMap.iSup_range_single_eq_iInf_ker_proj E1 #

∀ (R : Type u) {ι : Type x} [inst : Semiring R] (φ : ι → Type i) [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] [inst_3 : DecidableEq ι] {I J : Set ι},
  IsCompl I J → I.Finite → ⨆ i ∈ I, (LinearMap.single R φ i).range = ⨅ i ∈ J, (LinearMap.proj i).ker

theorem LinearMap.iSup_range_single E1 #

∀ (R : Type u) {ι : Type x} [inst : Semiring R] (φ : ι → Type i) [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] [inst_3 : DecidableEq ι] [Finite ι], ⨆ i, (LinearMap.single R φ i).range = ⊤

theorem LinearMap.disjoint_single_single E1 #

∀ (R : Type u) {ι : Type x} [inst : Semiring R] (φ : ι → Type i) [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] [inst_3 : DecidableEq ι] (I J : Set ι),
  Disjoint I J → Disjoint (⨆ i ∈ I, (LinearMap.single R φ i).range) (⨆ i ∈ J, (LinearMap.single R φ i).range)

def LinearMap.lsum E1 #

(R : Type u) →
  {M : Type v} →
    {ι : Type x} →
      [inst : Semiring R] →
        (φ : ι → Type i) →
          [inst_1 : (i : ι) → AddCommMonoid (φ i)] →
            [inst_2 : (i : ι) → Module R (φ i)] →
              [DecidableEq ι] →
                (S : Type u_1) →
                  [inst_4 : AddCommMonoid M] →
                    [inst_5 : Module R M] →
                      [Fintype ι] →
                        [inst_7 : Semiring S] →
                          [inst_8 : Module S M] →
                            [inst_9 : SMulCommClass R S M] → ((i : ι) → φ i →ₗ[R] M) ≃ₗ[S] ((i : ι) → φ i) →ₗ[R] M

The linear equivalence between linear functions on a finite product of modules and families of functions on these modules. See note [bundled maps over different rings].

theorem LinearMap.lsum_symm_apply E0 #

∀ (R : Type u) {M : Type v} {ι : Type x} [inst : Semiring R] (φ : ι → Type i) [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] [inst_3 : DecidableEq ι] (S : Type u_1) [inst_4 : AddCommMonoid M]
  [inst_5 : Module R M] [inst_6 : Fintype ι] [inst_7 : Semiring S] [inst_8 : Module S M] [inst_9 : SMulCommClass R S M]
  (f : ((i : ι) → φ i) →ₗ[R] M) (i : ι), (LinearMap.lsum R φ S).symm f i = f ∘ₗ LinearMap.single R φ i

theorem LinearMap.lsum_apply E0 #

∀ (R : Type u) {M : Type v} {ι : Type x} [inst : Semiring R] (φ : ι → Type i) [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] [inst_3 : DecidableEq ι] (S : Type u_1) [inst_4 : AddCommMonoid M]
  [inst_5 : Module R M] [inst_6 : Fintype ι] [inst_7 : Semiring S] [inst_8 : Module S M] [inst_9 : SMulCommClass R S M]
  (f : (i : ι) → φ i →ₗ[R] M), (LinearMap.lsum R φ S) f = ∑ i, f i ∘ₗ LinearMap.proj i

theorem LinearMap.lsum_piSingle E1 #

∀ (R : Type u) {M : Type v} {ι : Type x} [inst : Semiring R] (φ : ι → Type i) [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] [inst_3 : DecidableEq ι] (S : Type u_1) [inst_4 : AddCommMonoid M]
  [inst_5 : Module R M] [inst_6 : Fintype ι] [inst_7 : Semiring S] [inst_8 : Module S M] [inst_9 : SMulCommClass R S M]
  (f : (i : ι) → φ i →ₗ[R] M) (i : ι) (x : φ i), ((LinearMap.lsum R φ S) f) (Pi.single i x) = (f i) x

theorem LinearMap.lsum_single E0 #

∀ (R : Type u) {ι : Type x} [inst : Semiring R] (φ : ι → Type i) [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] [inst_3 : DecidableEq ι] (S : Type u_1) [inst_4 : Fintype ι] [inst_5 : Semiring S]
  [inst_6 : (i : ι) → Module S (φ i)] [inst_7 : ∀ (i : ι), SMulCommClass R S (φ i)],
  (LinearMap.lsum R φ S) (LinearMap.single R φ) = LinearMap.id

theorem LinearMap.pi_ext E3 #

∀ {R : Type u} {M : Type v} {ι : Type x} [inst : Semiring R] {φ : ι → Type i} [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] [inst_3 : DecidableEq ι] [Finite ι] [inst_5 : AddCommMonoid M]
  [inst_6 : Module R M] {f g : ((i : ι) → φ i) →ₗ[R] M},
  (∀ (i : ι) (x : φ i), f (Pi.single i x) = g (Pi.single i x)) → f = g

theorem LinearMap.pi_ext_iff E0 #

∀ {R : Type u} {M : Type v} {ι : Type x} [inst : Semiring R] {φ : ι → Type i} [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] [inst_3 : DecidableEq ι] [Finite ι] [inst_5 : AddCommMonoid M]
  [inst_6 : Module R M] {f g : ((i : ι) → φ i) →ₗ[R] M},
  f = g ↔ ∀ (i : ι) (x : φ i), f (Pi.single i x) = g (Pi.single i x)

theorem LinearMap.pi_ext' E1 #

∀ {R : Type u} {M : Type v} {ι : Type x} [inst : Semiring R] {φ : ι → Type i} [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] [inst_3 : DecidableEq ι] [Finite ι] [inst_5 : AddCommMonoid M]
  [inst_6 : Module R M] {f g : ((i : ι) → φ i) →ₗ[R] M},
  (∀ (i : ι), f ∘ₗ LinearMap.single R φ i = g ∘ₗ LinearMap.single R φ i) → f = g

This is used as the ext lemma instead of LinearMap.pi_ext for reasons explained in note [partially-applied ext lemmas].

theorem LinearMap.pi_ext'_iff E0 #

∀ {R : Type u} {M : Type v} {ι : Type x} [inst : Semiring R] {φ : ι → Type i} [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] [inst_3 : DecidableEq ι] [Finite ι] [inst_5 : AddCommMonoid M]
  [inst_6 : Module R M] {f g : ((i : ι) → φ i) →ₗ[R] M},
  f = g ↔ ∀ (i : ι), f ∘ₗ LinearMap.single R φ i = g ∘ₗ LinearMap.single R φ i

def LinearMap.iInfKerProjEquiv E1 #

(R : Type u) →
  {ι : Type x} →
    [inst : Semiring R] →
      (φ : ι → Type i) →
        [inst_1 : (i : ι) → AddCommMonoid (φ i)] →
          [inst_2 : (i : ι) → Module R (φ i)] →
            {I J : Set ι} →
              [DecidablePred fun i ↦ i ∈ I] →
                Disjoint I J → Set.univ ⊆ I ∪ J → ↥(⨅ i ∈ J, (LinearMap.proj i).ker) ≃ₗ[R] (i : ↑I) → φ ↑i

If I and J are disjoint index sets, the product of the kernels of the Jth projections of φ is linearly equivalent to the product over I.

def LinearMap.diag E3 #

{R : Type u} →
  {ι : Type x} →
    [inst : Semiring R] →
      {φ : ι → Type i} →
        [inst_1 : (i : ι) → AddCommMonoid (φ i)] →
          [inst_2 : (i : ι) → Module R (φ i)] → [DecidableEq ι] → (i j : ι) → φ i →ₗ[R] φ j

diag i j is the identity map if i = j. Otherwise it is the constant 0 map.

theorem LinearMap.update_apply E0 #

∀ {R : Type u} {M₂ : Type w} {ι : Type x} [inst : Semiring R] [inst_1 : AddCommMonoid M₂] [inst_2 : Module R M₂]
  {φ : ι → Type i} [inst_3 : (i : ι) → AddCommMonoid (φ i)] [inst_4 : (i : ι) → Module R (φ i)] [inst_5 : DecidableEq ι]
  (f : (i : ι) → M₂ →ₗ[R] φ i) (c : M₂) (i j : ι) (b : M₂ →ₗ[R] φ i),
  (Function.update f i b j) c = Function.update (fun i ↦ (f i) c) i (b c) j

theorem LinearMap.single_eq_pi_diag E1 #

∀ (R : Type u) {ι : Type x} [inst : Semiring R] (φ : ι → Type i) [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] [inst_3 : DecidableEq ι] (i : ι),
  LinearMap.single R φ i = LinearMap.pi (LinearMap.diag i)

theorem LinearMap.ker_single E1 #

∀ (R : Type u) {ι : Type x} [inst : Semiring R] (φ : ι → Type i) [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] [inst_3 : DecidableEq ι] (i : ι), (LinearMap.single R φ i).ker = ⊥

theorem LinearMap.proj_comp_single E1 #

∀ (R : Type u) {ι : Type x} [inst : Semiring R] (φ : ι → Type i) [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] [inst_3 : DecidableEq ι] (i j : ι),
  LinearMap.proj i ∘ₗ LinearMap.single R φ j = LinearMap.diag j i

theorem LinearMap.pi_apply_eq_sum_univ E1 #

∀ {R : Type u} {M₂ : Type w} {ι : Type x} [inst : Semiring R] [inst_1 : AddCommMonoid M₂] [inst_2 : Module R M₂]
  [inst_3 : DecidableEq ι] [inst_4 : Fintype ι] (f : (ι → R) →ₗ[R] M₂) (x : ι → R),
  f x = ∑ i, x i • f fun j ↦ if i = j then 1 else 0

A linear map f applied to x : ι → R can be computed using the image under f of elements of the canonical basis.

def Submodule.pi E1 #

{R : Type u} →
  {ι : Type x} →
    [inst : Semiring R] →
      {φ : ι → Type u_1} →
        [inst_1 : (i : ι) → AddCommMonoid (φ i)] →
          [inst_2 : (i : ι) → Module R (φ i)] → Set ι → ((i : ι) → Submodule R (φ i)) → Submodule R ((i : ι) → φ i)

A version of Set.pi for submodules. Given an index set I and a family of submodules p : (i : ι) → Submodule R (φ i), pi I p is the submodule of dependent functions f : (i : ι) → φ i such that f i belongs to p i whenever i ∈ I.

theorem Submodule.coe_pi E0 #

∀ {R : Type u} {ι : Type x} [inst : Semiring R] {φ : ι → Type u_1} [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] (I : Set ι) (p : (i : ι) → Submodule R (φ i)),
  ↑(Submodule.pi I p) = I.pi fun i ↦ ↑(p i)

theorem Submodule.mem_pi E0 #

∀ {R : Type u} {ι : Type x} [inst : Semiring R] {φ : ι → Type u_1} [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] {I : Set ι} {p : (i : ι) → Submodule R (φ i)} {x : (i : ι) → φ i},
  x ∈ Submodule.pi I p ↔ ∀ i ∈ I, x i ∈ p i

theorem Submodule.pi_empty E0 #

∀ {R : Type u} {ι : Type x} [inst : Semiring R] {φ : ι → Type u_1} [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] (p : (i : ι) → Submodule R (φ i)), Submodule.pi ∅ p = ⊤

theorem Submodule.pi_top E0 #

∀ {R : Type u} {ι : Type x} [inst : Semiring R] {φ : ι → Type u_1} [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] (s : Set ι), (Submodule.pi s fun i ↦ ⊤) = ⊤

theorem Submodule.pi_univ_bot E0 #

∀ {R : Type u} {ι : Type x} [inst : Semiring R] {φ : ι → Type u_1} [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)], (Submodule.pi Set.univ fun i ↦ ⊥) = ⊥

theorem Submodule.pi_mono E1 #

∀ {R : Type u} {ι : Type x} [inst : Semiring R] {φ : ι → Type u_1} [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] {p q : (i : ι) → Submodule R (φ i)} {s : Set ι},
  (∀ i ∈ s, p i ≤ q i) → Submodule.pi s p ≤ Submodule.pi s q

theorem Submodule.biInf_comap_proj E1 #

∀ {R : Type u} {ι : Type x} [inst : Semiring R] {φ : ι → Type u_1} [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] {I : Set ι} {p : (i : ι) → Submodule R (φ i)},
  ⨅ i ∈ I, Submodule.comap (LinearMap.proj i) (p i) = Submodule.pi I p

theorem Submodule.iInf_comap_proj E1 #

∀ {R : Type u} {ι : Type x} [inst : Semiring R] {φ : ι → Type u_1} [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] {p : (i : ι) → Submodule R (φ i)},
  ⨅ i, Submodule.comap (LinearMap.proj i) (p i) = Submodule.pi Set.univ p

theorem Submodule.le_comap_single_pi E1 #

∀ {R : Type u} {ι : Type x} [inst : Semiring R] {φ : ι → Type u_1} [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] [inst_3 : DecidableEq ι] (p : (i : ι) → Submodule R (φ i)) {I : Set ι} {i : ι},
  p i ≤ Submodule.comap (LinearMap.single R φ i) (Submodule.pi I p)

theorem Submodule.iSup_map_single_le E1 #

∀ {R : Type u} {ι : Type x} [inst : Semiring R] {φ : ι → Type u_1} [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] {I : Set ι} {p : (i : ι) → Submodule R (φ i)} [inst_3 : DecidableEq ι],
  ⨆ i, Submodule.map (LinearMap.single R φ i) (p i) ≤ Submodule.pi I p

theorem Submodule.iSup_map_single E1 #

∀ {R : Type u} {ι : Type x} [inst : Semiring R] {φ : ι → Type u_1} [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)] {p : (i : ι) → Submodule R (φ i)} [inst_3 : DecidableEq ι] [Finite ι],
  ⨆ i, Submodule.map (LinearMap.single R φ i) (p i) = Submodule.pi Set.univ p

theorem LinearMap.ker_compLeft E1 #

∀ {R : Type u} {M : Type v} {M₂ : Type w} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : AddCommMonoid M₂]
  [inst_3 : Module R M] [inst_4 : Module R M₂] (f : M →ₗ[R] M₂) (I : Type u_1),
  (f.compLeft I).ker = Submodule.pi Set.univ fun x ↦ f.ker

theorem LinearMap.range_compLeft E1 #

∀ {R : Type u} {M : Type v} {M₂ : Type w} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : AddCommMonoid M₂]
  [inst_3 : Module R M] [inst_4 : Module R M₂] (f : M →ₗ[R] M₂) (I : Type u_1),
  (f.compLeft I).range = Submodule.pi Set.univ fun x ↦ f.range

def LinearEquiv.piCongrRight E1 #

{R : Type u} →
  {ι : Type x} →
    [inst : Semiring R] →
      {φ : ι → Type u_1} →
        {ψ : ι → Type u_2} →
          [inst_1 : (i : ι) → AddCommMonoid (φ i)] →
            [inst_2 : (i : ι) → Module R (φ i)] →
              [inst_3 : (i : ι) → AddCommMonoid (ψ i)] →
                [inst_4 : (i : ι) → Module R (ψ i)] → ((i : ι) → φ i ≃ₗ[R] ψ i) → ((i : ι) → φ i) ≃ₗ[R] (i : ι) → ψ i

Combine a family of linear equivalences into a linear equivalence of pi-types.

This is Equiv.piCongrRight as a LinearEquiv

theorem LinearEquiv.piCongrRight_apply E0 #

∀ {R : Type u} {ι : Type x} [inst : Semiring R] {φ : ι → Type u_1} {ψ : ι → Type u_2}
  [inst_1 : (i : ι) → AddCommMonoid (φ i)] [inst_2 : (i : ι) → Module R (φ i)] [inst_3 : (i : ι) → AddCommMonoid (ψ i)]
  [inst_4 : (i : ι) → Module R (ψ i)] (e : (i : ι) → φ i ≃ₗ[R] ψ i) (f : (i : ι) → φ i) (i : ι),
  (LinearEquiv.piCongrRight e) f i = (e i) (f i)

theorem LinearEquiv.piCongrRight_refl E0 #

∀ {R : Type u} {ι : Type x} [inst : Semiring R] {φ : ι → Type u_1} [inst_1 : (i : ι) → AddCommMonoid (φ i)]
  [inst_2 : (i : ι) → Module R (φ i)],
  (LinearEquiv.piCongrRight fun j ↦ LinearEquiv.refl R (φ j)) = LinearEquiv.refl R ((i : ι) → φ i)

theorem LinearEquiv.piCongrRight_symm E0 #

∀ {R : Type u} {ι : Type x} [inst : Semiring R] {φ : ι → Type u_1} {ψ : ι → Type u_2}
  [inst_1 : (i : ι) → AddCommMonoid (φ i)] [inst_2 : (i : ι) → Module R (φ i)] [inst_3 : (i : ι) → AddCommMonoid (ψ i)]
  [inst_4 : (i : ι) → Module R (ψ i)] (e : (i : ι) → φ i ≃ₗ[R] ψ i),
  (LinearEquiv.piCongrRight e).symm = LinearEquiv.piCongrRight fun i ↦ (e i).symm

theorem LinearEquiv.piCongrRight_trans E0 #

∀ {R : Type u} {ι : Type x} [inst : Semiring R] {φ : ι → Type u_1} {ψ : ι → Type u_2} {χ : ι → Type u_3}
  [inst_1 : (i : ι) → AddCommMonoid (φ i)] [inst_2 : (i : ι) → Module R (φ i)] [inst_3 : (i : ι) → AddCommMonoid (ψ i)]
  [inst_4 : (i : ι) → Module R (ψ i)] [inst_5 : (i : ι) → AddCommMonoid (χ i)] [inst_6 : (i : ι) → Module R (χ i)]
  (e : (i : ι) → φ i ≃ₗ[R] ψ i) (f : (i : ι) → ψ i ≃ₗ[R] χ i),
  LinearEquiv.piCongrRight e ≪≫ₗ LinearEquiv.piCongrRight f = LinearEquiv.piCongrRight fun i ↦ e i ≪≫ₗ f i

def LinearEquiv.piCongrLeft' E1 #

(R : Type u) →
  {ι : Type x} →
    {ι' : Type x'} →
      [inst : Semiring R] →
        (φ : ι → Type u_1) →
          [inst_1 : (i : ι) → AddCommMonoid (φ i)] →
            [inst_2 : (i : ι) → Module R (φ i)] → (e : ι ≃ ι') → ((i' : ι) → φ i') ≃ₗ[R] (i : ι') → φ (e.symm i)

Transport dependent functions through an equivalence of the base space.

This is Equiv.piCongrLeft' as a LinearEquiv.

theorem LinearEquiv.piCongrLeft'_symm_apply E0 #

∀ (R : Type u) {ι : Type x} {ι' : Type x'} [inst : Semiring R] (φ : ι → Type u_1)
  [inst_1 : (i : ι) → AddCommMonoid (φ i)] [inst_2 : (i : ι) → Module R (φ i)] (e : ι ≃ ι')
  (a : (b : ι') → φ (e.symm b)) (a_1 : ι),
  (LinearEquiv.piCongrLeft' R φ e).symm a a_1 = (Equiv.piCongrLeft' φ e).symm a a_1

theorem LinearEquiv.piCongrLeft'_apply E0 #

∀ (R : Type u) {ι : Type x} {ι' : Type x'} [inst : Semiring R] (φ : ι → Type u_1)
  [inst_1 : (i : ι) → AddCommMonoid (φ i)] [inst_2 : (i : ι) → Module R (φ i)] (e : ι ≃ ι') (a : (a : ι) → φ a)
  (b : ι'), (LinearEquiv.piCongrLeft' R φ e) a b = a (e.symm b)

def LinearEquiv.piCongrLeft E1 #

(R : Type u) →
  {ι : Type x} →
    {ι' : Type x'} →
      [inst : Semiring R] →
        (φ : ι → Type u_1) →
          [inst_1 : (i : ι) → AddCommMonoid (φ i)] →
            [inst_2 : (i : ι) → Module R (φ i)] → (e : ι' ≃ ι) → ((i' : ι') → φ (e i')) ≃ₗ[R] (i : ι) → φ i

Transporting dependent functions through an equivalence of the base, expressed as a "simplification".

This is Equiv.piCongrLeft as a LinearEquiv

def LinearEquiv.piCurry E1 #

(R : Type u) →
  [inst : Semiring R] →
    {ι : Type u_4} →
      {κ : ι → Type u_5} →
        (α : (i : ι) → κ i → Type u_6) →
          [inst_1 : (i : ι) → (k : κ i) → AddCommMonoid (α i k)] →
            [inst_2 : (i : ι) → (k : κ i) → Module R (α i k)] →
              ((i : Sigma κ) → α i.fst i.snd) ≃ₗ[R] (i : ι) → (j : κ i) → α i j

Equiv.piCurry as a LinearEquiv.

theorem LinearEquiv.piCurry_apply E0 #

∀ (R : Type u) [inst : Semiring R] {ι : Type u_4} {κ : ι → Type u_5} (α : (i : ι) → κ i → Type u_6)
  [inst_1 : (i : ι) → (k : κ i) → AddCommMonoid (α i k)] [inst_2 : (i : ι) → (k : κ i) → Module R (α i k)]
  (f : (x : (i : ι) × κ i) → α x.fst x.snd), (LinearEquiv.piCurry R α) f = Sigma.curry f

theorem LinearEquiv.piCurry_symm_apply E0 #

∀ (R : Type u) [inst : Semiring R] {ι : Type u_4} {κ : ι → Type u_5} (α : (i : ι) → κ i → Type u_6)
  [inst_1 : (i : ι) → (k : κ i) → AddCommMonoid (α i k)] [inst_2 : (i : ι) → (k : κ i) → Module R (α i k)]
  (f : (a : ι) → (b : κ a) → α a b), (LinearEquiv.piCurry R α).symm f = Sigma.uncurry f

def LinearEquiv.piOptionEquivProd E1 #

(R : Type u) →
  [inst : Semiring R] →
    {ι : Type u_4} →
      {M : Option ι → Type u_5} →
        [inst_1 : (i : Option ι) → AddCommMonoid (M i)] →
          [inst_2 : (i : Option ι) → Module R (M i)] → ((i : Option ι) → M i) ≃ₗ[R] M none × ((i : ι) → M (some i))

This is Equiv.piOptionEquivProd as a LinearEquiv

def LinearEquiv.piRing E1 #

(R : Type u) →
  (M : Type v) →
    (ι : Type x) →
      [inst : Semiring R] →
        (S : Type u_4) →
          [Fintype ι] →
            [DecidableEq ι] →
              [inst_3 : Semiring S] →
                [inst_4 : AddCommMonoid M] →
                  [inst_5 : Module R M] →
                    [inst_6 : Module S M] → [inst_7 : SMulCommClass R S M] → ((ι → R) →ₗ[R] M) ≃ₗ[S] ι → M

Linear equivalence between linear functions Rⁿ → M and Mⁿ. The spaces Rⁿ and Mⁿ are represented as ι → R and ι → M, respectively, where ι is a finite type.

This as an S-linear equivalence, under the assumption that S acts on M commuting with R. When R is commutative, we can take this to be the usual action with S = R. Otherwise, S = ℕ shows that the equivalence is additive. See note [bundled maps over different rings].

theorem LinearEquiv.piRing_apply E0 #

∀ {R : Type u} {M : Type v} {ι : Type x} [inst : Semiring R] (S : Type u_4) [inst_1 : Fintype ι]
  [inst_2 : DecidableEq ι] [inst_3 : Semiring S] [inst_4 : AddCommMonoid M] [inst_5 : Module R M] [inst_6 : Module S M]
  [inst_7 : SMulCommClass R S M] (f : (ι → R) →ₗ[R] M) (i : ι), (LinearEquiv.piRing R M ι S) f i = f (Pi.single i 1)

theorem LinearEquiv.piRing_symm_apply E0 #

∀ {R : Type u} {M : Type v} {ι : Type x} [inst : Semiring R] (S : Type u_4) [inst_1 : Fintype ι]
  [inst_2 : DecidableEq ι] [inst_3 : Semiring S] [inst_4 : AddCommMonoid M] [inst_5 : Module R M] [inst_6 : Module S M]
  [inst_7 : SMulCommClass R S M] (f : ι → M) (g : ι → R), ((LinearEquiv.piRing R M ι S).symm f) g = ∑ i, g i • f i

def LinearEquiv.sumArrowLequivProdArrow E1 #

(α : Type u_5) →
  (β : Type u_6) →
    (R : Type u_7) →
      (M : Type u_8) →
        [inst : Semiring R] → [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → (α ⊕ β → M) ≃ₗ[R] (α → M) × (β → M)

Equiv.sumArrowEquivProdArrow as a linear equivalence.

theorem LinearEquiv.sumArrowLequivProdArrow_apply_fst E0 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {α : Type u_5}
  {β : Type u_6} (f : α ⊕ β → M) (a : α), ((LinearEquiv.sumArrowLequivProdArrow α β R M) f).1 a = f (Sum.inl a)

theorem LinearEquiv.sumArrowLequivProdArrow_apply_snd E0 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {α : Type u_5}
  {β : Type u_6} (f : α ⊕ β → M) (b : β), ((LinearEquiv.sumArrowLequivProdArrow α β R M) f).2 b = f (Sum.inr b)

theorem LinearEquiv.sumArrowLequivProdArrow_symm_apply_inl E0 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {α : Type u_5}
  {β : Type u_6} (f : α → M) (g : β → M) (a : α),
  (LinearEquiv.sumArrowLequivProdArrow α β R M).symm (f, g) (Sum.inl a) = f a

theorem LinearEquiv.sumArrowLequivProdArrow_symm_apply_inr E0 #

∀ {R : Type u} {M : Type v} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M] {α : Type u_5}
  {β : Type u_6} (f : α → M) (g : β → M) (b : β),
  (LinearEquiv.sumArrowLequivProdArrow α β R M).symm (f, g) (Sum.inr b) = g b

def LinearEquiv.funUnique E1 #

(ι : Type u_5) →
  (R : Type u_6) →
    (M : Type u_7) →
      [Unique ι] → [inst : Semiring R] → [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → (ι → M) ≃ₗ[R] M

If ι has a unique element, then ι → M is linearly equivalent to M.

theorem LinearEquiv.funUnique_symm_apply E0 #

∀ (ι : Type u_5) (R : Type u_6) (M : Type u_7) [inst : Unique ι] [inst_1 : Semiring R] [inst_2 : AddCommMonoid M]
  [inst_3 : Module R M], ⇑(LinearEquiv.funUnique ι R M).symm = ⇑(AddEquiv.funUnique ι M).symm

theorem LinearEquiv.funUnique_apply E0 #

∀ (ι : Type u_5) (R : Type u_6) (M : Type u_7) [inst : Unique ι] [inst_1 : Semiring R] [inst_2 : AddCommMonoid M]
  [inst_3 : Module R M], ⇑(LinearEquiv.funUnique ι R M) = Function.eval default

def LinearEquiv.piFinTwo E1 #

(R : Type u) →
  [inst : Semiring R] →
    (M : Fin 2 → Type v) →
      [inst_1 : (i : Fin 2) → AddCommMonoid (M i)] →
        [inst_2 : (i : Fin 2) → Module R (M i)] → ((i : Fin 2) → M i) ≃ₗ[R] M 0 × M 1

Linear equivalence between dependent functions (i : Fin 2) → M i and M 0 × M 1.

theorem LinearEquiv.piFinTwo_symm_apply E0 #

∀ (R : Type u) [inst : Semiring R] (M : Fin 2 → Type v) [inst_1 : (i : Fin 2) → AddCommMonoid (M i)]
  [inst_2 : (i : Fin 2) → Module R (M i)],
  ⇑(LinearEquiv.piFinTwo R M).symm = fun p ↦ Fin.cons p.1 (Fin.cons p.2 finZeroElim)

theorem LinearEquiv.piFinTwo_apply E0 #

∀ (R : Type u) [inst : Semiring R] (M : Fin 2 → Type v) [inst_1 : (i : Fin 2) → AddCommMonoid (M i)]
  [inst_2 : (i : Fin 2) → Module R (M i)], ⇑(LinearEquiv.piFinTwo R M) = fun f ↦ (f 0, f 1)

def LinearEquiv.finTwoArrow E1 #

(R : Type u) →
  (M : Type v) → [inst : Semiring R] → [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → (Fin 2 → M) ≃ₗ[R] M × M

Linear equivalence between vectors in M² = Fin 2 → M and M × M.

theorem LinearEquiv.finTwoArrow_apply E0 #

∀ (R : Type u) (M : Type v) [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M],
  ⇑(LinearEquiv.finTwoArrow R M) = fun f ↦ (f 0, f 1)

theorem LinearEquiv.finTwoArrow_symm_apply E0 #

∀ (R : Type u) (M : Type v) [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : Module R M],
  ⇑(LinearEquiv.finTwoArrow R M).symm = fun x ↦ ![x.1, x.2]

theorem Pi.mem_span_range_single_inl_iff E0 #

∀ {R : Type u} {ι : Type x} {ι' : Type x'} [inst : DecidableEq ι] [inst_1 : DecidableEq ι'] [Finite ι]
  [inst_3 : Semiring R] {x : ι ⊕ ι' → R},
  x ∈ Submodule.span R (Set.range fun i ↦ Pi.single (Sum.inl i) 1) ↔ ∀ (k : ι'), x (Sum.inr k) = 0

def Function.ExtendByZero.linearMap E1 #

(R : Type u) →
  {ι : Type x} →
    {η : Type u_1} →
      [inst : Semiring R] →
        (M : Type u_2) → [inst_1 : AddCommMonoid M] → [inst_2 : Module R M] → (ι → η) → (ι → M) →ₗ[R] η → M

Function.extend s f 0 as a bundled linear map.

theorem Function.ExtendByZero.linearMap_apply E0 #

∀ (R : Type u) {ι : Type x} {η : Type u_1} [inst : Semiring R] (M : Type u_2) [inst_1 : AddCommMonoid M]
  [inst_2 : Module R M] (s : ι → η) (a : ι → M) (a_1 : η),
  (Function.ExtendByZero.linearMap R M s) a a_1 = Function.extend s a 0 a_1

def Fin.consLinearEquiv E1 #

(R : Type u) →
  {n : ℕ} →
    (M : Fin n.succ → Type u_1) →
      [inst : Semiring R] →
        [inst_1 : (i : Fin n.succ) → AddCommMonoid (M i)] →
          [inst_2 : (i : Fin n.succ) → Module R (M i)] → (M 0 × ((i : Fin n) → M i.succ)) ≃ₗ[R] (i : Fin n.succ) → M i

Fin.consEquiv as a continuous linear equivalence.

theorem Fin.consLinearEquiv_symm_apply E0 #

∀ (R : Type u) {n : ℕ} (M : Fin n.succ → Type u_1) [inst : Semiring R] [inst_1 : (i : Fin n.succ) → AddCommMonoid (M i)]
  [inst_2 : (i : Fin n.succ) → Module R (M i)] (a : (i : Fin (n + 1)) → M i),
  (Fin.consLinearEquiv R M).symm a = (Fin.consEquiv M).invFun a

theorem Fin.consLinearEquiv_apply E0 #

∀ (R : Type u) {n : ℕ} (M : Fin n.succ → Type u_1) [inst : Semiring R] [inst_1 : (i : Fin n.succ) → AddCommMonoid (M i)]
  [inst_2 : (i : Fin n.succ) → Module R (M i)] (a : M 0 × ((i : Fin n) → M i.succ)) (i : Fin (n + 1)),
  (Fin.consLinearEquiv R M) a i = (Fin.consEquiv M).toFun a i

def LinearMap.vecEmpty E1 #

{R : Type u} →
  {M : Type v} →
    {M₃ : Type y} →
      [inst : Semiring R] →
        [inst_1 : AddCommMonoid M] →
          [inst_2 : AddCommMonoid M₃] → [inst_3 : Module R M] → [inst_4 : Module R M₃] → M →ₗ[R] Fin 0 → M₃

The linear map defeq to Matrix.vecEmpty

theorem LinearMap.vecEmpty_apply E0 #

∀ {R : Type u} {M : Type v} {M₃ : Type y} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : AddCommMonoid M₃]
  [inst_3 : Module R M] [inst_4 : Module R M₃] (m : M), LinearMap.vecEmpty m = ![]

def LinearMap.vecCons E1 #

{R : Type u} →
  {M : Type v} →
    {M₂ : Type w} →
      [inst : Semiring R] →
        [inst_1 : AddCommMonoid M] →
          [inst_2 : AddCommMonoid M₂] →
            [inst_3 : Module R M] →
              [inst_4 : Module R M₂] → {n : ℕ} → (M →ₗ[R] M₂) → (M →ₗ[R] Fin n → M₂) → M →ₗ[R] Fin n.succ → M₂

A linear map into Fin n.succ → M₃ can be built out of a map into M₃ and a map into Fin n → M₃.

theorem LinearMap.vecCons_apply E0 #

∀ {R : Type u} {M : Type v} {M₂ : Type w} [inst : Semiring R] [inst_1 : AddCommMonoid M] [inst_2 : AddCommMonoid M₂]
  [inst_3 : Module R M] [inst_4 : Module R M₂] {n : ℕ} (f : M →ₗ[R] M₂) (g : M →ₗ[R] Fin n → M₂) (m : M),
  (f.vecCons g) m = Matrix.vecCons (f m) (g m)

theorem Module.pi_induction E1 #

∀ (R : Type u) [inst : Semiring R] {ι : Type v} [Finite ι]
  (motive : (N : Type u) → [inst_2 : AddCommMonoid N] → [Module R N] → Prop)
  (motive' : (N : Type (max u v)) → [inst_2 : AddCommMonoid N] → [Module R N] → Prop),
  (∀ {N : Type u} {N' : Type (max u v)} [inst_2 : AddCommMonoid N] [inst_3 : AddCommMonoid N'] [inst_4 : Module R N]
      [inst_5 : Module R N'] (a : N ≃ₗ[R] N'), motive N → motive' N') →
    (∀ {N N' : Type (max u v)} [inst_2 : AddCommMonoid N] [inst_3 : AddCommMonoid N'] [inst_4 : Module R N]
        [inst_5 : Module R N'] (a : N ≃ₗ[R] N'), motive' N → motive' N') →
      motive PUnit.{u + 1} →
        (∀ {N : Type u} {N' : Type (max u v)} [inst_2 : AddCommMonoid N] [inst_3 : AddCommMonoid N']
            [inst_4 : Module R N] [inst_5 : Module R N'], motive N → motive' N' → motive' (N × N')) →
          ∀ (M : ι → Type u) [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)],
            (∀ (i : ι), motive (M i)) → motive' ((i : ι) → M i)

To show a property motive of modules holds for arbitrary finite products of modules, it suffices to show

  1. motive is stable under isomorphism.
  2. motive holds for the zero module.
  3. motive holds for M × N if it holds for both M and N.

Since we need to apply motive to modules in Type u and in Type (max u v), there is a second motive' argument which is required to be equivalent to motive up to universe lifting by equiv.

See Module.pi_induction' for a version where motive assumes AddCommGroup instead.

def LinearMap.vecEmpty₂ E1 #

{R : Type u} →
  {M : Type v} →
    {M₂ : Type w} →
      {M₃ : Type y} →
        [inst : CommSemiring R] →
          [inst_1 : AddCommMonoid M] →
            [inst_2 : AddCommMonoid M₂] →
              [inst_3 : AddCommMonoid M₃] →
                [inst_4 : Module R M] → [inst_5 : Module R M₂] → [inst_6 : Module R M₃] → M →ₗ[R] M₂ →ₗ[R] Fin 0 → M₃

The empty bilinear map defeq to Matrix.vecEmpty

theorem LinearMap.vecEmpty₂_apply E0 #

∀ {R : Type u} {M : Type v} {M₂ : Type w} {M₃ : Type y} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : AddCommMonoid M₂] [inst_3 : AddCommMonoid M₃] [inst_4 : Module R M] [inst_5 : Module R M₂]
  [inst_6 : Module R M₃] (x : M), LinearMap.vecEmpty₂ x = LinearMap.vecEmpty

def LinearMap.vecCons₂ E1 #

{R : Type u} →
  {M : Type v} →
    {M₂ : Type w} →
      {M₃ : Type y} →
        [inst : CommSemiring R] →
          [inst_1 : AddCommMonoid M] →
            [inst_2 : AddCommMonoid M₂] →
              [inst_3 : AddCommMonoid M₃] →
                [inst_4 : Module R M] →
                  [inst_5 : Module R M₂] →
                    [inst_6 : Module R M₃] →
                      {n : ℕ} → (M →ₗ[R] M₂ →ₗ[R] M₃) → (M →ₗ[R] M₂ →ₗ[R] Fin n → M₃) → M →ₗ[R] M₂ →ₗ[R] Fin n.succ → M₃

A bilinear map into Fin n.succ → M₃ can be built out of a map into M₃ and a map into Fin n → M₃

theorem LinearMap.vecCons₂_apply E0 #

∀ {R : Type u} {M : Type v} {M₂ : Type w} {M₃ : Type y} [inst : CommSemiring R] [inst_1 : AddCommMonoid M]
  [inst_2 : AddCommMonoid M₂] [inst_3 : AddCommMonoid M₃] [inst_4 : Module R M] [inst_5 : Module R M₂]
  [inst_6 : Module R M₃] {n : ℕ} (f : M →ₗ[R] M₂ →ₗ[R] M₃) (g : M →ₗ[R] M₂ →ₗ[R] Fin n → M₃) (m : M),
  (f.vecCons₂ g) m = (f m).vecCons (g m)

theorem Module.pi_induction' E1 #

∀ {ι : Type v} [Finite ι] (R : Type u_1) [inst : Ring R]
  (motive : (N : Type u) → [inst_1 : AddCommGroup N] → [Module R N] → Prop)
  (motive' : (N : Type (max u v)) → [inst_1 : AddCommGroup N] → [Module R N] → Prop),
  (∀ {N : Type u} {N' : Type (max u v)} [inst_1 : AddCommGroup N] [inst_2 : AddCommGroup N'] [inst_3 : Module R N]
      [inst_4 : Module R N'] (a : N ≃ₗ[R] N'), motive N → motive' N') →
    (∀ {N N' : Type (max u v)} [inst_1 : AddCommGroup N] [inst_2 : AddCommGroup N'] [inst_3 : Module R N]
        [inst_4 : Module R N'] (a : N ≃ₗ[R] N'), motive' N → motive' N') →
      motive PUnit.{u + 1} →
        (∀ {N : Type u} {N' : Type (max u v)} [inst_1 : AddCommGroup N] [inst_2 : AddCommGroup N'] [inst_3 : Module R N]
            [inst_4 : Module R N'], motive N → motive' N' → motive' (N × N')) →
          ∀ (M : ι → Type u) [inst_1 : (i : ι) → AddCommGroup (M i)] [inst_2 : (i : ι) → Module R (M i)],
            (∀ (i : ι), motive (M i)) → motive' ((i : ι) → M i)

A variant of Module.pi_induction that assumes AddCommGroup instead of AddCommMonoid.