Automation tactics for monadic Memory.Prog programs #
Provides structural tactics over the Memory.Prog (PFunctor.FreeM) free monad:
valid_prog: decomposes memory-history admissibility goals — either raw(Memory.spec w).ValidHistory s ((Memory.spec w).clientHistory s p)or wrapper predicates (such asValidProg w F s p) with registeredpure/bind/itecombinators — acrosspure,bind,Memory.read/write/alloc/allocDirty,ite/dite,iterate, andboundedWhile. Applies explicit and@[valid_prog]lemmas without unfolding opaque subprograms, propagatesMonotoneMemInvinvariants across state updates, rewrites intermediateclientState/clientResultterms usingwith [...], and leaves only genuine arithmetic or domain obligations.prog_cost: evaluates and boundsmemoryCost p sacross monadic binds and conditionals.
Main definitions #
valid_prog: admissibility walker tactic.prog_cost:memoryCostevaluator/bound tactic.
Core entry point for valid_prog.
prog_cost tactic #
Simplify and close memoryCost equality or upper-bound goals across monadic binds,
conditionals (including nested if-branches), and optional user-supplied rewrite lemmas.