Refinement & Models · Page 4 of 5
Front-End Diagnostics & Subset
Before any backend runs, the shared front-end (python -m temporal_typing PATH ...)
parses your source and rejects anything no checker could verify soundly — always in plain
Python terms with a diagnostic code and file:line:
level-error— e.g.,prime(...)inside anInvariant.no-transition—Action()on a method whose body is....no-init,missing-domain,bad-binding,misplaced-clause.unsupported— constructs outside the verifiable Python subset (such as float division/instead of//,try,with, or I/O).
Exercise — Fix the Diagnostics: Click Check to see the two
front-end errors on the right. Fix both:
1. Change
2. Replace
Click Check until you get PASS!
1. Change
Invariant to ActionInvariant (and import it).
2. Replace
... in step with a real body (e.g., if self.x < 5: self.x += 1).
Click Check until you get PASS!