blob: 259b5d4b5ddaf84c8549c540f35066488ac55a3e (
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
|
(************************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * CNRS-Ecole Polytechnique-INRIA Futurs-Universite Paris Sud *)
(* \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 *)
(* *)
(* Frédéric Besson (Irisa/Inria) 2006-2008 *)
(* *)
(************************************************************************)
(*i camlp4deps: "parsing/grammar.cma" i*)
(* $Id: g_micromega.ml4 10947 2008-05-19 19:10:40Z herbelin $ *)
open Quote
open Ring
open Mutils
open Rawterm
open Util
let out_arg = function
| ArgVar _ -> anomaly "Unevaluated or_var variable"
| ArgArg x -> x
TACTIC EXTEND Micromega
| [ "micromegap" int_or_var(i) ] -> [ Coq_micromega.micromega (out_arg i) ]
| [ "micromegap" ] -> [ Coq_micromega.micromega (-1) ]
END
TACTIC EXTEND Sos
[ "sosp" ] -> [ Coq_micromega.sos]
END
TACTIC EXTEND Omicron
[ "omicronp" ] -> [ Coq_micromega.omicron]
END
TACTIC EXTEND QOmicron
[ "qomicronp" ] -> [ Coq_micromega.qomicron]
END
TACTIC EXTEND ZOmicron
[ "zomicronp" ] -> [ Coq_micromega.zomicron]
END
TACTIC EXTEND ROmicron
[ "romicronp" ] -> [ Coq_micromega.romicron]
END
TACTIC EXTEND RMicromega
| [ "rmicromegap" int_or_var(i) ] -> [ Coq_micromega.rmicromega (out_arg i) ]
| [ "rmicromegap" ] -> [ Coq_micromega.rmicromega (-1) ]
END
|