coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Bernard Hurley <bernard AT marcade.biz>
- To: Mathieu Boespflug <mboes AT tweag.net>
- Cc: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Functions that differ at exactly one point
- Date: Sun, 29 Apr 2012 20:38:18 +0100
Hi Mathieu,
Thanks for replying so soon.
On Sun, Apr 29, 2012 at 01:38:55PM -0400, Mathieu Boespflug wrote:
>
> The second branch you wrote above is effectively a dead branch, because
> the pattern in the first branch always matches.
Yes I realised that but I was trying to indicate what I am trying to do.
> I think you meant to
> write something like:
>
Thanks for the help. My problem was actually more complex but I have now
solved it with help from the list.
Cheers,
Bernard
> Require Import EqNat.
>
> Section Example.
>
> Variable f : nat -> nat.
> Variable m : nat.
>
> Fixpoint g (n : nat) : nat :=
> if eq_nat_decide m n then 2 else f n.
>
> End Example.
>
> Hope this helps,
>
> -- Mathieu
- [Coq-Club] Functions that differ at exactly one point, Bernard Hurley
- Re: [Coq-Club] Functions that differ at exactly one point, Jonas Oberhauser
- Re: [Coq-Club] Functions that differ at exactly one point,
Mathieu Boespflug
- Re: [Coq-Club] Functions that differ at exactly one point, Bernard Hurley
- Re: [Coq-Club] Functions that differ at exactly one point,
Daniel Schepler
- Re: [Coq-Club] Functions that differ at exactly one point, Bernard Hurley
- Re: [Coq-Club] Functions that differ at exactly one point,
Daniel Schepler
- Re: [Coq-Club] Functions that differ at exactly one point, Bernard Hurley
- Message not available
- Message not available
- Re: [Coq-Club] Functions that differ at exactly one point, Jonas Oberhauser
- Message not available
Archive powered by MhonArc 2.6.16.