markdown
証明法と反例md 152d631
lecture/math/discrete-math/proof-methods-and-counterexamples.lecture.n.md
Download PDF

証明法しょうめいほうproof methodと反例はんれいcounterexample

document_iddoc_4169e9e02562651deb1a235b0e19b256title証明法と反例 講義type講義content_typelecturedate2026-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/partial-and-total-orders.lecture.n.md / data/lecture/math/discrete-math/injections-surjections-and-bijections.lecture.n.md / data/exercise/math/discrete-math/logic-and-proof-methods.exercise.n.md

Proof methods証明法しょうめいほう and counterexamples反例はんれい

離散数学りさんすうがくdiscrete mathematicsでは、定義ていぎから結論けつろんまでの距離きょりをできるだけ短みじかくすることが重要じゅうようである。式しき変形へんけいよりも、「どの定義ていぎを開ひらけばよいか」を選えらぶ力ちからが問とわれる。そこで、基本きほん的てきな証明しょうめいproofの型かたを整理せいりする。

data/lecture/math/discrete-math/propositions-predicates-and-quantifiers.lecture.n.md

In discrete mathematics離散数学りさんすうがく, it is important to keep the path from definition to conclusion short. More than algebraic manipulation, the central skill is choosing which definition to expand. This page organizes basic types of proof証明しょうめい.

data/lecture/math/discrete-math/propositions-predicates-and-quantifiers.lecture.n.md

1直接証明ちょくせつしょうめいdirect proof

直接証明ちょくせつしょうめいdirect proofは、仮定かていから定義ていぎを順じゅんに使つかって結論けつろんを導みちびく方法ほうほうである。

次つぎの例れいは集合しゅうごうを先取さきどりする。ここでは x∈A を「x は A の元げん」、A⊆B を「任意にんいの x について、x∈A ならば x∈B」と読よむための最小限さいしょうげんの定義ていぎだけを使つかう。

たとえば A⊆B と B⊆C から A⊆C を示しめすには、包含関係ほうがんかんけいinclusion relationの定義ていぎを開ひらく。任意にんいの x を取とり、x∈A と仮定かていする。すると A⊆B より x∈B、さらに B⊆C より x∈C である。したがって A⊆C である。

1Direct proof直接証明ちょくせつしょうめい

A direct proof直接証明ちょくせつしょうめい starts from the assumptions, uses definitions in order, and derives the conclusion.

The following example previews sets. We use only the minimal definitions: x∈A means that x is an element of A, and A⊆B means that, for every x, x∈A implies x∈B.

For example, to prove A⊆C from A⊆B and B⊆C, expand the definition of the inclusion relation包含関係ほうがんかんけい. Take arbitrary x and assume x∈A. Then x∈B by A⊆B, and x∈C by B⊆C. Therefore A⊆C.

2対偶証明たいぐうしょうめいproof by contraposition

対偶証明たいぐうしょうめいproof by contrapositionは、

P⇒Q

の代かわりに

¬Q⇒¬P

を示しめす方法ほうほうである。両者りょうしゃは同値どうちである。

ここでの単射たんしゃinjectionは、後あとの写像しゃぞうmapの章しょうを先取さきどりする例れいである。この段階だんかいでは、対偶たいぐうの形かたちを見みるために「f(x)=f(y) なら x=y」という条件じょうけんだけを使つかう。

単射たんしゃinjectionの証明しょうめいでは、対偶たいぐうが自然しぜんに使つかえることが多おおい。f:A→B が単射たんしゃinjectionであることは f(x)=f(y)⇒x=y であり、その対偶たいぐうは x≠y⇒f(x)≠f(y) である。

data/lecture/math/discrete-math/injections-surjections-and-bijections.lecture.n.md

2Proof by contraposition対偶証明たいぐうしょうめい

A proof by contraposition対偶証明たいぐうしょうめい proves

¬Q⇒¬P

instead of

P⇒Q.

The two statements are equivalent.

The injection単射たんしゃ example below previews the later chapter on maps写像しゃぞう. At this point, only the condition “if f(x)=f(y), then x=y” is being used in order to see the form of a contrapositive.

