Documentation

Linglib.Core.Computability.Subregular.Function.SideDeterminacy

Side-determinacy: myopia and unbounded circumambience #

Locality predicates on string functions for the function-level subregular hierarchy. The kernel OutputDependsOn f i K says output coordinate i of f is fixed by the input positions in K. Two notions are instances:

Main definitions #

Implementation notes #

The predicates are distance-based (∀ d, ∃ word + target), not fixed-index. A fixed target index has only finitely many positions to its left, so a fixed-index "unbounded left dependence" is unsatisfiable; the unbounded distance must be witnessed by ever-longer words. The co-located IsUnboundedCircumambient keeps both perturbations on a single shared base, so any computing automaton hits one context where neither side alone fixes the output.

Circumambience is not the weak-determinism boundary: a map can be IsUnboundedCircumambient yet weakly deterministic (a two-sided union spread is perturbed at one output by either side, but neither side alone reverts it). The not-weakly-deterministic classification is driven by the strictly stronger RequiresBothSides (in Bimachine.lean), where perturbing either far side reverts the target to the identity.

def Subregular.OutputDependsOn {α : Type u_1} {β : Type u_2} (f : List αList β) (i : ) (K : Set ) :

Output coordinate i of f is determined by the input positions in K: equal-length inputs agreeing on K agree at output i. Monotone in K.

Equations
  • Subregular.OutputDependsOn f i K = ∀ (u v : List α), u.length = v.length(∀ (k : ), k Ku[k]? = v[k]?)(f u)[i]? = (f v)[i]?
Instances For
    theorem Subregular.OutputDependsOn.mono {α : Type u_1} {β : Type u_2} {f : List αList β} {i : } {K K' : Set } (hKK' : K K') (h : OutputDependsOn f i K) :
    def Subregular.AgreeFrom {α : Type u_1} (u v : List α) (j : ) :

    u and v agree at every index ≥ j.

    Equations
    Instances For
      def Subregular.AgreeUpto {α : Type u_1} (u v : List α) (j : ) :

      u and v agree at every index ≤ j.

      Equations
      Instances For
        theorem Subregular.take_eq_of_agree {α : Type u_1} {u v : List α} {i : } (h : ∀ (k : ), k < iu[k]? = v[k]?) :
        List.take i u = List.take i v

        Prefixes agreeing below i have equal i-truncations.

        theorem Subregular.drop_eq_of_agree {α : Type u_1} {u v : List α} {i : } (h : ∀ (k : ), i ku[k]? = v[k]?) :
        List.drop i u = List.drop i v

        Lists agreeing from i upward have equal i-suffixes.

        theorem Subregular.AgreeUpto.take_eq {α : Type u_1} {u v : List α} {j : } (h : AgreeUpto u v j) {i : } (hij : i j + 1) :
        List.take i u = List.take i v

        Agreement up to j transports truncations: h.take_eq for h : AgreeUpto u v j.

        theorem Subregular.AgreeFrom.drop_eq {α : Type u_1} {u v : List α} {j : } (h : AgreeFrom u v j) {i : } (hij : j i) :
        List.drop i u = List.drop i v

        Agreement from j transports suffixes: h.drop_eq for h : AgreeFrom u v j.

        def Subregular.UnboundedDependence {α : Type u_1} {β : Type u_2} (f : List αList β) :

        Unbounded dependence on side s: for every distance d, some target output position flips under a perturbation strictly beyond d on side s (the perturbed input agrees on the near window + the whole opposite side).

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          def Subregular.IsMyopicTowards {α : Type u_1} {β : Type u_2} (f : List αList β) (s : Direction) :

          Myopia towards s: dependence on side s is bounded.

          Equations
          Instances For
            def Subregular.IsFarPerturbation {α : Type u_1} (base u : List α) (i d : ) (s : Direction) :

            An equal-length variant of base differing only beyond the d-margin of target i on side s — the far perturbation of the two-sided diagnostics.

            Equations
            Instances For
              def Subregular.IsUnboundedCircumambient {α : Type u_1} {β : Type u_2} (f : List αList β) :

              Unbounded circumambience, co-located: for every d, one base word with a target i whose output flips under a far perturbation on either side. Co-location keeps both flips on a single base (one automaton context).

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                theorem Subregular.IsUnboundedCircumambient.left {α : Type u_1} {β : Type u_2} {f : List αList β} (h : IsUnboundedCircumambient f) :

                Co-located circumambience yields unbounded dependence on the left.

                theorem Subregular.IsUnboundedCircumambient.right {α : Type u_1} {β : Type u_2} {f : List αList β} (h : IsUnboundedCircumambient f) :

                …and on the right.

                theorem Subregular.IsUnboundedCircumambient.not_myopic {α : Type u_1} {β : Type u_2} {f : List αList β} (h : IsUnboundedCircumambient f) (s : Direction) :

                Circumambient ⟹ not myopic (either side): a real consequence, since circumambience exhibits unbounded dependence on each side.

                @[simp]
                theorem Subregular.not_isMyopicTowards_iff {α : Type u_1} {β : Type u_2} {f : List αList β} {s : Direction} :

                f is non-myopic towards s exactly when it has unbounded dependence there (IsMyopicTowards is by definition the negation of UnboundedDependence).

                theorem Subregular.IsMyopicTowards.right_of_prefixDetermined {α : Type u_1} {β : Type u_2} {f : List αList β} (h : ∀ (i : ), OutputDependsOn f i {k : | k < i}) :

                Prefix-determined ⟹ right-myopic. A map each of whose output coordinates is fixed by the input's strict prefix ({k | k < i}) has no rightward look-ahead, so it is myopic towards the right. (The canonical left-to-right scan has this shape.)

                def Subregular.LeftDetermined {α : Type u_1} {β : Type u_2} (f : List αList β) (i : ) :

                Output coordinate i is fixed by the prefix {k | k ≤ i} (the right side is irrelevant) — the footprint shape of a left-to-right transducer.

                Equations
                Instances For
                  theorem Subregular.IsMyopicTowards.right_of_leftDetermined {α : Type u_1} {β : Type u_2} {f : List αList β} (h : ∀ (i : ), LeftDetermined f i) :

                  Left-determined everywhere ⟹ right-myopic. If every output coordinate is fixed by its prefix {k | k ≤ i}, the map has no rightward look-ahead.