[Paper Review] Formalizing the Soundness of the Encoding Methods of SAT-based Model Checking
This paper formally verifies the soundness of SAT-based model checking (SMC) encoding methods—k-induction and IC3/PDR—using the Coq proof assistant. It introduces a modular, shallow-embedded specification of SMC methods and proves their correctness through formalized lemmas on state sequences and paths, establishing a verified foundation for reliable SMC tools.
One of the effective model checking methods is to utilize the efficient decision procedure of SAT (or SMT) solvers. In a SAT-based model checking, a system and its property are encoded into a set of logic formulas and the safety is checked based on the satisfiability of the formulas. As the encoding methods are improved and crafted (e.g., k-induction and IC3/PDR), verifying their correctness becomes more important. This research aims at a formal verification of the SMC methods using the Coq proof assistant. Our contributions are twofold: (1) We specify the basic encoding methods, k-induction and (a simplified version of) IC3/PDR in Coq as a set of simple and modular encoding predicates. (2) We provide a formal proof of the soundness of the encoding methods based on our formalized lemmas on state sequences and paths.
Motivation & Objective
- To address the critical need for formally verified SMC tools, as existing implementations may contain flaws in encoding methods.
- To provide a formal, machine-checked proof of soundness for key SMC encoding techniques, ensuring that encoded formulas correctly reflect system safety.
- To develop a reusable, modular Coq specification of SMC methods that supports both verification and prototyping.
- To formalize foundational properties of state sequences and paths—such as path splitting, shifting, and loop detection—essential for reasoning about system behavior.
- To demonstrate that classical logic is minimally required, identifying only two proof components where the law of excluded middle is essential.
Proposed method
- Specifying SMC methods via shallow embedding in Coq, modeling k-induction and a simplified IC3/PDR as parameterized encoding predicates.
- Defining state transition systems using initial conditions I and transition relations T, with formal path representations s[0..i] and path predicates pathT.
- Formalizing safety as ∀i, ∀s[0..i], I(s₀) → pathT(s[0..i]) → P(sᵢ), and encoding this into propositional formulas via E•(I,T,P,k).
- Developing a theory of state sequences and paths with lemmas on path splitting, length manipulation, and loop-free conditions to support soundness proofs.
- Performing inductive proofs over path lengths and encoding structures, using rewriting and path decomposition to discharge subgoals.
- Minimizing reliance on classical logic by isolating its use to only two components: (1) front-end formula transformation and (2) proof by contradiction in Lemma 1.
Experimental results
Research questions
- RQ1Can k-induction and IC3/PDR encoding methods be formally specified in a modular and reusable way within Coq?
- RQ2Is the soundness of these encoding methods provable using only constructive reasoning, with minimal use of classical logic?
- RQ3What foundational lemmas on state sequences and paths are necessary to formally verify SMC algorithms?
- RQ4Can the formalized specification serve as a working prototype SMC tool, demonstrating practical feasibility?
- RQ5What are the minimal logical assumptions (e.g., law of excluded middle) required for proving soundness in SMC encoding?
Key findings
- The authors successfully formalized k-induction and a simplified IC3/PDR as modular encoding predicates in Coq, enabling both specification and execution as a prototype SMC tool.
- Soundness proofs were established for all four methods—forward, backward, k-induction, and IC3/PDR—using a unified theory of state sequences and paths.
- The formalization required only two components to rely on classical logic: the front-end formula transformation and the proof by contradiction in Lemma 1.
- The path theory developed includes lemmas on path splitting, shifting via skipn, and loop-free conditions, which were essential for handling complex path reasoning in proofs.
- The proofs for IC3/PDR were relatively concise due to implicit path handling, while k-induction required more explicit path manipulation and case analysis.
- The entire specification and soundness proofs are publicly available at https://github.com/dsksh/coq-smc/, supporting reuse and extension.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.