nx_triangulation_battery.nx
buildroot/runtime/nx_triangulation_battery.nx
about
nx_triangulation_battery.nx -- substrate-side triangulated proof
that algorithms can be called via NishiLang AND produce the proper
result, with NO external dependencies.
Per user 2026-05-14: "we want proofs that any algorithm can be
called via nishi and have the proper result via nishi lang itself
in a triangulated fashion".
Method: for each primitive under test (AUT), run the AUT plus TWO
independent witnesses:
W1 = known-vector oracle (hardcoded expected answer)
W2 = algebraic identity (compute the same value via a different
path, often by composing other substrate primitives)
If AUT == W1 == W2, the result is TRIANGULATED on that input.
Aggregate verdict over the battery: tri_total, tri_agree, tri_fail.
genealogy_id: substrate_triangulation_battery_2026_05_14
lineage_id: self_verified_correctness
dependencies 9 imports · 0 importers
imports: nx_syscalls.nxnx_runtime.nxnx_tier.nxnx_add_5.nxnx_add_10.nxnx_add_20.nxnx_classical_unpatented.nxnx_binary_search.nxnx_lcm.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
| none |
functions
| 37 | func nx_tri_check(label: *u8, aut: nx_int, w1: nx_int, w2: nx_int, |
| 54 | func main() -> nx_exit |