package coq-core

  1. Overview
  2. Docs
The Coq Proof Assistant -- Core Binaries and Tools

Install

Dune Dependency

Authors

Maintainers

Sources

coq-8.20.1.tar.gz
md5=0cfaa70f569be9494d24c829e6555d46
sha512=8ee967c636b67b22a4f34115871d8f9b9114df309afc9ddf5f61275251088c6e21f6cf745811df75554d30f4cebb6682f23eeb2e88b771330c4b60ce3f6bf5e2

doc/coq-core.lib/Flags/index.html

Module FlagsSource

Global options of the system.

WARNING: don't add new entries to this file!

This file is own its way to deprecation in favor of a purely functional state, but meanwhile it will contain options that are truly global to the system such as debug

If you are thinking about adding a global flag, well, just don't. First of all, options make testins exponentially more expensive, due to the growth of flag combinations. So please make some effort in order for your idea to work in a configuration-free manner.

If you absolutely must pass an option to your new system, then do so as a functional argument so flags are exposed to unit testing. Then, register such parameters with the proper state-handling mechanism of the top-level subsystem of Coq.

Command-line flags

Sourceval async_proofs_worker_id : string ref

Async-related flags

Sourceval async_proofs_is_worker : unit -> bool
Sourceval load_vos_libraries : bool ref

Flag to indicate that .vos files should be loaded for dependencies instead of .vo files. Used by -vos and -vok options.

Sourceval xml_debug : bool ref

Debug flags

Sourceval in_debugger : bool ref
Sourceval in_ml_toplevel : bool ref
Sourceval in_synterp_phase : bool ref
Sourceval raw_print : bool ref
Sourceval beautify : bool ref
Sourceval beautify_file : bool ref
Sourceval record_comments : bool ref
Sourceval quiet : bool ref
Sourceval silently : ('a -> 'b) -> 'a -> 'b
Sourceval verbosely : ('a -> 'b) -> 'a -> 'b
Sourceval if_silent : ('a -> unit) -> 'a -> unit
Sourceval if_verbose : ('a -> unit) -> 'a -> unit
Sourceval warn : bool ref
Sourceval make_warn : bool -> unit
Sourceval if_warn : ('a -> unit) -> 'a -> unit
Sourceval with_modified_ref : 'c ref -> ('c -> 'c) -> ('a -> 'b) -> 'a -> 'b

with_modified_ref r nf f x Temporarily modify a reference in the call to f x . Be very careful with these functions, it is very easy to fall in the typical problem with effects:

with_modified_ref r nf f x y != with_modified_ref r nf (f x) y

Sourceval with_option : bool ref -> ('a -> 'b) -> 'a -> 'b

Temporarily activate an option (to activate option o on f x y z, use with_option o (f x y) z)

Sourceval with_options : bool ref list -> ('a -> 'b) -> 'a -> 'b

As with_option, but on several flags.

Sourceval without_option : bool ref -> ('a -> 'b) -> 'a -> 'b

Temporarily deactivate an option

Sourceval with_extra_values : 'c list ref -> 'c list -> ('a -> 'b) -> 'a -> 'b

Temporarily extends the reference to a list

Sourceval set_inline_level : int -> unit

Level of inlining during a functor application

Sourceval get_inline_level : unit -> int
Sourceval default_inline_level : int
Sourceval profile_ltac : bool ref

Global profile_ltac flag

Sourceval profile_ltac_cutoff : float ref
Sourceval output_directory : CUnix.physical_path option ref

Default output directory

OCaml

Innovation. Community. Security.