Debian Codegraph @

pretyping/evardefine.mli

raw symbols SCIP
1 (************************************************************************)
2 (* * The Rocq Prover / The Rocq Development Team *)
3 (* v * Copyright INRIA, CNRS and contributors *)
4 (* <O___,, * (see version control and CREDITS file for authors & dates) *)
5 (* \VV/ **************************************************************)
6 (* // * This file is distributed under the terms of the *)
7 (* * GNU Lesser General Public License Version 2.1 *)
8 (* * (see LICENSE file for the text of the license) *)
9 (************************************************************************)
10
11 open EConstr
12 open Evd
13 open Environ
14
15 val env_nf_evar : evar_map -> env -> env
16 val env_nf_betaiotaevar : evar_map -> env -> env
17
18 type type_constraint = types option
19 type val_constraint = constr option
20
21 val empty_tycon : type_constraint
22 val mk_tycon : constr -> type_constraint
23 val empty_valcon : val_constraint
24 val mk_valcon : constr -> val_constraint
25
26 (** Instantiate an evar by as many lambda's as needed so that its arguments
27 are moved to the evar substitution (i.e. turn [?x[vars1:=args1] args] into
28 [?y[vars1:=args1,vars:=args]] with
29 [vars1 |- ?x:=\vars.?y[vars1:=vars1,vars:=vars]] *)
30 val evar_absorb_arguments : env -> evar_map -> existential -> constr list ->
31 evar_map * existential
32
33 val split_as_array : env -> evar_map -> type_constraint ->
34 evar_map * type_constraint
35 (** If the constraint can be made to look like [array A] return [A],
36 otherwise return [None] (this makes later coercion possible). *)
37
38 val valcon_of_tycon : type_constraint -> val_constraint
39 val lift_tycon : int -> type_constraint -> type_constraint
40
41 val define_evar_as_product : env -> evar_map -> ?name:Names.Id.t -> existential -> evar_map * types
42 val define_evar_as_lambda : env -> evar_map -> ?name:Names.Id.t -> existential -> evar_map * types
43 val define_evar_as_sort : env -> evar_map -> existential -> evar_map * ESorts.t
44
45 (** {6 debug pretty-printer:} *)
46
47 val pr_tycon : env -> evar_map -> type_constraint -> Pp.t
48
49 (** Used for bidi heuristic when typing lambdas. Transforms an applied
50 evar to an evar with bigger context (ie [?X e] to [?X'@{y=e}]). *)
51 val presplit : env -> evar_map -> EConstr.t -> evar_map * EConstr.t