package rocq-runtime

  1. Overview
  2. Docs
The Rocq Prover -- Core Binaries and Tools

Install

dune-project
 Dependency

Authors

Maintainers

Sources

rocq-9.1.1.tar.gz
sha256=35cd03fc4193969b1cce01190340e5c129c1ba8f02242a9e6dff4b83be118759

doc/rocq-runtime.kernel/Constant_typing/index.html

Module Constant_typingSource

Sourcetype 'a effect_handler = Environ.env -> Constr.t -> 'a -> Constr.t * Univ.ContextSet.t * int

Handlers are used to manage side-effects. The 'a type stands for the type of side-effects, and it is parametric because they are only defined later on. Handlers inline the provided side-effects into the term, and return the set of additional global constraints that need to be added for the term to be well typed.

Sourcetype typing_context
Sourceval infer_parameter : sec_univs:UVars.Instance.t option -> Environ.env -> Entries.parameter_entry -> ('a, unit) Declarations.pconstant_body
Sourceval infer_definition : sec_univs:UVars.Instance.t option -> Environ.env -> Entries.definition_entry -> HConstr.t option * ('a, unit) Declarations.pconstant_body
Sourceval infer_opaque : sec_univs:UVars.Instance.t option -> Environ.env -> 'a Entries.opaque_entry -> (unit, unit) Declarations.pconstant_body * typing_context