| 1 |
(************************************************************************) |
| 2 |
(* * The Rocq Prover / The Rocq Development Team *) |
| 3 |
(* v * Copyright INRIA, CNRS and contributors *) |
| 4 |
(* <O___,, * (see version control and CREDITS file for authors & dates) *) |
| 5 |
(* \VV/ **************************************************************) |
| 6 |
(* // * This file is distributed under the terms of the *) |
| 7 |
(* * GNU Lesser General Public License Version 2.1 *) |
| 8 |
(* * (see LICENSE file for the text of the license) *) |
| 9 |
(************************************************************************) |
| 10 |
(* *) |
| 11 |
(* Micromega: A reflexive tactic using the Positivstellensatz *) |
| 12 |
(* *) |
| 13 |
(* * Mappings from Rocq tactics to Caml function calls *) |
| 14 |
(* *) |
| 15 |
(* Frédéric Besson (Irisa/Inria) 2006-2008 *) |
| 16 |
(* *) |
| 17 |
(************************************************************************) |
| 18 |
|
| 19 |
{ |
| 20 |
|
| 21 |
open Ltac_plugin |
| 22 |
open Stdarg |
| 23 |
open Tacarg |
| 24 |
|
| 25 |
} |
| 26 |
|
| 27 |
DECLARE PLUGIN "rocq-runtime.plugins.micromega" |
| 28 |
|
| 29 |
TACTIC EXTEND Lra_Q |
| 30 |
| [ "xlra_Q" tactic(t) ] -> { Coq_micromega.xlra_Q (Tacinterp.tactic_of_value ist t) } |
| 31 |
END |
| 32 |
|
| 33 |
TACTIC EXTEND Lra_wit_Q |
| 34 |
| [ "wlra_Q" ident(w) constr(t) ] -> { Coq_micromega.wlra_Q w t } |
| 35 |
END |
| 36 |
|
| 37 |
TACTIC EXTEND Lra_R |
| 38 |
| [ "xlra_R" tactic(t) ] -> { Coq_micromega.xlra_R (Tacinterp.tactic_of_value ist t) } |
| 39 |
END |
| 40 |
|
| 41 |
TACTIC EXTEND Lia |
| 42 |
| [ "xlia" tactic(t) ] -> { Coq_micromega.xlia (Tacinterp.tactic_of_value ist t) } |
| 43 |
END |
| 44 |
|
| 45 |
TACTIC EXTEND Lia_wit |
| 46 |
| [ "wlia" ident(w) constr(t) ] -> { Coq_micromega.wlia w t } |
| 47 |
END |
| 48 |
|
| 49 |
TACTIC EXTEND Nra_Q |
| 50 |
| [ "xnra_Q" tactic(t) ] -> { Coq_micromega.xnra_Q (Tacinterp.tactic_of_value ist t) } |
| 51 |
END |
| 52 |
|
| 53 |
TACTIC EXTEND Nra_wit_Q |
| 54 |
| [ "wnra_Q" ident(w) constr(t) ] -> { Coq_micromega.wnra_Q w t } |
| 55 |
END |
| 56 |
|
| 57 |
TACTIC EXTEND Nra_R |
| 58 |
| [ "xnra_R" tactic(t) ] -> { Coq_micromega.xnra_R (Tacinterp.tactic_of_value ist t) } |
| 59 |
END |
| 60 |
|
| 61 |
TACTIC EXTEND Nia |
| 62 |
| [ "xnia" tactic(t) ] -> { Coq_micromega.xnia (Tacinterp.tactic_of_value ist t) } |
| 63 |
END |
| 64 |
|
| 65 |
TACTIC EXTEND Nia_wit |
| 66 |
| [ "wnia" ident(w) constr(t) ] -> { Coq_micromega.wnia w t } |
| 67 |
END |
| 68 |
|
| 69 |
TACTIC EXTEND Sos_Z |
| 70 |
| [ "xsos_Z" tactic(t) ] -> { Coq_micromega.xsos_Z (Tacinterp.tactic_of_value ist t) } |
| 71 |
END |
| 72 |
|
| 73 |
TACTIC EXTEND Sos_wit_Z |
| 74 |
| [ "wsos_Z" ident(w) constr(t) ] -> { Coq_micromega.wsos_Z w t } |
| 75 |
END |
| 76 |
|
| 77 |
TACTIC EXTEND Sos_Q |
| 78 |
| [ "xsos_Q" tactic(t) ] -> { Coq_micromega.xsos_Q (Tacinterp.tactic_of_value ist t) } |
| 79 |
END |
| 80 |
|
| 81 |
TACTIC EXTEND Sos_wit_Q |
| 82 |
| [ "wsos_Q" ident(w) constr(t) ] -> { Coq_micromega.wsos_Q w t } |
| 83 |
END |
| 84 |
|
| 85 |
TACTIC EXTEND Sos_R |
| 86 |
| [ "xsos_R" tactic(t) ] -> { Coq_micromega.xsos_R (Tacinterp.tactic_of_value ist t) } |
| 87 |
END |
| 88 |
|
| 89 |
TACTIC EXTEND Psatz_Z |
| 90 |
| [ "xpsatz_Z" nat_or_var(i) tactic(t) ] -> |
| 91 |
{ Coq_micromega.xpsatz_Z i (Tacinterp.tactic_of_value ist t) } |
| 92 |
END |
| 93 |
|
| 94 |
TACTIC EXTEND Psatz_wit_Z |
| 95 |
| [ "wpsatz_Z" nat_or_var(i) ident(w) constr(t) ] -> { Coq_micromega.wpsatz_Z i w t } |
| 96 |
END |
| 97 |
|
| 98 |
TACTIC EXTEND Psatz_Q |
| 99 |
| [ "xpsatz_Q" nat_or_var(i) tactic(t) ] -> |
| 100 |
{ Coq_micromega.xpsatz_Q i (Tacinterp.tactic_of_value ist t) } |
| 101 |
END |
| 102 |
|
| 103 |
TACTIC EXTEND Psatz_wit_Q |
| 104 |
| [ "wpsatz_Q" nat_or_var(i) ident(w) constr(t) ] -> { Coq_micromega.wpsatz_Q i w t } |
| 105 |
END |
| 106 |
|
| 107 |
TACTIC EXTEND Psatz_R |
| 108 |
| [ "xpsatz_R" nat_or_var(i) tactic(t) ] -> |
| 109 |
{ Coq_micromega.xpsatz_R i (Tacinterp.tactic_of_value ist t) } |
| 110 |
END |
| 111 |
|
| 112 |
VERNAC COMMAND EXTEND ShowLiaProfile CLASSIFIED AS QUERY |
| 113 |
| [ "Show" "Lia" "Profile" ] -> { Coq_micromega.print_lia_profile () } |
| 114 |
END |