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

Fix typo of constant in knapsack.tla. #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

isislovecruft
Copy link

The CAPACITY constant should be upper-cased.

@isislovecruft
Copy link
Author

Also thanks for the great book! It's been quite a helpful learning resource.

@hwayne
Copy link
Collaborator

hwayne commented Dec 4, 2020

Interesting; I looked through the book and I don't think I use CAPACITY anywhere, just Capacity. Would you mind sharing the code you have that's causing the problem?

@isislovecruft
Copy link
Author

The first instance of the variable is described as a constant, i.e.:

EXTENDS TLC, Integers, Sequences

PT == INSTANCE PT

CAPACITY == 7

Items == {"a", "b", "c"}

Before (I think?) you later move on in the next chapter (?? sorry don't have the book in front of me at the moment) to explain placing constants such as these directly into the model checker.

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

Successfully merging this pull request may close these issues.

2 participants