Soundness of a reusable interval contract table
ProvedVerification.IntervalContracts.every_checked_row_is_sounddiscrete-dynamical-systemsformal-verification
Let a deterministic state transition and a family of state predicates be given. Each row of a finite table claims that every state satisfying its precondition reaches a state satisfying its postcondition after exactly the stated number of iterations. Rows may refer to earlier rows for sequential composition, repeated application of a common invariant, consequence, and cases. Identity and single-step rows have their direct local obligations. Any registered primitive must have its own soundness proof. If every row's local obligations hold on every state, every row's claimed interval contract holds.
Preamble
import Definitions.Def_ReusableIntervalContracts open Verification.IntervalContracts
Formal statement
theorem Verification.IntervalContracts.every_checked_row_is_sound {S : Type*} (model : Model S) (code : Table)
(checked : Checked model code) (i : ℕ) (present : i < code.length) :
Holds model.step model.pred (out code i) := by sorrySource
The program-proof rules are based on Hoare, An axiomatic basis for computer programming, Communications of the ACM 12(10), 1969, https://doi.org/10.1145/363235.363259. The present statement treats repeated references and exact integer durations in one table.