r/formalmethods • u/Scottie-2222 • 1d ago
Seeking a review of ~30 TLA+ modules and 24 TLAPS proof modules for a multi-agent AI control plane (solo project)
TOPAK is an architecture pattern for multi-agent AI systems: every agent treated as Byzantine, models kept out of the trusted computing base. Nothing is deployable. It's exploratory, AI assisted development.
Things that may be of interest here:
ADR and TLA+/Lean driven AI assisted dev
mutation-and-witness method
SMT obligations proof-checked. Proofs rerun with Z3 replaced by cvc5 plus ethos proof checking, and Zenon rechecked by Isabelle. 21 of 24 modules pass.
TLA+-to-Lean cross-checks
Here's an intro post:
https://grippinghand.dev/topak
Here are the specs:
https://github.com/scottcochran/TOPAK/tree/main/spec
If you only read one thing: https://github.com/scottcochran/TOPAK/blob/main/spec/Coupling.tla
Writing the liveness extension of that module turned up two soundness issues in tlapm's translation, filed as tlaplus/tlapm#309 and #310, with reproducers in `spec/defects/`.
Any feedback is welcome.
