Documentation

Lean.Meta.Tactic.Injection

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      Instances For
        def Lean.Meta.injectionIntro (mvarId : Lean.MVarId) (numEqs : Nat) (newNames : List Lean.Name) (tryToClear : Bool := true) :
        Equations
        Instances For
          Equations
          Instances For
            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              Instances For
                def Lean.Meta.injections (mvarId : Lean.MVarId) (newNames : List Lean.Name := []) (maxDepth : Nat := 5) (forbidden : Lean.FVarIdSet := ) :

                Applies injection to local declarations in mvarId. It uses newNames to name the new local declarations. maxDepth is the maximum recursion depth. Only local declarations that are not in forbidden are considered. Recall that some of local declarations may not have been eliminated from the local context due to forward dependencies, and we use forbidden to avoid non-termination when using injections in a loop.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  partial def Lean.Meta.injections.go (depth : Nat) (fvarIds : List Lean.FVarId) (mvarId : Lean.MVarId) (newNames : List Lean.Name) (forbidden : Lean.FVarIdSet) :