(* Title: A state based hotel key card system Author: Tobias Nipkow, TU Muenchen *) (*<*) theory State imports Basis begin declare if_split_asm[split] (*>*) section‹A state based model› text‹The model is based on three opaque types @{typ guest}, @{typ key} and @{typ room}. Type @{typ card} is just an abbreviation for @{typ"key × key"}. The state of the system is modelled as a record which combines the information about the front desk, the rooms and the guests. ›