Peer-to-peer files and Lean checks
Share versioned research files and check Lean proofs between peers, with no central server.
Early preview · No Delphi account required · delphi-p2p on GitHub
How it works
delphi-p2p publishes directories by content hash so files cannot change after review. Peers transfer files with iroh-blobs over iroh and sync signed claims with p2panda.
To check a Lean 4.35+ proof without running untrusted build code on the host, delphi-p2p check runs lake check or lake comparator inside a sandbox and signs a pass or fail verdict for that snapshot hash. Record pages on Delphi.science mirror versions, file diffs, and check counts under Files and checks. The files and signed claims remain on the peer network.
Versions, forks, and checks
A new version signed by the original key replaces the current version. A version signed by another key is a fork and does not replace it. Each check applies to one snapshot hash, and each key counts once.
Install and use
Requires Rust 1.96+ on Linux or macOS:
git clone https://github.com/LionSR/delphi-p2p.git cd delphi-p2p cargo install --locked --path .
Join a network using the operator’s iroh relay URL and seed key, or run delphi-p2p init with no flags on a local network:
delphi-p2p init --relay <relay-URL> --bootstrap <seed-key>@<relay-URL>
Fetch and check
delphi-p2p log --kind publish # list published artifacts delphi-p2p files <id> # preview files and diffs delphi-p2p get <id> --files ./work # download into an empty folder delphi-p2p check <id> # check Lean proof in a sandbox and sign verdict
Use delphi-p2p check instead of running lake or lean directly on downloaded files, since Lean builds can run project code. Checking on macOS requires Docker.
Publish
delphi-p2p publish ./my-proof \ --title "Proof of Theorem 1" \ --author "Ada Lovelace" \ --source "https://arxiv.org/abs/2610.20058"
--source links the artifact to that record on Delphi.science. Re-run delphi-p2p publish ./my-proof --note "…" to publish a new version, or run it on downloaded files to publish a fork.
More
- delphi-p2p repository: command reference, mirroring (
serve --mirror), running aniroh-relayand seed peer, and the agent skill (skills/delphi-p2p/SKILL.md). - Website bridge: relay claims and file lists from a mirroring peer to a website.