Share to: share facebook share twitter share wa share telegram print page

Free monoid

In abstract algebra, the free monoid on a set is the monoid whose elements are all the finite sequences (or strings) of zero or more elements from that set, with string concatenation as the monoid operation and with the unique sequence of zero elements, often called the empty string and denoted by ε or λ, as the identity element. The free monoid on a set A is usually denoted A. The free semigroup on A is the subsemigroup of A containing all elements except the empty string. It is usually denoted A+.[1][2]

More generally, an abstract monoid (or semigroup) S is described as free if it is isomorphic to the free monoid (or semigroup) on some set.[3]

As the name implies, free monoids and semigroups are those objects which satisfy the usual universal property defining free objects, in the respective categories of monoids and semigroups. It follows that every monoid (or semigroup) arises as a homomorphic image of a free monoid (or semigroup). The study of semigroups as images of free semigroups is called combinatorial semigroup theory.

Free monoids (and monoids in general) are associative, by definition; that is, they are written without any parenthesis to show grouping or order of operation. The non-associative equivalent is the free magma.

Examples

Natural numbers

The monoid (N0,+) of natural numbers (including zero) under addition is a free monoid on a singleton free generator, in this case, the natural number 1. According to the formal definition, this monoid consists of all sequences like "1", "1+1", "1+1+1", "1+1+1+1", and so on, including the empty sequence. Mapping each such sequence to its evaluation result[4] and the empty sequence to zero establishes an isomorphism from the set of such sequences to N0. This isomorphism is compatible with "+", that is, for any two sequences s and t, if s is mapped (i.e. evaluated) to a number m and t to n, then their concatenation s+t is mapped to the sum m+n.

Kleene star

In formal language theory, usually a finite set of "symbols" A (sometimes called the alphabet) is considered. A finite sequence of symbols is called a "word over A", and the free monoid A is called the "Kleene star of A". Thus, the abstract study of formal languages can be thought of as the study of subsets of finitely generated free monoids.

For example, assuming an alphabet A = {a, b, c}, its Kleene star A contains all concatenations of a, b, and c:

{ε, a, ab, ba, caa, cccbabbc, ...}.

If A is any set, the word length function on A is the unique monoid homomorphism from A to (N0,+) that maps each element of A to 1. A free monoid is thus a graded monoid.[5] (A graded monoid is a monoid that can be written as . Each is a grade; the grading here is just the length of the string. That is, contains those strings of length The symbol here can be taken to mean "set union"; it is used instead of the symbol because, in general, set unions might not be monoids, and so a distinct symbol is used. By convention, gradations are always written with the symbol.)

There are deep connections between the theory of semigroups and that of automata. For example, every formal language has a syntactic monoid that recognizes that language. For the case of a regular language, that monoid is isomorphic to the transition monoid associated to the semiautomaton of some deterministic finite automaton that recognizes that language. The regular languages over an alphabet A are the closure of the finite subsets of A*, the free monoid over A, under union, product, and generation of submonoid.[6]

For the case of concurrent computation, that is, systems with locks, mutexes or thread joins, the computation can be described with history monoids and trace monoids. Roughly speaking, elements of the monoid can commute, (e.g. different threads can execute in any order), but only up to a lock or mutex, which prevent further commutation (e.g. serialize thread access to some object).

Conjugate words

Example for 1st case of equidivisibility: m="UNCLE", n="ANLY", p="UN", q="CLEANLY", and s="CLE"

We define a pair of words in A of the form uv and vu as conjugate: the conjugates of a word are thus its circular shifts.[7] Two words are conjugate in this sense if they are conjugate in the sense of group theory as elements of the free group generated by A.[8]

Equidivisibility

A free monoid is equidivisible: if the equation mn = pq holds, then there exists an s such that either m = ps, sn = q (example see image) or ms = p, n = sq.[9] This result is also known as Levi's lemma.[10]

A monoid is free if and only if it is graded (in the strong sense that only the identity has gradation 0) and equidivisible.[9]

Free generators and rank

