Documentation

Lean.Widget.InteractiveGoal

RPC procedures for retrieving tactic and term goals with embedded CodeWithInfos.

  • The user-friendly name for each hypothesis. If anonymous then the name is inaccessible and hidden.

  • The ids for each variable. Should have the same length as names.

    fvarIds : Array Lean.FVarId
  • The value, in the case the hypothesis is a let-binder.

  • The hypothesis is a typeclass instance.

    isInstance : Bool
  • The hypothesis is a type.

    isType : Bool
  • If true, the hypothesis was not present on the previous tactic state. Uses none instead of some false to save space in the json encoding.

    isInserted? : Option Bool
  • If true, the hypothesis will be removed in the next tactic state. Uses none instead of some false to save space in the json encoding.

    isRemoved? : Option Bool

In the infoview, if multiple hypotheses h₁, h₂ have the same type α, they are rendered as h₁ h₂ : α. We call this a 'hypothesis bundle'.

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.
      Equations
      • One or more equations did not get rendered due to their size.

      This is everything needed to render an interactive term goal in the infoview.

      Instances For
        Equations
        Equations
        def Lean.Widget.withGoalCtx {n : TypeType} [inst : MonadControlT Lean.MetaM n] [inst : Monad n] [inst : Lean.MonadError n] [inst : Lean.MonadOptions n] [inst : Lean.MonadMCtx n] {α : Type} (goal : Lean.MVarId) (action : Lean.LocalContextLean.MetavarDecln α) :
        n α
        Equations
        • One or more equations did not get rendered due to their size.

        A variant of Meta.ppGoal which preserves subexpression information for interactivity.

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