Debian Codegraph @

test-suite/bugs/bug_13618.v

raw
1 Require Import Setoid CRelationClasses CMorphisms.
2
3 Definition equiv@{i} (A B : Type@{i}) : Type@{i} :=
4 iffT A B.
5
6 Section Equiv.
7
8 Hypothesis equiv_equiv : Equivalence equiv.
9 Hypothesis equiv_sum : Proper (equiv ==> equiv ==> equiv) sum.
10
11 Goal forall X, equiv X bool -> equiv (unit + unit) X.
12 Proof.
13 intros X H.
14 rewrite H.
15 Abort.
16
17 Definition sum' : Type -> Type -> Type := sum.
18
19 Hypothesis equiv_sum' : Proper (equiv ==> equiv ==> equiv) sum'.
20
21 Goal forall X, equiv X (bool : Type) -> equiv (sum' X X) X.
22 Proof.
23 intros X H. rewrite H.
24 Abort.
25
26 End Equiv.