diff options
| author | herbelin | 2004-10-27 17:44:27 +0000 |
|---|---|---|
| committer | herbelin | 2004-10-27 17:44:27 +0000 |
| commit | d11d40bef81202f3bfea6174aece2709f069dc04 (patch) | |
| tree | a1d42c3be3090f950b183193d9cbe7502915ec0e /tactics/equality.mli | |
| parent | 95a66e52524b899cdfe3765c4b85296b82aa5416 (diff) | |
Restructuration fonctions de réécriture depuis égalité dépendante; factorisation cut_replacing
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@6261 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'tactics/equality.mli')
| -rw-r--r-- | tactics/equality.mli | 38 |
1 files changed, 36 insertions, 2 deletions
diff --git a/tactics/equality.mli b/tactics/equality.mli index 672c4014a3..f511fe6757 100644 --- a/tactics/equality.mli +++ b/tactics/equality.mli @@ -28,14 +28,24 @@ val find_eq_pattern : sorts -> sorts -> constr val general_rewrite_bindings : bool -> constr with_bindings -> tactic val general_rewrite : bool -> constr -> tactic + +(* Obsolete, use [general_rewrite_bindings l2r] val rewriteLR_bindings : constr with_bindings -> tactic val rewriteRL_bindings : constr with_bindings -> tactic +*) +(* Equivalent to [general_rewrite l2r] *) val rewriteLR : constr -> tactic val rewriteRL : constr -> tactic +(* Warning: old [general_rewrite_in] is now [general_rewrite_bindings_in] *) + +val general_rewrite_bindings_in : + bool -> identifier -> constr with_bindings -> tactic +val general_rewrite_in : + bool -> identifier -> constr -> tactic + val conditional_rewrite : bool -> tactic -> constr with_bindings -> tactic -val general_rewrite_in : bool -> identifier -> constr with_bindings -> tactic val conditional_rewrite_in : bool -> identifier -> tactic -> constr with_bindings -> tactic @@ -57,12 +67,36 @@ val dEqThen : (int -> tactic) -> quantified_hypothesis option -> tactic val make_iterated_tuple : env -> evar_map -> constr -> (constr * types) -> constr * constr * constr +(* The family cutRewriteIn expect an equality statement *) +val cutRewriteInHyp : bool -> types -> identifier -> tactic +val cutRewriteInConcl : bool -> constr -> tactic + +(* The family rewriteIn expect the proof of an equality *) +val rewriteInHyp : bool -> constr -> identifier -> tactic +val rewriteInConcl : bool -> constr -> tactic + +(* Expect the proof of an equality; fails with raw internal errors *) +val substClause : bool -> constr -> identifier option -> tactic + +(* +(* [substHypInConcl l2r id] is obsolete: use [rewriteInConcl l2r (mkVar id)] *) val substHypInConcl : bool -> identifier -> tactic + +(* [substConcl] is an obsolete synonym for [cutRewriteInConcl] *) val substConcl : bool -> constr -> tactic -val substHyp : bool -> constr -> identifier -> tactic +(* [substHyp] is an obsolete synonym of [cutRewriteInHyp] *) +val substHyp : bool -> types -> identifier -> tactic +*) + +(* Obsolete, use [rewriteInConcl lr (mkVar id)] in concl + or [rewriteInHyp lr (mkVar id) (Some hyp)] in hyp + (which, if they fail, raise only UserError, not PatternMatchingFailure) + or [substClause lr (mkVar id) None] + or [substClause lr (mkVar id) (Some hyp)] val hypSubst_LR : identifier -> clause -> tactic val hypSubst_RL : identifier -> clause -> tactic +*) val discriminable : env -> evar_map -> constr -> constr -> bool |
