"Code is law" demands much better code. A language like Haskell is needed.
https://github.com/pirapira/bamboo
The Bamboo manifest:
https://github.com/pirapira/bamboo/blob/master/doc/manifest....
There is a project under way to formalize Viper, which is the other newly developed programming language for Ethereum, as well: