diff options
| author | Hugo Herbelin | 2016-01-21 01:13:56 +0100 |
|---|---|---|
| committer | Hugo Herbelin | 2016-01-21 09:28:42 +0100 |
| commit | 4b075af747f65bcd73ff1c78417cf77edf6fbd76 (patch) | |
| tree | b6bebd4953c9285d30d83c24ee86e7ba447b0d35 /tactics/elim.ml | |
| parent | 3ad653b53ccbf2feb7807b4618dc9a455e9df877 (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.ml | 3 |
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 } )) |
