Documentation

Lean.DocString.Extension

Saved data that describes the contents. The name should determine both the type of the value and its interpretation; if in doubt, use the name of the elaborator that produces the data.

Instances For
    structure Lean.ElabBlock :

    Saved data that describes the contents. The name should determine both the type of the value and its interpretation; if in doubt, use the name of the elaborator that produces the data.

    Instances For
      def Lean.addBuiltinDocString (declName : Name) (docString : String) :

      Adds a builtin docstring to the compiler.

      Links to the Lean manual aren't validated.

      Equations
      Instances For
        def Lean.addDocStringCore {m : TypeType} [Monad m] [MonadError m] [MonadEnv m] [MonadLiftT BaseIO m] (declName : Name) (docString : String) :
        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          def Lean.addDocStringCore' {m : TypeType} [Monad m] [MonadError m] [MonadEnv m] [MonadLiftT BaseIO m] (declName : Name) (docString? : Option String) :
          Equations
          Instances For
            def Lean.addInheritedDocString {m : TypeType} [Monad m] [MonadError m] [MonadEnv m] (declName target : Name) :
            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              partial def Lean.findInternalDocString? (env : Environment) (declName : Name) (includeBuiltin : Bool := true) :

              Finds a docstring without performing any alias resolution or enrichment with extra metadata. For Markdown docstrings, the result is a string; for Verso docstrings, it's a VersoDocString.

              Docstrings to be shown to a user should be looked up with Lean.findDocString? instead.

              def Lean.findSimpleDocString? (env : Environment) (declName : Name) (includeBuiltin : Bool := true) :

              Finds a docstring without performing any alias resolution or enrichment with extra metadata. The result is rendered as Markdown.

              Docstrings to be shown to a user should be looked up with Lean.findDocString? instead.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                structure Lean.ModuleDoc :
                Instances For
                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    def Lean.getDocStringText {m : TypeType} [Monad m] [MonadError m] (stx : TSyntax `Lean.Parser.Command.docComment) :
                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For