New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Renamed arguments get misaligned after closing doubly nested sections #12755
Comments
This was referenced Dec 9, 2023
herbelin
added a commit
to herbelin/github-coq
that referenced
this issue
Dec 9, 2023
Fixed in #18393. |
herbelin
added a commit
to herbelin/github-coq
that referenced
this issue
Dec 10, 2023
SkySkimmer
pushed a commit
to SkySkimmer/coq
that referenced
this issue
Dec 13, 2023
SkySkimmer
added a commit
to SkySkimmer/coq
that referenced
this issue
Dec 13, 2023
…wrongly shifted in nested sections
SkySkimmer
pushed a commit
that referenced
this issue
Dec 14, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description of the problem
When
Global Arguments ... : rename
is used within a section within another section, when the outer section is closed the names get messed up.See above how after
End A
the nameb
is dropped and all the names are shifted one place to the left.Coq Version
Coq master 55f4095, but also appears to have existed for the past 9 years since the renaming feature was introduced in 39fd2b1.
Root cause
coq/pretyping/arguments_renaming.ml
Lines 46 to 51 in 55f4095
Here we only prepend the most recent section's variables to the list of original names.
The text was updated successfully, but these errors were encountered: