Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Logical disjunction

From Wikipedia, the free encyclopedia
(Redirected fromDisjunction)
Logical connective OR
"Disjunction" redirects here. For the logic gate, seeOR gate. For separation of chromosomes, seeMeiosis. For disjunctions in distribution, seeDisjunct distribution.
"Logical OR" redirects here. For the operator, seeVertical bars (disambiguation).
Logical disjunction
OR
Venn diagram of Logical disjunction
Definitionx+y{\displaystyle x+y}
Truth table(1110){\displaystyle (1110)}
Logic gate
Normal forms
Disjunctivex+y{\displaystyle x+y}
Conjunctivex+y{\displaystyle x+y}
Zhegalkin polynomialxyxy{\displaystyle x\oplus y\oplus xy}
Post's lattices
0-preservingyes
1-preservingyes
Monotoneyes
Affineno
Self-dualno
Logical connectives
NOT¬A,A,A¯,A{\displaystyle \neg A,-A,{\overline {A}},\sim A}
ANDAB,AB,AB,A & B,A && B{\displaystyle A\land B,A\cdot B,AB,A\ \&\ B,A\ \&\&\ B}
NANDA¯B,AB,AB,AB¯{\displaystyle A{\overline {\land }}B,A\uparrow B,A\mid B,{\overline {A\cdot B}}}
ORAB,A+B,AB,AB{\displaystyle A\lor B,A+B,A\mid B,A\parallel B}
NORA¯B,AB,A+B¯{\displaystyle A{\overline {\lor }}B,A\downarrow B,{\overline {A+B}}}
XNORAB,A¯B¯{\displaystyle A\odot B,{\overline {A{\overline {\lor }}B}}}
equivalentAB,AB,AB{\displaystyle A\equiv B,A\Leftrightarrow B,A\leftrightharpoons B}
XORA_B,AB{\displaystyle A{\underline {\lor }}B,A\oplus B}
└nonequivalentAB,AB,AB{\displaystyle A\not \equiv B,A\not \Leftrightarrow B,A\nleftrightarrow B}
impliesAB,AB,AB{\displaystyle A\Rightarrow B,A\supset B,A\rightarrow B}
nonimplication (NIMPLY)AB,AB,AB{\displaystyle A\not \Rightarrow B,A\not \supset B,A\nrightarrow B}
converseAB,AB,AB{\displaystyle A\Leftarrow B,A\subset B,A\leftarrow B}
converse nonimplicationAB,AB,AB{\displaystyle A\not \Leftarrow B,A\not \subset B,A\nleftarrow B}
Related concepts
Applications
Category
Venn diagram ofABC{\displaystyle \scriptstyle A\lor B\lor C}

Inlogic,disjunction, also known aslogical disjunction orlogical or orlogical addition orinclusive disjunction, is alogical connective typically notated as{\displaystyle \lor } and read aloud as "or". For instance, theEnglish language sentence "it is sunny or it is warm" can be represented in logic using the disjunctive formulaSW{\displaystyle S\lor W}, assuming thatS{\displaystyle S} abbreviates "it is sunny" andW{\displaystyle W} abbreviates "it is warm".

Inclassical logic, disjunction is given atruth functional semantics according to which a formulaϕψ{\displaystyle \phi \lor \psi } is true unless bothϕ{\displaystyle \phi } andψ{\displaystyle \psi } are false. Because this semantics allows a disjunctive formula to be true when both of its disjuncts are true, it is aninclusive interpretation of disjunction, in contrast withexclusive disjunction. Classicalproof theoretical treatments are often given in terms of rules such asdisjunction introduction anddisjunction elimination. Disjunction has also been given numerousnon-classical treatments, motivated by problems includingAristotle's sea battle argument,Heisenberg'suncertainty principle, as well as the numerous mismatches between classical disjunction and its nearest equivalents innatural languages.[1][2]

Anoperand of a disjunction is adisjunct.[3]

Inclusive and exclusive disjunction

[edit]

