coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Ralf Jung <jung AT mpi-sws.org>
- To: coq-club AT inria.fr
- Subject: [Coq-Club] Setting Coq options for all files in a project
- Date: Fri, 3 Feb 2017 12:51:55 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=jung AT mpi-sws.org; spf=Pass smtp.mailfrom=jung AT mpi-sws.org; spf=None smtp.helo=postmaster AT hera.mpi-klsb.mpg.de
- Ironport-phdr: 9a23:df6gPB0BN+BQ8zWpsmDT+DRfVm0co7zxezQtwd8ZsewfIvad9pjvdHbS+e9qxAeQG96Kt7Qb0qGN6ujJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fdbghMizexe7F/IAi5oQjfq8UdnJdvJLs2xhbVuHVDZv5YxXlvJVKdnhb84tm/8Zt++ClOuPwv6tBNX7zic6s3UbJXAjImM3so5MLwrhnMURGP5noHXWoIlBdDHhXI4wv7Xpf1tSv6q/Z91SyHNsD4Ubw4RTKv5LpsRxH0iCkKKSc1/HjKh8Nqka1VvA6upwJizIPbfYqZMPpzcr/Ycd4cWGFPXNteVzZZD42ib4UBEukPM+hWoIbyu1QAogCzBRWuCe711jNEmnH70K883u88EQ/GxgsgH9cWvXrIttr1MKkSWv2xwqnVyzXDYO5d1DD/6IjVdBAhruqBXbdoccrQ0EUvDA3Ejk6KpYziJTOV2f0Avm6G5ORjTeKik3Mrpg91rzS128shjpPFip8Pxl3L8Sh0xps+K8eiR05he9GkFYNdtyGEOItyRcMvW2FotzggyrIco5K7eTAKyJU+yx7cb/yHaJOH7gjmVOaJLjd0nm9qd6ynixaz90iv1PH8W9Gp3FtEqidJiMTAu3QX2xDO8MSKRf9w8l+k2TmV1gDT7u9EIVozlareM5MhwKMwlpwcsUnYGy/2gET2gLaNdkQq4eik8ePnYq/pppOELY97lhn+Mrgymsy4Gek3Lg8OX3GC9eug0L3j4Fb2Ta5Rjvw2l6nZqIrVKd4apq6/GQ9V05ws5wyxDze8g5wkmiwMK0sAcxaahaDoPUvPKbb2F6SRmVOpxQ1iw/6OHKDnDd2ZLGXFn5/kZbc48FFHjg0pwoYMtNpvFrgdLaerCQfKv9vCA0pkawE=
Hi all,
there are some Coq options ("Set ...") that we want to set in a
particular way for all files in our library, but do not want to force on
our users. For example
Set Default Proof Using "Type".
Right now, we have that line at the top of every file, but that clearly
doesn't scale.
We got the advice to instead create a file, e.g. "options.v", put the
settings in there, and import that file everywhere. However, that does
not seem to work, as the following testcase shows:
$ cat options.v
Set Implicit Arguments.
$ cat test.v
Require Import options.
(* Set Implicit Arguments. *)
Definition id (A : Type) (a : A) := a.
Even though the option is set in "options.v", it is not in effect in
"test.v". I can of course change options.v to use "Global Set", but
then the option will leak to everything that even imports test.v, i.e.,
to every user of our library -- which we specifically tried to avoid.
Using "Require Import" or "Require" in test.v also does not seem to make
any difference.
Is there any way in Coq to set options in every file of a library
*without* imposing these options on the user, and without repeating the
option in every single file?
Kind regards,
Ralf
- [Coq-Club] Setting Coq options for all files in a project, Ralf Jung, 02/03/2017
- Re: [Coq-Club] Setting Coq options for all files in a project, Anton Trunov, 02/03/2017
- Re: [Coq-Club] Setting Coq options for all files in a project, Ralf Jung, 02/03/2017
- Re: [Coq-Club] Setting Coq options for all files in a project, Anton Trunov, 02/03/2017
- Re: [Coq-Club] Setting Coq options for all files in a project, Matthieu Sozeau, 02/03/2017
- Re: [Coq-Club] Setting Coq options for all files in a project, Ralf Jung, 02/07/2017
- Re: [Coq-Club] Setting Coq options for all files in a project, Pierre-Marie Pédrot, 02/07/2017
- Re: [Coq-Club] Setting Coq options for all files in a project, Ralf Jung, 02/07/2017
- Re: [Coq-Club] Setting Coq options for all files in a project, Pierre-Marie Pédrot, 02/07/2017
- Re: [Coq-Club] Setting Coq options for all files in a project, Ralf Jung, 02/07/2017
- Re: [Coq-Club] Setting Coq options for all files in a project, Ralf Jung, 02/07/2017
- Re: [Coq-Club] Setting Coq options for all files in a project, Ralf Jung, 02/07/2017
- Re: [Coq-Club] Setting Coq options for all files in a project, Matthieu Sozeau, 02/03/2017
- Re: [Coq-Club] Setting Coq options for all files in a project, Anton Trunov, 02/03/2017
- Re: [Coq-Club] Setting Coq options for all files in a project, Ralf Jung, 02/03/2017
- Re: [Coq-Club] Setting Coq options for all files in a project, Anton Trunov, 02/03/2017
Archive powered by MHonArc 2.6.18.