package coq-core
Install
Dune Dependency
Authors
Maintainers
Sources
md5=0cfaa70f569be9494d24c829e6555d46
sha512=8ee967c636b67b22a4f34115871d8f9b9114df309afc9ddf5f61275251088c6e21f6cf745811df75554d30f4cebb6682f23eeb2e88b771330c4b60ce3f6bf5e2
doc/coq-core.kernel/Context/Rel/Declaration/index.html
Module Rel.Declaration
Source
type ('constr, 'types, 'r) pt =
| LocalAssum of (Names.Name.t, 'r) pbinder_annot * 'types
(*name, type
*)| LocalDef of (Names.Name.t, 'r) pbinder_annot * 'constr * 'types
(*name, value, type
*)
Return the name bound by a given declaration.
Return Some value
for local-declarations and None
for local-assumptions.
Set the name 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 name 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.