Neo-Babylonian algebraic logic