∴Logic WikiA library of reasoningSearch concepts, fallacies, and cases/中文

Testing arguments with truth tables

用真值表检验论证

Inspect rows with all premises true and look for a false conclusion.

Check with a truth table

Look for a row with true premises and a false conclusion. One counterexample defeats deductive validity.

Classical two-valued semantics: T is true, F is false.
PQP → QCounterexample
TTT—
TFF—
FTT—
FFT—

概念与边界

n 个不同命题字母产生 2ⁿ 种真值组合。先为子式计算真值,再计算复合式。检验论证时,不要求结论在每一行都真,只要求前提全真的行里结论真。

真值表只能处理已经完成的命题层形式化。它不能替你决定一个日常句子应怎样翻译,也不能直接分析内部量词关系。

The concept and its limits

There are 2ⁿ valuations for n distinct propositional letters. Evaluate subformulas before compounds. A valid argument does not require a true conclusion in every row, only in every row where all premises are true.

Truth tables test a completed propositional formalization. They do not choose a translation for ordinary language or directly analyze internal quantifier relations.

把概念用起来

对“P → Q;Q;所以 P”,选 P 假、Q 真。条件句和 Q 都真,P 却假,这一行足以证明无效。

Working through an example

For “P → Q; Q; therefore P,” choose P false and Q true. Both premises are true and the conclusion false. This single row establishes invalidity.

先掌握每个联结词的真值

本教程采用经典二值命题逻辑:每个命题字母在一次赋值中取真或假,联结词的结果由组成部分决定。T 与 F 是真值标记,不是新的命题字母。

相容析取 P ∨ Q 在两者都真时也真。实质条件句 P → Q 只在 P 真而 Q 假时为假。把“如果”如此形式化,是选定一种精确模型;日常条件句的因果、时间和相关性要求还要另外处理。

五种基本联结词
PQ¬PP ∧ QP ∨ QP → QP ↔ Q
TTFTTTT
TFFFTFF
FTTFTTF
FFTFFTT

本节依据:forall x 第 9 章:特征真值表 ↗ · forall x 第 11 章:完整真值表 ↗

Evaluate each connective first

This tutorial uses classical two-valued propositional logic. Each sentence letter is true or false under a valuation, and connective values depend on their components. T and F label truth values rather than additional sentence letters.

Inclusive P ∨ Q is true when both disjuncts are true. Material P → Q is false only when P is true and Q false. This supplies a precise model of a conditional; causal, temporal, and relevance requirements in ordinary language need separate attention.

Five basic connectives
PQ¬PP ∧ QP ∨ QP → QP ↔ Q
TTFTTTT
TFFFTFF
FTTFTTF
FFTFFTT

Section sources: forall x, chapter 9: characteristic truth tables ↗ · forall x, chapter 11: complete truth tables ↗

怎样不漏行、不算错层级

先数不同命题字母,重复出现的字母只算一次。三个字母需要八行:第一列四真四假,第二列两真两假循环,第三列真假交替。行的顺序可以不同,但每种组合必须出现一次。

随后按括号从内向外计算。对 ¬(P ∧ Q) → R,先算 P ∧ Q,再取否定,最后把所得值与 R 代入条件句。不能先把所有否定作用到最近字母上,因为括号决定否定的范围。

  1. 列出所有赋值,并标明各前提和结论对应的列。
  2. 为容易出错的子式增加辅助列;确认主联结词。
  3. 只在前提全真的行检查结论;保存任何反例行。

本节依据:forall x 第 11 章:§11.1:构造完整真值表 ↗

Build a complete table systematically

Count distinct sentence letters; repeated occurrences count once. Three letters require eight rows. One orderly arrangement alternates the first column after four rows, the second after two, and the third after each row. Other orders work if every assignment occurs once.

Evaluate inside brackets before moving outward. For ¬(P ∧ Q) → R, first calculate P ∧ Q, then negate that result, then evaluate the conditional with R. Brackets determine the scope of negation.

  1. List every valuation and label each premise and the conclusion.
  2. Add columns for difficult subformulas and identify the main connective.
  3. Inspect the conclusion on rows where all premises are true, retaining any counterexample.

