Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] A beginner question in class instances

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] A beginner question in class instances


chronological Thread 
  • From: Alexandre Pilkiewicz <alexandre.pilkiewicz AT polytechnique.org>
  • To: Victor Porton <porton AT narod.ru>
  • Cc: Coq <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] A beginner question in class instances
  • Date: Tue, 8 Nov 2011 18:19:02 -0500

On Tue, Nov 8, 2011 at 5:50 PM, Victor Porton 
<porton AT narod.ru>
 wrote:
> (*
> What's wrong with the following .v file which does not verify:
> How to correct it?
> *)
>
> Class C := {
> šnum: nat;
> šcond: num=0
> }.
>
> Instance C2: C := { num:=0 }.
When I reach this point, I have to prove "0 = 0". Do you really have
difficulties proving "0 = 0"? Maybe Type Classes should wait.

<<<
Proof. reflexivity. Qed.
>>>

> proof.
> šhave (num C2=0) using tauto.
> end proof.
>
>
> --
> Victor Porton - http://portonvictor.org
>




Archive powered by MhonArc 2.6.16.

Top of Page