← 学习库 Discrete Mathematics (Levin) · 中英对照样章 目录

0.2 Mathematical Statements 数学语句

本页为「中英对照」样章(段段对照:原文在下,译文紧随其后)。译自 LibreTexts · Discrete Mathematics (Levin) 第 0.2 章。公式经 MathJax 渲染,自定义宏已注入。

Investigate! 探究!

While walking through a fictional forest, you encounter three trolls guarding a bridge. Each is either a knight, who always tells the truth, or a knave, who always lies. The trolls will not let you pass until you correctly identify each as either a knight or a knave. Each troll makes a single statement:

在穿越一片虚构的森林时,你遇到三只巨魔把守一座桥。每只巨魔要么是「骑士」(永远说真话),要么是「无赖」(永远说谎)。在你正确指出每只巨魔是骑士还是无赖之前,它们不会放你过桥。每只巨魔说了一句话:

Which troll is which?

哪只巨魔是哪种?

In order to do mathematics, we must be able to talk and write about mathematics. Perhaps your experience with mathematics so far has mostly involved finding answers to problems. As we embark towards more advanced and abstract mathematics, writing will play a more prominent role in the mathematical process. Communication in mathematics requires more precision than many other subjects, and thus we should take a few pages here to consider the basic building blocks: mathematical statements.

要从事数学,我们必须能够谈论数学、书写数学。也许你至今的数学经验大多在于寻找问题的答案。当我们迈向更进阶、更抽象的数学时,书写将在数学活动中扮演更突出的角色。数学交流比许多其他学科要求更高的精确度,因此我们应当花几页篇幅来考察最基本的构件:数学语句(命题)

Atomic and Molecular Statements 原子命题与复合命题

A statement is any declarative sentence which is either true or false. A statement is atomic if it cannot be divided into smaller statements, otherwise it is called molecular.

命题(statement)是任何非真即假的陈述句。如果一个命题不能被分解为更小的命题,则称其为原子命题(atomic);否则称为复合命题(molecular)

Example 1

示例 1

These are statements (in fact, atomic statements):

以下是命题(确切地说,原子命题):

And these are not statements:

以下则不是命题:

The reason the last sentence is not a statement is because it contains a variable. Depending on what $x$ is, the sentence is either true or false, but right now it is neither. One way to make the sentence into a statement is to specify the value of the variable in some way. This could be done in a number of ways. For example, “$3+x = 12$ where $x = 9$” is a true statement, as is “$3+x = 12$ for some value of $x$.” This is an example of quantifying over a variable, which we will discuss more in a bit.

最后一句话不是命题,原因在于它含有一个变量。视 $x$ 的取值而定,这句话可能为真也可能为假,但此刻它既不真也不假。把这句话变成命题的一种办法是以某种方式指定该变量的值。这可以通过多种途径实现。例如,「当 $x = 9$ 时 $3+x = 12$」是一个真命题,「存在某个 $x$ 使 $3+x = 12$」亦然。这是对变量进行量化(quantifying)的例子,我们稍后会详细讨论。

You can build more complicated (molecular) statements out of simpler (atomic or molecular) ones using logical connectives. For example, this is a molecular statement:

你可以借助逻辑联结词(logical connectives),由较简单(原子或复合)的命题构造出更复杂(复合)的命题。例如,下面就是一个复合命题:

Telephone numbers in the USA have 10 digits and 42 is a perfect square.

美国的电话号码有 10 位数字,并且 42 是一个完全平方数。

Note that we can break this down into two smaller statements. The two shorter statements are connected by an “and.” We will consider 5 connectives: “and” (Sam is a man and Chris is a woman), “or” (Sam is a man or Chris is a woman), “if…, then…” (if Sam is a man, then Chris is a woman), “if and only if” (Sam is a man if and only if Chris is a woman), and “not” (Sam is not a man). The first four are called binary connectives (because they connect two statements) while “not” is an example of a unary connective (since it applies to a single statement).

注意,我们可以把它拆成两个更小的命题。这两个较短的命题由「and(并且)」连接。我们将考察 5 种联结词:「and」(萨姆是男人并且克丽丝是女人)、「or」(萨姆是男人或者克丽丝是女人)、「if…, then…」(如果萨姆是男人,那么克丽丝是女人)、「if and only if」(萨姆是男人当且仅当克丽丝是女人),以及「not」(萨姆不是男人)。前四种称为二元联结词(binary connectives),因为它们连接两个命题;而「not」是一元联结词(unary connective)的例子,因为它只作用于单个命题。

