markdown
Logic and Truth Tables: Fundamentalsmd 9c08456
lecture/information/discrete-math/logic-and-truth-tables-basics.lecture.n.md
Download PDF

Logic and Truth Tables: Fundamentals

date2026-07-14document_iddoc_2bb9ffe502ca066c76b46a32ec010508description命題論理の結合子、真理値表、論理同値、含意と必要十分条件を日英両言語で体系的に説明する。prerequisites離散数学への導入 / 条件文の読み方 / 表の読み取りtype講義statusactiverelateddata/lecture/information/discrete-math/introduction-to-discrete-mathematics.lecture.n.md / data/lecture/information/discrete-math/sets-and-maps-basics.lecture.n.md / data/lecture/information/programming/introduction-to-programming.lecture.n.md
informationdiscrete-mathundergraduatelecture

1Introduction

This lecture defines the logical connectives used to construct compound propositions and explains how truth tables determine properties of logical formulas. In particular, it clarifies the direction of implication and the roles of necessary and sufficient conditions.

2Propositions and Truth Values

A {proposition} is a declarative sentence that has exactly one of the two truth values: true or false. We write T when a proposition is true and F when it is false. A question, or a sentence whose truth cannot be determined until a variable is specified, is not itself a proposition.

3Logical Connectives

Let P and Q be propositions.

  • The {negation} [PARSE ERROR: Undefined("Command(\"neg\")")]P has the truth value opposite to that of P.
  • The {conjunction} PQ is true if and only if both P and Q are true.
  • The {disjunction} PQ is true if and only if at least one of P and Q is true. Thus, this inclusive “or” includes the case in which both propositions are true.
  • The {implication} PQ is false if and only if P is true and Q is false. We call P the antecedent and Q the consequent.
  • The {biconditional} PQ is true if and only if P and Q have the same truth value.

4Truth Tables

A {truth table} lists the truth value of a logical formula for every assignment of truth values to its component propositions. The basic formulas involving two propositions are defined by the following table.

\begin{array}{c|c|c|c|c|c} P&Q&P\land Q&P\lor Q&P\to Q&P\leftrightarrow Q\\ \hline \mathrm{T}&\mathrm{T}&\mathrm{T}&\mathrm{T}&\mathrm{T}&\mathrm{T}\\ \mathrm{T}&\mathrm{F}&\mathrm{F}&\mathrm{T}&\mathrm{F}&\mathrm{F}\\ \mathrm{F}&\mathrm{T}&\mathrm{F}&\mathrm{T}&\mathrm{T}&\mathrm{F}\\ \mathrm{F}&\mathrm{F}&\mathrm{F}&\mathrm{F}&\mathrm{T}&\mathrm{T} \end{array}

For PQ, the implication is true in both rows in which the antecedent P is false. This convention reflects that PQ is not an assertion of causation; instead, it states that there is no counterexample in which P is true while Q is false.

5Tautologies, Contradictions, and Logical Equivalence

A {tautology} is a formula that is true under every assignment of truth values. A {contradiction} is a formula that is false under every assignment. For example, P[PARSE ERROR: Undefined("Command(\"neg\")")]P is a tautology, whereas P[PARSE ERROR: Undefined("Command(\"neg\")")]P is a contradiction.

Two formulas A and B are {logically equivalent}, written AB, if they have the same truth value under every assignment. Equivalently, AB is a tautology. For example, implication satisfies

PQ[PARSE ERROR: Undefined("Command(\"neg\")")]PQ.

6Direction of Implication and Necessary and Sufficient Conditions

In PQ, P is a {sufficient condition} for Q, and Q is a {necessary condition} for P. That is, the truth of P guarantees the truth of Q, and Q must be true whenever P is true.

The statement QP is the {converse} of PQ and, in general, does not follow from the original implication. In contrast, [PARSE ERROR: Undefined("Command(\"neg\")")]Q[PARSE ERROR: Undefined("Command(\"neg\")")]P is its {contrapositive}, and

PQ[PARSE ERROR: Undefined("Command(\"neg\")")]Q[PARSE ERROR: Undefined("Command(\"neg\")")]P.

For conditions P(x) and Q(x) containing a variable, if both P(x)Q(x) and Q(x)P(x) hold for every object x under consideration, then P(x)Q(x) is a tautology, and P(x) is a {necessary and sufficient condition} for Q(x). The fact that both implications are true under one particular truth-value assignment does not establish this relationship.

7Example

For an integer n, let P(n) mean “n is divisible by 4,” and let Q(n) mean “n is even.” Until n is specified, P(n) and Q(n) are not propositions; they are {predicates} that assign truth values to integers. The implication P(n)Q(n) holds for every integer n, so divisibility by 4 is sufficient for being even. In contrast, Q(2) is true and P(2) is false, so n=2 is a counterexample to Q(n)P(n).

8Key Points

  • The meanings of logical connectives are determined by truth tables, not by informal impressions of natural-language expressions.
  • A tautology is true in every row of its truth table, whereas a contradiction is false in every row.
  • Logical equivalence means agreement under every assignment of truth values.
  • In PQ, P is sufficient and Q is necessary; the converse must not be confused with the contrapositive.

9Related Links

data/lecture/information/discrete-math/introduction-to-discrete-mathematics.lecture.n.md data/lecture/information/discrete-math/sets-and-maps-basics.lecture.n.md
raw .n.md をコピー
loc をコピー (filepath:line ~ line)
copy share link
copy encoded share link
path をコピー
copy share link
copy encoded share link
copy share link
copy encoded share link
タブを全て閉じる