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

33 declarations. Mathlib docs · Source

The free product of $R$-algebras

We define the free product of an indexed collection of (noncommutative) $R$-algebras (i : ι) → A i, with Algebra R (A i) for all i and R a commutative semiring, as the quotient of the tensor algebra on the direct sum ⨁ (i : ι), A i by the relation generated by extending the relation

  • aᵢ ⊗ₜ aᵢ' ~ aᵢ aᵢ' for all i : ι and aᵢ aᵢ' : A i
  • 1ᵢ ~ 1ⱼ for 1ᵢ := One.one (A i) and for all i, j : ι.

to the whole tensor algebra in an R-linear way.

The main result of this file is the universal property of the free product, which establishes the free product as the coproduct in the category of general $R$-algebras.

Main definitions

  • FreeProduct R A is the free product of the R-algebras A i, defined as a quotient of the tensor algebra on the direct sum of the A i.
  • FreeProduct_ofPowers R A is the free product of the R-algebras A i, defined as a quotient of the (infinite) direct sum of tensor powers of the A i.
  • lift is the universal property of the free product.

Main results

  • equivPowerAlgebra establishes an equivalence between FreeProduct R A and FreeProduct_ofPowers R A.
  • FreeProduct is the coproduct in the category of R-algebras.

TODO

  • Induction principle for FreeProduct

theorem LinearAlgebra.FreeProduct.rel.congr_simp E1 #

∀ {I : Type u} {inst : DecidableEq I} [inst_1 : DecidableEq I] (R : Type v) [inst_2 : CommSemiring R] (A : I → Type w)
  [inst_3 : (i : I) → Semiring (A i)] [inst_4 : (i : I) → Algebra R (A i)]
  (a a_1 : LinearAlgebra.FreeProduct.FreeTensorAlgebra R A),
  a = a_1 →
    ∀ (a_2 a_3 : LinearAlgebra.FreeProduct.FreeTensorAlgebra R A),
      a_2 = a_3 → LinearAlgebra.FreeProduct.rel R A a a_2 = LinearAlgebra.FreeProduct.rel R A a_1 a_3

theorem DirectSum.induction_lon E1 #

∀ {R : Type u_1} [inst : Semiring R] {ι : Type u_2} [inst_1 : DecidableEq ι] {M : ι → Type u_3}
  [inst_2 : (i : ι) → AddCommMonoid (M i)] [inst_3 : (i : ι) → Module R (M i)]
  {motive : (DirectSum ι fun i ↦ M i) → Prop} (x : DirectSum ι fun i ↦ M i),
  motive 0 →
    (∀ (i : ι) (x : M i), motive ((DirectSum.lof R ι M i) x)) →
      (∀ (x y : DirectSum ι fun i ↦ M i), motive x → motive y → motive (x + y)) → motive x

A variant of DirectSum.induction_on that uses DirectSum.lof instead of .of

instance LinearAlgebra.FreeProduct.instModuleDirectSum E0 #

{I : Type u} →
  (R : Type v) →
    [inst : CommSemiring R] →
      (A : I → Type w) →
        [inst_1 : (i : I) → Semiring (A i)] → [(i : I) → Algebra R (A i)] → Module R (DirectSum I fun i ↦ A i)

abbrev LinearAlgebra.FreeProduct.FreeTensorAlgebra E1 #

{I : Type u} →
  (R : Type v) →
    [inst : CommSemiring R] →
      (A : I → Type w) → [inst_1 : (i : I) → Semiring (A i)] → [(i : I) → Algebra R (A i)] → Type (max v w u)

The free tensor algebra over a direct sum of R-algebras, before taking the quotient by the free product relation

abbrev LinearAlgebra.FreeProduct.PowerAlgebra E1 #

{I : Type u} →
  (R : Type v) →
    [inst : CommSemiring R] →
      (A : I → Type w) → [inst_1 : (i : I) → Semiring (A i)] → [(i : I) → Algebra R (A i)] → Type (max (max w u) v)

The direct sum of tensor powers of a direct sum of R-algebras, before taking the quotient by the free product relation

