Zulip Chat Archive
Stream: Is there code for X?
Topic: Get all level mvars in Expr
Marcus Rossel (Jan 03 2024 at 14:41):
Is there a way to obtain all universe level mvars contained in a given Expr
? So something like Expr.getLMVars : Expr -> List (LMVarId)
?
Kyle Miller (Jan 03 2024 at 14:58):
I'm not aware of something that collects level metavariables, but there's docs#Lean.MetavarContext.levelMVarToParam to convert them to fresh level parameters.
docs#Lean.Elab.Term.levelMVarToParam is an example usage.
Last updated: May 02 2025 at 03:31 UTC