Skip to content

feat: add ExceptConds.and_elim_left/right#12760

Merged
kim-em merged 2 commits intomasterfrom
feat/exceptconds-and-elim
Mar 4, 2026
Merged

feat: add ExceptConds.and_elim_left/right#12760
kim-em merged 2 commits intomasterfrom
feat/exceptconds-and-elim

Conversation

@kim-em
Copy link
Copy Markdown
Collaborator

@kim-em kim-em commented Mar 2, 2026

This PR adds general projection lemmas for ExceptConds conjunction:

  • ExceptConds.and_elim_left: (x ∧ₑ y) ⊢ₑ x
  • ExceptConds.and_elim_right: (x ∧ₑ y) ⊢ₑ y

The existing and_true, true_and, and_false, false_and are refactored as one-line corollaries.

Suggested by @sgraf812 in https://github.com/leanprover-community/cslib/pull/376#discussion_r2066993469.

🤖 Prepared with Claude Code

Add general projection lemmas for ExceptConds conjunction, and
refactor and_true/true_and/and_false/false_and as corollaries.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kim-em kim-em requested a review from sgraf812 as a code owner March 2, 2026 05:42
@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 Mar 2, 2026
@mathlib-lean-pr-testing
Copy link
Copy Markdown

mathlib-lean-pr-testing bot commented Mar 2, 2026

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase cda84702e9b31165f1f83c657b532f36f34e0bd0 --onto 87ec768a509c45987a7d73258da0cc1ef047925c. You can force Mathlib CI using the force-mathlib-ci label. (2026-03-02 06:34:29)
  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 530925c69b15c3bbe3af4ba1380e11f581be8cba --onto cda84702e9b31165f1f83c657b532f36f34e0bd0. You can force Mathlib CI using the force-mathlib-ci label. (2026-03-04 00:48:14)

@leanprover-bot
Copy link
Copy Markdown
Collaborator

leanprover-bot commented Mar 2, 2026

Reference manual CI status:

  • ❗ Reference manual CI will not be attempted unless your PR branches off the nightly-with-manual branch. Try git rebase cda84702e9b31165f1f83c657b532f36f34e0bd0 --onto 8038a8b8904f89ad9542c8eda11379f8f006eab1. You can force reference manual CI using the force-manual-ci label. (2026-03-02 06:34:30)
  • ❗ Reference manual CI will not be attempted unless your PR branches off the nightly-with-manual branch. Try git rebase 530925c69b15c3bbe3af4ba1380e11f581be8cba --onto cda84702e9b31165f1f83c657b532f36f34e0bd0. You can force reference manual CI using the force-manual-ci label. (2026-03-04 00:48:16)

@kim-em kim-em changed the title feat(Std.Do): add ExceptConds.and_elim_left/right feat: add ExceptConds.and_elim_left/right Mar 3, 2026
@kim-em kim-em added the changelog-library Library label Mar 3, 2026
@sgraf812
Copy link
Copy Markdown
Contributor

sgraf812 commented Mar 3, 2026

Thanks!

@sgraf812 sgraf812 added this pull request to the merge queue Mar 3, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 3, 2026
@kim-em kim-em added this pull request to the merge queue Mar 4, 2026
Merged via the queue into master with commit 0f7fb1e Mar 4, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

3 participants