Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - chore: add a Repr for Sym2 #14251

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Mathlib/Data/Sym/Sym2.lean
Original file line number Diff line number Diff line change
Expand Up @@ -764,4 +764,8 @@ instance [IsEmpty α] : IsEmpty (Sym2 α) :=
instance [Nontrivial α] : Nontrivial (Sym2 α) :=
diag_injective.nontrivial

-- TODO: use a sort order if available, gh-18166
eric-wieser marked this conversation as resolved.
Show resolved Hide resolved
unsafe instance [Repr α] : Repr (Sym2 α) where
reprPrec s _ := f!"s({repr s.unquot.1}, {repr s.unquot.2})"

end Sym2
Loading