package coq

  1. Overview
  2. Docs
Formal proof management system

Install

Dune Dependency

Authors

Maintainers

Sources

coq-8.15.1.tar.gz
sha256=513e953b7183d478acb75fd6e80e4dc32ac1a918cf4343ac31a859cfb4e9aad2

doc/coq-core.toplevel/Coqtop/index.html

Module CoqtopSource

Definition of custom toplevels. init_extra is used to do custom initialization run launches a custom toplevel.

Sourcetype ('a, 'b) custom_toplevel = {
  1. parse_extra : string list -> 'a * string list;
  2. usage : Usage.specific_usage;
  3. init_extra : 'a -> Coqargs.injection_command list -> opts:Coqargs.t -> 'b;
  4. initial_args : Coqargs.t;
  5. run : 'a -> opts:Coqargs.t -> 'b -> unit;
}
Sourceval start_coq : ('a * Stm.AsyncOpts.stm_opt, 'b) custom_toplevel -> unit

The generic Coq main module. start custom will parse the command line, print the banner, initialize the load path, load the input state, load the files given on the command line, load the resource file, produce the output state if any, and finally will launch custom.run.

Initializer color for output

Sourcetype color = [
  1. | `ON
  2. | `AUTO
  3. | `EMACS
  4. | `OFF
]
Sourceval init_color : color -> unit
Sourceval parse_extra_colors : string list -> color * string list
Sourceval print_style_tags : color -> unit

Prepare state for interactive loop

The specific characterization of the coqtop_toplevel

Sourcetype query =
  1. | PrintTags
  2. | PrintModUid of string list
Sourcetype run_mode =
  1. | Interactive
  2. | Batch
  3. | Query of query
Sourcetype toplevel_options = {
  1. run_mode : run_mode;
  2. color_mode : color;
}
Sourceval ltac_debug_answer : DebugHook.Answer.t -> unit
Sourceval ltac_debug_parse : unit -> DebugHook.Action.t
OCaml

Innovation. Community. Security.