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

Term algebra

In universal algebra and mathematical logic, a term algebra is a freely generated algebraic structure over a given signature.[1][2] For example, in a signature consisting of a single binary operation, the term algebra over a set X of variables is exactly the free magma generated by X. Other synonyms for the notion include absolutely free algebra and anarchic algebra.[3]

From a category theory perspective, a term algebra is the initial object for the category of all X-generated algebras of the same signature, and this object, unique up to isomorphism, is called an initial algebra; it generates by homomorphic projection all algebras in the category.[4][5]

A similar notion is that of a Herbrand universe in logic, usually used under this name in logic programming,[6] which is (absolutely freely) defined starting from the set of constants and function symbols in a set of clauses. That is, the Herbrand universe consists of all ground terms: terms that have no variables in them.

An atomic formula or atom is commonly defined as a predicate applied to a tuple of terms; a ground atom is then a predicate in which only ground terms appear. The Herbrand base is the set of all ground atoms that can be formed from predicate symbols in the original set of clauses and terms in its Herbrand universe.[7][8] These two concepts are named after Jacques Herbrand.

Term algebras also play a role in the semantics of abstract data types, where an abstract data type declaration provides the signature of a multi-sorted algebraic structure and the term algebra is a concrete model of the abstract declaration.

Universal algebra

A type is a set of function symbols, with each having an associated arity (i.e. number of inputs). For any non-negative integer , let denote the function symbols in of arity . A constant is a function symbol of arity 0.

Let be a type, and let be a non-empty set of symbols, representing the variable symbols. (For simplicity, assume and are disjoint.) Then the set of terms of type over is the set of all well-formed strings that can be constructed using the variable symbols of and the constants and operations of . Formally, is the smallest set such that:

  •   — each variable symbol from is a term in , and so is each constant symbol from .
  • For all and for all function symbols and terms , we have the string   — given terms , the application of an -ary function symbol to them represents again a term.

The term algebra of type over is, in summary, the algebra of type that maps each expression to its string representation. Formally, is defined as follows:[9]

  • The domain of is .
  • For each nullary function in , is defined as the string .
  • For all and for each n-ary function in and elements in the domain, is defined as the string .

A term algebra is called absolutely free because for any algebra of type , and for any function , extends to a unique homomorphism , which simply evaluates each term to its corresponding value . Formally, for each :

  • If , then .
  • If , then .
  • If where and , then .

Example

As an example type inspired from integer arithmetic can be defined by , , , and for each .

The best-known algebra of type has the natural numbers as its domain and interprets , , , and in the usual way; we refer to it as .

For the example variable set , we are going to investigate the term algebra of type over .

First, the set of terms of type over is considered. We use red color to flag its members, which otherwise may be hard to recognize due to their uncommon syntactic form. We have e.g.

  • , since is a variable symbol;
  • , since is a constant symbol; hence
  • , since is a 2-ary function symbol; hence, in turn,
  • since is a 2-ary function symbol.

More generally, each string in corresponds to a mathematical expression built from the admitted symbols and written in Polish prefix notation; for example, the term corresponds to the expression in usual infix notation. No parentheses are needed to avoid ambiguities in Polish notation; e.g. the infix expression corresponds to the term .

To give some counter-examples, we have e.g.

  • , since is neither an admitted variable symbol nor an admitted constant symbol;
  • , for the same reason,
  • , since is a 2-ary function symbol, but is used here with only one argument term (viz. ).

Now that the term set is established, we consider the term algebra of type over . This algebra uses as its domain, on which addition and multiplication need to be defined. The addition function takes two terms and and returns the term ; similarly, the multiplication function maps given terms and to the term . For example, evaluates to the term . Informally, the operations and are both "sluggards" in that they just record what computation should be done, rather than doing it.

As an example for unique extendability of a homomorphism consider defined by and . Informally, defines an assignment of values to variable symbols, and once this is done, every term from can be evaluated in a unique way in . For example,

In a similar way, one obtains .

Herbrand base

The signature σ of a language is a triple <O, F, P> consisting of the alphabet of constants O, function symbols F, and predicates P. The Herbrand base[10] of a signature σ consists of all ground atoms of σ: of all formulas of the form R(t1, ..., tn), where t1, ..., tn are terms containing no variables (i.e. elements of the Herbrand universe) and R is an n-ary relation symbol (i.e. predicate). In the case of logic with equality, it also contains all equations of the form t1 = t2, where t1 and t2 contain no variables.

