Repository navigation
Preserve the SANY binding of SUBSET against \ and \union. - #140
Merged
Merged
Conversation
SANY assigns SUBSET precedence 10-13, so SUBSET Nat \ {0} parses
as (SUBSET Nat) \ {0} and SUBSET S \union {x} parses as
(SUBSET S) \union {x}. The Summary of TLA+ gives SUBSET precedence
8-8, the same as \, \cup, and \cap, and an overlapping range is a
syntax error. Pull request 1508 applies that table in SANY, after
which these expressions no longer parse. The parentheses record
the binding SANY has been using.
Related to tlaplus/tlaplus#1508
tlaplus/tlaplus#1508
See tlaplus/rfcs#28
tlaplus/rfcs#28
[Refactor]
Co-authored-by: Grok 4.7 <noreply@x.ai>
Signed-off-by: Markus Alexander Kuppe <github.com@lemmster.de>
lemmy
marked this pull request as ready for review
November 5, 2026 18:09
Member
Author
|
@muenchnerkindl Please confirm the precedence order in your CM proofs and merge if correct. |
muenchnerkindl
approved these changes
Nov 6, 2026
muenchnerkindl
left a comment
Contributor
There was a problem hiding this comment.
Thanks for this, all is fine.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SANY assigns SUBSET precedence 10-13, so SUBSET Nat \ {0} parses as (SUBSET Nat) \ {0} and SUBSET S \union {x} parses as (SUBSET S) \union {x}. The Summary of TLA+ gives SUBSET precedence 8-8, the same as , \cup, and \cap, and an overlapping range is a syntax error. Pull request 1508 applies that table in SANY, after which these expressions no longer parse. The parentheses record the binding SANY has been using.
Related to tlaplus/tlaplus#1508
tlaplus/tlaplus#1508
See tlaplus/rfcs#28
tlaplus/rfcs#28
[Refactor]