Theorem W, option (A), stage A2: composing peak bounds along a known run #
PK Γ W c s L: the run of c from (s, L) computes nothing at or above 2^W, and a normal end
satisfies the invariant Gd Γ. Safe statements have it (PK.of_safe); the rules below compose
it along a run whose intermediate states are known (from the agreement lemmas), and the
statements that store a computed value (PK.assign, PK.wr, …) take the bound of that value as
a hypothesis. These are the rules the per-procedure proofs of stage A2 use.
Nothing here is used by Theorems A and B.
The peak bound of a run, with the invariant at its normal end, for a run that does not hit a bug.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A call: the arguments, the body from the callee's frame, and the results copied back.
A loop, with an invariant I k before iteration k that gives the invariant Gd and the
body's peak bound.
Expressions under the invariant, with any width #
The peak of an expression (shifts allowed, with their amounts at most K).
Normal runs only #
PK for a normal run: if the run of c ends normally, it computed nothing at or above
2^W and ends with the invariant. Enough for the machine theorem (every core call there ends
normally), and it lets a proof use what the end state of the run satisfies.
Equations
- One or more equations did not get rendered due to their size.
Instances For
A loop, for a normal run, with an invariant I k before iteration k.