Equations
- Kolakoski.fSeq = seqFun (fun (x : ℕ → ℕ) => ∀ (i : ℕ), x i ≠ 0) Kolakoski.f₁
Instances For
Instances For
Equations
- Kolakoski.fWord = Word.wordFun (fun (x : ℕ → ℕ) => ∀ (i : ℕ), x i ≠ 0) Kolakoski.f₁
Instances For
Instances For
@[simp]
theorem
Kolakoski.Diverse.changesNum_mkList_runs
{α : Type u_1}
{a : ℕ → α}
[ha : Diverse a]
(k : ℕ)
:
theorem
Kolakoski.Diverse.exi_changesNum
{α : Type u_1}
{a : ℕ → α}
[ha : Diverse a]
(k : ℕ)
:
∃ (n : ℕ), (mkList n a).changesNum = k
@[simp]
@[simp]
@[simp]
@[simp]
theorem
Kolakoski.fInvWord_step
{α : Type u_1}
{a : ℕ → α}
[ha : Diverse a]
:
fInvWord (Word.ofSeq a) = Word.cons (runs a 1) (fInvWord (Word.ofSeq fun (x : ℕ) => a (x + runs a 1)))