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

Well-formed formula

In mathematical logic, propositional logic and predicate logic, a well-formed formula, abbreviated WFF or wff, often simply formula, is a finite sequence of symbols from a given alphabet that is part of a formal language.[1]

The abbreviation wff is pronounced "woof",[2][3][4][5] or sometimes[6] "wiff",[7][8][9], "weff",[10][11] or "whiff".[12]

A formal language can be identified with the set of formulas in the language. A formula is a syntactic object that can be given a semantic meaning by means of an interpretation. Two key uses of formulas are in propositional logic and predicate logic.

Introduction

A key use of formulas is in propositional logic and predicate logic such as first-order logic. In those contexts, a formula is a string of symbols φ for which it makes sense to ask "is φ true?", once any free variables in φ have been instantiated. In formal logic, proofs can be represented by sequences of formulas with certain properties, and the final formula in the sequence is what is proven.

Although the term "formula" may be used for written marks (for instance, on a piece of paper or chalkboard), it is more precisely understood as the sequence of symbols being expressed, with the marks being a token instance of formula. This distinction between the vague notion of "property" and the inductively-defined notion of well-formed formula has roots in Weyl's 1910 paper "Uber die Definitionen der mathematischen Grundbegriffe".[13] Thus the same formula may be written more than once, and a formula might in principle be so long that it cannot be written at all within the physical universe.

Formulas themselves are syntactic objects. They are given meanings by interpretations. For example, in a propositional formula, each propositional variable may be interpreted as a concrete proposition, so that the overall formula expresses a relationship between these propositions. A formula need not be interpreted, however, to be considered solely as a formula.

Propositional calculus

The formulas of propositional calculus, also called propositional formulas,[14] are expressions such as . Their definition begins with the arbitrary choice of a set V of propositional variables. The alphabet consists of the letters in V along with the symbols for the propositional connectives and parentheses "(" and ")", all of which are assumed to not be in V. The formulas will be certain expressions (that is, strings of symbols) over this alphabet.

The formulas are inductively defined as follows:

  • Each propositional variable is, on its own, a formula.
  • If φ is a formula, then ¬φ is a formula.
  • If φ and ψ are formulas, and • is any binary connective, then ( φ • ψ) is a formula. Here • could be (but is not limited to) the usual operators ∨, ∧, →, or ↔.

This definition can also be written as a formal grammar in Backus–Naur form, provided the set of variables is finite:

<alpha set> ::= p | q | r | s | t | u | ... (the arbitrary finite set of propositional variables)
<form> ::= <alpha set> | ¬<form> | (<form><form>) | (<form><form>) | (<form><form>) | (<form><form>)

Using this grammar, the sequence of symbols

(((pq) ∧ (rs)) ∨ (¬q ∧ ¬s))

is a formula, because it is grammatically correct. The sequence of symbols

((pq)→(qq))p))

is not a formula, because it does not conform to the grammar.

A complex formula may be difficult to read, owing to, for example, the proliferation of parentheses. To alleviate this last phenomenon, precedence rules (akin to the standard mathematical order of operations) are assumed among the operators, making some operators more binding than others. For example, assuming the precedence (from most binding to least binding) 1. ¬   2. →  3. ∧  4. ∨. Then the formula

(((pq) ∧ (rs)) ∨ (¬q ∧ ¬s))

may be abbreviated as

pqrs ∨ ¬q ∧ ¬s

This is, however, only a convention used to simplify the written representation of a formula. If the precedence was assumed, for example, to be left-right associative, in following order: 1. ¬   2. ∧  3. ∨  4. →, then the same formula above (without parentheses) would be rewritten as

(p → (qr)) → (s ∨ (¬q ∧ ¬s))

Predicate logic

The definition of a formula in first-order logic is relative to the signature of the theory at hand. This signature specifies the constant symbols, predicate symbols, and function symbols of the theory at hand, along with the arities of the function and predicate symbols.

