逐步主鏈
S01 · definition
操作前
L(x)=R(x)\ \text{over}\ \mathbb{R}操作後
\mathcal{S}=\{x\in\mathbb{R}\mid L(x),R(x)\ \text{defined}\ \land\ L(x)=R(x)\}條件:無
規則:mko_equation · 依賴:G1, G2, G3
葉節點依據:mko_equation + set_builder
依 MKO,方程的解集不是「讓式子看起來相等的數」,而是同時滿足兩個條件的允許 x:兩側都有定義,而且值相等。這裡允許範圍是 ℝ,運算是實數運算(G1)。之後每一步都要同時追蹤「有定義」與「相等」這兩個條件。
S02 · equivalent
操作前
L(x)\ \text{and}\ R(x)\ \text{defined}操作後
x-1\neq 0
條件:無
規則:mul_inverse_nonzero · 依賴:G1, G2
葉節點依據:mul_inverse_nonzero + def_unfold
L(x)=x²/(x−1) 與 R(x)=1/(x−1) 各只含一個除法,除數都是 x−1;分子 x² 與 1 對每個實數都有定義。依 mul_inverse_nonzero,v/u 有定義當且僅當 u≠0,所以兩側都有定義 ⇔ x−1≠0。
S03 · equivalent
操作前
x-1\neq 0
操作後
x\neq 1;\quad D=\{x\in\mathbb{R}\mid x\neq 1\}條件:無
規則:L_zero_diff · 依賴:S02
葉節點依據:eq_congruence + add_assoc + add_inverse + add_zero
依引理 L_zero_diff(u=x、c=1),x−1=0 ⇔ x=1;兩邊同取否定得 x−1≠0 ⇔ x≠1。所以兩側都有定義的 x 恰是 D={x∈ℝ ∣ x≠1},而且 𝒮⊆D。
S04 · equivalent
操作前
\frac{x^2}{x-1}=\frac{1}{x-1},\ x\in D操作後
x^2=1,\ x\in D
條件:x-1\neq 0
規則:L_den · 依賴:S03, G2
葉節點依據:eq_congruence + mul_inverse_nonzero + mul_assoc + mul_one
對 x∈D,x−1≠0。依引理 L_den(a=x²、b=1、u=x−1):x²/(x−1)=1/(x−1) ⇔ x²=1。這個等價只在 D 中成立:它的條件 u≠0 正是 x∈D。
S05 · equivalent
操作前
x^2=1
操作後
x^2-1=0
條件:無
規則:L_zero_diff · 依賴:S04
葉節點依據:eq_congruence + add_inverse + add_assoc + add_zero
依引理 L_zero_diff(u=x²、c=1):x²−1=0 ⇔ x²=1。把方程整理成「某式=0」,才能使用零乘積性質。
S06 · equivalent
操作前
x^2-1=0
操作後
(x-1)(x+1)=0
條件:無
規則:distributive · 依賴:S05
葉節點依據:distributive + neg_mul + add_inverse + eq_replace
依分配律:(x−1)(x+1)=x·x+x·1−1·x−1·1=x²+x−x−1=x²−1。兩式對每個實數相等,代換後等式真假不變。
S07 · equivalent
操作前
(x-1)(x+1)=0
操作後
x-1=0\ \lor\ x+1=0
條件:無
規則:zero_product · 依賴:S06
葉節點依據:zero_product
依零乘積性質(ℝ 沒有零因子):兩個實數的積為 0,當且僅當至少一個因子為 0。
S08 · equivalent
操作前
x-1=0\ \lor\ x+1=0
操作後
x=1\ \lor\ x=-1
條件:無
規則:L_zero_diff · 依賴:S07
葉節點依據:eq_congruence + add_inverse + add_zero + numeric_evaluation
依引理 L_zero_diff:x−1=0 ⇔ x=1;又 x+1=x−(−1),所以 x+1=0 ⇔ x=−1。兩個析取支各自等價變形,析取前後同真同假。
S09 · equivalent
操作前
x\in D:\ L(x)=R(x)
操作後
\mathcal{S}=\{x\in\mathbb{R}\mid x\in D\ \land\ (x=1\lor x=-1)\}條件:x\in D
規則:logic_chain · 依賴:S01, S03, S04, S05, S06, S07, S08
葉節點依據:logic_chain + set_builder
S04 到 S08 每一步都是 x∈D 條件下的等價,依推論的傳遞串起來:對 x∈D,L(x)=R(x) ⇔ x=1 ∨ x=−1。再配合 S01 與 S03(有定義 ⇔ x∈D),得 𝒮={x∈ℝ ∣ x∈D 且 (x=1 或 x=−1)}。
S10 · implies
操作前
x=1
操作後
1\notin D,\ \text{so}\ 1\notin\mathcal{S}條件:無
規則:set_builder · 依賴:S03, S09
葉節點依據:set_builder + numeric_evaluation
候選值 x=1:1−1=0,所以 1∉D,L(1) 與 R(1) 都含除以 0,都沒有定義。依 S09 的集合條件,1∉𝒮。這個候選值滿足 x²=1,但不屬於原方程的解集。
S11 · implies
操作前
x=-1
操作後
-1\in D,\ \text{so}\ -1\in\mathcal{S}條件:-1-1\neq 0
規則:set_builder · 依賴:S03, S09
葉節點依據:set_builder + numeric_evaluation
候選值 x=−1:−1−1=−2≠0,所以 −1∈D;而且 x=−1 滿足析取的第二支。依 S09 的集合條件,兩個合取項都成立,所以 −1∈𝒮。
S12 · implies
操作前
x\in\mathcal{S}\iff x\in D\land(x=1\lor x=-1)操作後
\mathcal{S}=\{-1\}條件:無
規則:set_extensionality · 依賴:S09, S10, S11
葉節點依據:set_extensionality + case_analysis
對任意 x:若 x∈𝒮,則 x∈D 且 x=1 或 x=−1;x=1 與 x∈D 不相容(S10),所以 x=−1。反之 x=−1 時 x∈𝒮(S11)。兩個包含合起來,依集合相等,𝒮={−1}。
S13 · implies
操作前
x=-1\ \text{in}\ L,\ R操作後
L(-1)=\frac{1}{-2}=-\tfrac{1}{2}=R(-1)條件:無
規則:numeric_evaluation · 依賴:S12, G2
葉節點依據:numeric_evaluation + frac_rules
依 MKO,驗證候選解要把值代入原方程,兩側分別計算:L(−1)=(−1)²/(−1−1)=1/(−2)=−1/2;R(−1)=1/(−1−1)=−1/2。兩側都有定義且相等,與 S12 一致。
S14 · implies
操作前
\{x\in\mathbb{R}\mid x^2=1\}操作後
\{-1,1\}\supsetneq\mathcal{S}=\{-1\}條件:無
規則:set_extensionality · 依賴:S05, S06, S07, S08, S12
葉節點依據:set_extensionality + logic_chain
若忽略定義域,把兩邊乘以 x−1 後在整個 ℝ 上解 x²=1,S05 到 S08 的等價(它們不依賴 x∈D)給出 {−1,1}。多出來的 1 正是乘數 x−1 為 0 的地方:乘以 x−1 能把原方程的解帶到新方程,但在 x−1=0 處不能乘 1/(x−1) 回去,所以新方程多了一個不屬於原方程的解。
S15 · implies
操作前
\mathcal{S}=\{-1\},\ \{x\mid x^2=1\}=\{-1,1\}操作後
\text{answer: }\mathcal{S}=\{-1\};\ 1\ \text{excluded since}\ 1\notin D條件:無
規則:and_intro_elim · 依賴:S12, S13, S14
葉節點依據:and_intro_elim
原方程 x²/(x−1)=1/(x−1) 在 ℝ 中的解集是 {−1};x²=1 的另一個解 1 因兩側在 x=1 沒有定義而被排除。