@@ -17,8 +17,8 @@ Based on this, we define the quotient of lists by the rotation relation, called
1717
1818We also define a representation of concrete cycles, available when viewing them in a goal state or
1919via `#eval`, when over representatble types. For example, the cycle `(2 1 4 3)` will be shown
20- as `c[1, 4, 3, 2 ]`. The representation of the cycle sorts the elements by the string value of the
21- underlying element. This representation also supports cycles that can contain duplicates .
20+ as `c[2, 1, 4, 3]`. Two equal cycles may be printed differently if their internal representation
21+ is different .
2222
2323-/
2424
@@ -728,12 +728,12 @@ end decidable
728728
729729/--
730730We define a representation of concrete cycles, available when viewing them in a goal state or
731- via `#eval`, when over representatble types. For example, the cycle `(2 1 4 3)` will be shown
732- as `c[1, 4, 3, 2 ]`. The representation of the cycle sorts the elements by the string value of the
733- underlying element. This representation also supports cycles that can contain duplicates .
731+ via `#eval`, when over representable types. For example, the cycle `(2 1 4 3)` will be shown
732+ as `c[2, 1, 4, 3]`. Two equal cycles may be printed differently if their internal representation
733+ is different .
734734-/
735- instance [has_repr α] : has_repr (cycle α) :=
736- ⟨λ s, " c[" ++ string.intercalate " , " ((s.map repr).lists.sort (≤) ).head ++ " ]" ⟩
735+ meta instance [has_repr α] : has_repr (cycle α) :=
736+ ⟨λ s, " c[" ++ string.intercalate " , " ((s.map repr).lists.unquot ).head ++ " ]" ⟩
737737
738738/-- `chain R s` means that `R` holds between adjacent elements of `s`.
739739
0 commit comments