Decidability

Term algebras can be shown decidable using quantifier elimination. The complexity of the decision problem is in NONELEMENTARY because binary constructors are injective and thus pairing functions.[11]

See also

References

  1. ^ Wilfrid Hodges (1997). A Shorter Model Theory. Cambridge University Press. pp. 14. ISBN 0-521-58713-1.
  2. ^ Franz Baader; Tobias Nipkow (1998). Term Rewriting and All That. Cambridge University Press. p. 49. ISBN 0-521-77920-0.
  3. ^ Klaus Denecke; Shelly L. Wismath (2009). Universal Algebra and Coalgebra. World Scientific. pp. 21–23. ISBN 978-981-283-745-5.
  4. ^ T.H. Tse (2010). A Unifying Framework for Structured Analysis and Design Models: An Approach Using Initial Algebra Semantics and Category Theory. Cambridge University Press. pp. 46–47. doi:10.1017/CBO9780511569890. ISBN 978-0-511-56989-0.
  5. ^ Jean-Yves Béziau (1999). "The mathematical structure of logical syntax". In Carnielli, Walter Alexandre; D'Ottaviano, Itala M. L. (eds.). Advances in Contemporary Logic and Computer Science: Proceedings of the Eleventh Brazilian Conference on Mathematical Logic, May 6-10, 1996, Salvador, Bahia, Brazil. American Mathematical Society. p. 9. ISBN 978-0-8218-1364-5. Retrieved 18 April 2011.
  6. ^ Dirk van Dalen (2004). Logic and Structure. Springer. p. 108. ISBN 978-3-540-20879-2.
  7. ^ M. Ben-Ari (2001). Mathematical Logic for Computer Science. Springer. pp. 148–150. ISBN 978-1-85233-319-5.
  8. ^ Monroe Newborn (2001). Automated Theorem Proving: Theory and Practice. Springer. p. 43. ISBN 978-0-387-95075-4.
  9. ^ Stanley Burris; H. P. Sankappanavar (1981). A Course in Universal Algebra. Springer. pp. 68–69, 71. ISBN 978-1-4613-8132-7.{{cite book}}: CS1 maint: multiple names: authors list (link)
  10. ^ Rogelio Davila. Answer Set Programming Overview.
  11. ^ Jeanne Ferrante; Charles W. Rackoff (1979). The Computational Complexity of Logical Theories. Springer, Chapter 8, Theorem 1.2.

Further reading

Read other articles:

H.Atbah Romin Suhaili,Lc., M.H.Bupati Sambas Ke-17Masa jabatan13 Juni 2016 – 13 Juni 2021WakilHairiahPendahuluJuliarti Djuhardi AlwiPenggantiSatono Informasi pribadiLahir20 Januari 1970 (umur 53)Sajad, SambasKebangsaanIndonesiaPartai politik  PKSSuami/istriLusyanah KosasihAnakFida' Azzam MadaniaDzaka' Azzam JakartiaAla' Azzam SambasiaRisa' Azzam EmiratiaHilwa' Azzam MecciyaAlma materLIPIA JakartaUniv. TanjungpuraSunting kotak info • L • B H. Atbah R...

Sporting event delegationSaudi Arabia at the2024 Summer OlympicsIOC codeKSANOCSaudi Arabian Olympic CommitteeWebsiteolympic.sa (in Arabic and English)in Paris, France26 July 2024 (2024-07-26) – 11 August 2024 (2024-08-11)Competitors4 in 1 sportMedals Gold 0 Silver 0 Bronze 0 Total 0 Summer Olympics appearances (overview)19721976198019841988199219962000200420082012201620202024 Saudi Arabia is scheduled to compete at the 2024 Summer Olympics in Paris fr...

العلاقات النمساوية السورينامية النمسا سورينام   النمسا   سورينام تعديل مصدري - تعديل   العلاقات النمساوية السورينامية هي العلاقات الثنائية التي تجمع بين النمسا وسورينام.[1][2][3][4][5] مقارنة بين البلدين هذه مقارنة عامة ومرجعية للدولتين: وجه ا...

