Equations
- Aesop.instInhabitedTraceOption = { default := { traceClass := default, option := default } }
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Aesop.TraceOption.isEnabled
{m : Type → Type}
[Monad m]
[Lean.MonadOptions m]
(opt : Aesop.TraceOption)
:
m Bool
Equations
- opt.isEnabled = do let __do_lift ← Lean.getOptions pure (Lean.Option.get __do_lift opt.option)
Instances For
def
Aesop.TraceOption.withEnabled
{m : Type → Type}
{α : Type}
[Lean.MonadWithOptions m]
(opt : Aesop.TraceOption)
(k : m α)
:
m α
Equations
- opt.withEnabled k = Lean.withOptions (fun (opts : Lean.Options) => Lean.Option.set opts opt.option true) k
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
- One or more equations did not get rendered due to their size.
Instances For
Equations
Instances For
Equations
Instances For
Equations
Instances For
Instances For
Equations
- Aesop.exceptRuleResultToEmoji toEmoji (Except.error a) = Aesop.ruleFailureEmoji
- Aesop.exceptRuleResultToEmoji toEmoji (Except.ok r) = toEmoji r
Instances For
@[always_inline]
def
Aesop.withAesopTraceNode
{m : Type → Type}
{ε : Type}
[Monad m]
[Lean.MonadTrace m]
[MonadLiftT BaseIO m]
[MonadLiftT IO m]
[Lean.MonadRef m]
[Lean.AddMessageContext m]
[Lean.MonadOptions m]
[Lean.MonadAlwaysExcept ε m]
{α : Type}
(opt : Aesop.TraceOption)
(msg : Except ε α → m Lean.MessageData)
(k : m α)
(collapsed : Bool := true)
:
m α
Equations
- Aesop.withAesopTraceNode opt msg k collapsed = Lean.withTraceNode opt.traceClass msg k collapsed
Instances For
@[always_inline]
def
Aesop.withConstAesopTraceNode
{m : Type → Type}
{ε : Type}
[Monad m]
[Lean.MonadTrace m]
[MonadLiftT BaseIO m]
[MonadLiftT IO m]
[Lean.MonadRef m]
[Lean.AddMessageContext m]
[Lean.MonadOptions m]
[Lean.MonadAlwaysExcept ε m]
{α : Type}
(opt : Aesop.TraceOption)
(msg : m Lean.MessageData)
(k : m α)
(collapsed : Bool := true)
:
m α
Equations
- Aesop.withConstAesopTraceNode opt msg k collapsed = Aesop.withAesopTraceNode opt (fun (x : Except ε α) => msg) k collapsed
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.