Skip to content

fix: replay type dependencies of all mutual inductive members in Kernel.Environment.replay - #16138

Merged
nomeata merged 1 commit into
masterfrom
joachim/issue16133
Oct 31, 2026
Merged

nomeata merged 1 commit into
masterfrom
joachim/issue16133

Conversation

@nomeata

@nomeata nomeata commented Oct 31, 2026

Copy link
Copy Markdown
Collaborator

This PR makes Kernel.Environment.replay add the constants used in the types of all members of a mutual inductive block before adding the block. Previously only the dependencies of the member through which replay reached the block, and those of the constructors, were added, so a valid export could be rejected with unknown constant, depending on hash order.

Fixes #16133

🤖 Generated with Claude Code

…nel.Environment.replay`

This PR makes `Kernel.Environment.replay` add the constants used in the types of all members of a mutual inductive block before adding the block. Previously only the dependencies of the member through which replay reached the block, and those of the constructors, were added, so a valid export such as one containing `mutual inductive A : Prop | mk : A; inductive AB : Bool → Prop end` could be rejected with `unknown constant 'Bool'`, depending on hash order.

Fixes #16133

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@nomeata nomeata added the changelog-language Language features and metaprograms label Oct 31, 2026
@nomeata
nomeata enabled auto-merge October 31, 2026 09:53
@nomeata
nomeata added this pull request to the merge queue Oct 31, 2026
@github-actions github-actions Bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Oct 31, 2026
Merged via the queue into master with commit 842c518 Oct 31, 2026
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-language Language features and metaprograms toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lean.Replay: mutual block replayed before constants used only in a later type's signature

1 participant