diff options
author | Matthieu Sozeau <matthieu.sozeau@inria.fr> | 2015-07-09 16:58:06 +0200 |
---|---|---|
committer | Matthieu Sozeau <matthieu.sozeau@inria.fr> | 2015-07-09 17:03:28 +0200 |
commit | 2c59d19ad207a6bf193e9f0c9d73258b3133d484 (patch) | |
tree | 36b64715df91a25e13ca950f5004815976bba371 /checker/inductive.ml | |
parent | e1f5a499c43ec0d7b7ebe696941217fb503e2596 (diff) |
Kernel/Checker: Cleanup fixes of substitutions due to let-ins.
Avoid undeeded large substitutions, and add test-suite file for
fixed bug 4283 in closed/
Diffstat (limited to 'checker/inductive.ml')
-rw-r--r-- | checker/inductive.ml | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/checker/inductive.ml b/checker/inductive.ml index 5d3164973..e3d8dd206 100644 --- a/checker/inductive.ml +++ b/checker/inductive.ml @@ -104,14 +104,11 @@ let instantiate_params full t u args sign = let full_inductive_instantiate mib u params sign = let dummy = Prop Null in let t = mkArity (sign,dummy) in - let ar = fst (destArity (instantiate_params true t u params mib.mind_params_ctxt)) in - subst_instance_context u ar - + fst (destArity (instantiate_params true t u params mib.mind_params_ctxt)) let full_constructor_instantiate ((mind,_),u,(mib,_),params) t = let inst_ind = constructor_instantiate mind u mib t in - instantiate_params true inst_ind u params - (subst_instance_context u mib.mind_params_ctxt) + instantiate_params true inst_ind u params mib.mind_params_ctxt (************************************************************************) (************************************************************************) |