Definition
Sequential Composition (Hoare Calculus)
The composition rule allows for reasoning about the execution of two programs in sequence (
). It is defined as:
Reasoning
To prove that the sequence
starts in and ends in . starts in and ends in .
The assertion
Sequential composition is associative. Proving
involves finding two intermediate assertions.