Linear usage of state (Logical Methods in Computer Science, 2014)