Is it possible to have a warning for each Admitted
lemma in a project? I can do something like
Lemma foo : False.
Proof.
Admitted.
Print Assumptions foo.
But it's not really a warning and I would need to do something like this for each admitted lemma as opposed to e.g. having a flag in my _CoqProject
file. Also, grep
ping for warnings is a non-solution since the goal is to have a reminder for admits.
I don’t know whether Coq has the feature you want.
You could run grep
from your Makefile
, then you’d get the results each time you run make
.
do you want to warn on axiom/parameter/declare instance/declare module/etc too?
Gaëtan Gilbert said:
do you want to warn on axiom/parameter/declare instance/declare module/etc too?
I think a warning about axioms (if introduced at all) should be separate from the rest of the declared things.
Is there a robust criterion for that?
I guess I would be happy with the syntactic approximation :)
declare instance and declare module produce axioms
Yeah, I’d file a bug at anything that treats Axiom and Parameter as different. Coqchk doesn’t.
It is a bit annoying that coqchk doesn’t treat “Declare Module M : I.” as a single axiom.
Last updated: Oct 13 2024 at 01:02 UTC