theory State_Monad imports State "HOL-Library.Monad_Syntax" Utils begin section "state Monad with Exceptions"