The definition of a formula comes in several parts. First, the set of terms is defined recursively. Terms, informally, are expressions that represent objects from the domain of discourse.

  1. Any variable is a term.
  2. Any constant symbol from the signature is a term
  3. an expression of the form f(t1,...,tn), where f is an n-ary function symbol, and t1,...,tn are terms, is again a term.

The next step is to define the atomic formulas.

  1. If t1 and t2 are terms then t1=t2 is an atomic formula
  2. If R is an n-ary predicate symbol, and t1,...,tn are terms, then R(t1,...,tn) is an atomic formula

Finally, the set of formulas is defined to be the smallest set containing the set of atomic formulas such that the following holds:

  1. is a formula when is a formula
  2. and are formulas when and are formulas;
  3. is a formula when is a variable and is a formula;
  4. is a formula when is a variable and is a formula (alternatively, could be defined as an abbreviation for ).

If a formula has no occurrences of or , for any variable , then it is called quantifier-free. An existential formula is a formula starting with a sequence of existential quantification followed by a quantifier-free formula.

Atomic and open formulas

An atomic formula is a formula that contains no logical connectives nor quantifiers, or equivalently a formula that has no strict subformulas. The precise form of atomic formulas depends on the formal system under consideration; for propositional logic, for example, the atomic formulas are the propositional variables. For predicate logic, the atoms are predicate symbols together with their arguments, each argument being a term.

According to some terminology, an open formula is formed by combining atomic formulas using only logical connectives, to the exclusion of quantifiers.[15] This is not to be confused with a formula which is not closed.

Closed formulas

A closed formula, also ground formula or sentence, is a formula in which there are no free occurrences of any variable. If A is a formula of a first-order language in which the variables v1, …, vn have free occurrences, then A preceded by v1 ⋯ ∀vn is a universal closure of A.

Properties applicable to formulas

  • A formula A in a language is valid if it is true for every interpretation of .
  • A formula A in a language is satisfiable if it is true for some interpretation of .
  • A formula A of the language of arithmetic is decidable if it represents a decidable set, i.e. if there is an effective method which, given a substitution of the free variables of A, says that either the resulting instance of A is provable or its negation is.

Usage of the terminology

In earlier works on mathematical logic (e.g. by Church[16]), formulas referred to any strings of symbols and among these strings, well-formed formulas were the strings that followed the formation rules of (correct) formulas.

Several authors simply say formula.[17][18][19][20] Modern usages (especially in the context of computer science with mathematical software such as model checkers, automated theorem provers, interactive theorem provers) tend to retain of the notion of formula only the algebraic concept and to leave the question of well-formedness, i.e. of the concrete string representation of formulas (using this or that symbol for connectives and quantifiers, using this or that parenthesizing convention, using Polish or infix notation, etc.) as a mere notational problem.

The expression "well-formed formulas" (WFF) also crept into popular culture. WFF is part of an esoteric pun used in the name of the academic game "WFF 'N PROOF: The Game of Modern Logic", by Layman Allen,[21] developed while he was at Yale Law School (he was later a professor at the University of Michigan). The suite of games is designed to teach the principles of symbolic logic to children (in Polish notation).[22] Its name is an echo of whiffenpoof, a nonsense word used as a cheer at Yale University made popular in The Whiffenpoof Song and The Whiffenpoofs.[23]

See also

