Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Re: repeat inversion ; without infinite looping

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Re: repeat inversion ; without infinite looping


Chronological Thread 
  • From: t x <txrev319 AT gmail.com>
  • To: coq-club <coq-club AT inria.fr>
  • Subject: [Coq-Club] Re: repeat inversion ; without infinite looping
  • Date: Thu, 22 Aug 2013 23:06:11 +0000

I think I have solved this :

https://gist.github.com/anonymous/6313843

via a complete abuse of tactics.

"bad thing" = after inversion,

  * only one term is generated
  * the term that generated is the same as the old term

==> therefore, pose proof (H1 = H2) should type check

whereas, if the newly generated term is different from the old term, then pose proof (H1 = H2) should not type check since H1 and H2 are different terms.


However, if anyone has a cleaner solution, I'd appreciate it too. :-)




On Thu, Aug 22, 2013 at 9:54 PM, t x <txrev319 AT gmail.com> wrote:
Hi,

  I'm trying to design a tactic that inverts everything possible to invert.

  Here is my minimal failure case:

https://gist.github.com/anonymous/6313270


  My current code infinite loops. Two "obvious solutions seems to be"


(1) if there is a way to separate "Consrtructor" from "Function", then, the infinite loop is easy to fix.

(2) If there is a way detect "is result of 'inversion' same as Hypothesis?' --> and force a fail


Can anyone tell me how to do either (1) or (2)?

Thanks!




Archive powered by MHonArc 2.6.18.

Top of Page