hilbert
6
Search
☰
About
Tutorial
Roadmap
Get involved
Reference manual
Blueprint
API docs
Papers
About
Tutorial
Roadmap
Get involved
Reference manual
Blueprint
API docs
Papers
GitHub
return to top
source
Imports
Init.Data.BitVec.Basic
Init.Data.BitVec.Lemmas
Init.Data.Nat.Compare
Init.Data.Nat.Order
Init.Data.Order.PackageFactories
Imported by
BitVec
.
instLinearOrderPackage
BitVec
.
compare_toNat
BitVec
.
compare_append_append
BitVec
.
compare_setWidth_setWidth_of_le
Init
.
Data
.
BitVec
.
Package
source
@[instance_reducible]
instance
BitVec
.
instLinearOrderPackage
{
w
:
Nat
}
:
Std.LinearOrderPackage
(
BitVec
w
)
Equations
One or more equations did not get rendered due to their size.
source
@[simp]
theorem
BitVec
.
compare_toNat
{
w
:
Nat
}
{
x
y
:
BitVec
w
}
:
compare
x
.
toNat
y
.
toNat
=
compare
x
y
source
theorem
BitVec
.
compare_append_append
{
w
v
:
Nat
}
{
x₁
x₂
:
BitVec
w
}
{
y₁
y₂
:
BitVec
v
}
:
compare
(
x₁
++
y₁
) (
x₂
++
y₂
)
=
(
compare
x₁
x₂
)
.
then
(
compare
y₁
y₂
)
source
theorem
BitVec
.
compare_setWidth_setWidth_of_le
{
w
w'
:
Nat
}
{
x
y
:
BitVec
w
}
(
h
:
w
≤
w'
)
:
compare
(
setWidth
w'
x
)
(
setWidth
w'
y
)
=
compare
x
y