Skip to content

The lab's Lean-defined safety guards, compiled into a real program, agree with a separate checker on every input tried

All 8 guards, compiled into one program, gave the same answer as the separate checker on every input tried, with 0 disagreements.

A proof about a model is only useful if the code that runs is the code that was proved. The lab wrote a set of small safety checks, called guards, from its protocol models as computable definitions in the Lean proof assistant, compiled them into a real program, and compared that program's answers with a separate checker over every input it tried.

What it shows

Each guard is a yes-or-no rule from one of the lab's protocol models, such as whether a device may switch radio links or may send data before a key is confirmed. The lab wrote each rule once, as a Lean definition that the proof assistant both checks and compiles. The compiled program is the one that was tested.

Full truth tables, not a sample

The inputs to these guards are small and finite, so for the guards themselves the lab tried every row, not a sample. The inputs tried were the full truth table of every guard, 109 reachable states of the models, and 64 cells of the lab's decoding-policy table. A separate checker, built on the Z3 solver and a dynamic-programming table, gave the expected answer for each.

Why it matters, and to whom

This is for engineers and reviewers who are asked to trust a proof about a protocol. The usual gap is between the model that was proved and the code that ships. Here a separate checker agrees with the compiled proved definitions on every input tried.

How it was checked

The evidence file names the lab's commit and the files it was read from, by their content hashes, with the counts the page prints. The lab's own acceptance record lists 9 criteria, all met, including a check that the Lean sources use no proof escape hatches.

What it does not claim

  • It does not claim an outside check. The count of disagreements comes from the lab's own test harness.
  • It does not claim the program runs in any product or device. It ran on the lab's computer.
  • It does not claim anything about other parts of the lab's models. The result covers these guards and this table only.
  • It does not claim a new technique. Compiling proved definitions and comparing them with a separate implementation is standard practice; what the lab adds is the comparison for its own guards.

How to reproduce it

The evidence file names the lab commit and the files read. A stronger test would have someone outside the lab re-run the comparison, and would extend it to the guards' surrounding code.

Prior art

Evidence

Related results across the group

All results from OrbitalProof · The OrbitalProof home page

How we show numbers

Every result figure links to the file it comes from. See our published files