code wiki / _hdl_build / nx_ventropy_gate.nx

nx_ventropy_gate.nx

buildroot/runtime/_hdl_build/nx_ventropy_gate.nx

3688 B62 linesdepth 3pulls 6 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_ventropy_gate.nx -- proves + MEASURES sovereign entropy coding of a quantized 4x4 block (nx_ventropy), V-R3. Native nx_cc->nxasm, no node. 1) round-trip: a quantized block (DC + a few low-freq) encode -> decode == original 2) compression (MEASURED): a few-nonzero block -> a few bytes vs 32 raw (16 coeffs x 2B) 3) near-static: an all-zero block -> ~1 byte (EOB only) 4) high-frequency: a single coeff at the LAST zig-zag position round-trips (run handled) 5) dense (neg, honest): a full 16-nonzero block round-trips and is bounded (no fake compression) license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_gate_emit_lib.nx nx_ventropy.nx nx_gate_verdict.nx nx_ventropy_gate.nx

imports: nx_syscalls.nxnx_gate_emit_lib.nxnx_ventropy.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main g_puts sys_write sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ clr16 ve_encode ve_encode_at ve_zz_idx nx_bw_put ve_vput ve_zze ve_blen nx_bw_put ↻ nx_bits_bytes ve_decode ve_decode_at nx_br_get ve_vval nx_br_get ↻ ve_zzd ve_vlen nx_br_get ↻ ve_zz_idx ↻ g_pn sys_mmap ↻ sys_write ↻

structs

none

consts

none

functions

14func beq16(a: *i64, b: *i64) -> i64 { var i: i64=0; while i<16 { if a[i]!=b[i] { return 0 } i=i+1 } return 1 }
called by 1: main
15func clr16(a: *i64) -> i64 { var i: i64=0; while i<16 { a[i]=0; i=i+1 } return 0 }
called by 1: main
17func main() -> i64