agda-stdlib icon indicating copy to clipboard operation
agda-stdlib copied to clipboard

Add primop backed versions of natural-number operations

Open Taneb opened this issue 3 years ago • 2 comments

One possible solution for #1427

I add versions of min, max, and dist that use primitive operations so they compile to fast code (hopefully - I admit I haven't checked this yet). I also add proofs that they match their recursively defined counterparts, and a proof about distance that I felt was missing.

Taneb avatar Sep 13 '22 19:09 Taneb

Sorry for taking so long to review this. Looks fine to me. Can you add a CHANGELOG entry?

MatthewDaggitt avatar Oct 06 '22 10:10 MatthewDaggitt

Sure, I'll add a changelog entry in the next few days

Taneb avatar Oct 06 '22 10:10 Taneb