From a4839aa1ff076a8938ca182615a93d6afe748860 Mon Sep 17 00:00:00 2001 From: Pierre-Marie Pédrot Date: Mon, 4 Jun 2018 13:32:35 +0200 Subject: Remove the proj_eta field of the kernel. This field was not used inside the kernel and not used in performance-critical code where caching is essential, so we extrude the code that computes it out of the kernel. --- checker/cic.mli | 1 - checker/subtyping.ml | 2 -- checker/values.ml | 6 ++---- 3 files changed, 2 insertions(+), 7 deletions(-) (limited to 'checker') diff --git a/checker/cic.mli b/checker/cic.mli index 5543e5720..94958447e 100644 --- a/checker/cic.mli +++ b/checker/cic.mli @@ -211,7 +211,6 @@ type projection_body = { proj_npars : int; proj_arg : int; proj_type : constr; (* Type under params *) - proj_eta : constr * constr; (* Eta-expanded term and type *) proj_body : constr; (* For compatibility, the match version *) } diff --git a/checker/subtyping.ml b/checker/subtyping.ml index 5c672d04a..6f9bf8fce 100644 --- a/checker/subtyping.ml +++ b/checker/subtyping.ml @@ -130,8 +130,6 @@ let check_inductive env mp1 l info1 mib2 spec2 subst1 subst2= check (==) (fun x -> x.proj_npars); check (==) (fun x -> x.proj_arg); check (eq_constr) (fun x -> x.proj_type); - check (eq_constr) (fun x -> fst x.proj_eta); - check (eq_constr) (fun x -> snd x.proj_eta); check (eq_constr) (fun x -> x.proj_body); true in let check_inductive_type t1 t2 = diff --git a/checker/values.ml b/checker/values.ml index f1c4fd470..12fbf1ff0 100644 --- a/checker/values.ml +++ b/checker/values.ml @@ -15,7 +15,7 @@ To ensure this file is up-to-date, 'make' now compares the md5 of cic.mli with a copy we maintain here: -MD5 3d9612f0adc70404fddb093b85c7d168 checker/cic.mli +MD5 125f04aeb55b2fa027db6bfb9dffc6a2 checker/cic.mli *) @@ -225,9 +225,7 @@ let v_cst_def = let v_projbody = v_tuple "projection_body" - [|v_cst;Int;Int;v_constr; - v_tuple "proj_eta" [|v_constr;v_constr|]; - v_constr|] + [|v_cst;Int;Int;v_constr;v_constr|] let v_typing_flags = v_tuple "typing_flags" [|v_bool; v_bool; v_oracle|] -- cgit v1.2.3