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

feat: Bool.to(U)IntX #6060

Merged
merged 1 commit into from
Nov 13, 2024
Merged

feat: Bool.to(U)IntX #6060

merged 1 commit into from
Nov 13, 2024

Conversation

hargoniX
Copy link
Contributor

This PR implements conversion functions from Bool to all UIntX and IntX types.

Note that Bool.toUInt64 already existed in previous versions of Lean.

@hargoniX hargoniX added the changelog-library Library label Nov 13, 2024
@hargoniX hargoniX requested a review from kim-em as a code owner November 13, 2024 10:35
@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc November 13, 2024 10:47 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 Nov 13, 2024
@leanprover-community-bot
Copy link
Collaborator

Mathlib CI status (docs):

  • ❗ Batteries CI can not be attempted yet, as the nightly-testing-2024-11-13 tag does not exist there yet. We will retry when you push more commits. If you rebase your branch onto nightly-with-mathlib, Batteries CI should run now. (2024-11-13 10:58:00)

@hargoniX hargoniX added this pull request to the merge queue Nov 13, 2024
@nomeata nomeata removed this pull request from the merge queue due to a manual request Nov 13, 2024
@nomeata nomeata added this pull request to the merge queue Nov 13, 2024
Merged via the queue into master with commit f721f94 Nov 13, 2024
18 checks passed
JovanGerb pushed a commit to JovanGerb/lean4 that referenced this pull request Jan 21, 2025
This PR implements conversion functions from `Bool` to all `UIntX` and
`IntX` types.

Note that `Bool.toUInt64` already existed in previous versions of Lean.
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.

4 participants