Flatten fair Segs
Cslib.FLP.FairScheduler.flatten_fairSegs
Plain-language statement
Given an infinite sequence of non-empty finite executions of algorithm a, if all messages with destinations in ps that are in-flight at the beginning of each finite execution are delivered in that finite execution, then those finite executions can be concatenated into an infinite execution of a in which every process in ps is fair.
Exact Lean statement
theorem flatten_fairSegs {ps : Set P}
{ts : ωSequence (State P M S)} {xls : ωSequence (List (Action P M))}
(hmtr : ∀ k, a.lts.MTr (ts k) (xls k) (ts (k + 1)))
(hpos : ∀ k, (xls k).length > 0)
(hsch : ∀ k m, m ∈ (ts k).msgs → m.dest ∈ ps → some m ∈ xls k) :
∃ ss, a.lts.OmegaExecution ss xls.flatten ∧ (∀ k, ss (xls.cumLen k) = ts k) ∧
∀ p, p ∈ ps → ProcFair p ss xls.flattenFormal artifact
Lean source
theorem flatten_fairSegs {ps : Set P} {ts : ωSequence (State P M S)} {xls : ωSequence (List (Action P M))} (hmtr : ∀ k, a.lts.MTr (ts k) (xls k) (ts (k + 1))) (hpos : ∀ k, (xls k).length > 0) (hsch : ∀ k m, m ∈ (ts k).msgs → m.dest ∈ ps → some m ∈ xls k) : ∃ ss, a.lts.OmegaExecution ss xls.flatten ∧ (∀ k, ss (xls.cumLen k) = ts k) ∧ ∀ p, p ∈ ps → ProcFair p ss xls.flatten := by obtain ⟨ss, h_omega, h_ts⟩ := LTS.OmegaExecution.flatten_mTr hmtr hpos use ss, h_omega, h_ts rintro p h_m m ⟨rfl⟩ by_contra! ⟨k, h_k, h_k'⟩ have h_xls : ∃ᶠ n in atTop, n ∈ xls.cumLen '' univ := by apply frequently_iff_strictMono.mpr use xls.cumLen grind [cumLen_strictMono] obtain ⟨j, _, h_j⟩ : ∃ j, k ≤ xls.cumLen j ∧ m ∈ (ts j).msgs := by obtain ⟨n, _, j, _, _⟩ := frequently_atTop.mp h_xls k grind [Algorithm.omega_notRcvd_enabled h_omega h_k h_k'] obtain ⟨i, _, _⟩ := List.getElem_of_mem <| hsch j m h_j h_m grind [extract_flatten hpos j]- Project
- Lean Computer Science Library
- License
- Apache-2.0
- Commit
- f36649cff2c9
- Source
- Cslib/Computability/Distributed/FLP/FairScheduler.lean:192-211
Reuse this declaration
Bring the exact result into your workflow
The import identifies the source module. Your project still needs the pinned package dependency shown on this page.
What this badge means
This completion status comes from the project or community source. It has not yet been represented here as an independent rebuild and axiom audit.
Continue in this project
Related declarations
Unique minimal
Cslib.Automata.DA.FinAcc.unique_minimal
Plain-language statement
The minimal DFA M accepting the language l is unique up to unique isomorphism.
Source project: Lean Computer Science Library
Person-level attribution pending.
Buchi Family cover
Cslib.Automata.NA.Buchi.buchiFamily_cover
Project documentation
na.buchiFamily is a cover if na has only finitely many states. This theorem uses the Ramsey theorem for infinite graphs and does not depend on any details of na.BuchiCongruence other than that it is of finite index.
Source project: Lean Computer Science Library
Person-level attribution pending.
Buchi Family saturation
Cslib.Automata.NA.Buchi.buchiFamily_saturation
Plain-language statement
na.buchiFamily saturates the ω-language accepted by na.
Source project: Lean Computer Science Library
Person-level attribution pending.