Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Applying a constructor/function to both sides of an equation -- is this possible?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Applying a constructor/function to both sides of an equation -- is this possible?


Chronological Thread 
  • From: AUGER Cédric <sedrikov AT gmail.com>
  • To: coq-club AT inria.fr
  • Cc: omeragacan AT gmail.com
  • Subject: Re: [Coq-Club] Applying a constructor/function to both sides of an equation -- is this possible?
  • Date: Sat, 15 Feb 2014 23:18:34 +0100

Le Sat, 15 Feb 2014 23:29:23 +0200,
Ömer Sinan Ağacan
<omeragacan AT gmail.com>
a écrit :

> Hi all,
>
> Let's say I have `length tl = n - 1` as goal and `H: n <> 0`. Can I
> apply same constructor/function to both sides of the equation in goal?
> Like applying S and having:
>
> > S (length tl) = S (n - 1)
>
> Is this possible? If not, why?

It is possible, trivial and you do not even require H.
Here, "f_equal" would be enough (assert (S (length tl) = S (n-1)).
f_equal.). There are numerous other ways to do it.

>
> Thanks!
>
>
> ---
> Ömer Sinan Ağacan
> http://osa1.net




Archive powered by MHonArc 2.6.18.

Top of Page