code wiki / _hdl_build / nx_worldsim_gate.nx
nx_worldsim_gate.nx
buildroot/runtime/_hdl_build/nx_worldsim_gate.nx
about
nx_worldsim_gate.nx -- CERTIFICATION of nx_worldsim (gamebench rank 1, hard GAP, Strive:Conquest keystone).
T1 ★CONSERVATION -- 500 randomised trades move wealth without minting or burning a single unit
T2 ★SYMMETRIC RELATIONS -- rel(A,B) and rel(B,A) can never disagree, after arbitrary one-sided edits
T3 ACCOUNTED PRODUCTION -- a tick adds EXACTLY ws_production(), no more, no less
T4 DETERMINISM -- two worlds, same seed, 200 ticks -> identical state
T5 BOUNDED -- relations clamp to [-1000,1000]; resources never go negative; overdraw is refused
T6 NO SELF-DEALING -- a faction cannot trade with itself or edit its own relation
T7 ★ANTI-VACUITY -- the world actually EVOLVES (wealth grows, relations move). A frozen world would
satisfy conservation, symmetry and determinism perfectly while simulating nothing.
T8 composes with nx_gamesave: a whole world arena round-trips through save/load
license_tier: ORIGINAL expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_worldsim.nxnx_gamesave.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 ww(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 wn(v: i64) -> i64 |
| 26 | func seedworld(a: *i64, n: i64, seed: i64) -> i64 |
| 38 | func main() -> i64 |