1
(************************************************************************)
2
(* v * The Coq Proof Assistant / The Coq Development Team *)
3
(* <O___,, * CNRS-Ecole Polytechnique-INRIA Futurs-Universite Paris Sud *)
4
(* \VV/ **************************************************************)
5
(* // * This file is distributed under the terms of the *)
6
(* * GNU Lesser General Public License Version 2.1 *)
7
(************************************************************************)
9
(*i $Id: cbv.mli 11897 2009-02-09 19:28:02Z barras $ i*)
19
(************************************************************************)
20
(*s Call-by-value reduction *)
22
(* Entry point for cbv normalization of a constr *)
25
val create_cbv_infos : RedFlags.reds -> env -> Evd.evar_map -> cbv_infos
26
val cbv_norm : cbv_infos -> constr -> constr
28
(************************************************************************)
29
(*i This is for cbv debug *)
32
| LAM of int * (name * constr) list * constr * cbv_value subs
33
| FIXP of fixpoint * cbv_value subs * cbv_value array
34
| COFIXP of cofixpoint * cbv_value subs * cbv_value array
35
| CONSTR of constructor * cbv_value array
37
val shift_value : int -> cbv_value -> cbv_value
41
| APP of cbv_value array * cbv_stack
42
| CASE of constr * constr array * case_info * cbv_value subs * cbv_stack
44
val stack_app : cbv_value array -> cbv_stack -> cbv_stack
45
val strip_appl : cbv_value -> cbv_stack -> cbv_value * cbv_stack
47
(* recursive functions... *)
48
val cbv_stack_term : cbv_infos ->
49
cbv_stack -> cbv_value subs -> constr -> cbv_value
50
val cbv_norm_term : cbv_infos -> cbv_value subs -> constr -> constr
51
val norm_head : cbv_infos ->
52
cbv_value subs -> constr -> cbv_stack -> cbv_value * cbv_stack
53
val apply_stack : cbv_infos -> constr -> cbv_stack -> constr
54
val cbv_norm_value : cbv_infos -> cbv_value -> constr
55
(* End of cbv debug section i*)