code wiki / (root) / nx_propose_verify_lib.nx

nx_propose_verify_lib.nx

buildroot/runtime/nx_propose_verify_lib.nx

7435 B176 linesdepth 10pulls 27 transitivereach 8 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_propose_verify_lib.nx -- the PROPOSE->VERIFY primitive as a reusable LIBRARY (2026-07-15): few-shot templating + greedy no-float generation (through the PRODUCTION serve core) + first-integer proposal parse + concrete-claim building for kernel certification. Composes nx_nofloat_serve_core (the PROPOSER) and nx_autoformalize_lib (the DISPOSER: af_decide -- a wrong proposal cannot certify, soundness by construction). This is the autonomous-building safety primitive: generator proposes, sound checker disposes, nothing unverified is trusted. Consumers: nx_propose_verify (organ/CLI) + the probe gates nx_nofloat_propose_verify_gate / nx_nofloat_propose_solve_gate (single source of truth for the templates: the gates measure EXACTLY the code path the organ serves). Caller must nsv_init(<gguf path>) ONCE before pvl_generate (and RETURN from main -- pool-worker reap). license_tier: ORIGINAL (lib: no main -- build standalone gives rc=102 by design)

dependencies 2 imports · 8 importers

nx_nofloat_serve_core.nx nx_autoformalize_lib.nx nx_propose_verify_lib.nx nx_autofix_auto.nx nx_autofix_localfix.nx nx_hybrid_moe_cascade_gate.nx nx_nofloat_propose_chat_gate.nx nx_nofloat_propose_solve_gate.nx nx_nofloat_propose_verify_gate.nx nx_propose_verify.nx nx_zero_claude_ledger_gate.nx

imports: nx_nofloat_serve_core.nxnx_autoformalize_lib.nx

imported by: nx_autofix_auto.nxnx_autofix_localfix.nxnx_hybrid_moe_cascade_gate.nxnx_nofloat_propose_chat_gate.nxnx_nofloat_propose_solve_gate.nxnx_nofloat_propose_verify_gate.nxnx_propose_verify.nxnx_zero_claude_ledger_gate.nx

structs

none

consts

none

functions

15func pvl_first_uint(s: *u8, n: i64, res: *i64) -> i64
38func pvl_prompt_complete(dst: *u8, a: i64, b: i64, op: i64) -> i64
51func pvl_prompt_solve(dst: *u8, k: i64, c: i64, op: i64, slot: i64) -> i64
75func pvl_generate(pb: *u8, plen: i64, tx: *u8, mt: *i64, max_new: i64) -> i64
97func pvl_last_uint(s: *u8, n: i64, res: *i64) -> i64
called by 1: main
128func pvl_prompt_solve_chat(dst: *u8, k: i64, c: i64, op: i64, slot: i64) -> i64
called by 1: main calls 2: nsv_catnsv_catn
147func pvl_generate_chat(pb: *u8, plen: i64, tx: *u8, mt: *i64, max_new: i64) -> i64
called by 1: main calls 1: nsv_generate
167func pvl_claim(dst: *u8, prm: *i64) -> i64