S001 · implies
操作前
N includes0;F(0)=1;F(j)=j·F(j−1)
操作後
exact integer products,not floating values or a permutation proof
條件:無
階乘使用空乘積1及逐因子整數乘積,所有大數精確保留;有限遞迴核對不冒充一般排列計數證明。
步驟識別與依賴
規則:exact_factorial_protocol · 依賴:G001
R0012-06755 · q-20261010-advance-20261014-r05-factorial-0080
N從0起;BigInt精確階乘;n=6、k=5∈[1,n]。依序求 (n!, 省去一次k的乘積n!/k, k回乘後減n!)。
G001 — N從0起;BigInt精確階乘;n=6、k=5∈[1,n]。依序求 (n!, 省去一次k的乘積n!/k, k回乘後減n!)。沿用原題明示的論域、假設與來源 MKO 定義。本題已完成第二對話數理與中英語義覆核,並由原始參數逐題獨立重算模型、答案與每個算術步驟;原題仍為 candidate。
操作前
N includes0;F(0)=1;F(j)=j·F(j−1)
操作後
exact integer products,not floating values or a permutation proof
條件:無
階乘使用空乘積1及逐因子整數乘積,所有大數精確保留;有限遞迴核對不冒充一般排列計數證明。
規則:exact_factorial_protocol · 依賴:G001
操作前
actual factorial:start at F(0)
操作後
F(0)=1
條件:無
0個因子的空乘積是1,不是0;這是後繼遞推的起點。
規則:factorial_empty_product_base · 依賴:G001, S001
操作前
actual factorial through factor1 := mul(1, 1)
操作後
actual factorial through factor1 = 1
條件:無
把新正整數因子乘入前一階乘值,保留全部中間整數。
規則:exact_rational_arithmetic · 依賴:G001, S002
操作前
actual factorial through factor2 := mul(1, 2)
操作後
actual factorial through factor2 = 2
條件:無
把新正整數因子乘入前一階乘值,保留全部中間整數。
規則:exact_rational_arithmetic · 依賴:G001, S003
操作前
actual factorial through factor3 := mul(2, 3)
操作後
actual factorial through factor3 = 6
條件:無
把新正整數因子乘入前一階乘值,保留全部中間整數。
規則:exact_rational_arithmetic · 依賴:G001, S004
操作前
actual factorial through factor4 := mul(6, 4)
操作後
actual factorial through factor4 = 24
條件:無
把新正整數因子乘入前一階乘值,保留全部中間整數。
規則:exact_rational_arithmetic · 依賴:G001, S005
操作前
actual factorial through factor5 := mul(24, 5)
操作後
actual factorial through factor5 = 120
條件:無
把新正整數因子乘入前一階乘值,保留全部中間整數。
規則:exact_rational_arithmetic · 依賴:G001, S006
操作前
actual factorial through factor6 := mul(120, 6)
操作後
actual factorial through factor6 = 720
條件:無
把新正整數因子乘入前一階乘值,保留全部中間整數。
規則:exact_rational_arithmetic · 依賴:G001, S007
操作前
single-factor-omitted product := div(720, 5)
操作後
single-factor-omitted product = 144
條件:無
k在1至n因子列中恰出現一次且非零,除去這一因子即n!/k。
規則:exact_rational_arithmetic · 依賴:G001, S008
操作前
restore omitted factor := mul(5, 144)
操作後
restore omitted factor = 720
條件:無
把同一k乘回,核對完整乘積。
規則:exact_rational_arithmetic · 依賴:G001, S009
操作前
restored product minus factorial := sub(720, 720)
操作後
restored product minus factorial = 0
條件:無
回乘值減真階乘應為0。
規則:exact_rational_arithmetic · 依賴:G001, S010
操作前
removed factor k=5;full n!=720
操作後
omitted product=144;restoration residual=0
條件:無
只省指定因子一次,不是把所有k的倍數因子一起省掉;以正整數除法和回乘雙向核對。
規則:single_factor_removal_reverse_audit · 依賴:G001, S011
S012 · premise_and_result_audit — 回到原始資料與本步條件核對,不把單向推論誤稱等價。S011 · premise_and_result_audit — 以精確有理數重算 restored product minus factorial,不以小數近似替代。S010 · premise_and_result_audit — 以精確有理數重算 restore omitted factor,不以小數近似替代。S009 · premise_and_result_audit — 以精確有理數重算 single-factor-omitted product,不以小數近似替代。S008 · premise_and_result_audit — 以精確有理數重算 actual factorial through factor6,不以小數近似替代。S007 · premise_and_result_audit — 以精確有理數重算 actual factorial through factor5,不以小數近似替代。S006 · premise_and_result_audit — 以精確有理數重算 actual factorial through factor4,不以小數近似替代。S005 · premise_and_result_audit — 以精確有理數重算 actual factorial through factor3,不以小數近似替代。S004 · premise_and_result_audit — 以精確有理數重算 actual factorial through factor2,不以小數近似替代。S003 · premise_and_result_audit — 以精確有理數重算 actual factorial through factor1,不以小數近似替代。S002 · premise_and_result_audit — 回到原始資料與本步條件核對,不把單向推論誤稱等價。S001 · premise_and_result_audit — 回到原始資料與本步條件核對,不把單向推論誤稱等價。(720, 144, 0)
依上列完整代值及條件核對得到原題答案;原題編號、格式與狀態保持不變。
覆核日期:2026-10-26
原題、答案、步驟表達式、數值 AST 與既有歷史保持原樣;原來的候選狀態屬於來源歷史,不覆寫為形式化證明。
input commit: 0f7be61e2c22317a4075561dc822c87d881a50dboriginal question SHA-256: 335f8a2cc77dc05f19336331f8f8db49998bb135ca3f8ab3839fad263b35941ccandidate record SHA-256: 40e63694340ff2050cdd9a7a0dd069252792843fe53ca7a1356e3d8f935e4132semantic review receipt SHA-256: 90dbc494b2d34ef51f412dcff63cfcc1a2215d038bff71f38f5dded4c64faf00question-first witness SHA-256: b72a3b8bcf10f584396e0dd5198c657b0934a71864e5a3fa6321d7a613aef9f9Lean: NOT_RUN · human review: NOT_PERFORMED