aboutsummaryrefslogtreecommitdiff
path: root/doc/sphinx/addendum/program.rst
diff options
context:
space:
mode:
authorClément Pit-Claudel2020-03-26 14:06:15 -0400
committerClément Pit-Claudel2020-03-26 14:06:15 -0400
commit8457ddd63ba4a7afa68409528f165bac0ee18126 (patch)
treeba3f8471ff55782ab1b067cfe44620f83f8033c0 /doc/sphinx/addendum/program.rst
parent738445a8db2b853204ea6f04b6b07751aeb40833 (diff)
parentec39d9ce2f43c30d760b33293bb76eca6749b13f (diff)
Merge PR #11920: Shrink refman-prelude files.
Ack-by: SkySkimmer Reviewed-by: cpitclaudel
Diffstat (limited to 'doc/sphinx/addendum/program.rst')
-rw-r--r--doc/sphinx/addendum/program.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/sphinx/addendum/program.rst b/doc/sphinx/addendum/program.rst
index cbb5c0db8a..5cffe9e435 100644
--- a/doc/sphinx/addendum/program.rst
+++ b/doc/sphinx/addendum/program.rst
@@ -162,7 +162,7 @@ Program Definition
This command types the value term in Russell and generates proof
obligations. Once solved using the commands shown below, it binds the
- final |Coq| term to the name ``ident`` in the environment.
+ final |Coq| term to the name :n:`@ident` in the environment.
.. exn:: @ident already exists.
:name: @ident already exists. (Program Definition)
@@ -170,12 +170,12 @@ Program Definition
.. cmdv:: Program Definition @ident : @type := @term
- It interprets the type ``type``, potentially generating proof
+ It interprets the type :n:`@type`, potentially generating proof
obligations to be resolved. Once done with them, we have a |Coq|
- type |type_0|. It then elaborates the preterm ``term`` into a |Coq|
- term |term_0|, checking that the type of |term_0| is coercible to
- |type_0|, and registers ``ident`` as being of type |type_0| once the
- set of obligations generated during the interpretation of |term_0|
+ type :n:`@type__0`. It then elaborates the preterm :n:`@term` into a |Coq|
+ term :n:`@term__0`, checking that the type of :n:`@term__0` is coercible to
+ :n:`@type__0`, and registers :n:`@ident` as being of type :n:`@type__0` once the
+ set of obligations generated during the interpretation of :n:`@term__0`
and the aforementioned coercion derivation are solved.
.. exn:: In environment … the term: @term does not have type @type. Actually, it has type ...
@@ -185,7 +185,7 @@ Program Definition
This is equivalent to:
- :g:`Program Definition ident : forall binders, type := fun binders => term`.
+ :n:`Program Definition @ident : forall {* @binder }, @type := fun {* @binder } => @term`.
.. TODO refer to production in alias