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

30 declarations. Mathlib docs · Source

Bialgebras

In this file we define Bialgebras.

Main definitions

  • Bialgebra R A: the structure of a bialgebra on the R-algebra A;
  • CommSemiring.toBialgebra: a commutative semiring is a bialgebra over itself.

Implementation notes

Rather than the "obvious" axiom ∀ a b, counit (a * b) = counit a * counit b, the far more convoluted mul_compr₂_counit is used as a structure field; this says that the corresponding two maps A →ₗ[R] A →ₗ[R] R are equal; a similar trick is used for comultiplication as well. An alternative constructor Bialgebra.mk' is provided with the more easily-readable axioms. The argument for using the more convoluted axioms is that in practice there is evidence that they will be easier to prove (especially when dealing with things like tensor products of bialgebras). This does make the definition more surprising to mathematicians, however mathlib is no stranger to definitions which are surprising to mathematicians -- see for example its definition of a group. Note that this design decision is also compatible with that of Coalgebra. The lengthy docstring for these convoluted fields attempts to explain what is going on.

The constructor Bialgebra.ofAlgHom is dual to the default constructor: For R is a commutative semiring and A an R-algebra, it consumes the counit and comultiplication as algebra homomorphisms that satisfy the coalgebra axioms to define a bialgebra structure on A.

References

Tags

bialgebra

def Bialgebra.ctorIdx E1 #

{R : Type u} → {A : Type v} → {inst : CommSemiring R} → {inst_1 : Semiring A} → Bialgebra R A → ℕ

class Bialgebra E1 #

(R : Type u) → (A : Type v) → [CommSemiring R] → [Semiring A] → Type (max u v)

A bialgebra over a commutative (semi)ring R is both an algebra and a coalgebra over R, such that the counit and comultiplication are algebra morphisms.

instance Bialgebra.toCoalgebra E0 #

{R : Type u} → {A : Type v} → {inst : CommSemiring R} → {inst_1 : Semiring A} → [self : Bialgebra R A] → Coalgebra R A

ctor Bialgebra.mk E0 #

{R : Type u} →
  {A : Type v} →
    [inst : CommSemiring R] →
      [inst_1 : Semiring A] →
        [toAlgebra : Algebra R A] →
          [toCoalgebra : Coalgebra R A] →
            CoalgebraStruct.counit 1 = 1 →
              (LinearMap.mul R A).compr₂ CoalgebraStruct.counit =
                  (LinearMap.mul R R).compl₁₂ CoalgebraStruct.counit CoalgebraStruct.counit →
                CoalgebraStruct.comul 1 = 1 →
                  (LinearMap.mul R A).compr₂ CoalgebraStruct.comul =
                      (LinearMap.mul R (TensorProduct R A A)).compl₁₂ CoalgebraStruct.comul CoalgebraStruct.comul →
                    Bialgebra R A

instance Bialgebra.toAlgebra E0 #

{R : Type u} → {A : Type v} → {inst : CommSemiring R} → {inst_1 : Semiring A} → [self : Bialgebra R A] → Algebra R A

theorem Bialgebra.counit_one E0 #

∀ {R : Type u} {A : Type v} {inst : CommSemiring R} {inst_1 : Semiring A} [self : Bialgebra R A],
  CoalgebraStruct.counit 1 = 1

The counit on a bialgebra preserves 1.

theorem Bialgebra.mul_compr₂_counit E1 #

∀ {R : Type u} {A : Type v} {inst : CommSemiring R} {inst_1 : Semiring A} [self : Bialgebra R A],
  (LinearMap.mul R A).compr₂ CoalgebraStruct.counit =
    (LinearMap.mul R R).compl₁₂ CoalgebraStruct.counit CoalgebraStruct.counit

