Set Theory & Logic Codexery

Negation

Last updated

In logic, negation is also called the logical not or logical complement.[1] Turkish high school math textbooks use p' for negation due to books handed out by the Ministry of National Education.[1] The MathWorld entry notes that negation is often called "NOT -" and can be denoted with a negation sign.[2] A University of Toronto worked example explains that if a statement is true, its negation is false, and vice versa.[3]

That same source provides rules for negating compound statements: the negation of "A or B" is "not A and not B"[3] The negation of "A and B" is "not A or not B"[3] The negation of "if A, then B" is "A and not B"[3] When negating statements with "for all," the phrase is replaced with "there exists"[3]

In programming, double negation (!!x) is used in C to convert a value to a canonical Boolean of 0 or 1.[4][5] The exclamation mark ! is used as computer slang for negation, such as in the phrase !clue meaning "clueless".[6]

What the cited sources add

The MathWorld entry lists examples of things to try with negation, such as "AND 5 dice" and "d/dx"[2] A Slate Magazine article explains that Wikipedia uses the !vote expression to negate majority rule, aiming for consensus-building discussion based on argument strength.[7][8] The Dev Notes article states that in C and C++, double negation is often used to convert a value to a boolean.[5]

References

  1. Wikipedia, "Negation" (CC BY-SA 4.0), which cites: Virtually all Turkish high school math textbooks use p' for negation due to the books handed out by the Ministry of National Education representing it as p'.; "NEGATION definition and meaning Collins English Dictionary", www.collinsdictionary.com, 2025-12-15 (original not read by us) en.wikipedia.org
  2. Weisstein, "Negation", mathworld.wolfram.com. facts only, no text reused. mathworld.wolfram.com
  3. "Logic and Mathematical Statements - Worked Examples", www.math.toronto.edu. facts only, no text reused. math.toronto.edu
  4. Wikipedia, "Negation" (CC BY-SA 4.0), which cites: Egan, "Double Negation Operator Convert to Boolean in C", Dev Notes (we also read that source) en.wikipedia.org
  5. Egan, "Double Negation Operator Convert to Boolean in C", Dev Notes. facts only, no text reused. dev-notes.eu
  6. Wikipedia, "Negation" (CC BY-SA 4.0), which cites: Raymond, Eric and Steele, Guy. The New Hacker's Dictionary, p. 18 (MIT Press 1996).; Munat, Judith. Lexical Creativity, Texts and Context, p. 148 (John Benjamins Publishing, 2007). (original not read by us) en.wikipedia.org
  7. Harrison, Stephen. "Wikipedia's War on the Daily Mail", Slate Magazine (July 1, 2021).. facts only, no text reused. slate.com
  8. Wikipedia, "Negation" (CC BY-SA 4.0), which cites: Harrison, Stephen. "Wikipedia's War on the Daily Mail", Slate Magazine (July 1, 2021).; Harrison, Stephen. "Wikipedia's War on the Daily Mail", Slate Magazine (July 1, 2021). (we also read that source) en.wikipedia.org

Each numbered sentence above was checked against the source it cites before publication. Sentences citing Wikipedia adapt text from the English Wikipedia article Negation (contributors), used under CC BY-SA 4.0; this entry is available under the same licence. Other sources were used for facts only; no text or images are copied from them.

More in Set Theory & Logic

Sources

Compiled from Wikipedia and the sources listed below. Text from Wikipedia is available under CC BY-SA 4.0; this entry is adapted from it.

Spotted an error? Know more?

Reader corrections go straight into our review queue. Suggest an edit · How this site is sourced

Comments

Loading…
Open in the interactive codex →