Definition (reasoning algebra, Boolean algebra)
A reasoning algebra is a structure $$ \begin{align*} \mathbf{X} = (X, +, \cdot, \to, -, 0,1) \end{align*} $$ where $X$ is a set, $+, \cdot , \to$ are binary operations, $-$ is a unary operation, and $0\neq 1\in X$ are nullary operations on $X$.
$\mathbf{X}$ is Boolean if the following Boolean laws hold: for all $x,y,z\in X$,
-
associativity: $x + (y + z) = (x + y) + z$ and $x \cdot (y \cdot z) = (x \cdot y) \cdot z$;
-
commutativity: $x+y = y+x$ and $x\cdot y = y\cdot x$;
-
distributivity: $x+(y\cdot z) = (x+y) \cdot (x+z)$ and $x\cdot (y+z) = x\cdot y + x\cdot z$;
-
neutrality: $x+0 = x$ and $x\cdot 1 = x$;
-
annihilation: $x+1 = 1$ and $x\cdot 0 = 0$;
-
idempotence: $x+x = x$ and $x\cdot x = x$;
-
absorption: $x+(x\cdot y) = x$ and $x\cdot (x+y) = x$;
-
double negation: $-(-x) = x$;
-
contradiction: $x\cdot (-x) = 0$;
-
excluded middle: $x + (-x) = 1$;
-
De Morgan's laws: $-(x+y) = (-x)\cdot (-y)$ and $-(x\cdot y) = (-x) + (-y)$;
-
implication: $x\to y = (-x) + y$.
$\mathbf{2} = (\set{0,1}, +, \cdot ,\to, -, 0,1)$ with the usual truth table is a Boolean algebra.