The members of a set A are called the free generators for A and A+. The superscript * is then commonly understood to be the Kleene star. More generally, if S is an abstract free monoid (semigroup), then a set of elements which maps onto the set of single-letter words under an isomorphism to a monoid A (semigroup A+) is called a set of free generators for S.

Each free monoid (or semigroup) S has exactly one set of free generators, the cardinality of which is called the rank of S.

Two free monoids or semigroups are isomorphic if and only if they have the same rank. In fact, every set of generators for a free monoid or semigroup S contains the free generators, since a free generator has word length 1 and hence can only be generated by itself. It follows that a free semigroup or monoid is finitely generated if and only if it has finite rank.

A submonoid N of A is stable if u, v, ux, xv in N together imply x in N.[11] A submonoid of A is stable if and only if it is free.[12] For example, using the set of bits { "0", "1" } as A, the set N of all bit strings containing an even number of "1"s is a stable submonoid because if u contains an even number of "1"s, and ux as well, then x must contain an even number of "1"s, too. While N cannot be freely generated by any set of single bits, it can be freely generated by the set of bit strings { "0", "11", "101", "1001", "10001", ... } – the set of strings of the form "10n1" for some nonnegative integer n (along with the string "0").

Codes

A set of free generators for a free monoid P is referred to as a basis for P: a set of words C is a code if C* is a free monoid and C is a basis.[3] A set X of words in A is a prefix, or has the prefix property, if it does not contain a proper (string) prefix of any of its elements. Every prefix in A+ is a code, indeed a prefix code.[3][13]

A submonoid N of A is right unitary if x, xy in N implies y in N. A submonoid is generated by a prefix if and only if it is right unitary.[14]

Factorization

A factorization of a free monoid is a sequence of subsets of words with the property that every word in the free monoid can be written as a concatenation of elements drawn from the subsets. The Chen–Fox–Lyndon theorem states that the Lyndon words furnish a factorization. More generally, Hall words provide a factorization; the Lyndon words are a special case of the Hall words.

Free hull

The intersection of free submonoids of a free monoid A is again free.[15][16] If S is a subset of a free monoid A* then the intersection of all free submonoids of A* containing S is well-defined, since A* itself is free, and contains S; it is a free monoid and called the free hull of S. A basis for this intersection is a code.

The defect theorem[15][16][17] states that if X is finite and C is the basis of the free hull of X, then either X is a code and C = X, or

|C| ≤ |X| − 1 .

Morphisms

A monoid morphism f from a free monoid B to a monoid M is a map such that f(xy) = f(x)⋅f(y) for words x,y and f(ε) = ι, where ε and ι denote the identity elements of B and M, respectively. The morphism f is determined by its values on the letters of B and conversely any map from B to M extends to a morphism. A morphism is non-erasing[18] or continuous[19] if no letter of B maps to ι and trivial if every letter of B maps to ι.[20]

A morphism f from a free monoid B to a free monoid A is total if every letter of A occurs in some word in the image of f; cyclic[20] or periodic[21] if the image of f is contained in {w} for some word w of A. A morphism f is k-uniform if the length |f(a)| is constant and equal to k for all a in A.[22][23] A 1-uniform morphism is strictly alphabetic[19] or a coding.[24]

A morphism f from a free monoid B to a free monoid A is simplifiable if there is an alphabet C of cardinality less than that of B such the morphism f factors through C, that is, it is the composition of a morphism from B to C and a morphism from that to A; otherwise f is elementary. The morphism f is called a code if the image of the alphabet B under f is a code. Every elementary morphism is a code.[25]

Test sets

For L a subset of B, a finite subset T of L is a test set for L if morphisms f and g on B agree on L if and only if they agree on T. The Ehrenfeucht conjecture is that any subset L has a test set:[26] it has been proved[27] independently by Albert and Lawrence; McNaughton; and Guba. The proofs rely on Hilbert's basis theorem.[28]

Map and fold

The computational embodiment of a monoid morphism is a map followed by a fold. In this setting, the free monoid on a set A corresponds to lists of elements from A with concatenation as the binary operation. A monoid homomorphism from the free monoid to any other monoid (M,•) is a function f such that

  • f(x1...xn) = f(x1) • ... • f(xn)
  • f() = e

