You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 53f8b1d
Browse filesBrowse the repository at this point in the historyBrowse files
Fixes#503
**Cause.** Before Z3, every refinement went through
`changeStatesToRefinements` and then `changeAliasToRefinement`. A state
that only appears once an alias is expanded, such as `closed(x)` in the
body of `Closed(x)`, was never translated to its state set. It stayed an
uninterpreted Boolean unrelated to `state1(x)`, so `Closed(_)` rejected
a closed object.
**Fix.** One method, `Predicate.toSolverPredicate`, now does both steps
in the right order: expand aliases, then translate states, then validate
ghost invocations. Validation moves to the end so it sees the translated
states. It replaces the six copies of the old pair in `VCChecker` and
`TypeChecker`.
**Before / after** (`ErrorStateInAlias`):
```
Refinement Error: closed(door) is not a subtype of Closed(door)
where Closed(x) = closed(x)
```
was reported at the first `needsClosed(door)`, right after the
constructor. Now that call verifies, and only the call after
`door.open()` is reported.
This is also the step #502 relies on to translate `phase(x) == closed`
in alias bodies.
**Tests.** `ErrorStateInAlias`: one call that must verify and one that
must fail. On main the first call fails. Full suite passes locally.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments