Admitted does not emit univ constraints from the proof - #19573
Conversation
herbelin
left a comment
There was a problem hiding this comment.
I would call it restoring of a previous behavior more than fix, but ok.
|
@herbelin I indeed agree with your point, this is actually a kind of choice that is hard to make at the level of For example, in So this is IMO more of layering issue. |
|
Do you mean that Or that |
|
I don't think the semantics of a coq script should be up to the document manager. That sounds rather difficult to debug when someone gets a problem with one manager and can't be reproduced with another. |
|
ie there should be 1 language "coq" not a bunch of variants "coq-coqc" "coq-fleche" "coq-coqide"... |
I don't see a way to sentence-level commands to control document-level semantics, so IMHO what you ask is impossible with the current design of Coq. For example, what to do on error, etc... There are multiple other cases, for example proof delegation, interaction with externals tools, etc... I don't see how different document models can yield the same semantics in this case, that is to say, documents with incomplete proofs. Maybe document managers could agree on the semantics of error-free and admit-free documents. But once you have incomplete stuff, there are just different valid approaches. In fact,
@herbelin I guess several options are valid, I was pointing out that indeed IMHO That seems like very annoying, and to me a workflow-killer.
|
I agree that document managers can do different things with errors. |
Hence, IMHO, it should not be a command, note that Coq did fine not having |
This comment was marked as off-topic.
This comment was marked as off-topic.
|
@herbelin IDK what any of that means |
|
IMHO we should remove |
|
Admitted is used significantly by the bug minimizer so removing it would take some work there |
Yes, I don't think removing Also the bug minimizer could see big improvement by using coq-lsp and its caching / error recovery system / code slicing caps, and wouldn't need I didn't mean to hijack this PR, I'm sorry, just wanted to give some more perspective on IMHO it is best is to merge this PR for now, and maybe backport. As of today we all grew used to |
|
@SkySkimmer maybe you could update the commit message to indicate this reverts a particular change if you feel like it? I did update the PR description. |
|
I wonder if this requires some kind of change entry tho? |
The back and forth is internal to 8.21 AFAICT so no |
4fb8aa9 to
6f684d7
Compare
|
only changed the commit message, shouldn't need another full ci |
|
Oh indeed this is 8.21 only, my bad cc: #19091 I should have done |
|
@SkySkimmer: my message was indeed un grand n'importe quoi. I canceled it. What I wanted to say is that we could have two words to reflect whether side-effects are expected or not. These words could be:
At least, that would clarify why (The current situation is probably not so much a big deal in practice though.) |
|
@herbelin IMHO these kind of setups tend to be annoying for the user. Having to edit your document to get a change of behavior can get heavy, so IMHO these options live better at the level of user-config. |
|
@SkySkimmer dunno what happened but test suite is failing :( |
Fix rocq-prover#19566 (introduced in 3b4cf49)
6f684d7 to
b4d93b8
Compare
|
Indeed if we don't use the state at the end of the proof it's not possible to admit at https://github.com/coq/coq/blob/cd066bd59731fc878aa368aa9cb5ad488d9031ba/test-suite/bugs/bug_18951.v#L13 |
|
@coqbot run full ci |
|
@coqbot: merge now |
Fix #19566
Reverts part 3b4cf49