Left leads To right
Cslib.FLP.ZeroFaultAlg.left_leadsTo_right
Plain-language statement
Whenever the message carrying the input value for process 0 is enabled in a state, a message carrying that value is eventually sent to every process p by process 0.
Exact Lean statement
theorem left_leadsTo_right (inp : Fin n → Bool)
{ss : ωSequence (State (Fin n) M S)} {xs : ωSequence (Action (Fin n) M)}
(ha : (alg npos).AdmissibleRun inp 0 ss xs) (p : Fin n) :
ss.LeadsTo {s | ⟨⟨0, npos⟩, inl (inp ⟨0, npos⟩)⟩ ∈ s.msgs}
{s | ⟨p, inr (inp ⟨0, npos⟩)⟩ ∈ s.msgs}Formal artifact
Lean source
theorem left_leadsTo_right (inp : Fin n → Bool) {ss : ωSequence (State (Fin n) M S)} {xs : ωSequence (Action (Fin n) M)} (ha : (alg npos).AdmissibleRun inp 0 ss xs) (p : Fin n) : ss.LeadsTo {s | ⟨⟨0, npos⟩, inl (inp ⟨0, npos⟩)⟩ ∈ s.msgs} {s | ⟨p, inr (inp ⟨0, npos⟩)⟩ ∈ s.msgs} := by let m : Message (Fin n) M := ⟨⟨0, npos⟩, inl (inp ⟨0, npos⟩)⟩ intro k _ have : m ∈ (ss k).msgs := by grind obtain ⟨_, _, hf⟩ := AdmissibleRun.fault_zero.mp ha obtain ⟨j, _, _⟩ : ∃ j, k ≤ j ∧ xs j = some m := by grind [hf ⟨0, npos⟩, ProcFair] use j + 1 have hj := always_inv npos inp ha j have htr : (alg npos).lts.Tr (ss j) (some m) (ss (j + 1)) := by grind [LTS.OmegaExecution] have h1 : k ≤ j + 1 := by grind simp [h1, m, inv_tr_left npos inp hj htr rfl]- Project
- Lean Computer Science Library
- License
- Apache-2.0
- Commit
- f36649cff2c9
- Source
- Cslib/Computability/Distributed/FLP/ZeroConsensus.lean:128-142
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.