]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/mathql_interpreter/meet.ml
Debugging better Sub and Meet.
[helm.git] / helm / ocaml / mathql_interpreter / meet.ml
index 53a75ccb184895dfb9188d5ccb6ee87127f72ed0..c5921aaf92cf60999f2d23fb054241524b7a0ce9 100644 (file)
@@ -28,5 +28,7 @@ let rec meet_ex v1 v2 =
   match v1,v2 with
     [],_ 
   | _,[] -> false
-  | s::tl,l -> if List.mem s l then true
-               else meet_ex tl l      
+  | s1::tl1, s2::_ when s1 < s2 -> meet_ex tl1 v2
+  | s1::_, s2::tl2 when s2 < s1 -> false
+  | _, _-> true
+;;