]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/ng_refiner/nCicUnification.ml
- hExtlib: added debugging information for split_nth
[helm.git] / helm / software / components / ng_refiner / nCicUnification.ml
index 59bc5d7e72ef9f11ee048545d11c616d367e2820..09d9ede475cd12bc1a88e34fbf5be307527f1024 100644 (file)
@@ -65,7 +65,7 @@ let eta_reduce subst t =
         | Some bo -> aux (ctx,bo))
     | (name, src)::ctx, (NCic.Appl args as bo) 
       when HExtlib.list_last args = NCic.Rel 1 -> 
-        let args, _ = HExtlib.split_nth (List.length args - 1) args in
+        let args, _ = HExtlib.split_nth "NU 1" (List.length args - 1) args in
         (match delift_if_not_occur (NCic.Appl args) with
         | None -> aux (ctx,NCic.Lambda(name,src, bo)) 
         | Some bo -> aux (ctx,bo))
@@ -418,7 +418,7 @@ and unify hdb test_eq_only metasenv subst context t1 t2 =
            let relevance = match r1 with
              | Ref.Ref (_,Ref.Con (_,_,lno)) ->
                  let relevance =
-                  try snd (HExtlib.split_nth lno relevance)
+                  try snd (HExtlib.split_nth "NU 2" lno relevance)
                   with Failure _ -> []
                  in
                    HExtlib.mk_list false lno @ relevance