Notes

  1. ^ Formulas are a standard topic in introductory logic, and are covered by all introductory textbooks, including Enderton (2001), Gamut (1990), and Kleene (1967)
  2. ^ Gensler, Harry (2002-09-11). Introduction to Logic. Routledge. p. 35. ISBN 978-1-134-58880-0.
  3. ^ Hall, Cordelia; O'Donnell, John (2013-04-17). Discrete Mathematics Using a Computer. Springer Science & Business Media. p. 44. ISBN 978-1-4471-3657-6.
  4. ^ Agler, David W. (2013). Symbolic Logic: Syntax, Semantics, and Proof. Rowman & Littlefield. p. 41. ISBN 978-1-4422-1742-3.
  5. ^ Simpson, R. L. (2008-03-17). Essentials of Symbolic Logic - Third Edition. Broadview Press. p. 14. ISBN 978-1-77048-495-5.
  6. ^ All sources supported "woof". The sources cited for "wiff", "weff", and "whiff" gave these pronunciations as alternatives to "woof". The Gensler source gives "wood" and "woofer" as examples of how to pronounce the vowel in "woof".
  7. ^ Laderoute, Karl (2022-10-24). A Pocket Guide to Formal Logic. Broadview Press. p. 59. ISBN 978-1-77048-868-7.
  8. ^ Maurer, Stephen B.; Ralston, Anthony (2005-01-21). Discrete Algorithmic Mathematics, Third Edition. CRC Press. p. 625. ISBN 978-1-56881-166-6.
  9. ^ Martin, Robert M. (2002-05-06). The Philosopher's Dictionary - Third Edition. Broadview Press. p. 323. ISBN 978-1-77048-215-9.
  10. ^ Date, Christopher (2008-10-14). The Relational Database Dictionary, Extended Edition. Apress. p. 211. ISBN 978-1-4302-1042-9.
  11. ^ Date, C. J. (2015-12-21). The New Relational Database Dictionary: Terms, Concepts, and Examples. "O'Reilly Media, Inc.". p. 241. ISBN 978-1-4919-5171-2.
  12. ^ Simpson, R. L. (1998-12-10). Essentials of Symbolic Logic. Broadview Press. p. 12. ISBN 978-1-55111-250-3.
  13. ^ W. Dean, S. Walsh, The Prehistory of the Subsystems of Second-order Arithmetic (2016), p.6
  14. ^ First-order logic and automated theorem proving, Melvin Fitting, Springer, 1996 [1]
  15. ^ Handbook of the history of logic, (Vol 5, Logic from Russell to Church), Tarski's logic by Keith Simmons, D. Gabbay and J. Woods Eds, p568 [2].
  16. ^ Alonzo Church, [1996] (1944), Introduction to mathematical logic, page 49
  17. ^ Hilbert, David; Ackermann, Wilhelm (1950) [1937], Principles of Mathematical Logic, New York: Chelsea
  18. ^ Hodges, Wilfrid (1997), A shorter model theory, Cambridge University Press, ISBN 978-0-521-58713-6
  19. ^ Barwise, Jon, ed. (1982), Handbook of Mathematical Logic, Studies in Logic and the Foundations of Mathematics, Amsterdam: North-Holland, ISBN 978-0-444-86388-1
  20. ^ Cori, Rene; Lascar, Daniel (2000), Mathematical Logic: A Course with Exercises, Oxford University Press, ISBN 978-0-19-850048-3
  21. ^ Ehrenburg 2002
  22. ^ More technically, propositional logic using the Fitch-style calculus.
  23. ^ Allen (1965) acknowledges the pun.

References

External links

Read other articles:

  Hámsteres enanos Rango temporal: Desde el Pleistoceno Hámster ruso enanoTaxonomíaReino: AnimaliaFilo: ChordataClase: MammaliaOrden: RodentiaSuborden: MyomorphaSuperfamilia: MuroideaFamilia: CricetidaeSubfamilia: CricetinaeGénero: PhodopusMiller, 1910Especies Phodopus campbelli Phodopus roborovskii Phodopus sungorus [editar datos en Wikidata] Phodopus es un género de roedores miomorfos. Junto con los hámsteres, ratas campestres, lemmings y ratones de las Américas están in…

Dickinson v DoddsCourtCourt of Appeal, Divisional Court, Chancery DivisionCitation(s)(1876) 2 Ch D 463KeywordsOffer and acceptance Dickinson v Dodds (1876) 2 Ch D 463 is an English contract law case heard by the Court of Appeal, Chancery Division, which held that notification by a third party of an offer's withdrawal is effective just like a withdrawal by the person who made an offer. The significance of this case to many students of contract law is that a promise to keep an offer open (an optio…

