-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(Data/PNat): better
OfNat
instance (#12420)
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.
- Loading branch information
Showing
2 changed files
with
10 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters