verifier: cache structural properties and nominal size queries
This commit is contained in:
1 parent
41f3afbf05
commit
48b9b42fed
31 files changed
+1399
-166
No files matched your search
@@ -327,6 +327,8 @@ Q-043 review identified a separate existing cost in `Lowerer.linearAt`: repeated
|
||||
|
||||
Audit the existing classification/layout ordering and shared-query cost with counted tests, preserving structural ownership classes, graph/iref boundaries, source E1003 provenance, accepted-source canonical AIR and frozen AIR behavior. Avoid wall-clock timeout tests. This is an implementation audit, not a new recursion or memory rule.
|
||||
|
||||
**Resolved:** lowering reads structural linearity from a resolved nominal-property table after finite-layout checks. AIR verification rebuilds the same table before type checking, with a monotone dependency worklist for the existing predicates, depth-64 guard and source depth-32 witness pruning. The earlier budget stage memoizes sizes by nominal index and depth, preserving cutoff, overflow and E5101 precedence exactly. Checked modules retain immutable caches for subsequent queries. Counted diamond/cycle tests and differential small-graph tests cover all predicates, witness order, depth boundaries, sizes and caller-supplied cache rejection. Source/AIR diagnostics, ownership classes, valid canonical AIR and runtime semantics are unchanged; standalone uncached helpers remain available for small test oracles.
|
||||
|
||||
## Q-045 — Source array literals with second-class elements
|
||||
|
||||
Q-043 review reproduced `fn unused(p: ref<u64>) -> void effects [] { let a = [p, p]; }`: the source array literal reaches AIR type checking with E1001 because borrows cannot be stored as array elements. Q-042 validates annotations; an inferred literal has none. Q-043 now rejects that array as a repeated `own.array` value, but constructing it without that operation remains a separate source validation gap.
|
||||
|
||||
Reference in new issue
Block a user