Skip to content

Make ForExtraction imply EraseUniverses#3897

Open
gebner wants to merge 1 commit into
masterfrom
gebner_extract_erase_univs
Open

Make ForExtraction imply EraseUniverses#3897
gebner wants to merge 1 commit into
masterfrom
gebner_extract_erase_univs

Conversation

@gebner

@gebner gebner commented Jul 13, 2025

Copy link
Copy Markdown
Contributor

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.

1 participant