1命題とは何か
命題とは、真か偽かが定まる文である。
2+3=5
は真である。一方、
x+3=5
は、x を決めなければ真偽が定まらない。そのため、これは x についての述語である。
述語は、対象を入れると命題になる文である。たとえば P(x): x\text{ は偶数である} とおけば、P(2) は真で、P(3) は偽である。
命題は真か偽が決まる文であり、自由変数が残る文は述語として扱う。述語は、値を代入するか量化すると命題になる。
1What is a proposition?
A proposition命題めいだい is a statement whose truth value is determined.
2+3=5
is true. In contrast,
x+3=5
does not have a truth value until x is specified. Therefore it is a predicate述語じゅつご about x.
A predicate is a statement that becomes a proposition after an object is inserted. For example, if P(x): x\text{ is even}, then P(2) is true and P(3) is false.
A proposition is a statement whose truth value is fixed. A statement with a remaining free variable is treated as a predicate述語じゅつご. A predicate becomes a proposition after a value is substituted or after it is quantified量化りょうか.
2真理集合しんりしゅうごうtruth setとして読よむ
この節せつは次つぎの集合しゅうごう講義こうぎを先取さきどりする。ここでは集合しゅうごうsetを対象たいしょうの集あつまり、元げんelementをそこに含ふくまれる対象たいしょう、全体集合ぜんたいしゅうごうuniversal setを議論ぎろんの対象たいしょう全体ぜんたいを収おさめる集合しゅうごうと読よむ。
述語じゅつごpredicateを集合しゅうごうsetと結むすびつける見方みかたが重要じゅうようである。全体集合ぜんたいしゅうごうuniversal setを U とし、述語じゅつご P(x) を考かんがえる。このとき
\{x\in U\mid P(x)\}
は、P(x) を真しんにする元げんelement全体ぜんたいの集合しゅうごうsetである。この集合しゅうごうsetを真理集合しんりしゅうごうtruth setと呼よぶ。
直感的ちょっかんてきには、述語じゅつごpredicateは「ふるい」であり、真理集合しんりしゅうごうtruth setはそのふるいを通過つうかした対象たいしょうの集あつまりである。
真理集合しんりしゅうごうtruth setは、対象たいしょうとして許ゆるす領域りょういきdomainに依存いぞんする。同おなじ式しきでも領域りょういきを変かえると、真理集合しんりしゅうごうや全称量化ぜんしょうりょうかuniversal quantification・存在量化そんざいりょうかexistential quantificationの真偽しんぎが変かわることがある。
2Reading a predicate as a truth set真理集合しんりしゅうごう
This section previews the next lecture on sets. Here a set集合しゅうごう is a collection of objects, an element元げん is an object in that collection, and a universal set全体集合ぜんたいしゅうごう contains all objects currently under discussion.
It is important to connect a predicate述語じゅつご with a set集合しゅうごう. Fix a universal set全体集合ぜんたいしゅうごう U and consider a predicate P(x). Then
\{x\in U\mid P(x)\}
is the set of all elements元げん that make P(x) true. This set is called the truth set真理集合しんりしゅうごう.
Intuitively, a predicate is a filter, and the truth set is the collection of objects that pass through the filter.
A truth set真理集合しんりしゅうごう depends on the domain領域りょういき of objects being allowed. Even with the same formula, changing the domain can change the truth set and the truth value of universal quantification全称量化ぜんしょうりょうか or existential quantification存在量化そんざいりょうか.
3論理結合子ろんりけつごうしlogical connective
命題めいだいpropositionから新あたらしい命題めいだいpropositionを作つくる操作そうさを論理結合子ろんりけつごうしlogical connectiveという。
| 記号きごう | 読よみ | 意味いみ |
| P\land Q | かつ | P も Q も真しん |
| P\lor Q | または | 少すくなくとも一方いっぽうが真しん |
| \lnot P | でない | P の真偽しんぎを反転はんてんする |
| P\Rightarrow Q | ならば | P が真しんなら Q も真しん |
| P\Leftrightarrow Q | 同値どうち | P と Q の真偽しんぎが一致いっちする |
含意がんいimplication P\Rightarrow Q は「P が真しんである状況じょうきょうでは Q も真しんである」という主張しゅちょうである。
3Logical connectives論理結合子ろんりけつごうし
Operations that build new propositions命題めいだい from propositions are called logical connectives論理結合子ろんりけつごうし.
| Symbol | Reading | Meaning |
| P\land Q | and | both P and Q are true |
| P\lor Q | or | at least one of P,Q is true |
| \lnot P | not | reverses the truth value of P |
| P\Rightarrow Q | implies | if P is true, then Q is true |
| P\Leftrightarrow Q | equivalent | P and Q have the same truth value |
The implication含意がんい P\Rightarrow Q asserts that whenever P is true, Q is also true.
4全称量化ぜんしょうりょうかuniversal quantificationと存在量化そんざいりょうかexistential quantification
量化りょうかquantificationは、変数へんすうの範囲はんいを指定していして命題めいだいを作つくる操作そうさである。
\forall x\in A,\ P(x)
は「A のすべての x について P(x) が成立せいりつする」という意味いみである。これを全称量化ぜんしょうりょうかuniversal quantificationという。
\exists x\in A,\ P(x)
は「A の中なかに P(x) を満みたす x が少すくなくとも 1 つ存在そんざいする」という意味いみである。これを存在量化そんざいりょうかexistential quantificationという。
4Universal quantification全称量化ぜんしょうりょうか and existential quantification存在量化そんざいりょうか
Quantification量化りょうか creates a proposition by specifying the range of a variable.
\forall x\in A,\ P(x)
means that P(x) holds for every x in A. This is universal quantification全称量化ぜんしょうりょうか.
\exists x\in A,\ P(x)
means that there is at least one x in A satisfying P(x). This is existential quantification存在量化そんざいりょうか.
5否定ひていは量化りょうかの外そとに出だす
量化りょうかを含ふくむ命題めいだいを否定ひていするときは、量化りょうか記号きごうが入いれ替かわる。
\lnot(\forall x\in A,\ P(x))
\Leftrightarrow
\exists x\in A\ \text{such that}\ \lnot P(x)
\lnot(\exists x\in A,\ P(x))
\Leftrightarrow
\forall x\in A,\ \lnot P(x)
「すべてが成立せいりつする」の否定ひていは「少すくなくとも 1 つ反例はんれいがある」である。「条件じょうけんを満みたすものが存在そんざいする」の否定ひていは「どの候補こうほもその条件じょうけんを満みたさない」である。
data/lecture/math/discrete-math/proof-methods-and-counterexamples.lecture.n.md
5Move negation outside quantifiers
When negating a proposition with quantifiers, the quantifier switches.
\lnot(\forall x\in A,\ P(x))
\Leftrightarrow
\exists x\in A\ \text{such that}\ \lnot P(x)
\lnot(\exists x\in A,\ P(x))
\Leftrightarrow
\forall x\in A,\ \lnot P(x).
The negation of “everything holds” is “there is at least one counterexample反例はんれい.” The negation of “there exists” is “every candidate fails.”
data/lecture/math/discrete-math/proof-methods-and-counterexamples.lecture.n.md
6具体例ぐたいれい:包含関係ほうがんかんけいinclusion relationを論理ろんりで読よむ
A\subseteq B は次つぎの命題めいだいである。
\forall x,\ x\in A\Rightarrow x\in B
したがって、A\subseteq B を否定ひていすると、
\exists x\ \text{such that}\ x\in A\ \text{and}\ x\notin B
となる。つまり、A に属ぞくするが B には属ぞくさない元げんelementが 1 つでも見みつかれば、包含ほうがんは壊こわれる。
6Example: read an inclusion relation包含関係ほうがんかんけい logically
The statement A\subseteq B means
\forall x,\ x\in A\Rightarrow x\in B.
Therefore the negation of A\subseteq B is
\exists x\ \text{such that}\ x\in A\ \text{and}\ x\notin B.
Thus a single element元げん that belongs to A but not to B breaks the inclusion.