Yaohui Chen

Start here. How C++ verification works

What this series claims, and how to read it.

Answers. What this series claims, and how to read it.

Why

  • Tests run the program on selected inputs. Code review reads the source. Neither states what the program must preserve on every execution.
  • This series writes that requirement as a spec and checks it with a proof. The proof checks executions that no test runs.

Thesis

  • A model states the requirement in a form that Rocq can check. A refinement links the model to the code. All seven posts use one program, ByteStore.

Coverage and scope

  • Will. The series verifies one C++17 program from source. The program comes with its spec and its tests. Each claim carries one label: proved, tested, or trusted.
  • Scope. The series covers one property family in one program. It makes no general claim about verified C++.

Who

  • The series is for C++ and security engineers. Post 02 explains how to read the Rocq code.

Run it

Status. Research in progress.

ByteStore C++ source checked_store.hpp, unchanged assumed · trusted base cpp2v translation BRiCk · emits checked_write.v checked Rocq lemmas checked_write_refines_model checked Abstract model Model.write Not proven · outside the chain the binary concrete standard library whole store lifecycle