The areas / V34. The tactics of Mathlib
Mathlib.Tactic.Inhabit
4 declarations. Mathlib docs · Source
def Lean.Elab.Tactic.nonempty_to_inhabited E1 #
(α : Sort u_1) → Nonempty α → Inhabited α
Derives Inhabited α from Nonempty α with Classical.choice.
def Lean.Elab.Tactic.nonempty_prop_to_inhabited E1 #
(α : Prop) → Nonempty α → Inhabited α
Derives Inhabited α from Nonempty α without Classical.choice
assuming α is of type Prop.
def Lean.Elab.Tactic.inhabit E1 #
Lean.ParserDescr
inhabit α tries to derive a Nonempty α instance and
then uses it to make an Inhabited α instance.
If the target is a Prop, this is done constructively. Otherwise, it uses Classical.choice.
def Lean.Elab.Tactic.evalInhabit E1 #
Lean.MVarId → Option Lean.Ident → Lean.Syntax → Lean.Elab.Tactic.TacticM Lean.MVarId
evalInhabit takes in the MVarId of the main goal, runs the core portion of the inhabit tactic,
and returns the resulting MVarId