Skip to content

Fix #21902: Incorrect path constraint in with Module construct.#21904

Open
ppedrot wants to merge 1 commit intorocq-prover:masterfrom
ppedrot:fix-21902
Open

Fix #21902: Incorrect path constraint in with Module construct.#21904
ppedrot wants to merge 1 commit intorocq-prover:masterfrom
ppedrot:fix-21902

Conversation

@ppedrot
Copy link
Copy Markdown
Member

@ppedrot ppedrot commented Apr 8, 2026

This is seemingly not a soundness issue but it is still problematic enough.

@ppedrot ppedrot added this to the 9.2.1 milestone Apr 8, 2026
@ppedrot ppedrot added the kind: fix This fixes a bug or incorrect documentation. label Apr 8, 2026
@ppedrot ppedrot requested a review from a team as a code owner April 8, 2026 17:09
@ppedrot ppedrot added the request: full CI Use this label when you want your next push to trigger a full CI. label Apr 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 Apr 8, 2026
| Algebraic (MENoFunctor (MEident mp0)) ->
let mpnew = rebuild_mp mp0 idl in
check_modpath_equiv env' mpnew mp;
let () = check_modpath_equiv env' mpnew new_mp in
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use more understandable names than mpnew vs new_mp?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There you go, here is a version without a confusing name (and the same comparison order as in the check for the toplevel case).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At least now it mirrors better what happens 32 lines above; not that I could attest that part was correct.

…ruct.

This is seemingly not a soundness issue but it is still problematic enough.
@ppedrot ppedrot added the request: full CI Use this label when you want your next push to trigger a full CI. label Apr 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 Apr 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

Development

Successfully merging this pull request may close these issues.

2 participants