nx_caplab_compete_test.nx
buildroot/runtime/nx_caplab_compete_test.nx
about
nx_caplab_compete_test.nx -- gate for Capitalism Lab R1 (competition).
Proves: (1) symmetric firms split the market evenly, (2) the cheaper firm
wins a larger share, (3) CONSERVATION -- firm quantities always sum to the
market size (largest-remainder), even when the split is uneven, (4)
NEG-CONTROL: a firm priced at/above the choke sells zero, (5) NEG-CONTROL:
if every firm is priced out, nobody buys, (6) margin x volume -- the
higher-priced firm can still out-earn the cheaper one.
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_runtime.nxnx_tier.nxnx_caplab_compete.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
| 15 | func nx_assert_eq(label: *u8, got: nx_int, want: nx_int, pass_n: *nx_int, fail_n: *nx_int) |
| 26 | func nx_assert_gt(label: *u8, got: nx_int, floor: nx_int, pass_n: *nx_int, fail_n: *nx_int) |
| 37 | func main() -> nx_exit |