Sheaf Labs

What is proved.

Before an AI agent acts, Sheaf checks that the information it is acting on agrees with itself. That check rests on a small amount of mathematics. The mathematics is written in Lean and checked by machine. This page lists each statement in plain words, the file that proves it, and what the proofs do not cover.

Why this page exists

Software written with AI. Here is how far you can trust the result.

Much of Sheaf's code is written with AI assistance and reviewed, tested and deployed by people. A reader is right to ask what that means for the check itself.

The check has two layers. The outer layer is ordinary software: it collects what the agents said, builds the structure below, and returns the result. It is tested the way any software is. The inner layer is the mathematics that decides whether the information holds together. That layer is written in Lean, a program that accepts a proof only when every step is correct, and it is published here so anyone can run the same check.

The next step, under way, is a certificate with every decision: the engine writes down why it stopped or released an action, and a small program whose correctness is itself proved confirms the certificate. That closes the gap between the two layers for every decision the gate makes.

The statements

Three files. Each backs one part of the check.

Each file names the part of the production code it stands behind. Every main theorem depends only on Lean's three standard axioms, and no proof step is skipped or assumed.

Outside the proofs

What the files do not cover.

A precise small claim is worth more than a large vague one. These are the parts of the check the proofs say nothing about.

How the checking works

Run it yourself.

The files are Lean 4 modules on Mathlib, the community library of formal mathematics. Download the three files, or the whole project from the repository, and run the build. Lean either accepts every proof or reports the exact line that fails. The same bar applies as to the institute's own record: no skipped steps, no extra axioms, and the axiom list printed at the end of every file.