StateT programs applied to a state #
A StateT σ m α program is a function σ → m (α × σ), and handlers are often written and
reasoned about as applications x s rather than through StateT.run. Lean's StateT.run_bind,
StateT.run_map and StateT.run_pure are stated with .run, so rw cannot use them on such
applications. This file restates them for the applied form.
Rewrite interface #
Cslib.StateT.bind_apply,Cslib.StateT.map_apply,Cslib.StateT.pure_apply: the applied forms ofStateT.run_bind,StateT.run_mapandStateT.run_pure.