code wiki / _hdl_build / nx_ge_synth.nx
nx_ge_synth.nx
buildroot/runtime/_hdl_build/nx_ge_synth.nx
about
nx_ge_synth.nx -- SOVEREIGN extractive-synthesis + corroboration + CONTRADICTION organ (v2: now with
contrarian sources in the corpus so contradiction-detection has material). The honest mechanical lever
to close the researcher's quality gap vs Claude deep-research. Per the pre-registered 10-point rubric
over the real fetched corpus (P1 render 8 + P3 mobile-perf 6 + CONTRARIAN 4 = 18 sources):
COVERAGE = #sources containing the concept (retrieval)
CORROBORATED = coverage >= 2 (>=2-source / no-hearsay rule)
EXPLAINED = a source states concept AND its MECHANISM in one ~400B passage (extractive synthesis)
CONTESTED = some source associates concept+CLAIM and some source associates concept+COUNTER
=> the corpus holds CONFLICTING framings -> flag, do not naively admit. This is the
DETERMINISTIC + REPRODUCIBLE analog of deep-research's stochastic 3-vote refutation.
HONEST: extractive, not generative; cannot produce cross-source reasoning/caveats an LLM adds. Measured
here; judged vs the SAME rubric bar. 100% sovereign (nx_cc->nxasm). license_tier: ORIGINAL expect_exit:0
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_research_extract.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
| 16 | func sw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 17 | func sn(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(1,"-" as *u8,1)} let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1} sys_write(1,bb,k); return 0 } |
| 19 | func load(idx: i64, path: *u8, bufs: *i64, lens: *i64) -> i64 |
| 30 | func score_point(concept: *u8, mech: *u8, claim: *u8, counter: *u8, bufs: *i64, lens: *i64, nf: i64, out: *i64) -> i64 |
| 62 | func report(id: *u8, concept: *u8, mech: *u8, claim: *u8, counter: *u8, bufs: *i64, lens: *i64, nf: i64, tot: *i64) -> i64 |
| 74 | func main() -> i64 |