code wiki / _hdl_build / nx_final_rung_gate.nx

nx_final_rung_gate.nx

buildroot/runtime/_hdl_build/nx_final_rung_gate.nx

7104 B90 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_final_rung_gate.nx -- THE FINAL RUNG (operator 2026-06-28): "have the system build something as good if not better than you [Claude] as the final rung." Grounded by the researcher survey: the systems that beat Eurisko (FunSearch/AlphaEvolve/CodeEvolve/LILO) all put a frontier LLM IN THE LOOP -- they are Claude-amplified, NOT self-reliant. The honest, harder Nishi test: on our KNOWN GOODS, does the system's NO-LLM synthesis MATCH a Claude-authored reference? This is a measured HEAD-TO-HEAD: - CLAUDE side: a reference implementation I hand-author (baked inline = "what Claude would write"). - SYSTEM side: ncf_synth synthesizes the program autonomously + GOD-BUILDS it (nx_cc->nxasm, NO Claude in the synthesis loop), runs on HELD-OUT inputs. - MATCH iff system_produced == claude_reference == ground_truth on held-out. T1-T3: on 3 known-good tasks (conditional/polynomial/recurrence) the system MATCHES Claude, no LLM in loop. T4: HONEST BOUNDARY -- an out-of-grammar task (a(n)=a(n-1)^2) -> system ESCALATES (Claude still needed). T5: FINAL-RUNG VERDICT -- as-good-as-Claude on the covered class AND more self-reliant (no LLM, deterministic, god-build-verified); honest scope: the grammar itself is still Claude-authored = the remaining gap. expect_exit: 0 license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_ncf_synth.nx nx_syscalls.nx nx_final_rung_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 claude_abs run_system sys_mmap ↻ ncf_synth ncf_search_branch ncf_pred_eval ncf_op_eval ncf_search_loop ncf_loop_eval ncf_search_loop2 ncf_loop_eval2 ncf_search_loop3 ncf_loop_eval3 ncf_search_loop4 ncf_loop_eval4 ncf_search_recur ncf_pow3 ncf_recur_eval sys_mmap ↻ 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

structs

none

consts

none

functions

19func claude_abs(x: i64) -> i64 { if x<0 { return 0-x } return x }
called by 1: main
20func claude_sq(x: i64) -> i64 { return x*x }
called by 1: main
21func claude_fib(x: i64) -> i64 { var a: i64=0; var b: i64=1; var i: i64=1; while i<=x { let t: i64=a+b; a=b; b=t; i=i+1 } return a }
called by 1: main
24func run_system(xs: *i64, ys: *i64, n: i64, ha: i64, hb: i64, scale: i64) -> i64
33func main() -> i64