Logical disjunction

Logical disjunction
OR
Venn diagram of Logical disjunction
Definition
Truth table
Logic gate
Normal forms
Disjunctive
Conjunctive
Zhegalkin polynomial
Post's lattices
0-preservingyes
1-preservingyes
Monotoneyes
Affineno
Self-dualno
Venn diagram of

In logic, disjunction, also known as logical disjunction or logical or or logical addition or inclusive disjunction, is a logical connective typically notated as and read aloud as "or". For instance, the English language sentence "it is sunny or it is warm" can be represented in logic using the disjunctive formula , assuming that abbreviates "it is sunny" and abbreviates "it is warm".

In classical logic, disjunction is given a truth functional semantics according to which a formula is true unless both and are false. Because this semantics allows a disjunctive formula to be true when both of its disjuncts are true, it is an inclusive interpretation of disjunction, in contrast with exclusive disjunction. Classical proof theoretical treatments are often given in terms of rules such as disjunction introduction and disjunction elimination. Disjunction has also been given numerous non-classical treatments, motivated by problems including Aristotle's sea battle argument, Heisenberg's uncertainty principle, as well as the numerous mismatches between classical disjunction and its nearest equivalents in natural languages.[1][2]

An operand of a disjunction is a disjunct.[3]

Inclusive and exclusive disjunction

Because the logical or means a disjunction formula is true when either one or both of its parts are true, it is referred to as an inclusive disjunction. This is in contrast with an exclusive disjunction, which is true when one or the other of the arguments are true, but not both (referred to as exclusive or, or XOR).

When it is necessary to clarify whether inclusive or exclusive or is intended, English speakers sometimes uses the phrase and/or. In terms of logic, this phrase is identical to or, but makes the inclusion of both being true explicit.

Notation

In logic and related fields, disjunction is customarily notated with an infix operator (Unicode U+2228 LOGICAL OR).[1] Alternative notations include , used mainly in electronics, as well as and in many programming languages. The English word or is sometimes used as well, often in capital letters. In Jan Łukasiewicz's prefix notation for logic, the operator is , short for Polish alternatywa (English: alternative).[4]

In mathematics, the disjunction of an arbitrary number of elements can be denoted as an iterated binary operation using a larger ⋁ (Unicode U+22C1 N-ARY LOGICAL OR):[5]

Classical disjunction

Semantics

In the semantics of logic, classical disjunction is a truth functional operation which returns the truth value true unless both of its arguments are false. Its semantic entry is standardly given as follows:[a]

    if         or         or     both

This semantics corresponds to the following truth table:[1]

FFF
FTT
TFT
TTT

Defined by other operators

In classical logic systems where logical disjunction is not a primitive, it can be defined in terms of the primitive and () and not () as:

.

Alternatively, it may be defined in terms of implies () and not as:[6]

.

The latter can be checked by the following truth table:

FFTFF
FTTTT
TFFTT
TTFTT

It may also be defined solely in terms of :

.

It can be checked by the following truth table:

FFTFF
FTTTT
TFFTT
TTTTT


Properties

The following properties apply to disjunction:

  • Associativity: [7]
  • Commutativity:
  • Distributivity:
  • Idempotency:
  • Monotonicity:
  • Truth-preserving: The interpretation under which all variables are assigned a truth value of 'true', produces a truth value of 'true' as a result of disjunction.
  • Falsehood-preserving: The interpretation under which all variables are assigned a truth value of 'false', produces a truth value of 'false' as a result of disjunction.

Applications in computer science

OR logic gate

Operators corresponding to logical disjunction exist in most programming languages.

Bitwise operation

Disjunction is often used for bitwise operations. Examples:

  • 0 or 0 = 0
  • 0 or 1 = 1
  • 1 or 0 = 1
  • 1 or 1 = 1
  • 1010 or 1100 = 1110

The or operator can be used to set bits in a bit field to 1, by or-ing the field with a constant field with the relevant bits set to 1. For example, x = x | 0b00000001 will force the final bit to 1, while leaving other bits unchanged.[citation needed]

