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

Adapt to Coq PR #18007: Proof_using.definition_using takes names of fixpoints being built #654

Conversation

herbelin
Copy link
Member

@herbelin herbelin commented Oct 9, 2023

This PR is to adapt to Coq PR #18007. Its purpose is to ensure that the kernel does not receive names that are not available in the section.

When building fixpoints, the named context contains the name of the fixpoints being built (not sure this is a good way to do but it is how it is done now). So, we need to tell Proof_using.definition_using to exclude these variables.

I attempted a quick fix for vscoq which is to send to definition_using all the names of proofs being under construction (which are in the LemmaStack iiuc). This is a priori a superset of what is expected by Proof_using.definition_using, but I guess this should do the job.

Don't hesitate to propose another fix.

In any case, this is to be merged synchronously with coq/coq#18007.

@ppedrot
Copy link
Member

ppedrot commented Oct 18, 2023

Please merge now.

@SkySkimmer
Copy link
Contributor

ping

@SkySkimmer
Copy link
Contributor

ping

or add @coq-community/coq-overlay-mergers to allowed mergers on this repo

@ppedrot
Copy link
Member

ppedrot commented Oct 23, 2023

Ping @rtetley explicitly just in case.

@rtetley
Copy link
Collaborator

rtetley commented Oct 24, 2023

Sorry, missed this one, I'll be sure to track the PR next time. However this seems to be failing ?

@SkySkimmer
Copy link
Contributor

I guess CI wasn't run since the upstream PR was merged

@SkySkimmer
Copy link
Contributor

Some of the CI jobs are running the wrong coq version


File "dm/completionSuggester.ml", line 424, characters 2-23:
424 |   Search.generic_search env sigma display;
        ^^^^^^^^^^^^^^^^^^^^^
Error: This function has type Environ.env -> Search.display_function -> unit
       It is applied to too many arguments; maybe you forgot a `;'.

@SkySkimmer SkySkimmer merged commit d2b3249 into coq:coq-master Oct 24, 2023
5 of 9 checks passed
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.

4 participants