Back to Math Lab

NPA / Checking proof certificates

How NPA checks a proof certificate

NPA is a Math Lab project about checking proof certificates independently. See what makes a certificate acceptable, follow the checks in order and explore the code and related material.

What you can explore
Code and research in public
See the research and the code we're building.
When we checked the public sources
2026-07-02 / NPA v0.2.0
The tags we found were npa v0.2.0, npa-std v0.1.0 and npa-mathlib v0.1.30.
License
Apache-2.0
We checked the Apache-2.0 licenses for npa, npa-std and npa-mathlib on July 2, 2026.

We checked these Git tags on July 2, 2026. The latest we found were npa v0.2.0, npa-std v0.1.0 and npa-mathlib v0.1.30. For the version a package uses, check that repository's README.

Diagram showing how a proof certificate is checked and which results to trust
The preview shows an example result and explains which checks matter. For an actual run, look at the checker report.

Public code and records

What we've published and how we've checked it

See which material is public, what records back the verification and when we checked each detail.

What's public

Research and code

We publish the code and repositories we use for NPA research on GitHub.

When we checked

We checked the public sources on July 2, 2026. Some details also come from the reviewed source snapshot from June 21, 2026.

What the checks leave behind

Certificates, hashes and results

The record keeps each canonical .npcert, the certificate_hash, export_hash and axiom_report_hash, and the results from the checkers.

License

Apache-2.0 in all three repositories

On July 2, 2026, each of the npa, npa-std and npa-mathlib LICENSE files showed Apache-2.0.

What to use each tool for

NPA researches independent certificate checks. Use Lean or Rocq to develop proofs in those environments, and use the browser example to walk through the checking steps. We checked the public tags, licenses and repository visibility on July 2, 2026.

Trust boundary

From making a proof candidate to checking its certificate

See what gets sent to the checker and which results you can use as evidence.

First build a proof candidate and put the certificate in its canonical form. Hand it to an independent checker, whose results provide the evidence.

What goes in
Parsers, elaborators, tactics, automation, theorem searches, plugins, AI, source and replay files, indexes, CI status and release pages.
What comes out
Candidate proofs and supporting files.
What to check
Use the certificate checks as evidence that the candidate is valid.

Building a candidate can use parsers, elaborators, tactics, automation, searches, plugins, AI, source and replay files, theorem indexes, publication plans, CI status, release pages and registry records. NPA bases its verdict on the independent check of the resulting certificate.

Walk through the checks

Follow the certificate through its independent checks

Follow the order of the checks in this browser example. It shows how a checker can work from a certificate without the original proof files.

An example command to check certificates

npa package verify-certs --root . --checker reference --json
NPA / Example check sequence Ready to start
  1. 01 Read the certificate formatBytes of a .npcert in the canonical format / A certificate the checker can read / The format is checked Waiting
  2. 02 Calculate the certificate hashThe certificate's bytes / certificate_hash / A hash you can get again from the same certificate Waiting
  3. 03 Check it with the kernelThe certificate to check / The checker accepts or rejects it / The Rust checker's report Waiting
  4. 04 Run the reference checkerA certificate identified by its hash / An independent decision to accept or reject it / A report from a check that used the certificate without its source Waiting
  5. 05 Record which axioms were usedA package that's passed its checks / axiom_report_hash / A list of assumptions Waiting

Walkthrough status

Ready to show how a certificate is checked

Start the walkthrough to see each check in order.

What we've verified

Find the source and the check behind each statement

Each statement about NPA has a source and a note about what we checked. See when a detail needs to be checked again.

What we sayHow we describe itWhat we've checkedWhere it comes fromChecks before publishing
CL-001 NPA audits the certificate in its canonical .npcert format and the steps used to check it. Confirmed in public sources S01 / 2026-07-02 Check this again when the README changes.
CL-002 On July 2, 2026, the latest Git tag we found for NPA was v0.2.0. Each related package lists its own versions and toolchain pins in its README. Public records checked again S01 / S02 / 2026-07-02 Name the repository whenever you give a tag.
CL-003 Our archived verification record uses Rust 1.95.0. The version tells you which toolchain we used for that check. Checked for this snapshot S01 / 2026-07-02 Check the version again if you publish it.
CL-004 NPA studies how to check certificates independently. To develop proofs in Lean or Rocq, use the environment for the tool you work with. Scope confirmed S01 / S03 / S05 / 2026-07-02 Keep the description of each tool's role visible.
CL-005 Finite Field publishes npa-std and npa-mathlib as separate repositories for theorem packages. Confirmed in public sources S01 / S02 / 2026-07-02 Check that both repositories are public if publication is delayed or the repositories change.
CL-006 The LICENSE files in npa, npa-std and npa-mathlib each list Apache-2.0. Confirmed in public sources S01 / S02 / 2026-07-02 Check each LICENSE file again for major releases.

