aboutsummaryrefslogtreecommitdiffhomepage
path: root/plugins/micromega/g_micromega.ml4
blob: e6b5cc60d401273224464a74b3f7d84e4a9932a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
(************************************************************************)
(*  v      *   The Coq Proof Assistant  /  The Coq Development Team     *)
(* <O___,, *   INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2016     *)
(*   \VV/  **************************************************************)
(*    //   *      This file is distributed under the terms of the       *)
(*         *       GNU Lesser General Public License Version 2.1        *)
(************************************************************************)
(*                                                                      *)
(* Micromega: A reflexive tactic using the Positivstellensatz           *)
(*                                                                      *)
(* * Mappings from Coq tactics to Caml function calls                   *)
(*                                                                      *)
(*  Frédéric Besson (Irisa/Inria) 2006-2008			        *)
(*                                                                      *)
(************************************************************************)

(*i camlp4deps: "grammar/grammar.cma" i*)

open Constrarg

DECLARE PLUGIN "micromega_plugin"

TACTIC EXTEND PsatzZ
| [ "psatz_Z" int_or_var(i) ] -> [  (Coq_micromega.psatz_Z i) ]
| [ "psatz_Z" ] -> [  (Coq_micromega.psatz_Z (-1)) ]
END

TACTIC EXTEND Lia
[ "xlia"  ] -> [   (Coq_micromega.xlia) ]
END

TACTIC EXTEND Nia
[ "xnlia"  ] -> [  (Coq_micromega.xnlia) ]
END

TACTIC EXTEND NRA
[ "xnra"  ] -> [  (Coq_micromega.nra)]
END

TACTIC EXTEND Sos_Z
| [ "sos_Z" ] -> [ (Coq_micromega.sos_Z) ]
   END

TACTIC EXTEND Sos_Q
| [ "sos_Q" ] -> [   (Coq_micromega.sos_Q) ]
   END

TACTIC EXTEND Sos_R
| [ "sos_R" ] -> [   (Coq_micromega.sos_R) ]
END

TACTIC EXTEND LRA_Q
[ "psatzl_Q"  ] -> [   (Coq_micromega.psatzl_Q) ]
END

TACTIC EXTEND LRA_R
[ "psatzl_R"  ] -> [   (Coq_micromega.psatzl_R) ]
END

TACTIC EXTEND PsatzR
| [ "psatz_R" int_or_var(i) ] -> [   (Coq_micromega.psatz_R i) ]
| [ "psatz_R" ] -> [   (Coq_micromega.psatz_R (-1)) ]
END

TACTIC EXTEND PsatzQ
| [ "psatz_Q" int_or_var(i) ] -> [  (Coq_micromega.psatz_Q i) ]
| [ "psatz_Q" ] -> [  (Coq_micromega.psatz_Q (-1)) ]
END