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.Int.Parity #1836

Closed
wants to merge 9 commits into from

Conversation

joneugster
Copy link
Collaborator

@joneugster joneugster commented Jan 25, 2023


Notes:

  • replaced all occurences of Int.mod and Ind.div with Int.emod and Int.ediv. I think this is the right thing to do but not 100% sure.
  • There is one TODO in even_or_odd'. Either golf my new proof or remove the comment.

Open in Gitpod

@joneugster joneugster added WIP Work in progress mathlib-port This is a port of a theory file from mathlib. labels Jan 25, 2023
@joneugster joneugster changed the title Port/data.int.parity feat: port Data.Int.Parity Jan 25, 2023
@joneugster joneugster added awaiting-review The author would like community review of the PR and removed WIP Work in progress labels Jan 25, 2023
Mathlib/Data/Int/Parity.lean Show resolved Hide resolved
Mathlib/Data/Int/Parity.lean Outdated Show resolved Hide resolved
Comment on lines +77 to +79
-- Porting note: TODO. I'm struggling that `Even` uses `k + k` while Odd uses `2 * k`,
-- does this proof need golfing?
-- mathlib3 port: `simpa only [← two_mul, exists_or, ← Odd, ← Even] using even_or_odd n`
Copy link
Member

Choose a reason for hiding this comment

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

I think it's fine to keep both this comment and your proof. In the future, someone can revisit.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

sounds good

@jcommelin jcommelin added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Jan 26, 2023
joneugster and others added 2 commits January 26, 2023 11:54
Co-authored-by: Johan Commelin <johan@commelin.net>
@joneugster joneugster added awaiting-review The author would like community review of the PR and removed awaiting-author A reviewer has asked the author a question or requested changes labels Jan 26, 2023
@ChrisHughes24
Copy link
Member

bors merge

@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 26, 2023
bors bot pushed a commit that referenced this pull request Jan 26, 2023
@bors
Copy link

bors bot commented Jan 26, 2023

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat: port Data.Int.Parity [Merged by Bors] - feat: port Data.Int.Parity Jan 26, 2023
@bors bors bot closed this Jan 26, 2023
@bors bors bot deleted the port/Data.Int.Parity branch January 26, 2023 13:01
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