the proofs

What we've proven, and what we haven't.

The budget rules for delegated work are proven in Lean 4, with no sorry and the axioms audited in CI. The concurrency is model-checked in TLA+. These proofs are about the model. The scheduler that runs in production enforces the same rules and is covered by tests; it isn't generated from the proof.

the theorems

What each one says, in plain words.

  • totalSpend_le_grantA tree of delegated work that is properly funded can't spend more than the top-level grant, no matter how deep it goes.
  • child_grant_le_parentA sub-agent's budget never exceeds its parent's.
  • dag_totalSpend_leThe same bound when delegation forms a graph instead of a tree. There's no assumption that it's acyclic.
  • depth_le_budget_div_costIf every step costs something, a funded tree has at most budget ÷ cost nodes. So it can't recurse forever.
  • no_infinite_funded_chargesA budget that isn't refilled, with a positive charge per step, can't fund an infinite run.
  • fan-out · deadlock freedomFan-out under a budget can't deadlock, and the budget is conserved. The model checker visited every state. Take the guard out and it finds the deadlock in five steps.
  • Scope: the delegation model. The production scheduler enforces the same limits and is tested, not extracted from these proofs.
why it matters

Delegation without a blank cheque.

An agent that can spawn more agents can spend without limit, unless each child is paid out of its parent's budget. That's the rule we proved, and it's the rule the scheduler enforces when it admits a task. Where the proof ends and the tests begin is written on this page rather than left for you to guess.

Next: what's built today, and what's next →·proofs in specs →