Information about Logical Not
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. Intuitively, the negation of a proposition holds exactly when that proposition does not hold. In grammar, not is an adverb which acts as a coordinating conjunction.
Definition
Logical negation is an operation on one logical value, typically the value of a proposition, that produces a value of true when its operand is false and a value of false when its operand is true. So, if statement A is true, then ¬A (pronounced "not A") would therefore be false; and conversely, if ¬A is true, then A would be false.The truth table of ¬p (also written as ~p or NOT p) is as follows:
| p | ~p |
|---|---|
| T | F |
| F | T |
The logical negation of a proposition p is notated in different ways in various contexts of discussion and fields of application. Among these variants are the following:
| Notation | Vocalization |
|---|---|
![]() | bar p |
![]() | p prime, p complement |
![]() | bang p |
No matter how it is notated or symbolized, the logical negation ¬p is read as "it is not the case that p", or usually more simply as "not p".
- Within a system of classical logic, double negation, that is, the negation of the negation of a proposition p, is logically equivalent to the initial proposition p. Expressed in symbolic terms, ¬(¬p) ⇔ p.
- Within a system of intuitionistic logic, however, ¬¬p is a weaker statement than p. On the other hand, the logical equivalence ¬¬¬p ⇔ ¬p remains valid.
Algebraically, logical negation corresponds to the complement in a Boolean algebra (for classical logic) or a Heyting algebra (for intuitionistic logic).
Properties
- distributivity: ~
~
- linear: In Boolean algebra, a linear function is one such that:
{0,1} such that
f(b1, ... , bn) = a0 ⊕ (a1
b1) ⊕ ... ⊕ (an
bn), for all b1, ... , bn
{0,1}.
Another way to express this is that each variable always makes a difference in the truth-value of the operation or it never makes a difference. Negation is a linear logical operator.
- self dual: In Boolean algebra a self dual function is one such that:
{0,1}. Negation is a self dual logical operator.
Computer science
As in mathematics, negation is used in computer science to construct logical statements.if (!(r == t)) { ...statements executed when r does NOT equal t... }
The "!" signifies logical NOT in B, C, and languages with a C-inspired syntax such as C++, Java, JavaScript, Perl, and PHP. "NOT" is the operator used in ALGOL 60, BASIC, and languages with an ALGOL-inspired syntax such as Pascal, Ada, Eiffel, and Seed7. Some languages (C++, Perl, etc.) provide more than one operator for negation. Few languages, like Ratfor, use ¬ for negation. Some modern computers and operating systems will display ¬ as ! on files encoded ASCII.
In computer science there is also bitwise negation. This takes the value given and switches all the binary 1's to 0's and 0's to 1's. See bitwise operation. This is often used to create ones' complement or "~" in C or C++ and two's complement (just simplified to "-" or the negative sign since this is equivalent to taking the arithmetic negative value of the number) as it basically creates the opposite (negative value equivalent) or mathematical complement of the value (where both values are added together they create a whole).
Take the following for example:
Say we wanted to get the absolute (positive equivalent) value of a given integer to following would work as the "-" changes it from negative to positive (we know it is negative because it is true that "x < 0")
unsigned int abs(int x)
{
if (x < 0)
return -x;
else
return x;
}
To demonstrate logical negation:
unsigned int abs(int x)
{
if (!(x < 0))
return x;
else
return -x;
}
Inverting the condition and reversing the outcomes produces code that is logically equivalent to the original code, i.e. will have identical results for any input. (Note that depending on the compiler used, the actual instructions performed by the computer may differ.)
Similarly, the following is equivalent on two's complement machines:
unsigned int abs(int x)
{
if (x<0)
return ((~x) + 1);
else
return x;
}
However, since this relies on the binary representation of integers, it will not work on machines that do not use a two's-complement representation for negative numbers.
References
- Gabbay, Dov, and Wansing, Heinrich, eds., 1999. What is Negation? Kluwer.
- Horn, L., 2001. A Natural History of Negation. Univ. of Chicago Press.
- G. H. von Wright, 1953-59, "On the Logic of Negation", Commentationes Physico-Mathematicae 22.
- Wansing, Heinrich, 2001, "Negation," in Goble, Lou, ed., The Blackwell Guide to Philosophical Logic. Blackwell.
See also
External links
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.
Mathematics (colloquially, maths or math) is the body of knowledge centered on such concepts as quantity, structure, space, and change, and also the academic discipline that studies them. Benjamin Peirce called it "the science that draws necessary conclusions".
..... Click the link for more information.
..... Click the link for more information.
In its simplest meaning in mathematics and logic, an operation is an action or procedure which produces a new value from one or more input values. There are two common types of operations: unary and binary.
..... 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.
proposition is the content of an assertion, that is, it is true-or-false and defined by the meaning of a particular piece of language. The proposition is independent of the of communication.
..... Click the link for more information.
..... Click the link for more information.
True is the adjectival form of truth.
True may also refer to:
In business:
..... Click the link for more information.
True may also refer to:
In business:
- True Corporation, a Thai communications group whose subsidiaries include True Internet, True Move and True Visions
..... Click the link for more information.
True is the adjectival form of truth.
True may also refer to:
In business:
..... Click the link for more information.
True may also refer to:
In business:
- True Corporation, a Thai communications group whose subsidiaries include True Internet, True Move and True Visions
..... Click the link for more information.
Grammar is the study of the rules governing the use of a given natural language, and as such a field of linguistics. Traditionally, grammar included morphology and syntax, in modern linguistics commonly expanded by the subfields of phonetics, phonology, orthography, semantics, and
..... Click the link for more information.
..... Click the link for more information.
adverb is a part of speech. It is any word that modifies any other part of language: verbs, adjectives (including numbers), clauses, sentences and other adverbs, except for nouns; modifiers of nouns are primarily determiners and adjectives.
..... Click the link for more information.
..... Click the link for more information.
conjunction is a part of speech that connects two words, phrases, or clauses together. This definition may overlap with that of other parts of speech, so what constitutes a "conjunction" should be defined for each language.
..... Click the link for more information.
..... Click the link for more information.
Editing of this page by unregistered or newly registered users is currently disabled.
If you are prevented from editing this page, and you wish to make a change, please discuss changes on the talk page, request unprotection, log in, or .
..... Click the link for more information.
If you are prevented from editing this page, and you wish to make a change, please discuss changes on the talk page, request unprotection, log in, or .
..... 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.
proposition is the content of an assertion, that is, it is true-or-false and defined by the meaning of a particular piece of language. The proposition is independent of the of communication.
..... Click the link for more information.
..... Click the link for more information.
A truth table is a mathematical table used in logic — specifically in connection with Boolean algebra, boolean functions, and propositional calculus — to compute the functional values of logical expressions on each of their functional arguments, that is, on each
..... Click the link for more information.
..... Click the link for more information.
Classical logic identifies a class of formal logics that have been most intensively studied and most widely used. They are characterised by a number of properties[1]; non-classical logics are those that lack one or more of these properties, which are:
..... Click the link for more information.
..... 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.
Intuitionistic logic, or constructivist logic, is the symbolic logic system originally developed by Arend Heyting to provide a formal basis for Brouwer's programme of intuitionism.
..... Click the link for more information.
..... Click the link for more information.
In logic and mathematics, logical implication is a logical relation that holds between a set T of formulae and a formula B when every model (or interpretation or valuation) of T is also a model of B.
..... Click the link for more information.
..... 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.
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.
A paraconsistent logic is a logical system that attempts to deal with contradictions in a discriminating way. Alternatively, paraconsistent logic is the subfield of logic that is concerned with studying and developing paraconsistent (or "inconsistency-tolerant") systems of
..... Click the link for more information.
..... 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.
Boolean algebra is an algebraic structure (a collection of elements and operations on them obeying defining axioms) that captures essential properties of both set operations and logic operations.
..... Click the link for more information.
..... Click the link for more information.
In mathematics, Heyting algebras are special partially ordered sets that constitute a generalization of Boolean algebras. Heyting algebras arise as models of intuitionistic logic, a logic in which the law of excluded middle does not in general hold.
..... Click the link for more information.
..... Click the link for more information.
In mathematics, and in particular in abstract algebra, distributivity is a property of binary operations that generalises the distributive law from elementary algebra. For example:
..... Click the link for more information.
- 4 • (2 + 3) = (4 • 2) + (4 • 3).
..... Click the link for more information.
prevew not available
..... Click the link for more information.
..... Click the link for more information.
..... Click the link for more information.
In mathematics, duality has numerous meanings. Generally speaking, dualities translate concepts, theorems or mathematical structures into other concepts, theorems or structures, in a one-to-one fashion.
..... Click the link for more information.
..... Click the link for more information.
..... Click the link for more information.
Computer science, or computing science, is the study of the theoretical foundations of information and computation and their implementation and application in computer systems.
..... 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


