diff options
author | 2008-03-08 14:52:02 +0000 | |
---|---|---|
committer | 2008-03-08 14:52:02 +0000 | |
commit | 6164aabc75035ca21474b51ceab4e25d47395ff7 (patch) | |
tree | ebbd1dacc3ee8feb9c86a1e8edf6518ae8cf5e86 /test-suite/success/setoid_test.v | |
parent | 16ae29315ae0f88c4926b97f8fe22bffe65aa3e1 (diff) |
Fix bugs that were reopened due to the change of setoid
implementation. Mostly syntax changes when declaring parametric
relations, but also some declarations were relying on "default"
relations on some carrier. Added a new DefaultRelation type class that
allows to do that, falling back to the last declared Equivalence
relation by default. This will be bound to Add Relation in the next
commit.
Also, move the "left" and "right" notations in Program.Utils to "in_left" and
"in_right" to avoid clashes with existing scripts.
Minor change to record to allow choosing the name of the argument for
the record in projections to avoid possible incompatibilities.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@10639 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'test-suite/success/setoid_test.v')
-rw-r--r-- | test-suite/success/setoid_test.v | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test-suite/success/setoid_test.v b/test-suite/success/setoid_test.v index e99b3c19b..2be1500f4 100644 --- a/test-suite/success/setoid_test.v +++ b/test-suite/success/setoid_test.v @@ -110,9 +110,9 @@ Definition id: Set -> Set := fun A => A. Definition rel : forall A : Set, relation (id A) := @eq. Definition f: forall A : Set, A -> A := fun A x => x. -Add Relation id rel as eq_rel. +Instance DefaultRelation (id A) (rel A). -Add Morphism f with signature rel ++> rel as f_morph. +Add Morphism (@f A) : f_morph. Proof. unfold rel, f. trivial. Qed. |