计算机科学 > 程序设计语言
[提交于 2026年7月22日 (v1),最后修订于 2026年11月25日 (此版本, v5)]
标题:Generic Constraints Projection: An Exact Criterion for Preserving Type Comparison Reports under Record Width Extension
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:A release can preserve a program's type and output while changing a comparison cited in an approved report. A publisher needs to know whether the original approval covers the new release's report under the same identifier and which source comparisons yield different reports. Reconstruction answers these questions after projection. We study them in Generic Constraints Projection for a pure record language whose comparison stops at type equality. For a fixed source export over ground types built from immutable records, primitives, top and bottom, we prove an exact criterion under record width extension. Two independently projected valid certificates yield the same report up to session renaming exactly when their read bindings agree and the actual type at each old stopping position is unchanged. With read bindings fixed, we trace these positions to input paths. If each old record admits a fresh field name, the resulting subtree equalities form the unique irredundant conjunction on old input-record paths for whole-report preservation. For completed mixed edits, a separate criterion uses the new valid certificate to check required types, old leaf endpoints and the surplus fields that keep old branches open. Across two consecutive API Extractor release windows, one published member addition changed an interface yet preserved both comparisons in our mapper. Given the old export, input types and fixed read bindings, occurrence-specific paths identify, before reprojection, exactly which source comparisons would yield different reports after proposed field additions.