]> matita.cs.unibo.it Git - helm.git/commitdiff
A simplification bug was introduced during the clean-up before the last
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 5 Dec 2002 14:57:45 +0000 (14:57 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Thu, 5 Dec 2002 14:57:45 +0000 (14:57 +0000)
commit. Fixed.

helm/gTopLevel/proofEngineReduction.ml

index 04bfe9ae5e297de46e120cb3dc092826343995d6..208864c801f1a2fdeafa99506ade65b46f901f51 100644 (file)
@@ -584,14 +584,16 @@ let simpl context =
                  aux [] l (CicSubstitution.subst_vars exp_named_subst' body)
                in
                 (**** Step 3 ****)
-                let term_to_fold =
+                let term_to_fold, delta_expanded_term_to_fold =
                  let body' = CicSubstitution.subst_vars exp_named_subst' body in
                   match constant_args with
-                     [] -> body'
-                   | _ -> C.Appl (body'::constant_args)
+                     [] -> C.Const (uri,exp_named_subst'), body'
+                   | _ ->
+                     C.Appl ((C.Const (uri,exp_named_subst'))::constant_args),
+                      C.Appl (body'::constant_args)
                 in
                  let simplified_term_to_fold =
-                  reduceaux context [] term_to_fold
+                  reduceaux context [] delta_expanded_term_to_fold
                  in
                   replace (=) simplified_term_to_fold term_to_fold res
               with