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: Move basic Int lemmas earlier #12821

Closed
wants to merge 13 commits into from

Conversation

YaelDillies
Copy link
Collaborator

@YaelDillies YaelDillies commented May 11, 2024

A bunch of lemmas about Int can be moved to Data.Int.Defs at little cost. This PR moves them and deletes the now empty Data.Int.Div and Data.Int.Dvd.Basic.

The story is that those lemmas used to rely on lemmas proved for algebraic order structures, hence required the algebraic order instances on Int to be available. In Lean 4, those preliminary lemmas have been special-cased to Nat and Int, so there is no need for the general instances anymore (at least in basic files).


Open in Gitpod

A bunch of lemmas about `Int` can be moved to `Data.Int.Defs` at little cost. This PR moves them and deletes the now empty `Data.Int.Dvd.Basic`.

The story is that those lemmas used to rely on lemmas proved for algebraic order structures, hence required the algebraic order instances on `Int` to be available. In Lean 4, those preliminary lemmas have been special-cased to `Nat` and `Int`, so there is no need for the general instances anymore (at least in basic files).
@YaelDillies YaelDillies added awaiting-review The author would like community review of the PR awaiting-CI labels May 11, 2024
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. label May 13, 2024
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. label May 13, 2024
Copy link

  • + instCancelCommMonoidWithZero

Copy link
Collaborator

@Ruben-VandeVelde Ruben-VandeVelde left a comment

Choose a reason for hiding this comment

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

Seems okay.

maintainer merge

Copy link

🚀 Pull request has been placed on the maintainer queue by Ruben-VandeVelde.

@jcommelin
Copy link
Member

Thanks 🎉

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 May 15, 2024
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented May 15, 2024

Merge conflict.

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. label May 15, 2024
@YaelDillies YaelDillies removed the ready-to-merge This PR has been sent to bors. label May 16, 2024
@YaelDillies YaelDillies added awaiting-review The author would like community review of the PR and removed merge-conflict The PR has a merge conflict with master, and needs manual merging. maintainer-merge labels May 16, 2024
@jcommelin
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 May 16, 2024
mathlib-bors bot pushed a commit that referenced this pull request May 16, 2024
A bunch of lemmas about `Int` can be moved to `Data.Int.Defs` at little cost. This PR moves them and deletes the now empty `Data.Int.Div` and `Data.Int.Dvd.Basic`.

The story is that those lemmas used to rely on lemmas proved for algebraic order structures, hence required the algebraic order instances on `Int` to be available. In Lean 4, those preliminary lemmas have been special-cased to `Nat` and `Int`, so there is no need for the general instances anymore (at least in basic files).
@YaelDillies YaelDillies removed the request for review from jcommelin May 16, 2024 08:31
@mathlib-bors
Copy link
Contributor

mathlib-bors bot commented May 16, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: Move basic Int lemmas earlier [Merged by Bors] - chore: Move basic Int lemmas earlier May 16, 2024
@mathlib-bors mathlib-bors bot closed this May 16, 2024
@mathlib-bors mathlib-bors bot deleted the delete_int_dvd_basic branch May 16, 2024 09:18
callesonne pushed a commit that referenced this pull request May 16, 2024
A bunch of lemmas about `Int` can be moved to `Data.Int.Defs` at little cost. This PR moves them and deletes the now empty `Data.Int.Div` and `Data.Int.Dvd.Basic`.

The story is that those lemmas used to rely on lemmas proved for algebraic order structures, hence required the algebraic order instances on `Int` to be available. In Lean 4, those preliminary lemmas have been special-cased to `Nat` and `Int`, so there is no need for the general instances anymore (at least in basic files).
grunweg pushed a commit that referenced this pull request May 17, 2024
A bunch of lemmas about `Int` can be moved to `Data.Int.Defs` at little cost. This PR moves them and deletes the now empty `Data.Int.Div` and `Data.Int.Dvd.Basic`.

The story is that those lemmas used to rely on lemmas proved for algebraic order structures, hence required the algebraic order instances on `Int` to be available. In Lean 4, those preliminary lemmas have been special-cased to `Nat` and `Int`, so there is no need for the general instances anymore (at least in basic files).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

4 participants