]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_unification/freshNamesGenerator.ml
- the result of a refinement is now cleared from dummy dependent types
[helm.git] / helm / ocaml / cic_unification / freshNamesGenerator.ml
index 3664b4a72473008ec526a83049df98ae0922b340..80a26888f320b0e10a2a1723715fe1f52a0c75f2 100644 (file)
@@ -69,7 +69,7 @@ let clean_dummy_dependent_types t =
  let module C = Cic in
   let rec aux k =
    function
-      C.Rel m as t -> t,[m - k]
+      C.Rel m as t -> t,[k - m]
     | C.Var (uri,exp_named_subst) ->
        let exp_named_subst',rels = 
         List.fold_right