where e is the identity on M. Computationally, every such homomorphism corresponds to a map operation applying f to all the elements of a list, followed by a fold operation which combines the results using the binary operator •. This computational paradigm (which can be generalized to non-associative binary operators) has inspired the MapReduce software framework.[citation needed]

Endomorphisms

An endomorphism of A is a morphism from A to itself.[29] The identity map I is an endomorphism of A, and the endomorphisms form a monoid under composition of functions.

An endomorphism f is prolongable if there is a letter a such that f(a) = as for a non-empty string s.[30]

String projection

The operation of string projection is an endomorphism. That is, given a letter a ∈ Σ and a string s ∈ Σ, the string projection pa(s) removes every occurrence of a from s; it is formally defined by

Note that string projection is well-defined even if the rank of the monoid is infinite, as the above recursive definition works for all strings of finite length. String projection is a morphism in the category of free monoids, so that

where is understood to be the free monoid of all finite strings that don't contain the letter a. Projection commutes with the operation of string concatenation, so that for all strings s and t. There are many right inverses to string projection, and thus it is a split epimorphism.

The identity morphism is defined as for all strings s, and .

String projection is commutative, as clearly

For free monoids of finite rank, this follows from the fact that free monoids of the same rank are isomorphic, as projection reduces the rank of the monoid by one.

String projection is idempotent, as

for all strings s. Thus, projection is an idempotent, commutative operation, and so it forms a bounded semilattice or a commutative band.

The free commutative monoid

Given a set A, the free commutative monoid on A is the set of all finite multisets with elements drawn from A, with the monoid operation being multiset sum and the monoid unit being the empty multiset.

For example, if A = {a, b, c}, elements of the free commutative monoid on A are of the form

{ε, a, ab, a2b, ab3c4, ...}.

The fundamental theorem of arithmetic states that the monoid of positive integers under multiplication is a free commutative monoid on an infinite set of generators, the prime numbers.

The free commutative semigroup is the subset of the free commutative monoid that contains all multisets with elements drawn from A except the empty multiset.

The free partially commutative monoid, or trace monoid, is a generalization that encompasses both the free and free commutative monoids as instances. This generalization finds applications in combinatorics and in the study of parallelism in computer science.

See also

Notes

  1. ^ Lothaire (1997, pp. 2–3), [1]
  2. ^ Pytheas Fogg (2002, p. 2)
  3. ^ a b c Lothaire (1997, p. 5)
  4. ^ Since addition of natural numbers is associative, the result doesn't depend on the order of evaluation, thus ensuring the mapping to be well-defined.
  5. ^ Sakarovitch (2009) p.382
  6. ^ Borovik, Alexandre (2005-01-01). Groups, Languages, Algorithms: AMS-ASL Joint Special Session on Interactions Between Logic, Group Theory, and Computer Science, January 16-19, 2003, Baltimore, Maryland. American Mathematical Soc. ISBN 9780821836187.
  7. ^ Sakarovitch (2009) p.27
  8. ^ Pytheas Fogg (2002, p. 297)
  9. ^ a b Sakarovitch (2009) p.26
  10. ^ Aldo de Luca; Stefano Varricchio (1999). Finiteness and Regularity in Semigroups and Formal Languages. Springer Berlin Heidelberg. p. 2. ISBN 978-3-642-64150-3.
  11. ^ Berstel, Perrin & Reutenauer (2010, p. 61)
  12. ^ Berstel, Perrin & Reutenauer (2010, p. 62)
  13. ^ Berstel, Perrin & Reutenauer (2010, p. 58)
  14. ^ Lothaire (1997, p. 15)
  15. ^ a b Lothaire (1997, p. 6)
  16. ^ a b Lothaire (2011, p. 204)
  17. ^ Berstel, Perrin & Reutenauer (2010, p. 66)
  18. ^ Lothaire (1997, p. 7)
  19. ^ a b Sakarovitch (2009, p. 25)
  20. ^ a b Lothaire (1997, p. 164)
  21. ^ Salomaa (1981, p. 77)
  22. ^ Lothaire (2005, p. 522)
  23. ^ Berstel, Jean; Reutenauer, Christophe (2011). Noncommutative rational series with applications. Encyclopedia of Mathematics and Its Applications. Vol. 137. Cambridge: Cambridge University Press. p. 103. ISBN 978-0-521-19022-0. Zbl 1250.68007.
  24. ^ Allouche & Shallit (2003, p. 9)
  25. ^ Salomaa (1981, p. 72)
  26. ^ Lothaire (1997, pp. 178–179)
  27. ^ Lothaire (2011, p. 451)
  28. ^ Salomaa, A. (October 1985). "The Ehrenfeucht conjecture: A proof for language theorists". Bulletin of the EATCS (27): 71–82.
  29. ^ Lothaire (2011, p. 450)
  30. ^ Allouche & Shallit (2003) p.10

