Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: misleading type at Option.forM #4403

Merged
merged 1 commit into from
Jun 7, 2024
Merged

fix: misleading type at Option.forM #4403

merged 1 commit into from
Jun 7, 2024

Conversation

leodemoura
Copy link
Member

The type uses PUnit, but the pure () in the body was forcing the implicit universe level at PUnit to be 1.

We should probably elaborate defs like we elaborate theorems when the resulting type is provided. This kind of mistake is hard to spot.

… `1`

Remark: we should probably elaborate `def`s like we elaborate theorems
when the resulting type is provided.
@leodemoura leodemoura requested a review from kim-em as a code owner June 7, 2024 23:08
@leodemoura leodemoura enabled auto-merge June 7, 2024 23:08
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc June 7, 2024 23:23 Inactive
@leodemoura leodemoura added this pull request to the merge queue Jun 7, 2024
@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 Jun 7, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Jun 7, 2024
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Jun 7, 2024
Merged via the queue into master with commit fd4281a Jun 7, 2024
13 checks passed
@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added the builds-mathlib CI has verified that Mathlib builds against this PR label Jun 8, 2024
@leanprover-community-mathlib4-bot
Copy link
Collaborator

Mathlib CI status (docs):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
builds-mathlib CI has verified that Mathlib builds against this PR 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.

2 participants