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: a / c ≡ b / c [PMOD p] #9619

Closed
wants to merge 4 commits into from

Conversation

YaelDillies
Copy link
Collaborator

@YaelDillies YaelDillies commented Jan 10, 2024

Also fix a few misported names.

From LeanAPAP


Open in Gitpod

@YaelDillies YaelDillies added awaiting-review The author would like community review of the PR t-algebra Algebra (groups, rings, fields etc) labels Jan 10, 2024
YaelDillies and others added 2 commits January 10, 2024 14:35
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@@ -321,6 +321,10 @@ theorem int_cast_modEq_int_cast {a b z : ℤ} : a ≡ b [PMOD (z : α)] ↔ a
norm_cast
#align add_comm_group.int_cast_modeq_int_cast AddCommGroup.int_cast_modEq_int_cast

@[simp, norm_cast]
lemma intCast_modEq_intCast' {a b : ℤ} {n : ℕ} : a ≡ b [PMOD (n : α)] ↔ a ≡ b [PMOD (n : ℤ)] := by
Copy link
Member

Choose a reason for hiding this comment

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

Why intCast, not int_cast? The previous lemma uses int_cast.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It's one operation, so should be one atom. Let me fix the previous lemma.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I don't think we should block this PR on a naming decision that mathlib isn't consistent about.

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.

Thanks 🎉

bors merge

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-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 Feb 3, 2024
mathlib-bors bot pushed a commit that referenced this pull request Feb 3, 2024
Also fix a few misported names.

From LeanAPAP
@mathlib-bors
Copy link

mathlib-bors bot commented Feb 3, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat: a / c ≡ b / c [PMOD p] [Merged by Bors] - feat: a / c ≡ b / c [PMOD p] Feb 3, 2024
@mathlib-bors mathlib-bors bot closed this Feb 3, 2024
@mathlib-bors mathlib-bors bot deleted the div_modeq_div branch February 3, 2024 15:39
atarnoam pushed a commit that referenced this pull request Feb 9, 2024
Also fix a few misported names.

From LeanAPAP
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. t-algebra Algebra (groups, rings, fields etc)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants