]> matita.cs.unibo.it Git - helm.git/commitdiff
better test
authorEnrico Tassi <enrico.tassi@inria.fr>
Fri, 3 Oct 2008 14:09:28 +0000 (14:09 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Fri, 3 Oct 2008 14:09:28 +0000 (14:09 +0000)
helm/software/components/ng_refiner/check.ml

index 22c0881aa26c66160610e37fe0f1b4abce6b82c3..3a155329e679ba235f2c5da77987ae69455b96c4 100644 (file)
@@ -210,8 +210,8 @@ let _ =
             NCicMetaSubst.saturate ~delta:max_int [] ctx ty 0
           in
           let ctx, ty = intros ty in
-          let ity =
-            match ity with
+          let whd ty =
+            match ty with
             | NCic.Appl [eq;t;a;b] ->
                NCic.Appl [eq;t;NCicReduction.whd ~delta:0 ctx a;b]
             | t -> NCicReduction.whd ~delta:0 ctx t
@@ -225,7 +225,7 @@ let _ =
           let metasenv, subst = 
             try 
 (*                     prerr_endline ("INIZIO: " ^ NUri.string_of_uri u); *)
-              NCicUnification.unify menv [] ctx ity sty 
+              NCicUnification.unify menv [] ctx ity (whd sty) 
             with
             | NCicUnification.Uncertain msg 
             | NCicUnification.UnificationFailure msg