Skip to content

feat: Option lemmas#8379

Merged
TwoFX merged 3 commits intomasterfrom
markus/option-lemmas-5
May 19, 2025
Merged

feat: Option lemmas#8379
TwoFX merged 3 commits intomasterfrom
markus/option-lemmas-5

Conversation

@TwoFX
Copy link
Copy Markdown
Member

@TwoFX TwoFX commented May 16, 2025

This PR adds missing Option lemmas.

Also:

  • generalize bindM from Monad to Pure
  • change the simp normal form of both <|> and Option.orElse to Option.or

@TwoFX TwoFX requested review from kim-em and leodemoura as code owners May 16, 2025 12:16
@TwoFX TwoFX added the changelog-library Library label May 16, 2025
@TwoFX TwoFX force-pushed the markus/option-lemmas-5 branch from 2fe37c6 to 357828a Compare May 16, 2025 12:17
@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 May 16, 2025
ghost pushed a commit to leanprover-community/batteries that referenced this pull request May 16, 2025
ghost pushed a commit to leanprover-community/mathlib4 that referenced this pull request May 16, 2025
@ghost
Copy link
Copy Markdown

ghost commented May 16, 2025

Mathlib CI status (docs):

  • 🟡 Mathlib branch lean-pr-testing-8379 build against this PR was cancelled. (2025-05-16 12:53:48) View Log
  • ✅ Mathlib branch lean-pr-testing-8379 has successfully built against this PR. (2025-05-16 13:37:15) View Log
  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase efe2ab4c04e81fe2a3edcc0d861449490b4431b2 --onto c8290bd94221f41ae49899f0f7de71b52724ad7e. You can force Mathlib CI using the force-mathlib-ci label. (2025-05-19 08:48:19)

@ghost ghost added the builds-mathlib CI has verified that Mathlib builds against this PR label May 16, 2025
@TwoFX TwoFX enabled auto-merge May 16, 2025 13:37
@TwoFX TwoFX added this pull request to the merge queue May 16, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks May 16, 2025
@TwoFX TwoFX force-pushed the markus/option-lemmas-5 branch from 357828a to 0e081fe Compare May 19, 2025 08:20
@TwoFX TwoFX added this pull request to the merge queue May 19, 2025
Merged via the queue into master with commit 9ad4414 May 19, 2025
14 checks passed
github-merge-queue bot pushed a commit that referenced this pull request May 24, 2025
This PR adds further `@[grind]` annotations for `Option`, as follow-up
to the recent additions to the `Option` API in #8379 and #8298.

**However**, I am concurrently investigating adding `attribute [grind
cases] Option`, which will result in many (most?) of the annotations for
`Option` being removed again. In any case, I'm going to merge this
first, as if that is viable I would like to test that most/all the
lemmas now marked with `@[grind]` are still provable by `grind`.
@TwoFX TwoFX deleted the markus/option-lemmas-5 branch August 4, 2025 07:18
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 changelog-library Library 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