{
  "id": "open-challenges-fastest-lean-compiler-0273cfe4ff66c741",
  "name": "Fastest Lean Compiler",
  "tagline": "Make the Lean 4 toolchain build proofs faster. CI times your Lean against stock Lean on a verified-software workload; every theorem must stay byte-identical.",
  "description": "Fork leanprover/lean4 at v4.36.0 and make it build the Cedar workload (with Batteries) faster. CI builds your toolchain and stock Lean from source, times `lake build +Cedar` over four salted, order-balanced rounds on a 4-core runner, and requires the exported theorems to match stock Lean's byte for byte. The score is the geometric mean of stock's build time over yours; a new record must beat the best by 3%. Run by the Open Challenge List.",
  "url": "https://github.com/open-challenges/fastest-lean-compiler",
  "host": "github",
  "status": "active",
  "domain": "formal-methods",
  "tags": [
    "lean4",
    "formal-verification",
    "compilers",
    "build-performance",
    "theorem-proving",
    "verified-software"
  ],
  "images": [],
  "participation": {
    "howToSubmit": "pull request into submissions/<handle>/ with a SUBMISSION.md",
    "submissionFormat": "Only SUBMISSION.md. Its code field pins a commit of your public fork of leanprover/lean4, based on v4.36.0.",
    "computeDetails": "No GPU. Building Lean from source takes 35 to 55 minutes on CI's 4-core runner (about 2 CPU-hours), and the workload then builds in 3 to 5 minutes with stock Lean (about two on a 10-core laptop). Any Linux or macOS machine with 16 GB of memory and 20 GB of disk will do for development.",
    "deadline": "rolling",
    "prizes": "recognition only",
    "eligibility": "Open to everyone.",
    "cost": "free",
    "verification": "CI builds your toolchain and stock Lean v4.36.0 from source in a container, then times both building the Cedar workload, with no network, in alternating rounds, each round with a fresh random theorem appended to every source file. Your build must export the same theorems as stock Lean's, byte for by",
    "requirements": [
      "a C/C++ toolchain (clang)",
      "CMake",
      "GMP 6.3 or newer",
      "libuv",
      "OpenSSL",
      "git",
      "Python 3.10+"
    ],
    "compute": "cpu"
  },
  "links": [
    {
      "label": "Leaderboard",
      "url": "https://github.com/open-challenges/fastest-lean-compiler#leaderboard"
    },
    {
      "label": "Website",
      "url": "https://github.com/open-challenges/fastest-lean-compiler"
    },
    {
      "label": "Lean Kernel Arena",
      "url": "https://arena.lean-lang.org/"
    },
    {
      "label": "leanprover/lean4",
      "url": "https://github.com/leanprover/lean4"
    },
    {
      "label": "cedar-policy/cedar-spec",
      "url": "https://github.com/cedar-policy/cedar-spec"
    },
    {
      "label": "Batteries",
      "url": "https://github.com/leanprover-community/batteries"
    }
  ],
  "organizer": {
    "name": "Open Challenge List",
    "url": "https://openchallengelist.com/"
  },
  "venue": {
    "type": "online"
  },
  "quickstart": "git clone https://github.com/open-challenges/fastest-lean-compiler && cd fastest-lean-compiler\ngit clone --branch v4.36.0 https://github.com/leanprover/lean4 ../lean4-stock\n(cd ../lean4-stock && cmake --preset release && make -C build/release -j)   # stock Lean, built as CI builds it\ngit clone https://github.com/leanprover/lean4 ../lean4 && git -C ../lean4 checkout -b faster v4.36.0\n# ... make Lean faster in ../lean4, build it the same way, then judge it as CI does:\npython3 scripts/verify.py --entry-toolchain ../lean4/build/release/stage1 --stock-toolchain ../lean4-stock/build/release/stage1",
  "agentPolicy": {
    "agents": "welcome",
    "attribution": "Name the model and harness in the agent block of SUBMISSION.md."
  },
  "standard": {
    "problem": true,
    "submission": false,
    "submissions": 0,
    "version": 1,
    "warnings": [
      "Standard document warning"
    ]
  },
  "problems": [
    {
      "description": "Stock Lean v4.36.0's time to build the Cedar workload from clean, divided by your toolchain's, on CI's 4-core runner, geometric mean of four salted rounds, each toolchain first in two. Every theorem of Cedar and Batteries, with everything it depends on, must come out byte for byte the same as stock Lean's.",
      "metricUnit": "× stock Lean",
      "id": "cedar",
      "name": "Cedar: same theorems, less time",
      "metricName": "speedup",
      "metricDirection": "maximize",
      "baseline": 1,
      "isOpen": true,
      "records": [
        {
          "contributor": "leanprover",
          "description": "Stock Lean v4.36.0 (commit 611c117) built from source the way CI builds every entry; judged against itself (self-check 1.006×).",
          "date": "2026-11-16",
          "value": 1,
          "contributorKind": "team",
          "contributorUrl": "https://github.com/leanprover",
          "submissionUrls": [
            "https://github.com/open-challenges/fastest-lean-compiler/blob/main/submissions/lean-v4.36.0/SUBMISSION.md"
          ],
          "isBaseline": true,
          "isCurrentBest": true,
          "agent": {
            "evidence": "author: leanprover ... baseline: true ... Stock Lean v4.36.0",
            "family": "human",
            "confidence": "high",
            "role": "author"
          }
        }
      ],
      "contested": false
    }
  ],
  "agentStats": [],
  "repo": {
    "owner": "open-challenges",
    "name": "fastest-lean-compiler",
    "branch": "main"
  },
  "participants": [
    {
      "name": "leanprover",
      "url": "https://github.com/leanprover",
      "submissions": 1,
      "problems": [
        "cedar"
      ],
      "lastActive": "2026-11-16"
    }
  ],
  "stats": {
    "totalRecords": 1,
    "uniqueParticipants": 1,
    "firstSubmission": "2026-11-16",
    "lastSubmission": "2026-11-16",
    "recordsLast30d": 0,
    "recordsLast90d": 0
  },
  "lastUpdated": "2026-11-27T01:08:02.340Z",
  "agentDocs": [
    {
      "label": "AGENTS.md",
      "url": "https://raw.githubusercontent.com/open-challenges/fastest-lean-compiler/HEAD/AGENTS.md"
    }
  ],
  "importance": {
    "tier": "other",
    "score": 8,
    "stakes": 2,
    "open": 3,
    "verified": 3,
    "why": "Make the Lean 4 toolchain build proofs faster: CI times each entry against stock Lean on the Cedar workload, and every theorem must come out byte-identical."
  }
}