FVO — Formal Verification Online
📘 Formal verification guide

BMC vs k-induction (and IC3/PDR): how formal engines prove properties

10 min read · Updated

This article is part of our formal verification guide, which covers the foundations, model checking, solvers, theorem proving, equivalence checking and industry use cases.

Almost every modern hardware model checker is built on three SAT-based engines: bounded model checking (BMC), k-induction and IC3/PDR. Knowing what each one can and cannot conclude explains most of the results — "proven", "failed", "bounded", "inconclusive" — that formal tools print.

Bounded model checking (BMC)

BMC, introduced in 1999 by Biere, Cimatti, Clarke and Zhu, unrolls the design k times: one copy of the logic per clock cycle, connected register to register, starting from the reset state. It then asks a SAT solver one question: "Is there an assignment of the inputs in cycles 0..k that makes the property false in some cycle?"

resetcycle 0cycle 1cycle 2cycle 3one SAT problem: inputs of every cycle are free variables
BMC turns k cycles of a sequential design into one large Boolean formula.
  • Satisfiable → the solution is a counterexample trace of at most k cycles — and, because the search grows k one step at a time, typically the shortest one. This is why formal counterexamples are so easy to debug.
  • Unsatisfiable → no violation exists within k cycles of reset. That is a bounded proof, not a full one.

BMC is the best bug-hunting engine there is. Its weakness is depth: a bug that needs 5,000 cycles to appear needs a 5,000-cycle unrolling.

k-induction

k-induction (Sheeran, Singh and Stålmarck, 2000) adds a second check, exactly like mathematical induction:

  1. Base case: the property holds in the first k cycles from reset (a BMC run).
  2. Induction step: from any state, if the property holds for k consecutive cycles, it also holds in the next one.

If both succeed, the property holds forever — a full proof, independent of how deep the reachable states are.

Why the induction step fails on correct designs

The induction step starts from any state, including states that can never be reached from reset. Consider a FIFO whose count register must match its pointers. A state with count = 3 but equal pointers is unreachable, yet the induction step may start there and "prove" that the FIFO can overflow. The counterexample is spurious.

The cure is a helper invariant (also called a lemma) that rules such states out, for example count == wptr - rptr. Once the helper is proven too, the original property becomes inductive. The lab in Chapter 16 proves a 50,000-cycle watchdog in seconds this way, and fails without the helper.

helper invariant (sketch)
// without a helper, induction may start from count=3, wptr==rptr (unreachable)
a_no_overflow: assert property (count <= DEPTH);
// helper: ties count to the pointers, ruling out the unreachable states
a_helper:      assert property (count == ((wptr - rptr) & (DEPTH - 1)) + (full ? DEPTH : 0));

IC3 / PDR

IC3 (Aaron Bradley, around 2011; refined as property-directed reachability, PDR) automates the search for helper invariants. It maintains a sequence of over-approximations of the states reachable in 0, 1, 2… steps and learns small clauses that block states leading to a violation. When two consecutive approximations become equal, they form an inductive invariant and the property is proven. It needs no unrolling depth and often proves properties that k-induction cannot — especially on control logic.

Which engine when?

GoalBest engineWhy
Find bugs quickly, short tracesBMCShortest counterexamples, fast for shallow bugs
Full proof of simple local propertiesk-inductionFast when the property is (nearly) inductive
Full proof of control propertiesIC3/PDRFinds its own strengthening invariants
Deep counters or long pipelinesk-induction or PDR plus your helper invariantsDepth stops mattering once the property is inductive
Covers (reachability goals)BMCA cover is just "find a trace", which is what BMC does

Commercial tools run several engines in parallel and report the first conclusive answer. In the open-source SymbiYosys flow you choose explicitly, for example smtbmc for BMC and k-induction, or abc pdr for PDR. Try both on the labs in the labs page.

Reading tool results correctly

ResultMeaningNext step
ProvenFull proof (induction or PDR succeeded)Check covers and vacuity before trusting it
Failed / CEXA real trace from reset violates the propertyDebug: RTL bug, wrong property or missing assumption?
Bounded (k)No failure within k cyclesJustify k with cover depths, or add helpers to reach a full proof
InconclusiveRan out of timeReduce, abstract or add helpers (Taming complexity)

These engines are one part of the bigger picture described in our formal verification guide; the solvers underneath them are covered in SAT vs SMT solvers.

Learn it hands-on

More from the formal verification guide

← Back to formal verification foundations: the complete guide

Discussion

No comments yet.

Was this page helpful?

Tip: select any text on the page before clicking Report and it will be quoted in your report.