This method is often natural for proving injectivity単射性たんしゃせい. Saying that f:A→B is an injection単射たんしゃ means f(x)=f(y)⇒x=y; its contrapositive is x≠y⇒f(x)≠f(y).

data/lecture/math/discrete-math/injections-surjections-and-bijections.lecture.n.md

3背理法はいりほうproof by contradiction

背理法はいりほうproof by contradictionは、結論けつろんの否定ひていを仮定かていして矛盾むじゅんを導みちびく方法ほうほうである。

次つぎの例れいは、後続こうぞくの半順序関係はんじゅんじょかんけいpartial orderの先取さきどりである。ここでは、半順序集合はんじゅんじょしゅうごうpartially ordered setの全体理論ぜんたいりろんは使つかわず、必要ひつような仮定かていだけを明示めいじして使つかう。すなわち、最大元さいだいげんgreatest elementとは任意にんいの x∈P に対たいして x[PARSE ERROR: Undefined("Command(\"le\")")]a を満みたす元げん a であり、反対称性はんたいしょうせいantisymmetryとは a[PARSE ERROR: Undefined("Command(\"le\")")]b かつ b[PARSE ERROR: Undefined("Command(\"le\")")]a なら a=b となる性質せいしつである。

たとえば「最大元さいだいげんが存在そんざいすれば、それは一意いちいである」を示しめす。結論けつろんを否定ひていし、半順序集合はんじゅんじょしゅうごうpartially ordered set P に異ことなる最大元さいだいげん a と b、すなわち a≠b があると仮定かていする。最大元さいだいげんの定義ていぎより、a[PARSE ERROR: Undefined("Command(\"le\")")]b かつ b[PARSE ERROR: Undefined("Command(\"le\")")]a である。反対称性はんたいしょうせいantisymmetryより a=b となり、a≠b と矛盾むじゅんする。したがって異ことなる 2 つの最大元さいだいげんは存在そんざいしない。

背理法はいりほうproof by contradictionでは、結論けつろんの否定ひていを仮定かていし、既知きちの定義ていぎや仮定かていと両立りょうりつしない矛盾むじゅんを導みちびく。結論けつろんそのものを仮定かていしてしまうと証明しょうめいにならない。

data/lecture/math/discrete-math/partial-and-total-orders.lecture.n.md

3Proof by contradiction背理法はいりほう

A proof by contradiction背理法はいりほう assumes the negation of the desired conclusion and derives a contradiction.

The next example previews partial orders半順序関係はんじゅんじょかんけい. It does not use the full later theory; it only uses the assumptions needed for this proof. A greatest element最大元さいだいげん is an element a such that x[PARSE ERROR: Undefined("Command(\"le\")")]a for every x∈P, and antisymmetry反対称性はんたいしょうせい means that a[PARSE ERROR: Undefined("Command(\"le\")")]b and b[PARSE ERROR: Undefined("Command(\"le\")")]a imply a=b.

For example, prove that if a greatest element exists, it is unique. Negate the conclusion and suppose a partially ordered set半順序集合はんじゅんじょしゅうごう P has distinct greatest elements a and b, so a≠b. By the definition of greatest element, a[PARSE ERROR: Undefined("Command(\"le\")")]b and b[PARSE ERROR: Undefined("Command(\"le\")")]a. By antisymmetry反対称性はんたいしょうせい, a=b, contradicting a≠b. Hence two distinct greatest elements cannot exist.

In a proof by contradiction, assume the negation of the conclusion and derive a contradiction with known definitions or assumptions. If one assumes the conclusion itself, that is not a proof.

data/lecture/math/discrete-math/partial-and-total-orders.lecture.n.md

4場合分ばあいわけproof by cases

場合分ばあいわけproof by casesは、対象たいしょうが有限ゆうげん個この型かたに分わかれるときに使つかう。集合演算しゅうごうえんざんでは、元げんがどの集合しゅうごうに属ぞくするかで場合分ばあいわけすることが多おおい。

次つぎの例れいも後続こうぞくの集合演算しゅうごうえんざんを先取さきどりする。A∪B は A または B に属ぞくする元げんの集合しゅうごう、A∩B は両方りょうほうに属ぞくする元げんの集合しゅうごうと読よむ。

