markdown
論理と証明法 基本演習md 862447d
exercise/math/discrete-math/logic-and-proof-methods.exercise.n.md

論理ろんりlogicと証明法しょうめいほうproof method 基本きほん演習えんしゅう

document_iddoc_e5b67ffb45f07185379a145613a42e68title論理と証明法 基本演習type問題演習content_typeexercisedate2026-07-14categorymathdescription命題、述語、量化、否定、直接証明、対偶証明、反例の基本演習。prerequisites命題・述語と量化 / 証明法と反例 / 数学的帰納法と再帰的定義relateddata/lecture/math/discrete-math/discrete-mathematics-portal.lecture.n.md / data/lecture/math/discrete-math/propositions-predicates-and-quantifiers.lecture.n.md / data/lecture/math/discrete-math/proof-methods-and-counterexamples.lecture.n.md / data/lecture/math/discrete-math/mathematical-induction-and-recursive-definitions.lecture.n.md

Logic論理ろんり and proof methods証明法しょうめいほう: basic exercises

2問題もんだい1:量化りょうかquantificationを否定ひていする

次つぎの命題めいだいpropositionの否定ひていを書かけ。

∀x∈A,P(x)⇒Q(x)

2.1解答かいとう

否定ひていは

∃x∈AsuchthatP(x)and¬Q(x)

である。

2.2解説かいせつ

全称量化ぜんしょうりょうかuniversal quantificationの否定ひていは存在量化そんざいりょうかexistential quantificationになる。また、含意がんいimplication P⇒Q の否定ひていは P∧¬Q である。

2Problem 1: negate quantification量化りょうか

Write the negation of the following proposition命題めいだい.

∀x∈A,P(x)⇒Q(x)

2.1Answer

The negation is

∃x∈AsuchthatP(x)and¬Q(x).

2.2Explanation

The negation of universal quantification全称量化ぜんしょうりょうか becomes existential quantification存在量化そんざいりょうか. Also, the negation of the implication含意がんい P⇒Q is P∧¬Q.

3問題もんだい2:包含ほうがんinclusionの推移性すいいせいtransitivityを示しめす

A⊆B かつ B⊆C のとき、A⊆C を示しめせ。

3.1解答かいとう

任意にんいの x を取とり、x∈A とする。A⊆B より x∈B である。さらに B⊆C より x∈C である。したがって x∈A⇒x∈C が任意にんいの x で成立せいりつするので、A⊆C である。

3.2解説かいせつ

これは直接証明ちょくせつしょうめいdirect proofである。包含関係ほうがんかんけいinclusion relationは、すべての元げんelementに対たいする含意がんいimplicationとして読よむ。

3Problem 2: prove transitivity推移性すいいせい of inclusion包含ほうがん

Assume A⊆B and B⊆C. Prove A⊆C.

3.1Answer

Take arbitrary x and assume x∈A. Since A⊆B, we have x∈B. Since B⊆C, we have x∈C. Thus x∈A⇒x∈C holds for every x, so A⊆C.

3.2Explanation

This is a direct proof直接証明ちょくせつしょうめい. An inclusion relation包含関係ほうがんかんけい is read as an implication含意がんい about every element元げん.

4問題もんだい3:反例はんれいcounterexampleを作つくる

「任意にんいの関係かんけいrelationは対称たいしょうsymmetricである」という主張しゅちょうに反例はんれいcounterexampleを与あたえよ。

4.1解答かいとう

A={1,2} 上うえの関係かんけいrelation R={(1,2)} を考かんがえる。(1,2)∈R だが (2,1)∉R である。したがって R は対称性たいしょうせいsymmetryを持もたない。

4.2解説かいせつ

反例はんれいcounterexampleでは、主張しゅちょうの対象たいしょうになっている条件じょうけんを満みたす例れいを作つくり、その結論けつろんが成立せいりつしないことを示しめす。この問題もんだいでは R⊆A×A なので、確たしかに A 上うえの関係かんけいrelationである。

4Problem 3: construct a counterexample反例はんれい

Give a counterexample反例はんれい to the claim “every relation関係かんけい is symmetric対称たいしょう.”

4.1Answer

Consider the relation関係かんけい R={(1,2)} on A={1,2}. We have (1,2)∈R but (2,1)∉R. Therefore R does not have symmetry対称性たいしょうせい.

4.2Explanation

A counterexample反例はんれい must satisfy the assumptions of the claim and make the conclusion fail. Here R⊆A×A, so it really is a relation関係かんけい on A.

5問題もんだい4:帰納法きのうほうinductionで示しめす

すべての n[PARSE ERROR: Undefined("Command(\"ge\")")]1 について、

1+2+⋯+n=n(n+1)2

を示しめせ。

5.1解答かいとう

n=1 のとき、左辺さへんは 1、右辺うへんは 1·2/2=1 なので成立せいりつする。

n=k で成立せいりつすると仮定かていする。

1+2+⋯+k=k(k+1)2

このとき

1+2+⋯+k+(k+1)=k(k+1)2+(k+1)=(k+1)(k+2)2

である。したがって n=k+1 でも成立せいりつする。

5.2解説かいせつ

基底段階きていだんかいbase caseと帰納段階きのうだんかいinduction stepを分わけて書かく。文字式もじしきで割わり算ざんが表あらわれるが、分母ぶんぼは定数ていすう 2 なので、零除算れいじょざんの確認かくにんは不要ふようである。

5Problem 4: prove by induction帰納法きのうほう

Prove that for every n[PARSE ERROR: Undefined("Command(\"ge\")")]1,

1+2+⋯+n=n(n+1)2.

5.1Answer

For n=1, the left-hand side is 1 and the right-hand side is 1·2/2=1, so the statement holds.

Assume the statement holds for n=k:

1+2+⋯+k=k(k+1)2.

Then

1+2+⋯+k+(k+1)=k(k+1)2+(k+1)=(k+1)(k+2)2.

Thus the statement also holds for n=k+1.

5.2Explanation

Write the base case基底段階きていだんかい and the induction step帰納段階きのうだんかい separately. Division appears in the algebraic expression, but the denominator is the constant 2, so there is no zero-division issue to check.

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
タブを全て閉じる