Logical operation

Many languages distinguish between bitwise and logical disjunction by providing two distinct operators; in languages following C, bitwise disjunction is performed with the single pipe operator (|), and logical disjunction with the double pipe (||) operator.

Logical disjunction is usually short-circuited; that is, if the first (left) operand evaluates to true, then the second (right) operand is not evaluated. The logical disjunction operator thus usually constitutes a sequence point.

In a parallel (concurrent) language, it is possible to short-circuit both sides: they are evaluated in parallel, and if one terminates with value true, the other is interrupted. This operator is thus called the parallel or.

Although the type of a logical disjunction expression is Boolean in most languages (and thus can only have the value true or false), in some languages (such as Python and JavaScript), the logical disjunction operator returns one of its operands: the first operand if it evaluates to a true value, and the second operand otherwise.[8][9] This allows it to fulfill the role of the Elvis operator.

Constructive disjunction

The Curry–Howard correspondence relates a constructivist form of disjunction to tagged union types.[citation needed][10]

Set theory

The membership of an element of a union set in set theory is defined in terms of a logical disjunction: . Because of this, logical disjunction satisfies many of the same identities as set-theoretic union, such as associativity, commutativity, distributivity, and de Morgan's laws, identifying logical conjunction with set intersection, logical negation with set complement.[11]

Natural language

Disjunction in natural languages does not precisely match the interpretation of in classical logic. Notably, classical disjunction is inclusive while natural language disjunction is often understood exclusively, as the following English example typically would be.[1]

  • Mary is eating an apple or a pear.

This inference has sometimes been understood as an entailment, for instance by Alfred Tarski, who suggested that natural language disjunction is ambiguous between a classical and a nonclassical interpretation. More recent work in pragmatics has shown that this inference can be derived as a conversational implicature on the basis of a semantic denotation which behaves classically. However, disjunctive constructions including Hungarian vagy... vagy and French soit... soit have been argued to be inherently exclusive, rendering ungrammaticality in contexts where an inclusive reading would otherwise be forced.[1]

Similar deviations from classical logic have been noted in cases such as free choice disjunction and simplification of disjunctive antecedents, where certain modal operators trigger a conjunction-like interpretation of disjunction. As with exclusivity, these inferences have been analyzed both as implicatures and as entailments arising from a nonclassical interpretation of disjunction.[1]

  • You can have an apple or a pear.
