Zulip Chat Archive
Stream: new members
Topic: Operator for Bitwise-Not
Philogy (Oct 28 2024 at 17:56):
Does Lean4 have bitwise-NOT for its types? What's the operator? I assume no for Nat
since it doesn't make sense in that context but maybe for Fin N
types of base-2?
Appreciate any suggestions.
Kyle Miller (Oct 28 2024 at 18:06):
Yes:
variable (x : BitVec 32)
#check ~~~x
Julian Berman (Oct 28 2024 at 18:06):
It would appear to be docs#Complement
Last updated: May 02 2025 at 03:31 UTC