aboutsummaryrefslogtreecommitdiff
path: root/library/indrec.mli
blob: f1d1b51904f87367a89f83e1513a9fdf03d18d4b (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
59
(* $Id$ *)

(*i*)
open Names
open Term
open Inductive
open Environ
open Evd
(*i*)

(* Eliminations. *)

val make_case_dep : env -> 'a evar_map -> constr -> sorts -> constr
val make_case_nodep : env -> 'a evar_map -> constr -> sorts -> constr
val make_case_gen : env -> 'a evar_map -> constr -> sorts -> constr

val make_indrec : env -> 'a evar_map -> 
  (mind_specif * bool * sorts) list -> constr -> constr array

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

val build_indrec : 
  env -> 'a evar_map -> (constr * bool * sorts) list -> constr array

val type_rec_branches : bool -> env -> 'c evar_map -> constr 
  -> 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

(*i Info pour JCF : d�plac� dans pretyping, sert � Program
val transform_rec : env -> 'c evar_map -> (constr array) 
  -> (constr * constr) -> constr
i*)

val is_mutind : env -> 'a evar_map -> constr -> bool 

val branch_scheme : 
  env -> 'a evar_map -> bool -> int -> constr -> constr

val pred_case_ml : env -> 'c evar_map -> bool -> (constr * constr) 
  ->  constr array -> (int*constr)  ->constr

val pred_case_ml_onebranch : env ->'c evar_map -> bool ->
  constr * constr ->int * constr * constr -> constr 

val make_case_ml :
  bool -> constr -> constr -> case_info -> constr array -> constr


(*s Auxiliary functions. TODO: les d�placer ailleurs. *)

val prod_create : env -> constr * constr -> constr