Sequences of crossing destinations without timestamps
DefinitionUntimedEndpointExchangediscrete-dynamical-systemsformal-verification
Given a deterministic transition system, a Boolean side label on states, a start state, and a finite step count, record each state entered when the side changes. The record retains these destination states in order and leaves out the elapsed time of each crossing.
Definition code
import Mathlib
set_option autoImplicit false
namespace UntimedCrossings
/-- The destination states of all completed crossings, in their original order. -/
def untimedRecord {S : Type*} (side : S → Bool) (step : S → S) (z : S) : ℕ → List S
| 0 => []
| T+1 =>
if side (step z) ≠ side z then step z :: untimedRecord side step (step z) T
else untimedRecord side step (step z) T
end UntimedCrossings
Source
Crossing-sequence method. See F. C. Hennie, One-tape, off-line Turing machine computations, 1965, DOI 10.1016/S0019-9958(65)90399-2.