package coq-core
The Coq Proof Assistant -- Core Binaries and Tools
Install
Dune Dependency
Authors
Maintainers
Sources
coq-8.19.0.tar.gz
md5=64b49dbc3205477bd7517642c0b9cbb6
sha512=02fb5b4fb575af79e092492cbec6dc0d15a1d74a07f827f657a72d4e6066532630e5a6d15be4acdb73314bd40b9a321f9ea0584e0ccfe51fd3a56353bd30db9b
doc/coq-core.pretyping/Indrec/index.html
Module Indrec
Source
Errors related to recursors building
Source
type recursion_scheme_error =
| NotAllowedCaseAnalysis of bool * Sorts.t * Constr.pinductive
| NotMutualInScheme of Names.inductive * Names.inductive
| NotAllowedDependentAnalysis of bool * Names.inductive
Eliminations
Build a case analysis elimination scheme in some sort family
Source
type case_analysis = private {
case_params : EConstr.rel_context;
case_pred : Names.Name.t Context.binder_annot * EConstr.types;
case_branches : EConstr.rel_context;
case_arity : EConstr.rel_context;
case_body : EConstr.t;
case_type : EConstr.t;
}
Source
val check_valid_elimination :
Environ.env ->
Constr.pinductive ->
dep:bool ->
Sorts.family ->
unit
Source
val build_case_analysis_scheme :
Environ.env ->
Evd.evar_map ->
Constr.pinductive ->
dep_flag ->
Sorts.family ->
Evd.evar_map * case_analysis
Build a dependent case elimination predicate unless type is in Prop or is a recursive record with primitive projections.
Source
val build_case_analysis_scheme_default :
Environ.env ->
Evd.evar_map ->
Constr.pinductive ->
Sorts.family ->
Evd.evar_map * case_analysis
Builds a recursive induction scheme (Peano-induction style) in the same sort family as the inductive family; it is dependent if not in Prop or a recursive record with primitive projections.
Source
val build_induction_scheme :
Environ.env ->
Evd.evar_map ->
Constr.pinductive ->
dep_flag ->
Sorts.family ->
Evd.evar_map * Constr.constr
Builds mutual (recursive) induction schemes
Source
val build_mutual_induction_scheme :
Environ.env ->
Evd.evar_map ->
?force_mutual:bool ->
(Constr.pinductive * dep_flag * Sorts.family) list ->
Evd.evar_map * Constr.constr list
Scheme combinators
weaken_sort_scheme env sigma eq s n c t
derives by subtyping from c:t
whose conclusion is quantified on Type i
at position n
of t
a scheme quantified on sort s
. set
asks for s
be declared equal to i
, otherwise just less or equal to i
.
Source
val weaken_sort_scheme :
Environ.env ->
Evd.evar_map ->
bool ->
EConstr.ESorts.t ->
int ->
Constr.constr ->
Constr.types ->
Evd.evar_map * Constr.types * Constr.constr
Recursor names utilities
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>