The counit on a bialgebra preserves multiplication. Note that this is written in a rather obscure way: it says that two bilinear maps A →ₗ[R] A →ₗ[R] are equal. The two corresponding equal linear maps A ⊗[R] A →ₗ[R] are the following: the first factors through A and is multiplication on A followed by counit. The second factors through R ⊗[R] R, and is counit ⊗ counit followed by multiplication on R.

See Bialgebra.mk' for a constructor for bialgebras which uses the more familiar but mathematically equivalent counit (a * b) = counit a * counit b.

theorem Bialgebra.comul_one E0 #

∀ {R : Type u} {A : Type v} {inst : CommSemiring R} {inst_1 : Semiring A} [self : Bialgebra R A],
  CoalgebraStruct.comul 1 = 1

The comultiplication on a bialgebra preserves 1.

theorem Bialgebra.mul_compr₂_comul E1 #

∀ {R : Type u} {A : Type v} {inst : CommSemiring R} {inst_1 : Semiring A} [self : Bialgebra R A],
  (LinearMap.mul R A).compr₂ CoalgebraStruct.comul =
    (LinearMap.mul R (TensorProduct R A A)).compl₁₂ CoalgebraStruct.comul CoalgebraStruct.comul

The comultiplication on a bialgebra preserves multiplication. This is written in a rather obscure way: it says that two bilinear maps A →ₗ[R] A →ₗ[R] (A ⊗[R] A) are equal. The corresponding equal linear maps A ⊗[R] A →ₗ[R] A ⊗[R] A are firstly multiplication followed by comul, and secondly comul ⊗ comul followed by multiplication on A ⊗[R] A.

See Bialgebra.mk' for a constructor for bialgebras which uses the more familiar but mathematically equivalent comul (a * b) = comul a * comul b.

theorem Bialgebra.counit_mul E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Bialgebra R A] (a b : A),
  CoalgebraStruct.counit (a * b) = CoalgebraStruct.counit a * CoalgebraStruct.counit b

theorem Bialgebra.comul_mul E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Bialgebra R A] (a b : A),
  CoalgebraStruct.comul (a * b) = CoalgebraStruct.comul a * CoalgebraStruct.comul b

def Bialgebra.mk' E1 #

(R : Type u) →
  (A : Type v) →
    [inst : CommSemiring R] →
      [inst_1 : Semiring A] →
        [inst_2 : Algebra R A] →
          [C : Coalgebra R A] →
            CoalgebraStruct.counit 1 = 1 →
              (∀ {a b : A}, CoalgebraStruct.counit (a * b) = CoalgebraStruct.counit a * CoalgebraStruct.counit b) →
                CoalgebraStruct.comul 1 = 1 →
                  (∀ {a b : A}, CoalgebraStruct.comul (a * b) = CoalgebraStruct.comul a * CoalgebraStruct.comul b) →
                    Bialgebra R A

If R is a field (or even a commutative semiring) and A is an R-algebra with a coalgebra structure, then Bialgebra.mk' consumes proofs that the counit and comultiplication preserve the identity and multiplication, and produces a bialgebra structure on A.

def Bialgebra.counitAlgHom E1 #

(R : Type u) → (A : Type v) → [inst : CommSemiring R] → [inst_1 : Semiring A] → [inst_2 : Bialgebra R A] → A →ₐ[R] R

counitAlgHom R A is the counit of the R-bialgebra A, as an R-algebra map.

theorem Bialgebra.counitAlgHom_apply E0 #

∀ (R : Type u) (A : Type v) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Bialgebra R A] (a : A),
  (Bialgebra.counitAlgHom R A) a = CoalgebraStruct.counit a

def Bialgebra.comulAlgHom E1 #

(R : Type u) →
  (A : Type v) →
    [inst : CommSemiring R] → [inst_1 : Semiring A] → [inst_2 : Bialgebra R A] → A →ₐ[R] TensorProduct R A A

comulAlgHom R A is the comultiplication of the R-bialgebra A, as an R-algebra map.

theorem Bialgebra.comulAlgHom_apply E0 #

