X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fmathql_interpreter%2Fsub.ml;h=e59bf049d1e25fd6c05e63495f8dac59fd2b1dcb;hb=637eb6adc7e25105a7d317a280d553826f8c5369;hp=b4c65d207140d7c8e91accb3c61204dbc01a2d3a;hpb=c5e1e4d1726bd78464a7d458df3aca047749567b;p=helm.git diff --git a/helm/ocaml/mathql_interpreter/sub.ml b/helm/ocaml/mathql_interpreter/sub.ml index b4c65d207..e59bf049d 100644 --- a/helm/ocaml/mathql_interpreter/sub.ml +++ b/helm/ocaml/mathql_interpreter/sub.ml @@ -28,7 +28,7 @@ let rec sub_ex v1 v2 = match v1,v2 with [],_ -> true | _,[] -> false - | s1::tl1, s2::_ when s1 < s2 -> sub_ex tl1 v2 - | s1::_, s2::_ when s2 < s1 -> false - | s1::tl1, s2::tl2 -> (tl1,tl2) + | s1::_, s2::_ when s1 < s2 -> false + | s1::_, s2::tl2 when s2 < s1 -> sub_ex v1 tl2 + | s1::tl1, s2::tl2 -> sub_ex tl1 tl2 ;;