Sentria.

Research

Verified algorithms and machine-checked running times.

Sentria contributes to open formal verification in Lean 4, where a proof only counts if the computer checks it. We work with AI agents under human review, and every change is reviewed and disclosed.

Merged contributions

Merged into cslib-frontier.

cslib-frontier is an open Lean library for computational complexity. These four changes were merged on November 27, 2026.

  • Merged

    Fixed an exponential-time bug in a circuit lower-bound refuter

    Building the refuter’s initial gate table recomputed every earlier gate on each lookup. It now folds them in one pass. A 17-gate run went from 345 seconds to 31 milliseconds.

    Pull request #8970
  • Merged

    Proved the refuter’s step count and size bounds

    Every run of the refuter takes at most 5n + 7s steps on a circuit of size s, with size invariants proved along the way.

    Pull request #8971
  • Merged

    Bounded every equation name along the run

    Every equation the refuter creates gets a bounded name, which fixes the memory layout for its state.

    Pull request #8972
  • Merged

    GF(2) elimination on a Word-RAM model

    Dense Gaussian elimination over GF(2), one row per machine word, proved correct and proved to run in at most 30(m + 1)(n + 1) word instructions.

    Pull request #8920

In progress

Open now.

  • Open pull request

    A second exponential-time fix: path counts

    Counting paths in a branching program recomputed every shared node at each use. It now stores each count once. A 21-node test went from 37 seconds to under a millisecond on one machine.

    Pull request #9030
  • Open pull request

    Candidate enumeration

    One shared construction for the candidates the refuter’s final search tries.

    Pull request #9000
  • Open milestone

    Milestone 4: a machine-checked polynomial running time for the refuter

    The end goal of the work above. The scope was agreed with the maintainers on the issue, and a public checklist tracks each step. The step bounds and the Word-RAM elimination are done; the packed refuter state is next.

    Issue #4322 checklist

Runtime ledger

Proved correct is not the same as fast.

Lean checks that proofs about a definition are correct. It does not check that the definition runs fast when executed. Fairtally, a Sentria project, finds those runtime bugs, fixes them upstream and logs each case with before and after timings.

Fixed-scope offer

Lean runtime audit.

We scan, probe and measure the executable Lean definitions in one repository or library area, up to about 200 definitions, and find the ones that run far slower than they should. We report what we find, including if nothing is slow.

What you get

  • A scan of every executable definition in scope, with probes that run each one at growing input sizes.
  • A written report with growth tables: input size against measured time, for each definition we flag.
  • Fix pull requests for the top issues, each with a reproducible probe that shows the before and after timings.
  • A statement and trust check: for the key theorems, what the Lean statement actually says compared with the claim, and what the proof relies on (axioms, native_decide, implemented_by, extern code).
  • One follow-up call to walk through the report and the fixes.

Sample evidence: the same method found and fixed an exponential-time bug in a circuit lower-bound refuter (a 17-gate test went from 345 seconds to 31 milliseconds on one machine, merged), and found a second one in branching-program path counts, with the fix in review.

Timeline

2 weeks

Price

$4,500 fixed

Founding-pilot price $2,500 for the first two customers.

Ask about an audit

How we work

Agents draft. Reviewers check. A human approves.

  1. Step 1

    AI agents draft

    Agents write the Lean proofs and code against a written plan, and every claim is checked by the Lean compiler.

  2. Step 2

    Separate reviewers check

    A fresh-context reviewer agent reads each change cold, with the diff and the raw build output, before anything goes out.

  3. Step 3

    A human approves

    Every public change is approved by a person at Sentria before it is opened, and AI use is disclosed on every contribution.

Need Lean or formal-verification engineering?

Contract work is available: proofs, verified algorithms and cost bounds, built the same way, with every change reviewed.