Skip to content

chore: adaptations preparing for Lean v4.37.0 - #194

Merged
thorimur merged 3 commits into
mainfrom
v4.37.0-adaptation
Nov 12, 2026
Merged

thorimur merged 3 commits into
mainfrom
v4.37.0-adaptation

Conversation

@Vierkantor

@Vierkantor Vierkantor commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

This PR replaces iterating over env.const2ModIdx with iterating over env.header.moduleData, since the upcoming Lean release drops Environment.const2ModIdx. I am making this PR since Mathlib's nightly-testing depends on ImportGraph's main branch.

This was initially copied from downstream-lean4: leanprover/downstream-lean4@d3dcf6c#diff-049347008dd76be0699af5a73c59a08b773210018948e22fdc8bf5bdd0c34c0e I checked that the adapted code makes sense and the tests still pass. It was then modified during review.

Lean PR: leanprover/lean4#14362

This PR replaces iterating over `env.const2ModIdx` with iterating over `env.header.moduleData`, since the upcoming Lean release drops `Environment.const2ModIdx`. I am making this PR since Mathlib's nightly-testing depends on ImportGraph's `main` branch.

This was copied from downstream-lean4: leanprover/downstream-lean4@d3dcf6c#diff-049347008dd76be0699af5a73c59a08b773210018948e22fdc8bf5bdd0c34c0e I checked that the adapted code makes sense and the tests still pass.

Lean PR: leanprover/lean4#14362

@thorimur thorimur left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me modulo these tiny changes! :)

Comment thread ImportGraph/Export/Gexf.lean Resolved
Comment thread ImportGraph/Export/Gexf.lean Resolved
@thorimur

thorimur commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Unless, does this need to match the adaptation PR? If so, it's fine as-is.

@Vierkantor

Copy link
Copy Markdown
Contributor Author

The changes should be upstream[ed,able] to downstream-lean4 either in their own PR or whenever they merge from here.

@thorimur

Copy link
Copy Markdown
Collaborator

I'm going to go ahead and merge this since it's a request for speedy review and quite small, so I'm hoping this helps out. :)

@thorimur
thorimur merged commit 5ab3beb into main Nov 12, 2026
1 check passed
@thorimur
thorimur deleted the v4.37.0-adaptation branch November 12, 2026 18:46
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