]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/bin/recomm/recommGcsMain.ml
update in ground
[helm.git] / matita / matita / contribs / lambdadelta / bin / recomm / recommGcsMain.ml
index 82905b8406570b6ea0138d7515daeb15a7e16f47..d308df8dbaa55a604fdef8fa33eb6a59ba0d6166 100644 (file)
@@ -1,19 +1,24 @@
+module T = RecommTypes
+module R = RecommCheck
 module D = RecommGcsAttr
 
-let step k ok outs ins =
-  if ok then k ok outs ins else
+let step k st outs ins =
+  if st = T.KO then k st outs ins else
   match ins with
-  | "eliminations" :: tl -> k ok ("eliminations" :: outs) tl
-  | "eliminators" :: tl -> k ok ("eliminations" :: outs) tl
-  | "destructions" :: tl -> k ok ("destructions" :: outs) tl
-  | "forward" :: "properties" :: tl -> k ok ("destructions" :: outs) tl
-  | "forward" :: "lemmas" :: tl -> k ok ("destructions" :: outs) tl
-  | "inversions" :: tl -> k ok ("inversions" :: outs) tl
-  | "inversion" :: "properties" :: tl -> k ok ("inversions" :: outs) tl
-  | "inversion" :: "lemmas" :: tl -> k ok ("inversions" :: outs) tl
-  | "constructions" :: tl -> k ok ("constructions" :: outs) tl
-  | "properties" :: tl -> k ok ("constructions" :: outs) tl
-  | _ -> k true outs ins
+  | "iterators" :: tl -> k T.OK ("iterators" :: outs) tl
+  | "eliminations" :: tl -> k T.OK ("eliminations" :: outs) tl
+  | "eliminators" :: tl -> k T.OK ("eliminations" :: outs) tl
+  | "equalities" :: tl -> k T.OK ("equalities" :: outs) tl
+  | "destructions" :: tl -> k T.OK ("destructions" :: outs) tl
+  | "forward" :: "properties" :: tl -> k T.OK ("destructions" :: outs) tl
+  | "forward" :: "lemmas" :: tl -> k T.OK ("destructions" :: outs) tl
+  | "inversions" :: tl -> k T.OK ("inversions" :: outs) tl
+  | "inversion" :: "properties" :: tl -> k T.OK ("inversions" :: outs) tl
+  | "inversion" :: "lemmas" :: tl -> k T.OK ("inversions" :: outs) tl
+  | "inversion" :: tl -> k T.OK ("inversions" :: outs) tl
+  | "constructions" :: tl -> k T.OK ("constructions" :: outs) tl
+  | "properties" :: tl -> k T.OK ("constructions" :: outs) tl
+  | _ -> k T.KO outs ins
 
 let main =
-  RecommCheck.register_s step
+  R.register_s step