Si ce bandeau n'est plus pertinent, retirez-le. Cliquez ici pour en savoir plus. Cet article ne cite pas suffisamment ses sources (novembre 2012). Si vous disposez d'ouvrages ou d'articles de référence ou si vous connaissez des sites web de qualité traitant du thème abordé ici, merci de compléter l'article en donnant les références utiles à sa vérifiabilité et en les liant à la section « Notes et références » En pratique : Quelles sources sont attendues ? C...

American politician (1781–1844) Ratliff BoonPosthumous portrait by James Forbes (c.1870)Member of the U.S. House of Representatives from Indiana's 1st districtIn officeMarch 4, 1829 – March 3, 1839Preceded byThomas H. BlakeSucceeded byGeorge H. ProffitIn officeMarch 4, 1825 – March 3, 1827Preceded byJacob CallSucceeded byThomas H. Blake2nd Governor of IndianaIn officeSeptember 12, 1822 – December 5, 1822LieutenantVacantPreceded byJonathan JenningsSucceed...

Pemilihan umum Bupati Pesawaran 2015201020209 Desember 2015Kandidat   Calon Dendi Ramadhona Aries Sandi Darma Putra Partai PDI-P Independen Pendamping Eriawan Mahmud Yunus Suara rakyat 108.271 67.800 Persentase 47,08% 29,48% Peta persebaran suara Peta lokasi Pesawaran Bupati dan Wakil Bupati terpilih Dendi Ramadhona PDI-P Sunting kotak info • L • BBantuan penggunaan templat ini Pemilihan umum Bupati Pesawaran 2015 adalah pemilihan kepala daerah Pesawaran pada tanggal 9...

Das Grab von Werner Flume und seiner Ehefrau Helga geborene Endriss auf dem Zentralfriedhof Bad Godesberg in Bonn Werner Flume (* 12. September 1908 in Kamen; † 28. Januar 2009 in Bonn[1]) war ein deutscher Rechtswissenschaftler und Professor für Römisches Recht, Bürgerliches Recht, Steuerrecht und Rechtsgeschichte. Flume beeinflusste die Entwicklung des deutschen Rechts maßgeblich. Inhaltsverzeichnis 1 Leben 2 Werk 3 Veröffentlichungen (Monografien – Auszug) 4 Literatur 5 We...

Esta página cita fontes, mas que não cobrem todo o conteúdo. Ajude a inserir referências. Conteúdo não verificável pode ser removido.—Encontre fontes: ABW  • CAPES  • Google (N • L • A) (Agosto de 2017) Hospital Albert Einstein em São Paulo A saúde no Brasil, assim como na maioria dos países, é regida por diversos fatores, que incluem clima, as necessidades da população e sua interação com o meio ambiente. Em um pa...

A Werewolf BoyNama lainHangul늑대소년 Hanja늑대少年 Alih Aksara yang DisempurnakanNeukdae SonyeonMcCune–ReischauerNŭkdae Sonyŏn Sutradara Jo Sung-hee Produser Kim Su-jin Yu in-beom Jeong Tae-seong Ditulis oleh Jo Sung-hee PemeranSong Joong-ki Park Bo-youngPenata musikShim Hyun-jungSinematograferChoi Sang-mukPenyuntingNam Na-yeongPerusahaanproduksiBidangil PicturesDistributorCJ EntertainmentTanggal rilis 11 September 2012 (2012-09-11) (TIFF) 31 Oktober 2012...

Pakistani politician For other people with similar names, see Ghulam Mustafa (disambiguation). This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Ghulam Mustafa Jatoi – news · newspapers · books · scholar · JSTOR (January 2017) (Learn how and when to remove this template message) Ghulam Mustafa JatoiCaretaker P...

City in California, United States City in California, United StatesMenlo ParkCityCity of Menlo ParkDowntown Menlo Park Location of Menlo Park in San Mateo County (left) and of San Mateo County in California (right)Menlo Park street map, CaliforniaMenlo ParkLocation in CaliforniaShow map of CaliforniaMenlo ParkLocation in the United StatesShow map of the United StatesCoordinates: 37°27′10″N 122°11′00″W / 37.45278°N 122.18333°W / 37.45278; -122.18333CountryUn...

