Documentation

LeanPool.PumpingCfg.Utils

List repetition utilities #

Defines nTimes (notation l ^+^ n), the n-fold repetition of a list, together with basic rewriting lemmas about it.

def nTimes {α : Type u_1} (l : List α) (n : ) :
List α

nTimes l n (notation l ^+^ n) is the concatenation of n copies of the list l.

Equations
Instances For

    nTimes l n (notation l ^+^ n) is the concatenation of n copies of the list l.

    Equations
    Instances For
      theorem nTimes_succ_l {α : Type u_1} {l : List α} {n : } :
      l ^+^ n.succ = l ++ l ^+^ n
      theorem nTimes_succ_r {α : Type u_1} {l : List α} {n : } :
      l ^+^ n.succ = l ^+^ n ++ l
      theorem nTimes_map {α : Type u_2} {l : List α} {n : } {β : Type u_1} {f : αβ} :
      List.map f l ^+^ n = List.map f (l ^+^ n)
      theorem nTimes_add {α : Type u_1} {l : List α} {n m : } :
      l ^+^ (m + n) = l ^+^ m ++ l ^+^ n
      theorem nTimes_mul {α : Type u_1} {l : List α} {n m : } :
      l ^+^ m * n = l ^+^ m ^+^ n