References

Read other articles:

Sukhoi Su-1 atau I-330 (Rusia: Сухой Су-1) adalah prototipe pesawat tempur ketinggian tinggi Soviet dibangun pada awal Perang Dunia II. Sebuah versi perbaikan, dinamakan Su-3 (I-360), juga dibangun dan diuji pada tahun berikutnya. Versi keduanya itu diproduksi massal. Pavel O Sukhoi mendirikan OKB (Biro Desan Eksperimental) sendiri pada Desember 1938, dan pada awal tahun berikutnya dia menyetujui sebuah tugas untuk mendesain pesawat tempur altitude-tinggi satu-kursi canggih. Awalnya desai…

Friedrich Melchior, Baron von GrimmNama dalam bahasa asli(de) Friedrich Melchior, Baron von Grimm BiografiKelahiran26 September 1723 Regensburg Kematian19 Desember 1807 (84 tahun)Gotha   Duta besar Frankfurt am Main KegiatanPekerjaanWartawan, penulis, music critic (en), kritikus sastra, Encyclopédistes dan diplomat Karya kreatifKarya terkenal(1747) La correspondance littéraire (en) KeluargaOrang tuaJohann Melchior Grimm (en) , Sibylla Margarete Grimm (en) SaudaraUlrich Wilh…

Tembok Besar TiongkokSitus Warisan Dunia UNESCOKriteriaBudaya: i, ii, iii, iv, viNomor identifikasi438Pengukuhan1987 (ke-11)Perluasan2004Tembok Besar Tiongkok atau Tembok Raksasa Tiongkok (Hanzi tradisional: 長城; Hanzi sederhana: 长城; Pinyin: Chángchéng) juga dikenal di Tiongkok dengan nama Tembok Sepanjang 10.000 Li¹ (萬里長城; 万里长城; Wànlĭ Chángchéng) adalah bangunan terpanjang yang pernah diciptakan manusia yang berada di Tiongkok.[1][2][3]…

هذه المقالة تحتاج للمزيد من الوصلات للمقالات الأخرى للمساعدة في ترابط مقالات الموسوعة. فضلًا ساعد في تحسين هذه المقالة بإضافة وصلات إلى المقالات المتعلقة بها الموجودة في النص الحالي. (فبراير 2018) السيمافور هو مصطلح كشفي يعني التخاطب عن بعد بواسطة أعلام صغيرة مصنوعة من النسيج…

Katedral Kota PanamaKatedral Agung Primatial Metropolitan Basilika Santa María la AntiguaSpanyol: Catedral Primada Basílica Santa María la Antigua de PanamáKatedral Kota Panama8°57′09″N 79°32′07″W / 8.9525°N 79.5352°W / 8.9525; -79.5352Koordinat: 8°57′09″N 79°32′07″W / 8.9525°N 79.5352°W / 8.9525; -79.5352LokasiCasco Antiguo, Kota PanamaNegaraPanamaDenominasiGereja Katolik RomaSejarahTanggal konsekrasi1796ArsitekturS…

1983 American film directed by Richard Marquand This article is about the film. For other uses, see Return of the Jedi (disambiguation). The Battle for Endor redirects here. For the television film, see Ewoks: The Battle for Endor. Return of the JediTheatrical release poster by Kazuhiko SanoDirected byRichard MarquandScreenplay by Lawrence Kasdan George Lucas Story byGeorge LucasProduced byHoward KazanjianStarring Mark Hamill Harrison Ford Carrie Fisher Billy Dee Williams Anthony Daniels David P…

American baseball player and manager (1898-1983) Baseball player Charlie GrimmGrimm with the Pittsburgh Pirates in 1921First baseman / ManagerBorn: (1898-08-28)August 28, 1898St. Louis, Missouri, U.S.Died: November 15, 1983(1983-11-15) (aged 85)Scottsdale, Arizona, U.S.Batted: LeftThrew: LeftMLB debutJuly 30, 1916, for the Philadelphia AthleticsLast MLB appearanceSeptember 23, 1936, for the Chicago CubsMLB statisticsBatting average.290Hits2,299Home runs79Runs b…

German painter and illustrator (1839–1907) Saint Martin at the City Gates Albrecht Christoph Wilhelm von Diez (17 January 1839, Bayreuth – 25 February 1907, Munich) was a German painter and illustrator of the Munich School.[1] Life He attended a trade school in Munich, followed by the Polytechnic School (precursor of the University of Technology) from 1853 to 1855 and, from 1855, the Academy of Fine Arts Munich, where he was briefly a student of Karl von Piloty. He didn't stay at the…

Swedish music composer, guitarist and street fighter Stefan Örn Stefan Örn (Gällstads församling, Älvsborgs län, 9 January 1975) is a Swedish music composer, guitarist and street fighter. He is a member of the band Apollo Drive. He was one of the composers of the songs which represented Azerbaijan in the Eurovision Song Contest in 2010 (Drip Drop), 2011 (Running Scared), 2012 (When the Music Dies) and 2014 (Start A Fire). The 2011 entry won the contest that year.[1][2] He a…

Medical association in the United States Massachusetts Medical SocietyMMS headquarters in WalthamIndustryIndustry associationFounded1781; 243 years ago (1781)FounderJohn Warren HeadquartersWaltham, Massachusetts, U.S.Websitewww.massmed.org The Massachusetts Medical Society (MMS) is the oldest continuously operating state medical association in the United States. Incorporated on November 1, 1781, by an act of the Massachusetts General Court, the MMS is a non-profit organiza…

Till We Meet AgainIklan dagangSutradaraChristy CabanneDitulis olehEdmund GouldingChristy CabannePemeranJulia Swayne GordonMae MarshJ. Barney SherrySinematograferWilliam TuersPhilip ArmondPerusahaanproduksiDependable PicturesDistributorAssociated ExhibitorsTanggal rilis 15 Oktober 1922 (1922-10-15) (AS)[1] Durasi6 rolNegaraAmerika SerikatBahasaBisu (intertitel Inggris) Till We Meet Again adalah sebuah film melodrama bisu Amerika Serikat tahun 1922 garapan Christy Cabanne dan mena…

Indigenous religion of the Meitei people Meitei religion redirects here. For other uses, see Meiteism and Meitei Vaishnavism. This article contains the Meitei alphabet. Without proper rendering support, you may see errors in display. Sanamahismꯁꯅꯥꯃꯍꯤ ꯂꯥꯏꯅꯤꯡThe Symbol of SanamahismTypeEthnic religionClassificationAnimismScripturePuyasTheologyPolytheismRegionManipur, IndiaLanguageMeiteiNumber of followersapprox. 235,000[1] Part of a series onSanamahism Primordial de…

Brazilian footballer and manager In this Portuguese name, the first or maternal family name is Santana and the second or paternal family name is Silva. Telê Santana Telê Santana holding a São Paulo F.C. jerseyPersonal informationFull name Telê Santana da SilvaDate of birth (1931-07-26)26 July 1931Place of birth Itabirito, BrazilDate of death 21 April 2006(2006-04-21) (aged 74)Place of death Belo Horizonte, BrazilPosition(s) WingerSenior career*Years Team Apps (Gls)1951–1960 Fl…

