code wiki / _hdl_build / nx_ventropy_gate.nx

nx_ventropy_gate.nx

buildroot/runtime/_hdl_build/nx_ventropy_gate.nx

3246 B54 linesdepth 3pulls 5 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 3 imports · 0 importers

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

imports: nx_syscalls.nxnx_gate_emit_lib.nxnx_ventropy.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 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 ↻ g_check g_puts ↻ beq16 sys_exit

structs

none

consts

none

functions

13func 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
14func clr16(a: *i64) -> i64 { var i: i64=0; while i<16 { a[i]=0; i=i+1 } return 0 }
called by 1: main
16func main() -> i64