# Bialgebra

In mathematics, a bialgebra over a field K is a vector space over K which is both a unital associative algebra and a counital coassociative coalgebra.$^{:46}$ The algebraic and coalgebraic structures are made compatible with a few more axioms. Specifically, the comultiplication and the counit are both unital algebra homomorphisms, or equivalently, the multiplication and the unit of the algebra both are coalgebra morphisms.$^{:46}$ (These statements are equivalent since they are expressed by the same commutative diagrams.)$^{:46}$
Similar bialgebras are related by bialgebra homomorphisms. A bialgebra homomorphism is a linear map that is both an algebra and a coalgebra homomorphism.$^{:45}$
As reflected in the symmetry of the commutative diagrams, the definition of bialgebra is self-dual, so if one can define a dual of B (which is always possible if B is finite-dimensional), then it is automatically a bialgebra.

## Formal definition

(B, ∇, η, Δ, ε) is a bialgebra over K if it has the following properties:
* B is a vector space over K;
* there are K-linear maps (multiplication) ∇: B ⊗ B → B (equivalent to K-multilinear map ∇: B × B → B) and (unit) η: K → B, such that (B, ∇, η) is a unital associative algebra;
* there are K-linear maps (comultiplication) Δ: B → B ⊗ B and (counit) ε: B → K, such that (B, Δ, ε) is a (counital coassociative) coalgebra;
* compatibility conditions expressed by the following commutative diagrams:
* Multiplication ∇ and comultiplication Δ$^{:147}$
    where τ: B ⊗ B → B ⊗ B is the linear map defined by τ(x ⊗ y) = y ⊗ x for all x and y in B,
* Multiplication ∇ and counit ε$^{:148}$
* Comultiplication Δ and unit η$^{:148}$
* Unit η and counit ε$^{:148}$

## Coassociativity and counit

The K-linear map Δ: B → B ⊗ B is coassociative if $(\mathrm {id} _{B}\otimes \Delta )\circ \Delta =(\Delta \otimes \mathrm {id} _{B})\circ \Delta$.
The K-linear map ε: B → K is a counit if $(\mathrm {id} _{B}\otimes \epsilon )\circ \Delta =\mathrm {id} _{B}=(\epsilon \otimes \mathrm {id} _{B})\circ \Delta$.
Coassociativity and counit are expressed by the commutativity of the following two diagrams (they are the duals of the diagrams expressing associativity and unit of an algebra):

## Compatibility conditions

The four commutative diagrams can be read either as "comultiplication and counit are homomorphisms of algebras" or, equivalently, "multiplication and unit are homomorphisms of coalgebras".
These statements are meaningful once we explain the natural structures of algebra and coalgebra in all the vector spaces involved besides B: (K, ∇$_0$, η$_0$) is a unital associative algebra in an obvious way and (B ⊗ B, ∇$_2$, η$_2$) is a unital associative algebra with unit and multiplication
    $\eta _{2}:=(\eta \otimes \eta ):K\otimes K\equiv K\to (B\otimes B)$
    $\nabla _{2}:=(\nabla \otimes \nabla )\circ (id\otimes \tau \otimes id):(B\otimes B)\otimes (B\otimes B)\to (B\otimes B)$,
so that $\nabla _{2}((x_{1}\otimes x_{2})\otimes (y_{1}\otimes y_{2}))=\nabla (x_{1}\otimes y_{1})\otimes \nabla (x_{2}\otimes y_{2})$ or, omitting ∇ and writing multiplication as juxtaposition, $(x_{1}\otimes x_{2})(y_{1}\otimes y_{2})=x_{1}y_{1}\otimes x_{2}y_{2}$;
similarly, (K, Δ$_0$, ε$_0$) is a coalgebra in an obvious way and B ⊗ B is a coalgebra with counit and comultiplication
    $\epsilon _{2}:=(\epsilon \otimes \epsilon ):(B\otimes B)\to K\otimes K\equiv K$
    $\Delta _{2}:=(id\otimes \tau \otimes id)\circ (\Delta \otimes \Delta ):(B\otimes B)\to (B\otimes B)\otimes (B\otimes B)$.
Then, diagrams 1 and 3 say that Δ: B → B ⊗ B is a homomorphism of unital (associative) algebras (B, ∇, η) and (B ⊗ B, ∇$_2$, η$_2$)
    $\Delta \circ \nabla =\nabla _{2}\circ (\Delta \otimes \Delta ):(B\otimes B)\to (B\otimes B)$, or simply Δ(xy) = Δ(x) Δ(y),
    $\Delta \circ \eta =\eta _{2}:K\to (B\otimes B)$, or simply Δ(1$_B$) = 1$_{B⊗B}$;
diagrams 2 and 4 say that ε: B → K is a homomorphism of unital (associative) algebras (B, ∇, η) and (K, ∇$_0$, η$_0$):
    $\epsilon \circ \nabla =\nabla _{0}\circ (\epsilon \otimes \epsilon ):(B\otimes B)\to K$, or simply ε(xy) = ε(x) ε(y)
    $\epsilon \circ \eta =\eta _{0}:K\to K$, or simply ε(1$_B$) = 1$_K$.
Equivalently, diagrams 1 and 2 say that ∇: B ⊗ B → B is a homomorphism of (counital coassociative) coalgebras (B ⊗ B, Δ$_2$, ε$_2$) and (B, Δ, ε):
    $\nabla \otimes \nabla \circ \Delta _{2}=\Delta \circ \nabla :(B\otimes B)\to (B\otimes B),$
    $\nabla _{0}\circ \epsilon _{2}=\epsilon \circ \nabla :(B\otimes B)\to K$;
diagrams 3 and 4 say that η: K → B is a homomorphism of (counital coassociative) coalgebras (K, Δ$_0$, ε$_0$) and (B, Δ, ε):
    $\eta _{2}\circ \Delta _{0}=\Delta \circ \eta :K\to (B\otimes B),$
    $\eta _{0}\circ \epsilon _{0}=\epsilon \circ \eta :K\to K$,
where
    $\epsilon _{0}=id_{K}=\eta _{0}$.

## Examples
### Group bialgebra

An example of a bialgebra is the set of functions from a finite group G (or more generally, any finite monoid) to $\mathbb {R}$, which we may represent as a vector space $\mathbb {R} ^{G}$ consisting of linear combinations of standard basis vectors e$_g$ for each g ∈ G, which may represent a probability distribution over G in the case of vectors whose coefficients are all non-negative and sum to 1. An example of suitable comultiplication operators and counits which yield a counital coalgebra are
    $\Delta (\mathbf {e} _{g})=\mathbf {e} _{g}\otimes \mathbf {e} _{g}\,,$
which represents making a copy of a random variable (which we extend to all $\mathbb {R} ^{G}$ by linearity), and
    $\varepsilon (\mathbf {e} _{g})=1\,,$
(again extended linearly to all of $\mathbb {R} ^{G}$) which represents "tracing out" a random variable — i.e., forgetting the value of a random variable (represented by a single tensor factor) to obtain a marginal distribution on the remaining variables (the remaining tensor factors). Given the interpretation of (Δ,ε) in terms of probability distributions as above, the bialgebra consistency conditions amount to constraints on (∇,η) as follows:
* η is an operator preparing a normalized probability distribution which is independent of all other random variables;
* The product ∇ maps a probability distribution on two variables to a probability distribution on one variable;
* Copying a random variable in the distribution given by η is equivalent to having two independent random variables in the distribution η;
* Taking the product of two random variables, and preparing a copy of the resulting random variable, has the same distribution as preparing copies of each random variable independently of one another, and multiplying them together in pairs.
A pair (∇,η) which satisfy these constraints are the convolution operator
    $\nabla {\bigl\mathbf {e} _{g}\otimes \mathbf {e} _{h}{\bigr )}=\mathbf {e} _{gh}\,,$
again extended to all $\mathbb {R} ^{G}\otimes \mathbb {R} ^{G}$ by linearity; this produces a normalized probability distribution from a distribution on two random variables, and has as a unit the delta-distribution $\eta =\mathbf {e} _{i}\;,$ where i ∈ G denotes the identity element of the group G.

### Other examples

Other examples of bialgebras include the tensor algebra, which can be made into a bialgebra by adding the appropriate comultiplication and counit; these are worked out in detail in that article.
Bialgebras can often be extended to Hopf algebras, if an appropriate antipode can be found; thus, all Hopf algebras are examples of bialgebras.$^{:151}$ Similar structures with different compatibility between the product and comultiplication, or different types of multiplication and comultiplication, include Lie bialgebras and Frobenius algebras. Additional examples are given in the article on coalgebras.