Which connective we use to modify statement(s) will determine the truth value of the molecular statement (that is, whether the statement is true or false), based on the truth values of the statements being modified. It is important to realize that we do not need to know what the parts actually say, only whether those parts are true or false. So to analyze logical connectives, it is enough to consider propositional variables (sometimes called sentential variables), usually capital letters in the middle of the alphabet: $P, Q, R, S, \ldots\text{.}$ These are variables that can take on one of two values: T or F. We also have symbols for the logical connectives: $\wedge\text{,}$ $\vee\text{,}$ $\imp\text{,}$ $\iff\text{,}$ $\neg\text{.}$

我们使用哪种联结词来修饰命题,将依据被修饰命题的真值(truth value,即该命题为真还是为假)来决定复合命题的真值。重要的是要认识到:我们无需知道这些组成部分究竟说了什么,只需知道它们是真还是假。因此,要分析逻辑联结词,只需考虑命题变元(propositional variables,有时也称语句变元 sentential variables)——通常用字母表中间的 capital letters:$P, Q, R, S, \ldots\text{。}$ 这些变量只能取两个值之一:真(T)或假(F)。逻辑联结词也有对应的符号:$\wedge\text{(合取),}$ $\vee\text{(析取),}$ $\imp\text{(蕴涵),}$ $\iff\text{(双条件),}$ $\neg\text{(否定).}$

Logical Connectives

逻辑联结词

Truth Conditions for Connectives

联结词的真值条件

Note that for us, or is the inclusive or (and not the sometimes used exclusive or) meaning that $P \vee Q$ is in fact true when both $P$ and $Q$ are true. As for the other connectives, “and” behaves as you would expect, as does negation. The biconditional (if and only if) might seem a little strange, but you should think of this as saying the two parts of the statements are equivalent. This leaves only the conditional $P \imp Q$ which has a slightly different meaning in mathematics than it does in ordinary usage. However, implications are so common and useful in mathematics, that we must develop fluency with their use, and as such, they deserve their own subsection.

注意,对我们而言,「or」是相容或(inclusive or),而非有时使用的异或(exclusive or),这意味着当 $P$ 与 $Q$ 同时为真时,$P \vee Q$ 事实上为真。至于其他联结词,「and」的行为正如你所预期,否定亦然。双条件(当且仅当)看起来或许有些奇怪,但你应当把它理解为:命题的两个部分等价。至此只剩条件命题 $P \imp Q$ 尚未说明,它在数学中的含义与日常用法略有不同。然而,蕴涵在数学中极为常见且有用,我们必须熟练运用,因此它值得单独占一小节。

Implications 蕴涵(条件命题)

An implication or conditional is a molecular statement of the form

蕴涵(implication)或称条件命题(conditional),是形如

$\begin{equation*} P \imp Q \end{equation*}$

where $P$ and $Q$ are statements. We say that

的复合命题,其中 $P$ 与 $Q$ 均为命题。我们称:

An implication is true provided $P$ is false or $Q$ is true (or both), and false otherwise. In particular, the only way for $P \imp Q$ to be false is for $P$ to be true and $Q$ to be false.

只要 $P$ 为假或 $Q$ 为真(或二者皆然),$P \imp Q$ 便为真;其余情况为假。特别地,$P \imp Q$ 为假的唯一情形是:$P$ 为真且 $Q$ 为假。

Easily the most common type of statement in mathematics is the conditional, or implication. Even statements that do not at first look like they have this form conceal an implication at their heart. Consider the Pythagorean Theorem. Many a college freshman would quote this theorem as “$a^2 + b^2 = c^2\text{.}$” This is absolutely not correct. For one thing, that is not a statement since it has three variables in it. Perhaps they imply that this should be true for any values of the variables? So $1^2 + 5^2 = 2^2\text{???}$ How can we fix this? Well, the equation is true as long as $a$ and $b$ are the legs or a right triangle and $c$ is the hypotenuse. In other words:

数学中最常见的命题类型莫过于条件命题(蕴涵)。即使是那些乍看之下不具备这种形式的命题,其内核也隐藏着一个蕴涵。以勾股定理为例。许多大学新生会把这一定理表述为「$a^2 + b^2 = c^2\text{。}$」这绝对是错误的。首先,因为它含有三个变量,这本身就不是命题。或许他们隐含地认为:对变量的任意取值该式都成立?那么 $1^2 + 5^2 = 2^2\text{???}$ 又当如何?我们该如何修正?其实,只要 $a$ 与 $b$ 是直角三角形的两条直角边、$c$ 是斜边,该等式就成立。换言之:

If $a$ and $b$ are the legs of a right triangle with hypotenuse $c\text{,}$ then $a^2 + b^2 = c^2\text{.}$

如果一个直角三角形的两条直角边长为 $a$ 和 $b$、斜边为 $c\text{,}$那么 $a^2 + b^2 = c^2\text{。}$

This is a reasonable way to think about implications: our claim is that the conclusion (“then” part) is true, but on the assumption that the hypothesis (“if” part) is true. We make no claim about the conclusion in situations when the hypothesis is false.