You can have an apple and you can have a pear (but you can't have both)

In many languages, disjunctive expressions play a role in question formation.

  • Is Mary a philosopher or a linguist?

For instance, while the above English example can be interpreted as a polar question asking whether it's true that Mary is either a philosopher or a linguist, it can also be interpreted as an alternative question asking which of the two professions is hers. The role of disjunction in these cases has been analyzed using nonclassical logics such as alternative semantics and inquisitive semantics, which have also been adopted to explain the free choice and simplification inferences.[1]

In English, as in many other languages, disjunction is expressed by a coordinating conjunction. Other languages express disjunctive meanings in a variety of ways, though it is unknown whether disjunction itself is a linguistic universal. In many languages such as Dyirbal and Maricopa, disjunction is marked using a verb suffix. For instance, in the Maricopa example below, disjunction is marked by the suffix šaa.[1]

Johnš

John-NOM

Billš

Bill-NOM

vʔaawuumšaa

3-come-PL-FUT-INFER

Johnš Billš vʔaawuumšaa

John-NOM Bill-NOM 3-come-PL-FUT-INFER

'John or Bill will come.'

See also

Notes

  1. ^ For the sake of generality across classical systems, this entry suppresses the parameters of evaluation. The double turnstile symbol here is intended to mean "semantically entails".
  • George Boole, closely following analogy with ordinary mathematics, premised, as a necessary condition to the definition of x + y, that x and y were mutually exclusive. Jevons, and practically all mathematical logicians after him, advocated, on various grounds, the definition of logical addition in a form that does not necessitate mutual exclusiveness.

References

  1. ^ a b c d e f g h Aloni, Maria (2016), "Disjunction", in Zalta, Edward N. (ed.), The Stanford Encyclopedia of Philosophy (Winter 2016 ed.), Metaphysics Research Lab, Stanford University, retrieved 2020-09-03
  2. ^ "Disjunction | logic". Encyclopedia Britannica. Retrieved 2020-09-03.
  3. ^ Beall, Jeffrey C. (2010). Logic: the basics (1. publ ed.). London: Routledge. p. 57. ISBN 978-0-203-85155-5.
  4. ^ Józef Maria Bocheński (1959), A Précis of Mathematical Logic, translated by Otto Bird from the French and German editions, Dordrecht, North Holland: D. Reidel, passim.
  5. ^ Weisstein, Eric W. "OR". MathWorld--A Wolfram Web Resource. Retrieved 24 September 2024.
  6. ^ Walicki, Michał (2016). Introduction to Mathematical Logic. WORLD SCIENTIFIC. p. 150. doi:10.1142/9783. ISBN 978-9814343879.
  7. ^ Howson, Colin (1997). Logic with trees: an introduction to symbolic logic. London; New York: Routledge. p. 38. ISBN 978-0-415-13342-5.
  8. ^ "Python 3.12.1 Documentation - The Python Language Reference - 6.11 Boolean operations". Retrieved 25 Dec 2023.
  9. ^ "JavaScript References - Expressions & Operators - Logical AND (&&)". 25 September 2023. Retrieved 25 Dec 2023.
  10. ^ Marcus Vinícius Midena Ramos; de Queiroz, Ruy J. G. B. (2015). "Context-Free Language Theory Formalization". Universidade Federal de Pernambuco: 6. arXiv:1505.00061.
  11. ^ Ebbinghaus, Heinz-Dieter (2021). Einführung in die Mengenlehre (in German) (5 ed.). Springer. p. 32. ISBN 978-3-662-63865-1.

Read other articles:

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 Desember 2022. Park Sang-taeInformasi pribadiTanggal lahir 28 Juli 1986 (umur 37)Tempat lahir Korea SelatanPosisi bermain PenyerangKarier senior*Tahun Tim Tampil (Gol)2008 Roasso Kumamoto * Penampilan dan gol di klub senior hanya dihitung dari liga domestik Par...

 

Untuk kegunaan lain, lihat Bogdanovka (disambiguasi). Peta Holocaust di Ukraina. Ghetto Odessa ditandai dengan warna merah-emas. Lokasi pembantaian Transnistria ditandai dengan tengkorak merah. Bogdanovka adalah sebuah kamp konsentrasi untuk orang-orang Yahudi yang didirikan oleh otoritas Rumania selama Perang Dunia II sebagai bagian dari Holocaust. Kamp ini menjadi saksi terjadinya pembantaian Odessa 1941 yang dilakukan kepada orang-orang Yahudi di Odessa dan kota-kota sekitarnya di Transnis...

 

Bagian dari seriGereja Katolik menurut negara Afrika Afrika Selatan Afrika Tengah Aljazair Angola Benin Botswana Burkina Faso Burundi Chad Eritrea Eswatini Etiopia Gabon Gambia Ghana Guinea Guinea-Bissau Guinea Khatulistiwa Jibuti Kamerun Kenya Komoro Lesotho Liberia Libya Madagaskar Malawi Mali Maroko Mauritania Mauritius Mesir Mozambik Namibia Niger Nigeria Pantai Gading Republik Demokratik Kongo Republik Kongo Rwanda Sao Tome dan Principe Senegal Seychelles Sierra Leone Somalia Somaliland ...

American politician 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: Willard Duncan Vandiver – news · newspapers · books · scholar · JSTOR (March 2016) (Learn how and when to remove this template message) Willard Duncan VandiverFrom The State Historical Society of Missouri Digital CollectionsMember of the U.S...

 

Constituency of Bangladesh's Jatiya Sangsad Chapai Nawabganj-2Constituencyfor the Jatiya SangsadDistrictChapai Nawabganj DistrictDivisionRajshahi DivisionElectorate3,77,051 (2018)Current constituencyCreated1984Party  ALMember(s)Md. Ziaur Rahman← Seat no. 43Seat no. 44Seat no.45 → Chapai Nawabganj-2 is a constituency represented in the Jatiya Sangsad (National Parliament) of Bangladesh since 2023 by Md. Ziaur Rahman of the Bangladesh Awami League. Boundaries The constituency enco...

 

Sebuah kemasan mentega sekali penyajian Kemasan makanan sekali pakai terdiri dari bahan-bahan sekali pakai yang sering ditemukan di restoran makanan cepat saji, restoran makanan beli bawa pulang atau kios dan jasa boga. Bahan penyajian makanan tersebut juga ditujukan untuk piknik dan pesta. Produk penyajian makanan sekali pakai yang umum adalah tempat makan styrofoam, piring, mangkuk, cangkir, alat makan, dan tempat tatakan. Produk tersebut dapat terbuat dari sejumlah bahan yang meliputi plas...

Kurdish nationalist and leader (1903–1979) GeneralMustafa Barzaniمسته‌فا محەمەد بارزانیMela Mustafa BarzanîBarzani in a Republic of Mahabad uniformBorn(1903-03-14)14 March 1903Barzan, Mosul Vilayet, Ottoman EmpireDied1 March 1979(1979-03-01) (aged 75)[1]Washington, D.C., U.S.Burial placeBarzan, Kurdistan RegionOccupation(s)General and politicianTerm1946–1979SuccessorMasoud BarzaniPolitical partyKurdistan Democratic Party (1946–1979)Children10, includin...

 

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: One Day in Your Life album – news · newspapers · books · scholar · JSTOR (June 2019) (Learn how and when to remove this message) 1981 compilation album by Michael JacksonOne Day in Your LifeCompilation album by Michael JacksonReleasedMarch 25, 1981...

 

2016年美國總統選舉 ← 2012 2016年11月8日 2020 → 538個選舉人團席位獲勝需270票民意調查投票率55.7%[1][2] ▲ 0.8 %   获提名人 唐納·川普 希拉莉·克林頓 政党 共和黨 民主党 家鄉州 紐約州 紐約州 竞选搭档 迈克·彭斯 蒂姆·凱恩 选举人票 304[3][4][註 1] 227[5] 胜出州/省 30 + 緬-2 20 + DC 民選得票 62,984,828[6] 65,853,514[6]...

Austrian alpine skier (1928–2022) Dagmar RomRom at the 1950 World ChampionshipsPersonal informationBorn(1928-06-16)16 June 1928Innsbruck, Tyrol, AustriaDied13 October 2022(2022-10-13) (aged 94)Innsbruck, Tyrol, AustriaOccupationAlpine skierSkiing careerDisciplinesDownhill, giant slalom,slalom, combinedClubTS InnsbruckOlympicsTeams1 – (1952)Medals1 (0 gold)World ChampionshipsTeams2 – (1950, 1952)includes OlympicsMedals3 (2 gold) Medal record Women's alpine skiing Representing  ...

 

Overview of sports in Bhutan Part of a series on theCulture of Bhutan History Second Battle of Simtokha Dzong Bhutan War (Duar War) Operation All Clear Military history People Languages Cuisine Religion Art Literature Music Media Radio Television Cinema Sport Monuments World Heritage Sites Symbols Flag Coat of arms National anthem vte Sports in Bhutan comprise both traditional Bhutanese and modern international games. Archery is the national sport in Bhutan.[1] Competitions are held r...

 

Nonfiction literary, radio, and film genre For other uses, see True Crime. True crime is a nonfiction literary, podcast, and film genre in which the author examines a crime and details the actions of people associated with and affected by criminal events. It is a cultural phenomenon that can refer to the promotion of sensationalized and emotionally charged content around the subject of violent crime, for the general public.[1] History Murder pamphlet, 1812 Zhang Yingyu's The Book of S...

FDJ 2010GénéralitésÉquipe Groupama-FDJCode UCI FDJStatut UCI ProTeamPays  FranceSport Cyclisme sur routeEffectif 23 + 3 stagiairesManager général Marc MadiotPalmarèsNombre de victoires 17 (route) + 10 (cyclo-cross)Meilleur coureur UCI Sandy Casar (69e)Classement UCI 22e (Calendrier mondial UCI)La Française des jeux 2009FDJ 2011modifier - modifier le code - modifier Wikidata La saison 2010 de l'équipe cycliste FDJ est la quatorzième de l'équipe. Elle participe au ProTour. Duran...

 

Agustín Gamarra Presidente Constitucional de la República Peruana 19 de diciembre de 1829-19 de diciembre de 1833Vicepresidente Antonio Gutiérrez de la FuentePredecesor José de La MarPresidente Constitucional de la República del Perúdepuesto por Agustín Gamarra mediante un golpe de Estado confabulado con Antonio Gutiérrez de la FuenteSucesor Luis José de OrbegosoPresidente Provisorio de la República del Perúelegido por elecciones de la Convención Nacional del Perú (1833) Provisor...

 

У этого термина существуют и другие значения, см. Группа армий Южная Украина. Регионы, частично или полностью включаемые в состав Южной Украины:  всегда  часто Безлюдные (пустынные) места (Loca deserta) в Южной Украине, в начале XVII века (Ляскоронский, 1898).Европейская Росси...

1950s political reforms by Soviet Premier Khrushchev For other uses, see De-Stalinization (disambiguation). Part of a series onMarxism–Leninism Concepts Administrative-command system Anti-imperialism Anti-revisionism Central planning Soviet-type economic planning Collective farming Collective leadership Commanding heights of the economy Democratic centralism Dialectical logic Dialectical materialism Foco Intensification of the class struggleunder socialism Labor aristocracy Marxist–Lenini...

 

丹後方言話される国 日本地域 京都府北部・丹後地方言語系統 日琉語族 日本語中国方言東山陰方言丹後方言言語コードISO 639-3 —テンプレートを表示 丹後弁(たんごべん)は、京都府北部の丹後地方で話される日本語の方言。舞鶴市も旧丹後国であるが、アクセントや語法に大きな違いがあり、その境界線は宮津市南東部を通っている。以下ではこの境界線より西(京�...

 

Cet article est une ébauche concernant un lac et la Russie. Vous pouvez partager vos connaissances en l’améliorant (comment ?) selon les recommandations des projets correspondants. Lac Irtiach Administration Pays Russie Sujet fédéral Oblast de Tcheliabinsk Géographie Coordonnées 55° 49′ N, 60° 44′ E Superficie 53,5 km2 Longueur 14 km Largeur 5 km Altitude 227 m Profondeur · Maximale 16 m Hydrographie Émissaire(s) Tetcha G...

1952 book by Shepherd Mead For other uses, see How to Succeed in Business Without Really Trying (disambiguation). How to Succeed in Business Without Really Trying First editionAuthorShepherd MeadOriginal titleThe dastard's guide to fame and fortuneLanguageEnglishSubjectMachiavellian office politicsGenreComedyPublisherSimon & SchusterPublication date1952Publication placeUnited StatesMedia typePrint (hardcover)Pages148 ppOCLC541489LC ClassHF5386 .M48 How to Succeed in Busines...

 

Catholic monastic order This article is about monastic order of the Catholic Church. For similar monastic orders of the Eastern Orthodox Church, see Order of Saint Benedict (Orthodox). For similar monastic orders of the Anglican Communion, see Order of St. Benedict (Anglican). For other uses, see Benedictine (disambiguation). O.S.B. redirects here. For other uses, see OSB. Black Monks redirects here. For the Black Friars, see Dominican Order. Not to be confused with OSBM, the Order of St Basi...