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] - feat: Port Data.Set.Semiring #1535

Closed
wants to merge 7 commits into from

Conversation

riccardobrasca
Copy link
Member


Open in Gitpod

@riccardobrasca riccardobrasca added mathlib-port This is a port of a theory file from mathlib. WIP Work in progress labels Jan 13, 2023
@jcommelin jcommelin changed the title Port/Data.Set.Semiring feat: Port Data.Set.Semiring Jan 13, 2023
instance [MulOneClass α] : NonAssocSemiring (SetSemiring α) :=
{ (inferInstance : NonUnitalNonAssocSemiring (SetSemiring α)),
Set.mulOneClass with
one := Set.up ({1} : Set α)
Copy link
Member Author

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

@riccardobrasca riccardobrasca added awaiting-review The author would like community review of the PR and removed WIP Work in progress labels Jan 13, 2023
@ChrisHughes24
Copy link
Member

bors r+

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review The author would like community review of the PR labels Jan 13, 2023
Copy link
Member

@jcommelin jcommelin left a 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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/-- 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

Copy link
Member Author

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.

@riccardobrasca
Copy link
Member Author

bors r-

@bors
Copy link

bors bot commented Jan 13, 2023

Canceled.

@riccardobrasca
Copy link
Member Author

bors merge

bors bot pushed a commit that referenced this pull request Jan 13, 2023
Co-authored-by: Chris Hughes <33847686+ChrisHughes24@users.noreply.github.com>
@bors
Copy link

bors bot commented Jan 13, 2023

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat: Port Data.Set.Semiring [Merged by Bors] - feat: Port Data.Set.Semiring Jan 13, 2023
@bors bors bot closed this Jan 13, 2023
@bors bors bot deleted the port/Data.Set.Semiring branch January 13, 2023 15:23
jcommelin pushed a commit that referenced this pull request Jan 23, 2023
Co-authored-by: Chris Hughes <33847686+ChrisHughes24@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mathlib-port This is a port of a theory file from mathlib. ready-to-merge This PR has been sent to bors.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants