coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Anton Trunov <anton.a.trunov AT gmail.com>
- To: Ralf Jung <jung AT mpi-sws.org>
- Cc: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Setting Coq options for all files in a project
- Date: Fri, 3 Feb 2017 15:19:24 +0300
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=anton.a.trunov AT gmail.com; spf=Pass smtp.mailfrom=anton.a.trunov AT gmail.com; spf=None smtp.helo=postmaster AT mail-lf0-f65.google.com
- Ironport-phdr: 9a23:2RO61BEp25C05P1Nh1yjNp1GYnF86YWxBRYc798ds5kLTJ75p8SwAkXT6L1XgUPTWs2DsrQf2raQ7PmrAjNIoc7Y9itdINoUD15NoP5VtjJjKfbNMVf8Iv/uYn5yN+V5f3ghwUuGN1NIEt31fVzYry76xzcTHhLiKVg9fbytScb6xv663OGq+pDVfx4AxH/kOeszf12KqlDrv80Yyal/LKl5nhnUpHRgfvxXgHh3PhSUhRmqtemq+5s22iJMvPRpy9RdV6LkN/AxS6BfCnIvdXwv+cvsqzHMSAKO4j0XVWBAwUkAOBTM8ByvBsS5iSD9rOconXDCZcA=
Hi Ralf,
FWIW, `Load options.` would work for this minimalistic example.
I'm not so sure if it's useful in your setting.
-Anton
> On 3 Feb 2017, at 14:51, Ralf Jung
> <jung AT mpi-sws.org>
> wrote:
>
> 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.