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] - refactor(Data/PNat): better OfNat instance #12420

Closed
wants to merge 2 commits into from

Conversation

urkud
Copy link
Member

@urkud urkud commented Apr 25, 2024

Assume [NeZero n] instead of talking about n+1.
This way we can reuse the raw natural literal n in PNat.val_ofNat.

Also add PNat.mk_ofNat and drop some bit0/bit1 lemmas.


Open in Gitpod

@urkud urkud added awaiting-review The author would like community review of the PR t-algebra Algebra (groups, rings, fields etc) labels Apr 25, 2024
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.

maintainer merge

Copy link

github-actions bot commented May 5, 2024

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

@sgouezel
Copy link
Contributor

sgouezel commented May 5, 2024

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 May 5, 2024
mathlib-bors bot pushed a commit that referenced this pull request May 5, 2024
Assume `[NeZero n]` instead of talking about `n+1`.
This way we can reuse the raw natural literal `n` in `PNat.val_ofNat`.

Also add `PNat.mk_ofNat` and drop some `bit0`/`bit1` lemmas.
@mathlib-bors
Copy link

mathlib-bors bot commented May 5, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title refactor(Data/PNat): better OfNat instance [Merged by Bors] - refactor(Data/PNat): better OfNat instance May 5, 2024
@mathlib-bors mathlib-bors bot closed this May 5, 2024
@mathlib-bors mathlib-bors bot deleted the YK-pnat-ofnat branch May 5, 2024 14:39
apnelson1 pushed a commit that referenced this pull request May 12, 2024
Assume `[NeZero n]` instead of talking about `n+1`.
This way we can reuse the raw natural literal `n` in `PNat.val_ofNat`.

Also add `PNat.mk_ofNat` and drop some `bit0`/`bit1` lemmas.
callesonne pushed a commit that referenced this pull request May 16, 2024
Assume `[NeZero n]` instead of talking about `n+1`.
This way we can reuse the raw natural literal `n` in `PNat.val_ofNat`.

Also add `PNat.mk_ofNat` and drop some `bit0`/`bit1` lemmas.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintainer-merge 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

3 participants