code wiki / (root) / nx_tstp_emit.nx

nx_tstp_emit.nx

buildroot/runtime/nx_tstp_emit.nx

4510 B110 linesdepth 7pulls 11 transitivereach 1 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_tstp_emit.nx -- TSTP-format proof serializer. Walks the ProofLog + clause set and emits the proof in TSTP format: cnf(c0, axiom, p(a)). cnf(c1, axiom, ~p(a)). cnf(c2, plain, $false, inference(resolution, [], [c0, c1])). Required for CASC submission output. Closes the substrate-side of the BLOCKED_ON_PROOF_HISTORY_TRACKING axis once integrated with the saturation loop (this commit ships the standalone serializer; loop integration is a follow-up). Output discipline: each clause emitted exactly once in proof order (transitive ancestors of the empty clause first, then the empty derivation last). The caller can pre-walk via nx_proof_walk_ancestors to determine the minimal proof support.

dependencies 10 imports · 1 importers

nx_syscalls.nx nx_runtime.nx nx_tier.nx nx_str.nx nx_result.nx nx_unify.nx nx_resolution.nx nx_tptp_symtab.nx nx_tptp_emit.nx nx_proof_log.nx nx_tstp_emit.nx nx_tstp_emit_test.nx

imports: nx_syscalls.nxnx_runtime.nxnx_tier.nxnx_str.nxnx_result.nxnx_unify.nxnx_resolution.nxnx_tptp_symtab.nxnx_tptp_emit.nxnx_proof_log.nx

imported by: nx_tstp_emit_test.nx

structs

none

consts

none

functions

38func nx_int_to_decimal(n: nx_int, out: *u8) -> nx_int;
called by 1: nx_tstp_emit_clause
42func nx_tstp_emit_clause(c: *Clause, idx: nx_int, log: *ProofLog,
98func nx_tstp_emit_proof(clauses: *Clause, n_clauses: nx_int, log: *ProofLog,
called by 1: main calls 1: nx_tstp_emit_clause