KnowTeX: 可视化数学依赖关系
KnowTeX: Visualizing Mathematical Dependencies
AI总结:
KnowTeX通过可视化数学依赖关系,帮助在非正式和正式数学表示间建立联系,提升教育和形式化过程的效率。
摘要:
数学知识以多种形式存在,从非正式的教材和讲义到大规模的正式证明库,但在这类表示之间转换仍然困难。非正式文本隐藏了依赖关系,而正式系统则以不总是易于阅读的方式暴露每一个细节。依赖图提供了一个中间方案,通过使结果、定义和证明的结构可视化。我们介绍了KnowTeX,一个独立且用户友好的工具,它扩展了Lean的Blueprints理念,使从LaTeX源代码直接可视化概念依赖关系成为可能。通过简单的“uses”命令,KnowTeX提取陈述之间的关系,并生成可预览的DOT和TikZ格式图表。应用于数学文本时,这些图表能澄清核心结果,支持教育和形式化,并提供一种对非正式和正式数学表示进行对齐的资源。我们主张依赖图应成为数学写作的标准特征,这对人类读者和自动化系统都有益。
英文摘要:
Dependency graphs that show how definitions, theorems, and proofs relate to each other are valuable for understanding the structure of mathematical texts. Existing tools such as Lean Blueprint and plasTeXdepgraph generate such graphs within formal proof ecosystems, but they require familiarity with proof assistants or specific compilation pipelines. We present KnowTeX, a standalone Python tool that extracts dependency graphs directly from LaTeX sources without requiring any external framework. KnowTeX supports two complementary modes: a manual mode where authors annotate their source with lightweight commands compatible with Lean Blueprint, and an infer mode that automatically discovers dependencies through a layered system of deterministic and heuristic rules. The tool handles multi-file projects, detects cycles, applies transitive reduction, and exports graphs in DOT, TikZ, and PNG formats with an interactive preview. We evaluate KnowTeX on several mathematical texts and discuss how it complements recent tools such as LeanArchitect, which operates from the Lean side, while KnowTeX works entirely on the LaTeX side without requiring any formalization.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。