The areas / V01. The language of Mathlib
Mathlib.Lean.MessageData.ForExprs
11 declarations. Mathlib docs · Source
theorem Lean.MessageData.Exprs.mk.inj E1 #
∀ {msg msg_1 : Lean.MessageData}, { msg := msg } = { msg := msg_1 } → msg = msg_1
def Lean.MessageData.Exprs.ctorIdx E1 #
Lean.MessageData.Exprs → ℕ
theorem Lean.MessageData.Exprs.mk.injEq E0 #
∀ (msg msg_1 : Lean.MessageData), ({ msg := msg } = { msg := msg_1 }) = (msg = msg_1)
def Lean.MessageData.forExprsIn E1 #
{m : Type → Type u} →
[Monad m] →
[MonadLiftT BaseIO m] → {σ : Type} → Lean.MessageData → σ → (Lean.PPContext × Lean.Expr → σ → m (ForInStep σ)) → m σ
Iterate over all the expressions in a MessageData. Used to implement
for (ppCtx, e) in msg.exprs do notation, which should be preferred over using this declaration
directly.
structure Lean.MessageData.Exprs E1 #
Type
A wrapper structure for MessageData to enable for (ppCtx, e) in msg.exprs do notation.
ctor Lean.MessageData.Exprs.mk E0 #
Lean.MessageData → Lean.MessageData.Exprs
abbrev Lean.MessageData.Exprs.msg E1 #
Lean.MessageData.Exprs → Lean.MessageData
The MessageData whose expressions will be iterated over.
def Lean.MessageData.exprs E1 #
Lean.MessageData → Lean.MessageData.Exprs
for (ppCtx, e) in msg.exprs do iterates through the expressions in MessageData together
with their ppCtx : PPContext. The ppCtx can be used to interpret the expression in a valid
MetaM context via ppCtx.runMetaM.
The monad must support BaseIO in order to interpret .ofLazy nodes in MessageData.
Expressions without a valid ppCtx are skipped.
instance Lean.MessageData.instForInExprsProdPPContextExpr E0 #
{m : Type → Type u} → [Monad m] → [MonadLiftT BaseIO m] → ForIn m Lean.MessageData.Exprs (Lean.PPContext × Lean.Expr)
def Lean.MessageData.firstExpr? E1 #
{α : Type} → Lean.MessageData → (Lean.Expr → Lean.MetaM (Option α)) → IO (Option α)
Find the expression in a message on which f does not return none.
def Lean.MessageData.getExprs E1 #
{m : Type → Type u} → [Monad m] → [MonadLiftT BaseIO m] → Lean.MessageData → m (Array Lean.Expr)
Get all the expressions in a message, in order.
If you need the context of the expressions, prefer iterating over the expressions via
for (ppCtx, e) in msg.exprs do directly.