# statements/Defs/DFA.lean @ c0ea08d220800adfb55af275ee0ccf51d137b0da

````
/-
Copied from google-deepmind/formal-conjectures at commit a61ab09632df039ef8381b6ac8accc5ce4d954d7,
file FormalConjecturesForMathlib/Computability/DFA.lean: the definitions `DFA.IsSynchronizingWord`
and `DFA.IsSynchronizing` with their namespace and variables, not the lemmas.
Copyright 2026 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0
(https://www.apache.org/licenses/LICENSE-2.0).
-/
module

public import Mathlib.Computability.DFA

@[expose] public section

namespace DFA

variable {α : Type*} {σ : Type*}

/-- A word `w` that sends every state of `M` to one single state. -/
def IsSynchronizingWord (M : DFA α σ) (w : List α) : Prop :=
  ∃ p : σ, ∀ q : σ, M.evalFrom q w = p

/-- A DFA `M` is synchronizing if it has at least one synchronizing word. -/
def IsSynchronizing (M : DFA α σ) : Prop :=
  ∃ w : List α, M.IsSynchronizingWord w

end DFA

````

API: `https://git.neoopensource.com/v1/repos/math/blob?rev=c0ea08d220800adfb55af275ee0ccf51d137b0da&path=statements%2FDefs%2FDFA.lean`