This article is about Xenophon's state party formed in 2017. For his former state electoral ticket active until 2013, see No Pokies. Political party in Australia SA-BEST FoundedMay 2017 (as Nick Xenophon's SA-BEST)Registered4 July 2017IdeologySocial liberalismPolitical positionCentreColours    Orange and blackSloganReal change you can trustSA Legislative Council2 / 22Websitesabest.org.auPolitics of AustraliaPolitical partiesElections SA-Best (stylised SA-BEST), formerly known …

Restaurant at Disneyland Paris This article does not cite any sources. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: L'Auberge de Cendrillon – news · newspapers · books · scholar · JSTOR (June 2023) (Learn how and when to remove this template message) L'Auberge de CendrillonDisneyland Park (Paris)AreaFantasylandStatusOperatingOpening dateApril 12, 1992 Ride statisti…

Cet article est une ébauche concernant une localité de Castille-et-León. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Peralejos de Arriba Église paroissiale de Saint-Julien Administration Pays Espagne Communauté autonome Castille-et-León Province Province de Salamanque Comarque Tierra de Vitigudino District judic. Vitigudino Maire Mandat Gregorio Rodríguez (PP) 2015 Code postal 37216 Démographie Populatio…

У Вікіпедії є статті про інші географічні об’єкти з назвою Помона. Селище Помонаангл. Pomona Координати 41°11′ пн. ш. 74°03′ зх. д. / 41.183° пн. ш. 74.050° зх. д. / 41.183; -74.050Координати: 41°11′ пн. ш. 74°03′ зх. д. / 41.183° пн. ш. 74.050° зх. …

Cet article est une ébauche concernant un chanteur italien. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Gioacchino ContiGioacchino ContiBiographieNaissance 28 février 1714ArpinoDécès 25 octobre 1761 (à 47 ans)RomeActivités Artiste lyrique, acteurAutres informationsTessiture Sopranomodifier - modifier le code - modifier Wikidata Gioacchino Conti, dit Il Gizziello, né à Arpino le 28 février 1714 et m…

Constantin Wilhelm Albert Müller Plaats uw zelfgemaakte foto hier Land/zijde Duitse Rijk Onderdeel Deutsches Heer Rang Generalleutnant Bevel 11. Landwehr-Infanterie-Brigade (26-02-1915) Slagen/oorlogen Eerste Wereldoorlog Constantin Wilhelm Albert Müller was een Duits militair die vocht in de Eerste Wereldoorlog. Hij bracht het tot de hoge rang van een Generalleutnant. De Duitse keizer en Pruisisch koning Wilhelm II verleende hem de IIIe Klasse van de Orde van de Rode Adelaar en bevorderde hem…

Voor de gelijknamige televisieserie, zie Rupel (televisieserie). Rupel De Rupel bij Wintam Lengte 12 km Bron Dijle en Nete Monding Schelde Stroomgebied Schelde Afvloeiing via Schelde - Westerschelde - Noordzee Portaal    Geografie Locatie Monding van de Rupel en Kanaal Brussel-Schelde te Wintam De Rupel stroomopwaarts van de kanaalsluis met in de eerste meander het dorp Terhagen (Rumst) De Rupel is een korte, 12 km lange zijrivier van de Schelde die ter hoogte van Rumst ontstaat d…

Ancient Roman virtue For other uses, see Dignitas (disambiguation). This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) 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: Dignitas Roman concept – news · newspapers · book…

This article is about the academic discipline. For experimental studies using animals, see Animal testing. For other uses, see Animal studies (disambiguation). Painting titled Pastoral Study from the Smithsonian American Art Museum. Painting is by artist Albert Pinkham Ryder from 1897. Animal studies is a recently recognised field in which animals are studied in a variety of cross-disciplinary ways. Scholars who engage in animal studies may be formally trained in a number of diverse fields, incl…

