Documentation

CslibFrontier.Languages.Probabilistic.Iteration.Add

Sequential composition of bounded probabilistic iteration #

Library infrastructure (no cited result): splits OracleComp.iterate (a + b) step initial into a prefix of a iterations followed by b iterations.

Main results #

theorem Cslib.OracleComp.iterate_add {ι : Type u} {spec : OracleSpec ι} {State : Type v} (a b : ℕ) (step : State → OracleComp spec State) (initial : State) :
iterate (a + b) step initial = iterate a step initial >>= iterate b step

Library infrastructure (no cited result): running a + b iterations of step equals running a iterations and continuing from the resulting state for b iterations.