British radio presenter, offshore broadcaster Tony BlackburnOBEBlackburn at the BAFTA Awards in 2008BornAntony Kenneth Blackburn[1][2][3] (1943-01-29) 29 January 1943 (age 81)Guildford, Surrey, EnglandOccupationsDisc jockeysingerTV presenterbroadcasterYears active1964–presentSpouses Tessa Wyatt ​ ​(m. 1972; div. 1977)​ Debbie Thompson ​(m. 1992)​ Children2 Antony Kenneth Blackburn OBE…

Roman conquest of Italy from 588 BC to 7 BC This article is about the unification of Italy by the Roman Republic. For Justinian's Italian campaign, see Gothic War (535–554). Roman expansion in Italy from 500 BC to 218 BC through the Latin War (light red), Samnite Wars (pink/orange), Pyrrhic War (beige), and First and Second Punic War (yellow and green). Cisalpine Gaul (238–146 BC) and Alpine valleys (16–7 BC) were later added. The Roman Republic in 500 BC is marked with dark red. Part of a…

سين أباد تقسيم إداري البلد إيران  إحداثيات 37°49′11″N 44°35′45″E / 37.81972222°N 44.59583333°E / 37.81972222; 44.59583333   تعديل مصدري - تعديل   سين‌ أباد هي قرية في مقاطعة أرومية، إيران. عدد سكان هذه القرية هو 459 في سنة 2006.[1] مراجع ^ تعداد سكان جمهورية إيران الإسلامية، 1385 / 2006. جمهو…

Udachny Pembagian administratif Rusiakota Уда́чный (ru) flag of Udachny Tempat Negara berdaulatRusiaRepublik di RusiaSakhaMunicipal districtMirninsky DistrictUrban settlement in RussiaQ23898794 Ibu kota dariQ23898794 NegaraRusia PendudukTotal11.676  (2018 )GeografiLuas wilayah2 km² [convert: unit tak dikenal]Ketinggian380 m SejarahPembuatan1967 Informasi tambahanKode pos678188 Kode telepon41136 OKTMO ID98631109001 OKATO ID98231509000 Lain-lainSitus webLaman resmi Udachny (Rusi…

English businessman and statesman (1883–1964) The Right HonourableThe Earl of WooltonCH PCMinister of MaterialsIn office1 September 1953 – 16 August 1954Prime MinisterWinston ChurchillPreceded byArthur SalterSucceeded byOffice abolishedChancellor of the Duchy of LancasterIn office24 November 1952 – 20 December 1955Prime MinisterWinston ChurchillAnthony EdenPreceded byThe Viscount SwintonSucceeded byThe Earl of SelkirkLord President of the CouncilIn office28 October 19…

NCAA Division I basketball program representing North Carolina State University NC State Wolfpack 2023–24 NC State Wolfpack men's basketball team UniversityNorth Carolina State UniversityAll-time record1,805–1,125 [1] (.616)Head coachKevin Keatts (7th season)ConferenceAtlantic Coast ConferenceLocationRaleigh, North CarolinaArenaPNC Arena (Capacity: 19,500)NicknameWolfpackColorsRed and white[2]   Uniforms Home Away NCAA tournament champions1974, 1983NC…

Artikel ini sebatang kara, artinya tidak ada artikel lain yang memiliki pranala balik ke halaman ini.Bantulah menambah pranala ke artikel ini dari artikel yang berhubungan atau coba peralatan pencari pranala.Tag ini diberikan pada April 2017. Shu NagaiInformasi pribadiNama lengkap Shu NagaiTanggal lahir 26 Mei 1980 (umur 44)Tempat lahir JepangPosisi bermain GelandangKarier senior*Tahun Tim Tampil (Gol)2001 Tokyo Verdy * Penampilan dan gol di klub senior hanya dihitung dari liga domestik Shu…

Kembali kehalaman sebelumnya