Skip to content

Commit

Permalink
additions/corrections about scopes in the refman
Browse files Browse the repository at this point in the history
  • Loading branch information
Villetaneuse committed May 15, 2024
1 parent dae5ce9 commit 8b490bc
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions doc/sphinx/user-extensions/syntax-extensions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1485,8 +1485,10 @@ Most commands use :token:`scope_name`; :token:`scope_key`\s are used within :tok

Declares a new notation scope. Note that the initial
state of Coq declares the following notation scopes:
``core_scope``, ``type_scope``, ``function_scope``, ``nat_scope``,
``bool_scope``, ``list_scope``, ``dec_int_scope``, ``dec_uint_scope``.

``bool_scope``, ``byte_scope``, ``core_scope``, ``dec_int_scope``,
``dec_uint_scope``, ``function_scope``, ``hex_int_scope``, ``hex_nat_scope``,
``hex_uint_scope``, ``list_scope``, ``nat_scope``, ``type_scope``.

Use commands such as :cmd:`Notation` to add notations to the scope.

Expand All @@ -1510,6 +1512,10 @@ stack, rather than through "pop" operations.

Use the :cmd:`Print Visibility` command to display the current notation scope stack.

The initial state of coq has the following scopes opened: ``core_scope``,
``function_scope``, ``type_scope`` and ``nat_scope``, ``nat_scope`` being the
top of the scopes stack.

.. cmd:: Open Scope @scope

Adds a scope to the notation scope stack. If the scope is already present,
Expand Down

0 comments on commit 8b490bc

Please sign in to comment.