The excursion process of a sequence #
Fix a state a of a sequence x : ℕ → α. Its k-th excursion from a is the finite
list of values strictly between the k-th and (k + 1)-st visits to a. This file defines that
list as TauCeti.excursion x a k and packages the first m excursions as
TauCeti.excursionPrefix x a m.
When the m-th visit exists, the visit times through m are genuine and strictly increasing.
The main reconstruction theorem then says that spelling out the first m excursions with
TauCeti.loopPath recovers exactly the segment of x between its zeroth and m-th visits:
loopPath a (excursionPrefix x a m)
= (List.Ico (visitTime x a 0) (visitTime x a m + 1)).map x.
In particular this applies whenever x visits a infinitely often, and if x 0 = a, the result
is the initial path segment through its m-th return to a. Read as an equivalence
(TauCeti.eqOn_loopPathAt_iff_excursionPrefix_eq), this is the combinatorial bridge from the finite
excursion-reordering theorem in TauCeti.Probability.Exchangeability.Excursion to the
exchangeability of the excursion process of a recurrent Markov exchangeable path, which is proved
in TauCeti.Probability.Exchangeability.Recurrence.Excursion: a prescribed list of first
excursions is nothing but a prescribed finite path.
Main definitions #
TauCeti.excursion: the finite word strictly between two consecutive visits to a state.TauCeti.excursionPrefix: the list of the firstmexcursions.TauCeti.pathOfExcursions: the sequence spelled out by a base state and an infinite sequence of excursions.
Main results #
TauCeti.not_mem_excursion: an excursion does not visit its base state.TauCeti.loopPath_excursionPrefix: the first excursions reconstruct the corresponding segment of the original sequence.TauCeti.loopSteps_excursionPrefix: the number of reconstructed transitions is the difference of the endpoint visit times.TauCeti.visitCount_loopPathAt: a loop visits its base state once per excursion.TauCeti.eqOn_loopPathAt_iff_excursionPrefix_eq: for a path whose relevant return exists, having prescribed first excursions is the same as spelling out their loop word.TauCeti.pathOfExcursions_excursion: a sequence that starts at a state and returns to it infinitely often is rebuilt from its own excursions.TauCeti.excursion_pathOfExcursions: conversely, a sequence spelled out by excursions avoiding the base state has exactly those excursions.
References #
- P. Diaconis and D. Freedman, "de Finetti's theorem for Markov chains", Annals of Probability 8 (1980), 115–130.
- Roadmap:
TauCetiRoadmap/Exchangeability/README.md, Layer 8, "Markov exchangeability".
No material is adapted from cameronfreer/exchangeability, which treats exchangeable rather than
Markov exchangeable sequences.
Excursions and finite prefixes #
The k-th excursion of x from a: the finite list of values at the times strictly between
the k-th and (k + 1)-st visits to a.
If either visit does not exist, visitTime uses its documented junk value and this interval may
be empty.
Equations
- TauCeti.excursion x a k = List.map x (List.Ico (TauCeti.visitTime x a k + 1) (TauCeti.visitTime x a (k + 1)))
Instances For
The list of the first m excursions of x from a.
Equations
- TauCeti.excursionPrefix x a m = List.map (TauCeti.excursion x a) (List.range m)
Instances For
The defining equation of a finite excursion prefix.
Membership in an excursion is membership in the corresponding open interval of times.
Deliberately not @[simp]: it would rewrite the left-hand side of the @[simp] lemma
TauCeti.not_mem_excursion into an existential that simp cannot close, so simp would stop
proving that an excursion avoids its base state.
Elementary properties #
No excursion of a finite excursion prefix visits the base state, so such a prefix is a
legitimate argument for TauCeti.loopPath_injOn.
A loop visits its base state once per excursion. Counting the visits a loop makes to its base letter over its whole span counts its excursions, because an excursion never returns there.
Reconstruction #
A single excursion whose next endpoint exists spells out exactly the segment between its two endpoint visits.
If the m-th visit exists, the loop path of the first m excursions is the original sequence
segment from the zeroth through the m-th visit to the base state.
If the m-th visit exists, the first m excursions contain exactly the transitions between
the zeroth and m-th visits to the base state.
If the m-th visit exists for a sequence starting at a, its first m excursions reconstruct
the initial segment through the m-th return.
If the m-th visit exists for a sequence starting at a, its first m excursions have total
duration equal to the m-th return time.
Excursion prefixes as finite-path events #
A returning path has prescribed first excursions exactly when it spells out their loop.
For a sequence starting at a whose bs.length-th return to a exists, and a list bs of
excursions avoiding a, the following are the same condition:
- over the span
loopSteps bsof the loop, the sequence agrees with the loop word ofbs; - the first
bs.lengthexcursions of the sequence arebs.
This is what turns a finite-dimensional event of the excursion process into a finite-path event of the sequence itself, which is the form Markov exchangeability constrains.
The sequence spelled out by an infinite sequence of excursions #
The sequence spelled out by a base state a and an infinite sequence b of excursions:
a, b 0, a, b 1, a, …
Index i is read off the loop word of the first i + 1 excursions, which already runs for at
least i + 1 steps, so the reading never falls off its end.
Equations
- TauCeti.pathOfExcursions a b i = TauCeti.loopPathAt a (List.map b (List.range (i + 1))) i
Instances For
A sequence spelled out by excursions is read off any long enough loop word. The definition uses the shortest such word; this is the form the reconstruction theorems below need.
A sequence spelled out by excursions is back at its base state at the end of every excursion.
The two reconstructions #
A sequence spelled out by excursions has the prescribed excursion prefix, provided the excursions in that prefix avoid the base state.
Each excursion of a sequence spelled out by excursions is the corresponding one, provided that excursion and its predecessors avoid the base state.