⊢Decidable Systems Formal verification for
security-critical Rust

An audit finds bugs.
A proof eliminates them.

We use formal verification to prove your Rust correct, even if it uses unsafe. A proof holds for every input, not just the paths a reviewer had time to review. The bug classes it covers are provably gone, and unlike an audit, the proof stays checkable as your code changes.

How we start

A fixed-scope engagement: we verify one critical module or unsafe boundary and hand you a machine-checked proof and a written report. We’re building that into continuous verification, where proofs re-check on every commit, and design partners are first in line.

Book a 30-minute call →

Make authorization
a requirement.

Security properties belong in the program. Dacquiri brings access-control policies into Rust’s type system.

A missing authorization check can look like perfectly ordinary code. Dacquiri lets developers attach a policy to an operation, so callers must establish the required checks before that operation is available.

The compiler enforces that requirement. An ownership check becomes part of the interface your code has to satisfy.

DACQUIRI / POLICYRUST
#[policy(
    entities = (
        user: Session,
        document_metadata: DocumentMeta
    ),
    guard = (
        user is Owner for document_metadata
    )
)]
Policy declaration excerpt from the Dacquiri README: require document ownership before the protected operation.
What does the compiler enforce?

Dacquiri encodes the declared policy as trait bounds. Callers must satisfy those bounds to use the protected operation. The policy and its attribute checks still need to express the intended authorization rule correctly.

From critical Rust
to a checkable proof.

Verifying Rust programs in Lean starts with a precise question: what must this code always do?

We express the relevant behavior of a Rust program in Lean, state the properties it must satisfy, and construct proofs that Lean can check.

The work starts with a bounded part of your codebase: a critical module, an algorithm, or an invariant your system depends on. The result connects that code’s behavior to an explicit specification.

  1. 01 / MODEL

    Represent the behavior.

    Connect the Rust code in scope to a model we can reason about in Lean.

  2. 02 / SPECIFY

    State what must hold.

    Make the required properties and their assumptions explicit.

  3. 03 / PROVE

    Make the argument checkable.

    Construct the proof and have Lean check that it establishes the specification.

Each engagement makes the connection to the Rust code, the assumptions, and the properties covered by the proof explicit.

Have a critical module in mind?

Let’s find a useful place to start.

Book a 30-minute call