Skip to content

Preserve the SANY binding of SUBSET against \ and \union. - #140

Merged
muenchnerkindl merged 1 commit into
masterfrom
mku-gh892
Nov 6, 2026
Merged

muenchnerkindl merged 1 commit into
masterfrom
mku-gh892

Conversation

@lemmy

@lemmy lemmy commented Nov 4, 2026

Copy link
Copy Markdown
Member

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]

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
lemmy marked this pull request as ready for review November 5, 2026 18:09
@lemmy

lemmy commented Nov 5, 2026

Copy link
Copy Markdown
Member Author

@muenchnerkindl Please confirm the precedence order in your CM proofs and merge if correct.

@lemmy
lemmy requested a review from muenchnerkindl November 5, 2026 18:11

@muenchnerkindl muenchnerkindl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this, all is fine.

@muenchnerkindl
muenchnerkindl merged commit 057f66c into master Nov 6, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants