Documentation

LeanPool.RareSubtreePatterns.Lukasiewicz.FirstPassage

First passage times of integer sequences and the cycle lemma #

Section 2.1 of the paper (source lines 685–690) defines, for a sequence 𝐱 = (x_i)_{i β‰₯ 1} of integers, the first passage time ΞΆ(𝐱) = inf {k β‰₯ 1 : x_1 + β‹― + x_k = -1}, with inf βˆ… = +∞; for a finite sequence it is defined in the same way (the index k ranging over the available positions). Here a finite sequence is a List β„€ and +∞ is none.

We also prove the cycle lemma (the combinatorial core of eq:shifts, source lines 718–730): a sequence of n β‰₯ 1 integers that are all β‰₯ -1 and sum to -1 has exactly one cyclic shift whose first passage time to -1 is n.

The first passage time ΞΆ(𝐱) of a finite integer sequence to -1: the least k β‰₯ 1 (with k ≀ x.length) such that x_1 + β‹― + x_k = -1, and none (the paper's +∞) if there is no such k.

Equations
Instances For
    theorem PoissonDeclumping.Lukasiewicz.zeta_eq_some_iff {x : List β„€} {m : β„•} :
    zeta x = some m ↔ 1 ≀ m ∧ m ≀ x.length ∧ (List.take m x).sum = -1 ∧ βˆ€ (j : β„•), 1 ≀ j β†’ j < m β†’ (List.take j x).sum β‰  -1

    Characterization of ΢(𝐱) = m.

    ΞΆ(𝐱) = +∞ exactly when no partial sum x_1 + β‹― + x_k, 1 ≀ k ≀ length, equals -1.

    theorem PoissonDeclumping.Lukasiewicz.sum_take_nonneg_of_ne {x : List β„€} (hx : βˆ€ a ∈ x, -1 ≀ a) {m : β„•} (h : βˆ€ (j : β„•), 1 ≀ j β†’ j < m β†’ (List.take j x).sum β‰  -1) (j : β„•) :
    j < m β†’ 0 ≀ (List.take j x).sum

    Skip-freeness: for a sequence with increments β‰₯ -1, if the partial sums of indices 1 ≀ j < m avoid -1, then all partial sums of indices j < m are nonnegative.

    theorem PoissonDeclumping.Lukasiewicz.zeta_eq_length_iff {y : List β„€} (hy : βˆ€ a ∈ y, -1 ≀ a) (hn : 1 ≀ y.length) (hs : y.sum = -1) :
    zeta y = some y.length ↔ βˆ€ j < y.length, 0 ≀ (List.take j y).sum

    If all proper partial sums are nonnegative, then the first passage to -1 is at the end.

    theorem PoissonDeclumping.Lukasiewicz.neg_length_le_sum {l : List β„€} (hl : βˆ€ a ∈ l, -1 ≀ a) :
    -↑l.length ≀ l.sum

    A sequence with increments β‰₯ -1 has partial sums β‰₯ -length.

    The partial sums of the cyclic shift x.rotate i before the wrap-around point.

    The partial sums of the cyclic shift x.rotate i after the wrap-around point.

    theorem PoissonDeclumping.Lukasiewicz.rotate_partial_sums_nonneg_iff {x : List β„€} (hs : x.sum = -1) {i : β„•} (hi : i < x.length) :
    (βˆ€ j < x.length, 0 ≀ (List.take j (x.rotate i)).sum) ↔ (βˆ€ (l : β„•), i ≀ l β†’ l < x.length β†’ (List.take i x).sum ≀ (List.take l x).sum) ∧ βˆ€ l < i, (List.take i x).sum < (List.take l x).sum

    The partial sums of a cyclic shift are nonnegative before time n exactly when the rotation index is the first minimum of the partial sums S_0, …, S_{n-1}.

    theorem PoissonDeclumping.Lukasiewicz.existsUnique_zeta_rotate_eq_length {x : List β„€} (hx : βˆ€ a ∈ x, -1 ≀ a) (hn : 1 ≀ x.length) (hs : x.sum = -1) :

    Cycle lemma. A sequence of n β‰₯ 1 integers, all β‰₯ -1, with sum -1, has exactly one cyclic shift x.rotate i (0 ≀ i < n) whose first passage time to -1 is n.