The Rules of Algebra