Because the logicalor means a disjunction formula is true when either one or both of its parts are true, it is referred to as aninclusive disjunction. This is in contrast with anexclusive disjunction, which is true when one or the other of the arguments are true, but not both (referred to asexclusive or, orXOR).

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

Notation

[edit]

In logic and related fields, disjunction is customarily notated with an infix operator{\displaystyle \lor } (UnicodeU+2228 LOGICAL OR).[1] Alternative notations include+{\displaystyle +}, used mainly inelectronics, as well as|{\displaystyle \vert } and||{\displaystyle \vert \!\vert } in manyprogramming languages. The English wordor is sometimes used as well, often in capital letters. InJan Łukasiewicz'sprefix notation for logic, the operator isA{\displaystyle A}, short for Polishalternatywa (English: alternative).[4]

In mathematics, the disjunction of an arbitrary number of elementsa1,,an{\displaystyle a_{1},\ldots ,a_{n}} can be denoted as aniterated binary operation using a larger ⋁ (UnicodeU+22C1 N-ARY LOGICAL OR):[5]

i=1nai=a1a2an1an{\displaystyle \bigvee _{i=1}^{n}a_{i}=a_{1}\lor a_{2}\lor \ldots a_{n-1}\lor a_{n}}

Classical disjunction

[edit]

Semantics

[edit]

In thesemantics of logic, classical disjunction is atruth functionaloperation which returns thetruth valuetrue unless both of its arguments arefalse. Its semantic entry is standardly given as follows:[a]

ϕψ{\displaystyle \models \phi \lor \psi }     if    ϕ{\displaystyle \models \phi }     or    ψ{\displaystyle \models \psi }     or     both

This semantics corresponds to the followingtruth table:[1]

A{\displaystyle A}B{\displaystyle B}AB{\displaystyle A\lor B}
FFF
FTT
TFT
TTT

Defined by other operators

[edit]

Inclassical logic systems where logical disjunction is not a primitive, it can be defined in terms of the primitiveand ({\displaystyle \land }) andnot (¬{\displaystyle \lnot }) as:

AB=¬((¬A)(¬B)){\displaystyle A\lor B=\neg ((\neg A)\land (\neg B))}.

Alternatively, it may be defined in terms ofimplies ({\displaystyle \to }) andnot as:[6]

AB=(¬A)B{\displaystyle A\lor B=(\lnot A)\to B}.

The latter can be checked by the following truth table:

A{\displaystyle A}B{\displaystyle B}¬A{\displaystyle \neg A}¬AB{\displaystyle \neg A\rightarrow B}AB{\displaystyle A\lor B}
FFTFF
FTTTT
TFFTT
TTFTT

It may also be defined solely in terms of{\displaystyle \to }:

AB=(AB)B{\displaystyle A\lor B=(A\to B)\to B}.

It can be checked by the following truth table:

A{\displaystyle A}B{\displaystyle B}AB{\displaystyle A\rightarrow B}(AB)B{\displaystyle (A\rightarrow B)\rightarrow B}AB{\displaystyle A\lor B}
FFTFF
FTTTT
TFFTT
TTTTT


Properties

[edit]

The following properties apply to disjunction:

(a(bc))((ab)(ac)){\displaystyle (a\lor (b\land c))\equiv ((a\lor b)\land (a\lor c))}
(a(bc))((ab)(ac)){\displaystyle (a\lor (b\lor c))\equiv ((a\lor b)\lor (a\lor c))}
(a(bc))((ab)(ac)){\displaystyle (a\lor (b\equiv c))\equiv ((a\lor b)\equiv (a\lor c))}
(ab)((ac)(bc)){\displaystyle (a\rightarrow b)\rightarrow ((a\lor c)\rightarrow (b\lor c))}
  • Truth-preserving: The interpretation under which all variables are assigned atruth value of 'true', produces a truth value of 'true' as a result of disjunction.
  • Falsehood-preserving: The interpretation under which all variables are assigned atruth value of 'false', produces a truth value of 'false' as a result of disjunction.

Applications in computer science

[edit]
[icon]
This sectionneeds expansion. You can help byadding to it.(February 2021)
ORlogic gate

Operators corresponding to logical disjunction exist in mostprogramming languages.

Bitwise operation

[edit]

Disjunction is often used forbitwise operations. Examples:

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

Theor operator can be used to set bits in abit field to 1, byor-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

[edit]

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

Logical disjunction is usuallyshort-circuited; that is, if the first (left) operand evaluates totrue, then the second (right) operand is not evaluated. The logical disjunction operator thus usually constitutes asequence 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 theparallel or.

Although the type of a logical disjunction expression is Boolean in most languages (and thus can only have the valuetrue orfalse), in some languages (such asPython andJavaScript), 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 theElvis operator.

Constructive disjunction

[edit]

TheCurry–Howard correspondence relates aconstructivist form of disjunction totagged union types.[citation needed][10]

Set theory

[edit]
[icon]
This sectionneeds expansion. You can help byadding to it.(February 2021)

Themembership of an element of aunion set inset theory is defined in terms of a logical disjunction:xAB(xA)(xB){\displaystyle x\in A\cup B\Leftrightarrow (x\in A)\vee (x\in B)}. Because of this, logical disjunction satisfies many of the same identities as set-theoretic union, such asassociativity,commutativity,distributivity, andde Morgan's laws, identifyinglogical conjunction withset intersection,logical negation withset complement.[11]

Natural language

[edit]

Disjunction innatural languages does not precisely match the interpretation of{\displaystyle \lor } 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 anentailment, for instance byAlfred Tarski, who suggested that natural language disjunction isambiguous between a classical and a nonclassical interpretation. More recent work inpragmatics has shown that this inference can be derived as aconversational implicature on the basis of asemantic denotation which behaves classically. However, disjunctive constructions includingHungarianvagy... vagy andFrenchsoit... 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 asfree choice disjunction andsimplification of disjunctive antecedents, where certainmodal operators trigger aconjunction-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.
{\displaystyle \rightsquigarrow } You can have an apple and you can have a pear (but you cannot 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 apolar question asking whether it's true that Mary is either a philosopher or a linguist, it can also be interpreted as analternative question asking which of the two professions is hers. The role of disjunction in these cases has been analyzed using nonclassical logics such asalternative semantics andinquisitive 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 acoordinating conjunction. Other languages express disjunctive meanings in a variety of ways, though it is unknown whether disjunction itself is alinguistic universal. In many languages such asDyirbal andMaricopa, disjunction is marked using a verbsuffix. 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

[edit]

Notes

[edit]
  1. ^For the sake of generality across classical systems, this entry suppresses the parameters of evaluation. Thedouble turnstilesymbol{\displaystyle \models } 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 oflogical addition in a form that does not necessitate mutual exclusiveness.

References

[edit]
  1. ^abcdefghAloni, Maria (2016),"Disjunction", in Zalta, Edward N. (ed.),The Stanford Encyclopedia of Philosophy (Winter 2016 ed.), Metaphysics Research Lab, Stanford University, retrieved2020-09-03
  2. ^"Disjunction | logic".Encyclopedia Britannica. Retrieved2020-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. Retrieved24 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". Retrieved25 Dec 2023.
  9. ^"JavaScript References - Expressions & Operators - Logical AND (&&)". 25 September 2023. Retrieved25 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.

External links

[edit]
General
Theorems (list)
 and paradoxes
Logics
Traditional
Propositional
Predicate
Set theory
Types ofsets
Maps and cardinality
Set theories
Formal systems (list),
language and syntax
Example axiomatic
systems
 (list)
Proof theory
Model theory
Computability theory
Related
Central concepts
Topics
Areas
Phenomena
Formalism
Formal systems
Concepts
See also
Authority control databases: NationalEdit this at Wikidata
Retrieved from "https://en.wikipedia.org/w/index.php?title=Logical_disjunction&oldid=1284828423"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp