aboutsummaryrefslogtreecommitdiff
path: root/doc/sphinx
diff options
context:
space:
mode:
authorVincent Laporte2019-02-14 15:47:18 +0000
committerVincent Laporte2019-02-25 10:05:34 +0000
commit70b2ba35cacbfb9b790dd26364da18a39881ee0e (patch)
tree2fc8be8d1ada2b25fdbc3cbc1cea59d5f64486e5 /doc/sphinx
parentfc76c77ac6e509c1bccc2823ce2037d21a53276a (diff)
[Manual] Document “Register” to kernel namespace
Diffstat (limited to 'doc/sphinx')
-rw-r--r--doc/sphinx/proof-engine/vernacular-commands.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/sphinx/proof-engine/vernacular-commands.rst b/doc/sphinx/proof-engine/vernacular-commands.rst
index a98a46ba21..1eacb95131 100644
--- a/doc/sphinx/proof-engine/vernacular-commands.rst
+++ b/doc/sphinx/proof-engine/vernacular-commands.rst
@@ -1227,3 +1227,15 @@ Exposing constants to OCaml libraries
Due to its internal nature, this command is not for general use. It is meant
to appear only in standard libraries and in support libraries of plug-ins.
+
+ As a special case, when the first segment of :n:`@qualid__2` is :g:`kernel`,
+ the constant is exposed to the kernel. For instance, the `Int63` module
+ features the following declaration:
+
+ .. coqdoc::
+
+ Register bool as kernel.ind_bool.
+
+ This makes the kernel aware of what is the type of boolean values. This
+ information is used for instance to define the return type of the
+ :g:`#int63_eq` primitive.