(************************************************************************) (* * The Rocq Prover / The Rocq Development Team *) (* v * Copyright INRIA, CNRS and contributors *) (* <O___,, * (see version control and CREDITS file for authors & dates) *) (* \VV/ **************************************************************) (* // * This file is distributed under the terms of the *) (* * GNU Lesser General Public License Version 2.1 *) (* * (see LICENSE file for the text of the license) *) (************************************************************************)
open Evd open Environ open EConstr
(** This family of functions assumes its constr argument is known to be well-typable. It does not type-check, just recompute the type without any costly verifications. On non well-typable terms, it either produces a wrong result or raise an anomaly. Use with care.
It doesn't handle predicative universes too. *)
(** The "polyprop" optional argument is used by the extraction to
disable "Prop-polymorphism" *)
(** The "lax" optional argument provides a relaxed version of
[get_type_of] that won't raise any anomaly but RetypeError instead *)
type retype_error
exception RetypeError of retype_error
val relevance_of_projection_repr : env -> Names.Projection.Repr.t EConstr.puniverses -> ERelevance.t
val relevance_of_term : env -> evar_map -> constr -> ERelevance.t val relevance_of_type : env -> evar_map -> types -> ERelevance.t val relevance_of_sort : ESorts.t -> ERelevance.t
val is_term_irrelevant : env -> Evd.evar_map -> Evd.econstr -> bool
(** The "polyprop" optional argument above controls the "Prop-polymorphism". By default, it is allowed. But when "polyprop=false", the following exception is raised when a polymorphic singleton inductive type becomes Prop due to parameter instantiation. This is used by the Ocaml extraction,
which cannot handle (yet?) Prop-polymorphism. *)
exception SingletonInductiveBecomesProp of Names.inductive
¤ Dauer der Verarbeitung: 0.14 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.