Debian Codegraph @

test-suite/bugs/bug_18503.v

raw
1 Require Import PrimInt63.
2 Open Scope int63_scope.
3
4 Module Type T.
5 Primitive bar := #int63_sub.
6
7 Axiom bar_land : bar = land.
8 End T.
9
10 Module F(X:T).
11 Definition foo : X.bar 1 1 = 0 := eq_refl.
12 End F.
13
14 Module M.
15 Definition bar := land.
16 Definition bar_land : bar = land := eq_refl.
17 End M.
18
19 Fail Module N : T := M.
20
21 (*
22 Module A := F N.
23
24 Lemma bad : False.
25 Proof.
26 pose (f := fun x => eqb x 1).
27 assert (H:f 1 = f 0).
28 { f_equal. change 1 with (land 1 1).
29 rewrite <-N.bar_land.
30 exact A.foo. }
31 change (true = false) in H.
32 inversion H.
33 Qed.
34
35 Print Assumptions bad.
36 (* Axioms:
37 land : int -> int -> int
38 int : Set
39 eqb : int -> int -> bool
40 *)
41 *)