Commit 2026-04-27 15:18 c58be837

View on Github →

feat: missing lemmas for ContT.run (#38379) This PR also adds ContT.mk (f : (α → m r) → m r) : ContT r m α := f for explicitly constructing a ContT action from a function that requires a callback, which allows a run_mk lemmas to eliminate ContT entirely from certain terms. This also makes MonadCont.goto an abbrev, to avoid needing a lemma about MonadCont.goto (Label.mk goto) = goto.

Estimated changes

added def ContT.mk
deleted def ContT.monadLift
modified def ContT.run
added theorem ContT.run_bind
added theorem ContT.run_callCC
added theorem ContT.run_map
added theorem ContT.run_mk
added theorem ContT.run_monadLift
added theorem ContT.run_pure
added theorem ContT.run_seq
added theorem ContT.run_seqLeft
added theorem ContT.run_seqRight
deleted def MonadCont.goto