In logic and mathematics, logical disjunction (usual symbol or) is a logical operator that results in true if either of the operands is true.
Informally speaking, a disjunction is an "or statement". For example "John skis or Sally swims" is a disjunction.
Note that in everyday language, use of the word "or" can sometimes mean "either, but not both", for example, "would you like tea or coffee?". In logic, this is called an exclusive disjunction or an exclusive or. When used formally, "or" allows for both parts of the or statement (its disjuncts) to be true ("and/or"), therefore "or" is also called inclusive disjunction. (An everyday example of this meaning would be "damage caused by scratches or dents is chargeable"—since presumably damage caused by scratches AND dents is therefore also chargeable).
Logical disjunction is an operation on two logical values, typically the values of two propositions, that produces a value of false if and only if both of its operands are false.
The truth table of p OR q (also written as p ∨ q) is as follows:
| p | q | p ∨ q |
|---|---|---|
| F | F | F |
| F | T | T |
| T | F | T |
| T | T | T |
More generally a disjunction is a logical formula that can have one or more literals separated only by ORs. A single literal is often considered to be a degenerate disjunction.
The mathematical symbol for logical disjunction varies in the literature. In addition to the word "or", the symbol "∨", deriving from the Latin word vel for "or", is commonly used for disjunction. For example: "A ∨ B " is read as "A or B ". Such a disjunction is false if both A and B are false. In all other cases it is true.
All of the following are disjunctions:
The corresponding operation in set theory is the set-theoretic union.
For more than two inputs, or can be applied to the first two inputs, and then the result can be or'ed with each subsequent input:
Because or is associative, the order of the inputs does not matter: the same result will be obtained regardless of association.
The operator xor is also commutative and therefore the order of the operands is not important:
Note that in computer science the OR operator can be used to set a bit to 1 by OR-ing the bit with 1.
Дизюнкция | Disjunkce | Disjunktion | Disjunktsioon | Disyunción lógica | Disjonction logique | Logika disjungsi | או (לוגיקה) | Логичка дисјункција | Logische disjunctie | 論理和 | Inklusiv disjunksjon | Alternatywa | Disjunção lógica | Disjunkcia (logika) | Дисјункција | Logisk disjunktion | การเลือกเชิงตรรกศาสตร์ | Диз'юнкція (логічна)
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Logical disjunction".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world