Example62 Regular: is Regular iff exists eventually Periodic
ProvedScott1980.Neighborhood.Example62Regular.isRegular_iff_exists_eventuallyPeriodicscott1980
The inverse half of Scott's claim: every regular event arises as the language of an eventually
periodic tree. Concretely, take the tree whose root labels record membership in L; reading a tape
σ lands on the residual language σ⁻¹ L, of which there are finitely many exactly when L is
regular.
Preamble
import Mathlib.Computability.MyhillNerode
import Definitions.Def_Scott1980_Neighborhood_Example62Regular
set_option autoImplicit true
open Scott1980 Scott1980.Neighborhood
open Scott1980.Neighborhood.Example62Regular
open Language
variable {n : ℕ}Formal statement
theorem Scott1980.Neighborhood.Example62Regular.isRegular_iff_exists_eventuallyPeriodic (L : Language (Fin n)) :
L.IsRegular ↔ ∃ a : Tree n, EventuallyPeriodic a ∧ treeLang a = L := by sorrySource