]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_unification/cicUnification.ml
Big bug spotted: restriction can fail and it was implicitly assumed that it
[helm.git] / helm / ocaml / cic_unification / cicUnification.ml
index d50818f73461ac6a31717f181177cc4d8b5d40ca..8ba84c74c5bf4030db111b4011c632dc51cf1186 100644 (file)
@@ -52,6 +52,12 @@ let position n =
   aux 1
 ;;
  
+(*CSC: this restriction function is utterly wrong, since it does not check  *)
+(*CSC: that the variable that is going to be restricted does not occur free *)
+(*CSC: in a part of the sequent that is not going to be restricted.         *)
+(*CSC: In particular, the whole approach is wrong; if restriction can fail  *)
+(*CSC: (as indeed it is the case), we can not collect all the restrictions  *)
+(*CSC: and restrict everything at the end ;-(                               *)
 let restrict to_be_restricted =
   let rec erase i n = 
     function