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

[Set Suggest Proof Using] should print suggestions only for objects the user defines, not things defined behind the scenes by the system itself. #4004

Closed
coqbot opened this issue Feb 6, 2015 · 3 comments

Comments

@coqbot
Copy link
Contributor

coqbot commented Feb 6, 2015

Note: the issue was created automatically with bugzilla2github tool

Original bug ID: BZ#4004
From: @JasonGross
Reported version: 8.5
CC: @gares

@coqbot
Copy link
Contributor Author

coqbot commented Feb 6, 2015

Comment author: @JasonGross

I get suggestions for things like SepExprFacts#env#heq_ST_heq_mor_Proper from theorems like

    Global Add Parametric Morphism : (SE.sexprD funcs preds U G) with
      signature (SE.heq funcs preds U G cs ==> SE.ST.heq cs)
      as heq_ST_heq_mor.
    Proof.
      unfold SE.heq; simpl; auto.
    Qed.

and I get suggestions for things like imports#Straightline__subproof when I use [abstract] inside of [Defined]. In the latter case, [Set Suggest Proof Using] should make a suggestion for the transparent definition, or make no suggestion at all (if no [Proof using] directive would result in pushing the [abstract] to a worker). In the former case, [Set Suggest Proof Using] should probably make a suggestion for the name given in [as foo], but I'm not completely sure about this.

(I'm trying to write a python script to automatically implement the suggestions of [Set Suggest Proof Using], currently at https://github.com/JasonGross/coq-bug-finder/blob/master/proof-using-helper.py.)

@coqbot
Copy link
Contributor Author

coqbot commented Feb 7, 2015

Comment author: @gares

The suggestion is written out whenever the kernel type checks an
opaque theorem, even if the theorem is not written by the user.

I guess you should just ignore spurious suggestions.

I'll think how to make the suggestions more precise.

@SkySkimmer
Copy link
Contributor

@JasonGross
Since #1103 Proof Using suggestions are emitted at the end of opaque interactive proofs.
I don't know if that's enough to fix your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants