Documentation

Lean.Message

def Lean.mkErrorStringWithPos (fileName : String) (pos : Lean.Position) (msg : String) (endPos : optParam (Option Lean.Position) none) :
Equations
  • One or more equations did not get rendered due to their size.
inductive Lean.MessageSeverity :
Type
Instances For
    structure Lean.NamingContext :
    Type

    A naming context is the information needed to shorten names in pretty printing.

    It gives the current namespace and the list of open declarations.

    Instances For
      inductive Lean.MessageData :
      Type

      Structured message data. We use it for reporting errors, trace messages, etc.

      Instances For

        Instantiate metavariables occurring in nexted ofExpr constructors. It uses the surrounding MetavarContext at withContext constructors.

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

        Returns true when the message contains a MessageData.tagged tag .. constructor where p tag is true.

        Whether the given message equals MessageData.nil. See also MessageData.isEmpty.

        Equations

        Whether the message is a MessageData.nest constructor.

        Equations
        Equations
        • Lean.MessageData.mkPPContext nCtx ctx = { env := ctx.env, mctx := ctx.mctx, lctx := ctx.lctx, opts := ctx.opts, currNamespace := nCtx.currNamespace, openDecls := nCtx.openDecls }
        Equations
        Equations
        • One or more equations did not get rendered due to their size.

        Wrap the given message in l and r. See also Format.bracket.

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

        Wrap the given message in parentheses ().

        Equations

        Wrap the given message in square brackets [].

        Equations

        Append the given list of messages with the given separarator.

        Equations

        Write the given list of messages as a list, separating each item with ,\n and surrounding with square brackets.

        Equations
        • One or more equations did not get rendered due to their size.
        structure Lean.Message :
        Type

        A Message is a richly formatted piece of information emitted by Lean. They are rendered by client editors in the infoview and in diagnostic windows.

        Instances For
          Equations
          • Lean.instInhabitedMessage = { default := { fileName := default, pos := default, endPos := default, severity := default, caption := default, data := default } }
          Equations
          • One or more equations did not get rendered due to their size.
          structure Lean.MessageLog :
          Type

          A persistent array of messages.

          Instances For
            Equations
            • One or more equations did not get rendered due to their size.
            Equations
            Equations
            Equations
            • One or more equations did not get rendered due to their size.
            Equations
            • One or more equations did not get rendered due to their size.
            def Lean.MessageLog.forM {m : TypeType} [inst : Monad m] (log : Lean.MessageLog) (f : Lean.Messagem Unit) :
            Equations
            class Lean.AddMessageContext (m : TypeType) :
            Type
            Instances
              instance Lean.instAddMessageContext (m : TypeType) (n : TypeType) [inst : MonadLift m n] [inst : Lean.AddMessageContext m] :
              Equations
              def Lean.addMessageContextPartial {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadOptions m] (msgData : Lean.MessageData) :
              Equations
              • One or more equations did not get rendered due to their size.
              def Lean.addMessageContextFull {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadMCtx m] [inst : Lean.MonadLCtx m] [inst : Lean.MonadOptions m] (msgData : Lean.MessageData) :
              Equations
              • One or more equations did not get rendered due to their size.
              class Lean.ToMessageData (α : Type) :
              Type
              Instances
                Equations
                • One or more equations did not get rendered due to their size.
                instance Lean.instToMessageData {α : Type} [inst : Lean.ToFormat α] :
                Equations
                Equations
                Equations
                Equations
                Equations
                Equations
                • One or more equations did not get rendered due to their size.
                Equations
                • One or more equations did not get rendered due to their size.
                Equations
                • One or more equations did not get rendered due to their size.
                Equations
                • One or more equations did not get rendered due to their size.