coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Tie Cheng <chengtie AT gmail.com>
- To: Julien Narboux <jnarboux AT narboux.fr>
- Cc: coq-club AT inria.fr
- Subject: Re: [Coq-Club] odd behavior: skipping lines with new coq in ubuntu
- Date: Wed, 9 Feb 2011 16:22:14 +0100
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=mn262lKLTS85Sm3iMr8FuhPWg42L9TE4NSoKnJNla+G4KY4NabmXlWy/vdH170d/B8 HPjH6DZVquMtwwPEO0qw6E8IjRaYDXgbdL6K/5gGFvQAQGzqcR4SjYVTw/1TlgufhaLi vukAN9pO0/LaWqUoq9KL47w5ap9yGhZLtBu9g=
That is true... "dos2unix filename.v" works...
Thanks and regards
Tie
On Wed, Feb 9, 2011 at 3:59 PM, Julien Narboux <jnarboux AT narboux.fr> wrote:
Hi,
I think the problem comes from the difference between end of line on unix and windows.
You need to convert to unix end of line.
Julien2011/2/9 Tie Cheng <chengtie AT gmail.com>
Hello all,I just upgraded the coq under my ubuntu, I compiled the codes in coq-8.3pl1.tar.gz, and the coqide gives the version information as follows:The Coq Proof Assistant, version 8.3pl1 (décembre 2010)Architecture win32 running Win32 operating systemGtk version is 2.18.7This is the native version (native is the best one for this architecture and OS)I am trying to run a very simple program which works well under the coq under my Windows 7, this coqide gives the version information:The Coq Proof Assistant, version 8.3pl1 (February 2011)Architecture i686 running Unix operating systemGtk version is 2.22.0This is the native version (native is the best one for this architecture and OS).The program which works well under windows looks like:Require Import Bool Omega ZArith List.Inductive poly : Type :=| Cst : Z -> poly (* Omega makes Z work *)| Poly : poly -> nat -> poly -> poly.Definition p1 : poly := Cst 0. (* 0 *)Definition p2 : poly := Poly (Cst 0) 1 (Cst 1). (* 0 + X1 * 1 *)However, when i run it with the new coq under ubuntu, when i "Forward one command", it goes DIRECTLY to the line before the last one. So i got an error "Error: The reference poly was not found in the current environment." That means it does not recognize "poly" just defined above, that means it skipped several lines.It seems that some .v files work well in both versions of coq, but i really do not see what is wrong with my this piece of code...Does anyone know what happened?Many thanks and kindly regardsTie
- [Coq-Club] odd behavior: skipping lines with new coq in ubuntu, Tie Cheng
- Re: [Coq-Club] odd behavior: skipping lines with new coq in ubuntu,
Julien Narboux
- Re: [Coq-Club] odd behavior: skipping lines with new coq in ubuntu, Tie Cheng
- Re: [Coq-Club] odd behavior: skipping lines with new coq in ubuntu,
Julien Narboux
Archive powered by MhonArc 2.6.16.