这是理解蕴涵的一种合理方式:我们断言结论(「then」部分)为真,但这一断言建立在前提(「if」部分)为真的基础之上。当前提为假时,我们对结论不作任何断定。

Still, it is important to remember that an implication is a statement, and therefore is either true or false. The truth value of the implication is determined by the truth values of its two parts. To agree with the usage above, we say that an implication is true either when the hypothesis is false, or when the conclusion is true. This leaves only one way for an implication to be false: when the hypothesis is true and the conclusion is false.

尽管如此,重要的是要记住:蕴涵是一个命题,因而非真即假。蕴涵的真值由其两部分的真值决定。为了与上述用法一致,我们说:当且仅当前提为假、或结论为真时,蕴涵为真。于是蕴涵为假的方式只有一种:前提为真而结论为假。

Example 2

示例 2

Consider the statement:

考虑这个命题:

If Bob gets a 90 on the final, then Bob will pass the class.

如果鲍勃期末考了 90 分,那么鲍勃将通过本课程。

This is definitely an implication: $P$ is the statement “Bob gets a 90 on the final,” and $Q$ is the statement “Bob will pass the class.”

这毫无疑问是一个蕴涵:$P$ 表示「鲍勃期末考了 90 分」,$Q$ 表示「鲍勃将通过本课程」。

Suppose I made that statement to Bob. In what circumstances would it be fair to call me a liar? What if Bob really did get a 90 on the final, and he did pass the class? Then I have not lied; my statement is true. However, if Bob did get a 90 on the final and did not pass the class, then I lied, making the statement false. The tricky case is this: what if Bob did not get a 90 on the final? Maybe he passes the class, maybe he doesn't. Did I lie in either case? I think not. In these last two cases, $P$ was false, and the statement $P \imp Q$ was true. In the first case, $Q$ was true, and so was $P \imp Q\text{.}$ So $P \imp Q$ is true when either $P$ is false or $Q$ is true.

假设我对鲍勃说了这句话。在何种情形下,说我说谎才算公平?如果鲍勃真的考了 90 分,并且也通过了课程呢?那我并未说谎,我的命题为真。然而,如果鲍勃考了 90 分却没通过课程,那我就是说谎,使该命题为假。棘手的情形是:如果鲍勃期末没考 90 分呢?他可能通过、也可能没通过。在这两种情况下我算说谎吗?我认为不算。在这后两种情形中,$P$ 为假,而命题 $P \imp Q$ 为真。在第一种情形中,$Q$ 为真,故 $P \imp Q$ 亦为真。因此,当 $P$ 为假或 $Q$ 为真时,$P \imp Q$ 为真。

Just to be clear, although we sometimes read $P \imp Q$ as “$P$ implies $Q$,” we are not insisting that there is some causal relationship between the statements $P$ and $Q\text{.}$ In particular, if you claim that $P \imp Q$ is false, you are not saying that $P$ does not imply $Q\text{,}$ but rather that $P$ is true and $Q$ is false.

需要澄清的是:尽管我们有时把 $P \imp Q$ 读作「$P$ 蕴涵 $Q$」,但我们并不主张 $P$ 与 $Q$ 之间存在某种因果关系。具体而言,若你断言 $P \imp Q$ 为假,你并不是在说 $P$ 不蕴涵 $Q\text{,}$而是在说 $P$ 为真而 $Q$ 为假。

Example 3

示例 3

Decide which of the following statements are true and which are false. Briefly explain.

判断下列命题哪些为真、哪些为假,并简要说明。
  1. $0=1 \imp 1=1$
  2. $1=1 \imp $ most horses have 4 legs
  3. If 8 is a prime number, then the 7624th digit of $\pi$ is an 8.
  4. If the 7624th digit of $\pi$ is an 8, then $2+2 = 4$
  1. $0=1 \imp 1=1$
  2. $1=1 \imp $ 大多数马有 4 条腿
  3. 如果 8 是素数,那么 $\pi$ 的第 7624 位数字是 8。
  4. 如果 $\pi$ 的第 7624 位数字是 8,那么 $2+2 = 4$

Solution

解答

All four of the statements are true. Remember, the only way for an implication to be false is for the if part to be true and the then part to be false.

这四个命题全部为真。记住,蕴涵为假的唯一方式是:if 部分为真且 then 部分为假。
  1. Here the hypothesis is false and the conclusion is true, so the implication is true.
  2. Here both the hypothesis and the conclusion is true, so the implication is true. It does not matter that there is no meaningful connection between the true mathematical fact and the fact about horses.
  3. I have no idea what the 7624th digit of $\pi$ is, but this does not matter. Since the hypothesis is false, the implication is automatically true.
  4. Similarly here, regardless of the truth value of the hypothesis, the conclusion is true, making the implication true.
  1. 此处前提为假、结论为真,故蕴涵为真。
  2. 此处前提与结论均为真,故蕴涵为真。真实的数学事实与关于马的事实之间是否存在有意义的联系,并不重要。
  3. 我并不知道 $\pi$ 的第 7624 位是什么,但这无关紧要。由于前提为假,蕴涵自动为真。
  4. 同理,无论前提真值如何,结论为真,故蕴涵为真。

