Equations
- One or more equations did not get rendered due to their size.
Instances For
- information: Lean.MessageSeverity
- warning: Lean.MessageSeverity
- error: Lean.MessageSeverity
Instances For
Equations
- Lean.instInhabitedMessageSeverity = { default := Lean.MessageSeverity.information }
Equations
- Lean.instBEqMessageSeverity = { beq := Lean.beqMessageSeverity✝ }
- env : Lean.Environment
- mctx : Lean.MetavarContext
- lctx : Lean.LocalContext
- opts : Lean.Options
Instances For
A naming context is the information needed to shorten names in pretty printing.
It gives the current namespace and the list of open declarations.
- currNamespace : Lake.Name
- openDecls : List Lean.OpenDecl
Instances For
Lazily formatted text to be used in MessageData
.
Pretty-prints text using surrounding context, if any.
- hasSyntheticSorry : Lean.MetavarContext → Bool
Searches for synthetic sorries in original input. Used to filter out certain messages.
Instances For
Structured message data. We use it for reporting errors, trace messages, etc.
- ofFormat: Lean.Format → Lean.MessageData
Eagerly formatted text. We inspect this in various hacks, so it is not immediately subsumed by
ofPPFormat
. - ofPPFormat: Lean.PPFormat → Lean.MessageData
Lazily formatted text.
- ofGoal: Lean.MVarId → Lean.MessageData
- withContext: Lean.MessageDataContext → Lean.MessageData → Lean.MessageData
withContext ctx d
specifies the pretty printing context(env, mctx, lctx, opts)
for the nested expressions ind
. - withNamingContext: Lean.NamingContext → Lean.MessageData → Lean.MessageData
- nest: Nat → Lean.MessageData → Lean.MessageData
Lifted
Format.nest
- group: Lean.MessageData → Lean.MessageData
Lifted
Format.group
- compose: Lean.MessageData → Lean.MessageData → Lean.MessageData
Lifted
Format.compose
- tagged: Lake.Name → Lean.MessageData → Lean.MessageData
Tagged sections.
Name
should be viewed as a "kind", and is used byMessageData
inspector functions. Example: an inspector that tries to find "definitional equality failures" may look for the tag "DefEqFailure". - trace: Lake.Name → Lean.MessageData → Array Lean.MessageData → optParam Bool false → Lean.MessageData
Instances For
Equations
- Lean.instInhabitedMessageData = { default := Lean.MessageData.ofFormat default }
Determines whether the message contains any content.
Equations
- Lean.MessageData.isEmpty (Lean.MessageData.ofFormat f) = Std.Format.isEmpty f
- Lean.MessageData.isEmpty (Lean.MessageData.withContext a m) = Lean.MessageData.isEmpty m
- Lean.MessageData.isEmpty (Lean.MessageData.withNamingContext a m) = Lean.MessageData.isEmpty m
- Lean.MessageData.isEmpty (Lean.MessageData.nest a m) = Lean.MessageData.isEmpty m
- Lean.MessageData.isEmpty (Lean.MessageData.group m) = Lean.MessageData.isEmpty m
- Lean.MessageData.isEmpty (Lean.MessageData.compose m₁ m₂) = (Lean.MessageData.isEmpty m₁ && Lean.MessageData.isEmpty m₂)
- Lean.MessageData.isEmpty (Lean.MessageData.tagged a m) = Lean.MessageData.isEmpty m
- Lean.MessageData.isEmpty x = false
Instances For
Returns true when the message contains a MessageData.tagged tag ..
constructor where p tag
is true.
An empty message.
Instances For
Equations
- Lean.MessageData.mkPPContext nCtx ctx = { env := ctx.env, mctx := ctx.mctx, lctx := ctx.lctx, opts := ctx.opts, currNamespace := nCtx.currNamespace, openDecls := nCtx.openDecls }
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
Instances For
Equations
Instances For
Equations
Instances For
Equations
- Lean.MessageData.format msgData = Lean.MessageData.formatAux { currNamespace := Lean.Name.anonymous, openDecls := [] } none msgData
Instances For
Equations
- Lean.MessageData.toString msgData = do let __do_lift ← Lean.MessageData.format msgData pure (toString __do_lift)
Instances For
Equations
- Lean.MessageData.instAppendMessageData = { append := Lean.MessageData.compose }
Equations
- Lean.MessageData.instCoeStringMessageData = { coe := Lean.MessageData.ofFormat ∘ Std.format }
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.
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.
Instances For
Wrap the given message in parentheses ()
.
Equations
- Lean.MessageData.paren f = Lean.MessageData.bracket "(" f ")"
Instances For
Wrap the given message in square brackets []
.
Equations
- Lean.MessageData.sbracket f = Lean.MessageData.bracket "[" f "]"
Instances For
Append the given list of messages with the given separator.
Equations
- Lean.MessageData.joinSep [] x = Lean.MessageData.ofFormat Lean.Format.nil
- Lean.MessageData.joinSep [a] x = a
- Lean.MessageData.joinSep (a :: as) x = a ++ x ++ Lean.MessageData.joinSep as x
Instances For
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.
Instances For
See MessageData.ofList
.
Equations
- Lean.MessageData.ofArray msgs = Lean.MessageData.ofList (Array.toList msgs)
Instances For
Equations
Equations
- Lean.MessageData.instCoeListExprMessageData = { coe := fun (es : List Lean.Expr) => Lean.MessageData.ofList (List.map Lean.MessageData.ofExpr es) }
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.
- fileName : String
- pos : Lean.Position
- endPos : Option Lean.Position
- keepFullRange : Bool
If
true
, report range as given; seemsgToInteractiveDiagnostic
. - severity : Lean.MessageSeverity
- data : Lean.MessageData
The content of the message.
Instances For
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.
Instances For
Equations
- Lean.instInhabitedMessageLog = { default := { msgs := default } }
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.MessageLog.isEmpty log = Lean.PersistentArray.isEmpty log.msgs
Instances For
Equations
- Lean.MessageLog.add msg log = { msgs := Lean.PersistentArray.push log.msgs msg }
Instances For
Equations
- Lean.MessageLog.append l₁ l₂ = { msgs := l₁.msgs ++ l₂.msgs }
Instances For
Equations
- Lean.MessageLog.instAppendMessageLog = { append := Lean.MessageLog.append }
Equations
- Lean.MessageLog.hasErrors log = Lean.PersistentArray.any log.msgs fun (m : Lean.Message) => match m.severity with | Lean.MessageSeverity.error => true | x => false
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
- Lean.MessageLog.forM log f = Lean.PersistentArray.forM log.msgs f
Instances For
Equations
- Lean.MessageLog.toList log = List.reverse (Lean.PersistentArray.foldl log.msgs (fun (acc : List Lean.Message) (msg : Lean.Message) => msg :: acc) [])
Instances For
Equations
- Lean.MessageData.nestD msg = Lean.MessageData.nest 2 msg
Instances For
Equations
Instances For
Equations
Instances For
- addMessageContext : Lean.MessageData → m Lean.MessageData
Instances
Equations
- Lean.instAddMessageContext m n = { addMessageContext := fun (msg : Lean.MessageData) => liftM (Lean.addMessageContext msg) }
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
- Lean.instToMessageData = { toMessageData := Lean.MessageData.ofFormat ∘ Std.format }
Equations
- Lean.instToMessageDataExpr = { toMessageData := Lean.MessageData.ofExpr }
Equations
- Lean.instToMessageDataLevel = { toMessageData := Lean.MessageData.ofLevel }
Equations
- Lean.instToMessageDataName = { toMessageData := Lean.MessageData.ofName }
Equations
- Lean.instToMessageDataString = { toMessageData := Lean.stringToMessageData }
Equations
- Lean.instToMessageDataSyntax = { toMessageData := Lean.MessageData.ofSyntax }
Equations
- Lean.instToMessageDataTSyntax = { toMessageData := fun (x : Lean.TSyntax k) => Lean.MessageData.ofSyntax x.raw }
Equations
- Lean.instToMessageDataFormat = { toMessageData := Lean.MessageData.ofFormat }
Equations
- Lean.instToMessageDataMVarId = { toMessageData := Lean.MessageData.ofGoal }
Equations
- Lean.instToMessageDataMessageData = { toMessageData := id }
Equations
- Lean.instToMessageDataList = { toMessageData := fun (as : List α) => Lean.MessageData.ofList (List.map Lean.toMessageData as) }
Equations
- Lean.instToMessageDataArray = { toMessageData := fun (as : Array α) => Lean.toMessageData (Array.toList as) }
Equations
- Lean.instToMessageDataSubarray = { toMessageData := fun (as : Subarray α) => Lean.toMessageData (Array.toList (Subarray.toArray as)) }
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.
Instances For
Equations
- Lean.toMessageList msgs = Lean.indentD (Lean.MessageData.joinSep (Array.toList msgs) (Lean.toMessageData "\n\n"))
Instances For
Equations
- One or more equations did not get rendered due to their size.