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$,

  1. associativity: $x + (y + z) = (x + y) + z$ and $x \cdot (y \cdot z) = (x \cdot y) \cdot z$;

  2. commutativity: $x+y = y+x$ and $x\cdot y = y\cdot x$;

  3. distributivity: $x+(y\cdot z) = (x+y) \cdot (x+z)$ and $x\cdot (y+z) = x\cdot y + x\cdot z$;

  4. neutrality: $x+0 = x$ and $x\cdot 1 = x$;

  5. annihilation: $x+1 = 1$ and $x\cdot 0 = 0$;

  6. idempotence: $x+x = x$ and $x\cdot x = x$;

  7. absorption: $x+(x\cdot y) = x$ and $x\cdot (x+y) = x$;

  8. double negation: $-(-x) = x$;

  9. contradiction: $x\cdot (-x) = 0$;

  10. excluded middle: $x + (-x) = 1$;

  11. De Morgan's laws: $-(x+y) = (-x)\cdot (-y)$ and $-(x\cdot y) = (-x) + (-y)$;

  12. implication: $x\to y = (-x) + y$.

$\mathbf{2} = (\set{0,1}, +, \cdot ,\to, -, 0,1)$ with the usual truth table is a Boolean algebra.