Documentation

Lean.Elab.Tactic.Do.Internal.VCGen.WPApp

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ₙ.

  • head : Expr

    The wp function head, separated from its explicit core arguments.

  • args : Array Expr

    The ordered core arguments of the wp application: #[Prog, Value, Pred, EPred, instAL, instEAL, instWP, prog, post, epost].

  • excessArgs : Array Expr

    Extra arguments applied after wp … prog post epost, usually concrete state arguments.

Instances For

    Program type argument of wp (e.g. m α or a non-monadic program type).

    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

        Result/value type argument of wp.

        Instances For

          Predicate/lattice type argument of wp.

          Instances For

            Exception postcondition type argument of wp.

            Instances For

              WP instance argument of wp.

              Instances For

                Program expression classified by VCGen.

                Instances For

                  Postcondition argument of wp.

                  Instances For

                    The wp metadata of rhs, or none when rhs is not a wp application.

                    Instances For