From 5b7eafd0f00a16d78f99a27f5c7d5a0de77dc7e6 Mon Sep 17 00:00:00 2001 From: Stephane Glondu Date: Wed, 21 Jul 2010 09:46:51 +0200 Subject: Imported Upstream snapshot 8.3~beta0+13298 --- plugins/omega/g_omega.ml4 | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 plugins/omega/g_omega.ml4 (limited to 'plugins/omega/g_omega.ml4') diff --git a/plugins/omega/g_omega.ml4 b/plugins/omega/g_omega.ml4 new file mode 100644 index 00000000..3bfdce7f --- /dev/null +++ b/plugins/omega/g_omega.ml4 @@ -0,0 +1,47 @@ +(************************************************************************) +(* v * The Coq Proof Assistant / The Coq Development Team *) +(* Tacinterp.interp <:tactic> + | "positive" -> Tacinterp.interp <:tactic> + | "N" -> Tacinterp.interp <:tactic> + | "Z" -> Tacinterp.interp <:tactic> + | s -> Util.error ("No Omega knowledge base for type "^s)) + (Util.list_uniquize (List.sort compare l)) + in + tclTHEN + (tclREPEAT (tclPROGRESS (tclTHENLIST tacs))) + omega_solver + + +TACTIC EXTEND omega +| [ "omega" ] -> [ omega_tactic [] ] +END + +TACTIC EXTEND omega' +| [ "omega" "with" ne_ident_list(l) ] -> + [ omega_tactic (List.map Names.string_of_id l) ] +| [ "omega" "with" "*" ] -> [ omega_tactic ["nat";"positive";"N";"Z"] ] +END + -- cgit v1.2.3