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.Option.Lemmas
Std.Data.Iterators.Producers.Repeat
Init.Data.Iterators.Lemmas.Combinators.Take
Init.Data.Iterators.Lemmas.Consumers.Access
Init.Data.Iterators.Lemmas.Consumers.Collect
Imported by
Std
.
Iter
.
step_repeat
Std
.
Iter
.
atIdxSlow?_zero_repeat
Std
.
Iter
.
atIdxSlow?_succ_repeat
Std
.
Iter
.
atIdxSlow?_succ_repeat_eq_map
Std
.
Iter
.
atIdxSlow?_repeat
Std
.
Iter
.
isSome_atIdxSlow?_repeat
Std
.
Iter
.
toList_take_repeat_succ
Std
.
Data
.
Iterators
.
Lemmas
.
Producers
.
Repeat
source
theorem
Std
.
Iter
.
step_repeat
{
α
:
Type
w}
{
f
:
α
→
α
}
{
init
:
α
}
:
(
«repeat»
f
init
)
.
step
=
PlausibleIterStep.yield
(
«repeat»
f
(
f
init
)
)
init
⋯
source
theorem
Std
.
Iter
.
atIdxSlow?_zero_repeat
{
α
:
Type
w}
{
f
:
α
→
α
}
{
init
:
α
}
:
atIdxSlow?
0
(
«repeat»
f
init
)
=
some
init
source
theorem
Std
.
Iter
.
atIdxSlow?_succ_repeat
{
α
:
Type
w}
{
f
:
α
→
α
}
{
init
:
α
}
{
k
:
Nat
}
:
atIdxSlow?
(
k
+
1
)
(
«repeat»
f
init
)
=
atIdxSlow?
k
(
«repeat»
f
(
f
init
)
)
source
theorem
Std
.
Iter
.
atIdxSlow?_succ_repeat_eq_map
{
α
:
Type
w}
{
f
:
α
→
α
}
{
init
:
α
}
{
k
:
Nat
}
:
atIdxSlow?
(
k
+
1
)
(
«repeat»
f
init
)
=
f
<$>
atIdxSlow?
k
(
«repeat»
f
init
)
source
@[simp]
theorem
Std
.
Iter
.
atIdxSlow?_repeat
{
α
:
Type
w}
{
f
:
α
→
α
}
{
init
:
α
}
{
n
:
Nat
}
:
atIdxSlow?
n
(
«repeat»
f
init
)
=
some
(
Nat.repeat
f
n
init
)
source
theorem
Std
.
Iter
.
isSome_atIdxSlow?_repeat
{
α
:
Type
w}
{
f
:
α
→
α
}
{
init
:
α
}
{
k
:
Nat
}
:
(
atIdxSlow?
k
(
«repeat»
f
init
)
)
.
isSome
=
true
source
@[simp]
theorem
Std
.
Iter
.
toList_take_repeat_succ
{
α
:
Type
w}
{
f
:
α
→
α
}
{
init
:
α
}
{
k
:
Nat
}
:
(
take
(
k
+
1
)
(
«repeat»
f
init
)
)
.
toList
=
init
::
(
take
k
(
«repeat»
f
(
f
init
)
)
)
.
toList