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

Anomaly "in Lemmas.save_lemma_admitted: more than one statement." with Derive #18951

Open
SkySkimmer opened this issue Apr 18, 2024 · 3 comments
Labels
kind: anomaly An uncaught exception has been raised.

Comments

@SkySkimmer
Copy link
Contributor

Require Import Derive.

Derive foo SuchThat True As bar.
Proof. Admitted.

Should be a regular error "Admitted does not support multiple statements" as is done in save_lemma_admitted_delayed
(in fact the delayed case should be the anomaly as multi statement proofs do not support delaying)

@SkySkimmer SkySkimmer added the kind: anomaly An uncaught exception has been raised. label Apr 18, 2024
@herbelin
Copy link
Member

herbelin commented May 23, 2024

coq/ceps#89 suggests that by postponing the computation of universes from before finish_admitted to within declare_possibly_mutual_parameter, we could compute the universes for each component of the block of theorems individually, relaxing the single-statement constraints. I'll have a look at it.

@ejgallego ejgallego added this to TODO in Proof Handling via automation May 23, 2024
@SkySkimmer
Copy link
Contributor Author

I don't think the error is about universes.

@herbelin
Copy link
Member

Sorry, there was an implicit in my message namely that what apparently forced the restriction to one entry is that the current API expects only one universe entry, so if declare_possibly_mutual_parameter were computing itself the univs (one for each proof entry), we would not need the restriction to one entry.

herbelin added a commit to herbelin/github-coq that referenced this issue May 25, 2024
This includes:
- supporting implicit arguments
- supporting universe polymorphism
- fixing coq#18951: Admitted for Derive

TODO: pass definition attributes.
herbelin added a commit to herbelin/github-coq that referenced this issue May 25, 2024
This includes:
- supporting implicit arguments
- supporting universe polymorphism
- fixing coq#18951: Admitted for Derive

TODO: pass definition attributes.
herbelin added a commit to herbelin/github-coq that referenced this issue May 25, 2024
This includes:
- supporting implicit arguments
- supporting universe polymorphism
- fixing coq#18951: Admitted for Derive

TODO: pass definition attributes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: anomaly An uncaught exception has been raised.
Projects
Development

No branches or pull requests

2 participants