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

refactor: elaborate forIn notation without extra let #6977

Merged
merged 4 commits into from
Feb 8, 2025

Conversation

nomeata
Copy link
Collaborator

@nomeata nomeata commented Feb 6, 2025

This PR avoids a let in the elaboration of forIn. It was introduced in f51328ff112 but nothing seems to break when I simplify the code. This removes an unexpected let col✝ :=… from the “Expected type” view in the Info View and from the termination proofs.

This PR avoids a `let` in the elaboration of `forIn`. It was introduced
in f51328ff112
but nothing seems to break when I simplify the code. This produces
cleaner termination proof goals which would otherwise have an unexpected
```
let col✝ :=
```
in the context.
@nomeata nomeata added the awaiting-mathlib We should not merge this until we have a successful Mathlib build label Feb 6, 2025
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc February 6, 2025 16:35 Inactive
@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 Feb 6, 2025
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Feb 6, 2025
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Feb 6, 2025
@leanprover-community-bot leanprover-community-bot added builds-mathlib CI has verified that Mathlib builds against this PR and removed awaiting-mathlib We should not merge this until we have a successful Mathlib build labels Feb 6, 2025
@leanprover-community-bot
Copy link
Collaborator

leanprover-community-bot commented Feb 6, 2025

Mathlib CI status (docs):

@nomeata nomeata requested a review from kmill February 8, 2025 10:01
@nomeata nomeata removed the request for review from kmill February 8, 2025 10:14
@nomeata nomeata enabled auto-merge February 8, 2025 10:14
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc February 8, 2025 10:25 Inactive
@nomeata nomeata added this pull request to the merge queue Feb 8, 2025
leanprover-community-mathlib4-bot added a commit to leanprover-community/batteries that referenced this pull request Feb 8, 2025
leanprover-community-mathlib4-bot added a commit to leanprover-community/mathlib4 that referenced this pull request Feb 8, 2025
Merged via the queue into master with commit 7c809a9 Feb 8, 2025
16 checks passed
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