SecSIGSecurity Special Interest Group of US MensaCuriosity. Perspective. Security.

Research Library · Idea

Formal verification

Formal verification uses mathematical reasoning to establish that a precisely stated property holds. The property might be a mathematical theorem or a requirement for a model of a program, hardware design, or protocol. A proof assistant such as Lean accepts statements written in its formal language and checks proofs against the rules of that language. Search tools and tactics can help construct proofs, while proof checking tests whether the resulting argument establishes the stated claim. 1

The strength of a verified result depends on the statement and its assumptions. A theorem about an access policy model applies to the permissions and transitions represented in that model. To apply it to deployed software, engineers also need evidence that the implementation matches the model. The same distinction matters in mathematics. A checked proof establishes the formal statement, and comparing that statement with the original problem is a separate review. 1 2

Formal verification can inform testing. NIST describes using formal access rules to generate expected outcomes for software tests, so the implementation can be checked against the intended policy. 2

Source · Theorem Proving in Lean 4: Introduction (opens in a new tab) · Lean Language Reference

References

  1. Theorem Proving in Lean 4: Introduction (opens in a new tab) · Lean Language Reference ↩ ↩
  2. Formal Methods and Combinatorial Testing (opens in a new tab) · NIST ↩ ↩

Research articles

Papers

  • A Formal Proof of the Kepler Conjecture (opens in a new tab)

    The Flyspeck project translated the proof of the maximal density of equal sphere packings into statements suitable for proof assistants. The authors explain how geometric reductions turn the packing question into finite computations and collections of inequalities. They describe the division of work between Isabelle and HOL Light, including verification of a graph classification and numerical bounds. The paper documents the formalization and the resources needed to check it.

    The project shows how to verify a proof that combines traditional mathematics with extensive computation.

In the news

See what connects to it on the map of ideas →

See also