package coq-core

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

Install

Dune Dependency

Authors

Maintainers

Sources

coq-8.19.1.tar.gz
md5=13d2793fc6413aac5168822313e4864e
sha512=ec8379df34ba6e72bcf0218c66fef248b0e4c5c436fb3f2d7dd83a2c5f349dd0874a67484fcf9c0df3e5d5937d7ae2b2a79274725595b4b0065a381f70769b42

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

Module ControlSource

Global control of Coq.

Sourceexception Timeout

Used to convert signals to exceptions

Sourceval enable_thread_delay : bool ref

Will periodically call Thread.delay if set to true

Sourceval interrupt : bool ref

Coq interruption: set the following boolean reference to interrupt Coq (it eventually raises Break, simulating a Ctrl-C)

Sourceval check_for_interrupt : unit -> unit

Use this function as a potential yield function. If interrupt has been set, il will raise Sys.Break.

Sourceval timeout : float -> ('a -> 'b) -> 'a -> 'b option

timeout n f x tries to compute Some (f x), and if it fails to do so before n seconds, returns None instead.

Sourcetype timeout = {
  1. timeout : 'a 'b. float -> ('a -> 'b) -> 'a -> 'b option;
}

Set a particular timeout function; warning, this is an internal API and it is scheduled to go away.

Sourceval set_timeout : timeout -> unit
Sourceval protect_sigalrm : ('a -> 'b) -> 'a -> 'b

protect_sigalrm f x computes f x, but if SIGALRM is received during that computation, the signal handler is executed only once the computation is terminated. Otherwise said, it makes the execution of f atomic w.r.t. handling of SIGALRM.

This is useful for example to prevent the implementation of `Timeout` to interrupt I/O routines, generating ill-formed output.

OCaml

Innovation. Community. Security.