Scan direction #
The orientation of a left-to-right vs right-to-left scan, shared by the transducer
machines and the side-determinacy predicates of Core/Computability/Subregular/Function/.
Extracted to its own leaf so the footprint-predicate file (SideDeterminacy.lean) does
not have to depend on the transducer machine file just to name a left/right tag.
@[implicit_reducible]
Equations
- Subregular.instDecidableEqDirection x✝ y✝ = if h : x✝.ctorIdx = y✝.ctorIdx then isTrue ⋯ else isFalse ⋯
Equations
- One or more equations did not get rendered due to their size.
- Subregular.instReprDirection.repr Subregular.Direction.left prec✝ = Repr.addAppParen (Std.Format.nest (if prec✝ ≥ 1024 then 1 else 2) (Std.Format.text "Subregular.Direction.left")).group prec✝
Instances For
@[implicit_reducible]
Equations
- Subregular.instReprDirection = { reprPrec := Subregular.instReprDirection.repr }