∀ (R : Type u) (A : Type v) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Bialgebra R A] (a : A),
  (Bialgebra.comulAlgHom R A) a = CoalgebraStruct.comul a

theorem Bialgebra.toLinearMap_counitAlgHom E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Bialgebra R A],
  (Bialgebra.counitAlgHom R A).toLinearMap = CoalgebraStruct.counit

theorem Bialgebra.toLinearMap_comulAlgHom E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Bialgebra R A],
  (Bialgebra.comulAlgHom R A).toLinearMap = CoalgebraStruct.comul

theorem Bialgebra.counit_algebraMap E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Bialgebra R A] (r : R),
  CoalgebraStruct.counit ((algebraMap R A) r) = r

theorem Bialgebra.comul_algebraMap E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Bialgebra R A] (r : R),
  CoalgebraStruct.comul ((algebraMap R A) r) = (algebraMap R (TensorProduct R A A)) r

theorem Bialgebra.counit_natCast E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Bialgebra R A] (n : ℕ),
  CoalgebraStruct.counit ↑n = ↑n

theorem Bialgebra.comul_natCast E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Bialgebra R A] (n : ℕ),
  CoalgebraStruct.comul ↑n = ↑n

theorem Bialgebra.counit_pow E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Bialgebra R A] (a : A) (n : ℕ),
  CoalgebraStruct.counit (a ^ n) = CoalgebraStruct.counit a ^ n

theorem Bialgebra.comul_pow E0 #

∀ {R : Type u} {A : Type v} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Bialgebra R A] (a : A) (n : ℕ),
  CoalgebraStruct.comul (a ^ n) = CoalgebraStruct.comul a ^ n

instance CommSemiring.toBialgebra E3 #

(R : Type u) → [inst : CommSemiring R] → Bialgebra R R

Every commutative (semi)ring is a bialgebra over itself

theorem Bialgebra.counitAlgHom_self E0 #

∀ {R : Type u_1} [inst : CommSemiring R], Bialgebra.counitAlgHom R R = AlgHom.id R R

abbrev Bialgebra.ofAlgHom E1 #

{R : Type u_1} →
  {A : Type u_2} →
    [inst : CommSemiring R] →
      [inst_1 : Semiring A] →
        [inst_2 : Algebra R A] →
          (comul : A →ₐ[R] TensorProduct R A A) →
            (counit : A →ₐ[R] R) →
              (↑(Algebra.TensorProduct.assoc R R R A A A)).comp
                    ((Algebra.TensorProduct.map comul (AlgHom.id R A)).comp comul) =
                  (Algebra.TensorProduct.map (AlgHom.id R A) comul).comp comul →
                (Algebra.TensorProduct.map counit (AlgHom.id R A)).comp comul = ↑(Algebra.TensorProduct.lid R A).symm →
                  (Algebra.TensorProduct.map (AlgHom.id R A) counit).comp comul =
                      ↑(Algebra.TensorProduct.rid R R A).symm →
                    Bialgebra R A

If R is a commutative semiring and A is an R-algebra, then Bialgebra.ofAlgHom consumes the counit and comultiplication as algebra homomorphisms that satisfy the coalgebra axioms to define a bialgebra structure on A.

theorem Bialgebra.algebraMap_injective E1 #

∀ {R : Type u_1} (A : Type u_2) [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Bialgebra R A],
  Function.Injective ⇑(algebraMap R A)

theorem Bialgebra.counit_surjective E1 #

∀ {R : Type u_1} {A : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring A] [inst_2 : Bialgebra R A],
  Function.Surjective ⇑CoalgebraStruct.counit

theorem Bialgebra.nontrivial E1 #

∀ (R : Type u_1) {A : Type u_2} [inst : CommSemiring R] [inst_1 : Semiring A] [Bialgebra R A] [Nontrivial R],
  Nontrivial A

A bialgebra over a nontrivial ring is nontrivial.