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

chore: simplify decide (b = true) and variants #3426

Merged
merged 1 commit into from
Feb 21, 2024
Merged

chore: simplify decide (b = true) and variants #3426

merged 1 commit into from
Feb 21, 2024

Conversation

kim-em
Copy link
Collaborator

@kim-em kim-em commented Feb 21, 2024

@[simp] theorem decide_eq_true {b : Bool} : decide (b = true) = b := by cases b <;> simp
@[simp] theorem decide_eq_false {b : Bool} : decide (b = false) = !b := by cases b <;> simp
@[simp] theorem decide_true_eq {b : Bool} : decide (true = b) = b := by cases b <;> simp
@[simp] theorem decide_false_eq {b : Bool} : decide (false = b) = !b := by cases b <;> simp

@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc February 21, 2024 04:14 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 21, 2024
@leanprover-community-mathlib4-bot
Copy link
Collaborator

Mathlib CI status (docs):

  • ❗ Std/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 959ad988611db082ae4a97e9b8c4390fab53352e --onto 8b8e001794e6a8b481d37f24fa77bb07797682a1. (2024-02-21 04:22:42)

@kim-em kim-em added this pull request to the merge queue Feb 21, 2024
Merged via the queue into master with commit 3d8f733 Feb 21, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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