Debian Codegraph @

test-suite/bugs/bug_10298.v

raw
1 Set Implicit Arguments.
2
3 Generalizable Variables A.
4
5 Parameter val : Type.
6
7 Class Enc (A:Type) :=
8 make_Enc { enc : A -> val }.
9
10 Global Instance Enc_dummy : Enc unit.
11 Admitted.
12
13 Definition FORM := forall A (EA:Enc A) (Q:A->Prop), Prop.
14
15 Axiom FORM_intro : forall F : FORM, F unit Enc_dummy (fun _ : unit => True).
16
17 Definition IDF (F:FORM) : FORM := F.
18
19 Parameter ID : forall (G:Prop), G -> G.
20
21 Parameter EID : forall A (EA:Enc A) (F:FORM) (Q:A->Prop),
22 F _ _ Q ->
23 F _ _ Q.
24
25 Lemma bla : forall F,
26 (forall A (EA:Enc A), IDF F EA (fun (X:A) => True) -> True) ->
27 True.
28 Proof.
29 intros F M.
30 notypeclasses refine (M _ _ _).
31 notypeclasses refine (EID _ _ _ _).
32 eapply (ID _).
33 Unshelve.
34 + apply FORM_intro.
35 Qed.