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

const-array #28

Open
LeventErkok opened this issue Sep 18, 2024 · 3 comments
Open

const-array #28

LeventErkok opened this issue Sep 18, 2024 · 3 comments
Assignees

Comments

@LeventErkok
Copy link

In version 2.6 of the document (https://smt-lib.org/papers/smt-lib-reference-v2.6-r2021-05-12.pdf), there's a reference to const-array on page 31.

I don't see any other reference to const-array anywhere else; and neither z3 nor cvc5 accept this as constant.

However, both z3 and cvc5 work fine with const

Is const-array really part of the language? If not, let's remove it from the text, replacing it with const. If so, I guess I'll have to file issues with at least z3 and cvc5 so they can support it to be compliant.

@Gbury
Copy link

Gbury commented Sep 18, 2024

As far as I'm aware, neither const nor const-array are part of the language, or rather, neither is present/mentioned in the ArraysEx theory (xsee https://smt-lib.org/theories-ArraysEx.shtml ) nor any logics that includes that theory, but I may have missed something, so one of the maintainers would probably know better.

I guess the array-const in the example is leftover from older versions where it may have been considered for inclusion ?

@fontainep
Copy link
Contributor

Hi Levent and Guillaume,
indeed, as pointed out by Guillaume, neither are part of the language, but they are used as illustration for the usage of the (as ...) construct, just like "cons" and "nil" in the line above. It is not a left-over. Future versions of the SMT-LIB array theory might include such an operator.
We added a clarification in the upcoming reference document: https://smt-lib.org/papers/smt-lib-reference-v2.7-draft.pdf
Thanks for your feedback!
Can I close the issue?

@barrettcw
Copy link
Member

Actually, let's leave the issue open as I have on my to-do list to do an initial draft of an array theory including the const-array operator. I've assigned myself.

@barrettcw barrettcw self-assigned this Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants