Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Adapt to Coq PR #18591: better refolding of addn induces "simpl never" now respected #54

Conversation

herbelin
Copy link

@herbelin herbelin commented Jun 19, 2024

An equality 2%N = (1 + \rank V)%N was previously leading to 1%N = (\rank V)%N after injection but with Coq PR coq/coq#18591, it respects simpl never and only leads to 1%N = (0 + \rank V)%N. So, we add a rewrite of addSn and add0n to recover the previous behaviour. This rewrite is additionally made optional so as to preserve the compatibility.

Also, a //= simplification in PFsection13.v gives 1 + (c - 2) which now needs an extra add1n.

PS: This is suspectingly backwards-compatible, thus mergeable as soon as now (but I did not test myself).

…" now respected

An equality "2%N = (1 + \rank V)%N" was previously leading to "1%N = (\rank V)%N"
after injection but with the PR, it respects "simpl never" and only leads to
"1%N = (0 + \rank V)%N". So, we add a rewrite of addSn and add0n to
recover the previous behavior. This rewrite is additionally made
optional so as to preserve the compatibility.

Another simplification, in PFsection13.v, gives "1 + (c - 2)" which
now needs an extra add1n.
@proux01
Copy link
Contributor

proux01 commented Jun 30, 2024

Subsumed by #55 , can be closed

@herbelin herbelin closed this Jun 30, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants