code wiki / (root) / nx_solve.nx

nx_solve.nx

buildroot/runtime/nx_solve.nx

6131 B147 linesdepth 8pulls 22 transitivereach 2 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_solve.nx -- composite CASC solver entry point. One call that does the full pipeline: 1. Load TPTP CNF file via native sys_read_file 2. (optional) Pre-saturation simplify (drop tautologies + subsumed) 3. (optional) Sine selection (drop irrelevant axioms) 4. Discount-loop saturation with paramodulation + indexed forward subsumption + backward simp 5. Return verdict Used as the substrate's main entry point for CASC-style submissions: caller passes a path and gets back "UNSAT" / "UNKNOWN" / file error. All native NishiLang -- no shell wrapper, no Python.

dependencies 19 imports · 2 importers

nx_syscalls.nx nx_runtime.nx nx_tier.nx nx_result.nx nx_unify.nx nx_resolution.nx nx_subsumption.nx nx_tautology.nx nx_disctree.nx nx_paramodulation.nx nx_solve.nx nx_avatar_solve_test.nx nx_solve_test.nx

diagram shows first 10 each side; +9 more imports, +0 more importers in the complete lists below.

imports: nx_syscalls.nxnx_runtime.nxnx_tier.nxnx_result.nxnx_unify.nxnx_resolution.nxnx_subsumption.nxnx_tautology.nxnx_disctree.nxnx_paramodulation.nxnx_saturation.nxnx_pre_sat.nxnx_sine.nxnx_tptp_symtab.nxnx_tptp_term.nxnx_tptp_formula.nxnx_tptp_load.nxnx_clause_components.nxnx_avatar_split.nx

imported by: nx_avatar_solve_test.nxnx_solve_test.nx

structs

46struct SolveOpts

consts

40const NX_MAGIC_1024: i64 = 1024
42const NX_SOLVE_MAX_CLAUSES: nx_int = 256
53const NX_SOLVE_OPTS_BYTES: nx_int = 40

functions

55func nx_solve_opts_default() -> *SolveOpts
called by 1: solve_one calls 1: sys_mmap
67func nx_solve_tptp_file(path: *u8, eq_sym: nx_int, opts: *SolveOpts) -> *NxResult
133func nx_avatar_solve_simple(input: *Clause, n_input: nx_int,