Defines the inhabit α tactic, which tries to construct an Inhabited α instance,
constructively or otherwise.
@[implicit_reducible]
Derives Inhabited α from Nonempty α with Classical.choice.
Equations
- Lean.Elab.Tactic.nonempty_to_inhabited α x✝ = { default := Classical.ofNonempty }
Instances For
@[implicit_reducible]
Derives Inhabited α from Nonempty α without Classical.choice
assuming α is of type Prop.
Equations
- Lean.Elab.Tactic.nonempty_prop_to_inhabited α α_nonempty = { default := ⋯ }
Instances For
evalInhabit takes in the MVarId of the main goal, runs the core portion of the inhabit tactic,
and returns the resulting MVarId
Equations
- One or more equations did not get rendered due to their size.