@@ -30,7 +30,7 @@ version<coq-lang>` in the :ref:`dune-project` file. For example, adding
30
30
31
31
.. code :: scheme
32
32
33
- (using coq 0.4 )
33
+ (using coq 0.6 )
34
34
35
35
to a :ref: `dune-project ` file enables using the ``coq.theory `` stanza and other
36
36
``coq.* `` stanzas. See the :ref: `Dune Coq language<coq-lang> ` section for more
@@ -53,6 +53,7 @@ stanza:
53
53
(modules <ordered_set_lang>)
54
54
(plugins <ocaml_plugins>)
55
55
(flags <coq_flags>)
56
+ (stdlib <stdlib_included>)
56
57
(mode <coq_native_mode>)
57
58
(theories <coq_theories>))
58
59
@@ -98,6 +99,11 @@ The semantics of the fields are:
98
99
is taken from the value set in the ``(coq (flags <flags>)) `` field in ``env ``
99
100
profile. See :ref: `dune-env ` for more information.
100
101
102
+ - ``<stdlib_included> `` can either be ``yes `` or ``no ``, currently defaulting to
103
+ ``yes ``. When set to ``no ``, Coq's standard library won't be visible from this
104
+ theory, which means the ``Coq `` prefix won't be bound, and ``Coq.Init.Prelude ``
105
+ won't be imported by default.
106
+
101
107
- The path to the installed locations of the ``<ocaml_plugins> `` is passed to
102
108
``coqdep `` and ``coqc `` using Coq's ``-I `` flag. This allows a Coq theory to
103
109
depend on OCaml plugins.
@@ -235,6 +241,8 @@ The supported Coq language versions (not the version of Coq) are:
235
241
- ``0.3 ``: Support for ``(mode native) `` requires Coq >= 8.10 (and Dune >= 2.9
236
242
for Coq >= 8.14).
237
243
- ``0.4 ``: Support for interproject composition of theories.
244
+ - ``0.5 ``: ``(libraries ...) `` field deprecated in favor of ``(plugins ...) `` field.
245
+ - ``0.6 ``: Support for ``(stdlib no) ``.
238
246
239
247
.. _coq-lang-1.0 :
240
248
@@ -267,7 +275,7 @@ process by using the ``coq.extraction`` stanza:
267
275
- ``(extracted_modules <names>) `` is an exhaustive list of OCaml modules
268
276
extracted.
269
277
270
- - ``<optional-fields> `` are ``flags ``, ``theories ``, and ``plugins ``. All of
278
+ - ``<optional-fields> `` are ``flags ``, ``stdlib ``, `` theories ``, and ``plugins ``. All of
271
279
these fields have the same meaning as in the ``coq.theory `` stanza.
272
280
273
281
The extracted sources can then be used in ``executable `` or ``library `` stanzas
0 commit comments