Documentation

Mathlib.Lean.Meta

Additional utilities in Lean.MVarId #

Add the hypothesis h : t, given v : t, and return the new FVarId.

Equations

Has the effect of refine ⟨e₁,e₂,⋯, ?_⟩.

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

Applies intro repeatedly until it fails. We use this instead of Lean.MVarId.intros to allowing unfolding. For example, if we want to do introductions for propositions like ¬p, the ¬ needs to be unfolded into False, and intros does not do such unfolding.

Equations

Get the type the given metavariable after instantiating metavariables and cleaning up annotations.

Equations
  • mvarId.getType'' = do let __do_liftmvarId.getType let __do_liftLean.instantiateMVars __do_lift pure __do_lift.cleanupAnnotations

Analogue of liftMetaTactic for tactics that return a single goal.

Equations

Copy of Lean.Elab.Tactic.run that can return a value.

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