语义身份压缩:零误差定律、率-失真和神经符号必要性
Semantic Completeness for Correct Maintenance: A Strict Hierarchy of Typing and Inheritance
AI总结:
研究提出语义身份压缩的零误差定律和率-失真理论,通过碰撞纤维几何分析,为非单射语义表示提供必要的系统级补充。
摘要:
符号系统操作于精确身份:变量指代特定对象,指针指向精确内存位置,数据库键引用单一记录。神经嵌入通过压缩语义细节来泛化,但这种压缩导致了碰撞歧义:多个不同实体可以共享相同表示值。精确身份恢复需要额外信息,尤其是在表示纤维大小大于一时。残余成本由一个组合对象控制:表示映射π的碰撞纤维几何。设A_π= max_u |π^{-1}(u)|为最大碰撞纤维。有限定律包括一个紧致固定长度反向定律L≥log₂A_π,一个精确有限块缩放定律,一个点适应预算⌈log₂|π^{-1}(u)|⌉,以及通过可恢复质量分解的任意有限源的精确纤维率-失真定律。统一单块公式D* (L)=max(0,1-2^L/a)在所有质量位于一个碰撞块时作为闭式特殊情况出现,其中a=A_π是碰撞块大小。相同的纤维几何决定了查询复杂性和区分家族的规范结构。由于这种残余歧义是结构性而非表示特定的,符号身份机制(句柄、键、指针、名义标签)是任何非单射语义表示的必要系统级补充。所有主要结果均在Lean 4中机检查。
英文摘要:
Removing nominal types or inheritance is defended as reducing burden; cited Java and Go rationales measure no comparison. Correct maintenance minimizes outside answers and repair obligations, preserving required answers and excluding invalid states. Answers identify meanings, memberships, and required implementations. Five capacities form a strict chain. With nominal identities fixed, only multiple contract and implementation parents attain the answer-and-repair optimum on every finite declared history. Incomplete mechanisms force slop: answers restated in code or tooling. In 20 pinned multiple-inheritance Python projects, recovered implementation-class pairs grouped by source class would need outside supply: 12,880 without inheritance, 8,792 under first parents, 739 under sound one-parent optima (checked), zero with multiple parents. With provider and state carriers fixed, state-bearing rows alone force 236 outside pairs. Java and C# interface defaults supply no instance state. At least 24 of 65 size-qualified wheels among the top 150 pure-Python downloads have positive recovered gap (36.9%, 34 unscored). For distinct, independently changing implementations, the ancestry gap is the exact outside-pair minimum with one parent supplying only required pairs, even with reparenting, infinite helpers, delegation, or generators. Zero gap and one-parent contract coverage hold iff class sets nest or are disjoint. Identical records with distinct answers need the confusability graph's chromatic number of keys. Every tree-shaped growth step inserting an off-path provider strictly between ancestors forces one-parent repair. Every snapshot in our constructed history has gap zero, yet repair obligations recur each step; multiple parents add one edge per step. At fixed design costs, bans never lower optima; savings imply suboptimal unrestricted choices.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。