code wiki / (root) / nx_solve_steps_gate.nx

nx_solve_steps_gate.nx

buildroot/runtime/nx_solve_steps_gate.nx

7787 B132 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind gate/prooftopic solve
docsdependenciesstructsconstsfunctions

about

nx_solve_steps_gate.nx -- AM10: DOES THE WORKED SOLUTION ACTUALLY SOLVE, AND DOES IT TELL THE TRUTH? The teeth check the ANSWER by substitution, not by string comparison. A step list that looks plausible and produces a wrong root would pass any test that only inspects the text, so the load-bearing teeth take the root the steps arrive at and put it BACK into the original equation. That is an oracle the implementation cannot talk its way past. license_tier: ORIGINAL expect_exit: 0

dependencies 3 imports · 0 importers

syscalls.nx nx_solve_steps_lib.nx nx_gate_verdict.nx nx_solve_steps_gate.nx

imports: syscalls.nxnx_solve_steps_lib.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 gv_ctr 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 ↻ gv_head gv_puts sys_write ↻ ss_steps_linear ss_row ss_put ss_slen ss_linear_lhs ss_put ↻ ss_num ss_put ↻ ss_put ↻ ss_num ↻ ss_end ss_put ↻ ss_rational ss_gcd ss_num ↻ ss_put ↻ sg_lines gv_check gv_puts ↻ gv_check_eq

structs

none

consts

13const SG_CAP: i64 = 16384

functions

15func sg_slen(s: *u8) -> i64 { var i: i64 = 0; while s[i] != (0 as u8) { i = i + 1 } return i }
called by 1: sg_has
17func sg_has(buf: *u8, n: i64, pat: *u8) -> i64
called by 1: main calls 1: sg_slen
31func sg_lines(buf: *u8, n: i64) -> i64
called by 1: main
38func main() -> i64