aboutsummaryrefslogtreecommitdiff
path: root/tactics/elim.ml
diff options
context:
space:
mode:
authorHugo Herbelin2016-01-21 01:13:56 +0100
committerHugo Herbelin2016-01-21 09:28:42 +0100
commit4b075af747f65bcd73ff1c78417cf77edf6fbd76 (patch)
treeb6bebd4953c9285d30d83c24ee86e7ba447b0d35 /tactics/elim.ml
parent3ad653b53ccbf2feb7807b4618dc9a455e9df877 (diff)
Fixing some problems with double induction.
Basically, the hypotheses were treated in an incorrect order, with a hack for sometimes put them again in the right order, resulting in failures and redundant hypotheses. Status unclear, because this new version is incompatible except in simple cases like a double induction on two "nat". Fixing the bug incidentally simplify the code, relying on the deprecation since 8.4 to allow not to ensure a compatibility (beyond the simple situation of a double induction on simple datatypes). See file induct.v for effect of changes.
Diffstat (limited to 'tactics/elim.ml')
-rw-r--r--tactics/elim.ml3
1 files changed, 1 insertions, 2 deletions
diff --git a/tactics/elim.ml b/tactics/elim.ml
index 0954f3ddf2..99236e7707 100644
--- a/tactics/elim.ml
+++ b/tactics/elim.ml
@@ -145,8 +145,7 @@ let induction_trailer abs_i abs_j bargs =
in
let ids = List.rev (ids_of_named_context hyps) in
(tclTHENLIST
- [bring_hyps hyps; tclTRY (Proofview.V82.tactic (clear ids));
- simple_elimination (mkVar id)])
+ [revert ids; simple_elimination (mkVar id)])
end }
))