nx_tstp_emit.nx
buildroot/runtime/nx_tstp_emit.nx
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
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
| 38 | func nx_int_to_decimal(n: nx_int, out: *u8) -> nx_int; called by 1: nx_tstp_emit_clause |
| 42 | func nx_tstp_emit_clause(c: *Clause, idx: nx_int, log: *ProofLog, |
| 98 | func nx_tstp_emit_proof(clauses: *Clause, n_clauses: nx_int, log: *ProofLog, |