{"repo":"math","rev":"c0ea08d220800adfb55af275ee0ccf51d137b0da","blob":{"commit":"c0ea08d220800adfb55af275ee0ccf51d137b0da","path":"statements/Defs/DFA.lean","oid":"3f7ec6eba422ed59171052edfcf976ae68426f6d","size":903,"range_start":0,"range_end":903,"truncated":false,"binary":false,"encoding":"utf8","content":"/-\nCopied from google-deepmind/formal-conjectures at commit a61ab09632df039ef8381b6ac8accc5ce4d954d7,\nfile FormalConjecturesForMathlib/Computability/DFA.lean: the definitions `DFA.IsSynchronizingWord`\nand `DFA.IsSynchronizing` with their namespace and variables, not the lemmas.\nCopyright 2026 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0\n(https://www.apache.org/licenses/LICENSE-2.0).\n-/\nmodule\n\npublic import Mathlib.Computability.DFA\n\n@[expose] public section\n\nnamespace DFA\n\nvariable {α : Type*} {σ : Type*}\n\n/-- A word `w` that sends every state of `M` to one single state. -/\ndef IsSynchronizingWord (M : DFA α σ) (w : List α) : Prop :=\n  ∃ p : σ, ∀ q : σ, M.evalFrom q w = p\n\n/-- A DFA `M` is synchronizing if it has at least one synchronizing word. -/\ndef IsSynchronizing (M : DFA α σ) : Prop :=\n  ∃ w : List α, M.IsSynchronizingWord w\n\nend DFA\n"},"raw":"/r/math/raw/c0ea08d220800adfb55af275ee0ccf51d137b0da/statements/Defs/DFA.lean","jit":null,"api":"/v1/repos/math/blob?rev=c0ea08d220800adfb55af275ee0ccf51d137b0da&path=statements%2FDefs%2FDFA.lean","api_url":"https://git.neoopensource.com/v1/repos/math/blob?rev=c0ea08d220800adfb55af275ee0ccf51d137b0da&path=statements%2FDefs%2FDFA.lean"}