Zulip Chat Archive

Stream: lean4

Topic: A polymorphic version of ` withCollectingNewGoalsFrom`


Leni Aniva (Aug 30 2024 at 05:19):

Is there a polymorphic version of this function? I want to elaborate an expression and simultaneously return extra information, but this function restricts the return type to Expr.

e.g. something like

def withCollectingNewGoalsFrom { a } (k : TacticM a) (tagSuffix : Name) (allowNaturalHoles := false) : TacticM (a × List MVarId) :=

Last updated: May 02 2025 at 03:31 UTC