The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V34. The tactics of Mathlib

Mathlib.Tactic.Widget.SelectInsertParamsClass

8 declarations. Mathlib docs · Source

SelectInsertParamsClass

Defines the basic class of parameters for a select and insert widget.

This needs to be in a separate file in order to initialize the deriving handler.

def SelectInsertParamsClass.ctorIdx E1 #

{α : Type} → SelectInsertParamsClass α → ℕ

class SelectInsertParamsClass E1 #

Type → Type

Structures providing parameters for a Select and insert widget.

ctor SelectInsertParamsClass.mk E0 #

{α : Type} →
  (α → Lean.Lsp.Position) →
    (α → Array Lean.Widget.InteractiveGoal) →
      (α → Array Lean.SubExpr.GoalsLocation) → (α → Lean.Lsp.Range) → SelectInsertParamsClass α

abbrev SelectInsertParamsClass.pos E1 #

{α : Type} → [self : SelectInsertParamsClass α] → α → Lean.Lsp.Position

Cursor position in the file at which the widget is being displayed.

abbrev SelectInsertParamsClass.goals E1 #

{α : Type} → [self : SelectInsertParamsClass α] → α → Array Lean.Widget.InteractiveGoal

The current tactic-mode goals.

abbrev SelectInsertParamsClass.selectedLocations E1 #

{α : Type} → [self : SelectInsertParamsClass α] → α → Array Lean.SubExpr.GoalsLocation

Locations currently selected in the goal state.

abbrev SelectInsertParamsClass.replaceRange E1 #

{α : Type} → [self : SelectInsertParamsClass α] → α → Lean.Lsp.Range

The range in the source document where the command will be inserted.

def Lean.Elab.mkSelectInsertParamsInstanceHandler E1 #

Array Lean.Name → Lean.Elab.Command.CommandElabM Bool

Handler deriving a SelectInsertParamsClass instance.