Issue #1765: a method’s top assert over self’s field is NK1300, while the same assert…

Open and answer this issue on GitHub.

decision, bugs, solver · opened 2026-11-16 · updated 2026-11-22 · 0 comments

Filed by the driver from the Found: of the run of issue-1670 (#1670) (owner, 2026-11-06).

Found

a method’s top assert over self’s field is NK1300, while the same assert over a plain parameter is a precondition (ADR-269 D5); prover_walk.nika prover_function skips self’s fields as preconditions on purpose (“a call through the receiver gives no argument for it”, #1476). Probe: struct Stack { xs: Vec[i64] } impl Stack { fn top(ref self) -> i64 sync { assert(self.xs.len() > 0); return self.xs[0] } } with full.top() in main: error[NK1300] assert(self.xs.len() > 0) is not proved; the same with fn first(xs: Vec[i64]) is checked. The bounds walk derives that very claim over self (ADR-306 D34), so the prover and the walk disagree.

Needs

supervisor decision on whether a written assert over self’s fields is a precondition (ADR-269 D5 versus the #1476 comment)

To build

Done when

The probe gives the specified result and its test is green.


Generated by Claude Code

Back to Open Issues