English
runFor c n evaluates c for n steps and returns the result if it terminates within n steps, otherwise returns none.
Русский
runFor c n вычисляет c за n шагов и возвращает результат, если она заканчивается за n шагов, иначе none.
LaTeX
$$$\\mathrm{runFor} : \\mathcal{C}(\\alpha) \\to \\mathbb{N} \\to \\mathrm{Option}\\;\\alpha$, с смыслом: \\mathrm{runFor}(c,n) возвращает результат после n шагов или none.$$
Lean4
instance lawfulMonad : LawfulMonad Seq1 :=
LawfulMonad.mk' (id_map := @map_id) (bind_pure_comp := @bind_ret) (pure_bind := @ret_bind) (bind_assoc := @bind_assoc)