The negation symbol is ¬, also called the not sign or logical not symbol: ¬p is true when p is false, and false when p is true. ∼, !, ′, N and a bar say the same in other books.
Read the full guide
Which sign does your course use?
¬ and ∼ come from logic: ∼ is in a paper of Russell’s of 1908, ¬ in one of Heyting’s of 1930. A bar, p̅, is written in circuits and for sets. p′ is read p prime or p complement. ! is code, and Np Polish notation. Keep to the one in your book.
How far ¬ reaches
It binds first: ¬p ∧ q negates only p. With brackets, ¬(p ∧ q), it takes both, and De Morgan’s law gives ¬p ∨ ¬q. Passing a quantifier it turns ∀ into ∃ and ∃ into ∀. Two in a row cancel: ¬¬p ≡ p.
A bar over several characters takes U+0305 after each of them, as in A̅+̅B̅.
Questions and answers
How do you type the not sign?
Windows: hold Alt, type 170 or 0172 on the number pad. Mac, U.S. layout: Option+L. Word: type 00AC, then Alt+X. HTML: ¬. LaTeX: \neg or \lnot.
Is ~ the same as ¬?
In logic, yes. The key types U+007E; the sign made for mathematics is ∼, U+223C, \sim in LaTeX. In C they part: ! is not, and ~ turns over every bit of a number.
What is the negation of an implication in discrete mathematics?
¬(p → q) is p ∧ ¬q: p holds and q fails. It is not ¬p → ¬q. The struck arrow ⇏ says does not imply.
How do you strike out a sign to negate it?
≠, ∉, ⊄ and ∄ are characters of their own. For another sign, type U+0338 after it, as in ∝̸. In LaTeX, write \not before it: \not\propto.
Is ⌐ a negation symbol too?
No. It is the reversed not sign, Alt+169, which Unicode also calls beginning of line. 乛 is no ¬ either: it is a Chinese character.