Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Functions that differ at exactly one point

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Functions that differ at exactly one point


chronological Thread 
  • From: Jonas Oberhauser <s9joober AT googlemail.com>
  • To: Bernard Hurley <bernard AT marcade.biz>
  • Cc: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Functions that differ at exactly one point
  • Date: Sun, 29 Apr 2012 20:28:09 +0200

Maybe the tactic "decide equality" can help you.

Note that not all types are decidable on equality and sometimes you'd
like a different equivalence relation.

Kind regards, Jonas

2012/4/29 Bernard Hurley 
<bernard AT marcade.biz>:
> Hi Jonas,
>
> Thanks for replying so soon. I will have a look at the implementation of 
> eq_nat_dec as I'm interested doing something like this in other situations.
> I guess in general it would depend on the exact nature of the solution of 
> the word problem for the type, and that there is no general solution.
>
> Cheers,
> Bernard.
>
> On Sun, Apr 29, 2012 at 07:25:45PM +0200, Jonas Oberhauser wrote:
>> Definition g f m n := if eq_nat_dec n m then 2 else f n.
>>
>> Using Coq.Arith.Peano_dec
>>



Archive powered by MhonArc 2.6.16.

Top of Page