Information about Logical Operator
In logic, a logical connective, also called a truth-functional connective, ' logical operator or propositional operator, is a logical constant which represents a syntactic operation on a sentence, or the symbol for such an operation that corresponds to an operation on the logical values of those sentences. A logical connective serves to produce a compound sentence from one or two other sentences. The truth value of the resultant compound sentence is determined by the truth-values(s) of the one or two other sentences. Consequently a logical connective can be seen as a function which when applied to sentences as arguments whose values are True or False returns in turn the value True or False; consequently logical connectives are called truth-functional connectives.
For example the statements, "it is raining," and, "I am indoors", can be reformed using various different connectives to form sentences that relate the two in ways which augment their meaning:
- :* It is raining and I am indoors. (Conjunction (and))
- :* If it is raining then I am indoors. (Material implication (if...then))
- :* It is raining if I am indoors. (Biconditional (xnor) )
- :* It is raining if and only if I am indoors. (Biconditional (xnor) )
- :* It is not the case that it is raining. (Negation (not))
If we write 'P' for 'It is raining' and 'Q' for 'I am indoors' and we use the usual symbols for logical connectives, then the above examples could be represent in symbols like this:
- : P&Q (It is raining and I am indoors.)
- : P
Q (If it is raining then I am indoors.)
- : Q
P (It is raining if I am indoors.)
- : P
Q (It is raining if and only if I am indoors.)
- :¬P (It is not the case that it is raining.)
The basic logical operators are :
|
Some others are: |
Definitions
Truth tables
| p | q | T | ? | ? | ~p | ? | ~q | ![]() |
? | ? | ![]() |
q | ? | p | ? | & | F |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| T | T | T | F | T | F | T | F | T | F | T | F | T | F | T | F | T | F |
| T | F | T | T | F | F | T | T | F | F | T | T | F | F | T | T | F | F |
| F | T | T | T | T | T | F | F | F | F | T | T | T | T | F | F | F | F | F || F || T || T || T || T || T || T || T || T || F || F || F || F || F || F || F || F |
Venn diagrams
The binary logical operators may be expressed as Venn diagrams. The white area of each figure corresponds to "true" and the black to "false".The above arrangement of Venn Diagrams is from The Geometry of Logic.
Note the similarity between the symbols for "and" (
) and set-theoretic intersection (
); likewise for "or" (
) and set-theoretic union (
). This is not a coincidence: the definition of the intersection uses "and" and the definition of union uses "or".
Functional completeness
Not all of these operators are necessary for a functionally complete logical calculus. Certain compound statements are logically equivalent. For example, ¬P ∨ Q is logically equivalent to P → Q;. So the conditional operator "→" is not necessary if you have "¬" (not) and "∨" (or).The smallest set of operators which still expresses every statement which is expressible in the propositional calculus is called a minimal functionally complete set. A minimally complete set of operators is achieved by NAND alone { ↓ } and NOR alone { ↑ }.
All and only the following are functionally complete sets of operators:
{ ↓ }, { ↑ }, {
,
}, {
,
}, {
, ⊂ },
{
, ⊄ },
{
,
},
{
, ⊅ },
{ ⊄,
},
{ ⊂,
},
{ ⊅,
},
{ ⊂, ⊄ },
{
,
},
{ ⊂, ⊅ },
{
,
},
{ ⊄,
},
{ ⊅,
}
Properties
The logical connectives each possess different set of properties which may be expressed in the theorems containing the connective. Some of those properties that a logical connective may have are:- Associativity: Within an expression containing two or more of the same associative operators in a row, the order of the operations does not matter as long as the sequence of the operands is not changed.
- Commutivity: Each pair of variables connected by the operator may be exchanged for each other without affecting the truth-value of the expression.
- Distributivity:
- Idempotency:
- Absorption:
- monotonic : If f(a1, ... , an) ≤ f(b1, ... , bn) for all a1, ... , an
{0,1} such that a1 ≤ b1, a2 ≤ b2, ... , an ≤ bn {
,
,
,
}
- linear : Each variable always makes a difference in the truth-value of the operation or it never makes a difference {
,
,
,
,
}
- self dual : To read the truth-value assignments for the operation from top to bottom on its truth table is the same as taking the compliment of reading it from bottom to top. {
}
- 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 these operations. {
,
,
,
,
, ⊂ }
- 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 these operations. {
,
,
,
, ⊄, ⊅ }
Arity
In two-valued logic there are 4 unary operators, 16 binary operators, and 256 ternary operators. In three valued logic there are 9 unary operators, 19683 binary operators, and 7625597484987 ternary operators."Not" is a unary operator, it takes a single term (¬P). The rest are binary operators, taking two terms to make a compound statement (P
Q, P
Q, P → Q, P ↔ Q).
The set of logical operators
may be partitioned into disjoint subsets as follows:
- ::

