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.
Click a symbol to copy it.
Connectives
These join statements to make new statements. Each one is defined by a truth table.
| Symbol | Name | Say it | Example | Also written | LaTeX | Keyboard |
|---|---|---|---|---|---|---|
| Negation | not p | Β¬p is true exactly when p is false. | ~ ! | \neg | ~p | |
| Conjunction | p and q | p β§ q is true only when both are true. | Β· & | \land | p & q | |
| Disjunction (inclusive or) | p or q, or both | p β¨ q is false only when both are false. | \lor | p v q | ||
| Exclusive or | p or q, but not both | p β q is true when exactly one is true. | β» | \oplus | p xor q | |
| Conditional | if p, then q | p β q is false only when p is true and q is false. | β | \to | p -> q | |
| Biconditional | p if and only if q | p β q is true when p and q have the same truth value. | β‘ | \leftrightarrow | p <-> q | |
| Nand (the Sheffer stroke) | not both p and q | p β q means Β¬(p β§ q). Every other connective can be built from it. | | | \uparrow | p nand q | |
| Nor (Peirceβs arrow) | neither p nor q | p β q means Β¬(p β¨ q). | \downarrow | p nor q | ||
| Top (the true) | true | A statement that is always true, such as p β¨ Β¬p. | T 1 | \top | T | |
| Bottom (the false) | false; a contradiction | A statement that is never true, such as p β§ Β¬p. | F 0 | \bot | F |
Quantifiers and identity
These say how many things a statement is true of.
| Symbol | Name | Say it | Example | Also written | LaTeX | Keyboard |
|---|---|---|---|---|---|---|
| Universal quantifier | for all x; for every x | βx (Dx β Mx): every dog is a mammal. | (x) | \forall | for all x | |
| Existential quantifier | there is an x; for some x | βx (Dx β§ Bx): some dog barks. | \exists | there is x | ||
| Unique existence | there is exactly one x | β!x (x + 3 = 5): exactly one number works. | \exists! | exactly one x | ||
| Non-existence | there is no x | βx (xΒ² = β1) among the real numbers. | Β¬β | \nexists | no x | |
| Identity | a is the same thing as b | a = b: βaβ and βbβ name one object. | = | a = b | ||
| Non-identity | a is not b | a β b means Β¬(a = b). | \neq | a != 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.
| Symbol | Name | Say it | Example | Also written | LaTeX | Keyboard |
|---|---|---|---|---|---|---|
| Therefore | therefore | p β q, p β΄ q. | \therefore | therefore | ||
| Because | because | q, β΅ p and p β q. | \because | because | ||
| Turnstile (provability) | proves; q can be derived from p | p, p β q β’ q: there is a proof of q from those premises. | \vdash | |- | ||
| Double turnstile (entailment) | entails; q is true whenever p is | p β§ q β¨ p: no case makes the left side true and the right side false. | \models | |= | ||
| Does not prove | does not prove | p β¨ q β¬ p. | \nvdash | |/- | ||
| Does not entail | does not entail | p β¨ q β p: p can be false while p β¨ q is true. | \nvDash | |/= | ||
| Implies | implies | x > 2 β xΒ² > 4. Many authors use it as another way to write β. | \Rightarrow | => | ||
| Logical equivalence | is equivalent to | Β¬(p β§ q) β Β¬p β¨ Β¬q (De Morgan). | β‘ | \Leftrightarrow | <=> | |
| Definition | is defined as | p β q β Β¬(p β§ q). | β | := | := | |
| End of proof | which was to be shown | Placed at the end of a finished proof. | β‘ QED | \blacksquare | QED |
Sets
Logic and sets go together: βandβ matches intersection, βorβ matches union, and βnotβ matches the complement.
| Symbol | Name | Say it | Example | Also written | LaTeX | Keyboard |
|---|---|---|---|---|---|---|
| Element of | x is in A | 3 β {1, 2, 3}. | \in | x in A | ||
| Not an element of | x is not in A | 4 β {1, 2, 3}. | \notin | x not in A | ||
| Subset | A is contained in B | {1, 2} β {1, 2, 3}. Every set is a subset of itself. | \subseteq | A sub B | ||
| Proper subset | A is contained in B and is not all of B | {1, 2} β {1, 2, 3}. Some authors use β for any subset. | β | \subset | ||
| Intersection | A and B; what they share | {1, 2} β© {2, 3} = {2}. | \cap | A n B | ||
| Union | A or B; everything in either | {1, 2} βͺ {2, 3} = {1, 2, 3}. | \cup | A u B | ||
| Set difference | A without B | {1, 2, 3} β {2} = {1, 3}. | β | \setminus | A \ B | |
| Empty set | the set with nothing in it | {1, 2} β© {3, 4} = β . | { } | \emptyset | {} |
Necessity and possibility
Modal logic adds two symbols for what must be so and what could be so.
| Symbol | Name | Say it | Example | Also written | LaTeX | Keyboard |
|---|---|---|---|---|---|---|
| Necessity | necessarily p | β‘p: p is true in every possible case. | \Box | []p | ||
| Possibility | possibly p | βp means Β¬β‘Β¬p: p is true in at least one possible case. | \Diamond | <>p |
Often seen alongside
These come from mathematics, not logic, but turn up in the same lists. One of them, the tilde, has two jobs.
| Symbol | Name | Say it | Example | Also written | LaTeX | Keyboard |
|---|---|---|---|---|---|---|
| Tilde | not p (in logic); is similar to, or is asymptotic to (in mathematics) | βΌp in older logic books is Β¬p. | \sim | ~ | ||
| Approximately equal | is about | Ο β 3.14. | \approx | ~= | ||
| Proportional to | is proportional to | For 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
- Symbolic Logic, the course: translation, truth tables, proofs and quantifiers, with practice.
- The five connectives and the quantifiers, where most of these symbols are first taught.
- Discrete Math, for logic and sets in a math setting.
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.