package coq-waterproof

  1. Overview
  2. Docs
val feedback_log : Feedback.level -> Pp.t list ref

A rudimentary feedback log

val wp_feedback_logger_id : int option ref

The id that we obtained when registering wp_feedback_logger as a feeder in Feedback.mli

val wp_feedback_logger : Feedback.feedback -> unit

Our own logger that we add as a feeder to Coq's feedback mechanism in Feedback.mli

val add_wp_feedback_logger : unit -> unit

Adds the wp_feedback_logger to Coq's feeedback mechanism

val print_hypothesis_help : bool ref

Should hypothesis hints be printed (For instance on how you can use a forall statement)?

val last_thrown_warning : Pp.t option ref

The last thrown warning

val redirect_feedback : bool ref

Redirect warnings: this is useful when testing the plugin: meant to redirect Waterproof errors directly to the log

val redirect_errors : bool ref

Redirect errors: this is useful when testing the plugin: meant to redirect errors to Control.zero rather than CErrors.user_err

type wexn =
  1. | CastError of string
    (*

    Indicates that a cast made by the FFI has failed

    *)
  2. | FailedAutomation of string
    (*

    Indicates that the automatic solver called has failed

    *)
  3. | FailedTest of string
    (*

    Indicates that the running test has failed

    *)
  4. | NonExistingDataset of Hints.hint_db_name
    (*

    Indicates that the user tried to import a non-existing hint dataset

    *)
  5. | UnusedLemmas
    (*

    Indicates that no proof using all the given lemmas has been found

    *)
  6. | ToUserError of Pp.t
    (*

    An error that should go directly to the user

    *)

Type of exceptions used in Wateproof

val throw : ?info:Exninfo.info -> wexn -> 'a

Throws an error with given info and message

val warn : Pp.t -> unit Proofview.tactic

Sends a warning

val notice : Pp.t -> unit Proofview.tactic

Sends a notice

val inform : Pp.t -> unit Proofview.tactic

Send an info message

val err : Pp.t -> unit Proofview.tactic

Throws an error

val message : Feedback.level -> Pp.t -> unit Proofview.tactic

A general function for sending feedback

val get_last_warning : unit -> Pp.t option Proofview.tactic

Check the last warning against a string

OCaml

Innovation. Community. Security.