| 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 |
{ |
| 12 |
|
| 13 |
open Ltac_plugin |
| 14 |
open Stdarg |
| 15 |
open Tacarg |
| 16 |
|
| 17 |
let locality = Zify.zify_register_locality |
| 18 |
|
| 19 |
} |
| 20 |
|
| 21 |
DECLARE PLUGIN "rocq-runtime.plugins.zify" |
| 22 |
|
| 23 |
VERNAC COMMAND EXTEND DECLAREINJECTION CLASSIFIED AS SIDEFF |
| 24 |
| #[ locality ] ["Add" "Zify" "InjTyp" reference(t) ] -> { Zify.InjTable.register locality t } |
| 25 |
| #[ locality ] ["Add" "Zify" "BinOp" reference(t) ] -> { Zify.BinOp.register locality t } |
| 26 |
| #[ locality ] ["Add" "Zify" "UnOp" reference(t) ] -> { Zify.UnOp.register locality t } |
| 27 |
| #[ locality ] ["Add" "Zify" "CstOp" reference(t) ] -> { Zify.CstOp.register locality t } |
| 28 |
| #[ locality ] ["Add" "Zify" "BinRel" reference(t) ] -> { Zify.BinRel.register locality t } |
| 29 |
| #[ locality ] ["Add" "Zify" "PropOp" reference(t) ] -> { Zify.PropBinOp.register locality t } |
| 30 |
| #[ locality ] ["Add" "Zify" "PropBinOp" reference(t) ] -> { Zify.PropBinOp.register locality t } |
| 31 |
| #[ locality ] ["Add" "Zify" "PropUOp" reference(t) ] -> { Zify.PropUnOp.register locality t } |
| 32 |
| #[ locality ] ["Add" "Zify" "BinOpSpec" reference(t) ] -> { Zify.BinOpSpec.register locality t } |
| 33 |
| #[ locality ] ["Add" "Zify" "UnOpSpec" reference(t) ] -> { Zify.UnOpSpec.register locality t } |
| 34 |
| #[ locality ] ["Add" "Zify" "Saturate" reference(t) ] -> { Zify.Saturate.register locality t } |
| 35 |
END |
| 36 |
|
| 37 |
TACTIC EXTEND ITER |
| 38 |
| [ "zify_iter_specs"] -> { Zify.iter_specs} |
| 39 |
END |
| 40 |
|
| 41 |
TACTIC EXTEND TRANS |
| 42 |
| [ "zify_op" ] -> { Zify.zify_tac } |
| 43 |
| [ "zify_saturate" ] -> { Zify.saturate } |
| 44 |
| [ "zify_iter_let" tactic(t)] -> { Zify.iter_let t } |
| 45 |
| [ "zify_elim_let" ] -> { Zify.elim_let } |
| 46 |
END |
| 47 |
|
| 48 |
VERNAC COMMAND EXTEND ZifyPrint CLASSIFIED AS SIDEFF |
| 49 |
|[ "Show" "Zify" "InjTyp" ] -> { Zify.InjTable.print () } |
| 50 |
|[ "Show" "Zify" "BinOp" ] -> { Zify.BinOp.print () } |
| 51 |
|[ "Show" "Zify" "UnOp" ] -> { Zify.UnOp.print () } |
| 52 |
|[ "Show" "Zify" "CstOp"] -> { Zify.CstOp.print () } |
| 53 |
|[ "Show" "Zify" "BinRel"] -> { Zify.BinRel.print () } |
| 54 |
|[ "Show" "Zify" "UnOpSpec"] -> { Zify.UnOpSpec.print() } |
| 55 |
|[ "Show" "Zify" "BinOpSpec"] -> { Zify.BinOpSpec.print() } |
| 56 |
END |