Skip to content

Logic Symbols

The symbols you meet in logic and in proofs: what each is called, how to say it, an example, and how to type it. Books do not all use the same symbols, so the other common forms are listed too. Here p and q stand for statements, x for a thing, and A and B for sets.

Connectives

These join statements to make new statements. Each one is defined by a truth table.

SymbolNameSay itExampleAlso writtenLaTeXKeyboard
Negationnot p¬p is true exactly when p is false.~ !\neg~p
Conjunctionp and qp ∧ q is true only when both are true.· &\landp & q
Disjunction (inclusive or)p or q, or bothp ∨ q is false only when both are false.\lorp v q
Exclusive orp or q, but not bothp βŠ• q is true when exactly one is true.⊻\oplusp xor q
Conditionalif p, then qp β†’ q is false only when p is true and q is false.βŠƒ\top -> q
Biconditionalp if and only if qp ↔ q is true when p and q have the same truth value.≑\leftrightarrowp <-> q
Nand (the Sheffer stroke)not both p and qp ↑ q means Β¬(p ∧ q). Every other connective can be built from it.|\uparrowp nand q
Nor (Peirce’s arrow)neither p nor qp ↓ q means Β¬(p ∨ q).\downarrowp nor q
Top (the true)trueA statement that is always true, such as p ∨ ¬p.T 1\topT
Bottom (the false)false; a contradictionA statement that is never true, such as p ∧ ¬p.F 0\botF

Quantifiers and identity

These say how many things a statement is true of.

SymbolNameSay itExampleAlso writtenLaTeXKeyboard
Universal quantifierfor all x; for every xβˆ€x (Dx β†’ Mx): every dog is a mammal.(x)\forallfor all x
Existential quantifierthere is an x; for some xβˆƒx (Dx ∧ Bx): some dog barks.\existsthere is x
Unique existencethere is exactly one xβˆƒ!x (x + 3 = 5): exactly one number works.\exists!exactly one x
Non-existencethere is no xβˆ„x (xΒ² = βˆ’1) among the real numbers.Β¬βˆƒ\nexistsno x
Identitya is the same thing as ba = b: β€œa” and β€œb” name one object.=a = b
Non-identitya is not ba β‰  b means Β¬(a = b).\neqa != b

Arguments and proofs

These are not part of a statement. They say something about statements: that one follows from others, or that two always agree.

SymbolNameSay itExampleAlso writtenLaTeXKeyboard
Thereforethereforep β†’ q, p ∴ q.\thereforetherefore
Becausebecauseq, ∡ p and p β†’ q.\becausebecause
Turnstile (provability)proves; q can be derived from pp, p β†’ q ⊒ q: there is a proof of q from those premises.\vdash|-
Double turnstile (entailment)entails; q is true whenever p isp ∧ q ⊨ p: no case makes the left side true and the right side false.\models|=
Does not provedoes not provep ∨ q ⊬ p.\nvdash|/-
Does not entaildoes not entailp ∨ q ⊭ p: p can be false while p ∨ q is true.\nvDash|/=
Impliesimpliesx > 2 β‡’ xΒ² > 4. Many authors use it as another way to write β†’.\Rightarrow=>
Logical equivalenceis equivalent toΒ¬(p ∧ q) ⇔ Β¬p ∨ Β¬q (De Morgan).≑\Leftrightarrow<=>
Definitionis defined asp ↑ q ≔ Β¬(p ∧ q).≝:=:=
End of proofwhich was to be shownPlaced at the end of a finished proof.β–‘ QED\blacksquareQED

Sets

Logic and sets go together: β€œand” matches intersection, β€œor” matches union, and β€œnot” matches the complement.

SymbolNameSay itExampleAlso writtenLaTeXKeyboard
Element ofx is in A3 ∈ {1, 2, 3}.\inx in A
Not an element ofx is not in A4 βˆ‰ {1, 2, 3}.\notinx not in A
SubsetA is contained in B{1, 2} βŠ† {1, 2, 3}. Every set is a subset of itself.\subseteqA sub B
Proper subsetA is contained in B and is not all of B{1, 2} βŠ‚ {1, 2, 3}. Some authors use βŠ‚ for any subset.⊊\subset
IntersectionA and B; what they share{1, 2} ∩ {2, 3} = {2}.\capA n B
UnionA or B; everything in either{1, 2} βˆͺ {2, 3} = {1, 2, 3}.\cupA u B
Set differenceA without B{1, 2, 3} βˆ– {2} = {1, 3}.βˆ’\setminusA \ B
Empty setthe set with nothing in it{1, 2} ∩ {3, 4} = βˆ….{ }\emptyset{}

Often seen alongside

These come from mathematics, not logic, but turn up in the same lists. One of them, the tilde, has two jobs.

SymbolNameSay itExampleAlso writtenLaTeXKeyboard
Tildenot p (in logic); is similar to, or is asymptotic to (in mathematics)∼p in older logic books is ¬p.\sim~
Approximately equalis aboutΟ€ β‰ˆ 3.14.\approx~=
Proportional tois proportional toFor a circle, the circumference ∝ the radius.\propto

Which symbol goes first

Without parentheses, most books read Β¬ first, then ∧, then ∨, then β†’, then ↔. So Β¬p ∧ q β†’ r means ((Β¬p) ∧ q) β†’ r. Books differ on the details, so when in doubt, add parentheses.

Learn to use them

A linked name goes to the lesson that teaches that symbol. The β€œKeyboard” column shows common ways to type a symbol in plain text when the real one is not at hand; they are habits, not standards.