code wiki / _hdl_build / nx_teacher_synthesize_gate.nx

nx_teacher_synthesize_gate.nx

buildroot/runtime/_hdl_build/nx_teacher_synthesize_gate.nx

6286 B102 linesdepth 9pulls 10 transitivereach 0 importersview sourcekind gate/prooftopic teacher
docsdependenciesstructsconstsfunctions

about

nx_teacher_synthesize_gate.nx -- proves the Teacher SYNTHESIS loop: a raw insight-ledger is consumed INTO the native team-capability store, the team can RECALL each insight, and the source is provably REDUNDANT only when every insight is absorbed. Hermetic /tmp fixtures (never touches the real store). Discriminating + liar-killed: T1 count: synthesizing a 3-row ledger stores exactly 3 insights. T2 recall: the team CONSUMES insight R2 from the store, byte-faithful to the source learning. T3 recall-absent: an unknown id recalls nothing (no phantom answer). T4 redundancy+: every learning of the synthesized ledger is recoverable -> redundant=1 (retirable). T5[neg] un-absorbed: a SUPERSET ledger (one extra un-synthesized row) is redundant=0 -- you CANNOT retire a source whose insight was not fully absorbed (the load-bearing control). T6[neg] no-fabrication: a rule never present in the source is ABSENT from the store (Rule 4 -- the synthesis copies real insight, it does not invent any). T7 idempotent: re-synthesizing the same ledger keeps count=3 and redundant=1. GREEN iff all hold. Sovereign: imports nx_teacher_synthesize + nx_syscalls. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_teacher_synthesize.nx nx_syscalls.nx nx_teacher_synthesize_gate.nx

imports: nx_teacher_synthesize.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 tg_puts sys_write sys_now_realtime_sec sys_mmap sys_clock_gettime_real sys_mmap ↻ tg_cat tg_catn sys_mmap ↻ tg_mkdir sys_mkdir tg_join tg_cat ↻ tg_write sys_openat_wr sys_write ↻ sys_close tsyn_ingest_ledger sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ↻ ncfg_begin ss_begin ss_begin_cap sys_mmap ↻ tsyn_field sys_mmap ↻ tsyn_row sys_mmap ↻ ncfg_add_row sys_mmap ↻ canon_encode sys_mmap ↻ cc_cmp cc_w32

structs

none

consts

none

functions

19func tg_puts(s: *u8) -> i64 { var n: i64 = 0; while s[n] != 0 as u8 { n = n + 1 } sys_write(1, s, n); return 0 }
called by 2: tg_assertmain calls 1: sys_write
20func tg_putn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
29func tg_cat(dst: *u8, off: i64, s: *u8) -> i64 { var i: i64 = 0; while s[i] != 0 as u8 { dst[off + i] = s[i]; i = i + 1 } return off + i }
called by 2: tg_joinmain
30func tg_catn(dst: *u8, off: i64, v: i64) -> i64
called by 1: main calls 1: sys_mmap
38func tg_join(out: *u8, a: *u8, b: *u8) -> i64 { var o: i64 = tg_cat(out, 0, a); o = tg_cat(out, o, b); out[o] = 0 as u8; return o }
called by 1: main calls 1: tg_cat
39func tg_mkdir(path: *u8) -> i64 { return sys_mkdir(path, 0x1ed) }
called by 1: main calls 1: sys_mkdir
40func tg_write(path: *u8, content: *u8) -> i64
46func tg_assert(label: *u8, cond: i64) -> i64
called by 1: main calls 1: tg_puts
51func main() -> i64