Instantiates metavariables occurring in e, and returns a maximally shared term.
Equations
- Lean.Meta.Sym.instantiateMVarsS e = if e.hasMVar = true then do let __do_lift ← Lean.instantiateMVars e Lean.Meta.Sym.shareCommon __do_lift else pure e
Instances For
Head-only variant of instantiateMVarsS: instantiates and reshares only when the head of e is a
metavariable, otherwise returns e unchanged.
Equations
Instances For
If the head of e is a metavariable that instantiateMVars replaces, returns e with the head
replaced by its value and beta-reduced, and none otherwise. The arguments of e are not
traversed.
Equations
- One or more equations did not get rendered due to their size.