package coq-core
Install
Dune Dependency
Authors
Maintainers
Sources
md5=0cfaa70f569be9494d24c829e6555d46
sha512=8ee967c636b67b22a4f34115871d8f9b9114df309afc9ddf5f61275251088c6e21f6cf745811df75554d30f4cebb6682f23eeb2e88b771330c4b60ce3f6bf5e2
doc/coq-core.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.