Commit 2024-05-05 13:38 1e9f6406

View on Github →

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.

Estimated changes

deleted theorem PNat.coe_bit0
deleted theorem PNat.coe_bit1
deleted theorem PNat.mk_bit0
deleted theorem PNat.mk_bit1
added theorem PNat.mk_ofNat
modified theorem PNat.val_ofNat