It is important to understand the conditions under which an implication is true not only to decide whether a mathematical statement is true, but in order to prove that it is. Proofs might seem scary (especially if you have had a bad high school geometry experience) but all we are really doing is explaining (very carefully) why a statement is true. If you understand the truth conditions for an implication, you already have the outline for a proof.

理解蕴涵在何种条件下为真,不仅有助于判定一个数学命题的真假,更有助于证明它为真。证明或许令人望而生畏(尤其是如果你有过不愉快的初高中几何经历),但我们真正在做的事,不过是(非常仔细地)解释一个命题为何为真。如果你已经理解了蕴涵的真值条件,你其实已经掌握了证明的框架。

Direct Proofs of Implications 蕴涵的直接证明

To prove an implication $P \imp Q\text{,}$ it is enough to assume $P\text{,}$ and from it, deduce $Q\text{.}$

要证明一个蕴涵 $P \imp Q\text{,}$只需假设 $P\text{,}$并由此推演出 $Q\text{。}$

There are other techniques to prove statements (implications and others) that we will encounter throughout our studies, and new proof techniques are discovered all the time. Direct proof is the easiest and most elegant style of proof and has the advantage that such a proof often does a great job of explaining why the statement is true.

在我们的学习中还会遇到其他证明命题(包括蕴涵与其他类型)的技巧,新的证明方法也不断被发现。直接证明是最简单、最优美的证明风格,其优势在于这类证明往往能很好地解释命题为何为真。

Example 4

示例 4

Prove: If two numbers $a$ and $b$ are even, then their sum $a+b$ is even.

证明:若两个数 $a$ 与 $b$ 均为偶数,则它们的和 $a+b$ 为偶数。

Solution

解答

Suppose the numbers $a$ and $b$ are even. This means that $a = 2k$ and $b=2j$ for some integers $k$ and $j\text{.}$ The sum is then $a+b = 2k+2j = 2(k+j)\text{.}$ Since $k+j$ is an integer, this means that $a+b$ is even.

设 $a$ 与 $b$ 为偶数。这意味着存在整数 $k$ 与 $j$ 使得 $a = 2k$ 且 $b=2j\text{。}$ 于是它们的和为 $a+b = 2k+2j = 2(k+j)\text{。}$ 由于 $k+j$ 为整数,可知 $a+b$ 为偶数。

Notice that since we get to assume the hypothesis of the implication we immediately have a place to start. The proof proceeds essentially by repeatedly asking and answering, “what does that mean?” ∎ This sort of argument shows up outside of math as well. If you ever found yourself starting an argument with “hypothetically, let's assume …,” then you have attempted a direct proof of your desired conclusion.

注意,由于我们可以假定蕴涵的前提,便立刻有了入手之处。证明的本质就是不断地追问并回答:「那意味着什么?」∎ 这类论证在数学之外也会出现。如果你曾以「假设一下,我们假定……」开启一段论证,那么你其实已经在尝试对你想要的结论做直接证明了。

Since implications are so prevalent in mathematics, we have some special language to help discuss them:

由于蕴涵在数学中如此普遍,我们有一些专门的语言来辅助讨论它们:

Converse and Contrapositive 逆命题与逆否命题

Mathematics is overflowing with examples of true implications with a false converse. If a number greater than 2 is prime, then that number is odd. However, just because a number is odd does not mean it is prime. If a shape is a square, then it is a rectangle. But it is false that if a shape is a rectangle, then it is a square. While this happens often, it does not always happen. For example, the Pythagorean theorem has a true converse: if $a^2 + b^2 = c^2\text{,}$ then the triangle with sides $a\text{,}$ $b\text{,}$ and $c$ is a right triangle. Whenever you encounter an implication in mathematics, it is always reasonable to ask whether the converse is true.

数学中充满了「蕴涵为真而逆命题为假」的例子。若一个大于 2 的数是素数,则它是奇数。然而,一个数 merely 是奇数并不意味着它是素数。若一个图形是正方形,则它是矩形。但「若一个图形是矩形,则它是正方形」为假。尽管这种情况经常发生,但并非总是如此。例如,勾股定理就有一个为真的逆命题:若 $a^2 + b^2 = c^2\text{,}$则以 $a\text{、}$ $b\text{、}$ $c$ 为边的三角形是直角三角形。每当你在数学中遇到一个蕴涵,都可以合理地追问:它的逆命题是否为真?

The contrapositive, on the other hand, always has the same truth value as its original implication. This can be very helpful in deciding whether an implication is true: often it is easier to analyze the contrapositive.

另一方面,逆否命题的真值总是与原蕴涵相同。这在判断一个蕴涵是否为真时非常有用:往往分析逆否命题更为容易。

Example 5

示例 5

True or false: If you draw any nine playing cards from a regular deck, then you will have at least three cards all of the same suit. Is the converse true?

判断真假:如果你从一副普通扑克牌中任意抽出九张,那么你至少会有三张同花色的牌。其逆命题为真吗?

Solution

解答

True. The original implication is a little hard to analyze because there are so many different combinations of nine cards. But consider the contrapositive: If you don't have at least three cards all of the same suit, then you don't have nine cards. It is easy to see why this is true: you can at most have two cards of each of the four suits, for a total of eight cards (or fewer).

为真。原蕴涵之所以有点难分析,是因为九张牌的组合方式太多。但考虑其逆否命题:如果你没有至少三张同花色的牌,那么你并没有九张牌。这为何为真一目了然:四种花色每种最多两张,总共至多八张(或更少)。

The converse: If you have at least three cards all of the same suit, then you have nine cards. This is false. You could have three spades and nothing else. Note that to demonstrate that the converse (an implication) is false, we provided an example where the hypothesis is true (you do have three cards of the same suit), but where the conclusion is false (you do not have nine cards).

逆命题:如果你至少有三张同花色的牌,那么你有九张牌。此为假。你可能只有三张黑桃,别无他牌。注意,要证明逆命题(一个蕴涵)为假,我们只需举出一个前提为真(你确实有同花色的三张牌)、而结论为假(你并没有九张牌)的例子。

Understanding converses and contrapositives can help understand implications and their truth values:

理解逆命题与逆否命题,有助于理解蕴涵及其真值:

Example 6

示例 6

Suppose I tell Sue that if she gets a 93% on her final, then she will get an A in the class. Assuming that what I said is true, what can you conclude in the following cases:

假设我对苏说:如果她期末考了 93%,那么她将在本课程中得到 A。假定我所说为真,在以下各种情形下你能得出什么结论:
  1. Sue gets a 93% on her final.
  2. Sue gets an A in the class.
  3. Sue does not get a 93% on her final.
  4. Sue does not get an A in the class.
  1. 苏期末考了 93%。
  2. 苏得到了 A。
  3. 苏期末没考 93%。
  4. 苏没得到 A。

Solution

解答

Note first that whenever $P \imp Q$ and $P$ are both true statements, $Q$ must be true as well. For this problem, take $P$ to mean “Sue gets a 93% on her final” and $Q$ to mean “Sue will get an A in the class.”

首先注意:当 $P \imp Q$ 与 $P$ 均为真时,$Q$ 也必为真。在本题中,令 $P$ 表示「苏期末考了 93%」,令 $Q$ 表示「苏将得到 A」。
  1. We have $P \imp Q$ and $P\text{,}$ so $Q$ follows. Sue gets an A.
  2. You cannot conclude anything. Sue could have gotten the A because she did extra credit for example. Notice that we do not know that if Sue gets an A, then she gets a 93% on her final. That is the converse of the original implication, so it might or might not be true.
  3. The contrapositive of the converse of $P \imp Q$ is $\neg P \imp \neg Q\text{,}$ which states that if Sue does not get a 93% on the final, then she will not get an A in the class. But this does not follow from the original implication. Again, we can conclude nothing. Sue could have done extra credit.
  4. What would happen if Sue does not get an A but did get a 93% on the final? Then $P$ would be true and $Q$ would be false. This makes the implication $P \imp Q$ false! It must be that Sue did not get a 93% on the final. Notice now we have the implication $\neg Q \imp \neg P$ which is the contrapositive of $P \imp Q\text{.}$ Since $P \imp Q$ is assumed to be true, we know $\neg Q \imp \neg P$ is true as well.
  1. 已知 $P \imp Q$ 与 $P\text{,}$故可推出 $Q$。苏得到了 A。
  2. 你无法得出任何结论。苏得到 A 可能是因为做了附加分等等。注意,我们并不知道「若苏得到 A,则她期末考了 93%」是否成立。那是原蕴涵的逆命题,故它可能为真也可能为假。
  3. $P \imp Q$ 之逆命题的逆否命题为 $\neg P \imp \neg Q\text{,}$它表示:若苏期末没考 93%,则她不会得到 A。但这并不能由原蕴涵推出。同样,我们什么也推不出。苏可能做了附加分。
  4. 如果苏没得到 A、却考了 93% 会怎样?那么 $P$ 为真而 $Q$ 为假。这将使蕴涵 $P \imp Q$ 为假!因此必然是:苏期末没考 93%。现在我们得到蕴涵 $\neg Q \imp \neg P$,它是 $P \imp Q$ 的逆否命题。既然假定 $P \imp Q$ 为真,我们便知 $\neg Q \imp \neg P$ 亦为真。

