Debian Codegraph @

test-suite/bugs/bug_1634.v

raw
1 Require Export Relation_Definitions.
2 Require Export Setoid.
3
4 Parameter A : Type.
5 Parameter S : A -> Type.
6 Parameter Seq : forall {a:A}, relation (S a).
7
8 Axiom Seq_refl : forall {a:A} (x : S a), Seq x x.
9 Axiom Seq_sym : forall {a:A} (x y : S a), Seq x y -> Seq y x.
10 Axiom Seq_trans : forall {a:A} (x y z : S a), Seq x y -> Seq y z ->
11 Seq x z.
12
13 Add Parametric Relation a : (S a) Seq
14 reflexivity proved by Seq_refl
15 symmetry proved by Seq_sym
16 transitivity proved by Seq_trans
17 as S_Setoid.
18
19 Goal forall (a : A) (x y : S a), Seq x y -> Seq x y.
20 intros a x y H.
21 setoid_replace x with y.
22 reflexivity.
23 trivial.
24 Qed.