Debian Codegraph @

test-suite/bugs/bug_16204.v

raw
1 Set Implicit Arguments.
2 Set Universe Polymorphism.
3 Unset Universe Checking.
4
5 Class IsProp (A : Type) : Prop :=
6 irrel (x y : A) : x = y.
7
8 Class IsProofIrrel : Prop :=
9 proof_irrel (A : Prop) :: IsProp A.
10
11 Class IsPropExt : Prop :=
12 prop_ext (A B : Prop) (a : A <-> B) : A = B.
13
14 Class IsTypeExt : Prop :=
15 type_ext (A B : Type) (f : A -> B) (g : B -> A)
16 (r : forall x : A, g (f x) = x) (s : forall y : B, f (g y) = y) :
17 A = B.
18
19 Local Instance anomaly
20 `{IsProofIrrel} `{IsTypeExt} : IsPropExt.
21 Proof.
22 intros A B [f g]. eapply (type_ext f g).
23 - intros x. apply irrel.
24 - intros y. apply irrel.
25 Qed.