As we said above, an implication is not logically equivalent to its converse, but it is possible that both are true. In this case, when both $P \imp Q$ and $Q \imp P$ are true, we say that $P$ and $Q$ are equivalent. This is the biconditional we mentioned earlier:

如上所述,一个蕴涵与其逆命题在逻辑上不等价,但二者有可能同时为真。当 $P \imp Q$ 与 $Q \imp P$ 均为真时,我们说 $P$ 与 $Q$ 等价(equivalent)。这就是我们之前提到的双条件命题:

If and only if 当且仅当

$P \iff Q$ is logically equivalent to $(P \imp Q) \wedge (Q \imp P)\text{.}$

$P \iff Q$ 在逻辑上等价于 $(P \imp Q) \wedge (Q \imp P)\text{。}$

Example: Given an integer $n\text{,}$ it is true that $n$ is even if and only if $n^2$ is even. That is, if $n$ is even, then $n^2$ is even, as well as the converse: if $n^2$ is even, then $n$ is even.

例:给定整数 $n\text{,}$命题「$n$ 为偶数当且仅当 $n^2$ 为偶数」成立。即:若 $n$ 为偶数,则 $n^2$ 为偶数;其逆命题亦成立:若 $n^2$ 为偶数,则 $n$ 为偶数。

You can think of “if and only if” statements as having two parts: an implication and its converse. We might say one is the “if” part, and the other is the “only if” part. We also sometimes say that “if and only if” statements have two directions: a forward direction $(P \imp Q)$ and a backwards direction $(P \leftarrow Q\text{,}$ which is really just sloppy notation for $Q \imp P$.

你可以把「当且仅当」命题看作由两部分组成:一个蕴涵及其逆命题。我们可以说其中一个是「if」部分,另一个是「only if」部分。我们有时也说「当且仅当」命题有两个方向:正向 $(P \imp Q)$ 与反向 $(P \leftarrow Q\text{,}$这其实只是 $Q \imp P$ 的偷懒记法)。

Let's think a little about which part is which. Is $P \imp Q$ the “if” part or the “only if” part? Perhaps we should look at an example:

我们来稍微想想哪一部分对应哪一个。 $P \imp Q$ 究竟是「if」部分还是「only if」部分?或许该看一个例子:

Example 7

示例 7

Suppose it is true that I sing if and only if I'm in the shower. We know this means both that if I sing, then I'm in the shower, and also the converse, that if I'm in the shower, then I sing. Let $P$ be the statement, “I sing,” and $Q$ be, “I'm in the shower.” So $P \imp Q$ is the statement “if I sing, then I'm in the shower.” Which part of the if and only if statement is this?

假设「我唱歌当且仅当我在洗澡」为真。我们知道这意味着两件事:如果我在唱歌,那么我在洗澡;以及其逆命题:如果我在洗澡,那么我在唱歌。令 $P$ 为「我在唱歌」,$Q$ 为「我在洗澡」。于是 $P \imp Q$ 表示「如果我在唱歌,那么我在洗澡」。这是「当且仅当」命题中的哪一部分?

What we are really asking is what is the meaning of “I sing if I'm in the shower” and “I sing only if I'm in the shower.” When is the first one (the “if” part) false? When I am in the shower but not singing. That is the same condition on being false as the statement “if I'm in the shower, then I sing.” So the “if” part is $Q \imp P\text{.}$ On the other hand, to say, “I sing only if I'm in the shower” is equivalent to saying “if I sing, then I'm in the shower,” so the “only if” part is $P \imp Q\text{.}$

我们真正要问的是:「I sing if I'm in the shower(我在洗澡时就会唱歌)」与「I sing only if I'm in the shower(我只有在洗澡时才唱歌)」分别是什么意思。第一句(「if」部分)何时为假?当我正在洗澡却没唱歌时。这与命题「如果我在洗澡,那么我在唱歌」为假的条件相同。因此「if」部分是 $Q \imp P\text{。}$ 另一方面,「I sing only if I'm in the shower」等同于「如果我在唱歌,那么我在洗澡」,所以「only if」部分是 $P \imp Q\text{。}$

It is not terribly important to know which part is the “if” or “only if” part, but this does get at something very, very important: there are many ways to state an implication! The problem is, since these are all different ways of saying the same implication, we cannot use truth tables to analyze the situation. Instead, we just need good English skills.

弄清哪部分是「if」、哪部分是「only if」并不十分重要,但这触及了一个非常、非常重要的点:表述一个蕴涵的方式有很多种!问题在于,由于这些说法表达的都是同一个蕴涵,我们无法用真值表来分析,而只能依靠良好的英语功底。

Example 8

示例 8

Rephrase the implication, “if I dream, then I am asleep” in as many different ways as possible. Then do the same for the converse.

用尽可能多不同的方式重述蕴涵「如果我在做梦,那么我在睡觉」,并对其逆命题做同样的事。

Solution

解答

The following are all equivalent to the original implication:

以下说法均与原蕴涵等价:
  1. I am asleep if I dream.
  2. I dream only if I am asleep.
  3. In order to dream, I must be asleep.
  4. To dream, it is necessary that I am asleep.
  5. To be asleep, it is sufficient to dream.
  6. I am not dreaming unless I am asleep.
  1. 如果我在做梦,那么我在睡觉。
  2. 我只有在睡觉时才会做梦。
  3. 要做梦,我必须处于睡眠中。
  4. 做梦的必要条件是我在睡觉。
  5. 只要做梦,就足以说明我在睡觉。
  6. 除非我在睡觉,否则我没有在做梦。

The following are equivalent to the converse (if I am asleep, then I dream):

以下说法均与逆命题(如果我在睡觉,那么我在做梦)等价:
  1. I dream if I am asleep.
  2. I am asleep only if I dream.
  3. It is necessary that I dream in order to be asleep.
  4. It is sufficient that I be asleep in order to dream.
  5. If I don't dream, then I'm not asleep.
  1. 如果我在睡觉,那么我在做梦。
  2. 我只有在做梦时才睡觉。
  3. 要处于睡眠中,做梦是必要条件。
  4. 要做梦,处于睡眠中就足够了。
  5. 如果我没有做梦,那么我不在睡觉。

Hopefully you agree with the above example. We include the “necessary and sufficient” versions because those are common when discussing mathematics. In fact, let's agree once and for all what they mean:

希望你能认同上面的例子。我们收录「必要与充分」的种种表述,是因为它们在数学讨论中十分常见。事实上,让我们一次性约定它们的含义:

Necessary and Sufficient 必要条件与充分条件

To be honest, I have trouble with these if I'm not very careful. I find it helps to have an example in mind:

说实话,若不小心翼翼,我自己也常在这些说法上犯迷糊。我发现脑子里带着一个例子会很有帮助:

Example 9

示例 9

Recall from calculus, if a function is differentiable at a point $c\text{,}$ then it is continuous at $c\text{,}$ but that the converse of this statement is not true (for example, $f(x) = |x|$ at the point 0). Restate this fact using “necessary and sufficient” language.

回顾微积分中的结论:若函数在点 $c$ 可微,则它在 $c$ 连续;但该命题的逆命题不成立(例如函数 $f(x) = |x|$ 在 $x=0$ 处)。用「必要与充分」的语言重述这一事实。

Solution

解答

It is true that in order for a function to be differentiable at a point $c\text{,}$ it is necessary for the function to be continuous at $c\text{.}$ However, it is not necessary that a function be differentiable at $c$ for it to be continuous at $c\text{.}$

确实,要使函数在点 $c$ 可微,函数必须在 $c$ 连续——即在 $c$ 连续是可微的必要条件。然而,函数在 $c$ 连续,并不要求它在 $c$ 可微。

It is true that to be continuous at a point $c\text{,}$ it is sufficient that the function be differentiable at $c\text{.}$ However, it is not the case that being continuous at $c$ is sufficient for a function to be differentiable at $c\text{.}$

确实,要使函数在点 $c$ 连续,函数在 $c$ 可微便已足够——即可微是连续的充分条件。但是,在 $c$ 连续并不是函数在 $c$ 可微的充分条件。

Thinking about the necessity and sufficiency of conditions can also help when writing proofs and justifying conclusions. If you want to establish some mathematical fact, it is helpful to think what other facts would be enough (be sufficient) to prove your fact. If you have an assumption, think about what must also be necessary if that hypothesis is true.

思考条件的必要性与充分性,在撰写证明与论证结论时也很有帮助。若你想确立某个数学事实,不妨想想:还有哪些事实足以(即充分)证明你的事实。若你持有一个假设,不妨想想:若该假设为真,哪些事实必然(即必要)也成立。

Quantifiers 量词

Investigate!

探究!

Consider the statement below. Decide whether any are equivalent to each other, or whether any imply any others.

考虑下面的语句。判断它们之间是否有等价关系,或者是否有某些蕴涵另一些。
  1. You can fool some people all of the time.
  2. You can fool everyone some of the time.
  3. You can always fool some people.
  4. Sometimes you can fool everyone.
  1. 你可以一直愚弄某些人。
  2. 你可以有时愚弄所有人。
  3. 你总能愚弄某些人。
  4. 有时你可以愚弄所有人。

It would be nice to use variables in our mathematical sentences. For example, suppose we wanted to claim that if $n$ is prime, then $n+7$ is not prime. This looks like an implication. I would like to write something like

在数学语句中使用变量会很方便。例如,假设我们想断言:若 $n$ 为素数,则 $n+7$ 不是素数。这看起来像一个蕴涵。我想写成

$\begin{equation*} P(n) \imp \neg P(n+7) \end{equation*}$

where $P(n)$ means “$n$ is prime.” But this is not quite right. For one thing, because this sentence has a free variable (that is, a variable that we have not specified anything about), it is not a statement. Now, if we plug in a specific value for $n\text{,}$ we do get a statement. In fact, it turns out that no matter what value we plug in for $n\text{,}$ we get a true implication. What we really want to say is that for all values of $n\text{,}$ if $n$ is prime, then $n+7$ is not. We need to quantify the variable.

其中 $P(n)$ 表示「$n$ 是素数」。但这并不太对。首先,因为这句话含有一个自由变量(free variable,即我们尚未对其作任何规定的变量),它不是一个命题。现在,若我们为 $n$ 代入一个具体的值,确实会得到一个命题。事实上,无论为 $n$ 代入什么值,得到的都是一个为真的蕴涵。我们真正想表达的,是对所有 $n$,若 $n$ 为素数,则 $n+7$ 不是素数。我们需要对变量进行量化(quantify)

Although there are many types of quantifiers in English (e.g., many, few, most, etc.) in mathematics we, for the most part, stick to two: existential and universal.

尽管英语中存在多种量词(如 many、few、most 等),但在数学中我们大体只使用两种:存在量词(existential)全称量词(universal)

Universal and Existential Quantifiers 全称量词与存在量词

The existential quantifier is $\exists$ and is read “there exists” or “there is.” For example,

存在量词是 $\exists$,读作「存在」或「有」。例如,

$\exists x (x < 0)$

asserts that there is a number less than 0.

断言存在小于 0 的数。

The universal quantifier is $\forall$ and is read “for all” or “every.” For example,

全称量词是 $\forall$,读作「对所有」或「每一个」。例如,

$\begin{equation*} \forall x (x \ge 0) \end{equation*}$

asserts that every number is greater than or equal to 0.

断言每个数都大于或等于 0。

As with all mathematical statements, we would like to decide whether quantified statements are true or false. Consider the statement

与所有数学命题一样,我们想判定量化命题的真假。考虑命题

$\begin{equation*} \forall x \exists y (y < x). \end{equation*}$

You would read this, “for every $x$ there is some $y$ such that $y$ is less than $x\text{.}$” Is this true? The answer depends on what our domain of discourse is: when we say “for all” $x\text{,}$ do we mean all positive integers or all real numbers or all elements of some other set? Usually this information is implied. In discrete mathematics, we almost always quantify over the natural numbers, 0, 1, 2, …, so let's take that for our domain of discourse here.

你会把它读作:「对每一个 $x$,都存在某个 $y$ 使得 $y < x\text{。}$」这为真吗?答案取决于我们的论域(domain of discourse)是什么:当我们说「对所有」 $x$ 时,是指所有正整数、所有实数,还是某个其他集合的所有元素?通常这一信息是被隐含的。在离散数学中,我们几乎总是在自然数 $0, 1, 2, \ldots$ 上量化,因此这里我们就取自然数为论域。

For the statement to be true, we need it to be the case that no matter what natural number we select, there is always some natural number that is strictly smaller. Perhaps we could let $y$ be $x-1\text{?}$ But here is the problem: what if $x = 0\text{?}$ Then $y = -1$ and that is not a number! (in our domain of discourse). Thus we see that the statement is false because there is a number which is less than or equal to all other numbers. In symbols,

要使该命题为真,需要满足:无论我们选取哪个自然数,总存在某个更小的自然数。或许我们可以令 $y = x-1\text{?}$ 但问题来了:如果 $x = 0$ 呢?那么 $y = -1$,而那不是一个(我们论域中的)数!于是我们看到,该命题为假,因为存在一个小于等于所有其他数的数。用符号表示,即

$\begin{equation*} \exists x \forall y (y \ge x). \end{equation*}$

To show that the original statement is false, we proved that the negation was true. Notice how the negation and original statement compare. This is typical.

为了证明原命题是假的,我们证明了它的否定为真。注意原命题与其否定之间的对应关系,这是典型的。

Quantifiers and Negation 量词与否定

Essentially, we can pass the negation symbol over a quantifier, but that causes the quantifier to switch type. This should not be surprising: if not everything has a property, then something doesn't have that property. And if there is not something with a property, then everything doesn't have that property.

本质上,我们可以把否定符号移到量词之上,但这会使量词的类型发生切换。这并不令人意外:如果不是所有事物都具有某性质,那么必有某个事物不具有该性质;而如果没有任何事物具有某性质,那么所有事物都不具有该性质。
← 目录下一章 →