package rocq-runtime
Install
Dune Dependency
Authors
Maintainers
Sources
md5=8d522602d23e7a665631826dab9aa92b
sha512=f4f76a6a178e421c99ee7a331a2fd97a06e9c5d0168d7e60c44e3820d8e1a124370ea104ad90c7f87a9a1e9d87b2d0d7d2d387c998feeaed4a75ed04e176a4be
doc/rocq-runtime.kernel/Context/Named/Declaration/index.html
Module Named.Declaration
Source
Representation of local declarations.
type ('constr, 'types, 'r) pt =
| LocalAssum of (Names.Id.t, 'r) pbinder_annot * 'types
(*identifier, type
*)| LocalDef of (Names.Id.t, 'r) pbinder_annot * 'constr * 'types
(*identifier, value, type
*)
Return the identifier bound by a given declaration.
Return Some value
for local-declarations and None
for local-assumptions.
Set the identifier that is bound by a given declaration.
Set the type of the bound variable in a given declaration.
Return true
iff a given declaration is a local assumption.
Return true
iff a given declaration is a local definition.
Check whether any term in a given declaration satisfies a given predicate.
Check whether all terms in a given declaration satisfy a given predicate.
val equal :
('r -> 'r -> bool) ->
('c -> 'c -> bool) ->
('c, 'c, 'r) pt ->
('c, 'c, 'r) pt ->
bool
Check whether the two given declarations are equal.
Map the identifier bound by a given declaration.
For local assumptions, this function returns the original local assumptions. For local definitions, this function maps the value in the local definition.
Map the type of the name bound by a given declaration.
Map all terms in a given declaration.
val map_constr_with_relevance :
('r -> 'r) ->
('c -> 'c) ->
('c, 'c, 'r) pt ->
('c, 'c, 'r) pt
Map all terms in a given declaration.
Map all terms, with an heterogeneous function.
Perform a given action on all terms in a given declaration.
Reduce all terms in a given declaration to a single value.
Turn LocalDef
into LocalAssum
, identity otherwise.
val of_rel_decl :
(Names.Name.t -> Names.Id.t) ->
('c, 't, 'r) Rel.Declaration.pt ->
('c, 't, 'r) pt
Convert Rel.Declaration.t
value to the corresponding Named.Declaration.t
value. The function provided as the first parameter determines how to translate "names" to "ids".
Convert Named.Declaration.t
value to the corresponding Rel.Declaration.t
value.