code wiki / _hdl_build / nx_softdyn_gate.nx

nx_softdyn_gate.nx

buildroot/runtime/_hdl_build/nx_softdyn_gate.nx

6943 B146 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_softdyn_gate.nx -- prove the secondary-dynamics solver is REAL PHYSICS, not a wobble hack. T1 INERTIAL LAG soft mass trails an accelerating anchor (that IS jiggle) T2 OVERSHOOT when the anchor stops, the mass passes THROUGH it (sign change) = oscillation T3 DAMPED SETTLE energy decays and it comes to rest (no perpetual motion) T4 IMPULSE/RECOIL a kick on a still point displaces then returns -- the SAME solver serves firearms T5 BOUNDED a violent anchor can never separate tissue past the clamp (divergence impossible) T6 DETERMINISM identical replay, bit-for-bit T7 ANTI-VACUITY a STIFF+damped config shows ~no lag => T1's lag is the SOLVER, not an always-on bug license_tier: ORIGINAL expect_exit: 0

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_softdyn.nx nx_softdyn_gate.nx

imports: nx_syscalls.nxnx_softdyn.nx

imported by: nobody (leaf or entry point)

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

main sg_hw sys_write sd_alloc sys_mmap sd_seat sd_step sd_isqrt sd_deadsnap sd_abs sd_disp sd_isqrt ↻ sg_pn sys_mmap ↻ sys_write ↻ sd_disp_y_q8 sd_energy sd_disp_q8 sd_isqrt ↻ sd_impulse

structs

none

consts

13const SG_SOFT_K: i64 = 120
14const SG_SOFT_C: i64 = 100
15const SG_STIFF_K: i64 = 900
16const SG_STIFF_C: i64 = 800
17const SG_MAXD: i64 = 40

functions

19func sg_hw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
20func sg_pn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
30func main() -> i64