blob: c8d2ca43a30e5f0d82bb1f71fe148da9f20226fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
(* $Id$ *)
(*i*)
open Names
open Term
open Inductive
open Environ
open Evd
(*i*)
(* Eliminations. *)
(* These functions build elimination predicate for Case tactic *)
val make_case_dep : env -> 'a evar_map -> inductive -> sorts -> constr
val make_case_nodep : env -> 'a evar_map -> inductive -> sorts -> constr
val make_case_gen : env -> 'a evar_map -> inductive -> sorts -> constr
(* This builds elimination scheme associated to inductive types *)
val mis_make_indrec : env -> 'a evar_map ->
(mind_specif * bool * sorts) list -> mind_specif -> constr array
val instanciate_indrec_scheme : sorts -> int -> constr -> constr
(* This builds complex [Scheme] *)
val build_indrec :
env -> 'a evar_map -> (inductive * bool * sorts) list -> constr array
(* These are for old Case/Match typing *)
val type_rec_branches : bool -> env -> 'c evar_map -> constr
-> constr -> constr -> constr -> constr array * constr
val make_rec_branch_arg :
env -> 'a evar_map ->
constr array * ('b * constr) option array * int ->
constr -> constr -> recarg list -> constr
(* In [inductive * constr list * constr list], the second argument is
the list of global parameters and the third the list of real args *)
val pred_case_ml_onebranch : env ->'c evar_map -> bool ->
constr * (inductive * constr list * constr list)
-> int * constr * constr -> constr
(*i Info pour JCF : d�plac� dans pretyping, sert � Program
val transform_rec : env -> 'c evar_map -> (constr array)
-> (constr * constr) -> constr
i*)
(*i Utilis�s dans Program
val pred_case_ml : env -> 'c evar_map -> bool ->
constr * (inductive * constr list * constr list)
-> constr array -> int * constr ->constr
val make_case_ml :
bool -> constr -> constr -> case_info -> constr array -> constr
i*)
|