Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] match/ proof of branch

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] match/ proof of branch


chronological Thread 
  • From: Adam Chlipala <adam AT chlipala.net>
  • To: "gallais @ ensl.org" <guillaume.allais AT ens-lyon.org>
  • Cc: "coq-club AT inria.fr" <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] match/ proof of branch
  • Date: Sun, 17 Jul 2011 10:00:22 -0400

gallais @ ensl.org wrote:
Hi Adam,

My first guess would have been to follow closely
the function's definition with something like:

[pose (res := f n) ; destruct res ; simpl]

and it turns out to work:

[...]
Is your approach more robust if we end up changing
rK's definition or is it more or less equivalent (I'm guessing
that pattern&  pose do the same job here).

Well now, that's embarrassing! Now I see this meager proof script also gets the job done:
    inversion 1; reflexivity.
Apparently [inversion] is smarter than I thought!



Archive powered by MhonArc 2.6.16.

Top of Page