TorchLean API

NN.Widgets.Core.Docs

Declaration Documentation #

#tl_doc f prints a declaration's type and docstring as an info message. #tl_doc_view f renders them in a themed infoview panel. Import NN.Widgets or NN.Widgets.Core.Docs; both commands use Lean's declaration lookup and pretty-printer.

Monospaced block that wraps long lines instead of scrolling, for signatures and docstrings.

Instances For

    One declaration rendered as a card: name, type, and docstring, themed to the editor.

    Instances For

      Return the head constant name of an application, if one exists.

      Instances For

        Normalize optional docs into user-facing text.

        Instances For

          Pretty-print a declaration type using Lean's normal pretty-printer.

          Instances For

            Resolve an input term to a declaration name for doc lookup.

            Instances For

              Commands #