Skip to content

Commit e1f455b

Browse files
authored
Merge pull request #607 from proux01/coq_18590
2 parents 6441735 + fbec310 commit e1f455b

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

apps/tc/tests/bigTest.v

+11-11
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ an explicit class instead of a notation for two reasons:
384384
Using the [RelDecision], the [f] is hidden under a lambda, which prevents
385385
unnecessary evaluation. *)
386386
Class RelDecision {A B} (R : A → B → Prop) :=
387-
decide_rel x y :> Decision (R x y).
387+
decide_rel x y :: Decision (R x y).
388388
Global Hint Mode RelDecision ! ! ! : typeclass_instances.
389389
Global Arguments decide_rel {_ _} _ {_} _ _ : simpl never, assert.
390390
Notation EqDecision A := (RelDecision (=@{A})).
@@ -515,14 +515,14 @@ Definition strict {A} (R : relation A) : relation A := λ X Y, R X Y ∧ ¬R Y X
515515
Global Instance: Params (@strict) 2 := {}.
516516

517517
Class PartialOrder {A} (R : relation A) : Prop := {
518-
partial_order_pre :> PreOrder R;
519-
partial_order_anti_symm :> AntiSymm (=) R
518+
partial_order_pre :: PreOrder R;
519+
partial_order_anti_symm :: AntiSymm (=) R
520520
}.
521521
Global Hint Mode PartialOrder ! ! : typeclass_instances.
522522

523523
Class TotalOrder {A} (R : relation A) : Prop := {
524-
total_order_partial :> PartialOrder R;
525-
total_order_trichotomy :> Trichotomy (strict R)
524+
total_order_partial :: PartialOrder R;
525+
total_order_trichotomy :: Trichotomy (strict R)
526526
}.
527527
Global Hint Mode TotalOrder ! ! : typeclass_instances.
528528

@@ -1601,15 +1601,15 @@ Global Hint Mode SemiSet - ! - - - - : typeclass_instances.
16011601

16021602
Class Set_ A C `{ElemOf A C, Empty C, Singleton A C,
16031603
Union C, Intersection C, Difference C} : Prop := {
1604-
set_semi_set :> SemiSet A C;
1604+
set_semi_set :: SemiSet A C;
16051605
elem_of_intersection (X Y : C) (x : A) : x ∈ X ∩ Y ↔ x ∈ X ∧ x ∈ Y;
16061606
elem_of_difference (X Y : C) (x : A) : x ∈ X ∖ Y ↔ x ∈ X ∧ x ∉ Y
16071607
}.
16081608
Global Hint Mode Set_ - ! - - - - - - : typeclass_instances.
16091609

16101610
Class TopSet A C `{ElemOf A C, Empty C, Top C, Singleton A C,
16111611
Union C, Intersection C, Difference C} : Prop := {
1612-
top_set_set :> Set_ A C;
1612+
top_set_set :: Set_ A C;
16131613
elem_of_top' (x : A) : x ∈@{C} ⊤; (* We prove [elem_of_top : x ∈@{C} ⊤ ↔ True]
16141614
in [sets.v], which is more convenient for rewriting. *)
16151615
}.
@@ -1650,7 +1650,7 @@ Qed.
16501650
anyway so as to avoid cycles in type class search. *)
16511651
Class FinSet A C `{ElemOf A C, Empty C, Singleton A C, Union C,
16521652
Intersection C, Difference C, Elements A C, EqDecision A} : Prop := {
1653-
fin_set_set :> Set_ A C;
1653+
fin_set_set :: Set_ A C;
16541654
elem_of_elements (X : C) x : x ∈ elements X ↔ x ∈ X;
16551655
NoDup_elements (X : C) : NoDup (elements X)
16561656
}.
@@ -1674,7 +1674,7 @@ in a type constructor of type [Type → Type]. *)
16741674
Class MonadSet M `{∀ A, ElemOf A (M A),
16751675
∀ A, Empty (M A), ∀ A, Singleton A (M A), ∀ A, Union (M A),
16761676
!MBind M, !MRet M, !FMap M, !MJoin M} : Prop := {
1677-
monad_set_semi_set A :> SemiSet A (M A);
1677+
monad_set_semi_set A :: SemiSet A (M A);
16781678
elem_of_bind {A B} (f : A → M B) (X : M A) (x : B) :
16791679
x ∈ X ≫= f ↔ ∃ y, x ∈ f y ∧ y ∈ X;
16801680
elem_of_ret {A} (x y : A) : x ∈@{M A} mret y ↔ x = y;
@@ -1705,9 +1705,9 @@ Global Instance: Params (@fresh) 3 := {}.
17051705
Global Arguments fresh : simpl never.
17061706

17071707
Class Infinite A := {
1708-
infinite_fresh :> Fresh A (list A);
1708+
infinite_fresh :: Fresh A (list A);
17091709
infinite_is_fresh (xs : list A) : fresh xs ∉ xs;
1710-
infinite_fresh_Permutation :> Proper (@Permutation A ==> (=)) fresh;
1710+
infinite_fresh_Permutation :: Proper (@Permutation A ==> (=)) fresh;
17111711
}.
17121712
Global Hint Mode Infinite ! : typeclass_instances.
17131713
Global Arguments infinite_fresh : simpl never.

0 commit comments

Comments
 (0)