code wiki / _hdl_build / nx_atmsky_gate.nx

nx_atmsky_gate.nx

buildroot/runtime/_hdl_build/nx_atmsky_gate.nx

7249 B117 linesdepth 3pulls 6 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_atmsky_gate.nx -- THE SKY IS BLUE BECAUSE OF LAMBDA^-4, NOT BECAUSE SOMEONE PICKED 70/130/240. WHAT THIS EXISTS TO STOP. nx_atmosphere has cited rayleigh_1871, preetham_1999 and hosek_wilkie_2012 in its header since 2026-05-16, and its coefficient comment says "1/lambda^4 wavelength dep" -- while nx_atmosphere_rayleigh_q14 returned ONE SCALAR PER BODY (no wavelength dependence is expressible in a scalar) and the sky colour came from a hardcoded per-body palette. ★A CAPABILITY IS WHAT ITS CODE DOES, NEVER WHAT ITS HEADER CLAIMS -- and this organ was ALSO never built and had ZERO importers (ABSENT-PROVEN), so nothing in the estate could have noticed. THE LOAD-BEARING TOOTH IS THE WAVELENGTH SWAP. Every other tooth here would pass just as happily for a painted gradient that happened to be blue. Only deriving the colour from lambda and then CHANGING lambda proves the physics is doing the work: swap red's wavelength below blue's and the sky must stop being blue. A palette cannot do that. license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_itrig.nx nx_atmosphere.nx nx_gate_verdict.nx nx_atmsky_gate.nx

imports: nx_syscalls.nxnx_itrig.nxnx_atmosphere.nxnx_gate_verdict.nx

imported by: nobody (leaf or entry point)

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

main gv_ctr sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ gv_head gv_puts sys_write ↻ nx_atm_beta_permil gv_puts ↻ gv_num sys_mmap ↻ sys_write ↻ sys_munmap gv_check gv_puts ↻ nx_atm_airmass_q it_cos4096 it_sin4096 nx_atm_channel_q nx_atm_beta_permil ↻ _atm_exp_neg_q14 nx_atm_display_255 vm_isqrt gv_verdict gv_note_bare_rate gv_bare_rate gv_at

structs

none

consts

20const AS_Q: i64 = 16384

functions

22func main() -> i64