PROBATIO

What does “zero exact matches” actually prove?

Before a medical imaging team freezes its test set, a reviewer may ask whether any training volume also appears in it. For two admissible batches of decoded volumes, PROBATIO’s Lean reference verifier accepts an empty report exactly when the batches share no identical volume.

See what Lean proves

Verification scope

Proved in Lean 4The reference verifier accepts a report if and only if it lists every matching pair of identifiers across the two batches exactly once and contains no other pair. Identity means equal XYZ dimensions and identical canonical binary64 voxel values in the same order. The result holds for every grouping key, even if all keys collide.
Tested in PythonThe streaming verifier reads uncompressed, scalar 3D NIfTI-1 files (.nii). It checks decoded values for finiteness and normalises negative zero to positive zero. Its separate suite passed 15 unit tests. An incomplete file check has its own outcome. Formal equivalence with the Lean functions remains open.
Outside the proofTwo acquisitions of one patient, resampled or cropped copies, and examinations missing from a supplied inventory can all escape an exact-content check. Patient independence, affine geometry and the completeness of the source inventory require other evidence.
Admissibility assumptions in the formal statement

Each batch is non-empty and uses distinct identifiers within that batch. Each volume has three positive dimensions and exactly X × Y × Z finite binary64 values, with negative zero excluded. The proof establishes the acceptance rule without using these assumptions.

Proof and replay

Lean 4.15.0 checked verifier_correct, verifierCle_correct and five examples in release v0.1.2. Both proofs were replayed in a fresh environment with the Lean kernel using lean4checker --fresh. Each theorem reports only propext and Quot.sound.

On 24 November 2026, nanoda, an independent proof checker written in Rust, checked both exported theorems and their dependencies on the v0.1.2 release tag. It verified 570 declarations without errors.

Release and replay commit ddfe529a8b71ff50097a7e5050f6513b5ef27c0a. Release sources · Independent replay log · Lean, Python and source archive checks.

Download the one-page technical brief (PDF). The reviewed brief describes v0.1.1. The proof statements and verifier code are identical in v0.1.2.

Use in a dataset review

Record the two inventories, the decoding profile and the list of matching pairs. This contributes evidence on exact content overlap for a review under GMLP Principle 4. Assessing independence also requires consideration of patient, acquisition and site factors.

Supporting evidence only. This tool has not been qualified for regulatory submission. IMDRF guiding principles, No. 4 (PDF p. 7)

Check two batches before you freeze your test set.

Tell us the role of each batch, the file format and the planned freeze date. We can scope the work without receiving any images.

Request an exact-match check