Debian Codegraph @

test-suite/bugs/bug_15448.v

raw
1 Lemma bar (a b:unit) (H0: a = b) (H: a = b) : a = b.
2 Proof.
3 Fail rewrite (match a,b return _ -> a = b with tt, tt => fun _ => eq_refl end H) in H,H0.
4 Fail rewrite (match a,b return _ -> a = b with tt, tt => fun _ => eq_refl end H0) in H,H0.
5 rewrite (match a,b return _ -> a = b with tt, tt => fun _ => eq_refl end H) in H0.
6 Check H0 : b = b.
7 Check H : a = b.
8 destruct a,b;reflexivity.
9 Defined.
10
11 Lemma bar' (a b:unit) (H0: a = b) (H: a = b) : a = b.
12 Proof.
13 rewrite (match a,b return _ -> a = b with tt, tt => fun _ => eq_refl end H) in *.
14 Check H0 : b = b.
15 Check H : a = b.
16 destruct a,b;reflexivity.
17 Defined.
18
19 Lemma bar'' (a b:unit) (H0: a = b) (H: a = b) : a = b.
20 Proof.
21 unshelve erewrite (_: a = b) in *.
22 { Fail revert H. destruct a,b;reflexivity. }
23 destruct a,b;reflexivity.
24 Defined.