{
  "id": "2024/267",
  "url": "https://opencryptology.org/2024/267",
  "original_url": "https://eprint.iacr.org/2024/267",
  "title": "zkPi: Proving Lean Theorems in Zero-Knowledge",
  "authors": [
    "Evan Laufer",
    "Alex Ozdemir",
    "Dan Boneh"
  ],
  "affiliations": null,
  "abstract": "Interactive theorem provers (ITPs), such as Lean and Coq, can express\nformal proofs for a large category of theorems, from abstract math to\nsoftware correctness. Consider Alice who has a Lean proof for some\npublic statement $T$. Alice wants to convince the world that she has\nsuch a proof, without revealing the actual proof. Perhaps the proof\nshows that a secret program is correct or safe, but the proof itself\nmight leak information about the program's source code. A natural way\nfor Alice to proceed is to construct a succinct, zero-knowledge,\nnon-interactive argument of knowledge (zkSNARK) to prove that she has a\nLean proof for the statement $T$.\n\nIn this work we build zkPi, the first zkSNARK for proofs expressed in\nLean, a state of the art interactive theorem prover. With zkPi, a prover\ncan convince a verifier that a Lean theorem is true, while revealing\nlittle else. The core problem is building an efficient zkSNARK for\ndependent typing. We evaluate zkPi on theorems from two core Lean\nlibraries: stdlib and mathlib. zkPi successfuly proves 57.9% of the\ntheorems in stdlib, and 14.1% of the theorems in mathlib, within 4.5\nminutes per theorem. A zkPi proof is sufficiently short that Fermat could\nhave written one in the margin of his notebook to convince the world, in\nzero knowledge, that he proved his famous last theorem.\n\nInteractive theorem provers (ITPs) can express virtually all systems of\nformal reasoning. Thus, an implemented zkSNARK for ITP theorems\ngeneralizes practical zero-knowledge's interface beyond the status quo:\ncircuit satisfiability and program execution.",
  "category": "Applications",
  "license": {
    "code": "CC BY",
    "url": "https://creativecommons.org/licenses/by/4.0/",
    "label": "CC BY 4.0",
    "attribution": "“zkPi: Proving Lean Theorems in Zero-Knowledge” by Evan Laufer, Alex Ozdemir, Dan Boneh, Cryptology ePrint Archive, Paper 2024/267, https://eprint.iacr.org/2024/267. Licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/).",
    "retroactive": false,
    "redistribute_verbatim_only": false,
    "non_commercial": false
  },
  "dates": {
    "submitted": "2024-02-16T22:57:38Z",
    "updated": "2026-02-10T21:08:50Z",
    "withdrawn": null
  },
  "withdrawn": false,
  "withdrawn_on": null,
  "pdf": {
    "url": "https://opencryptology.org/2024/267.pdf",
    "sha256": "ab2852014b5b956c1cf36cb1b21198dfb219f8e73d598ad5dda97f6297a66d5b",
    "size": 716307,
    "source": "github-mirror",
    "source_date": "2026-04-28T17:20:00Z",
    "maybe_stale": false,
    "newer_on_eprint": null,
    "withdrawn": false
  },
  "versions": [
    {
      "url": "https://opencryptology.org/2024/267/versions/20260428T172000Z.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "label": "copy captured 2026-04-28",
      "source": "github-mirror",
      "source_url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/267.pdf",
      "size": 716307,
      "sha256": "ab2852014b5b956c1cf36cb1b21198dfb219f8e73d598ad5dda97f6297a66d5b",
      "is_default_pdf": true
    },
    {
      "url": "https://opencryptology.org/2024/267/versions/20240219T063834Z.pdf",
      "captured_at": "2024-02-19T06:38:34Z",
      "label": "copy captured 2024-02-19",
      "source": "wayback",
      "source_url": "https://web.archive.org/web/20240219063834id_/https://eprint.iacr.org/2024/267.pdf",
      "size": 695372,
      "sha256": "20310e4b3bb82fbba67b2c431f4e8df10f0a487915dd7227c883d867b604035e",
      "is_default_pdf": false
    }
  ],
  "other_sources": [
    {
      "kind": "wayback",
      "url": "https://web.archive.org/web/20260909013623id_/https://eprint.iacr.org/2024/267.pdf",
      "captured_at": "2026-09-09T01:36:23Z",
      "size": 705618
    },
    {
      "kind": "github-mirror",
      "url": "https://raw.githubusercontent.com/arturo-kong/IACR-eprint-mirror/master/2024/267.pdf",
      "captured_at": "2026-04-28T17:20:00Z",
      "size": 716307
    }
  ],
  "bibtex": "@misc{cryptoeprint:2024/267,\n      author = {Evan Laufer and Alex Ozdemir and Dan Boneh},\n      title = {zkPi: Proving Lean Theorems in Zero-Knowledge},\n      howpublished = {Cryptology {ePrint} Archive, Paper 2024/267},\n      year = {2024},\n      url = {https://eprint.iacr.org/2024/267}\n}"
}
