Text this: Syntactic soundness proof of a type-and-capability system with hidden state.