Skip to content
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

[wip] Incorrect experiment to clean up some code in the stm #18976

Closed
wants to merge 1 commit into from

Conversation

ejgallego
Copy link
Member

It seems these files were never used?

It seems these files were never used?
@ejgallego ejgallego added kind: cleanup Code removal, deprecation, refactorings, etc. part: STM State Transition Machine, asynchronous proofs, etc. labels Apr 25, 2024
@ejgallego ejgallego added this to the 8.20+rc1 milestone Apr 25, 2024
@ejgallego ejgallego requested a review from a team as a code owner April 25, 2024 13:08
@coqbot-app coqbot-app bot added the needs: full CI The latest GitLab pipeline that ran was a light CI. Say "@coqbot run full ci" to get a full CI. label Apr 25, 2024
| `Not -> Leaks

let () = register_proof_block_delimiter
"bullet" static_bullet dynamic_bullet
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this file is here for the effects like this one.

Copy link
Member Author

Choose a reason for hiding this comment

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

Indeed I don't think we test that in test-suite.

I'll move this PR to draft for now; we could gain a bit from removing the error recovery thing of the STM, which AFAICT newer worked too well (at least in SerAPI / jsCoq we had to disable it, otherwise things got really flaky)

On the other hand that's not a super gain from my own experiments.

Copy link
Member

@gares gares Apr 26, 2024

Choose a reason for hiding this comment

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

IIRC the advantage of having the analysis of "sub proof boxes" in Coq proper rather than the document manager is that one needs the internals of the proof engine. In particular it makes sense to recover/admit a broken proof as in { broken proof } .. { another proof } only if the type of the broken proof is ground (no evar the broken proof should be filled occur in it) and if the proof term itself is not occurring in any other goal.

Maybe the code is ugly or broken, but doing it naively in the DM by putting admit when the structure allows for it is not sound.

Copy link
Member

Choose a reason for hiding this comment

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

We can of course say it is not the STM that lets one skip over broken sub-proofs, but the code doing the analysis really belongs to Coq's proof model.

Copy link
Member Author

Choose a reason for hiding this comment

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

What's you definition of "sound" in this context?

@ejgallego ejgallego added needs: progress Work in progress: awaiting action from the author. needs: discussion Further discussion is needed. labels Apr 25, 2024
@ejgallego ejgallego marked this pull request as draft April 25, 2024 13:38
@ejgallego ejgallego changed the title [stm] Remove some dead code. [wip] Incorrect experiment to clean up some code in the stm Apr 26, 2024
@ejgallego ejgallego closed this May 13, 2024
@coqbot-app coqbot-app bot removed this from the 8.20+rc1 milestone May 13, 2024
@ejgallego ejgallego deleted the stm_nousedfiles branch May 13, 2024 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: cleanup Code removal, deprecation, refactorings, etc. needs: discussion Further discussion is needed. needs: full CI The latest GitLab pipeline that ran was a light CI. Say "@coqbot run full ci" to get a full CI. needs: progress Work in progress: awaiting action from the author. part: STM State Transition Machine, asynchronous proofs, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants