It is one thing to formalize contracts as functions. Also formalizing the world state is a much harder problem and Ethereum tries to solve it by declaring the blockchain "the world". This is the harder problem as you can observe in courts where nearly all the discussion is about the world state.
For an example, the question might be "murder" vs "manslaughter". Was there malice? This is about the world state. Once that is decided, the function to determine the sentence is relatively quick to compute.
Well, to start with, a judge who decides that part of your contract is invalid for one reason or another isn't going to care about your claims that it's impossible to alter because blockchain.
Oh yeah, that someone might be a person, a corporation, or a government, and the standard of reasonableness will depend on what exactly it is they're doing.