> {-# OPTIONS_HADDOCK show-extensions #-}
> {-|
> Module    : LTK.Decide.TLAcom
> Copyright : (c) 2022 Dakotah Lambert
> License   : MIT

> This module implements an algorithm to decide whether a given FSA
> is Tier-Based Locally Acom (TLAcom) by my own algorithm.
>
> @since 1.1
> -}
> module LTK.Decide.TLAcom (isTLAcom, isTLAcomM) where

> import LTK.Decide.LAcom (isLAcom, isLAcomM)
> import LTK.FSA (FSA)
> import LTK.Tiers (project)
> import LTK.Algebra (SynMon)

> -- |True iff the automaton recognizes a TLAcom stringset.
> isTLAcom :: (Ord n, Ord e) => FSA n e -> Bool
> isTLAcom :: forall n e. (Ord n, Ord e) => FSA n e -> Bool
isTLAcom = forall n e. (Ord n, Ord e) => FSA n e -> Bool
isLAcom forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall n e. (Ord n, Ord e) => FSA n e -> FSA n e
project

> -- |True iff the monoid recognizes a TLAcom stringset.
> isTLAcomM :: (Ord n, Ord e) => SynMon n e -> Bool
> isTLAcomM :: forall n e. (Ord n, Ord e) => SynMon n e -> Bool
isTLAcomM = forall n e. (Ord n, Ord e) => SynMon n e -> Bool
isLAcomM forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall n e. (Ord n, Ord e) => FSA n e -> FSA n e
project