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

sail-to-lean: Properly deal with int valued bitvector lengths #956

Open
javra opened this issue Feb 4, 2025 · 0 comments
Open

sail-to-lean: Properly deal with int valued bitvector lengths #956

javra opened this issue Feb 4, 2025 · 0 comments
Labels
Lean Issues with Sail to Lean translation

Comments

@javra
Copy link
Collaborator

javra commented Feb 4, 2025

val nexp_mod_add : forall 'n. bitvector(2 ^ (- 'n)) -> bitvector(2 ^ (- 'n))

function nexp_mod_add x = {
  x
}

currently compiles to the invalid

/-- Type quantifiers: k_n : Int -/
def nexp_mod_add (x : (BitVec (2 ^ ((- k_n))))) : (BitVec (2 ^ ((- k_n)))) :=
  x

def initialize_registers (lit : Unit) : Unit :=
  ()
@javra javra added the Lean Issues with Sail to Lean translation label Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Lean Issues with Sail to Lean translation
Projects
None yet
Development

No branches or pull requests

1 participant