Syntax pick 10: Process

process Name(db: Ledger, clock: Clock) ... end with capabilities as process parameters (the process’s entire authority on line one). state ... end block is the struct in the box. message Increment lines, one per message. fn update(state, message) is the one function that changes the box; state is implicitly mutable inside update (state.count += 1), no return needed. invariant "sentence" ... end checked after every update. Robert found the first version confusing; the counter example clarified it. (Session 5, step 18: the block is the condition that holds, state.done >= old(state.done), and trips when false; never keeps the negative form. Chapter 3 and grammar.md.)