Fermat Studio

Bring a checked proof.

Fermat reads Lean files directly in your browser. To attach a reproducible check report, use the exporter in your own Lean project. No source is uploaded to Fermat.

  1. Install Lean and Lake and build the project with its pinned dependencies.
  2. Download export-proof.py. This Python 3 script runs the project’s build and asks Lean which axioms the selected theorem uses. Run it only on projects you trust: Lean builds can execute project code.
  3. Pass the module and the fully qualified name of your theorem:
    python3 export-proof.py /path/to/project \
      --module MyProject.Main \
      --theorem MyProject.main_theorem \
      --output proof.fermat.json
  4. Choose Open proof in Fermat and select the resulting JSON file.

What this checks

The build must succeed. The target’s axiom report must not contain sorryAx. The report includes all axioms, the Lean toolchain, and SHA-256 hashes of source files. Additional axioms may still mean the theorem assumes a mathematical claim; inspect that list.

Imported reports are labelled as reports from your device, not as independent verification by Fermat. Plain Lean files and ZIP archives are source-only imports. Cached proofs in the public library show the build evidence associated with their pinned revision.

What you can explore

Browse imports and declarations, read formal statements, and follow explanations of common tactics. Public cached projects may also include exact proof-term dependencies and before/after goals captured from Lean. Source imports alone cannot reconstruct elaborated dependencies or goal states.