code wiki / _hdl_build / nx_nofloat_muon_ns_gate.nx
nx_nofloat_muon_ns_gate.nx
buildroot/runtime/_hdl_build/nx_nofloat_muon_ns_gate.nx
about
nx_nofloat_muon_ns_gate.nx -- gate for integer Newton-Schulz orthogonalization (Muon core).
HONEST claim (Muon NS = APPROXIMATE orthogonalization, SVs -> ~1, not exactly 1):
T1 a non-orthogonal matrix is orthogonalized -- X X^T -> I error drops hard (>5x) after NS
T2 MONOTONE: more iterations reduce the error (err@5 < err@1) -- the iteration converges, not diverges
T3 the result's X X^T diagonal lands near 1.0 (each in [0.6,1.4]*Q16) -- Muon-style approx-orthogonal
T4 DETERMINISTIC: two runs bit-identical -- the NOVEL EXCEED (float NS is order-dependent, ours is not)
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 3 imports · 0 importers
imports: nx_nofloat_muon_ns.nxnx_gate_verdict.nxnx_syscalls.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
| 12 | const MG_N: i64 = 4 |
| 13 | const MG_Q: i64 = 65536 |
functions
| 15 | func mg_set_test(g: *i64, n: i64) -> i64 called by 1: main |
| 23 | func main() -> i64 |