Delphi.science

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.

PEER-TO-PEER MESHfiles + claimsPeer Aauthorpublish 8f3a…Peer Bverifiersandbox → pass ✓Peer Cmirrorholds 8f3a…Peer Dverifiersandbox → pass ✓bridgeDelphi.scienceoptional viewerbridgeAny other siteoptional viewer
Peers sync files and signed claims directly with no central server. Websites are optional one-way viewers.

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.

AuthorKey AOther peerKey Bv1earlier8f3a…✓ 2 passsame keyv2currentc41b…0 checks (new hash)different keyv1bfork9e02…✓ 1 pass · does not replace v2
Each check applies to one snapshot hash and counts once per key. Forks do not replace the current version.

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