> ## Documentation Index
> Fetch the complete documentation index at: https://docs.proofpod.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Cloud sandboxes for formal verification, billed per second for what your proofs use.

ProofPod runs your Lean commands in the cloud. You put `pp` in front of the
command you were going to type anyway:

```console theme={null}
$ pp lake build
$ pp lake test
$ pp lake env lean Proofs/Main.lean
```

The command runs in a sandbox that already has Mathlib built for your exact
Lean and Mathlib versions. Its output streams back to your terminal and its exit
code becomes `pp`'s exit code, so scripts, Makefiles and editors that shell out
to `lake` keep working.

## Why

Formal verification needs a lot of CPU and memory, but only in bursts. A
Mathlib-sized build wants many cores and tens of gigabytes for a few minutes,
then nothing for an hour while you think. Buying or renting a machine sized for
the burst means paying for it while it idles.

ProofPod bills per second for what a command actually uses:

* **CPU and memory limits are ceilings, not purchases.** `--cpu 16 --memory 64G`
  costs nothing by itself. You pay for the core-seconds and GiB-seconds consumed
  underneath.
* **The memory of preloaded Mathlib is free.** Lean memory-maps compiled
  libraries instead of copying them. ProofPod meters what your command
  allocates, not the library pages it maps. A file that imports all of Mathlib
  shows about 8 GB resident and is billed for about 0.36 GB.
* **Idle time is free.** The sandbox stays warm for two minutes after a command
  so the next one starts fast. You are not charged for that.
* **Storage is free for now**, and prebuilt Mathlib never counts as your storage.

## How it works

```text theme={null}
your machine                               ProofPod
────────────                               ────────
pp lake build
  1. find the project, read lean-toolchain
     and lake-manifest.json
  2. upload the source files that changed  ──▶  workspace (persistent, per project)
                                                 ├─ your sources
                                                 └─ .lake/build   (your build cache)
  3. start the command                     ──▶  sandbox
                                                 ├─ Lean toolchain   } environment, prebuilt
                                                 └─ Mathlib, built   } and shared per version
  4. stream output, forward the exit code  ◀──
  5. download source files the command
     changed (for example the manifest)    ◀──
```

Three things make this feel like running locally:

1. **Environments.** Each Lean + Mathlib version pair is built once and reused by
   everyone. Your project's packages are linked to the prebuilt copies when the
   revisions in your `lake-manifest.json` match, so Lake finds them up to date.
2. **Workspaces.** Each project has a persistent cloud workspace holding its
   sources and its own build outputs. Incremental builds stay incremental.
3. **Two-way sync.** Only changed files travel, in either direction, and a local
   file is never overwritten if you edited it in the meantime.

## What does not change

* Your project. There is nothing to add to your lakefile and no configuration
  file to write.
* Your editor. The Lean language server keeps running on your machine.
* Your commands. Everything after `pp lean` or `pp lake` is passed through
  untouched.

## Next

> [card] [Quickstart](https://docs.proofpod.dev/quickstart.md)
>
> Install, sign in, first build.

> [card] [What runs where](https://docs.proofpod.dev/guide/commands.md)
>
> Which commands go to the cloud and why.

> [card] [Billing](https://docs.proofpod.dev/guide/billing.md)
>
> Exactly what is metered.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.