たとえば

A∩(B∪C)=(A∩B)∪(A∩C)

を示しめす。左辺さへんの任意にんいの元げん x をとると x∈A かつ x∈B∪C である。x∈B の場合ばあいは x∈A∩B、x∉B の場合ばあいは x∈C なので x∈A∩C となり、どちらも右辺うへんに属ぞくする。逆ぎゃくに右辺うへんの x は、x∈A∩B または x∈A∩C のどちらの場合ばあいも x∈A かつ x∈B∪C である。したがって両辺りょうへんは等ひとしい。

4Proof by cases場合分け

A proof by cases場合分け is used when the object splits into finitely many exhaustive types. In set operations集合演算しゅうごうえんざん, cases often come from which sets an element元げん belongs to.

The next example also previews set operations. Read A∪B as the set of elements in A or B, and A∩B as the set of elements in both.

For example, to prove

A∩(B∪C)=(A∩B)∪(A∩C),

take an arbitrary x in the left side. Then x∈A and x∈B∪C. If x∈B, then x∈A∩B. If x∉B, membership in B∪C gives x∈C, so x∈A∩C. Thus either case puts x in the right side. Conversely, an x in the right side lies in either A∩B or A∩C; in both cases x∈A and x∈B∪C. Therefore the two sides are equal.

5反例はんれいcounterexample

反例はんれいcounterexampleは、全称ぜんしょう命題めいだいを否定ひていするための 1 つの例れいである。

「すべての整数せいすう n について n2>n」という主張しゅちょうは偽ぎである。n=1 は整数せいすうだが、12=1 なので 12>1 を満みたさない。この 1 つの例れいで全称命題ぜんしょうめいだいを否定ひていできる。

反例はんれいでは、対象たいしょうが定義ていぎの条件じょうけんを満みたしていることと、結論けつろんが壊こわれていることを両方りょうほう明示めいじする必要ひつようがある。

反例はんれいcounterexampleは、仮定かていをすべて満みたしながら結論けつろんを破やぶる具体例ぐたいれいでなければならない。仮定かていを満みたさない例れいは、主張しゅちょうの失敗しっぱいを示しめさない。

5Counterexample反例はんれい

A counterexample反例はんれい is one example that disproves a universal proposition.

The claim “for every integer n, n2>n” is false. The integer n=1 does not satisfy the conclusion because 12=1. This single example disproves the universal proposition.

For a counterexample, explicitly check both that the object satisfies the assumptions and that the conclusion fails.

A counterexample反例はんれい must satisfy all assumptions while breaking the conclusion. An example that does not satisfy the assumptions does not show that the claim fails.

6演習えんしゅうリンクとまとめ

data/exercise/math/discrete-math/logic-and-proof-methods.exercise.n.md

証明しょうめいproofでは、定義ていぎを開ひらき、必要ひつような量化りょうかを明確めいかくにし、どの型かたの議論ぎろんを使つかうかを選えらぶ。反例はんれいcounterexampleは「成立せいりつしない」ことを示しめす強力きょうりょくな方法ほうほうだが、反例はんれいの条件じょうけん確認かくにんを省略しょうりゃくしてはいけない。

演習えんしゅうでは、直接証明ちょくせつしょうめい、対偶たいぐうcontrapositive、背理法はいりほうproof by contradiction、場合分ばあいわけproof by cases、反例はんれいcounterexampleのどれを使つかっているかを明示めいじすると、仮定かていと結論けつろんの対応たいおうを追おいやすい。

6Exercise link and summary

data/exercise/math/discrete-math/logic-and-proof-methods.exercise.n.md

In a proof証明しょうめい, expand definitions, make the necessary quantifiers量化りょうか explicit, and choose the right proof pattern. A counterexample反例はんれい is a powerful way to show that something fails, but the counterexample must still be checked against the assumptions.

In exercises, explicitly name whether you are using a direct proof, a contrapositive対偶たいぐう, proof by contradiction背理法はいりほう, proof by cases場合分け, or a counterexample反例はんれい. This makes the relation between assumptions and conclusion easier to follow.

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