Skip to Content.
Sympa Menu

coq-club - [Coq-Club] efficiently reducing away mentions of a variable

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] efficiently reducing away mentions of a variable


Chronological Thread 
  • From: Abhishek Anand <abhishek.anand.iitg AT gmail.com>
  • To: coq-club <coq-club AT inria.fr>, Coqdev <coqdev AT inria.fr>
  • Subject: [Coq-Club] efficiently reducing away mentions of a variable
  • Date: Fri, 10 Feb 2017 15:21:28 -0500
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=abhishek.anand.iitg AT gmail.com; spf=Pass smtp.mailfrom=abhishek.anand.iitg AT gmail.com; spf=None smtp.helo=postmaster AT mail-qk0-f176.google.com
  • Ironport-phdr: 9a23:WvnknR0pOc44LQSDsmDT+DRfVm0co7zxezQtwd8ZsegUKvad9pjvdHbS+e9qxAeQG96Kt7QU1KGP6P2oGTRZp83e4DZaKN0EfiRGoPtVtjRoONSCB0z/IayiRA0BN+MGamVY+WqmO1NeAsf0ag6aiHSz6TkPBke3blItdaymUrLV2s+wzqW5/4DZK1FDgyP4ardvJj23qx/Qv48Ym90mYo020xfEvDMccONPyW52DVOVhRf1oMmqqs1N6SNV7tsr989bUaj5N40+RLpURGAvOWA0/83mtl/KSwKJ6j0dU3kZuhVNCgnBqhr9W8Gi4WPBquNh1XzCboXNRrcuVGH64g==

I have a parametricity-like program translation that produces theorems and their proofs.
Often these theorems have hypotheses that are not needed in their proofs,
in the sense that after fully normalizing the proof, the variable denoting the hypothesis is not
even mentioned in the proof. I want to identify and eliminate such hypothesis
from the theorem's statement.
However, naively doing the normalization blows up on bigger examples.
Is there a mechanism (e.g. a function in Coq's sources, or a tactic)
that can take a term in a context and do the reduction less naively in order to eliminate mentions
a given variable? For example, it can ignore subterms that don't even mention the variable.
Even If there isn't a function that does exactly what I want, it would be helpful for me to 
get pointers to functions that I could use in my implementation.

Thanks,



Archive powered by MHonArc 2.6.18.

Top of Page