coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Jason Gross <jasongross9 AT gmail.com>
- To: coq-club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] 8.5 and MathClasses
- Date: Thu, 7 May 2015 16:25:54 -0400
This is a problem that is fixable within MathClasses, and would require much more of a change in Coq; on case-insensitive filesystems, Coq doesn't know whether [Require Import List] means [Require Import MathClasses.implementations.list.] or [Require Import Coq.Lists.List.]. The appropriate solution is to always use absolute names for Imports. Fixing Coq would require treating the filename on a case-insensitive system as case-sensitive, perhaps by not just saying "OS, give me the files of the form 'List.vo' in this directory" but additionally filtering that list for files whose names don't match "List.vo" in case, if such a thing is possible on case-insensitive systems (or filtering out files whose library names don't match the given library name in case). I shall be submitting a pull request that fixes this on the trunk branch shortly.
-Jason
On Thu, May 7, 2015 at 1:46 PM, Vadim Zaliva <vzaliva AT cmu.edu> wrote:
On May 7, 2015, at 4:33 , Bas Spitters <b.a.w.spitters AT gmail.com> wrote:I haven't thought deeply about case sensitivity, but if it requires a minor change, I'd be willing to accept a pull request.Case-sensitivity problem is very annoying on MacOS. Here is a background: default MacOS file system is case-insensitivebut case-preserving. So you you create file “A” it will be shown in upper case but you can open it either as “a” or “A”. Here iswhat happens with MathClasses:$ coqc -verbose -R . MathClasses -q implementations/list_finite_set.vRequire ImportList SetoidList implementations.listabstract_algebra interfaces.finite_sets interfaces.orderstheory.lattices orders.lattices.Warning: List.vo has been found in[ /Users/lord/tmp/math-classes/implementations ;/Volumes/CoqLibs/coq/lib/coq/theories/Lists ];loading /Users/lord/tmp/math-classes/implementations/List.voFile "./implementations/list_finite_set.v", line 1, characters 0-148:Error: The file /Users/lord/tmp/math-classes/implementations/List.vo contains libraryMathClasses.implementations.list and not libraryMathClasses.implementations.ListI think it is not really MathClasses problem. It could occur whenever you import some module of which you have severalversions in your search path with names in different case.I think the proper solution is for coq to ignore files where file name does not match enclosed implementation, perhaps issuing a warning instead of an error. This should be a trivial patch to Coq itself. Maybe right now before 8.5 release it is a good way to put it in? MacOS users will benefit from it.Sincerely,
Vadim Zaliva--CMU ECE PhD candidateMobile: +1(510)220-1060Skype: vzaliva
- Re: [Coq-Club] 8.5 and MathClasses, (continued)
- Re: [Coq-Club] 8.5 and MathClasses, Matthieu Sozeau, 05/07/2015
- Re: [Coq-Club] 8.5 and MathClasses, Bas Spitters, 05/07/2015
- Re: [Coq-Club] 8.5 and MathClasses, Vadim Zaliva, 05/07/2015
- Re: [Coq-Club] 8.5 and MathClasses, Guillaume Claret, 05/07/2015
- Re: [Coq-Club] 8.5 and MathClasses, Vadim Zaliva, 05/11/2015
- Re: [Coq-Club] 8.5 and MathClasses, Vadim Zaliva, 05/11/2015
- Re: [Coq-Club] 8.5 and MathClasses, Vadim Zaliva, 05/12/2015
- Re: [Coq-Club] 8.5 and MathClasses, Matthieu Sozeau, 05/12/2015
- Re: [Coq-Club] 8.5 and MathClasses, Bas Spitters, 05/29/2015
- Re: [Coq-Club] 8.5 and MathClasses, Vadim Zaliva, 05/29/2015
- Re: [Coq-Club] 8.5 and MathClasses, Vadim Zaliva, 05/11/2015
- Re: [Coq-Club] 8.5 and MathClasses, Guillaume Claret, 05/07/2015
- Re: [Coq-Club] 8.5 and MathClasses, Vadim Zaliva, 05/07/2015
- Re: [Coq-Club] 8.5 and MathClasses, Jason Gross, 05/07/2015
- Message not available
- Re: [Coq-Club] 8.5 and MathClasses, Jason Gross, 05/07/2015
- Re: [Coq-Club] 8.5 and MathClasses, Vadim Zaliva, 05/07/2015
- Message not available
- Re: [Coq-Club] 8.5 and MathClasses, Cedric Auger, 05/07/2015
- Re: [Coq-Club] 8.5 and MathClasses, Pierre Boutillier, 05/08/2015
- Message not available
- Re: [Coq-Club] 8.5 and MathClasses, Bas Spitters, 05/08/2015
Archive powered by MHonArc 2.6.18.