package coq-core

  1. Overview
  2. Docs
The Coq Proof Assistant -- Core Binaries and Tools

Install

Dune Dependency

Authors

Maintainers

Sources

coq-8.19.2.tar.gz
md5=5d1187d5e44ed0163f76fb12dabf012e
sha512=91bc81530fa4f6498961583ad51eac5001f139881788b88e360a866ad8e2a6e2c5bce86d1a580ab4cd4782bf49d48318767df82471ce33ba3ac143e5569ad33c

doc/coq-core.pretyping/Retyping/index.html

Module RetypingSource

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", cf comment in inductive.ml

The "lax" optional argument provides a relaxed version of get_type_of that won't raise any anomaly but RetypeError instead

Sourcetype retype_error
Sourceexception RetypeError of retype_error
Sourceval get_type_of : ?polyprop:bool -> ?lax:bool -> Environ.env -> Evd.evar_map -> EConstr.constr -> EConstr.types
Sourceval get_type_of_constr : ?polyprop:bool -> ?lax:bool -> Environ.env -> ?uctx:UState.t -> Constr.t -> Constr.types

No-evar version of get_type_of

Sourceval get_sort_of : ?polyprop:bool -> Environ.env -> Evd.evar_map -> EConstr.types -> EConstr.ESorts.t
Sourceval get_sort_family_of : ?polyprop:bool -> Environ.env -> Evd.evar_map -> EConstr.types -> Sorts.family

Makes an unsafe judgment from a constr

Sourceval type_of_global_reference_knowing_parameters : Environ.env -> Evd.evar_map -> EConstr.constr -> EConstr.constr array -> EConstr.types
Sourceval type_of_global_reference_knowing_conclusion : Environ.env -> Evd.evar_map -> EConstr.constr -> EConstr.types -> Evd.evar_map * EConstr.types
Sourceval reinterpret_get_type_of : src:Names.Id.t -> Environ.env -> Evd.evar_map -> EConstr.constr -> EConstr.types
Sourceval print_retype_error : retype_error -> Pp.t
Sourceval relevance_of_sort_family : Evd.evar_map -> Sorts.family -> Sorts.relevance
OCaml

Innovation. Community. Security.