This article does not cite any sources. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Ting River – news · newspapers · books · scholar · JSTOR (June 2019) (Learn how and when to remove this template message) River in ChinaTing RiverNative name汀江 (Chinese)LocationCountryChinaPhysical characteristicsLength300 kilometres (190 mi) Nanxi Creek, an (eve…

Elena Sedina in der Frauenbundesliga 2011/12 Verband Sowjetunion Sowjetunion (bis 1991)Ukraine Ukraine (1991 bis 2001)Italien Italien (seit 2001) Geboren 1. Juni 1968Kiew Titel Internationaler Meister der Frauen (1990)Großmeister der Frauen (1996)Internationaler Meister (1999) Aktuelle Elo‑Zahl 2160 (Dezember 2023) Beste Elo‑Zahl 2434 (April 2003) Karteikarte bei der FIDE (englisch) Elena Sedina (* 1. Juni 1968 in Kiew) ist eine italienische Schachspielerin ukrain…

لا يزال النص الموجود في هذه الصفحة في مرحلة الترجمة إلى العربية. إذا كنت تعرف اللغة المستعملة، لا تتردد في الترجمة. (أبريل 2019) هجوم فيستولا - الأودر جزء من الحرب السوفيتية الألمانية  معلومات عامة التاريخ 12 يناير – 2 فبراير 1945 الموقع بولندا الوسطى وشرق ألمانيا النتيجة نصر …

Supermercados Teloloapan logo Supermercado Teloloapan #7 in Gulfton, Houston Supermercados Teloloapan (Teloloapan Supermarkets) is a chain of supermarkets located in Texas, with its headquarters in Houston,[1] and with locations in Greater Houston and Dallas-Fort Worth. As of 2008 there are nine supermarkets, with most of them being located in Hispanic neighborhoods.[2] Patricia Pedraza, in the Hablando entre Lenguas (Speaking between languages) column of Hoy Tamaulipas (Tamaulip…

إغلاق كشمير 2019 جزء من التمرد في جامو وكشمير ونزاع كشمير قانون إعادة تنظيم جامو وكشمير 2019 التاريخ 5 أغسطس 2019 - مستمرة المكان جامو وكشمير34°02′00″N 74°40′00″E / 34.0333°N 74.6667°E / 34.0333; 74.6667  الأسباب إلغاء الهند وضع جامو وكشمير الخاص المظاهر حظر التجول وانقطاع الاتصالات

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

У этого термина существуют и другие значения, см. 9-я дивизия.9-я пехотная дивизияфр. 9e division d'infanterie Годы существования 25 декабря 1811 – 7 ноября 1813 Страна Французская империя Входит в Великая Армия (1811–1813) Тип Пехотная дивизия Включает в себя Полки лёгкой и линейной пехоты Ч…

Municipal unit in Lezhë, AlbaniaZejmenMunicipal unitZejmenCoordinates: 41°43′N 19°41′E / 41.717°N 19.683°E / 41.717; 19.683Country AlbaniaCountyLezhëMunicipalityLezhëPopulation (2011) • Municipal unit5,660Time zoneUTC+1 (CET) • Summer (DST)UTC+2 (CEST) Zejmen is a village and a former municipality in the Lezhë County, northwestern Albania. At the 2015 local government reform it became a subdivision of the municipality Lezhë.&…

Untuk kegunaan lain, lihat Trans (disambiguasi). Halaman ini berisi artikel tentang kondisi kehilangan kesadaran atau perubahan kesadaran secara umum. Untuk kerasukan setan, lihat kerasukan. Untuk jaringan televisi swasta nasional di Indonesia, lihat Trans TV. Artikel ini bukan mengenai trans yang merupakan singkatan dari transgender. TransInformasi umumSpesialisasiPsikiatri Oracle di Delphi yang terkenal karena sihir transnya di dunia Mediterania kuno. Lukisan cat minyak, John Collier, 1891 Tra…

Kembali kehalaman sebelumnya

Lokasi Pengunjung: 3.149.26.83