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

Lean: import Lean module, and noncomputable sections #1018

Merged
merged 1 commit into from
Feb 16, 2025

Conversation

ineol
Copy link
Collaborator

@ineol ineol commented Feb 16, 2025

This is useful for the RISC-V model which requires some functions to be implemented by the backend. To add a file, use the --lean-import-file option, it can be repeated.

If we want to do as the Coq backend and have some of these functions be axioms in order to leave them arbitrary, we need to declare the whole output as noncomputable, which is controlled by a new option --lean-noncomputable.

This branch of the RISC-V model uses these options.

This is useful for the RISC-V model which requires some functions to be
implemented by the backend. To add a file, use the --lean-import-file
option, it can be repeated.

If we want to do as the Coq backend and have some of these functions be
axioms in order to leave them arbitrary, we need to declare the whole
output as noncomputable, which is controlled by a new option
--lean-noncomputable.
@ineol ineol added the Lean Issues with Sail to Lean translation label Feb 16, 2025
Copy link

Test Results

   13 files  ±0     27 suites  ±0   0s ⏱️ ±0s
  811 tests ±0    811 ✅ ±0  0 💤 ±0  0 ❌ ±0 
2 805 runs  ±0  2 805 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit a045b11. ± Comparison against base commit c6458c5.

@Alasdair Alasdair merged commit 75668d7 into rems-project:sail2 Feb 16, 2025
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants