Similar to mkFreshUserName
, but takes into account tactic.hygienic
option value.
If tactic.hygienic = true
, then the current macro scopes are applied to binderName
.
If not, then an unused (accessible) name (based on binderName
) in the local context is used.
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.
Introduce n
binders in the goal mvarId
.
Equations
- Lean.MVarId.introN mvarId n givenNames useNamesForExplicitOnly = Lean.Meta.introNCore mvarId n givenNames useNamesForExplicitOnly false
Equations
- Lean.Meta.introN mvarId n givenNames useNamesForExplicitOnly = Lean.MVarId.introN mvarId n givenNames useNamesForExplicitOnly
Introduce n
binders in the goal mvarId
. The new hypotheses are named using the binder names.
The suffix P
stands for "preserving`.
Equations
- Lean.MVarId.introNP mvarId n = Lean.Meta.introNCore mvarId n [] false true
Equations
- Lean.Meta.introNP mvarId n = Lean.MVarId.introNP mvarId n
Introduce one binder using name
as the the new hypothesis name.
Equations
- Lean.MVarId.intro mvarId name = do let __discr ← Lean.MVarId.introN mvarId 1 [name] false match __discr with | (fvarIds, mvarId) => pure (fvarIds[0]!, mvarId)
Equations
- Lean.Meta.intro mvarId name = Lean.MVarId.intro mvarId name
Equations
- One or more equations did not get rendered due to their size.
Introduce one object from the goal mvarid
, without preserving the name used in the binder.
Returns a pair made of the newly introduced variable (which will have an inaccessible name)
and the new goal. This will fail if there is nothing to introduce, ie when the goal
does not start with a forall, lambda or let.
Equations
- Lean.MVarId.intro1 mvarId = Lean.Meta.intro1Core mvarId false
Equations
- Lean.Meta.intro1 mvarId = Lean.MVarId.intro1 mvarId
Introduce one object from the goal mvarid
, preserving the name used in the binder.
Returns a pair made of the newly introduced variable and the new goal.
This will fail if there is nothing to introduce, ie when the goal
does not start with a forall, lambda or let.
Equations
- Lean.MVarId.intro1P mvarId = Lean.Meta.intro1Core mvarId true
Equations
- Lean.Meta.intro1P mvarId = Lean.MVarId.intro1P mvarId
Introduce as many binders as possible without unfolding definitions.
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.Meta.intros mvarId = Lean.MVarId.intros mvarId