行列式と Cramer の公式・Cayley–Hamilton(2×2・3×3)
import /Freeks/2.book(section 2 まで)
可換環 \(X\) の上の 2×2・3×3 行列を成分で表し、積・行列式・余因子行列を成分の式で書く(新しい語は足さない)。#97(行列式と Cramer の公式)と #49(Cayley–Hamilton)の**部分版(\(n=2, 3\))**。一般の \(n\) の行列式(置換の和)は大きい土台が要るので扱わない。順序も割り算も使わず、一般の可換環の恒等式として示す。
行列 \(\begin{pmatrix} a & b \\ c & d \end{pmatrix}\)(3×3 は \(a, \ldots, i\) を行ごとに並べたもの)の積・\(\det\)・\(\operatorname{tr}\) は、定理の中で \(p = ae + bg\) のように導出変数の式として置く。環の恒等式は、多項式が大きいと Prover9 が時間切れになるので、隠し補題と環の公理だけの小さな段に分けて示した。
1 隠し補題(環の恒等式)
2 #97 2×2 の行列式と Cramer の公式
\(\det(AB) = \det A \cdot \det B\)。積 \(AB\) の成分を \(p, q, r, s\) と置く。
Mdet2 …
\(( X , \textit{0} , \textit{1} , [-] , [+] , [\cdot] ) :\mathsf{CRing} \Longrightarrow \forall a , b , c , d , e , f , g , h \in X . \forall p , q , r , s , u , v \in X . ( p = a \cdot e + b \cdot g , q = a \cdot f + b \cdot h , r = c \cdot e + d \cdot g , s = c \cdot f + d \cdot h , u = a \cdot d - b \cdot c , v = e \cdot h - f \cdot g \Longrightarrow p \cdot s - q \cdot r = u \cdot v )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+Cramer:\(A\binom{x}{y} = \binom{u}{v}\) の解は \(\det A \cdot x = \det A_1\)、\(\det A \cdot y = \det A_2\)(\(A_i\) は第 \(i\) 列を右辺で置き換えた行列)。\(\det A\) が単元(\(z \det A = 1\))なら \(x = z \det A_1\) と割れる。
Mcr2 …
\(( X , \textit{0} , \textit{1} , [-] , [+] , [\cdot] ) :\mathsf{CRing} \Longrightarrow \forall a , b , c , d , x , y \in X . \forall u , v , w \in X . ( u = a \cdot x + b \cdot y , v = c \cdot x + d \cdot y , w = a \cdot d - b \cdot c \Longrightarrow w \cdot x = u \cdot d - b \cdot v , w \cdot y = a \cdot v - u \cdot c )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+Mcr2u …
\(( X , \textit{0} , \textit{1} , [-] , [+] , [\cdot] ) :\mathsf{CRing} \Longrightarrow \forall a , b , c , d , x , y , z \in X . \forall u , v , w \in X . ( u = a \cdot x + b \cdot y , v = c \cdot x + d \cdot y , w = a \cdot d - b \cdot c , z \cdot w = \textit{1} \Longrightarrow x = z \cdot ( u \cdot d - b \cdot v ) , y = z \cdot ( a \cdot v - u \cdot c ) )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+3 #49 Cayley–Hamilton(2×2)
\(A^2 - (\operatorname{tr}A)\,A + (\det A)\,I = 0\)。成分ごとに、\(A^2\) の成分を \(p, q, r, s\)、\(t = \operatorname{tr}A\)、\(w = \det A\) として書く。
Mch2 …
\(( X , \textit{0} , \textit{1} , [-] , [+] , [\cdot] ) :\mathsf{CRing} \Longrightarrow \forall a , b , c , d \in X . \forall p , q , r , s , t , w \in X . ( p = a \cdot a + b \cdot c , q = a \cdot b + b \cdot d , r = c \cdot a + d \cdot c , s = c \cdot b + d \cdot d , t = a + d , w = a \cdot d - b \cdot c \Longrightarrow p + w = t \cdot a , q = t \cdot b , r = t \cdot c , s + w = t \cdot d )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+4 #97 3×3 の行列式・余因子行列・Cramer の公式
\(\det(AB) = \det A \cdot \det B\)(3×3)。\(AB\) の成分を \(A, \ldots, I\)(行ごと)、\(s = \det A\)、\(t = \det B\)、\(u = \det(AB)\)(第 1 行での展開)と置く。第 1 行の余因子が \(A\) の 2×2 小行列式と \(B\) の余因子の和で書ける(Binet–Cauchy)ことから示す。
Mdet3 …
\(( X , \textit{0} , \textit{1} , [-] , [+] , [\cdot] ) :\mathsf{CRing} \Longrightarrow \forall a , b , c , d , e , f , g , h , i , j , k , l , m , n , o , p , q , r \in X . \forall A , B , C , D , E , F , G , H , I , s , t , u \in X . ( A = a \cdot j + b \cdot m + c \cdot p , B = a \cdot k + b \cdot n + c \cdot q , C = a \cdot l + b \cdot o + c \cdot r , D = d \cdot j + e \cdot m + f \cdot p , E = d \cdot k + e \cdot n + f \cdot q , F = d \cdot l + e \cdot o + f \cdot r , G = g \cdot j + h \cdot m + i \cdot p , H = g \cdot k + h \cdot n + i \cdot q , I = g \cdot l + h \cdot o + i \cdot r , s = a \cdot ( e \cdot i - f \cdot h ) + b \cdot ( f \cdot g - d \cdot i ) + c \cdot ( d \cdot h - e \cdot g ) , t = j \cdot ( n \cdot r - o \cdot q ) + k \cdot ( o \cdot p - m \cdot r ) + l \cdot ( m \cdot q - n \cdot p ) , u = A \cdot ( E \cdot I - F \cdot H ) + B \cdot ( F \cdot G - D \cdot I ) + C \cdot ( D \cdot H - E \cdot G ) \Longrightarrow u = s \cdot t )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+余因子行列 \(\operatorname{adj}A\) の成分を \(j, \ldots, r\)(行ごと)、\(w = \det A\)(第 1 行での展開)と置くと \(A \cdot \operatorname{adj}A = w I\)。
Madj3 …
\(( X , \textit{0} , \textit{1} , [-] , [+] , [\cdot] ) :\mathsf{CRing} \Longrightarrow \forall a , b , c , d , e , f , g , h , i \in X . \forall j , k , l , m , n , o , p , q , r , w \in X . ( j = e \cdot i - f \cdot h , k = c \cdot h - b \cdot i , l = b \cdot f - c \cdot e , m = f \cdot g - d \cdot i , n = a \cdot i - c \cdot g , o = c \cdot d - a \cdot f , p = d \cdot h - e \cdot g , q = b \cdot g - a \cdot h , r = a \cdot e - b \cdot d , w = a \cdot ( e \cdot i - f \cdot h ) + b \cdot ( f \cdot g - d \cdot i ) + c \cdot ( d \cdot h - e \cdot g ) \Longrightarrow a \cdot j + b \cdot m + c \cdot p = w , a \cdot k + b \cdot n + c \cdot q = \textit{0} , a \cdot l + b \cdot o + c \cdot r = \textit{0} , d \cdot j + e \cdot m + f \cdot p = \textit{0} , d \cdot k + e \cdot n + f \cdot q = w , d \cdot l + e \cdot o + f \cdot r = \textit{0} , g \cdot j + h \cdot m + i \cdot p = \textit{0} , g \cdot k + h \cdot n + i \cdot q = \textit{0} , g \cdot l + h \cdot o + i \cdot r = w )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+Cramer:\(A\,(x, y, z)^T = (s, t, u)^T\) の解について \(\det A \cdot x = j\)、\(\det A \cdot y = k\)、\(\det A \cdot z = l\)。\(j, k, l\) は \(\operatorname{adj}A\) の第 1, 2, 3 行と右辺の内積(= 第 \(i\) 列を右辺で置き換えた行列の行列式)。
Mcr3 …
\(( X , \textit{0} , \textit{1} , [-] , [+] , [\cdot] ) :\mathsf{CRing} \Longrightarrow \forall a , b , c , d , e , f , g , h , i , x , y , z \in X . \forall s , t , u , j , k , l , w \in X . ( s = a \cdot x + b \cdot y + c \cdot z , t = d \cdot x + e \cdot y + f \cdot z , u = g \cdot x + h \cdot y + i \cdot z , j = s \cdot ( e \cdot i - f \cdot h ) + t \cdot ( c \cdot h - b \cdot i ) + u \cdot ( b \cdot f - c \cdot e ) , k = s \cdot ( f \cdot g - d \cdot i ) + t \cdot ( a \cdot i - c \cdot g ) + u \cdot ( c \cdot d - a \cdot f ) , l = s \cdot ( d \cdot h - e \cdot g ) + t \cdot ( b \cdot g - a \cdot h ) + u \cdot ( a \cdot e - b \cdot d ) , w = a \cdot ( e \cdot i - f \cdot h ) + b \cdot ( f \cdot g - d \cdot i ) + c \cdot ( d \cdot h - e \cdot g ) \Longrightarrow w \cdot x = j , w \cdot y = k , w \cdot z = l )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+5 #49 Cayley–Hamilton(3×3)
\(A^3 - (\operatorname{tr}A)\,A^2 + c_2\,A - (\det A)\,I = 0\)(\(c_2\) は主小行列式の和)を \(A^3 + c_2 A = (\operatorname{tr}A) A^2 + (\det A) I\) の形で。\(A^2\) の成分を \(j, \ldots, r\)、\(t = \operatorname{tr}A\)、\(s = c_2\)、\(w = \det A\) と置く。
Mch3 …
\(( X , \textit{0} , \textit{1} , [-] , [+] , [\cdot] ) :\mathsf{CRing} \Longrightarrow \forall a , b , c , d , e , f , g , h , i \in X . \forall t , s , w , j , k , l , m , n , o , p , q , r \in X . ( t = a + e + i , s = ( a \cdot e - b \cdot d ) + ( a \cdot i - c \cdot g ) + ( e \cdot i - f \cdot h ) , w = a \cdot ( e \cdot i - f \cdot h ) + b \cdot ( f \cdot g - d \cdot i ) + c \cdot ( d \cdot h - e \cdot g ) , j = a \cdot a + b \cdot d + c \cdot g , k = a \cdot b + b \cdot e + c \cdot h , l = a \cdot c + b \cdot f + c \cdot i , m = d \cdot a + e \cdot d + f \cdot g , n = d \cdot b + e \cdot e + f \cdot h , o = d \cdot c + e \cdot f + f \cdot i , p = g \cdot a + h \cdot d + i \cdot g , q = g \cdot b + h \cdot e + i \cdot h , r = g \cdot c + h \cdot f + i \cdot i \Longrightarrow a \cdot j + b \cdot m + c \cdot p + s \cdot a = t \cdot j + w , a \cdot k + b \cdot n + c \cdot q + s \cdot b = t \cdot k , a \cdot l + b \cdot o + c \cdot r + s \cdot c = t \cdot l , d \cdot j + e \cdot m + f \cdot p + s \cdot d = t \cdot m , d \cdot k + e \cdot n + f \cdot q + s \cdot e = t \cdot n + w , d \cdot l + e \cdot o + f \cdot r + s \cdot f = t \cdot o , g \cdot j + h \cdot m + i \cdot p + s \cdot g = t \cdot p , g \cdot k + h \cdot n + i \cdot q + s \cdot h = t \cdot q , g \cdot l + h \cdot o + i \cdot r + s \cdot i = t \cdot r + w )\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,\(0 \in \mathbb{M}\) ,𝕄0 ,INDC ,ℤ+