Derivation of the Dirac equation from principles of information processing