def LinearAlgebra.FreeProduct.powerAlgebraEquivFreeTensorAlgebra E1 #

{I : Type u} →
  (R : Type v) →
    [inst : CommSemiring R] →
      (A : I → Type w) →
        [inst_1 : (i : I) → Semiring (A i)] →
          [inst_2 : (i : I) → Algebra R (A i)] →
            LinearAlgebra.FreeProduct.PowerAlgebra R A ≃ₐ[R] LinearAlgebra.FreeProduct.FreeTensorAlgebra R A

The free tensor algebra and its representation as an infinite direct sum of tensor powers are (noncomputably) equivalent as R-algebras.

inductive LinearAlgebra.FreeProduct.rel E1 #

{I : Type u} →
  [DecidableEq I] →
    (R : Type v) →
      [inst : CommSemiring R] →
        (A : I → Type w) →
          [inst_1 : (i : I) → Semiring (A i)] →
            [inst_2 : (i : I) → Algebra R (A i)] →
              LinearAlgebra.FreeProduct.FreeTensorAlgebra R A → LinearAlgebra.FreeProduct.FreeTensorAlgebra R A → Prop

The generating equivalence relation for elements of the free tensor algebra that are identified in the free product

ctor LinearAlgebra.FreeProduct.rel.id E0 #

∀ {I : Type u} [inst : DecidableEq I] {R : Type v} [inst_1 : CommSemiring R] {A : I → Type w}
  [inst_2 : (i : I) → Semiring (A i)] [inst_3 : (i : I) → Algebra R (A i)] {i : I},
  LinearAlgebra.FreeProduct.rel R A ((TensorAlgebra.ι R) ((DirectSum.lof R I A i) 1)) 1

ctor LinearAlgebra.FreeProduct.rel.prod E0 #

∀ {I : Type u} [inst : DecidableEq I] {R : Type v} [inst_1 : CommSemiring R] {A : I → Type w}
  [inst_2 : (i : I) → Semiring (A i)] [inst_3 : (i : I) → Algebra R (A i)] {i : I} {a₁ a₂ : A i},
  LinearAlgebra.FreeProduct.rel R A
    ((TensorAlgebra.tprod R (DirectSum I fun i ↦ A i) 2) fun x ↦
      match x with
      | 0 => (DirectSum.lof R I A i) a₁
      | 1 => (DirectSum.lof R I A i) a₂)
    ((TensorAlgebra.ι R) ((DirectSum.lof R I A i) (a₁ * a₂)))

def LinearAlgebra.FreeProduct.ringCon E1 #

{I : Type u} →
  [DecidableEq I] →
    (R : Type v) →
      [inst : CommSemiring R] →
        (A : I → Type w) →
          [inst_1 : (i : I) → Semiring (A i)] →
            [inst_2 : (i : I) → Algebra R (A i)] → RingCon (LinearAlgebra.FreeProduct.FreeTensorAlgebra R A)

rel as a ring congruence.

def LinearAlgebra.FreeProduct.rel' E1 #

{I : Type u} →
  [DecidableEq I] →
    (R : Type v) →
      [inst : CommSemiring R] →
        (A : I → Type w) →
          [inst_1 : (i : I) → Semiring (A i)] →
            [inst_2 : (i : I) → Algebra R (A i)] →
              (DirectSum ℕ fun n ↦ TensorPower R n (DirectSum I fun i ↦ A i)) →
                (DirectSum ℕ fun n ↦ TensorPower R n (DirectSum I fun i ↦ A i)) → Prop

The generating equivalence relation for elements of the power algebra that are identified in the free product

def LinearAlgebra.FreeProduct.ringCon' E1 #

{I : Type u} →
  [DecidableEq I] →
    (R : Type v) →
      [inst : CommSemiring R] →
        (A : I → Type w) →
          [inst_1 : (i : I) → Semiring (A i)] →
            [inst_2 : (i : I) → Algebra R (A i)] → RingCon (LinearAlgebra.FreeProduct.PowerAlgebra R A)

rel' as a ring congruence.

