-
Notifications
You must be signed in to change notification settings - Fork 14
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
chore: canonicalize constants #358
Conversation
a0c5ab1
to
c9f11f5
Compare
This will make subsequent patches for enabling reductions smaller, as these canonicalization for some reason is not needed in that case.
c9f11f5
to
00fcd55
Compare
Alive Statistics: 30 / 93 (63 failed) |
|
Alive Statistics: 54 / 93 (39 failed) |
Alive Statistics: 54 / 93 (39 failed) |
Alive Statistics: 54 / 93 (39 failed) |
Nice. This is now ready to review (and merge). It should reduce a lot of the noise we saw in #356. |
Alive Statistics: 54 / 93 (39 failed) |
Alive Statistics: 54 / 93 (39 failed) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the theorem statements need to be in simp
normal form before we can merge this. If they are not being normalized correctly, then we ought to write the correct simps to go between Int/Nat/OfNat.ofNat
Alive Statistics: 54 / 93 (39 failed) |
Alive Statistics: 54 / 93 (39 failed) |
Lgtm |
lemma ofInt_ofNat' : BitVec.ofInt w (OfNat.ofNat (α := ℤ) x ) = x#w := rfl | ||
|
||
-- @[simp] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tobiasgrosser it seems you didn't remove the primed lemma, but this one should not be needed after the no_index
fix, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. Sorry for this and thank you for the post-commit review: https://github.com/opencompl/ssa/pull/new/clean_unneeded_stmt.
No description provided.