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: reduction.mli 11897 2009-02-09 19:28:02Z barras $ i*)
17
(************************************************************************)
18
(*s Reduction functions *)
20
val whd_betaiotazeta : constr -> constr
21
val whd_betadeltaiota : env -> constr -> constr
22
val whd_betadeltaiota_nolet : env -> constr -> constr
24
val nf_betaiota : constr -> constr
26
(************************************************************************)
27
(*s conversion functions *)
29
exception NotConvertible
30
exception NotConvertibleVect of int
31
type 'a conversion_function = env -> 'a -> 'a -> Univ.constraints
32
type 'a trans_conversion_function = Names.transparent_state -> env -> 'a -> 'a -> Univ.constraints
34
type conv_pb = CONV | CUMUL
37
conv_pb -> sorts -> sorts -> Univ.constraints -> Univ.constraints
39
val conv_sort : sorts conversion_function
40
val conv_sort_leq : sorts conversion_function
42
val trans_conv_cmp : conv_pb -> constr trans_conversion_function
44
?evars:(existential->constr option) -> constr trans_conversion_function
46
?evars:(existential->constr option) -> types trans_conversion_function
48
val conv_cmp : conv_pb -> constr conversion_function
50
?evars:(existential->constr option) -> constr conversion_function
52
?evars:(existential->constr option) -> types conversion_function
54
?evars:(existential->constr option) -> types array conversion_function
56
(* option for conversion *)
57
val set_vm_conv : (conv_pb -> types conversion_function) -> unit
58
val vm_conv : conv_pb -> types conversion_function
60
val set_default_conv : (conv_pb -> types conversion_function) -> unit
61
val default_conv : conv_pb -> types conversion_function
62
val default_conv_leq : types conversion_function
64
(************************************************************************)
66
(* Builds an application node, reducing beta redexes it may produce. *)
67
val beta_appvect : constr -> constr array -> constr
69
(* Pseudo-reduction rule Prod(x,A,B) a --> B[x\a] *)
70
val hnf_prod_applist : env -> types -> constr list -> types
73
(************************************************************************)
74
(*s Recognizing products and arities modulo reduction *)
76
val dest_prod : env -> types -> Sign.rel_context * types
77
val dest_prod_assum : env -> types -> Sign.rel_context * types
79
val dest_arity : env -> types -> Sign.arity
80
val is_arity : env -> types -> bool