]> matita.cs.unibo.it Git - helm.git/commitdiff
Complete beta reduction added to avoid strange case of deep beta-redexes
authorAndrea Asperti <andrea.asperti@unibo.it>
Thu, 24 Jul 2003 14:06:03 +0000 (14:06 +0000)
committerAndrea Asperti <andrea.asperti@unibo.it>
Thu, 24 Jul 2003 14:06:03 +0000 (14:06 +0000)
in the expected types of application heads.

helm/ocaml/cic_omdoc/doubleTypeInference.ml

index 71422ced12d6190d09b2829d2f80d1fcffaef6c5..362422cac59fa61509a66f76d5ce2fda950702c8 100644 (file)
@@ -426,7 +426,8 @@ let rec type_of_aux' subterms_to_types metasenv context t expectedty =
         let expected_hetype =
          (* Inefficient, the head is computed twice. But I know *)
          (* of no other solution.                               *)
-         R.whd context (CicTypeChecker.type_of_aux' metasenv context he)
+         (head_beta_reduce
+          (R.whd context (CicTypeChecker.type_of_aux' metasenv context he)))
         in
          let hetype = type_of_aux context he (Some expected_hetype) in
          let tlbody_and_type =