How can i derive this Hoare Tripel?
{false} x := x + 1; {x = 0}
I do not know which rule should i use on this. I am confused on this wrong precondition.
Computer Science Stack Exchange is a question and answer site for students, researchers and practitioners of computer science. It only takes a minute to sign up.
Sign up to join this communityHow can i derive this Hoare Tripel?
{false} x := x + 1; {x = 0}
I do not know which rule should i use on this. I am confused on this wrong precondition.
Hoare triple derivations use axioms and rules of Hoare logic. In this case, one would use (1) an instance of the assigment axiom followed by (2) an instance of the consequence rule. Yves Daoust's comment spells out the relevant premise (2).