code wiki / _hdl_build / nx_ncf_cube_gate.nx

nx_ncf_cube_gate.nx

buildroot/runtime/_hdl_build/nx_ncf_cube_gate.nx

4557 B60 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic ncf
docsdependenciesstructsconstsfunctions

about

nx_ncf_cube_gate.nx -- X-AUT-NCF-001 RUNG 4: SYNTHESIZE A QUADRATIC-INDEX LOOP (acc += c2*i*i + c1*i + c0), covering x^3 and the cubic family -- exactly the case rung 3 (affine-index) honestly REFUSED. Escalation: the rung-3 affine-index loop PROVABLY FAILS on x^3 (its sum is quadratic-in-x); the quadratic-index loop SUCCEEDS (x^3 = sum(3i^2 - 3i + 1)). Uses the shared lib nx_ncf_synth, so the WIRING auto-widens (x^3 now routes). Construct ladder: linear < conditional < simple-loop < affine-index-loop < QUADRATIC-INDEX-LOOP. T1 linear FAILS. T2 affine-index loop (rung 3) FAILS on x^3 -> the quadratic-index body is necessary. T3 quadratic-index loop SYNTHESIZES x^3 = acc=0; for i { acc += 3i^2 - 3i + 1 }. T4 MATERIALIZE+GOD-BUILD+run HELD-OUT {5->125, 6->216} -> 125216. T5 unified ncf_synth routes x^3 (kind=4). expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_ncf_synth.nx nx_syscalls.nx nx_ncf_cube_gate.nx

imports: nx_ncf_synth.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 ncf_w sys_write sys_mmap sys_openat_wr sys_write ↻ sys_close ncf_search_linear ncf_op_eval ncf_n sys_write ↻ sys_mmap ↻ ncf_search_loop2 ncf_loop_eval2 ncf_search_loop3 ncf_loop_eval3 ncf_emit ncf_emit_branch sys_mmap ↻ ncf_cat ncf_cat_pred ncf_cat ↻ ncf_catn sys_mmap ↻ ncf_cat_ret ncf_cat ↻ ncf_catn ↻ ncf_emit_main ncf_cat ↻ ncf_cat_arg ncf_cat ↻ ncf_catn ↻ ncf_catn ↻ sys_openat_wr ↻ sys_write ↻ sys_close ↻ ncf_emit_loop sys_mmap ↻ ncf_cat ↻ ncf_catn ↻

structs

none

consts

none

functions

13func main() -> i64