Documentation
Projects
.
Kolakoski
.
Count
Search
return to top
source
Imports
Init
Projects.Kolakoski.Patterns
Imported by
Kolakoski
.
subset_of_seqInfix_kolakoski
Kolakoski
.
count_le_6_of_length_eq_10
Kolakoski
.
count_ge_4_of_length_eq_10
Kolakoski
.
count_mem_of_length_eq_10
Kolakoski
.
count_1_eq_of_length_eq_10
Kolakoski
.
count_2_eq_of_length_eq_10
source
theorem
Kolakoski
.
subset_of_seqInfix_kolakoski
{
xs
:
List
ℕ
}
(
h
:
SeqInfix
xs
kolakoski
)
:
xs
⊆
[
1
,
2
]
source
theorem
Kolakoski
.
count_le_6_of_length_eq_10
(
xs
:
List
ℕ
)
(
a
:
ℕ
)
(
h₁
:
xs
.
length
=
10
)
(
h
:
SeqInfix
xs
kolakoski
)
:
List.count
a
xs
≤
6
source
theorem
Kolakoski
.
count_ge_4_of_length_eq_10
(
xs
:
List
ℕ
)
(
c
:
ℕ
)
(
hc
:
c
=
1
∨
c
=
2
)
(
h₁
:
xs
.
length
=
10
)
(
h
:
SeqInfix
xs
kolakoski
)
:
4
≤
List.count
c
xs
source
theorem
Kolakoski
.
count_mem_of_length_eq_10
(
xs
:
List
ℕ
)
(
c
:
ℕ
)
(
hc
:
c
=
1
∨
c
=
2
)
(
h₁
:
xs
.
length
=
10
)
(
h
:
SeqInfix
xs
kolakoski
)
:
List.count
c
xs
∈
{
4
,
5
,
6
}
source
theorem
Kolakoski
.
count_1_eq_of_length_eq_10
(
xs
:
List
ℕ
)
(
h₁
:
xs
.
length
=
10
)
(
h
:
SeqInfix
xs
kolakoski
)
:
List.count
1
xs
=
4
∨
List.count
1
xs
=
5
∨
List.count
1
xs
=
6
source
theorem
Kolakoski
.
count_2_eq_of_length_eq_10
(
xs
:
List
ℕ
)
(
h₁
:
xs
.
length
=
10
)
(
h
:
SeqInfix
xs
kolakoski
)
:
List.count
2
xs
=
4
∨
List.count
2
xs
=
5
∨
List.count
2
xs
=
6