coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Patrice Chalin<chalin AT encs.concordia.ca>
- To: coq-club AT inria.fr
- Subject: [Coq-Club] record field is "lost" if import is used
- Date: Wed, 12 May 2010 16:32:20 +0200
Hi,
Consider the following simple record definition (contained in, say, RecTest.v
with nothing else):
Record R : Type := {
f1 : nat;
f2 : nat
}.
This is accepted by Coq, but if I add
Require Import Imp.
to the start of the file where Imp is the theory from B.Pierce et al.'s
Software Foundations
(http://www.cs.princeton.edu/courses/archive/fall09/cos441/sf/) then I get the
following error message:
Error: The reference f2 was not found in the current environment.
Now I understand that f2 is effectively a "global" function and that there can
be name clashes, but the error message is complaining that "f2" is _not
found_.
In any case it doesn't matter what I name the second record component, I
always get the same error. How can it be that an import can cause such an
error
to arise?
Thanks in advance,
Patrice
- [Coq-Club] record field is "lost" if import is used, Patrice Chalin
- Re: [Coq-Club] record field is "lost" if import is used,
Hugo Herbelin
- [Coq-Club] yet another pb with Notation (from Init/Logic.v),
Jean-Francois Monin
- Re: [Coq-Club] yet another pb with Notation (from Init/Logic.v),
Hugo Herbelin
- Re: [Coq-Club] yet another pb with Notation (from Init/Logic.v), Dan Colish
- Re: [Coq-Club] yet another pb with Notation (from Init/Logic.v),
Benjamin Pierce
- Re: [Coq-Club] yet another pb with Notation (from Init/Logic.v),
Arthur Charguéraud
- Re: [Coq-Club] yet another pb with Notation (from Init/Logic.v), Benjamin Pierce
- Re: [Coq-Club] yet another pb with Notation (from Init/Logic.v),
Arthur Charguéraud
- Re: [Coq-Club] yet another pb with Notation (from Init/Logic.v),
Hugo Herbelin
- [Coq-Club] yet another pb with Notation (from Init/Logic.v),
Jean-Francois Monin
- Re: [Coq-Club] record field is "lost" if import is used,
Hugo Herbelin
Archive powered by MhonArc 2.6.16.