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: Lemmas about ZMod #9143

Closed
wants to merge 2 commits into from

Conversation

hanwenzhu
Copy link
Collaborator

@hanwenzhu hanwenzhu commented Dec 18, 2023

Added some lemmas about ZMod and its units:

  • Generalized lt to le in two lemmas
  • ((a : ZMod n) : ZMod m) = a if m ≤ n
  • unitsMap is surjective
  • Units.map f (-a) = -Units.map f a (which can be applied to unitsMap)
  • Units.map (-1) = -1 (which can be applied to unitsMap)

Open in Gitpod

@hanwenzhu hanwenzhu marked this pull request as ready for review December 18, 2023 22:01
@hanwenzhu hanwenzhu added awaiting-CI awaiting-review The author would like community review of the PR labels Dec 18, 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.

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 Dec 26, 2023
mathlib-bors bot pushed a commit that referenced this pull request Dec 26, 2023
Added some lemmas about `ZMod` and its units:
* Generalized `lt` to `le` in two lemmas
* `((a : ZMod n) : ZMod m) = a` if `m ≤ n`
* `unitsMap` is surjective
* `Units.map f (-a) = -Units.map f a` (which can be applied to `unitsMap`)
* `Units.map (-1) = -1` (which can be applied to `unitsMap`)
@mathlib-bors
Copy link

mathlib-bors bot commented Dec 26, 2023

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat: Lemmas about ZMod [Merged by Bors] - feat: Lemmas about ZMod Dec 26, 2023
@mathlib-bors mathlib-bors bot closed this Dec 26, 2023
@mathlib-bors mathlib-bors bot deleted the hanwenzhu/zmod-lemmas branch December 26, 2023 12:08
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

3 participants