WPApp: metadata for a goal whose right-hand side is a wp application, with isWPApp? to
recognize one.
Common metadata for a goal whose right-hand side is a weakest-precondition application
pre ⊑ wp Prog Value Pred EPred instAL instEAL instWP prog post epost s₁ ... sₙ.
- expr : Expr
The whole
wpapplication, including the excess state arguments. - head : Expr
The
wpfunction head, separated from its explicit core arguments. The ordered core arguments of the
wpapplication:#[Prog, Value, Pred, EPred, instAL, instEAL, instWP, prog, post, epost].
Instances For
The monad of an m α-shaped program type, obtained by dropping the value type α. For a
non-monadic program type the type itself is returned.
Instances For
The wp application itself, before the excess state arguments apply.
Equations
- info.wp = info.expr.stripArgsN info.excessArgs.size