aboutsummaryrefslogtreecommitdiffhomepage
path: root/kernel/reduction.mli
diff options
context:
space:
mode:
authorGravatar Hugo Herbelin <Hugo.Herbelin@inria.fr>2017-09-23 12:25:35 +0200
committerGravatar Hugo Herbelin <Hugo.Herbelin@inria.fr>2017-12-14 15:57:51 +0100
commit63d582c6cd12bc3f8134a5aa9e3bdbca0dd2e9ca (patch)
tree368bc9298c9694c705bb66d89638a96f54aa8a89 /kernel/reduction.mli
parente0c06c7dac30b9959a3eb90b0c1d324f061a8660 (diff)
Fixing a bug of Print for inductive types with let-ins in parameters.
Adding a "let-in"-sensitive function hnf_prod_applist_assum to instantiate parameters and using it for printing. Thanks to PMP for reporting.
Diffstat (limited to 'kernel/reduction.mli')
-rw-r--r--kernel/reduction.mli6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/reduction.mli b/kernel/reduction.mli
index 573e4c8bd..ce019f021 100644
--- a/kernel/reduction.mli
+++ b/kernel/reduction.mli
@@ -103,6 +103,12 @@ val beta_app : constr -> constr -> constr
(** Pseudo-reduction rule Prod(x,A,B) a --> B[x\a] *)
val hnf_prod_applist : env -> types -> constr list -> types
+(** In [hnf_prod_applist_assum n c args], [c] is supposed to (whd-)reduce to
+ the form [∀Γ.t] with [Γ] of length [n] and possibly with let-ins; it
+ returns [t] with the assumptions of [Γ] instantiated by [args] and
+ the local definitions of [Γ] expanded. *)
+val hnf_prod_applist_assum : env -> int -> types -> constr list -> types
+
(** Compatibility alias for Term.lambda_appvect_assum *)
val betazeta_appvect : int -> constr -> constr array -> constr