test-suite/bugs/bug_1341.v
raw| 1 | Require Import Setoid. |
| 2 | |
| 3 | Section Setoid_Bug. |
| 4 | |
| 5 | Variable X:Type -> Type. |
| 6 | Variable Xeq : forall A, (X A) -> (X A) -> Prop. |
| 7 | Hypothesis Xst : forall A, Equivalence (Xeq A). |
| 8 | |
| 9 | Variable map : forall A B, (A -> B) -> X A -> X B. |
| 10 | |
| 11 | Arguments map [A B]. |
| 12 | |
| 13 | Goal forall A B (a b:X (B -> A)) (c:X A) (f:A -> B -> A), Xeq _ a b -> Xeq _ b (map f c) -> Xeq _ a (map f c). |
| 14 | intros A B a b c f Hab Hbc. |
| 15 | rewrite Hab. |
| 16 | assumption. |
| 17 | Qed. |
| 18 | |
| 19 | End Setoid_Bug. |