Safety Proofs by k-Induction
Combine bounded initial checks with an induction step conditioned on several consecutive good states.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Use a longer history in the induction premise
One-step induction asks whether any transition goes from a state satisfying \(P\) to one violating it, regardless of initial reachability. A \(k\)-induction step asks whether \(k\) successive \(P\)-states can be followed by a bad one. The base checks the first \(k\) states of each initial execution, at times zero through \(k-1\). Together they rule out a first violation.
A transient can need two good states
Consider initial state \(0\) with self-loop, and unreachable transitions \(1\to2\to3\), where \(3\) is bad and \(1,2\) are good. One-step induction fails from \(2\), and two-step fails along \(1,2,3\). If no path of three good states reaches \(3\), three-step induction succeeds. Increasing \(k\) may never eliminate an unreachable self-loop leading to a bad state. An inductive strengthening can handle such cases by excluding that loop. Unrolling supplies the formula for each check.[1][2]