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: BitVec.toInt_neg_eq_ite #6153

Closed
wants to merge 1 commit into from

Commits on Nov 21, 2024

  1. feat: BitVec.toInt_neg_eq_ite

    This PR adds a theorem that describes `(-x).toInt` as a case-split:
    - If `x = intMin w`, then `(-x)` overflows and is equal to `intMin w = x = -x`.
      and thus `(-x).toInt = x.toInt`.
    - otherwise, `(-x).toInt = - (x.toInt)`.
    
    This is a building block to prove `BitVec.toInt_abs`,
    from leanprover#5787
    bollu committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    54c8ae7 View commit details
    Browse the repository at this point in the history