Where to find the code

Explore the NPA code and theorem packages

Explore the code and related material here. Follow the GitHub links for the latest versions and changes.

4 repositories

finitefield-org

npa

Tools for making and checking proof certificates.

License
We checked the LICENSE file for Apache-2.0 on July 2, 2026.
What we checked
At the July 2, 2026 check, v0.2.0 was the latest Git tag. It was available as a tag, with a GitHub release still unpublished. The README lists NPA_GIT_TAG=v0.2.0.
ExperimentalRust / OCamlProof certificates
View on GitHub

finitefield-org

npa-std

The standard theorem package for NPA source proofs.

License
We checked the LICENSE file for Apache-2.0 on July 2, 2026.
What we checked
At the July 2, 2026 check, the latest tag and GitHub release were both v0.1.0. The README lists package version 0.1.0 and pins the toolchain to NPA_GIT_TAG=v0.1.1.
Experimentaltheorem packageproof source
View on GitHub

finitefield-org

npa-mathlib

Research code for a formal mathematics library.

License
We checked the LICENSE file for Apache-2.0 on July 2, 2026.
What we checked
At the July 2, 2026 check, the newest Git tag was v0.1.30 and the newest GitHub release was v0.1.9. The README lists package version 0.2.1 and pins the toolchain to NPA_GIT_TAG=v0.1.1.
Research projectformal mathematicslibrary
View on GitHub

finitefield-org

Finite Field on GitHub

The organization where Math Lab publishes its code.

License
Check the license in each repository
What we checked
The GitHub API listed npa, npa-std and npa-mathlib as public on July 2, 2026.
Repository listVisibility recordSource code
View the organization on GitHub

GitHub is the source for the public code. We checked the licenses, tags, public visibility and release wording on July 2, 2026.

Tools for working with proofs

What NPA, Lean and Rocq are used for

Lean and Rocq help you write proofs and verify programs. NPA studies certificate checking. See which part of the work each tool handles.

What to compareLeanRocqNPA
What it is An open-source language for writing programs and proofs. An interactive theorem prover with a long history of research. A research project and tools for checking proof certificates.
What people use it for Doing mathematics, checking software and writing programs. Doing mathematics, writing specifications, checking programs and extracting programs from proofs. Studying ways to check certificates independently and keep the trusted part of the system small.
How checks work Lean checks proofs with its kernel and the tools around it. Rocq checks proofs using its kernel and developments it has already checked. NPA hands a canonical .npcert file to an independent checker.
Why we include it here A reference for learning how Lean works, comparing tools and exploring how they could work together. A reference for learning and comparison, and for writing specifications or mathematics in a formal language. Finite Field's research into the systems that check certificates.
What to keep in mind Writing proofs takes specialist knowledge. Writing proofs takes specialist knowledge. The current research focuses on checking certificates independently. For writing proofs, use an environment suited to your work, such as Lean or Rocq.

FAQ

Common questions about NPA

Find out what NPA checks, which parts you can try and where to see the supporting records.

Read about Finite Field
01 What can this page tell me about using NPA in a project?
This page describes NPA research and code. If you're considering a project, we'll agree on what you need, which risks to consider, who is responsible and how to tell when the work is complete.
02 Where does NPA fit alongside Lean and Rocq?
NPA is at the stage of researching independent certificate checks. Use Lean or Rocq and their own tools for the proofs you write in those systems.
03 What does the browser example show?
The diagram takes you through the steps in your browser. To run NPA and check a real certificate, use the command-line tools.
04 What records show that a certificate was checked?
Keep the certificate, hashes you can reproduce from the same input, the results from the Rust kernel and the independent reference checker, and the report of which axioms were used.
05 When did you check the public information?
We checked the public versions, repository visibility, pinned toolchain versions, licenses and source references on July 2, 2026. Check them again if publication is delayed or the repositories change.

What proof checking can teach us about daily work

Keep a record of how business decisions were made

For a business system, agree on what the system should produce, how to check it and which records to keep. Decide when someone needs to make a correction or give approval.