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: UIntX.[val_ofNat, toBitVec_ofNat] #5735

Merged
merged 1 commit into from
Oct 16, 2024
Merged

feat: UIntX.[val_ofNat, toBitVec_ofNat] #5735

merged 1 commit into from
Oct 16, 2024

Conversation

hargoniX
Copy link
Contributor

No description provided.

@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc October 16, 2024 11:44 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 Oct 16, 2024
@leanprover-community-bot
Copy link
Collaborator

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase a2d29772280d48dc98505ddc61d14100ac99bc56 --onto 0bfe1a8c1a2e2eb6da0dad270d7b2bbdd5b97c3d. (2024-10-16 11:50:46)

@github-actions github-actions bot temporarily deployed to lean-lang.org/lean4/doc October 16, 2024 12:33 Inactive
@hargoniX hargoniX added this pull request to the merge queue Oct 16, 2024
Merged via the queue into master with commit 741040d Oct 16, 2024
14 checks passed
theorem toBitVec_ofNat (n : Nat) : toBitVec (no_index (OfNat.ofNat n)) = BitVec.ofNat _ n := rfl

@[simp]
theorem mk_ofNat (n : Nat) : mk (BitVec.ofNat _ n) = OfNat.ofNat n := rfl
Copy link
Contributor

@eric-wieser eric-wieser Oct 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This lemma looks misformed to me, I think it should say

Suggested change
theorem mk_ofNat (n : Nat) : mk (BitVec.ofNat _ n) = OfNat.ofNat n := rfl
theorem mk_ofNat (n : Nat) : mk (BitVec.ofNat _ (no_index (OfNat.ofNat n))) = OfNat.ofNat n := rfl

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.

3 participants