ARKHIM ENGINE · LEAN 4.36.0 / SELF-HOSTED VPC

Scale Lean 4 verification to 64 workers without the RAM wall.

Even with mmap'd .olean files, compiled Lean 4 Mathlib workers still build ~315 MB of private dirty heap each. Arkhim packs 16 full Mathlib workers into 8.46 GB total PSS (−27.2% vs compiled REPL), recovers crashed workers in 41 ms, and blocks cheated proofs inside your own VPC.

8.46 GB
16 full Mathlib workers (vs 11.63 GB REPL)
−66.4%
Private dirty RAM (107 vs 322 MB/worker)
41 ms
Worker crash recovery (vs 2,573 ms REPL)
31 / 31
Identical proof results vs official REPL
Interactive Scaling Model

See how much RAM and cloud spend Arkhim saves

Calibrated directly from live Lean 4.36.0 + Mathlib benchmarks. Drag from a single workstation up to a 64-worker RL cluster to see your RAM and cloud savings.

16 workers / node
Full Mathlib breakeven is 5 workers. At 4 workers, use Scoped Mode on smaller laptops for maximum savings.
Normal Lean 4 Pool (Standalone) 31.0 GB / node
Arkhim Engine 9.8 GB / node
68%
21.2 GB RAM cut / node
16 GB box
vs 64 GB standalone / node
~$85/mo
Est. cloud RAM saved (1 node)
Standalone baseline uses standard mmap'd .olean files (~1.6 GB shared clean); savings come from eliminating duplicated post-import heap RAM (~1.2–1.5 GB/worker). Measured on Lean 4.36.0 + Mathlib (8w & 16w; 32w–64w linearly scaled). Cloud RAM estimated at realistic $4/GB-month.
Capabilities

Built for teams that can't touch public clouds

100% unmodified Lean 4.36 compatibility, zero external cloud calls, and strict worker isolation so AI-generated tactics can never leak state or spoof verification receipts.

01 / DENSITY

High-Density Worker Pool

Run 16–64+ parallel Mathlib workers on fixed-RAM machines (+107 MB/w vs +322 MB/w). Crashed or heavy workers recover in 41 ms—not 2.6 seconds—keeping dirty memory flat over multi-round runs.

02 / INTEGRITY

Tamper-Proof Audit Gate

Independently verifies every proof against pinned theorem statements at the kernel level—stopping RL reward hacking and unverified PR shortcuts cold.

03 / INTEGRATION

Local MCP & GitHub CI

No 20-request cloud rate limit. Plug Claude Code, Cursor, or your local 24 GB–80 GB VRAM prover straight into Arkhim over MCP or JSON-RPC inside your private VPC.

        ╭────◎────╮   Arkhim Warm Pool (100% Private VPC)
        │  ╱ │ ╲  │   16–64+ parallel workers · ~9.8 GB total @ 16w
       [w0] [w1] [wN] ──▶ Tamper-Proof Audit Gate ──▶ ⊢ Q.E.D. (0 bleed)
           ╱ ▲ ╲      0 kernel patches · Lean 4.36 + custom pins
Blocks sorry / admit Blocks native_decide Blocks custom axioms Blocks theorem statement swaps
Verified Receipts

Measured on real Lean 4.36.0 + Mathlib

Zero state bleed and identical proof results verified across real AMC/AIME/IMO miniF2F theorems and full Mathlib workloads.

Workload (Compiled vs Compiled) Official leanprover/repl Arkhim Engine Measured Result
Real miniF2F · 16 Workers (5 Rounds) 250 problems · 1,935 heavy tactics · Mathlib 4.36.0 11,626 MB PSS · 322 MB/w dirty 8,459 MB PSS · 107 MB/w dirty −27.2% PSS · −66.4% dirty · 31/31 identical
Worker Crash Recovery Median of 3 kill-and-replace cycles 2,573 ms (cold re-import) 40.9 ms 63× faster worker recycling
Cold Startup & Raw Throughput 16 workers · steady-state R2–R5 6.64 s startup · 288.0 tac/s 20.31 s startup · 201.6 tac/s REPL wins raw speed & cold boot
Integrated Audit Gate In-loop RL & PR verification External (e.g. SafeVerify) Kernel replay + static rules Blocks sorry, extern, run_cmd & swaps
Self-Hosted Appliance

Running inside your VPC in 60 seconds

Mount your Lean 4 project to launch your private worker pool, drop our verification gate into GitHub Actions, or wire Claude Code & Cursor directly over MCP.

# Launch 16 warm Mathlib workers in <10 GB total PSS RAM
LEAN_PROJECT_DIR=/path/to/your-lean-repo \
  WORKERS=16 ARKHIM_LICENSE_KEY=ark2... \
  docker compose up -d

# Check live pool health & memory telemetry
echo '{"jsonrpc":"2.0","id":1,"method":"pool/stats","params":{}}' | nc 127.0.0.1 8765 | jq
# Enforce tamper-proof theorem verification on every pull request
arkhim verify-pr \
  --manifest verify_targets.json \
  --out receipt.json

# Non-zero exit on any sorry, native_decide, or statement swap
{
  "mcpServers": {
    "arkhim-lean4": {
      "command": "arkhim-mcp",
      "args": ["--endpoint", "tcp://127.0.0.1:8765", "--safe-verify"]
    }
  }
}
Commercial Licensing

Flat licensing. Runs on your servers.

No per-token markups, no cloud rate limits, and zero source code or proofs leave your network.

Pilot
$0 / 14 days

Validate RAM & throughput gains on your own repo.

  • Full self-hosted Docker appliance
  • Benchmark on your own Lean 4 repo
  • SafeVerify PR gate setup
  • Direct founder support
Start Pilot
Team
Early Adopter
$399$199 / mo first 3 mos

Then $399/mo · For formal verification teams & local prover boxes.

  • Single-server license (up to 64 workers)
  • Tamper-proof GitHub Actions PR gate
  • Local MCP + JSON-RPC 2.0 daemon
  • Automatic memory-ceiling recycling
Get Team License
Enterprise
Early Adopter
$1,990$1,290+ / mo first 3 mos

Then $1,990+/mo · Multi-node RL clusters & air-gapped VPCs.

  • Multi-node RL & CI cluster rights (up to 1,024 workers)
  • Offline Ed25519 license keys + kernel fuzzing suite
  • Custom Lean / Mathlib pins & audit policies
  • Priority founder engineering support & onboarding
Contact Sales
Zero lock-in: 100% standard Lean 4.36 output (custom toolchains supported; source escrow on annual Enterprise).