package coq-waterproof

  1. Overview
  2. Docs

Module Waterproof.BacktrackingSource

Sourcetype trace_atom = bool * int * Pp.t * Pp.t

Trace atome type

Can be read as `(is_success, depth, current_proof_state`, print_function_option, hint_name, hint_db_source)`

Sourcetype trace = {
  1. log : bool;
  2. current_depth : int;
  3. trace : trace_atom list;
}

Debug type

Sourceexception SearchBound of trace

Exception raised if no proof of the goal is found

Sourceval incr_trace_depth : trace -> trace

Increases the debug depth by 1

Sourceval no_trace : trace

trace value corresponding to "no trace recording"

Sourceval new_trace : bool -> trace

Creates a trace value given a boolean indicating if tried hints are printed

Sourceval singleton_trace : bool -> Pp.t -> Pp.t -> trace

Creates a trace containing only one atom

Sourceval failed : trace -> trace

Marks all the trace atoms contained in the given trace as unsuccessful

Sourceval merge_traces : trace -> trace -> trace

Concatenates the two given traces

Sourceval pr_trace_atom : trace_atom -> Pp.t

Prints an info atom, i.e an element of the info trace

Sourceval pr_trace : trace -> unit

Prints the complete info trace

Sourceval keep_applied : trace -> trace

Returns the trace atoms that have been actually applied during a trace tactic (like wp_auto.wp_auto)

It is supposed here that the given trace has not been modified after getting it from the trace tactic.

OCaml

Innovation. Community. Security.