Documentation

Linglib.Core.Direction

Direction (Left / Right) #

A two-element enumeration shared across phonology and computability substrates that need a notion of left-vs-right (FST scan direction, context side, harmony spread direction, etc.). Promoted to Core/ so that Theories/Phonology/Process/Alternation.lean::Side and Core/Computability/Subregular/Function/Subsequential.lean::Direction do not duplicate the same inductive type with the same case names.

Consumers should open Core (or qualify) and use Direction.left / Direction.right directly. Phonology-side aliases Side := Direction are acceptable when the Side name reads more naturally for the local context (e.g., "context side" of a tier rule), but the underlying type must be this one.

inductive Core.Direction :

A left-vs-right enumeration.

Instances For
    @[implicit_reducible]
    Equations
    def Core.instReprDirection.repr :
    DirectionNatStd.Format
    Equations
    Instances For
      @[implicit_reducible]
      Equations
      @[simp]