theorem LinearAlgebra.FreeProduct.rel_id E1 #

∀ {I : Type u} [inst : DecidableEq I] (R : Type v) [inst_1 : CommSemiring R] (A : I → Type w)
  [inst_2 : (i : I) → Semiring (A i)] [inst_3 : (i : I) → Algebra R (A i)] (i : I),
  LinearAlgebra.FreeProduct.rel R A ((TensorAlgebra.ι R) ((DirectSum.lof R I A i) 1)) 1

def LinearAlgebra.FreeProduct E3 #

{I : Type u} →
  [DecidableEq I] →
    (R : Type v) →
      [inst : CommSemiring R] →
        (A : I → Type w) → [inst_1 : (i : I) → Semiring (A i)] → [(i : I) → Algebra R (A i)] → Type (max (max u v) w)

The free product of the collection of R-algebras A i, as a quotient of FreeTensorAlgebra R A

def LinearAlgebra.FreeProduct.asPowers E1 #

{I : Type u} →
  [DecidableEq I] →
    (R : Type v) →
      [inst : CommSemiring R] →
        (A : I → Type w) → [inst_1 : (i : I) → Semiring (A i)] → [(i : I) → Algebra R (A i)] → Type (max (max u v) w)

The free product of the collection of R-algebras A i, as a quotient of PowerAlgebra R A

def LinearAlgebra.FreeProduct.asPowersEquiv E1 #

{I : Type u} →
  [inst : DecidableEq I] →
    (R : Type v) →
      [inst_1 : CommSemiring R] →
        (A : I → Type w) →
          [inst_2 : (i : I) → Semiring (A i)] →
            [inst_3 : (i : I) → Algebra R (A i)] →
              LinearAlgebra.FreeProduct.asPowers R A ≃ₐ[R] LinearAlgebra.FreeProduct R A

The R-algebra equivalence relating FreeProduct and FreeProduct.asPowers.

instance LinearAlgebra.FreeProduct.instSemiring E0 #

{I : Type u} →
  [inst : DecidableEq I] →
    (R : Type v) →
      [inst_1 : CommSemiring R] →
        (A : I → Type w) →
          [inst_2 : (i : I) → Semiring (A i)] →
            [inst_3 : (i : I) → Algebra R (A i)] → Semiring (LinearAlgebra.FreeProduct R A)

instance LinearAlgebra.FreeProduct.instAlgebra E0 #

{I : Type u} →
  [inst : DecidableEq I] →
    (R : Type v) →
      [inst_1 : CommSemiring R] →
        (A : I → Type w) →
          [inst_2 : (i : I) → Semiring (A i)] →
            [inst_3 : (i : I) → Algebra R (A i)] → Algebra R (LinearAlgebra.FreeProduct R A)

abbrev LinearAlgebra.FreeProduct.mkAlgHom E1 #

{I : Type u} →
  [inst : DecidableEq I] →
    (R : Type v) →
      [inst_1 : CommSemiring R] →
        (A : I → Type w) →
          [inst_2 : (i : I) → Semiring (A i)] →
            [inst_3 : (i : I) → Algebra R (A i)] →
              LinearAlgebra.FreeProduct.FreeTensorAlgebra R A →ₐ[R] LinearAlgebra.FreeProduct R A

The canonical quotient map FreeTensorAlgebra R A →ₐ[R] FreeProduct R A, as an R-algebra homomorphism

def LinearAlgebra.FreeProduct.ι' E1 #

{I : Type u} →
  [inst : DecidableEq I] →
    (R : Type v) →
      [inst_1 : CommSemiring R] →
        (A : I → Type w) →
          [inst_2 : (i : I) → Semiring (A i)] →
            [inst_3 : (i : I) → Algebra R (A i)] → (DirectSum I fun i ↦ A i) →ₗ[R] LinearAlgebra.FreeProduct R A

The canonical linear map from the direct sum of the A i to the free product

theorem LinearAlgebra.FreeProduct.ι_apply E0 #

