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.MetaTypes
Init.SizeOf
Init.Data.Char.Basic
Init.Data.Nat.Internal.Linear
Imported by
Fin
.
sizeOf
BitVec
.
sizeOf
UInt8
.
sizeOf
UInt16
.
sizeOf
UInt32
.
sizeOf
UInt64
.
sizeOf
USize
.
sizeOf
Char
.
sizeOf
Subtype
.
sizeOf
Init
.
SizeOfLemmas
source
@[simp]
theorem
Fin
.
sizeOf
{
n
:
Nat
}
(
a
:
Fin
n
)
:
sizeOf
a
=
↑
a
+
1
source
@[simp]
theorem
BitVec
.
sizeOf
{
w
:
Nat
}
(
a
:
BitVec
w
)
:
sizeOf
a
=
sizeOf
a
.
toFin
+
1
source
@[simp]
theorem
UInt8
.
sizeOf
(
a
:
UInt8
)
:
sizeOf
a
=
a
.
toNat
+
3
source
@[simp]
theorem
UInt16
.
sizeOf
(
a
:
UInt16
)
:
sizeOf
a
=
a
.
toNat
+
3
source
@[simp]
theorem
UInt32
.
sizeOf
(
a
:
UInt32
)
:
sizeOf
a
=
a
.
toNat
+
3
source
@[simp]
theorem
UInt64
.
sizeOf
(
a
:
UInt64
)
:
sizeOf
a
=
a
.
toNat
+
3
source
@[simp]
theorem
USize
.
sizeOf
(
a
:
USize
)
:
sizeOf
a
=
a
.
toNat
+
3
source
@[simp]
theorem
Char
.
sizeOf
(
a
:
Char
)
:
sizeOf
a
=
a
.
toNat
+
4
source
@[simp]
theorem
Subtype
.
sizeOf
{
α
:
Sort
u_1}
{
p
:
α
→
Prop
}
(
s
:
Subtype
p
)
:
sizeOf
s
=
sizeOf
s
.
val
+
1