-
Notifications
You must be signed in to change notification settings - Fork 234
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] - feat: Port Data.Set.Semiring #1535
Conversation
riccardobrasca
commented
Jan 13, 2023
instance [MulOneClass α] : NonAssocSemiring (SetSemiring α) := | ||
{ (inferInstance : NonUnitalNonAssocSemiring (SetSemiring α)), | ||
Set.mulOneClass with | ||
one := Set.up ({1} : Set α) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Originally this was one := 1
, but it doesn't work with
failed to synthesize instance
OfNat (SetSemiring α) 1
bors r+ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fact that dot notation no longer works is very mysterious.
@@ -25,120 +25,143 @@ open Pointwise | |||
|
|||
variable {α β : Type _} | |||
|
|||
-- Porting note: mathlib3 uses `deriving Inhabited, PartialOrder, OrderBot` | |||
/-- An alias for `set α`, which has a semiring structure given by `∪` as "addition" and pointwise |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/-- An alias for `set α`, which has a semiring structure given by `∪` as "addition" and pointwise | |
/-- An alias for `Set α`, which has a semiring structure given by `∪` as "addition" and pointwise |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is already done.. maybe you were having a look to an old commit.
bors r- |
Canceled. |
bors merge |
Co-authored-by: Chris Hughes <33847686+ChrisHughes24@users.noreply.github.com>
Pull request successfully merged into master. Build succeeded: |
Co-authored-by: Chris Hughes <33847686+ChrisHughes24@users.noreply.github.com>