Neo-grotesque sans-serif typefaceFor the country referred to as the same name in Latin, see Switzerland.For other uses, see Helvetica (disambiguation).Not to be confused with Helvetia, the national personification of Switzerland.Typeface HelveticaCategorySans-serifClassificationNeo-grotesque[1]Designer(s)Max MiedingerEduard HoffmannFoundryHaas'sche Schriftgiesserei (Basel)Date released1957Re-issuing foundriesMergenthaler Linotype CompanyDesign based onAkzidenz-GroteskVariationsHelveti...

City in Louisiana, United StatesSaint Martinville, LouisianaCityCity of Saint MartinvilleMain StreetNickname: Petit Paris (Little Paris)Location within St. Martin Parish, LouisianaCoordinates: 30°07′30″N 91°49′50″W / 30.12500°N 91.83056°W / 30.12500; -91.83056Country United StatesState LouisianaParishSt. MartinGovernment • MayorJason Willis (D)Area[1] • Total3.16 sq mi (8.18 km2) • La...

Cet article est une ébauche concernant la Rome antique et l’Égypte. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Forteresse de Babylone du CairePrésentationType ForteresseÉtat de conservation démoli ou détruit (d)LocalisationLocalisation gouvernorat du Caire ÉgypteCoordonnées 30° 00′ 22″ N, 31° 13′ 47″ Emodifier - modifier le code - modifier Wikidata Qasr ...

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Thai Sang Thai Party – news · newspapers · books · scholar · JSTOR (May 2023) (Learn how and when to remove this template message)Political party in Thailand Thai Sang Thai Party พรรคไทยสร้างไทยAbbreviationTSTLeaderSudarat Keyu...

Pour les articles homonymes, voir Caroline. Caroline du Nord (en) North Carolina Sceau de la Caroline du Nord. Drapeau de la Caroline du Nord. Carte des États-Unis avec la Caroline du Nord en rouge.SurnomTar Heel StateEn français : « L'État des talons de goudron ».DeviseEsse quam videri (latin)« Être plutôt que sembler ». Administration Pays États-Unis Capitale Raleigh Adhésion à l’Union 21 novembre 1789 (234 ans) (12e État) Gouverneur Roy Coo...

Public university in Dire Dawa, Ethiopia Dire Dawa UniversityMottoOasis of KnowledgeTypePublic universityEstablished2006AccreditationMinistry of EducationPresidentUbah AdemVice-presidentMegersa Kasim HussenAcademic staff1,177Students12,500 (2018)LocationDire Dawa, Ethiopia9°37′12″N 41°50′27″E / 9.619900°N 41.840745°E / 9.619900; 41.840745Campus1LanguageEnglishWebsitewww.ddu.edu.etLocation in Ethiopia Dire Dawa University is a public university located in Di...

Norwegian rock/pop band The National BankOriginOslo, NorwayGenresRock and pop musicYears active2003–presentMembersLars HorntvethMorten QvenildThomas DybdahlNikolai EilertsenMartin HorntvethWebsiteThe National Bank Official Website The National Bank is a Norwegian rock/pop band, whose debut album was released in Norway in 2004 and featured the hit song Tolerate.[1][2] They came together in 2003, initially only to perform a one-time show commissioned by Vestfoldspillene music ...

Rhode Island negara bagian di Amerika Serikat Rhode Island (en) bendera Rhode Island Lagu kebangsaanRhode Island, It's for Me (en) (1996) Moto«Hope» (4 Mei 1664) Lambang resmiRhode Island Red (en) Nama panggilanThe Ocean State Dinamakan berdasarkanAquidneck Island (en) Tempat Negara berdaulatAmerika Serikat NegaraAmerika Serikat Ibu kotaProvidence, Rhode Island Pembagian administratifBristol County (en) Kent County (en) Newport County (en) Providence County (en) Washington County (en) Pendu...

Biblical figure Peter Returns by Johann Christoph Weigel, 1695. Rhoda is in the upper left of the woodcut. Rhoda (Biblical Greek: Ῥόδη) is a woman mentioned once in the New Testament. She appears only in Acts 12:12–15. Rhoda was the first person to hear Peter after God freed him from prison, but no one believed her account that Peter was at the door because they knew he had been put in prison and couldn't believe that he had actually been freed. Biblical account Rhoda (whose name means...

Kembali kehalaman sebelumnya