From bdf65b2516b0dd5f4e1a1c6130fc49ee7712dd07 Mon Sep 17 00:00:00 2001 From: Zeimer Date: Sat, 14 Jul 2018 14:20:25 +0200 Subject: Fixed some typos and grammar errors from section 'The language' of the Reference Manual. Removed all mentions of prodT because it is no longer a separate inductive definition (prod has been living in Type for some time) but rather only a notation for prod needed for compatibility purposes. --- doc/sphinx/language/coq-library.rst | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'doc/sphinx/language/coq-library.rst') diff --git a/doc/sphinx/language/coq-library.rst b/doc/sphinx/language/coq-library.rst index f23e04c3a..848b3891b 100644 --- a/doc/sphinx/language/coq-library.rst +++ b/doc/sphinx/language/coq-library.rst @@ -706,18 +706,15 @@ Accessing the Type level ~~~~~~~~~~~~~~~~~~~~~~~~ The basic library includes the definitions of the counterparts of some data-types and logical -quantifiers at the ``Type``: level: negation, pair, and properties +quantifiers at the ``Type``: level: negation and properties of ``identity``. This is the module ``Logic_Type.v``. .. index:: single: notT (term) - single: prodT (term) - single: pairT (term) .. coqtop:: in Definition notT (A:Type) := A -> False. - Inductive prodT (A B:Type) : Type := pairT (_:A) (_:B). At the end, it defines data-types at the ``Type`` level. -- cgit v1.2.3 From 227691b56a396eb274a20168454df7d989b68bf2 Mon Sep 17 00:00:00 2001 From: Zeimer Date: Thu, 19 Jul 2018 15:07:12 +0200 Subject: Rewrote section 'Accessing the Type level' in the chapter 'The Coq library' of the Reference Manual. --- doc/sphinx/language/coq-library.rst | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'doc/sphinx/language/coq-library.rst') diff --git a/doc/sphinx/language/coq-library.rst b/doc/sphinx/language/coq-library.rst index 848b3891b..52c56d2bd 100644 --- a/doc/sphinx/language/coq-library.rst +++ b/doc/sphinx/language/coq-library.rst @@ -705,9 +705,22 @@ fixpoint equation can be proved. Accessing the Type level ~~~~~~~~~~~~~~~~~~~~~~~~ -The basic library includes the definitions of the counterparts of some data-types and logical -quantifiers at the ``Type``: level: negation and properties -of ``identity``. This is the module ``Logic_Type.v``. +The standard library includes ``Type`` level definitions of counterparts of some +logic concepts and basic lemmas about them. + +The module ``Datatypes`` defines ``identity``, which is the ``Type`` level counterpart +of equality: + +.. index:: + single: identity (term) + +.. coqtop:: in + + Inductive identity (A:Type) (a:A) : A -> Type := + identity_refl : identity a a. + +Some properties of ``identity`` are proved in the module ``Logic_Type``, which also +provides the definition of ``Type`` level negation: .. index:: single: notT (term) @@ -716,8 +729,6 @@ of ``identity``. This is the module ``Logic_Type.v``. Definition notT (A:Type) := A -> False. -At the end, it defines data-types at the ``Type`` level. - Tactics ~~~~~~~ -- cgit v1.2.3