Logical Reasoning for Higher-Order Functions with Local State (Logical Methods in Computer Science, 2008)