逐步主鏈
S01 · definition
操作前
\neg P,\ P\land Q,\ P\lor Q,\ P\to Q,\ P\leftrightarrow Q
操作後
\text{truth value of each compound determined by those of}\ P,\ Q條件:無
規則:mko_conn · 依賴:G1
葉節點依據:mko_conn + truth_table
依 MKO,¬P 是否定,P∧Q 要求兩者皆成立,P∨Q 要求至少一者成立,P→Q 表示若 P 則 Q,P↔Q 要求兩個方向。在古典二值語境(G1)中,這些定義寫成真值條件(truth_table):複合命題的真假只由成分的真假決定,與成分之間有沒有因果或時間關係無關。
S02 · implies
操作前
4\mid 12,\ 6\mid 12
操作後
\mathrm{T},\ \mathrm{T}條件:無
規則:divides_def · 依賴:G2, G3
葉節點依據:divides_def + exists_intro + numeric_evaluation
12=4·3,3 是整數,所以 4∣12 為真;12=6·2,所以 6∣12 為真。兩個成分都為真。
S03 · implies
操作前
4\mid 12\ \lor\ 6\mid 12
操作後
\mathrm{T}條件:無
規則:truth_table · 依賴:S01, S02
葉節點依據:truth_table
依 ∨ 的真值條件,至少一者為真即為真;這裡兩者都為真,所以「4∣12 ∨ 6∣12」為真。若把 ∨ 誤讀成排他或(恰好一者為真),這個式子會被判為假;MKO 的 ∨ 是含括或,允許兩者同時成立。
S04 · implies
操作前
\text{assume}\ 4\mid n\ (n\in\mathbb{Z}\ \text{arbitrary})操作後
n=4k\ \text{for some}\ k\in\mathbb{Z}條件:無
規則:divides_def · 依賴:G2
葉節點依據:divides_def + exists_elim
要證 ∀n (P(n)→Q(n)):任取整數 n,不加額外假設,並在暫時假設 4∣n 的範圍內推理。依整除定義,有整數 k 使 n=4k(以新名字 k 表示這個見證)。
S05 · implies
操作前
n=4k
操作後
n=2(2k),\ 2k\in\mathbb{Z},\ \text{so}\ 2\mid n條件:無
規則:mul_assoc · 依賴:S04
葉節點依據:mul_assoc + divides_def + exists_intro + numeric_evaluation
4=2·2,依乘法結合律 4k=(2·2)k=2(2k);2k 是整數(整數對乘法封閉),所以依整除定義 2∣n。
S06 · implies
操作前
\text{under the assumption}\ 4\mid n:\ 2\mid n操作後
\forall n\in\mathbb{Z}:\ P(n)\to Q(n)條件:無
規則:imp_intro · 依賴:S04, S05
葉節點依據:imp_intro + forall_intro
在暫時假設 4∣n 下推出了 2∣n,依 →引入釋放假設得 P(n)→Q(n);n 是任取的,依全稱推廣得 ∀n∈ℤ (P(n)→Q(n))。這只證了一個方向。
S07 · implies
操作前
n=2
操作後
Q(2):\ 2=2\cdot 1,\ \mathrm{T}條件:無
規則:divides_def · 依賴:G2
葉節點依據:divides_def + exists_intro + numeric_evaluation
檢查反方向 Q(n)→P(n)。取 n=2:2=2·1,1 是整數,所以 2∣2,Q(2) 為真。
S08 · case_split
操作前
k\in\mathbb{Z}\ \text{with}\ 4k=2\ ?操作後
k\le 0\ \lor\ k\ge 1
條件:k\in\mathbb{Z}
規則:int_no_gap · 依賴:G2
葉節點依據:int_no_gap + case_analysis
P(2) 為真需要整數 k 使 4k=2。依 int_no_gap(m=0),每個整數 k 滿足 k≤0 或 k≥1,兩支在 S08.1、S08.2 處理。
S09 · implies
操作前
Q(2)=\mathrm{T},\ \neg\exists k\in\mathbb{Z}:\ 4k=2操作後
P(2)=\mathrm{F};\ Q(2)\to P(2)=\mathrm{F};\ \neg\forall n\,(Q(n)\to P(n))條件:無
規則:quantifier_negation · 依賴:S07, S08, S08.1, S08.2
葉節點依據:case_analysis + truth_table + quantifier_negation
兩支都得 4k≠2,所以沒有整數 k 使 4k=2,P(2) 為假。依 → 的真值條件,前件真、後件假時蘊涵為假,所以 Q(2)→P(2) 為假。n=2 是反例,依量詞否定 ∀n∈ℤ (Q(n)→P(n)) 為假。
S10 · implies
操作前
\forall n\,(P(n)\to Q(n))\ \text{true},\ \forall n\,(Q(n)\to P(n))\ \text{false}操作後
\forall n\in\mathbb{Z}:\ P(n)\leftrightarrow Q(n)\ \text{is false}條件:無
規則:contradiction · 依賴:S06, S09
葉節點依據:contradiction + iff_intro + forall_elim
假設 ∀n (P(n)↔Q(n)) 為真。取 n=2 得 P(2)↔Q(2),依雙條件的定義推出 Q(2)→P(2),與 S09 矛盾。所以這個全稱雙條件為假。S06 證明的方向對所有 n 都成立,但只有一個方向不足以得到雙條件。
S11 · implies
操作前
n=3
操作後
P(3)=\mathrm{F},\ Q(3)=\mathrm{F}條件:無
規則:divides_def · 依賴:G2
葉節點依據:divides_def + int_no_gap + order_basics
n=3 的兩個成分都為假:S11.1 證明沒有整數 k 使 4k=3,S11.2 證明沒有整數 k 使 2k=3。
S12 · implies
操作前
P(3)=\mathrm{F},\ Q(3)=\mathrm{F}操作後
P(3)\to Q(3)=\mathrm{T}條件:無
規則:truth_table · 依賴:S11, S11.1, S11.2, S06
葉節點依據:truth_table + forall_elim
依 → 的真值條件,前件為假時蘊涵為真,所以 P(3)→Q(3) 為真;這也與 S06 在 n=3 的特例一致(∀消去)。雖然 2∤3,這個蘊涵仍為真:它的真假只看真值,不表示 4∣3 會「導致」什麼。
S13 · implies
操作前
2+2=4,\ 7=2\cdot 3+1
操作後
(2+2=4)\to(7\ \text{is odd})=\mathrm{T}條件:無
規則:truth_table · 依賴:G3, S01
葉節點依據:truth_table + exists_intro + numeric_evaluation
2+2=4 為真;7=2·3+1,3 是整數,所以 7 是奇數,為真。依 → 的真值條件,真→真為真。兩個命題之間沒有任何因果或推導關係,蘊涵仍為真:材料蘊涵只是一個真值條件,不表示因果,也不表示時間先後。
S14 · implies
操作前
\neg Q(2)\land P(2)\quad\text{vs}\quad\neg(Q(2)\land P(2))操作後
\mathrm{F}\quad\text{vs}\quad\mathrm{T}條件:無
規則:truth_table · 依賴:S07, S09
葉節點依據:truth_table
Q(2) 為真(S07),P(2) 為假(S09)。在 ¬Q(2)∧P(2) 中,¬ 只作用於 Q(2),最外層連接詞是 ∧:¬T∧F=F∧F=F。在 ¬(Q(2)∧P(2)) 中,最外層連接詞是 ¬:Q(2)∧P(2)=T∧F=F,取否定得 T。括號改變了最外層連接詞,也改變了真值。
S15 · implies
操作前
\text{conclusions of S03, S06, S09, S10, S12, S13, S14}操作後
\text{answers to parts (1) to (5)}條件:無
規則:and_intro_elim · 依賴:S03, S06, S09, S10, S12, S13, S14
葉節點依據:and_intro_elim
(1) 「4∣12 ∨ 6∣12」為真(S03);(2) ∀n (P(n)→Q(n)) 已證(S06);(3) ∀n (Q(n)→P(n)) 為假(S09),所以 ∀n (P(n)↔Q(n)) 為假(S10);(4) P(3)→Q(3) 與「2+2=4 → 7 是奇數」都為真(S12、S13);(5) ¬Q(2)∧P(2) 為假、¬(Q(2)∧P(2)) 為真(S14)。