Debian Codegraph @

test-suite/bugs/bug_17576_1.v

raw
1 (* Let doesn't respect (default) Proof using *)
2
3 (* Maybe we will want to change this behaviour someday
4 but keep in mind that if we do then "bar'" should get 2 A arguments.
5 *)
6
7 Set Default Proof Using "Type".
8 Set Warnings "-opaque-let".
9
10 Section S.
11
12 Variable A : Type.
13 Variable a : A.
14
15 Let foo : A.
16 Proof. (* Default Proof Using silently ignored *)
17 exact a.
18 Qed.
19
20 Definition bar := foo.
21
22 Variable b : A.
23
24 Let foo' : A.
25 Fail Proof using a b.
26 exact b.
27 Qed.
28
29 Definition bar' := foo'.
30
31 End S.
32
33 Check bar : forall A, A -> A.
34 Check bar' : forall A, A -> A.