Documentation

Projects.Kolakoski.Alts.Alt5

Equations
Instances For
    Equations
    Instances For
      theorem Kolakoski.alt₅'_eq :
      alt₅' = fun (n : ℕ) => (forIn (List.range n) ([], -1, -1) fun (x : ℕ) (x_1 : List ℕ × ℤ × ℤ) => match x_1 with | (xs, x, y) => match (StateT.run genStepAux (x, y)).2 with | (x₁, y₁) => ForInStep.yield ((if x &&& 1 = 1 then 1 else 2) :: xs, x₁, y₁)).1.reverse
      @[simp]
      theorem Kolakoski.alt₅_eq {n : ℕ} :
      alt₅ n = (alt₅' (n + 1))[n]
      theorem Kolakoski.alt₅_eq_ext :
      alt₅ = fun (n : ℕ) => (alt₅' (n + 1))[n]