Abstract family of languages Created 2026-10-14 Updated 2026-11-05
An abstract family of languages is a family of formal languages containing a nonempty language and closed under finite union, concatenation of formal languages, positive closure of a formal language, nonerasing monoid homomorphisms between free word monoids, inverse homomorphisms, and intersection with regular languages. Here positive closure means , and nonerasing means that the homomorphism maps every alphabet letter to a nonempty word.
A full abstract family of languages allows arbitrary word homomorphisms, including ones that erase letters. This distinction matters: erasing an unbounded amount of a computation or derivation can change the resources needed to recognize the image language. The regular languages and context-free languages are full abstract families. In particular, the closure axioms say that if is context-free and is regular, then is context-free; they do not assert closure under intersection of two arbitrary context-free languages. The framework collects the common constructions without identifying the different language classes.[ref]
Free monoid Created 2026-10-03 Updated 2026-10-14
The free monoid on an alphabet consists of all finite words over an alphabet, including the empty word , with concatenation as its binary operation. Distinct strings represent distinct elements: there are no imposed equalities between different sequences of letters. The empty word is its identity element, and concatenation has the associative property.[ref]
For , the elements begin . Both and give the same word , but , so this monoid is not commutative. The length of a word over an alphabet obeys ; it is a monoid homomorphism to the nonnegative integers with addition. A nonempty word has no inverse element, since joining it to any other word cannot decrease its length to zero.
The defining benefit of being free is that letters can stand for arbitrary elements of another monoid. Choose a value for each letter ; then , with , is the unique monoid homomorphism extending those choices. Associativity and the identity element make this evaluation consistent for every finite word. For example, interpreting the letters as self-maps evaluates a word as a composed transformation; interpreting them as nonnegative counts evaluates it by addition.
Full abstract family of languages 2026-11-05
A full abstract family of languages is an abstract family of languages closed under all word monoid homomorphisms, including those erasing letters. It retains the other closure requirements: finite union, concatenation of formal languages, positive closure of a formal language, inverse homomorphism, and intersection with regular languages.
For example, the homomorphism , sends to . Such a map is excluded by a nonerasing-only homomorphism axiom. The adjective full says this additional erasure operation is allowed; it does not assert closure under every operation on languages.
Both regular languages and context-free languages form full abstract families. For the latter, intersection with a regular language is allowed, but intersection of two arbitrary context-free languages need not remain context-free. Erasing an arbitrarily long part of a representation can conceal unbounded intermediate work, so the distinction matters when comparing computational language classes.[ref]
Studies in Abstract Families of Languages by Seymour Ginsburg and others. First paper, Abstract families of languages, closure framework
List-monad algebras are monoids 2026-10-06
An algebra for a monad for the list monad is precisely a monoid. For an action , the identity is and multiplication is . The algebra laws force the unit and associativity laws and determine as ordered multiplication. Conversely ordered multiplication defines a list action. Algebra morphisms are exactly monoid homomorphisms, giving an isomorphism of categories .
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 18 6 a Solution Created 2026-10-03 Updated 2026-10-06
A monad consists of an endofunctor and natural transformations and , the unit and multiplication of a monad, satisfyingAn algebra for a monad is with satisfying and . A morphism of algebras for a monad satisfies . These objects and morphisms form the Eilenberg-Moore category ; its composition works because is a functor.
For the list monad, is the set of finite ordered lists, including the empty list. The map applies to each entry; and concatenates a list of lists. The unit laws say that adding singleton brackets and then flattening changes nothing. Associativity says that flattening a list of lists of lists in either order produces the same ordered sequence. These descriptions also prove naturality.
If is an algebra for a monad, defineThe singleton law gives . Apply the algebra associativity law to and to obtain . Applying it to and showsThus is a monoid. Applying the same law to shows inductively that is necessarily ordered multiplication of its entries, with the empty product .
Conversely, any monoid defines such a list-fold map . The monoid unit proves , and associativity and the unit prove that multiplying flattened lists equals multiplying their individual products, including empty sublists. Hence . An algebra morphism preserves the empty-list value and two-entry-list values, so it is a monoid homomorphism; conversely a monoid homomorphism preserves every ordered product and is an algebra morphism. ThereforeThus list-monad algebras are monoids, with the identification also matching every morphism.
Sheila Greibach 2026-11-05
Sheila Greibach coauthored the 1969 work on the abstract family of languages framework with Seymour Ginsburg and John Hopcroft. Their framework separates common language operations from the particular recognizers used to implement them.[ref]
Studies in Abstract Families of Languages by Seymour Ginsburg and others. Abstract families of languages, pp.1–32; collection byline
One important distinction is between nonerasing word homomorphisms and arbitrary word homomorphisms. Allowing an alphabet symbol to map to the empty word can discard arbitrarily much of a derivation's written evidence. A full abstract family of languages allows that operation, while the ordinary framework only requires the nonerasing version. The distinction prevents an apparently small change in a closure axiom from concealing a substantive change of computational behavior.