∀ {I : Type u} [inst : DecidableEq I] (R : Type v) [inst_1 : CommSemiring R] (A : I → Type w)
  [inst_2 : (i : I) → Semiring (A i)] [inst_3 : (i : I) → Algebra R (A i)] (x : DirectSum I fun i ↦ A i),
  ↑((TensorAlgebra.ι R) x) = (LinearAlgebra.FreeProduct.ι' R A) x

theorem LinearAlgebra.FreeProduct.identify_one E1 #

∀ {I : Type u} [inst : DecidableEq I] (R : Type v) [inst_1 : CommSemiring R] (A : I → Type w)
  [inst_2 : (i : I) → Semiring (A i)] [inst_3 : (i : I) → Algebra R (A i)] (i : I),
  (LinearAlgebra.FreeProduct.ι' R A) ((DirectSum.lof R I A i) 1) = 1

The injection into the free product of any 1 : A i is the 1 of the free product.

theorem LinearAlgebra.FreeProduct.mul_injections E1 #

∀ {I : Type u} [inst : DecidableEq I] {i : I} (R : Type v) [inst_1 : CommSemiring R] (A : I → Type w)
  [inst_2 : (i : I) → Semiring (A i)] [inst_3 : (i : I) → Algebra R (A i)] (a₁ a₂ : A i),
  (LinearAlgebra.FreeProduct.ι' R A) ((DirectSum.lof R I A i) a₁) *
      (LinearAlgebra.FreeProduct.ι' R A) ((DirectSum.lof R I A i) a₂) =
    (LinearAlgebra.FreeProduct.ι' R A) ((DirectSum.lof R I A i) (a₁ * a₂))

Multiplication in the free product of the injections of any two aᵢ aᵢ': A i for the same i is just the injection of multiplication aᵢ * aᵢ' in A i.

abbrev LinearAlgebra.FreeProduct.lof E1 #

{I : Type u} →
  [inst : DecidableEq I] →
    (R : Type v) →
      [inst_1 : CommSemiring R] →
        (A : I → Type w) →
          [inst_2 : (i : I) → Semiring (A i)] →
            [inst_3 : (i : I) → Algebra R (A i)] → (i : I) → A i →ₗ[R] LinearAlgebra.FreeProduct R A

The ith canonical injection, from A i to the free product, as a linear map

theorem LinearAlgebra.FreeProduct.lof_map_one E1 #

∀ {I : Type u} [inst : DecidableEq I] (R : Type v) [inst_1 : CommSemiring R] (A : I → Type w)
  [inst_2 : (i : I) → Semiring (A i)] [inst_3 : (i : I) → Algebra R (A i)] (i : I),
  (LinearAlgebra.FreeProduct.lof R A i) 1 = 1

lof R A i 1 = 1 for all i.

def LinearAlgebra.FreeProduct.ι E1 #

{I : Type u} →
  [inst : DecidableEq I] →
    (R : Type v) →
      [inst_1 : CommSemiring R] →
        (A : I → Type w) →
          [inst_2 : (i : I) → Semiring (A i)] →
            [inst_3 : (i : I) → Algebra R (A i)] → (i : I) → A i →ₐ[R] LinearAlgebra.FreeProduct R A

The ith canonical injection, from A i to the free product

def LinearAlgebra.FreeProduct.of E1 #

{I : Type u} →
  [inst : DecidableEq I] →
    (R : Type v) →
      [inst_1 : CommSemiring R] →
        (A : I → Type w) →
          [inst_2 : (i : I) → Semiring (A i)] →
            [inst_3 : (i : I) → Algebra R (A i)] → {i : I} → A i →ₐ[R] LinearAlgebra.FreeProduct R A

The family of canonical injection maps, with i left implicit

def LinearAlgebra.FreeProduct.lift E3 #

{I : Type u} →
  [inst : DecidableEq I] →
    (R : Type v) →
      [inst_1 : CommSemiring R] →
        (A : I → Type w) →
          [inst_2 : (i : I) → Semiring (A i)] →
            [inst_3 : (i : I) → Algebra R (A i)] →
              {B : Type w'} →
                [inst_4 : Semiring B] →
                  [inst_5 : Algebra R B] → ({i : I} → A i →ₐ[R] B) ≃ (LinearAlgebra.FreeProduct R A →ₐ[R] B)

Universal property of the free product of algebras: for every R-algebra B, every family of maps maps : (i : I) → (A i →ₐ[R] B) lifts to a unique arrow π from FreeProduct R A such that π ∘ ι i = maps i.

theorem LinearAlgebra.FreeProduct.lift_symm_apply E0 #

∀ {I : Type u} [inst : DecidableEq I] (R : Type v) [inst_1 : CommSemiring R] (A : I → Type w)
  [inst_2 : (i : I) → Semiring (A i)] [inst_3 : (i : I) → Algebra R (A i)] {B : Type w'} [inst_4 : Semiring B]
  [inst_5 : Algebra R B] (π : LinearAlgebra.FreeProduct R A →ₐ[R] B) (i : I),
  (LinearAlgebra.FreeProduct.lift R A).symm π = π.comp (LinearAlgebra.FreeProduct.ι R A i)

theorem LinearAlgebra.FreeProduct.lift_apply E0 #

∀ {I : Type u} [inst : DecidableEq I] (R : Type v) [inst_1 : CommSemiring R] (A : I → Type w)
  [inst_2 : (i : I) → Semiring (A i)] [inst_3 : (i : I) → Algebra R (A i)] {B : Type w'} [inst_4 : Semiring B]
  [inst_5 : Algebra R B] (maps : {i : I} → A i →ₐ[R] B),
  (LinearAlgebra.FreeProduct.lift R A) maps =
    (LinearAlgebra.FreeProduct.ringCon R A).liftₐ
      ((TensorAlgebra.lift R) (DirectSum.toModule R I B fun x ↦ maps.toLinearMap)) ⋯

theorem LinearAlgebra.FreeProduct.lift_comp_ι E0 #

∀ {I : Type u} [inst : DecidableEq I] {i : I} (R : Type v) [inst_1 : CommSemiring R] (A : I → Type w)
  [inst_2 : (i : I) → Semiring (A i)] [inst_3 : (i : I) → Algebra R (A i)] {B : Type w'} [inst_4 : Semiring B]
  [inst_5 : Algebra R B] (maps : {i : I} → A i →ₐ[R] B),
  ((LinearAlgebra.FreeProduct.lift R A) fun {i} ↦ maps).comp (LinearAlgebra.FreeProduct.ι R A i) = maps

Universal property of the free product of algebras, property: for every R-algebra B, every family of maps maps : (i : I) → (A i →ₐ[R] B) lifts to a unique arrow π from FreeProduct R A such that π ∘ ι i = maps i.

theorem LinearAlgebra.FreeProduct.lift_algebraMap E0 #

∀ {I : Type u} [inst : DecidableEq I] (R : Type v) [inst_1 : CommSemiring R] (A : I → Type w)
  [inst_2 : (i : I) → Semiring (A i)] [inst_3 : (i : I) → Algebra R (A i)] {B : Type w'} [inst_4 : Semiring B]
  [inst_5 : Algebra R B] (maps : {i : I} → A i →ₐ[R] B) (r : R),
  ((LinearAlgebra.FreeProduct.lift R A) fun {i} ↦ maps) ((algebraMap R (LinearAlgebra.FreeProduct R A)) r) =
    (algebraMap R B) r

theorem LinearAlgebra.FreeProduct.lift_unique E1 #

∀ {I : Type u} [inst : DecidableEq I] (R : Type v) [inst_1 : CommSemiring R] (A : I → Type w)
  [inst_2 : (i : I) → Semiring (A i)] [inst_3 : (i : I) → Algebra R (A i)] {B : Type w'} [inst_4 : Semiring B]
  [inst_5 : Algebra R B] (maps : {i : I} → A i →ₐ[R] B) (f : LinearAlgebra.FreeProduct R A →ₐ[R] B),
  (∀ (i : I), f.comp (LinearAlgebra.FreeProduct.ι R A i) = maps) →
    f = (LinearAlgebra.FreeProduct.lift R A) fun {i} ↦ maps