]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matita/contribs/lambdadelta/bin/recomm/recommGcbGroundLib.ml
update in gruound
[helm.git] / matita / matita / contribs / lambdadelta / bin / recomm / recommGcbGroundLib.ml
diff --git a/matita/matita/contribs/lambdadelta/bin/recomm/recommGcbGroundLib.ml b/matita/matita/contribs/lambdadelta/bin/recomm/recommGcbGroundLib.ml
new file mode 100644 (file)
index 0000000..94db88e
--- /dev/null
@@ -0,0 +1,17 @@
+module T = RecommTypes
+module R = RecommPcsAnd
+
+let step k st outs ins =
+  if st <> T.OO then k st outs ins else
+  match ins with
+  | "ctc" :: tl -> k T.OK ("ctc" :: outs) tl
+  | "contextual" :: "transitive" :: "closure" :: tl -> k T.OK ("ctc" :: outs) tl
+  | "compose" :: tl -> k T.OK ("compose" :: outs) tl
+  | "function" :: "composition" :: tl -> k T.OK ("compose" :: outs) tl
+  | "lsub" :: tl -> k T.OK ("lsub" :: outs) tl
+  | "land" :: tl -> k T.OK ("land" :: outs) tl
+  | "eq" :: tl -> k T.OK ("eq" :: outs) tl
+  | _ -> k T.OO outs ins
+
+let main =
+  R.register_b step