第2章論理
2.3 Constructing Truth Tables2.3 真理値表を作る

Figure 2.9図2.9
Just like solving a puzzle, a computer programmer must consider all potential solutions in order to account for each possible outcome. (credit: modification of work “Deadline Xmas 2010” by Allan Henderson/Flickr, CC BY 2.0)
英語のヒント
パズルを解くのと同じように、コンピュータのプログラマーは、起こりうる結果のそれぞれに備えるため、ありうる解をすべて考えなければならない。(出典:Allan Henderson/Flickr の “Deadline Xmas 2010” を改変、CC BY 2.0)
Learning Objectives学習目標
After completing this section, you should be able to:
英語のヒント
この節を終えると、次のことができるようになる。
- Interpret and apply negations, conjunctions, and disjunctions.
英語のヒント
否定、連言、選言を読み取り、当てはめる。 - Construct a truth table using negations, conjunctions, and disjunctions.
英語のヒント
否定、連言、選言を使って真理値表を作る。 - Construct a truth table for a compound statement and interpret its validity.
英語のヒント
複合命題の真理値表を作り、その妥当性を読み取る。
Are you familiar with the Choose Your Own Adventure book series written by Edward Packard? These gamebooks allow the reader to become one of the characters and make decisions that affect what happens next, resulting in different sequences of events in the story and endings based on the choices made. Writing a computer program is a little like what it must be like to write one of these books. The programmer must consider all the possible inputs that a user can put into the program and decide what will happen in each case, then write their program to account for each of these possible outcomes.
英語のヒント
エドワード・パッカードの書いた『きみならどうする?』(Choose Your Own Adventure)の本のシリーズを知っているだろうか。こうしたゲームブックでは、読者が登場人物の一人になって、次に起こることを左右する決断を下し、その選択によって物語の出来事の流れや結末が変わる。コンピュータのプログラムを書くのは、こうした本の一冊を書くのに少し似ている。プログラマーは、使う人がプログラムに入れうる入力をすべて考え、それぞれの場合に何が起こるかを決め、そのうえで、起こりうるこれらの結果のそれぞれに備えるようにプログラムを書かなければならない。
A truth table is a graphical tool used to analyze all the possible truth values of the component logical statements to determine the validity of a statement or argument along with all its possible outcomes. The rows of the table correspond to each possible outcome for the given logical statement identified at the top of each column. A single logical statement has two possible truth values, true or false. In truth tables, a capital T will represent true values, and a capital F will represent false values.
英語のヒント
真理値表とは、論理的な命題を構成する命題のありうる真理値をすべて分析して、命題や論証の妥当性を、起こりうるすべての結果とともに判定するための図の道具である。表の各行は、各列の上に示された論理的な命題について起こりうる結果のそれぞれに対応する。一つの論理的な命題には、真か偽かという2つのありうる真理値がある。真理値表では、大文字のTで真の値を、大文字のFで偽の値を表す。
In this section, you will use the knowledge built in Statements and Quantifiers and Compound Statements to analyze arguments and determine their truth value and validity. A logical argument is valid if its conclusion follows from its premises, regardless of whether those premises are true or false. You will then explore the truth tables for negation, conjunction, and disjunction, and use these truth tables to analyze compound logical statements containing these connectives.
英語のヒント
Interpret and Apply Negations, Conjunctions, and Disjunctions否定、連言、選言を読み取り、当てはめる
The negation of a statement will have the opposite truth value of the original statement. When is true, is false, and when is false, is true.
英語のヒント
命題の否定は、もとの命題と反対の真理値を持つ。が真のときは偽であり、が偽のときは真である。
Example 2.12例題 2.12
Finding the Truth Value of a Negation否定の真理値を求める
For each logical statement, determine the truth value of its negation.
英語のヒント
それぞれの論理的な命題について、その否定の真理値を判定せよ。
- : All horses are mustangs.
英語のヒント
:すべての馬はムスタングである。 - : New Delhi is not the capital of India.
英語のヒント
:ニューデリーはインドの首都ではない。
Solution解答
- is true because 3 + 5 does equal 8; therefore, the negation of , , is false.
英語のヒント
3 + 5は確かに8に等しいので、は真である。したがって、の否定は偽である。 - is false because there are other types of horses besides mustangs, such as Clydesdales or Arabians; therefore, the negation of , , is true.
英語のヒント
ムスタングのほかにも、クライズデールやアラブ種のような馬の種類があるので、は偽である。したがって、の否定は真である。 - is false because New Delhi is the capital of India; therefore, the negation of , , is true.
英語のヒント
ニューデリーはインドの首都なので、は偽である。したがって、の否定は真である。
A conjunction is a logical and statement. For a conjunction to be true, both statements that make up the conjunction must be true. If at least one of the statements is false, the and statement is false.
英語のヒント
連言は論理の「かつ」の命題である。連言が真であるには、連言を作る2つの命題がどちらも真でなければならない。命題の少なくとも一方が偽ならば、「かつ」の命題は偽である。
Example 2.13例題 2.13
Finding the Truth Value of a Conjunction連言の真理値を求める
Given and determine the truth value of each conjunction.
英語のヒント
が与えられたとき、それぞれの連言の真理値を判定せよ。
Solution解答
- is true, and is false. Because one statement is true, and the other statement is false, this makes the complete conjunction false.
英語のヒント
は真で、は偽である。一方の命題が真で、もう一方の命題が偽なので、連言全体は偽になる。 - is false, so is true, and is true. Therefore, both statements are true, making the complete conjunction true.
英語のヒント
は偽なのでは真であり、は真である。したがって、両方の命題が真なので、連言全体は真になる。 - is false, and is false. Because both statements are false, the complete conjunction is false.
英語のヒント
は偽で、は偽である。両方の命題が偽なので、連言全体は偽である。
A disjunction is a logical inclusive or statement, which means that a disjunction is true if one or both statements that form it are true. The only way a logical inclusive or statement is false is if both statements that form the disjunction are false.
英語のヒント
選言は論理の両立的な「または」の命題である。つまり、選言は、それを作る命題の一方または両方が真であれば真である。論理の両立的な「または」の命題が偽になるのは、選言を作る両方の命題が偽のときだけである。
Example 2.14例題 2.14
Finding the Truth Value of a Disjunction選言の真理値を求める
Given and determine the truth value of each disjunction.
英語のヒント
が与えられたとき、それぞれの選言の真理値を判定せよ。
Solution解答
- is true, and is false. One statement is true, and one statement is false, which makes the complete disjunction true.
英語のヒント
は真で、は偽である。一方の命題が真で、もう一方の命題が偽なので、選言全体は真になる。 - is false, so is true, and is true. Therefore, one statement is true, and the other statement is true, which makes the complete disjunction true.
英語のヒント
は偽なのでは真であり、は真である。したがって、一方の命題が真で、もう一方の命題も真なので、選言全体は真になる。 - is false, and is false. When all of the component statements are false, the disjunction is false.
英語のヒント
は偽で、は偽である。構成する命題がすべて偽のとき、選言は偽である。
In the next example, you will apply the dominance of connectives to find the truth values of compound statements containing negations, conjunctions, and disjunctions and use a table to record the results. When constructing a truth table to analyze an argument where you can determine the truth value of each component statement, the strategy is to create a table with two rows. The first row contains the symbols representing the components that make up the compound statement. The second row contains the truth values of each component below its symbol. Include as many columns as necessary to represent the value of each compound statement. The last column includes the complete compound statement with its truth value below it.
英語のヒント
次の例題では、結合子の優先順位を当てはめて、否定、連言、選言を含む複合命題の真理値を求め、表を使って結果を記録する。構成する各命題の真理値を判定できる論証を分析するために真理値表を作るときは、2行の表を作るのがよい。1行目には、複合命題を作る構成要素を表す記号を書く。2行目には、各構成要素の真理値をその記号の下に書く。各複合命題の値を表すのに必要なだけ列を設ける。最後の列には、完全な複合命題とその下に真理値を書く。
Example 2.15例題 2.15
Finding the Truth Value of Compound Statements複合命題の真理値を求める
Given and construct a truth table to determine the truth value of each compound statement
英語のヒント
が与えられたとき、真理値表を作って、それぞれの複合命題の真理値を判定せよ。
Solution解答
- Step 1: The statement “” contains three basic logical statements, , , and , and three connectives, When we place parentheses in the statement to indicate the dominance of connectives, the statement becomes
Step 2: After we have applied the dominance of connectives, we create a two row table that includes a column for each basic statement that makes up the compound statement, and an additional column for the contents of each parentheses. Because we have three sets of parentheses, we include a column for the innermost parentheses, a column for the next set of parentheses, and in the last column for the third parentheses.
Step 3: Once the table is created, we determine the truth value of each statement starting from left to right. The truth values of , , and are true, false, and true, respectively, so we place T, F, and T in the second row of the table. Because is true, is false.
Step 4: Next, evaluate from the table: is false, and is also false, so is false, because a conjunction is only true if both of the statements that make it are true. Place an F in the table below its heading.
Step 5: Finally, using the table, we understand that is false and is true, so the complete statement is false or true, which is true (because a disjunction is true whenever at least one of the statements that make it is true). Place a T in the last column of the table. The complete statement is true.英語のヒント
手順1:命題「」は、3つの基本的な論理的な命題、、と、3つの結合子を含む。結合子の優先順位を示すために命題に括弧を入れると、命題はとなる。手順2:結合子の優先順位を当てはめたら、複合命題を作る基本的な命題それぞれの列と、括弧の中身それぞれのための列を加えた2行の表を作る。括弧の組が3つあるので、最も内側の括弧のの列、次の括弧の組のの列、3つ目の括弧のを最後の列に設ける。手順3:表を作ったら、左から右へ各命題の真理値を判定する。、、の真理値はそれぞれ真、偽、真なので、表の2行目にT、F、Tを書き入れる。は真なので、は偽である。手順4:次に、表からを評価する。は偽で、も偽なので、は偽である。連言は、それを作る両方の命題が真のときだけ真だからである。見出しの下にFを書き入れる。手順5:最後に、表を使うと、は偽では真なので、命題全体は「偽または真」であり、これは真である(選言は、それを作る命題の少なくとも一方が真ならばいつでも真だからである)。表の最後の列にTを書き入れる。命題全体は真である。T F T F F T - Step 1: Applying the dominance of connectives to the original compound statement , we get
Step 2: The table needs columns for and
Step 3:The truth values of , , , and are the same as in Question 1.
Step 4: Next, is false or false, which is false, so we place an F below this statement in the table. This is the only time that a disjunction is false.
Step 5: Finally, and are the conjunction of the statements, and , and so the expressions evaluate to false and true, which is false. Recall that the only time an "and" statement is true is when both statements that form it are also true. The complete statement is false.英語のヒント
手順1:もとの複合命題に結合子の優先順位を当てはめると、となる。手順2:表にはとの列が必要である。手順3:、、、の真理値は問い1と同じである。手順4:次に、は「偽または偽」で偽なので、表のこの命題の下にFを書き入れる。選言が偽になるのはこのときだけである。手順5:最後に、とは命題との連言なので、式は「偽かつ真」と評価され、これは偽である。「かつ」の命題が真になるのは、それを作る両方の命題も真のときだけだったことを思い出そう。命題全体は偽である。T F T F F F - Step 1: Applying the dominance of connectives to the original statement, we have: .
Step 2: So, the table needs the following columns: and
Step 3: The truth values of , , and are the same as in Questions 1 and 2.
Step 4: From the table it can be seen that is true and true, which is true. So the negation of and is false, because the negation of a statement always has the opposite truth value of the original statement.
Step 5: Finally, is the disjunction of with , and so we have false or false, which makes the complete statement false.英語のヒント
手順1:もとの命題に結合子の優先順位を当てはめると、となる。手順2:よって、表には次の列が必要である。と 手順3:、、の真理値は問い1と2と同じである。手順4:表から、は「真かつ真」で真であることがわかる。よって、かつの否定は偽である。命題の否定は、いつでももとの命題と反対の真理値を持つからである。手順5:最後に、はとの選言なので、「偽または偽」となり、命題全体は偽になる。T F T T F F