Zulip Chat Archive

Stream: metaprogramming / tactics

Topic: Solve level mvars in an expression


Leni Aniva (Aug 14 2025 at 00:00):

If we have an expression e with level mvars, and we know that its type must conform to t, is there a way to solve and assign all level mvars in e? I know that there's isLevelDefEq, but I don't know how can I invoke it in this context.

Aaron Liu (Aug 14 2025 at 00:04):

maybe check?

Leni Aniva (Aug 14 2025 at 00:05):

Aaron Liu said:

maybe check?

that was perfect! thank you

Aaron Liu (Aug 14 2025 at 00:05):

or you could infer the type, infer the universe, and then check level defeq

Aaron Liu (Aug 14 2025 at 00:05):

but that sounds a lot more complicated

Aaron Liu (Aug 14 2025 at 00:07):

and it could also miss some metavariables so I guess the only way to do it is check after all


Last updated: Dec 20 2025 at 21:32 UTC