package coq
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=3cbfc1e1a72b16d4744f5b64ede59586071e31d9c11c811a0372060727bfd9c3
doc/coq-core.kernel/Context/Rel/index.html
Module Context.Rel
Source
Representation of contexts that can capture anonymous as well as non-anonymous variables. Individual declarations are then designated by de Bruijn indexes.
Rel-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 rel-context enriched by with a given inner-most declaration.
Return the number of local declarations in a given rel-context.
Check whether given two rel-contexts are equal.
Return a declaration designated by a given de Bruijn index.
Perform a given action on every declaration in a given rel-context.
Reduce all terms in a given rel-context to a single value. Innermost declarations are processed first.
Reduce all terms in a given rel-context to a single value. Outermost declarations are processed first.
Map a given rel-context to a list where each local assumption is mapped to true
and each local definition is mapped to false
.
Turn all LocalDef
into LocalAssum
, leave LocalAssum
unchanged.
extended_list mk n Γ
builds an instance args
such that Γ,Δ ⊢ args:Γ
with n = |Δ| and with the local definitions of Γ
skipped in args
where mk
is used to build the corresponding variables. Example: for x:T, y:=c, z:U
and n
=2, it gives mk 5, mk 3
.