Skip to content

Commit

Permalink
Update refman's Search documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Villetaneuse committed Apr 27, 2024
1 parent ab6d31f commit a921bd1
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions doc/sphinx/proof-engine/vernacular-commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -188,17 +188,17 @@ described elsewhere
.. insertprodn logical_kind logical_kind
.. prodn::
logical_kind ::= Fixpoint
| CoFixpoint
logical_kind ::=
| {| @thm_token | @assumption_token }
| {| Fixpoint | CoFixpoint }
| {| Definition | Example | Context | Primitive | Symbol }
| {| Coercion | Instance | Scheme | Canonical | SubClass }
| {| Field | Method }
Filters objects by the keyword that was used to define them
(`Theorem`, `Lemma`, `Axiom`, `Variable`, `Context`,
`Primitive`...) or its status (`Coercion`, `Instance`, `Scheme`,
`Canonical`, `SubClass`, Field` for record fields, `Method` for class
`Canonical`, `SubClass`, `Field` for record fields, `Method` for class
fields). Note that `Coercion`\s, `Canonical Structure`\s, Instance`\s and `Scheme`\s can be
defined without using those keywords. See :ref:`this example <search-by-keyword>`.

Expand Down Expand Up @@ -308,6 +308,17 @@ described elsewhere

Search is:Instance [ Reflexive | Symmetric ].

The following search outputs operations on `nat` defined either with
the `Definition` or `Fixpoint`

.. coqtop:: none reset

Require Import PeanoNat.

.. coqtop:: all

Search (nat -> nat -> nat) [ is:Definition | is:Fixpoint ].

.. cmd:: SearchPattern @one_pattern {? {| inside | in | outside } {+ @qualid } }

Displays the name and type of all hypotheses of the
Expand Down

0 comments on commit a921bd1

Please sign in to comment.