code wiki / _hdl_build / nx_hairdyn_gate.nx
nx_hairdyn_gate.nx
buildroot/runtime/_hdl_build/nx_hairdyn_gate.nx
about
nx_hairdyn_gate.nx -- GATE: prove the hair chain is a CHAIN, that its plant is DERIVED rather
than tuned, and that the measurement which says so cannot pass on hair that does not move.
WHAT THIS GATE IS FOR. knowledge/gamefeel_oracle.conf's hair_k_q10 row has never had a plant
behind it; the shipping hair was two hand-picked integers driving one point. The teeth below do
not assert that hair is right, they MEASURE it: ask the derivation for a frequency, run a free
decay, and read the frequency back out with the estate's one ringdown analyser.
NO TOLERANCE IS CHOSEN ANYWHERE IN THIS FILE. The frequency teeth compare against the DAMPED
prediction (a ringdown cannot measure an undamped frequency) inside the ANALYSER'S OWN
resolution, both derived below. The damping teeth assert MONOTONICITY, which needs no tolerance
at all -- a stronger property than an equality with a number picked to make it hold.
license_tier: ORIGINAL No hw writes (Rule 26).
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_gate_verdict.nxnx_hairdyn_lib.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
| 19 | const HG_NSEG: i64 = 6 |
| 20 | const HG_NSEG_SHORT: i64 = 2 |
| 21 | const HG_NSEG_LONG: i64 = 12 |
| 24 | const HG_SEGLEN_A: i64 = 256 |
| 25 | const HG_SEGLEN_B: i64 = 512 |
| 32 | const HG_ZETA_LO: i64 = 100 |
| 33 | const HG_ZETA_HI: i64 = 300 |
functions
| 40 | func hg_fn_damped(fn_mhz: i64, zeta_permil: i64) -> i64 |
| 50 | func hg_res_mhz(fn_mhz: i64) -> i64 |
| 56 | func hg_report(tag: *u8, rc: i64, out: *i64) -> i64 |
| 79 | func main() -> i64 |