In this partition,
is the set of operator symbols of arity
.
In the more familiar propositional calculi,
is typically partitioned as follows:
- ::nullary operators:

- ::unary operators:

- ::binary operators:

Order of precedence
As a way of reducing the number of necessary parentheses, one may introduce precedence rules: ¬ has higher precedence than ∧, ∧ higher than ∨, and ∨ higher than →. So for example, P ∨ Q ∧ ¬R → S is short for (P ∨ (Q ∧ (¬R))) → S.Here is a table that shows the usual precedence of logical operators.
| Operator | Precedence |
|---|---|
| ¬ | 1 |
![]() | 2 |
![]() | 3 |
| → | 4 |
| ↔ | 5 |
The order of precedence determines which connective is the "main connective" when interpreting a molecular formula.
Applications in computer science
Logical operators are implemented as logic gates in digital circuits. Practically all digital circuits (the major exception is DRAM) are built up from NAND, NOR, NOT, and transmission gates. NAND and NOR gates with 3 or more inputs rather than the usual 2 inputs are fairly common, although they are logically equivalent to a cascade of 2-input gates. All other operators are implemented by breaking them down into a logically equivalent combination of 2 or more of the above logic gates.The "logical equivalence" of "NAND alone", "NOR alone", and "NOT and AND" is similar to Turing equivalence.
Is some new technology (such as reversible computing, clockless logic, or quantum dots computing) "functionally complete", in that it can be used to build computers that can do all the sorts of computation that CMOS-based computers can do? If it can implement the NAND operator, only then is it functionally complete.
That fact that all logical connectives can be expressed with NOR alone is demonstrated by the Apollo guidance computer.
References
See also
Logic (from Classical Greek λόγος logos; meaning word, thought, idea, argument, account, reason, or principle) is the study of the principles and criteria of valid inference and demonstration.
..... Click the link for more information.
..... Click the link for more information.
In symbolic logic, a logical constant is a symbol that has the same semantic value in all models. Two important types of logical constants are logical connectives and quantifiers.
..... Click the link for more information.
..... Click the link for more information.
In mathematical logic, a sentence of a predicate logic is a formula with no free variables. A sentence is viewed by some as expressing a proposition. It makes an assertion, potentially concerning any structure of L.
..... Click the link for more information.
..... Click the link for more information.
In logic and mathematics, a logical value, also called a truth value, is a value indicating the extent to which a proposition is true.
In classical logic, the only possible truth values are true and false.
..... Click the link for more information.
In classical logic, the only possible truth values are true and false.
..... Click the link for more information.
In logic and/or mathematics, logical conjunction or and is a two-place logical operation that results in a value of true if both of its operands are true, otherwise a value of false!
..... Click the link for more information.
Definition
Logical conjunction..... Click the link for more information.
The material conditional, also known as the material implication or truth functional conditional, expresses a property of certain conditionals in logic. In propositional logic, it expresses a binary truth function ⊃ from truth-values to truth-values.
..... Click the link for more information.
..... Click the link for more information.
In logic and mathematics, logical biconditional (sometimes also known as the material biconditional) is a logical operator connecting two statements to assert, p if and only if q where p is a hypothesis (or antecedent) and
..... Click the link for more information.
..... Click the link for more information.
In logic and mathematics, logical biconditional (sometimes also known as the material biconditional) is a logical operator connecting two statements to assert, p if and only if q where p is a hypothesis (or antecedent) and
..... Click the link for more information.
..... Click the link for more information.
For other uses, see .
In logic and mathematics, negation or not is an operation on logical values, for example, the logical value of a proposition, that sends true to false and false to true.
..... Click the link for more information.
For other uses, see .
In logic and mathematics, negation or not is an operation on logical values, for example, the logical value of a proposition, that sends true to false and false to true.
..... Click the link for more information.
In logic and/or mathematics, logical conjunction or and is a two-place logical operation that results in a value of true if both of its operands are true, otherwise a value of false!
..... Click the link for more information.
Definition
Logical conjunction..... Click the link for more information.
or, also known as logical disjunction or inclusive disjunction is a logical operator that results in true whenever one or more of its operands are true. In grammar, or is a coordinating conjunction.
..... Click the link for more information.
..... Click the link for more information.
The material conditional, also known as the material implication or truth functional conditional, expresses a property of certain conditionals in logic. In propositional logic, it expresses a binary truth function ⊃ from truth-values to truth-values.
..... Click the link for more information.
..... Click the link for more information.
In logic and mathematics, logical biconditional (sometimes also known as the material biconditional) is a logical operator connecting two statements to assert, p if and only if q where p is a hypothesis (or antecedent) and
..... Click the link for more information.
..... Click the link for more information.
exclusive disjunction, also called exclusive or, (symbolized XOR or EOR), is a type of logical disjunction on two operands that results in a value of "true" if and only if exactly one of the operands has a value of "true.
..... Click the link for more information.
..... Click the link for more information.
logical nor or joint denial is a boolean logic operator which produces a result that is the inverse of logical or. That is, (not or), p NOR q is only true when both p and q are false.
..... Click the link for more information.
..... Click the link for more information.
The Sheffer stroke, written "|" or "↑", in the subject matter of boolean functions, propositional calculus, sentential calculus, or zeroth order logic denotes a logical operation that is equivalent to the negation of the conjunction operation, expressed in ordinary
..... Click the link for more information.
..... Click the link for more information.
material nonimplication is the negation of implication. p⊅q
p q ?
T T F
T F T
F T F
F F F
..... Click the link for more information.
Definition
Truth table
p q ?
T T F
T F T
F T F
F F F
Venn diagram
The Venn Diagram of "It's not the case that A implies B"Properties
..... Click the link for more information.
In logic, converse nonimplication is a logical connective which is the negation of the converse of implication.
..... Click the link for more information.
Definition
p⊄q which is the same as ~(p ← q)Truth table
The truth table of p ⊄ q...... Click the link for more information.
Converse implication is the converse of implication. It takes the following forms:
p q ?
T T T
T F T
F T F
F F T
..... Click the link for more information.
- p⊂q
- p←q
Definition
Truth table
The truth table of p⊂qp q ?
T T T
T F T
F T F
F F T
Venn diagram
..... Click the link for more information.
In propositional logic, a tautology (from the Greek word ταυτολογία) is a sentence that is true in every valuation (also called interpretation) of its propositional variables, independent of the truth values assigned to these
..... Click the link for more information.
..... Click the link for more information.
In logic, a contradiction consists of a logical incompatibility between two or more propositions. It occurs when the propositions, taken together, yield two conclusions which form the logical inversions of each other.
..... Click the link for more information.
..... Click the link for more information.
Venn diagrams are illustrations used in the branch of mathematics known as set theory. They show all of the possible mathematical or logical relationships between sets (groups of things).
..... Click the link for more information.
..... Click the link for more information.
In mathematics, the intersection of two sets A and B is the set that contains all elements of A that also belong to B (or equivalently, all elements of B that also belong to A), but no other elements.
..... Click the link for more information.
..... Click the link for more information.
In set theory and other branches of mathematics, the union of a collection of sets is the set that contains everything that belongs to any of the sets, but nothing else.
..... Click the link for more information.
Basic definition
If A and B are sets, then the union of A and B..... Click the link for more information.
In logic, a set S of logical connectives is functionally complete if every logical connective can be defined in terms of the connectives of S.
Most logics found in modern textbooks take as primitive the connectives conjunction (), disjunction (), negation (), implication ()
..... Click the link for more information.
Most logics found in modern textbooks take as primitive the connectives conjunction (), disjunction (), negation (), implication ()
..... Click the link for more information.
In logic, statements p and q are logically equivalent if they have the same logical content.
Syntactically, p and q are equivalent if each can be proved from the other.
..... Click the link for more information.
Syntactically, p and q are equivalent if each can be proved from the other.
..... Click the link for more information.
In logic and mathematics, a propositional calculus (or a sentential calculus) is a formal system in which formulas representing propositions can be formed by combining atomic propositions using logical connectives, and a system of formal proof rules
..... Click the link for more information.
..... Click the link for more information.
associativity is a property that a binary operation can have. It means that, within an expression containing two or more of the same associative operators in a row, the order of operations does not matter as long as the sequence of the operands is not changed.
..... Click the link for more information.
..... Click the link for more information.
Commutativity is a widely used mathematical term that refers to the ability to change the order of something without changing the end result. It is a fundamental property in most branches of mathematics and many proofs depend on it.
..... Click the link for more information.
..... Click the link for more information.
This article is copied from an article on Wikipedia.org - the free encyclopedia created and edited by online user community. The text was not checked or edited by anyone on our staff. Although the vast majority of the wikipedia encyclopedia articles provide accurate and timely information please do not assume the accuracy of any particular article. This article is distributed under the terms of GNU Free Documentation License.
Herod_Archelaus
or
)