Closed ajrouvoet closed 2 weeks ago
TypeOK
is the type invariant and is marked as invariant to check in GameOfLife.cfg
. Type invariants are broad statements about what sets each variable can range across during the execution of the system.
TypeOK
is referenced by the .cfg and checked as an invariants.
Ah, clear! Thanks for clarifying!
As a complete TLA beginner I opened the GOL spec and I noticed that
TypeOK
andInit
are identically defined but only the latter is used. Does this have a purpose or is this a slight oversight and would it make more sense to---for example---dropTypeOk
?https://github.com/tlaplus/Examples/blob/f532f0ac4e44b97edd939f73e1caf8b4071cf419/specifications/GameOfLife/GameOfLife.tla#L17
It is perhaps superficial, but given that these specs serve for education purposes it might be worth addressing.