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.Iterators.Lemmas.Consumers
Std.Data.Iterators.Producers.Empty
Std.Data.Iterators.Lemmas.Producers.Monadic.Empty
Imported by
Std
.
Iter
.
toIterM_empty
Std
.
Iter
.
step_empty
Std
.
Iter
.
toList_empty
Std
.
Iter
.
toListRev_empty
Std
.
Iter
.
toArray_empty
Std
.
Iter
.
forIn_empty
Std
.
Iter
.
foldM_empty
Std
.
Iter
.
fold_empty
Std
.
Data
.
Iterators
.
Lemmas
.
Producers
.
Empty
source
@[simp]
theorem
Std
.
Iter
.
toIterM_empty
{
β
:
Type
u_1}
:
(
empty
β
)
.
toIterM
=
IterM.empty
Id
β
source
@[simp]
theorem
Std
.
Iter
.
step_empty
{
β
:
Type
u_1}
:
(
empty
β
)
.
step
=
⟨
IterStep.done
,
⋯
⟩
source
@[simp]
theorem
Std
.
Iter
.
toList_empty
{
β
:
Type
u_1}
:
(
empty
β
)
.
toList
=
[
]
source
@[simp]
theorem
Std
.
Iter
.
toListRev_empty
{
β
:
Type
u_1}
:
(
empty
β
)
.
toListRev
=
[
]
source
@[simp]
theorem
Std
.
Iter
.
toArray_empty
{
β
:
Type
u_1}
:
(
empty
β
)
.
toArray
=
#[
]
source
@[simp]
theorem
Std
.
Iter
.
forIn_empty
{
m
:
Type
u_1 →
Type
u_2
}
{
β
:
Type
u_3}
{
γ
:
Type
u_1}
[
Monad
m
]
[
LawfulMonad
m
]
{
init
:
γ
}
{
f
:
β
→
γ
→
m
(
ForInStep
γ
)
}
:
forIn
(
empty
β
)
init
f
=
pure
init
source
@[simp]
theorem
Std
.
Iter
.
foldM_empty
{
m
:
Type
u_1 →
Type
u_2
}
{
β
:
Type
u_3}
{
γ
:
Type
u_1}
[
Monad
m
]
[
LawfulMonad
m
]
{
init
:
γ
}
{
f
:
γ
→
β
→
m
γ
}
:
foldM
f
init
(
empty
β
)
=
pure
init
source
@[simp]
theorem
Std
.
Iter
.
fold_empty
{
β
:
Type
u_1}
{
γ
:
Type
u_2}
{
init
:
γ
}
{
f
:
γ
→
β
→
γ
}
:
fold
f
init
(
empty
β
)
=
init