Skip to content

Use the faster quotient and remainder in the whole library#1284

Open
LorenzoMolena wants to merge 1 commit intoagda:masterfrom
LorenzoMolena:fast-quot-rem
Open

Use the faster quotient and remainder in the whole library#1284
LorenzoMolena wants to merge 1 commit intoagda:masterfrom
LorenzoMolena:fast-quot-rem

Conversation

@LorenzoMolena
Copy link
Contributor

This PR changes the names of quotient_/_, remainder_/_, and mod, so that the more efficient implementations become the new default, while the less efficient ones are written with a '.
To achieve this, I ported the proofs from the standard library, and I also proved the equality of the two implementations by showing the uniqueness of the quotient-remainder pair under some constraints.
I left the old proofs for reference, but if it seems reasonable, I can remove them, as they are no longer used.
Additionally, two more tests have been added to the Data.Fin.Arithmetic module.

…ssary properties and that is equivalent to the previous implementations ; add examples of computations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant