Debian Codegraph @

pretyping/detyping.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 Names
12 open Environ
13 open EConstr
14 open Glob_term
15 open Termops
16 open Mod_subst
17 open Evd
18 open Ltac_pretype
19
20 type _ delay =
21 | Now : 'a delay
22 | Later : [ `thunk ] delay
23
24 val subst_cases_pattern : substitution -> cases_pattern -> cases_pattern
25
26 val subst_glob_constr : env -> substitution -> glob_constr -> glob_constr
27
28 val factorize_eqns : flags:PrintingFlags.Extern.FactorizeEqns.t -> 'a cases_clauses_g -> 'a disjunctive_cases_clauses_g
29
30 (** [detype isgoal avoid ctx c] turns a closed [c], into a glob_constr
31 de Bruijn indexes are turned to bound names, avoiding names in [avoid]
32 [isgoal] tells if naming must avoid global-level synonyms as intro does
33 [ctx] gives the names of the free variables *)
34
35 val detype : 'a delay ->
36 flags:PrintingFlags.Detype.t -> ?isgoal:bool -> ?avoid:'g Namegen.Generator.input ->
37 env -> evar_map -> constr -> 'a glob_constr_g
38
39 val detype_sort : universes:bool -> qualities:bool -> evar_map -> Sorts.t -> glob_sort
40
41 val detype_rel_context : 'a delay ->
42 flags:PrintingFlags.Detype.t ->
43 ?avoid:'g Namegen.Generator.input ->
44 (names_context * env) -> evar_map -> rel_context -> 'a glob_decl_g list
45
46 val share_pattern_names :
47 ('g Namegen.Generator.input -> names_context -> 'c -> 'd Pattern.constr_pattern_r -> 'a) -> int ->
48 (Name.t * 'e option * binding_kind * 'b option * 'a) list ->
49 'g Namegen.Generator.input -> names_context -> 'c -> 'd Pattern.constr_pattern_r ->
50 'd Pattern.constr_pattern_r ->
51 (Name.t * 'e option * binding_kind * 'b option * 'a) list * 'a * 'a
52
53 val detype_closed_glob : flags:PrintingFlags.Detype.t -> ?isgoal:bool ->
54 ?avoid:'g Namegen.Generator.input -> env -> evar_map -> closed_glob_constr -> glob_constr
55
56 (** look for the index of a named var or a nondep var as it is renamed *)
57 val lookup_name_as_displayed : env -> evar_map -> constr -> Id.t -> int option
58 val lookup_index_as_renamed : env -> evar_map -> constr -> int -> int option