Skip to content

Prepare for Lean machine integers#948

Open
abentkamp wants to merge 2 commits intoAeneasVerif:mainfrom
abentkamp:integers2
Open

Prepare for Lean machine integers#948
abentkamp wants to merge 2 commits intoAeneasVerif:mainfrom
abentkamp:integers2

Conversation

@abentkamp
Copy link
Copy Markdown
Contributor

This PR introduces two changes in preparation for migrating the official Lean machine integers:

  • I renamed .val to .toNat/.toInt and .bv to .toBitVec. The goal is to align the naming conventions with ones of the official Lean library. This will make the next step of replacing our custom machine integers with Lean's machine integers easier. In particular, the diffs will be smaller and easier to review.
  • I replaced the arithmetic type class instances (+, -, -., *, /, %, >>>, <<<) with custom type class instances (+?, -?, *?, /?, >>>?, <<<?). Once we use the official Lean integers, this will be necessary because otherwise our type class instances will clash with the official Lean instances.

These two changes are separated cleanly into one commit each for easier review of this PR.

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.

2 participants