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.interp/Constrextern/index.html

Module ConstrexternSource

Translation of pattern, cases pattern, glob_constr and term into syntax trees for printing

Sourceval extern_closed_glob : ?goal_concl_style:bool -> ?inctx:bool -> ?scope:Notation_term.scope_name -> Environ.env -> Evd.evar_map -> Ltac_pretype.closed_glob_constr -> Constrexpr.constr_expr

If b=true in extern_constr b env c then the variables in the first level of quantification clashing with the variables in env are renamed. ~lax is for debug printing, when the constr might not be well typed in env, sigma

Sourceval extern_constr_in_scope : ?inctx:bool -> Notation_term.scope_name -> Environ.env -> Evd.evar_map -> EConstr.constr -> Constrexpr.constr_expr
Sourceval extern_reference : ?loc:Loc.t -> Names.Id.Set.t -> Names.GlobRef.t -> Libnames.qualid
Sourceval extern_type : ?goal_concl_style:bool -> Environ.env -> Evd.evar_map -> ?impargs:Glob_term.binding_kind list -> EConstr.types -> Constrexpr.constr_expr
Sourceval print_implicits : bool ref

Printing options

Sourceval print_implicits_defensive : bool ref
Sourceval print_coercions : bool ref
Sourceval print_parentheses : bool ref
Sourceval print_universes : bool ref
Sourceval print_no_symbol : bool ref
Sourceval print_projections : bool ref
Sourceval print_raw_literal : bool ref
Sourceval set_extern_reference : (?loc:Loc.t -> Names.Id.Set.t -> Names.GlobRef.t -> Libnames.qualid) -> unit

Customization of the global_reference printer

Sourceval get_extern_reference : unit -> ?loc:Loc.t -> Names.Id.Set.t -> Names.GlobRef.t -> Libnames.qualid

WARNING: The following functions are evil due to side-effects. Think of the following case as used in the printer:

without_specific_symbols AbbrevRule kn (pr_glob_constr_env env) c

vs

without_specific_symbols AbbrevRule kn pr_glob_constr_env env c

which one is wrong? We should turn this kind of state into an explicit argument.

Sourceval with_universes : ('a -> 'b) -> 'a -> 'b

This forces printing universe names of Type{.}

Sourceval without_symbols : ('a -> 'b) -> 'a -> 'b

This suppresses printing of primitive tokens and notations

Sourceval with_meta_as_hole : ('a -> 'b) -> 'a -> 'b

This prints metas as anonymous holes

Sourceval empty_extern_env : extern_env

Probably shouldn't be used

OCaml

Innovation. Community. Security.