Reducing Pi instances for indexing in the RefinedDiscrTree #
def
Lean.Meta.RefinedDiscrTree.reduceHBinOpAux
(args : Array Expr)
(lambdas : List FVarId)
(instH instPi : Name)
:
Normalize an application of a heterogeneous binary operator like HAdd.hAdd
, using:
f = fun x => f x
to increase the arity to 6(f + g) a = f a + g a
to decrease the arity to 6(fun x => f x + g x) = f + g
to get rid of any lambdas in front