Local definitions the statement names, followed through the definitions they name in turn. The match is by name in the source text, so a name reached only through notation can be missed; the full file is below.
structure OAI.OneWayLiveness.BRel line 7
@[ext] structure BRel (H : Type*) where holds : H → H → Prop
definition OAI.OneWayLiveness.BRel.live line 24
def live (w : List (BRel H)) : Prop := ∃ x y, w.prod.holds x y
abbreviation OAI.OneWayLiveness.Alphabet line 27
abbrev Alphabet (h : ℕ) := BRel (Fin h)
definition OAI.OneWayLiveness.OWL line 28
def OWL (h : ℕ) : Set (List (Alphabet h)) := {w | BRel.live w}
inductive type OAI.OneWayLiveness.Symbol line 30
inductive Symbol (Alpha : Type*) where | left : Symbol Alpha | letter : Alpha → Symbol Alpha | right : Symbol Alpha
inductive type OAI.OneWayLiveness.Move line 35
inductive Move where | left | stay | right deriving DecidableEq
definition OAI.OneWayLiveness.Move.Rel line 39
def Move.Rel : Move → ℕ → ℕ → Prop | .left, i, j => j + 1 = i | .stay, i, j => j = i | .right, i, j => j = i + 1
definition OAI.OneWayLiveness.scanned line 45
def scanned {Alpha : Type*} (w : List Alpha) (i : Fin (w.length + 2)) : Symbol Alpha := if h0 : i.val = 0 then .left else if hi : i.val < w.length + 1 then .letter (w[i.val - 1]'(by omega)) else .right
abbreviation OAI.OneWayLiveness.Configuration line 50
abbrev Configuration {Alpha : Type*} (w : List Alpha) (n : ℕ) := Fin (w.length + 2) × Fin n
structure OAI.OneWayLiveness.DMachine line 52
structure DMachine (Alpha : Type*) (s : ℕ) where initial : Fin s accepting : Set (Fin s) transition : Fin s → Symbol Alpha → Option (Fin s × Move) left_boundary : ∀ q q', transition q .left ≠ some (q', .left) right_boundary : ∀ q q', transition q .right ≠ some (q', .right)
structure OAI.OneWayLiveness.NMachine line 59
structure NMachine (Alpha : Type*) (n : ℕ) where initial : Fin n accepting : Set (Fin n) transition : Fin n → Symbol Alpha → Set (Fin n × Move) left_boundary : ∀ q q', (q', .left) ∉ transition q .left right_boundary : ∀ q q', (q', .right) ∉ transition q .right
definition OAI.OneWayLiveness.DMachine.Step line 66
def DMachine.Step {Alpha : Type*} {s : ℕ} (M : DMachine Alpha s) (w : List Alpha) (c c' : Configuration w s) : Prop := ∃ d, M.transition c.2 (scanned w c.1) = some (c'.2, d) ∧ d.Rel c.1.val c'.1.val
definition OAI.OneWayLiveness.FiniteRun line 75
def FiniteRun {C : Type*} (positive : Bool) (step : C → C → Prop) (c c' : C) : Prop := if positive then Relation.TransGen step c c' else Relation.ReflTransGen step c c'
definition OAI.OneWayLiveness.DMachine.Accepts line 78
def DMachine.Accepts {Alpha : Type*} {s : ℕ} (M : DMachine Alpha s) (positive : Bool) (w : List Alpha) : Prop := ∃ c, FiniteRun positive (M.Step w) (⟨0, by omega⟩, M.initial) c ∧ c.2 ∈ M.accepting
definition OAI.OneWayLiveness.NMachine.NoLeft line 86
def NMachine.NoLeft {Alpha : Type*} {n : ℕ} (M : NMachine Alpha n) : Prop := ∀ q a q', (q', Move.left) ∉ M.transition q a
definition OAI.OneWayLiveness.NMachine.Recognizes line 89
def NMachine.Recognizes {Alpha : Type*} {n : ℕ} (M : NMachine Alpha n) (positive : Bool) (L : Set (List Alpha)) : Prop := ∀ w, M.Accepts positive w ↔ w ∈ L