Skip to content

Update EWD998PCal.tla comments #2

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Update EWD998PCal.tla comments #2

wants to merge 2 commits into from

Conversation

lemmy
Copy link
Owner

@lemmy lemmy commented Mar 21, 2024

Update some of the prose comments in the EWD998 TLA+ spec.

@@ -8,7 +8,7 @@
EXTENDS Integers, Bags, BagsExt

CONSTANT N
ASSUME NAssumption == N \in Nat \ {0} \* At least one node.
ASSUME NAssumption == N \in Nat \ {0} \* Any number of nodes between zero and infinitely many.

Check notice

Code scanning / genaiscript

tlAI-Linter Note

The comment states "Any number of nodes between zero and infinitely many" which is inconsistent with the TLA+ declaration N \in Nat \ {0} which excludes zero.
@lemmy lemmy changed the title Update EWD998PCal.tla Update EWD998PCal.tla comments Mar 21, 2024
@lemmy lemmy added the documentation Improvements or additions to documentation label Mar 21, 2024
lemmy referenced this pull request in tlaplus/Examples Mar 22, 2024
…formulas.

[Build]

Signed-off-by: Markus Alexander Kuppe <[email protected]>
def("TLA+", env.files.filter(f => f.filename.endsWith(".tla")), {lineNumbers: true})

// use $ to output formatted text to the prompt
$`You are an expert at TLA+/TLAPLUS. Your task is to check if the prose comments and their TLA+ declarations and definitions are syntactically and semantically consistent!!!

Choose a reason for hiding this comment

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

this is cool :D

Copy link
Owner Author

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants