code wiki / (root) / nx_notebook_demo.nx

nx_notebook_demo.nx

buildroot/runtime/nx_notebook_demo.nx

4751 B99 linesdepth 5pulls 8 transitivereach 0 importersview sourcekind sketch/demo
docsdependenciesstructsconstsfunctions

about

nx_notebook_demo.nx -- substrate-side notebook cell evaluator demo. Per user 2026-05-14: the notebook at nishifamily.com/math should let users test the algorithms with Unicode math symbols, no LaTeX. This is the foundation -- a small program that demonstrates: (1) A "cell" reading a small expression in NishiLang syntax (here hardcoded; future: pulled from web request) (2) Dispatching to a registered algorithm by name (here: by direct function call; future: looked up in nx_theorem_registry) (3) Rendering results with Unicode math symbols (no LaTeX) (4) Including provenance + verdict (every result traces back to triangulated correctness)

dependencies 6 imports · 0 importers

nx_syscalls.nx nx_runtime.nx nx_tier.nx nx_unicode_math.nx nx_classical_unpatented.nx nx_classical_unpatented_2.nx nx_notebook_demo.nx

imports: nx_syscalls.nxnx_runtime.nxnx_tier.nxnx_unicode_math.nxnx_classical_unpatented.nxnx_classical_unpatented_2.nx

imported by: nobody (leaf or entry point)

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

main nx_render_header println sys_write strlen sys_mmap print sys_write ↻ strlen ↻ println ↻ nx_render_cell_input print ↻ println ↻ nx_render_cell_output_int print ↻ print_i64 sys_mmap ↻ itoa sys_mmap ↻ sys_write ↻ println ↻ nx_fibonacci nx_render_provenance print ↻ println ↻ nx_gcd_euclidean print ↻ nx_sym_forall nx_sym_in nx_sym_integers nx_sym_ge nx_mod_pow nx_sym_times nx_is_prime_trial nx_sym_iff nx_sym_exists nx_sym_subset nx_sym_sum nx_sym_integral nx_sym_partial

structs

none

consts

27const K_MAGIC_1000000007: i64 = 1000000007

functions

29func nx_render_header(title: *u8)
called by 1: main calls 2: printlnprint
35func nx_render_cell_input(input: *u8)
called by 1: main calls 2: printprintln
39func nx_render_cell_output_int(value: nx_int)
called by 1: main calls 3: printprint_i64println
43func nx_render_provenance(algo: *u8, l5: *u8)
called by 1: main calls 2: printprintln
47func main() -> nx_exit