Debian Codegraph @

test-suite/bugs/bug_3125.v

raw
1 (* Not considering singleton template-polymorphic inductive types as
2 propositions for injection/inversion *)
3
4 (* This is also #4560 and #6273 *)
5
6 #[universes(template)]
7 #[warnings="-no-template-universe"]
8 Inductive foo := foo_1.
9
10 Add Keep Equalities foo.
11
12 Goal forall (a b : foo), Some a = Some b -> a = b.
13 Proof.
14 intros a b H.
15 inversion H.
16 reflexivity.
17 Qed.
18
19 (* Check that Prop is not concerned *)
20
21 Inductive bar : Prop := bar_1.
22
23 Goal
24 forall (a b : bar),
25 Some a = Some b ->
26 a = b.
27 Proof.
28 intros a b H.
29 inversion H.
30 Fail reflexivity.
31 Abort.