Proofs beside code: how Truss-style verified software works
10 steps · about 9 h 45 min · Intermediate
- finiteloop/truss: Truss is a programming language designed for agent-written software (repo, Bret Taylor (GitHub), 25 min)
Start with the README to see the idea being discussed: contracts, providers and proofs that the compiler checks.
- What is Ownership? - The Rust Programming Language (Brown interactive edition) (doc, Brown University / Rust Book, 40 min)
Rust's compile-time memory safety is the small step toward verified code that the Truss author points to, so learn it first.
- Hoare Logic and Model Checking, Lecture 1: Informal introduction to Hoare logic (article, University of Cambridge (Kasper Svendsen), 40 min)
Introduces Hoare triples, the basic way of stating what a program must do and proving it does.
- Getting Started with Dafny: A Guide (tutorial, dafny.org, 1 h)
Puts specs into practice: write preconditions and postconditions and watch an automated verifier accept or reject your code.
- Dafny Resources for Users: Basics of specification and verification (4-part course) (video, dafny.org, 1 h 30 min)
Short lectures on invariants, binary search and the Dutch National Flag consolidate loop reasoning with worked examples.
- Proof-carrying code (article, Wikipedia, 15 min)
Names the older idea behind Truss's package.proof files: ship a proof with the code and let the consumer check it quickly.
- Proof-Carrying Code with Untrusted Proof Rules (article, George Necula and Robert Schneck (UC Berkeley), 45 min)
A readable original-source paper on the producer/consumer split, where proving is hard and checking is cheap.
- Software Foundations: Preface (Verifiable C) (reference, Software Foundations, University of Pennsylvania, 20 min)
Shows how real verified software is built end to end, and points you to Volume 1 as the free starting course.
- Theorem Proving in Lean 4 (doc, Avigad, de Moura, Kong, Ullrich, 4 h)
Teaches the logic and the proof-checker mindset behind every verified language, with tactics and inductive types.
- 110,897 proof lines vs 124,617 code lines in Truss (blog, Frank Chu (DEV Community), 10 min)
Finish by judging the cost of verification: it counts how much proof Truss's own library needs per line of code.