package rocq-runtime

  1. Overview
  2. Docs
On This Page
  1. Observables
The Rocq Prover -- Core Binaries and Tools

Install

dune-project
 Dependency

Authors

Maintainers

Sources

rocq-9.3.0.tar.gz
sha256=3f0fc283e8644394aa9c7a6e3995b6d9ebbe1e6dda712bf431f9c372dcef95ad

doc/rocq-runtime.library/Summary/module-type-OBSERVABLE/index.html

Module type Summary.OBSERVABLESource

Observables

OBSERVABLE captures the pattern of backtrackable state that can be enabled and disabled. To use it, register the value that you want to record and then activate and deactivate the value using the returned token.

Indirection is used to be able to handle non-marshallable values.

Sourcetype token

The type of tokens to manipulate values. This is always marshallable.

Sourcetype value

The value being stored. May be non-marshallable (typically a closure).

Sourceval register : name:string -> ?override:bool -> value -> token

Register a new value and get the token used to enable and disable it.

Sourceval activate : token -> unit

Activate/deactive the value attached to the token.

Sourceval deactivate : token -> unit
Sourceval is_active : token -> bool

Determine if the value for the given token is active.