Skip to content

v0.44.0: dotted binder names are refused, a proved callee's division gives d ≥ 1, and two lost refutations return

Choose a tag to compare

@machunter machunter released this 02 Dec 22:01
· 34 commits to main since this release

checker_soundness_version 10 → 11. No other version stamp changes: proof_artifact_version
(0.4.0), trust_report_version (1.12.0), verify_json_version (1.3.0),
codegen_semantics_version (int-unbounded-1) and the JSON-AST schema are unchanged. Breaking:
a binder name that holds . is now a parse error. Measured on liquid-fixpoint 0.9.6.3.7 and z3
4.15.4, Apple Silicon.

  • v0.43.1 can report a false verified through a dotted local function name (adversary
    finding A3-P1). This release refuses a . in every binder name (AST-NAME-DOT-1), so the
    program no longer parses.
  • A caller assumes d ≥ 1 from a division in the post of an imported callee whose post is
    proved
    (DIV-POST-WD-EVIDENCE-1). Any other callee still gives only d ≠ 0.
  • A call that breaks a callee pre conjunct before a refused division is refuted
    (DIV-WD-REFUTE-LOST-1). On v0.43.1 it fell back with "over the limit for divisions".
  • Witness table: 166 of 166 counted tasks as expected through llmll verify again;
    m-hflip-at-07 and m-hflip-at-49 are refuted (v0.43.0 and v0.43.1: 164 of 166).
  • The fallback census: 299 files, ratio 0.921 (982 of 1066 body-faithful), refuted 2,
    strict-pass 124; the ratchet passes. It reports one file the baseline does not list as newly
    passing --strict-verified-core, scripts/build-smoke/bytes_tabulate.llmll; the file has no
    division and no import, and the baseline gap dates from BYTES-TABULATE-1.
  • Tests: hspec 3532 → 3556, pytest 1028 → 1079 passed (10 skipped).

Fixed: a false verified through a dotted binder name — AST-NAME-DOT-1

25f73654. Decided 2026-12-01 (user decision): both parsers refuse a dot in a binder name.

  • The false verified on v0.43.1. Module ac defines a local (def-shell cq.cq …) with
    the post (= 1 0). Module af imports ac and module cq, calls cq.cq, returns 0 and
    declares (post (= result 99)). The verifier keys each imported module's contracts both bare
    and qualified, so ac's bare key cq.cq and module cq's qualified key cq.cq were one
    text, and the call resolved to ac's function. Its false post was assumed, af.k verified,
    and the trust report named module cq's cq.cq as the dependency. ac itself is refuted and
    writes no sidecar; its contract still entered the table. Witnesses:
    scripts/tests/fixtures/div_wd_1/ac.llmll, af.llmll.

  • A binder name may not hold ., in S-expression and JSON-AST input: a function, parameter,
    let, match or do binder, interface, interface method, type, constructor or type
    parameter. Module names and qualified references keep their dots. The error has kind
    invalid-name:

    invalid-name: function name 'cq.cq' holds '.', which separates a module path from a name; a dot is legal only in a module name and in a qualified reference. Rename it (for example 'cq-cq')
    

    The S-expression error carries the hint rename the binder without a dot; refer to another module's function as module.name. Before, a dotted binder parsed in both front ends, though
    LLMLL.md §2.2 already said a plain identifier may not contain dots and
    the name patterns of docs/llmll-ast.schema.json for functions, parameters, types and
    interfaces have no dot.

  • Breaking: a program with a dotted binder no longer parses. No tracked source used one.

Changed: a proved callee's post gives d ≥ 1 — DIV-POST-WD-EVIDENCE-1

25f73654.

  • Where a caller assumes a callee post, a division (/ e d) or (mod e d) in it gives
    d ≥ 1
    when the callee is an imported function whose post is at a positive tier (verified
    by liquid-fixpoint or Lean) in its sidecar, read through the staleness gate
    (ProgramGraph.importProvedFns). Any other callee gives d ≠ 0, as on v0.43.1: a post that
    held at run time shows only that its divisions did not stop. A name the entry module itself
    defines is never in the proved set. verify, the proof-artifact recheck and patch use the
    same set, so replay-artifact emits the stored VC byte for byte.
  • The two witness-table mutants v0.43.0 lost are refuted again: m-hflip-at-07 (was
    fallback) and m-hflip-at-49 (was the 2048 MB solver memory limit or fallback), both through
    geom.row-of. scripts/divvar/to_llmll.py no longer carries the loss list.
  • checker_soundness_version is 11. No sidecar stamped 10 is false; the stamp moves so
    that every verdict is rechecked once under the new assumption.

Changed: a call that breaks a callee pre before a refused division is refuted — DIV-WD-REFUTE-LOST-1

b0939ef2.

  • When the product pass refuses a call-pre constraint, it keeps a refute-only copy whose goal
    is the conjuncts of the callee pre before the first one that holds a product or a refused
    division. The run time evaluates the pre's and from left to right, so a false conjunct there
    stops the call before the division runs. An UNSAFE answer on the copy refutes the function,
    which stays in fallback; SAFE proves nothing. vf.f has pre (and (>= y 1) (> (/ x y) 0));
    vg.g calls (vf.f 7 (- 0 2)), which is now refuted, exit 1, with
    error: call-site precondition of 'vf.f' not satisfied in 'g'. At run time it stops with
    Precondition violated in f.
  • No copy is kept when the prefix is empty (the division is the first conjunct), when every
    prefix conjunct is true on its face (liquid-fixpoint rejects such a goal), or for a function
    the free-variable or name-collision guard routed. A failing copy that carries an abstraction,
    callee-post-unassumed or uncleared product mark refutes nothing.
  • A constant divisor below 1 is named. Such a constraint read "over the limit for divisions";
    it now reads A division in it has the constant divisor -2, below 1; the solver's division differs from the run time's there.
  • The core-membership error names the clause. For an imported callee that is not
    body-faithful, the text said "Its body holds" for a division in the post or pre; it now names
    body, pre or post: def 'g': callee 'dd.h' was verified but is not body-faithful. Its post holds a division by a non-constant divisor at (/ 1 (- (- 0 1) y)); ….

Tests

  • New: scripts/tests/test_div_wd_1.py (13 cells; CI step pinned at 13 passed with no skip),
    test_ast_name_dot_1_sites.py (22), test_div_wd_1_adversary3.py (1),
    test_div_wd_1_adversary3b.py (6), test_div_wd_1_adversary_s2.py (4) and
    test_div_wd_adv3.py (5). Other CI pins are unchanged (test_div_var_1.py stays at 45).
  • test_fq_name_collide_1.py: the a.b beside a_b witness of FQ-NAME-COLLIDE-1 is now
    refused at parse with invalid-name, so its cell asserts the refusal instead of the
    fq-name-collision fallback.
  • The stamp pins in test_clause_welldef_1.py, test_fq_name_collide_1.py,
    test_sidecar_admit_1.py and test_trust_report_gate_1.py read 11.

Roadmap

  • Closed: DIV-POST-WD-EVIDENCE-1, DIV-WD-REFUTE-LOST-1, AST-NAME-DOT-1.