Theorem knowledge explorer for the Learning Real Analysis project.
Extracted from Learning-Real-Analysis/theorem-explorer/.
extract_lra_chapter.py — LaTeX → knowledge JSON extractor
run_extraction.py — batch extraction runner
seed_to_knowledge_json_v3_fixed6.py — seed → knowledge.json transformer
clean_explorer.py — cleans explorer output
knowledge-explorer.html — interactive HTML graph viewer
real-analysis-explorer.html — full explorer UI
preview.html — preview UI
PIPELINE.md — pipeline documentation
knowledge.json — current knowledge graph
knowledge-seed.json — seed data
graph-edges.json — dependency graph edges
python scripts/run_extraction.py --repos-root /path/to/workspace-containing-lra-volume-repos
python scripts/extract_model_artifacts.py --source-root /path/to/workspace-containing-lra-volume-repos
python scripts/build_to_prove.py --repos-root /path/to/workspace-containing-lra-volume-repos --write-volume-trackers
python scripts/build_proof_vault_index.py --vault-root /path/to/lra-proof-vaultThe extraction scripts do not use the Learning-Real-Analysis monorepo as a
TeX source. They require local split volume checkouts (lra-volume-i through
lra-volume-viii) plus lra-governance. The canonical chapter and book list is
lra-governance/docs/architecture/book-registry.json; extraction hard fails if
an expected volume, chapter, notes/index.tex, or proofs/index.tex is
missing.
Generated explorer records include volume, book, chapter, and section metadata.
The browser UI uses that schema for the Volume → Book → Chapter → Section
filters. to-prove.json uses the same metadata to power the To Prove mode and
can refresh each volume repo's root proofs-to-do.md tracker.
Extraction reads live TeX files through the same volume governance inventory provider used by validators, so validation and explorer publication operate on the same canonical source set.
The HTML viewers are self-contained and load knowledge.json and graph-edges.json from the same directory.
Explorer nodes may include formal verification metadata. The UI accepts either
a nested verification object or the equivalent flat fields:
verification.systemorverification_systemverification.statusorverification_statusverification.module,lean_module, orverification_moduleverification.declaration,lean_decl, orverification_declverification.source_path,lean_source, orverification_sourceverification.lean_code_b64,verification.code_b64,lean_code_b64, orverification_code_b64
The proof modal renders these records in the Verification tab. Use checked
only for declarations that are accepted by the formal build without
placeholders for that declaration; use statement or pending otherwise.