code wiki / _hdl_build / nx_char_identity_gate.nx

nx_char_identity_gate.nx

buildroot/runtime/_hdl_build/nx_char_identity_gate.nx

12641 B236 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind gate/prooftopic char
docsdependenciesstructsconstsfunctions

about

nx_char_identity_gate.nx -- proves the identity vector behaves like a LoRA: the SAME token yields the SAME woman under any style/pose/outfit, different tokens yield GENUINELY different women, and the proportions sit inside MEASURED anthropometry rather than refuted folklore. MUTATION TARGET (documented): let style leak into an identity field (e.g. anime widens the eye dial) => T2 RED (the same woman stops being the same woman when you restyle her) while diversity/canon hold. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_char_identity.nx nx_gamesave.nx nx_char_identity_gate.nx

imports: nx_syscalls.nxnx_char_identity.nxnx_gamesave.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main p sys_write newidv sys_mmap idv_from_seed sys_mmap ↻ idv_rng idv_same idv_key pn sys_mmap ↻ sys_write ↻ idv_serialize sys_mmap ↻ idv_style_params nl p ↻ idv_distance idv_canon_ok gs_save sys_mmap ↻ put64 gsc_put64 gs_cksum gsc_fold_bytes joinsuf slen sys_mmap ↻ sys_openat_wr sys_write ↻ sys_fsync sys_close sys_unlinkat gs_exists sys_openat_rd sys_close ↻ sys_renameat gs_load sys_mmap ↻

structs

none

consts

29const NPOP: i64 = 500

functions

11func p(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: nlmain calls 1: sys_write
12func pn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
26func nl() -> i64 { p("\n" as *u8); return 0 }
called by 1: main calls 1: p
27func newidv() -> *i64 { return sys_mmap(IDV_SLOTS * 8) as *i64 }
called by 1: main calls 1: sys_mmap
31func main() -> i64