code wiki / (root) / nx_proofs_machine_checked.nx

nx_proofs_machine_checked.nx

buildroot/runtime/nx_proofs_machine_checked.nx

8048 B159 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind tooltopic proofs
docsdependenciesstructsconstsfunctions

about

nx_proofs_machine_checked.nx -- real machine-checked proofs via nx_derive (axioms -> inference rules -> theorems). Per user 2026-05-14: "Machine-checkable proofs ... we especially need this". The substrate already has nx_axioms (52 axioms across Peano / ZFC / logic / order / algebra / measure / geometry / category) and nx_derive (16 inference rules + verifier). This file builds REAL derivation chains for foundational theorems and verifies each via nx_deriv_verify. Not property tests; actual proof DAGs that the substrate-side kernel approves.

dependencies 5 imports · 0 importers

nx_syscalls.nx nx_runtime.nx nx_tier.nx nx_axioms.nx nx_derive.nx nx_proofs_machine_checked.nx

imports: nx_syscalls.nxnx_runtime.nxnx_tier.nxnx_axioms.nxnx_derive.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap println sys_write strlen sys_mmap ↻ nx_deriv_chain_alloc nx_deriv_add_axiom nx_axiom_is_valid nx_deriv_node_at nx_deriv_mark_theorem nx_deriv_node_at ↻ nx_deriv_verify nx_deriv_node_at ↻ nx_axiom_is_valid ↻ nx_drule_arity nx_report print sys_write ↻ strlen ↻ println ↻ print_i64 sys_mmap ↻ itoa sys_mmap ↻ sys_write ↻ nx_deriv_add_step nx_drule_arity ↻ nx_deriv_node_at ↻ print ↻ print_i64 ↻

structs

none

consts

none

functions

24func nx_report(label: *u8, status: nx_int, agree: *nx_int, fail: *nx_int)
called by 1: main calls 3: printprintlnprint_i64
35func main() -> nx_exit