Skip to content

induction/destruct also clear section variables#22004

Draft
SkySkimmer wants to merge 1 commit into
rocq-prover:masterfrom
SkySkimmer:induct-clear-section
Draft

induction/destruct also clear section variables#22004
SkySkimmer wants to merge 1 commit into
rocq-prover:masterfrom
SkySkimmer:induct-clear-section

Conversation

@SkySkimmer
Copy link
Copy Markdown
Contributor

We already have the syntax destruct (x) if we don't want to clear, so this maybe-don't-clear behaviour may not be a good idea.

OTOH we still don't clear when the variable appears through a definition (indirect occurrence) since that would be invalid. With this patch this causes warning cannot-remove-as-expected.

We already have the syntax `destruct (x)` if we don't want to clear,
so this maybe-don't-clear behaviour may not be a good idea.

OTOH we still don't clear when the variable appears through a
definition (indirect occurrence) since that would be invalid.
With this patch this causes warning cannot-remove-as-expected.
@SkySkimmer SkySkimmer added the request: full CI Use this label when you want your next push to trigger a full CI. label May 5, 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 May 5, 2026
@yannl35133
Copy link
Copy Markdown
Contributor

I don't really understand the code changes, but since section variables are already cleared when they appear in the indices of the inductive being destructed, this can be seen as a parity change. I also have some questions about the status of section variables in proofs, but I'll ask it in the other PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants