I am slightly confused about the definition of an algebra. Depending on the context the definitions seem to vary widely. For example this source in the context of measure theory defines an algebra as follows:
A collection $\mathcal{A}$ of subsets of $X$ is called an algebra if:
- $\emptyset \in \mathcal{A}$,
- if $A,B \in \mathcal{A}$ then $A\cap B\in \mathcal{A}$;
- if $A\in \mathcal{A}$ then $A^c\in \mathcal{A}$.
whilst (Dummit and Foote, 2004;pg342) define an algebra as follows:
Let $R$ be a commutative ring with identity. An $R$-algebra is a ring $A$ with identity together with a ring homomorphism $f:R\rightarrow A$ mapping $1_R$ to $1_A$ such that the subring $f(R)$ of $A$ is contained in the center of $A$.
Clearly these two examples are very different. As such is there a overall definition of an algebra which includes all such definitions (i.e. if $A$ is an algebra under one of these then it will be an algebra under the overall definition)? If not does anyone know of any source that lists the definitions of 'an algebra' in different contexts?