code wiki / _hdl_build / nx_worldsim_gate.nx

nx_worldsim_gate.nx

buildroot/runtime/_hdl_build/nx_worldsim_gate.nx

9336 B226 linesdepth 3pulls 6 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

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 4 imports · 0 importers

nx_syscalls.nx nx_worldsim.nx nx_gamesave.nx nx_gate_verdict.nx nx_worldsim_gate.nx

imports: nx_syscalls.nxnx_worldsim.nxnx_gamesave.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

17func ww(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
18func wn(v: i64) -> i64
27func seedworld(a: *i64, n: i64, seed: i64) -> i64
39func main() -> i64