Skip to content

Fix #21816: Error: Ill-formed constant (wrong canonical name).#22243

Open
ppedrot wants to merge 1 commit into
rocq-prover:masterfrom
ppedrot:fix-21816
Open

Fix #21816: Error: Ill-formed constant (wrong canonical name).#22243
ppedrot wants to merge 1 commit into
rocq-prover:masterfrom
ppedrot:fix-21816

Conversation

@ppedrot

@ppedrot ppedrot commented Jul 8, 2026

Copy link
Copy Markdown
Member

We tweak Mod_subst.add_delta_resolver by trying to preserve equivalence information instead of replacing it with inlining information. Kernel-wise this cannot be worse than the previous version, as the inlined body should be convertible to the equivalent name. Meanwhile, it fixes #21816 which stemmed from the upper layers that relied on the composition of substitutions to compute libobjects in one go.

This fix was suggested by Claude Opus. I am not 100% convinced there is not an other design issue somewhere high up in Declaremods that could have been solved differently, especially without touching the kernel at all. But as explained above, this change should not hurt kernel consistenty. (Famous last words.)

…me).

We tweak Mod_subst.add_delta_resolver by trying to preserve equivalence
information instead of replacing it with inlining information. Kernel-wise
this cannot be worse than the previous version, as the inlined body
should be convertible to the equivalent name. Meanwhile, it fixes rocq-prover#21816
which stemmed from the upper layers that relied on the composition of
substitutions to compute libobjects in one go.

This fix was suggested by Claude Opus. I am not 100% convinced there is not
an other design issue somewhere high up in Declaremods that could have been
solved differently, especially without touching the kernel at all. But as
explained above, this change should not hurt kernel consistenty. (Famous
last words.)
@ppedrot ppedrot added this to the 9.3+rc1 milestone Jul 8, 2026
@ppedrot ppedrot requested a review from a team as a code owner July 8, 2026 19:10
@ppedrot ppedrot added kind: fix This fixes a bug or incorrect documentation. request: full CI Use this label when you want your next push to trigger a full CI. labels Jul 8, 2026
@coqbot-app coqbot-app Bot removed the request: full CI Use this label when you want your next push to trigger a full CI. label Jul 8, 2026
@SkySkimmer SkySkimmer self-assigned this Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind: fix This fixes a bug or incorrect documentation.

Projects

None yet

2 participants