Documentation

Projects.Kolakoski.BlockSubstitution

theorem Kolakoski.listCnd_subst₁' {xs : List ℕ} :
subst₁.ListCnd xs ↔ xs = [1, 1] ∨ xs = [1, 2] ∨ xs = [2, 1] ∨ xs = [2, 2]
theorem Kolakoski.listCnd_subst₂' {xs : List ℕ} :
subst₂.ListCnd xs ↔ xs = [1, 1] ∨ xs = [1, 2] ∨ xs = [2, 1] ∨ xs = [2, 2]
@[simp]
@[simp]
@[simp]
theorem Kolakoski.seqCnd_subst₁ {a : ℕ → ℕ} :
subst₁.SeqCnd a ↔ ∀ (n : ℕ), a n = 1 ∨ a n = 2
@[simp]
theorem Kolakoski.seqCnd_subst₂ {a : ℕ → ℕ} :
subst₂.SeqCnd a ↔ ∀ (n : ℕ), a n = 1 ∨ a n = 2
@[simp]
theorem Kolakoski.substSeq_subst₁ {a : ℕ → ℕ} (h : ∀ (n : ℕ), a n = 1 ∨ a n = 2) :
theorem Kolakoski.complElem_subst₁ {x : ℕ} (h : x = 1 ∨ x = 2) :
theorem Kolakoski.complElem_subst₂ {x : ℕ} (h : x = 1 ∨ x = 2) :
theorem Kolakoski.complList_subst₁ {xs : List ℕ} (h : subst₁.ListCnd' xs) :
subst₁.complList xs = List.map (fun (x : ℕ) => 3 - x) xs
theorem Kolakoski.complList_subst₂ {xs : List ℕ} (h : subst₁.ListCnd' xs) :
subst₂.complList xs = List.map (fun (x : ℕ) => 3 - x) xs