Skip to content

fix: checkUnivs takes other declarations and constructors into account - #14418

Merged
wkrozowski merged 1 commit into
leanprover:masterfrom
wkrozowski:wojciech/checkUnivsFix
Jul 20, 2026
Merged

fix: checkUnivs takes other declarations and constructors into account#14418
wkrozowski merged 1 commit into
leanprover:masterfrom
wkrozowski:wojciech/checkUnivsFix

Conversation

@wkrozowski

Copy link
Copy Markdown
Contributor

This PR changes the behaviour of checkUnivs linter to take all declarations and constructors (if dealing with an inductive type) when calculating universes that do not appear on their own.

Closes #14403

@wkrozowski wkrozowski added the changelog-language Language features and metaprograms label Jul 16, 2026
@github-actions github-actions Bot added toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN labels Jul 16, 2026
@leanprover-bot leanprover-bot added the builds-manual CI has verified that the Lean Language Reference builds against this PR label Jul 16, 2026
@leanprover-bot

leanprover-bot commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Reference manual CI status:

@mathlib-lean-pr-testing mathlib-lean-pr-testing Bot added the builds-mathlib CI has verified that Mathlib builds against this PR label Jul 16, 2026
@mathlib-lean-pr-testing

Copy link
Copy Markdown

Mathlib CI status (docs):

@wkrozowski
wkrozowski added this pull request to the merge queue Jul 20, 2026
Merged via the queue into leanprover:master with commit e1832d7 Jul 20, 2026
39 checks passed
robsimmons pushed a commit that referenced this pull request Jul 29, 2026
…unt (#14418)

This PR changes the behaviour of `checkUnivs` linter to take all
declarations and constructors (if dealing with an inductive type) when
calculating universes that do not appear on their own.

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

Labels

builds-manual CI has verified that the Lean Language Reference builds against this PR builds-mathlib CI has verified that Mathlib builds against this PR changelog-language Language features and metaprograms mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN 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.

checkUnivs linter provides false positive

2 participants