code wiki / _hdl_build / nx_nofloat_k3stack_gate.nx

nx_nofloat_k3stack_gate.nx

buildroot/runtime/_hdl_build/nx_nofloat_k3stack_gate.nx

3679 B81 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind gate/prooftopic nofloat
docsdependenciesstructsconstsfunctions

about

nx_nofloat_k3stack_gate.nx -- gate: N-layer K3 stack with Attention Residuals, deterministic AT DEPTH. T1 a 4-layer stack RUNS end-to-end and transforms the input T2 CROSS-LAYER (AttnRes): perturbing the INPUT (layer 0) changes the deep output -- early layers stay reachable through the stack (the AttnRes property; a plain-residual stack would too, but here we also verify the layer-0 contribution is WEIGHTED IN, not washed out, by comparing vs a stack that starts deeper) T3 DEPTH-STABLE: output bounded through 4 layers (no overflow blowup) T4 DETERMINISTIC bit-identical at depth (the exceed: float stacks drift per-layer + compound) license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 3 imports · 0 importers

nx_nofloat_k3stack.nx nx_gate_verdict.nx nx_syscalls.nx nx_nofloat_k3stack_gate.nx

imports: nx_nofloat_k3stack.nxnx_gate_verdict.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main gv_ctr sys_mmap gv_head gv_puts sys_write sys_mmap ↻ sg_fill k3_stack sys_mmap ↻ ks_mean k3_block sys_mmap ↻ k3_matmul la_forward sys_mmap ↻ la_zero la_accum la_readout k3_add k3_relu ks_rmsnorm ks_isqrt gv_check gv_puts ↻ gv_verdict gv_puts ↻ gv_num sys_mmap ↻ sys_write ↻ sys_munmap gv_journal sys_openat_append sys_mmap ↻ gv_catn sys_mmap ↻ sys_munmap ↻ sys_now_realtime_sec sys_mmap ↻ sys_clock_gettime_real

structs

none

consts

13const SG_T: i64 = 4
14const SG_D: i64 = 4
15const SG_DFF: i64 = 8
16const SG_L: i64 = 4
17const SG_Q: i64 = 65536

functions

19func sg_fill(m: *i64, rows: i64, cols: i64, seed: i64) -> i64
called by 1: main
25func main() -> i64