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

TLAPM parser does not accept INSTANCE proof step type #167

Open
ahelwer opened this issue Oct 24, 2024 · 0 comments
Open

TLAPM parser does not accept INSTANCE proof step type #167

ahelwer opened this issue Oct 24, 2024 · 0 comments
Labels
bug An error, usually in the code. syntax parser Issues relating to TLAPM's syntax parser

Comments

@ahelwer
Copy link
Collaborator

ahelwer commented Oct 24, 2024

Quoting from TLA Version 2: A Preliminary Guide [pdf], section 7.5.2 on page 27:

An INSTANCE step consists of a step-starting token followed by an ordinary INSTANCE statement (one that begins with the keyword INSTANCE). It has the same effect on the state as the corresponding (top-level) statement.

So I guess this is a way of introducing a module instance to get its definitions in scope in the middle of a proof. Anyway, TLAPM's syntax parser does not accept this; SANY does:

---- MODULE Test ----
THEOREM TRUE
<1>a. INSTANCE M
<1>b. QED
====

Ref #159

@ahelwer ahelwer added bug An error, usually in the code. syntax parser Issues relating to TLAPM's syntax parser labels Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error, usually in the code. syntax parser Issues relating to TLAPM's syntax parser
Development

No branches or pull requests

1 participant