]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/cic_unification/cicRefine.ml
Patch to add a debugging string to HExtlib.split_nth reverted
[helm.git] / helm / software / components / cic_unification / cicRefine.ml
index 537290dc6d062af26e090f61d403e2d87c1a3d07..b535b9ebe987677505d7d9b40a2c59731a4c2606 100644 (file)
@@ -1553,7 +1553,7 @@ and type_of_aux' ?(clean_dummy_dependent_types=true)
                      let get_l_r_p n = function
                        | Cic.Lambda (_,Cic.MutInd _,_) -> [],[]
                        | Cic.Lambda (_,Cic.Appl (Cic.MutInd _ :: args),_) ->
-                           HExtlib.split_nth "R 1" n args
+                           HExtlib.split_nth n args
                        | _ -> assert false
                      in
                      let _, _, ty, cl = List.nth tl tyno in
@@ -1626,7 +1626,7 @@ and type_of_aux' ?(clean_dummy_dependent_types=true)
                          (CR.head_beta_reduce ~delta:false 
                           (Cic.Appl [outty;k])))),k
                    | Cic.Appl (Cic.MutInd _::pl) ->
-                       let left_p,right_p = HExtlib.split_nth "R 2" leftno pl in
+                       let left_p,right_p = HExtlib.split_nth leftno pl in
                        let has_rights = right_p <> [] in
                        let k = 
                          let k = Cic.MutConstruct (uri,tyno,i,[]) in
@@ -1638,7 +1638,7 @@ and type_of_aux' ?(clean_dummy_dependent_types=true)
                              CicUniv.oblivion_ugraph 
                          with
                          | Cic.Appl (Cic.MutInd _::args),_ ->
-                             snd (HExtlib.split_nth "R 3" leftno args)
+                             snd (HExtlib.split_nth leftno args)
                          | _ -> assert false
                          with CicTypeChecker.TypeCheckerFailure _-> assert false
                        in
@@ -1694,7 +1694,7 @@ and type_of_aux' ?(clean_dummy_dependent_types=true)
                    with
                    | (Cic.MutInd _ | Cic.Meta _) as mty,_ -> [], mty
                    | Cic.Appl ((Cic.MutInd _|Cic.Meta _)::args) as mty,_ ->
-                       snd (HExtlib.split_nth "R 4" leftno args), mty
+                       snd (HExtlib.split_nth leftno args), mty
                    | _ -> assert false
                  with CicTypeChecker.TypeCheckerFailure _ -> 
                     raise (AssertFailure(lazy "already ill-typed matched term"))