package coq-core
Install
Dune Dependency
Authors
Maintainers
Sources
md5=64b49dbc3205477bd7517642c0b9cbb6
sha512=02fb5b4fb575af79e092492cbec6dc0d15a1d74a07f827f657a72d4e6066532630e5a6d15be4acdb73314bd40b9a321f9ea0584e0ccfe51fd3a56353bd30db9b
doc/coq-core.kernel/Context/Named/index.html
Module Context.Named
Source
This module represents contexts that can capture non-anonymous variables. Individual declarations are then designated by the identifiers they bind.
Representation of local declarations.
Named-context is represented as a list of declarations. Inner-most declarations are at the beginning of the list. Outer-most declarations are at the end of the list.
Return a new named-context enriched by with a given inner-most declaration.
Return the number of local declarations in a given named-context.
Return a declaration designated by an identifier of the variable bound in that declaration.
Check whether given two named-contexts are equal.
Perform a given action on every declaration in a given named-context.
Reduce all terms in a given named-context to a single value. Innermost declarations are processed first.
Reduce all terms in a given named-context to a single value. Outermost declarations are processed first.
Return the set of all identifiers bound in a given named-context.
Turn all LocalDef
into LocalAssum
, leave LocalAssum
unchanged.
to_instance Ω
builds an instance args
in reverse order such that Ω ⊢ args:Ω
where Ω
is a named-context and with the local definitions of Ω
skipped. Example: for id1:T,id2:=c,id3:U
, it gives Var id1, Var id3
. All idj
are supposed distinct.
instance Ω
builds an instance args
such that Ω ⊢ args:Ω
where Ω
is a named-context and with the local definitions of Ω
skipped. Example: for the context id1:T,id2:=c,id3:U
(which is internally represented by a list with id3
at the head), it gives Var id1, Var id3
. All idj
are supposed distinct.
instance_list
is like instance
but returning a list.