package coq-core
Install
Dune Dependency
Authors
Maintainers
Sources
md5=0cfaa70f569be9494d24c829e6555d46
sha512=8ee967c636b67b22a4f34115871d8f9b9114df309afc9ddf5f61275251088c6e21f6cf745811df75554d30f4cebb6682f23eeb2e88b771330c4b60ce3f6bf5e2
doc/coq-core.vernac/ComCoercion/index.html
Module ComCoercion
Source
Classes and coercions.
val 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
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
val 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"
val 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
val 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
Attribute to silence warning for coercions that don't satisfy the uniform inheritance condition. (deprecated in 8.18)