From c4ec9bd2c8a31f5eddea87bbc3f1605ca731d598 Mon Sep 17 00:00:00 2001 From: Pierre-Marie Pédrot Date: Mon, 1 Oct 2018 16:10:37 +0200 Subject: Use a closure for the domain argument of FProd. The use of a term is not needed for the fast typing algorithm of the application case, so this tweak brings the best of both worlds. --- kernel/typeops.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kernel/typeops.ml') diff --git a/kernel/typeops.ml b/kernel/typeops.ml index 956e5f7947..a87355e927 100644 --- a/kernel/typeops.ml +++ b/kernel/typeops.ml @@ -164,7 +164,7 @@ let type_of_apply env func funt argsv argstv = | FProd (_, c1, c2, e) -> let arg = argsv.(i) in let argt = argstv.(i) in - let c1 = term_of_fconstr (mk_clos e c1) in + let c1 = term_of_fconstr c1 in begin match conv_leq false env argt c1 with | () -> apply_rec (i+1) (mk_clos (Esubst.subs_cons ([| inject arg |], e)) c2) | exception NotConvertible -> -- cgit v1.2.3