Parity condition on infinite sequences
DefinitionLargest infinitely occurring value#✓fully proved
Let \((p_k)_{k \in \mathbb{N}}\) be a sequence of natural numbers and \(n \in \mathbb{N}\). Then \(n\) is the largest value occurring infinitely often in \((p_k)\) if \(p_k = n\) for infinitely many \(k\), and every \(m \in \mathbb{N}\) with \(p_k = m\) for infinitely many \(k\) satisfies \(m \le n\).
Larger values may still occur, each only finitely often; for bounded sequences they eventually stop occurring.
def IsMaxInfOcc (ps : ωSequence ℕ) (n : ℕ) : Prop :=
(∃ᶠ k in atTop, ps k = n) ∧ ∀ m, (∃ᶠ k in atTop, ps k = m) → m ≤ n
Used by 15
DefinitionEven max-parity condition#✓fully proved
A sequence \((p_k)_{k \in \mathbb{N}}\) of natural numbers (priorities) satisfies the even max-parity condition if there is an even \(n\) that is the largest value occurring infinitely often in \((p_k)\).
This is the winning condition of the even player under the max-parity convention.
def ParityEven (ps : ωSequence ℕ) : Prop :=
∃ n, Even n ∧ IsMaxInfOcc ps n
def IsMaxInfOcc (ps : ωSequence ℕ) (n : ℕ) : Prop :=
(∃ᶠ k in atTop, ps k = n) ∧ ∀ m, (∃ᶠ k in atTop, ps k = m) → m ≤ n
CSLibExt/Foundations/Data/OmegaSequence/Parity.lean:48
Uses 1 · Used by 11
DefinitionOdd max-parity condition#✓fully proved
A sequence \((p_k)_{k \in \mathbb{N}}\) of natural numbers (priorities) satisfies the odd max-parity condition if there is an odd \(n\) that is the largest value occurring infinitely often in \((p_k)\).
This is the winning condition of the odd player under the max-parity convention.
def ParityOdd (ps : ωSequence ℕ) : Prop :=
∃ n, Odd n ∧ IsMaxInfOcc ps n
def IsMaxInfOcc (ps : ωSequence ℕ) (n : ℕ) : Prop :=
(∃ᶠ k in atTop, ps k = n) ∧ ∀ m, (∃ᶠ k in atTop, ps k = m) → m ≤ n
CSLibExt/Foundations/Data/OmegaSequence/Parity.lean:48
Uses 1 · Used by 6
TheoremBounded sequences have a largest infinitely occurring value#✓fully proved
Let \(d \in \mathbb{N}\). If a sequence \((p_k)_{k \in \mathbb{N}}\) of natural numbers satisfies \(p_k \le d\) for all \(k\), then some natural number \(n \le d\) is the largest value occurring infinitely often in \((p_k)\).
theorem exists_isMaxInfOcc {d : ℕ} (hb : ∀ k, ps k ≤ d) : ∃ n ≤ d, IsMaxInfOcc ps n
def IsMaxInfOcc (ps : ωSequence ℕ) (n : ℕ) : Prop :=
(∃ᶠ k in atTop, ps k = n) ∧ ∀ m, (∃ᶠ k in atTop, ps k = m) → m ≤ n
CSLibExt/Foundations/Data/OmegaSequence/Parity.lean:48
Uses 1 · Used by 4
TheoremThe tail of a bounded sequence is bounded by its largest infinitely occurring value#✓fully proved
Let \(d \in \mathbb{N}\), let \((p_k)_{k \in \mathbb{N}}\) be a sequence of natural numbers with \(p_k \le d\) for all \(k\), and let \(n\) be the largest value occurring infinitely often in \((p_k)\). Then \(p_k \le n\) for all sufficiently large \(k\).
theorem IsMaxInfOcc.eventually_le {n d : ℕ} (hn : IsMaxInfOcc ps n) (hb : ∀ k, ps k ≤ d) :
∀ᶠ k in atTop, ps k ≤ n
def IsMaxInfOcc (ps : ωSequence ℕ) (n : ℕ) : Prop :=
(∃ᶠ k in atTop, ps k = n) ∧ ∀ m, (∃ᶠ k in atTop, ps k = m) → m ≤ n
CSLibExt/Foundations/Data/OmegaSequence/Parity.lean:48
Uses 1 · Used by 1
TheoremFor bounded sequences the odd parity condition is the negation of the even one#✓fully proved
Let \(d \in \mathbb{N}\). If a sequence \((p_k)_{k \in \mathbb{N}}\) of natural numbers satisfies \(p_k \le d\) for all \(k\), then it satisfies the odd max-parity condition if and only if it does not satisfy the even max-parity condition.
theorem parityOdd_iff_not_parityEven {d : ℕ} (hb : ∀ k, ps k ≤ d) :
ParityOdd ps ↔ ¬ ParityEven ps
def ParityOdd (ps : ωSequence ℕ) : Prop :=
∃ n, Odd n ∧ IsMaxInfOcc ps n
CSLibExt/Foundations/Data/OmegaSequence/Parity.lean:58
def ParityEven (ps : ωSequence ℕ) : Prop :=
∃ n, Even n ∧ IsMaxInfOcc ps n
CSLibExt/Foundations/Data/OmegaSequence/Parity.lean:53
Uses 4
TheoremMax-parity with priorities 1 and 2 is the Büchi condition#✓fully proved
Let \((p_k)_{k \in \mathbb{N}}\) be a sequence of natural numbers with \(p_k \in \{1, 2\}\) for every \(k\). Then \((p_k)\) satisfies the even max-parity condition if and only if \(p_k = 2\) for infinitely many \(k\).
theorem parityEven_iff_frequently_two {ps : ωSequence ℕ} (h : ∀ k, ps k = 1 ∨ ps k = 2) :
ParityEven ps ↔ ∃ᶠ k in atTop, ps k = 2
def ParityEven (ps : ωSequence ℕ) : Prop :=
∃ n, Even n ∧ IsMaxInfOcc ps n
CSLibExt/Foundations/Data/OmegaSequence/Parity.lean:53
Uses 2 · Used by 1
TheoremPrefix independence of the largest infinitely occurring value#✓fully proved
Let \((p_k)_{k \in \mathbb{N}}\) be a sequence of natural numbers and let \(j, n \in \mathbb{N}\). Then \(n\) is the largest value occurring infinitely often in the shifted sequence \((p_{j+k})_{k \in \mathbb{N}}\) if and only if \(n\) is the largest value occurring infinitely often in \((p_k)\).
theorem isMaxInfOcc_drop_iff (j n : ℕ) : IsMaxInfOcc (ps.drop j) n ↔ IsMaxInfOcc ps n
def IsMaxInfOcc (ps : ωSequence ℕ) (n : ℕ) : Prop :=
(∃ᶠ k in atTop, ps k = n) ∧ ∀ m, (∃ᶠ k in atTop, ps k = m) → m ≤ n
CSLibExt/Foundations/Data/OmegaSequence/Parity.lean:48
Uses 1 · Used by 1
Loading dependency explorer…
The dependency explorer needs JavaScript and its graph data.