Axiomatic Semantics Flashcards
What are axiomatic semantics?
What is an assertion?
Give an example of an assertion.
(T/F) Axiomatic semantics are used for creating programs.
True.
Give an example of a Hoare triple.
What can be used to prove that a Hoare triple is valid?
- Axioms
- Inference Rules
They implicitly define the meaning of a program.
In axiomatic semantics, what notation is used to say that A is stronger then B, and B is weaker than A.
Out of the following triples, which one is the weakest.
(T/F) A stronger assertion has less elements in its set.
True.
Give an example of an inference rule notation.
(T/F) Inference rules can allow to strengthen precondition and weaken postcondition.
True.
Give an example of a sequence rule.
What is another way to write
Explain what logical variables are.
Prove the following using the assignment axiom.