package rocq-runtime

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

Install

Dune Dependency

Authors

Maintainers

Sources

rocq-9.0.0.tar.gz
md5=8d522602d23e7a665631826dab9aa92b
sha512=f4f76a6a178e421c99ee7a331a2fd97a06e9c5d0168d7e60c44e3820d8e1a124370ea104ad90c7f87a9a1e9d87b2d0d7d2d387c998feeaed4a75ed04e176a4be

doc/rocq-runtime.vernac/ComCoercion/index.html

Module ComCoercionSource

Classes and coercions.

Sourceval try_add_new_coercion_with_target : Names.GlobRef.t -> local:bool -> reversible:bool -> source:Coercionops.cl_typ -> target:Coercionops.cl_typ -> unit

try_add_new_coercion_with_target ref s src tg declares ref as a coercion from src to tg

Sourceval try_add_new_coercion : Names.GlobRef.t -> local:bool -> reversible:bool -> unit

try_add_new_coercion ref s declares ref, assumed to be of type (x1:T1)...(xn:Tn)src->tg, as a coercion from src to tg

Sourceval try_add_new_coercion_subclass : Coercionops.cl_typ -> local:bool -> poly:bool -> reversible:bool -> unit

try_add_new_coercion_subclass cst s expects that cst denotes a transparent constant which unfolds to some class tg; it declares an identity coercion from cst to tg, named something like "Id_cst_tg"

Sourceval try_add_new_coercion_with_source : Names.GlobRef.t -> local:bool -> reversible:bool -> source:Coercionops.cl_typ -> unit

try_add_new_coercion_with_source ref s src declares ref as a coercion from src to tg where the target is inferred from the type of ref

Sourceval try_add_new_identity_coercion : Names.Id.t -> local:bool -> poly:bool -> source:Coercionops.cl_typ -> target:Coercionops.cl_typ -> unit

try_add_new_identity_coercion id s src tg enriches the environment with a new definition of name id declared as an identity coercion from src to tg

Sourceval add_coercion_hook : reversible:bool -> Declare.Hook.t
Sourceval add_subclass_hook : poly:bool -> reversible:bool -> Declare.Hook.t
Sourceval class_of_global : Names.GlobRef.t -> Coercionops.cl_typ
Sourceval nonuniform : bool option Attributes.attribute

Attribute to silence warning for coercions that don't satisfy the uniform inheritance condition. (deprecated in 8.18)

Sourceval change_reverse : Names.GlobRef.t -> reversible:bool -> unit
OCaml

Innovation. Community. Security.