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

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

      Equations
      Instances For

        Result/value type argument of wp.

        Equations
        Instances For

          Predicate/lattice type argument of wp.

          Equations
          Instances For

            Exception postcondition type argument of wp.

            Equations
            Instances For

              WP instance argument of wp.

              Equations
              Instances For

                Program expression classified by VCGen.

                Equations
                Instances For

                  Postcondition argument of wp.

                  Equations
                  Instances For

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

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For