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
Invariant inference 6/6: show inferred invariants and hints in error messages #548
Message (terminal, hover): inferred facts stay inside Found as ordinary facts, as today (found i < 10 && i >= 0 && i <= 10 but expected i < 9).
VS Code side panel: the Found steps get a step that shows where those facts come from, e.g. "Inferred for the loop at line 10 (holds on every iteration): i >= 0 && i <= 10", followed by the usual simplification steps (which can show redundant facts such as i <= 10 being dropped).
Loop-start names (total@18#1) stay in Found and are explained in the panel, like the other generated names.
Hint: when the counterexample involves a variable that an enclosing loop changes and inference could not prove what is needed, suggest stating the invariant with @Refinement on the declaration. Prototype first and judge on real examples before keeping it.
Work is split into:
verifier: mark the inferred facts (and their loop's line) in the diagnostic data, and the hint;
vscode-liquidjava: the panel step and the name explanation.
Activity
CatarinaGamboa commentedon Nov 23, 2026
PM decisions (2026-11-23)
found i < 10 && i >= 0 && i <= 10 but expected i < 9).i >= 0 && i <= 10", followed by the usual simplification steps (which can show redundant facts such asi <= 10being dropped).total@18#1) stay in Found and are explained in the panel, like the other generated names.@Refinementon the declaration. Prototype first and judge on real examples before keeping it.Work is split into: