Debian Codegraph @

test-suite/output/subst.v

raw
1 (* Ensure order of hypotheses is respected after "subst" *)
2
3 Abbreviation goal :=
4 (forall x y z, x = 0 -> y = 0 -> z = 0 -> x = 1 -> True -> x = 2 -> y = 3 -> True -> z = 4 -> True)
5 (only parsing).
6
7 Ltac do_intros := intros * Hx Hy Hz H1 HA H2 H3 HB H4.
8
9 Goal goal.
10 do_intros.
11 (* From now on, the order after subst is consistently H1, HA, H2, H3, HB, H4 *)
12 subst x.
13 (* In 8.4 or 8.5 without regular subst tactic mode, the order was HA, H3, HB, H4, H1, H2 *)
14 Show.
15 Abort.
16
17 Goal goal.
18 do_intros.
19 subst y.
20 (* In 8.4 or 8.5 without regular subst tactic mode, the order was H1, HA, H2, HB, H4, H3 *)
21 Show.
22 Abort.
23
24 Goal goal.
25 do_intros.
26 subst z.
27 (* In 8.4 or 8.5 without regular subst tactic mode, the order was H1, HA, H2, H3, HB, H4 *)
28 Show.
29 Abort.
30
31 Goal goal.
32 do_intros.
33 subst.
34 (* In 8.4 or 8.5 without regular subst tactic mode, the order was HA, HB, H4, H3, H1, H2 *)
35 (* In 8.5pl0 and 8.5pl1 with regular subst tactic mode, the order was HA, HB, H1, H2, H3, H4 *)
36 Show.
37 trivial.
38 Qed.