Mathlib 的网络结构
The Network Structure of Mathlib
AI总结:
本文通过网络分析研究 Lean 4 的 Mathlib 库,揭示了逻辑、数学和基础设施依赖之间的复杂关系,发现人类分类与逻辑结构存在差异,开发者仅使用了少量导入范围,形式化压缩了语义层次。
摘要:
Lean 4 的 Mathlib 持续发展产生了宏观的结构复杂性,交织了逻辑、数学和基础设施依赖。我们对这个库进行了网络分析,将其依赖结构提取为包含 308,129 个声明、840 万个边和 7,563 个模块的多层图。通过引入将显式边与由编译器合成或由证明驱动的边分离的图分解,我们量化了形式化数学的结构属性。我们的分析揭示了三个发现。首先,由人类设计的分类与逻辑结构存在差异,表现出 50.9% 的命名空间耦合。其次,开发者仅使用了导入范围的中位数 1.6%。第三,形式化压缩了语义层次,网络中心性捕捉了语言基础设施而非数学相关性。
英文摘要:
The ongoing development of Lean 4's Mathlib has produced a macroscopic structural complexity that interweaves logical, mathematical, and infrastructural dependencies. We present a network analysis of this library, extracting its dependency structure into a multilayer graph of 308,129 declarations, 8.4 million edges, and 7,563 modules. By introducing graph decompositions that isolate explicit edges from those synthesized by the compiler or driven by proofs, we quantify the structural properties of formalized mathematics. Our analysis reveals three findings. First, taxonomies designed by humans diverge from logical structures, exhibiting a 50.9% coupling across namespaces. Second, developers utilize a median of 1.6% of the imported scope. Third, formalization compresses semantic hierarchies, with network centrality capturing language infrastructure rather than mathematical relevance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。