Debian Codegraph @

test-suite/bugs/bug_9684.v

raw
1 Set Primitive Projections.
2
3 Record foo := mkFoo { proj1 : bool; proj2 : bool }.
4
5 Definition x := mkFoo true false.
6 Definition proj x := proj2 x.
7
8 Lemma oops : proj = fun x => proj1 x.
9 Proof. Fail native_compute; reflexivity. Abort.
10
11 (*
12 Lemma bad : False.
13 assert (proj1 x = proj x).
14 rewrite oops; reflexivity.
15 discriminate.
16 Qed.
17
18 Print Assumptions bad.
19 *)