Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add defs for std bitvectors #8345

Closed
wants to merge 10 commits into from
Closed

Conversation

alexkeizer
Copy link
Collaborator

@alexkeizer alexkeizer commented Nov 11, 2023

Add various definitions for Std.BitVec, to bring it closer to feature parity with the existing Bitvec type.

Co-authored-by: Harun Khan harun19@stanford.edu
Co-authored-by: mhk119 58151072+mhk119@users.noreply.github.com
Co-authored-by: Eric Wieser wieser.eric@gmail.com


These definitions are factored out from #5920. That PR is blocked (and has been for quite a long time) on not wanting to lose any API for bitvectors, and has become very large.

Thus, I propose we maintain parallel APIs for now, keeping the existing Bitvec type, and incrementally adding more API to Std.BitVec until the latter is at a point where we indeed have equivalent results for everything, and only then remove Bitvec.

This PR contains most of the definitions in the Defs file from #5920, except for various translations between bitvectors and List Bool, since this depends on a function whose implementation is still under discussion (OfBits).

Although having two types for bitvectors is not exactly ideal, do note that this is already the case in master today, since Std.BitVec is already defined in the version of std used by mathlib.

Open in Gitpod

@alexkeizer alexkeizer added WIP Work in progress and removed awaiting-review labels Nov 21, 2023
@alexkeizer alexkeizer closed this Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WIP Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant