Skip to content

Instantly share code, notes, and snippets.

@cky26
Created October 23, 2021 09:58
Show Gist options
  • Save cky26/58b28f011d512de1620719517dd7c0d4 to your computer and use it in GitHub Desktop.
Save cky26/58b28f011d512de1620719517dd7c0d4 to your computer and use it in GitHub Desktop.
Truth table for the 16 logical operators

Logical Operators

# 0x0 0x1 1x0 1x1 Logic Simple Gate Alt Venn Symbols
[L] 0 0 1 1
[R] 0 1 0 1
0 0 0 0 0 Contradiction 0 FALSE Venn0000
1 0 0 0 1 Conjunction L and R AND MIN Venn0001
2 0 0 1 0 Non-Implication L and !R NIMPLY GT Venn0010 ↛ >
3 0 0 1 1 Projection / Proposition of R L BUF Venn0011
4 0 1 0 0 Converse Non-Implication !L and R LT Venn0100 ↚ <
5 0 1 0 1 Projection / Proposition of L R BUF Venn0101
6 0 1 1 0 Exclusive Disjonction L xor R XOR NEQ Venn0110 ↮ ⊻ ≠ ⊕
7 0 1 1 1 Disjonction L or R OR MAX Venn0111
8 1 0 0 0 Joint Denial !L or !R NOR Venn1000 ⊽ ↓
9 1 0 0 1 Biconditional !( L xor R ) XNOR EQ Venn1001 ↔ = ≡
A 1 0 1 0 Negation of L !R NOT Venn1010 ¬
B 1 0 1 1 Converse Implication L or !R GTE Venn1011 ← ≥
C 1 1 0 0 Negation of R !R NOT Venn1100 ¬
D 1 1 0 1 Implication !L or R IMPLY LTE Venn1101 → ≤ ⊃
E 1 1 1 0 Alternative Denial !L and !R NAND Venn1110 ⊼ ↑
F 1 1 1 1 Tautology 1 TRUE Venn1111
[L] 0 0 1 1
[R] 0 1 0 1

Legend:

  • Italic for Non-Binary Operatiors
  • Bold for Commutative Operators

More on Wikipedia…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment