A Lean library for machine-checked cryptographic proofs.
// momentum
// why it's here
- Active: last commit today
// how to help
// readme
Machine-Checked Cryptographic Proofs in Lean
VCVio is a Lean library for machine-checked proofs about cryptographic games, primitives, protocols, and implementations. The core framework provides:
- A monadic syntax for representing computations with oracle access (
OracleComp), with probabilistic computations (ProbComp) as a special case of having uniform selection oracles. - A measure-valued denotational semantics (
evalDist/π[β¦]) for probabilistic computations, with event probabilitiesPr{let x β comp}[p x], equality in distributionmx =α΅ my, and total variation distance. - An operational semantics (
simulateQ) for implementing/simulating the behavior of a computationβs oracles, including implementations of random oracles, query logging, reductions, etc. - A program logic with relational (pRHL-style) and unary (Hoare-style) proof modes, with interactive tactics for stepping through game-based proofs.
It also provides definitions for cryptographic primitives such as symmetric/asymmetric encryption, signatures, $\Sigma$-protocols, and transforms like Fiat-Shamir and Fischlin.