Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Error: 1 * n = n.

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Error: 1 * n = n.


Chronological Thread 
  • From: Valentin Robert <valentin.robert.42 AT gmail.com>
  • To: soham chakraborty <soham4you AT gmail.com>
  • Cc: "coq-club AT inria.fr" <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] Error: 1 * n = n.
  • Date: Thu, 5 Sep 2013 08:44:27 +0100

My guess is that your definition of multiplication is defined by
case-analyzing its right argument, therefore the computation "1 * n"
is stuck waiting to know the shape of "n".

This is explained in this chapter:
http://www.cis.upenn.edu/~bcpierce/sf/Induction.html#lab41

- Valentin

On Thu, Sep 5, 2013 at 8:34 AM, soham chakraborty
<soham4you AT gmail.com>
wrote:
> Hi,
> I am a Coq beginner. I am trying the following theorem on coqIde
>
> Theorem mult_1_l : forall n:nat, 1 * n = n.
> Proof.
> intros n. reflexivity. Qed.
>
> But having follwing error message while hitting the tactic reflexivity.
> Error: Impossible to unify "n" with "1 * n".
>
> Can you please explain the problem.
>
> Thanks in advance.
>
> Best Regards,
> soham



Archive powered by MHonArc 2.6.18.

Top of Page