Debian Codegraph @

plugins/funind/indfun_common.mli

raw symbols SCIP
1 open Names
2
3 (*
4 The mk_?_id function build different name w.r.t. a function
5 Each of their use is justified in the code
6 *)
7 val mk_rel_id : Id.t -> Id.t
8 val mk_correct_id : Id.t -> Id.t
9 val mk_complete_id : Id.t -> Id.t
10 val mk_equation_id : Id.t -> Id.t
11 val fresh_id : Id.t list -> string -> Id.t
12 val fresh_name : Id.t list -> string -> Name.t
13 val get_name : Id.t list -> ?default:string -> Name.t -> Name.t
14 val array_get_start : 'a array -> 'a array
15 val locate_ind : Libnames.qualid -> inductive
16 val locate_constant : Libnames.qualid -> Constant.t
17 val locate_with_msg : Pp.t -> (Libnames.qualid -> 'a) -> Libnames.qualid -> 'a
18 val filter_map : ('a -> bool) -> ('a -> 'b) -> 'a list -> 'b list
19 val list_union_eq : ('a -> 'a -> bool) -> 'a list -> 'a list -> 'a list
20 val list_add_set_eq : ('a -> 'a -> bool) -> 'a -> 'a list -> 'a list
21
22 val chop_rlambda_n :
23 int
24 -> Glob_term.glob_constr
25 -> (Name.t * Glob_term.glob_constr * Glob_term.glob_constr option) list
26 * Glob_term.glob_constr
27
28 val chop_rprod_n :
29 int
30 -> Glob_term.glob_constr
31 -> (Name.t * Glob_term.glob_constr) list * Glob_term.glob_constr
32
33 val eq : EConstr.constr Lazy.t
34 val refl_equal : EConstr.constr Lazy.t
35 val jmeq : unit -> EConstr.constr
36 val jmeq_refl : unit -> EConstr.constr
37 val make_eq : unit -> EConstr.constr
38
39 (** Run the function with auto implicits off and dumglob paused *)
40 val without_implicit_declarations : (unit -> unit) -> unit -> unit
41
42 val full_printing_flags : unit -> PrintingFlags.t
43
44 val extern_env_full_printing : unit -> Constrextern.extern_env
45
46 (*****************)
47
48 type function_info =
49 { function_constant : Constant.t
50 ; graph_ind : inductive
51 ; equation_lemma : Constant.t option
52 ; correctness_lemma : Constant.t option
53 ; completeness_lemma : Constant.t option
54 ; rect_lemma : Constant.t option
55 ; rec_lemma : Constant.t option
56 ; prop_lemma : Constant.t option
57 ; sprop_lemma : Constant.t option
58 ; is_general : bool }
59
60 val find_Function_infos : Constant.t -> function_info option
61 val find_Function_of_graph : inductive -> function_info option
62
63 (* WARNING: To be used just after the graph definition !!! *)
64 val add_Function : bool -> Constant.t -> unit
65 val update_Function : function_info -> unit
66
67 (** debugging *)
68 val pr_info : Environ.env -> Evd.evar_map -> function_info -> Pp.t
69
70 val pr_table : Environ.env -> Evd.evar_map -> Pp.t
71
72 val observe_tac :
73 header:Pp.t
74 -> (Environ.env -> Evd.evar_map -> Pp.t)
75 -> unit Proofview.tactic
76 -> unit Proofview.tactic
77
78 (* val function_debug : bool ref *)
79 val observe : CDebug.t
80 val do_observe : unit -> bool
81 val do_rewrite_dependent : unit -> bool
82
83 (* To localize pb *)
84 exception Building_graph of exn
85 exception Defining_principle of exn
86 exception ToShow of exn
87
88 val is_strict_tcc : unit -> bool
89 val h_intros : Names.Id.t list -> unit Proofview.tactic
90 val h_id : Names.Id.t
91 val hrec_id : Names.Id.t
92 val acc_inv_id : EConstr.constr Util.delayed
93 val ltof_ref : GlobRef.t Util.delayed
94 val well_founded_ltof : EConstr.constr Util.delayed
95 val acc_rel : EConstr.constr Util.delayed
96 val well_founded : EConstr.constr Util.delayed
97
98 val evaluable_of_global_reference :
99 GlobRef.t -> Evaluable.t
100
101 val list_rewrite : bool -> (EConstr.constr * bool) list -> unit Proofview.tactic
102
103 val decompose_lambda_n :
104 Evd.evar_map
105 -> int
106 -> EConstr.t
107 -> (Names.Name.t EConstr.binder_annot * EConstr.t) list * EConstr.t
108
109 val compose_lam :
110 (Names.Name.t EConstr.binder_annot * EConstr.t) list -> EConstr.t -> EConstr.t
111
112 val compose_prod :
113 (Names.Name.t EConstr.binder_annot * EConstr.t) list -> EConstr.t -> EConstr.t
114
115 type tcc_lemma_value = Undefined | Value of Constr.t | Not_needed
116
117 val funind_purify : ('a -> 'b) -> 'a -> 'b