FVO — Formal Verification Online
📘 Formal verification guide

Theorem proving vs model checking: two roads to a proof

8 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.

Model checking and theorem proving are the two classic approaches to formal verification. Model checking is automatic but limited to models it can explore; theorem proving can handle almost anything but needs a human to guide the proof. Most real projects choose based on that trade-off.

The core difference

Model checkingTheorem proving
AutomationPush-button: model + property in, answer outInteractive: a human writes the proof, the tool checks it
ScopeFinite (or finitely abstracted) state systemsUnbounded data, infinite state, parameterised systems, mathematics
Failure outputA concrete counterexample traceAn unfinished proof goal (no counterexample by default)
Main limitState explosionHuman effort and expertise
Typical usersHardware verification engineers, protocol designersResearchers, high-assurance software and arithmetic teams

Model checking in one paragraph

A model checker explores all states of a model — explicitly, symbolically with BDDs, or via SAT-based engines — to decide whether a temporal property holds. Its two killer features are automation and counterexamples: when a property fails, you get a trace you can replay in a waveform viewer. This is why it dominates hardware verification. The engines are explained in BMC vs k-induction.

Theorem proving in one paragraph

A proof assistant (Isabelle/HOL, Coq — now renamed Rocq — Lean, HOL4, ACL2 and others) provides a precise logic, a library of mathematics and a small trusted kernel that checks every proof step. You state a theorem — "this compiler preserves the meaning of every program" — and build the proof interactively, using tactics and automation for routine steps. Because only the kernel must be trusted, the confidence is extremely high.

Famous results from each side

SystemApproachWhat was proven
seL4 microkernelTheorem proving (Isabelle/HOL)The C implementation correctly implements its specification, plus isolation properties
CompCert C compilerTheorem proving (Coq)Generated assembly preserves the meaning of the source program
Floating-point unitsTheorem proving (ACL2, HOL) and equivalenceIEEE-754 correct rounding of division, square root and more at several processor vendors
Processor control logic, caches, bus protocolsModel checking (FPV)Safety and liveness properties of RTL blocks — daily practice in chip design
Communication and cache-coherence protocolsModel checkingDeadlock freedom and coherence invariants

They are converging

  • Proof assistants increasingly call SAT/SMT solvers to discharge routine goals automatically ("hammers").
  • Model checkers increasingly find inductive invariants (IC3/PDR) — essentially automatic proofs.
  • Hardware teams mix them: model checking for control, theorem proving or word-level equivalence for arithmetic.

Which should you learn?

For a career in chip design or verification, start with model checking / FPV: it is used on real projects every day and the FVO course teaches it hands-on. If you are drawn to programming languages, operating systems or mathematics, learning a proof assistant such as Lean or Isabelle is rewarding — and the specification skills carry over. Both are part of the bigger picture in our guide to formal verification foundations.

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.