aboutsummaryrefslogtreecommitdiff
path: root/pretyping
diff options
context:
space:
mode:
authorPierre-Marie Pédrot2020-07-03 15:32:53 +0200
committerPierre-Marie Pédrot2020-07-05 21:41:09 +0200
commit9065877add52fa94de699ee8a50d240fb7ef4a5c (patch)
tree956dce89b711ec4dc2beb2da030313269a73a86f /pretyping
parentc6985ba89f59d7e510319d932a991ee832011181 (diff)
Further cleanup of dead code in the Reductionops API.
Diffstat (limited to 'pretyping')
-rw-r--r--pretyping/reductionops.ml6
-rw-r--r--pretyping/reductionops.mli25
2 files changed, 9 insertions, 22 deletions
diff --git a/pretyping/reductionops.ml b/pretyping/reductionops.ml
index 20240a175d..87605c7b15 100644
--- a/pretyping/reductionops.ml
+++ b/pretyping/reductionops.ml
@@ -436,15 +436,11 @@ type state = constr * constr Stack.t
type reduction_function = env -> evar_map -> constr -> constr
type e_reduction_function = env -> evar_map -> constr -> evar_map * constr
-type contextual_stack_reduction_function =
+type stack_reduction_function =
env -> evar_map -> constr -> constr * constr list
-type stack_reduction_function = contextual_stack_reduction_function
-type local_stack_reduction_function =
- evar_map -> constr -> constr * constr list
type state_reduction_function =
env -> evar_map -> state -> state
-type local_state_reduction_function = evar_map -> state -> state
let pr_state env sigma (tm,sk) =
let open Pp in
diff --git a/pretyping/reductionops.mli b/pretyping/reductionops.mli
index 3b20a4f1f5..4f53d90d76 100644
--- a/pretyping/reductionops.mli
+++ b/pretyping/reductionops.mli
@@ -111,15 +111,11 @@ type reduction_function = env -> evar_map -> constr -> constr
type e_reduction_function = env -> evar_map -> constr -> evar_map * constr
-type contextual_stack_reduction_function =
+type stack_reduction_function =
env -> evar_map -> constr -> constr * constr list
-type stack_reduction_function = contextual_stack_reduction_function
-type local_stack_reduction_function =
- evar_map -> constr -> constr * constr list
type state_reduction_function =
env -> evar_map -> state -> state
-type local_state_reduction_function = evar_map -> state -> state
val pr_state : env -> evar_map -> state -> Pp.t
@@ -129,11 +125,6 @@ val strong_with_flags :
(CClosure.RedFlags.reds -> reduction_function) ->
(CClosure.RedFlags.reds -> reduction_function)
val strong : reduction_function -> reduction_function
-(*i
-val stack_reduction_of_reduction :
- 'a reduction_function -> 'a state_reduction_function
-i*)
-val stacklam : (state -> 'a) -> constr list -> evar_map -> constr -> constr Stack.t -> 'a
val whd_state_gen :
CClosure.RedFlags.reds -> Environ.env -> Evd.evar_map -> state -> state
@@ -166,13 +157,13 @@ val whd_allnolet : reduction_function
val whd_betalet : reduction_function
(** Removes cast and put into applicative form *)
-val whd_nored_stack : contextual_stack_reduction_function
-val whd_beta_stack : contextual_stack_reduction_function
-val whd_betaiota_stack : contextual_stack_reduction_function
-val whd_betaiotazeta_stack : contextual_stack_reduction_function
-val whd_all_stack : contextual_stack_reduction_function
-val whd_allnolet_stack : contextual_stack_reduction_function
-val whd_betalet_stack : contextual_stack_reduction_function
+val whd_nored_stack : stack_reduction_function
+val whd_beta_stack : stack_reduction_function
+val whd_betaiota_stack : stack_reduction_function
+val whd_betaiotazeta_stack : stack_reduction_function
+val whd_all_stack : stack_reduction_function
+val whd_allnolet_stack : stack_reduction_function
+val whd_betalet_stack : stack_reduction_function
val whd_nored_state : state_reduction_function
val whd_beta_state : state_reduction_function