diff options
| author | sacerdot | 2004-09-03 09:33:02 +0000 |
|---|---|---|
| committer | sacerdot | 2004-09-03 09:33:02 +0000 |
| commit | fbdd94e527d4b3824bffb663a2cef6f300192396 (patch) | |
| tree | c015237f226465d884e8148a1c018d221ff04efd /tactics | |
| parent | 8fb7ef8984de20f1b6adbc5f438bd6cfcf4d1ed0 (diff) | |
New command "Add Relation ..." (for the new implementation of setoid_*).
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@6048 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'tactics')
| -rw-r--r-- | tactics/extratactics.ml4 | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/tactics/extratactics.ml4 b/tactics/extratactics.ml4 index 7cc6cd5bd7..694e88801c 100644 --- a/tactics/extratactics.ml4 +++ b/tactics/extratactics.ml4 @@ -174,10 +174,24 @@ TACTIC EXTEND SetoidRewrite END VERNAC COMMAND EXTEND AddSetoid -| [ "Add" "Setoid" constr(a) constr(aeq) constr(t) ] -> [ add_setoid a aeq t ] + [ "Add" "Setoid" constr(a) constr(aeq) constr(t) ] -> [ add_setoid a aeq t ] | [ "Add" "Morphism" constr(m) ":" ident(s) ] -> [ new_named_morphism s m ] END +VERNAC COMMAND EXTEND AddRelation1 + [ "Add" "Relation" constr(a) constr(aeq) "reflexivity" "proved" "by" constr(t) "symmetry" "proved" "by" constr(t')] -> + [ add_relation a aeq (Some t) (Some t') ] +| [ "Add" "Relation" constr(a) constr(aeq) "reflexivity" "proved" "by" constr(t) ] -> + [ add_relation a aeq (Some t) None ] +| [ "Add" "Relation" constr(a) constr(aeq) ] -> + [ add_relation a aeq None None ] +END + +VERNAC COMMAND EXTEND AddRelation2 + [ "Add" "Relation" constr(a) constr(aeq) "symmetry" "proved" "by" constr(t')] -> + [ add_relation a aeq None (Some t') ] +END + (* Inversion lemmas (Leminv) *) open Inv |
