nx_corpus_drive.nx
buildroot/runtime/nx_corpus_drive.nx
about
nx_corpus_drive.nx -- unified theorem-corpus ingestion driver.
Reads a source file (any of MetaMath / Lean / Mizar / Coq / HOL /
Isabelle), dispatches to the appropriate adapter, emits one
JSONL record per identified declaration to stdout.
Usage:
nx_corpus_drive <file_path> <source_type>
where <source_type> is one of:
metamath lean mizar coq hol isabelle
Output format per line:
{"source":"<type>","file":"<basename>","kind":N,"number":N}
This is the auto-ingestion entry point. Bash driver
nx_corpus_drive.sh walks a corpus directory and invokes this for
every recognized file, accumulating the unified corpus JSONL.
dependencies 8 imports · 0 importers
imports: syscalls.nxruntime.nxnx_theorem_ingest.nxnx_lean_ingest.nxnx_mizar_ingest.nxnx_coq_ingest.nxnx_hol_ingest.nxnx_isabelle_ingest.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 37 | func emit_record(source: *u8, kind: i64, number: i64) -> i64 called by 6: drive_metamathdrive_leandrive_mizardrive_coqdrive_holdrive_isabelle calls 3: printprint_i64println |
| 50 | func drive_metamath(buf: *u8, len: i64) -> i64 |
| 61 | func drive_lean(buf: *u8, len: i64) -> i64 |
| 72 | func drive_mizar(buf: *u8, len: i64) -> i64 |
| 83 | func drive_coq(buf: *u8, len: i64) -> i64 |
| 94 | func drive_hol(buf: *u8, len: i64) -> i64 |
| 105 | func drive_isabelle(buf: *u8, len: i64) -> i64 |
| 118 | func main(argc: i64, argv: *i64) -> i64 |