code wiki / _hdl_build / nx_teacher_synthesize_gate.nx
nx_teacher_synthesize_gate.nx
buildroot/runtime/_hdl_build/nx_teacher_synthesize_gate.nx
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
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
structs
| none |
consts
| none |
functions
| 19 | func 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 } |
| 20 | func tg_putn(v: i64) -> i64 |
| 29 | func 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 } |
| 30 | func tg_catn(dst: *u8, off: i64, v: i64) -> i64 |
| 38 | func 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 } |
| 39 | func tg_mkdir(path: *u8) -> i64 { return sys_mkdir(path, 0x1ed) } |
| 40 | func tg_write(path: *u8, content: *u8) -> i64 |
| 46 | func tg_assert(label: *u8, cond: i64) -> i64 |
| 51 | func main() -> i64 |