nx_caplab_cities.nx
buildroot/runtime/nx_caplab_cities.nx
about
nx_caplab_cities.nx -- Capitalism Lab R6: cities + retail presence (the MAP).
Capitalism Lab is geographic. Each CITY is its own market, sized by
population; a firm only competes in a city where it has RETAIL PRESENCE
(capacity > 0 there); a product's total sales = the sum across cities.
Expanding to more / bigger cities reaches more demand. Composes R4
(quality/brand split) + R5 (per-market capacity) across geography.
MODEL:
city_M = base_M * population / pop_ref (bigger city = more demand)
per city = split among PRESENT firms by appeal, capped by retail capacity
product total = sum over cities of that firm's per-city sales
nx_safety_envelope:
intended_use: capitalism-lab geography (pure functions, no I/O)
sil_target: SIL1
verdict: NOT_YET_EVALUATED
genealogy_id: capitalism_lab_cities_map_canon
lineage_id: nx_caplab_cities_v1
dependencies 3 imports · 1 importers
imports: nx_syscalls.nxnx_tier.nxnx_caplab_quality.nx
imported by: nx_caplab_cities_test.nx
structs
| none |
consts
| none |
functions
| 27 | func nx_clab_city_market_m(base_m: nx_int, population: nx_int, pop_ref: nx_int) -> nx_int called by 1: main |
| 34 | func nx_clab_city_run(n: nx_int, prices: *i64, quals: *i64, brands: *i64, |
| 56 | func nx_clab_geo_total(n_cities: nx_int, per_city_sold: *i64) -> nx_int called by 1: main |