]> matita.cs.unibo.it Git - helm.git/commitdiff
leftno should be increased of the expnamedsubst, but counting only the uris of vars...
authorEnrico Tassi <enrico.tassi@inria.fr>
Mon, 14 Apr 2008 14:48:14 +0000 (14:48 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Mon, 14 Apr 2008 14:48:14 +0000 (14:48 +0000)
helm/software/components/ng_kernel/oCic2NCic.ml

index d66f45bd1f821c8da4c202bcfac1788b970c3ed1..4aaeb414c4d8330e70b6dc4cd3d224981b254f66 100644 (file)
@@ -632,7 +632,14 @@ let convert_obj_aux uri = function
             ([], name, ty, cl)::itl, fix_ty @ fix_cl @ acc)
          itl ([],[])
      in
-     NCic.Inductive(ind, leftno + List.length vars, itl, (`Provided, `Regular)),
+     NCic.Inductive(ind, leftno + List.length 
+       (List.filter (fun v -> 
+          match fst (CicEnvironment.get_obj CicUniv.oblivion_ugraph v) with
+             Cic.Variable (_,Some _,_,_,_) -> false
+           | Cic.Variable (_,None,_,_,_) -> true
+           | _ -> assert false)
+          vars)
+       , itl, (`Provided, `Regular)),
      fix_itl
  | Cic.Variable _ 
  | Cic.CurrentProof _ -> assert false