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

Allow specifying types in separate files #2820

Open
nano-o opened this issue Jan 24, 2024 · 0 comments
Open

Allow specifying types in separate files #2820

nano-o opened this issue Jan 24, 2024 · 0 comments
Labels
feature A new feature or functionality usability UX improvements

Comments

@nano-o
Copy link

nano-o commented Jan 24, 2024

In some contexts it's desirable to be able to check an existing specification with Apalache without changing at all the existing specification.

Let's say the existing specification is Spec.tla. We can create a new spec ApaSpec.tla that declares the same variables as Spec.tla but with type annotations and instantiates Spec.tla. However, if type annotations on other expressions are needed, there seem to be no way to put them in ApaSpec.tla.

An example is discussed in this PR: tlaplus/Examples#113. We need an annotation on vars in Einstein.tla and there seem to be no way to put this annotation in a different file.

@nano-o nano-o added the feature A new feature or functionality label Jan 24, 2024
@shonfeder shonfeder added the usability UX improvements label Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature or functionality usability UX improvements
Projects
None yet
Development

No branches or pull requests

2 participants