diff options
author | msozeau <msozeau@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2007-07-02 12:38:33 +0000 |
---|---|---|
committer | msozeau <msozeau@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2007-07-02 12:38:33 +0000 |
commit | 7347565231d027255f4d24d7daff06cc07c5e5c9 (patch) | |
tree | ec0173673ae601863f70d7a1443cd2bb367c573e /contrib/subtac/SubtacTactics.v | |
parent | 0bd7be45957ae556074aa5a12bdc66df1726065a (diff) |
Better handling of aliases, add command to solve a particular obligation.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@9929 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'contrib/subtac/SubtacTactics.v')
-rw-r--r-- | contrib/subtac/SubtacTactics.v | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/contrib/subtac/SubtacTactics.v b/contrib/subtac/SubtacTactics.v index d38902c96..7e66369f6 100644 --- a/contrib/subtac/SubtacTactics.v +++ b/contrib/subtac/SubtacTactics.v @@ -142,3 +142,19 @@ Ltac elim_eq_rect := try ((case P ; clear P) || (clearbody P; rewrite (UIP_refl _ _ P); clear P)) end end. + +Ltac real_elim_eq_rect := + match goal with + | [ |- ?t ] => + match t with + | context [ @eq_rect _ _ _ _ _ ?p ] => + let P := fresh "P" in + set (P := p); simpl in P ; + ((case P ; clear P) || (clearbody P; rewrite (UIP_refl _ _ P); clear P)) + | context [ @eq_rect _ _ _ _ _ ?p _ ] => + let P := fresh "P" in + set (P := p); simpl in P ; + ((case P ; clear P) || (clearbody P; rewrite (UIP_refl _ _ P); clear P)) + end + end. +
\ No newline at end of file |