Debian Codegraph @

test-suite/bugs/bug_4628.v

raw
1 Module first.
2 Polymorphic Record BAR (A:Type) :=
3 { foo: A->Prop; bar: forall (x y: A), foo x -> foo y}.
4
5 Section A.
6 Context {A:Type}.
7
8 Set Printing Universes.
9
10 Hint Resolve bar.
11 Goal forall (P:BAR A) x y, foo _ P x -> foo _ P y.
12 intros.
13 eauto.
14 Qed.
15 End A.
16 End first.
17
18 Module firstbest.
19 Polymorphic Record BAR (A:Type) :=
20 { foo: A->Prop; bar: forall (x y: A), foo x -> foo y}.
21
22 Section A.
23 Context {A:Type}.
24
25 Set Printing Universes.
26
27 Polymorphic Hint Resolve bar.
28 Goal forall (P:BAR A) x y, foo _ P x -> foo _ P y.
29 intros.
30 eauto.
31 Qed.
32 End A.
33 End firstbest.
34
35 Module second.
36 Axiom foo: Set.
37 Axiom foo': Set.
38
39 Polymorphic Record BAR (A:Type) :=
40 { bar: foo' -> foo}.
41 Set Printing Universes.
42
43 Lemma baz@{i}: forall (P:BAR@{Set} nat), foo' -> foo.
44 eauto using bar.
45 Qed.
46 End second.