Jump to content

Truth table

From Wikiversity

☞ This page belongs to resource collections on Logic and Inquiry.

A truth table is a tabular array that illustrates the computation of a logical function, that is, a function of the form f:𝔸k→𝔸, where k is a non-negative integer and 𝔸 is the domain of logical values {false⁡,true⁡}. The names of the logical values, or truth values, are commonly abbreviated in accord with the equations F⁡=false and T⁡=true⁡.

In many applications it is usual to represent a truth function by a boolean function, that is, a function of the form f:𝔹k→𝔹, where k is a non-negative integer and 𝔹 is the boolean domain {0,1}. In most applications false is represented by 0 and true is represented by 1 but the opposite representation is also possible, depending on the overall representation of truth functions as boolean functions. The remainder of this article assumes the usual representation, taking the equations F⁡=0 and T⁡=1 for granted.

Logical negation

[edit | edit source]

Logical negation is an operation on one logical value, typically the value of a proposition, that produces a value of true when its operand is false and a value of false when its operand is true.

The truth table of NOT⁡p, also written ¬p, appears below:


Logical Negation
p ¬p
F T
T F


The negation of a proposition p may be found notated in various ways in various contexts of application, often merely for typographical convenience. Among these variants are the following:


Variant Notations
Notation Vocalization
p¯ p bar
p~ p tilde
p′ p prime
p complement
!p bang p


Logical conjunction

[edit | edit source]

Logical conjunction is an operation on two logical values, typically the values of two propositions, that produces a value of true if and only if both of its operands are true.

The truth table of pAND⁡q, also written p∧q or p⋅q, appears below:


Logical Conjunction
p q p∧q
F F F
F T F
T F F
T T T


Logical disjunction

[edit | edit source]

Logical disjunction, also called logical alternation, is an operation on two logical values, typically the values of two propositions, that produces a value of false if and only if both of its operands are false.

The truth table of pOR⁡q, also written p∨q, appears below:


Logical Disjunction
p q p∨q
F F F
F T T
T F T
T T T


Logical equality

[edit | edit source]

Logical equality is an operation on two logical values, typically the values of two propositions, that produces a value of true if and only if both operands are false or both operands are true.

The truth table of pEQ⁡q, also written p=q, p⇔q, or p≡q, appears below:


Logical Equality
p q p=q
F F T
F T F
T F F
T T T


Exclusive disjunction

[edit | edit source]

Exclusive disjunction, also known as logical inequality or symmetric difference, is an operation on two logical values, typically the values of two propositions, that produces a value of true just in case exactly one of its operands is true.

The truth table of pXOR⁡q, also written p+q or p≠q, appears below:


Exclusive Disjunction
p q pXOR⁡q
F F F
F T T
T F T
T T F


The following equivalents may then be deduced:

p+q=(p∧¬q)∨(¬p∧q)=(p∨q)∧(¬p∨¬q)=(p∨q)∧¬(p∧q)

Logical implication

[edit | edit source]

The logical implication relation and the material conditional function are both associated with an operation on two logical values, typically the values of two propositions, that produces a value of false if and only if the first operand is true and the second operand is false.

The truth table associated with the material conditional ifpthenq, symbolized p→q, and the logical implication pimpliesq, symbolized p⇒q, appears below:


Logical Implication
p q p⇒q
F F T
F T T
T F F
T T T


Logical NAND

[edit | edit source]

The logical NAND is an operation on two logical values, typically the values of two propositions, that produces a value of false if and only if both of its operands are true. In other words, it produces a value of true if and only if at least one of its operands is false.

The truth table of pNAND⁡q, also written p⋏∘q or p⊼q, appears below:


Logical NAND
p q p⋏∘q
F F T
F T T
T F T
T T F


Logical NNOR

[edit | edit source]

The logical NNOR (“Neither Nor”) is an operation on two logical values, typically the values of two propositions, that produces a value of true if and only if both of its operands are false. In other words, it produces a value of false if and only if at least one of its operands is true.

The truth table of pNNOR⁡q, also written p⋏q, appears below:


Logical NNOR
p q p⋏q
F F T
F T F
T F F
T T F


Translations

[edit | edit source]

Syllabus

[edit | edit source]

Focal nodes

[edit | edit source]

Peer nodes

[edit | edit source]

Logical operators

[edit | edit source]

[edit | edit source]

Relational concepts

[edit | edit source]

Information, Inquiry

[edit | edit source]

[edit | edit source]

Document history

[edit | edit source]

Portions of the above article were adapted from the following sources under the GNU Free Documentation License, under other applicable licenses, or by permission of the copyright holders.