code wiki / _hdl_build / nx_oracle_genealogist.nx
nx_oracle_genealogist.nx
buildroot/runtime/_hdl_build/nx_oracle_genealogist.nx
about
nx_oracle_genealogist.nx -- the SECOND domain family-search (operator: "math AND OTHER
TYPES of genealogist family search ... trace how [it] scales and can be rebuilt without
floating"). The math genealogist treats nx_bigfloat120 as ONE foundation node; this
organ DECOMPOSES that node -- the 120-bit ORACLE TOWER every math function is gated
against -- into its own rebuild DAG, proving the per-domain genealogist TEMPLATE
generalizes (math + oracle = two instances; a new domain = a new instance, not new
orchestration, rule 11).
The tower's rebuild order, hardware/core rung up (grade = the component's *ORACLE gate
line in knowledge/status/math_engine.log, matched at LINE START so TANORACLE does not
collide with ATANORACLE):
L0 core+exp+ln (BFREGEN: 120-bit float + exp 203/203 + ln 196/196, self-anchored)
L1 trig(pi,sin,cos) founds-on core (TRIGORACLE, Machin pi)
pow founds-on core (POWORACLE, exp(y*ln x))
sinhcosh founds-on core (SINHCOSHORACLE, exp core)
L2 atan founds-on trig (ATANORACLE)
tan founds-on trig (TANORACLE)
gamma founds-on core,trig (GAMMAORACLE, Stirling+reflection)
erfc founds-on core,trig (ERFCORACLE, 2/sqrt(pi)+CF)
FLOATING = a GREEN oracle resting on a non-GREEN dep. no-float law: zero.
Emits knowledge/registry/oracle_genealogy.tsv + an ORACLEGENE coherence gate.
SELF-VALIDATING: baked pos/neg controls (line-start grade-eval GREEN on a green log /
not on a red or mid-line one; float-logic green-on-red-dep => floating) run first.
module: nishi-core.math.oracle_genealogist
depends: nishi-core.sys.syscalls
capability: ORACLE_FAMILY_SEARCH_NO_FLOAT
license_tier: ORIGINAL
dependencies 1 imports · 0 importers
imports: nx_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
| 31 | const OG_MAGIC_1048576: i64 = 1048576 |
| 33 | const OG_LOG: *u8 = "knowledge/status/math_engine.log" |
| 34 | const OG_MAP: *u8 = "knowledge/registry/oracle_genealogy.tsv" |
| 35 | const OG_GATE: *u8 = "knowledge/status/oracle_genealogy.log" |
| 36 | const OG_N: i64 = 8 |
functions
| 38 | func og_w(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 } |
| 39 | func og_wn(fd: i64, v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(fd,"-" as *u8,1)}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48;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(fd,bb,k); return 0 } |
| 40 | func og_len(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } |
| 42 | func og_at(buf: *u8, n: i64, i: i64, pat: *u8, pl: i64) -> i64 called by 1: og_grade |
| 49 | func og_read(path: *u8, buf: *u8, cap: i64) -> i64 |
| 60 | func og_grade(buf: *u8, n: i64, anchor: *u8) -> i64 |
| 85 | func og_gstr(g: i64) -> *u8 called by 1: main |
| 92 | func og_cpy(dst: *u8, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8){dst[i]=s[i]; i=i+1} dst[i]=0 as u8; return i } called by 1: og_selftest |
| 93 | func og_selftest() -> i64 |
| 109 | func main() -> i64 |