Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Can coqwc be made to count Ltac definitions as proofs instead of specs?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Can coqwc be made to count Ltac definitions as proofs instead of specs?


Chronological Thread 
  • From: Clément Pit--Claudel <clement.pit AT gmail.com>
  • To: Coq Club <coq-club AT inria.fr>
  • Subject: [Coq-Club] Can coqwc be made to count Ltac definitions as proofs instead of specs?
  • Date: Sat, 30 Jul 2016 18:57:43 -0400
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=clement.pit AT gmail.com; spf=SoftFail smtp.mailfrom=clement.pit AT gmail.com; spf=None smtp.helo=postmaster AT mout.kundenserver.de
  • Ironport-phdr: 9a23:UOEQCBZ+dy3RFqIfaJxD5mD/LSx+4OfEezUN459isYplN5qZpcu+bnLW6fgltlLVR4KTs6sC0LuO9f+6EjVcsN6oizMrSNR0TRgLiMEbzUQLIfWuLgnFFsPsdDEwB89YVVVorDmROElRH9viNRWJ+iXhpQAbFhi3DwdpPOO9QteU1JXvkb/osMSPMk1hv3mUWftKNhK4rAHc5IE9oLBJDeIP8CbPuWZCYO9MxGlldhq5lhf44dqsrtY4q3wD89pozcNLUL37cqIkVvQYSW1+ayFmrPHs4DLEVEOk4mYWGjEdlQMNCAzY5jn7WI3wu230rLwu9jOdOJjdSTExVDK+2J9qVFqtoyMOKjI09CmDgch9ia9dvFS5pgBXzIvdYYXTP/17KPCONegGTHZMC54CHxdKBZmxOs5WV7IM

Hi coq-club,

Currently, coqwc counts ‘Ltac :=’ tactics as specifications. Can this be
changed? Alternatively, are there other tools to summarize the contents of a
Coq development?

As an example, coqwc thinks that this snippet has 12 lines of specifications,
and a single line of proofs:

Ltac cleanup :=
match goal with
| _ => tauto
| _ => discriminate
| _ => progress intros
| _ => progress subst
| [ |- ?a <-> ?b ] => split
| [ |- ?a /\ ?b ] => split
| [ H: ?a /\ ?b |- _ ] => destruct H
| [ H: exists _, _ |- _ ] => destruct H
end.

Goal True.
cleanup.
Qed.

whereas it summarizes the following snippet as 1 line of specs and 11 lines
of proofs:

Goal True.
match goal with
| _ => tauto
| _ => discriminate
| _ => progress intros
| _ => progress subst
| [ |- ?a <-> ?b ] => split
| [ |- ?a /\ ?b ] => split
| [ H: ?a /\ ?b |- _ ] => destruct H
| [ H: exists _, _ |- _ ] => destruct H
end.
Qed.

Is there a way to make coqwc return the same numbers (approx. 1 line of
specs, 10 lines of proofs) for both snippets? Patching and recompiling is
totally fine, if needed.

Thanks!
Clément.

Attachment: signature.asc
Description: OpenPGP digital signature



  • [Coq-Club] Can coqwc be made to count Ltac definitions as proofs instead of specs?, Clément Pit--Claudel, 07/31/2016

Archive powered by MHonArc 2.6.18.

Top of Page