Section sources: forall x, chapter 11: section 11.1: constructing a complete table ↗

完整例:析取三段论

考虑原创情境:“钥匙在柜子或书包里;钥匙不在柜子里;所以钥匙在书包里。”设 P 表示在柜子里,Q 表示在书包里。下表最后两列分别标出前提是否全真,以及该行是否反驳论证。

P ∨ Q,¬P ⊨ Q
PQP ∨ Q¬P前提全真?反例?
TTTF否否
TFTF否否
FTTT是否
FFFT否否

本节依据:forall x 第 12 章:用真值表定义有效性 ↗

A full example: disjunctive syllogism

Consider this original scenario: the key is in the cabinet or the bag; it is not in the cabinet; therefore it is in the bag. Let P and Q represent the two locations. The last columns show whether both premises hold and whether the row is a counterexample.

P ∨ Q, ¬P ⊨ Q
PQP ∨ Q¬PBoth premises true?Counterexample?
TTTFNoNo
TFTFNoNo
FTTTYesNo
FFFTNoNo

Section sources: forall x, chapter 12: validity in truth tables ↗

全真、前提全真与空范围

例表只有第三行需要检验结论,而该行 Q 为真,所以论证有效。第一、二、四行不满足全部前提,即使某行结论为假,也不是所需的反例。

永真式要求自身在每行都真;有效论证只要求在前提全真的行保真。如果前提互相矛盾,根本不存在前提全真的行,经典语义下它们会蕴涵任意结论。这不使这些前提成为可接受事实,也不使论证健全。要另外检查前提的一致性与真实性。

本节依据:forall x 第 12 章:有效性、一致性与永真性 ↗

Tautology, true premises, and empty cases

Only the third row in the example requires checking the conclusion; Q is true there, so the argument is valid. The other rows fail to satisfy all premises and cannot refute the argument.

A tautology is true on every row. Validity requires truth preservation on rows satisfying all premises. In classical semantics, contradictory premises entail any conclusion because no row satisfies them all. That does not make the premises acceptable facts or the argument sound. Consistency and premise truth require separate checks.

Section sources: forall x, chapter 12: validity, consistency, and tautology ↗

用新论证检查掌握程度

下列两题不是上方已经讲解的钥匙案例。先写赋值,再作判断。

独立练习 1

前提:A → B、¬A。结论:¬B。找出反例,并解释它为何满足要求。

查看答案与推理过程

取 A 假、B 真:条件句真,¬A 真,¬B 假。它满足前提全真而结论假,因此论证无效。

独立练习 2

前提:A、¬A。结论:B。完整真值表中有前提全真的行吗?能否据此说 A 和 ¬A 都有道理?

查看答案与推理过程

没有这样的行;经典语义下没有反例,所以论证有效。但前提不可能同真,论证不健全,也没有因此获得事实支持。

Test your method on new arguments

These exercises use different arguments from the worked key example. Write valuations before deciding.

Independent exercise 1

Premises: A → B and ¬A. Conclusion: ¬B. Find and explain a counterexample.

Show answer and reasoning

Set A false and B true. The conditional and ¬A are true, while ¬B is false. This meets the counterexample requirement, establishing invalidity.

Independent exercise 2

Premises: A and ¬A. Conclusion: B. Does any row satisfy both premises? Does this make both premises reasonable?

Show answer and reasoning

No row satisfies both. There is no counterexample, so the argument is classically valid. Its premises cannot both be true, so it is unsound and gains no factual support.

检查你的理解

问:某行前提有假、结论也假,能判无效吗?答:不能;它不是所需的反例行。

Check your understanding

Question: Does a row with a false premise and false conclusion show invalidity? Answer: No. It is not the required counterexample row.

References

  1. forall x: Calgary ↗
    P. D. Magnus, Tim Button, Robert Trueman, Richard Zach et al. · Selected sections
    Version, terms, and access scope