Module Reduction
val whd_betaiotazeta : Environ.env -> Constr.constr -> Constr.constrval whd_all : Environ.env -> Constr.constr -> Constr.constrval whd_allnolet : Environ.env -> Constr.constr -> Constr.constrval whd_betaiota : Environ.env -> Constr.constr -> Constr.constrval nf_betaiota : Environ.env -> Constr.constr -> Constr.constr
type 'a kernel_conversion_function= Environ.env -> 'a -> 'a -> unittype 'a extended_conversion_function= ?l2r:bool -> ?reds:TransparentState.t -> Environ.env -> ?evars:((Constr.existential -> Constr.constr option) * UGraph.t) -> 'a -> 'a -> unittype conv_pb=|CONV|CUMULtype 'a universe_compare={compare_sorts : Environ.env -> conv_pb -> Sorts.t -> Sorts.t -> 'a -> 'a;compare_instances : flex:bool -> Univ.Instance.t -> Univ.Instance.t -> 'a -> 'a;compare_cumul_instances : conv_pb -> Univ.Variance.t array -> Univ.Instance.t -> Univ.Instance.t -> 'a -> 'a;}type 'a universe_state= 'a * 'a universe_comparetype ('a, 'b) generic_conversion_function= Environ.env -> 'b universe_state -> 'a -> 'a -> 'btype 'a infer_conversion_function= Environ.env -> UGraph.t -> 'a -> 'a -> Univ.Constraint.t
val get_cumulativity_constraints : conv_pb -> Univ.Variance.t array -> Univ.Instance.t -> Univ.Instance.t -> Univ.Constraint.tval inductive_cumulativity_arguments : (Declarations.mutual_inductive_body * int) -> intval constructor_cumulativity_arguments : (Declarations.mutual_inductive_body * int * int) -> intval sort_cmp_universes : Environ.env -> conv_pb -> Sorts.t -> Sorts.t -> ('a * 'a universe_compare) -> 'a * 'a universe_compareval convert_instances : flex:bool -> Univ.Instance.t -> Univ.Instance.t -> ('a * 'a universe_compare) -> 'a * 'a universe_compareval checked_universes : UGraph.t universe_compareThese two never raise UnivInconsistency, inferred_universes just gathers the constraints.
val inferred_universes : (UGraph.t * Univ.Constraint.t) universe_compareval conv : Constr.constr extended_conversion_functionThese two functions can only raise NotConvertible
val conv_leq : Constr.types extended_conversion_functionval infer_conv : ?l2r:bool -> ?evars:(Constr.existential -> Constr.constr option) -> ?ts:TransparentState.t -> Constr.constr infer_conversion_functionThese conversion functions are used by module subtyping, which needs to infer universe constraints inside the kernel
val infer_conv_leq : ?l2r:bool -> ?evars:(Constr.existential -> Constr.constr option) -> ?ts:TransparentState.t -> Constr.types infer_conversion_functionval generic_conv : conv_pb -> l2r:bool -> (Constr.existential -> Constr.constr option) -> TransparentState.t -> (Constr.constr, 'a) generic_conversion_functionDepending on the universe state functions, this might raise
UniverseInconsistencyin addition toNotConvertible(for better error messages).
val default_conv : conv_pb -> ?l2r:bool -> Constr.types kernel_conversion_functionval default_conv_leq : ?l2r:bool -> Constr.types kernel_conversion_functionval beta_applist : Constr.constr -> Constr.constr list -> Constr.constrBuilds an application node, reducing beta redexes it may produce.
val beta_appvect : Constr.constr -> Constr.constr array -> Constr.constrBuilds an application node, reducing beta redexes it may produce.
val beta_app : Constr.constr -> Constr.constr -> Constr.constrBuilds an application node, reducing beta redexe it may produce.
val hnf_prod_applist : Environ.env -> Constr.types -> Constr.constr list -> Constr.typesPseudo-reduction rule Prod(x,A,B) a --> B
x\a
val hnf_prod_applist_assum : Environ.env -> int -> Constr.types -> Constr.constr list -> Constr.typesIn
hnf_prod_applist_assum n c args,cis supposed to (whd-)reduce to the form∀Γ.twithΓof lengthnand possibly with let-ins; it returnstwith the assumptions ofΓinstantiated byargsand the local definitions ofΓexpanded.
val betazeta_appvect : int -> Constr.constr -> Constr.constr array -> Constr.constrCompatibility alias for Term.lambda_appvect_assum
val dest_prod : Environ.env -> Constr.types -> Constr.rel_context * Constr.typesval dest_prod_assum : Environ.env -> Constr.types -> Constr.rel_context * Constr.typesval dest_lam : Environ.env -> Constr.constr -> Constr.rel_context * Constr.constrval dest_lam_assum : Environ.env -> Constr.constr -> Constr.rel_context * Constr.constr
val dest_arity : Environ.env -> Constr.types -> Term.arityval is_arity : Environ.env -> Constr.types -> boolval eta_expand : Environ.env -> Constr.constr -> Constr.types -> Constr.constr