Skip to content

Conversation

@gebner
Copy link
Contributor

@gebner gebner commented Jul 13, 2025

I could not reproduce this in a short example, but there are several places in the ML extraction code where we call normalization with ForExtraction set, but not EraseUniverses. This predictably breaks extract_as on universe-polymorphic functions (because normalizes the fvar to an abstraction and then the abstraction is applied to universe instances).

The most robust fix seems to be to have ForExtraction imply EraseUniverses, then you can't forget the flag at all. This is what I'm doing in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants