Documentation

LeanSearchClient.LoogleSyntax

LeanSearchClient #

In this file, we provide syntax for search using the leansearch API and the Moogle API. from within Lean. It allows you to search for Lean tactics and theorems using natural language.

We provide syntax to make a query and generate TryThis options to click or use a code action to use the results.

The queries are of three forms. For leansearch these are:

The corresponding syntax for Moogle is:

In all cases results are displayed in the Lean Infoview and clicking these replaces the query text. In the cases of a query for tactics only valid tactics are displayed.

Instances For
    Equations
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      Equations
      • One or more equations did not get rendered due to their size.
      Instances For

        The turnstyle uesd bin #find, unicode or ascii allowed

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For

          a single #find filter. The term can also be an ident or a strlit, these are distinguished in parseFindFilters

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For

            The argument to #find, a list of filters

            Equations
            Instances For
              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For