MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  cramerimp Structured version   Unicode version

Theorem cramerimp 19314
Description: One direction of Cramer's rule (according to Wikipedia "Cramer's rule", 21-Feb-2019, https://en.wikipedia.org/wiki/Cramer%27s_rule: "[Cramer's rule] ... expresses the solution [of a system of linear equations] in terms of the determinants of the (square) coefficient matrix and of matrices obtained from it by replacing one column by the column vector of right-hand sides of the equations."): The ith component of the solution vector of a system of linear equations equals the determinant of the matrix of the system of linear equations with the ith column replaced by the righthand side vector of the system of linear equations divided by the determinant of the matrix of the system of linear equations. (Contributed by AV, 19-Feb-2019.) (Revised by AV, 1-Mar-2019.)
Hypotheses
Ref Expression
cramerimp.a  |-  A  =  ( N Mat  R )
cramerimp.b  |-  B  =  ( Base `  A
)
cramerimp.v  |-  V  =  ( ( Base `  R
)  ^m  N )
cramerimp.e  |-  E  =  ( ( ( 1r
`  A ) ( N matRepV  R ) Z ) `
 I )
cramerimp.h  |-  H  =  ( ( X ( N matRepV  R ) Y ) `
 I )
cramerimp.x  |-  .x.  =  ( R maVecMul  <. N ,  N >. )
cramerimp.d  |-  D  =  ( N maDet  R )
cramerimp.q  |-  ./  =  (/r
`  R )
Assertion
Ref Expression
cramerimp  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V )  /\  (
( X  .x.  Z
)  =  Y  /\  ( D `  X )  e.  (Unit `  R
) ) )  -> 
( Z `  I
)  =  ( ( D `  H ) 
./  ( D `  X ) ) )

Proof of Theorem cramerimp
StepHypRef Expression
1 crngring 17335 . . . . . 6  |-  ( R  e.  CRing  ->  R  e.  Ring )
21adantr 465 . . . . 5  |-  ( ( R  e.  CRing  /\  I  e.  N )  ->  R  e.  Ring )
323ad2ant1 1017 . . . 4  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V )  /\  (
( X  .x.  Z
)  =  Y  /\  ( D `  X )  e.  (Unit `  R
) ) )  ->  R  e.  Ring )
4 cramerimp.d . . . . . . . 8  |-  D  =  ( N maDet  R )
5 cramerimp.a . . . . . . . 8  |-  A  =  ( N Mat  R )
6 cramerimp.b . . . . . . . 8  |-  B  =  ( Base `  A
)
7 eqid 2457 . . . . . . . 8  |-  ( Base `  R )  =  (
Base `  R )
84, 5, 6, 7mdetf 19223 . . . . . . 7  |-  ( R  e.  CRing  ->  D : B
--> ( Base `  R
) )
98adantr 465 . . . . . 6  |-  ( ( R  e.  CRing  /\  I  e.  N )  ->  D : B --> ( Base `  R
) )
1093ad2ant1 1017 . . . . 5  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V )  /\  (
( X  .x.  Z
)  =  Y  /\  ( D `  X )  e.  (Unit `  R
) ) )  ->  D : B --> ( Base `  R ) )
11 cramerimp.e . . . . . 6  |-  E  =  ( ( ( 1r
`  A ) ( N matRepV  R ) Z ) `
 I )
125, 6matrcl 19040 . . . . . . . . . . 11  |-  ( X  e.  B  ->  ( N  e.  Fin  /\  R  e.  _V ) )
1312simpld 459 . . . . . . . . . 10  |-  ( X  e.  B  ->  N  e.  Fin )
1413adantr 465 . . . . . . . . 9  |-  ( ( X  e.  B  /\  Y  e.  V )  ->  N  e.  Fin )
152, 14anim12i 566 . . . . . . . 8  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V ) )  -> 
( R  e.  Ring  /\  N  e.  Fin )
)
16153adant3 1016 . . . . . . 7  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V )  /\  (
( X  .x.  Z
)  =  Y  /\  ( D `  X )  e.  (Unit `  R
) ) )  -> 
( R  e.  Ring  /\  N  e.  Fin )
)
17 ne0i 3799 . . . . . . . . . . 11  |-  ( I  e.  N  ->  N  =/=  (/) )
181, 17anim12ci 567 . . . . . . . . . 10  |-  ( ( R  e.  CRing  /\  I  e.  N )  ->  ( N  =/=  (/)  /\  R  e. 
Ring ) )
1918anim1i 568 . . . . . . . . 9  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V ) )  -> 
( ( N  =/=  (/)  /\  R  e.  Ring )  /\  ( X  e.  B  /\  Y  e.  V ) ) )
20193adant3 1016 . . . . . . . 8  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V )  /\  (
( X  .x.  Z
)  =  Y  /\  ( D `  X )  e.  (Unit `  R
) ) )  -> 
( ( N  =/=  (/)  /\  R  e.  Ring )  /\  ( X  e.  B  /\  Y  e.  V ) ) )
21 simpl 457 . . . . . . . . 9  |-  ( ( ( X  .x.  Z
)  =  Y  /\  ( D `  X )  e.  (Unit `  R
) )  ->  ( X  .x.  Z )  =  Y )
22213ad2ant3 1019 . . . . . . . 8  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V )  /\  (
( X  .x.  Z
)  =  Y  /\  ( D `  X )  e.  (Unit `  R
) ) )  -> 
( X  .x.  Z
)  =  Y )
23 cramerimp.v . . . . . . . . 9  |-  V  =  ( ( Base `  R
)  ^m  N )
24 cramerimp.x . . . . . . . . 9  |-  .x.  =  ( R maVecMul  <. N ,  N >. )
255, 6, 23, 24slesolvec 19307 . . . . . . . 8  |-  ( ( ( N  =/=  (/)  /\  R  e.  Ring )  /\  ( X  e.  B  /\  Y  e.  V )
)  ->  ( ( X  .x.  Z )  =  Y  ->  Z  e.  V ) )
2620, 22, 25sylc 60 . . . . . . 7  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V )  /\  (
( X  .x.  Z
)  =  Y  /\  ( D `  X )  e.  (Unit `  R
) ) )  ->  Z  e.  V )
27 simpr 461 . . . . . . . 8  |-  ( ( R  e.  CRing  /\  I  e.  N )  ->  I  e.  N )
28273ad2ant1 1017 . . . . . . 7  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V )  /\  (
( X  .x.  Z
)  =  Y  /\  ( D `  X )  e.  (Unit `  R
) ) )  ->  I  e.  N )
29 eqid 2457 . . . . . . . 8  |-  ( 1r
`  A )  =  ( 1r `  A
)
305, 6, 23, 29ma1repvcl 19198 . . . . . . 7  |-  ( ( ( R  e.  Ring  /\  N  e.  Fin )  /\  ( Z  e.  V  /\  I  e.  N
) )  ->  (
( ( 1r `  A ) ( N matRepV  R ) Z ) `
 I )  e.  B )
3116, 26, 28, 30syl12anc 1226 . . . . . 6  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V )  /\  (
( X  .x.  Z
)  =  Y  /\  ( D `  X )  e.  (Unit `  R
) ) )  -> 
( ( ( 1r
`  A ) ( N matRepV  R ) Z ) `
 I )  e.  B )
3211, 31syl5eqel 2549 . . . . 5  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V )  /\  (
( X  .x.  Z
)  =  Y  /\  ( D `  X )  e.  (Unit `  R
) ) )  ->  E  e.  B )
3310, 32ffvelrnd 6033 . . . 4  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V )  /\  (
( X  .x.  Z
)  =  Y  /\  ( D `  X )  e.  (Unit `  R
) ) )  -> 
( D `  E
)  e.  ( Base `  R ) )
34 simpr 461 . . . . 5  |-  ( ( ( X  .x.  Z
)  =  Y  /\  ( D `  X )  e.  (Unit `  R
) )  ->  ( D `  X )  e.  (Unit `  R )
)
35343ad2ant3 1019 . . . 4  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V )  /\  (
( X  .x.  Z
)  =  Y  /\  ( D `  X )  e.  (Unit `  R
) ) )  -> 
( D `  X
)  e.  (Unit `  R ) )
36 eqid 2457 . . . . 5  |-  (Unit `  R )  =  (Unit `  R )
37 cramerimp.q . . . . 5  |-  ./  =  (/r
`  R )
38 eqid 2457 . . . . 5  |-  ( .r
`  R )  =  ( .r `  R
)
397, 36, 37, 38dvrcan3 17467 . . . 4  |-  ( ( R  e.  Ring  /\  ( D `  E )  e.  ( Base `  R
)  /\  ( D `  X )  e.  (Unit `  R ) )  -> 
( ( ( D `
 E ) ( .r `  R ) ( D `  X
) )  ./  ( D `  X )
)  =  ( D `
 E ) )
403, 33, 35, 39syl3anc 1228 . . 3  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V )  /\  (
( X  .x.  Z
)  =  Y  /\  ( D `  X )  e.  (Unit `  R
) ) )  -> 
( ( ( D `
 E ) ( .r `  R ) ( D `  X
) )  ./  ( D `  X )
)  =  ( D `
 E ) )
41 simpl 457 . . . . . 6  |-  ( ( R  e.  CRing  /\  I  e.  N )  ->  R  e.  CRing )
42413ad2ant1 1017 . . . . 5  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V )  /\  (
( X  .x.  Z
)  =  Y  /\  ( D `  X )  e.  (Unit `  R
) ) )  ->  R  e.  CRing )
437, 36unitcl 17434 . . . . . . 7  |-  ( ( D `  X )  e.  (Unit `  R
)  ->  ( D `  X )  e.  (
Base `  R )
)
4443adantl 466 . . . . . 6  |-  ( ( ( X  .x.  Z
)  =  Y  /\  ( D `  X )  e.  (Unit `  R
) )  ->  ( D `  X )  e.  ( Base `  R
) )
45443ad2ant3 1019 . . . . 5  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V )  /\  (
( X  .x.  Z
)  =  Y  /\  ( D `  X )  e.  (Unit `  R
) ) )  -> 
( D `  X
)  e.  ( Base `  R ) )
467, 38crngcom 17339 . . . . 5  |-  ( ( R  e.  CRing  /\  ( D `  E )  e.  ( Base `  R
)  /\  ( D `  X )  e.  (
Base `  R )
)  ->  ( ( D `  E )
( .r `  R
) ( D `  X ) )  =  ( ( D `  X ) ( .r
`  R ) ( D `  E ) ) )
4742, 33, 45, 46syl3anc 1228 . . . 4  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V )  /\  (
( X  .x.  Z
)  =  Y  /\  ( D `  X )  e.  (Unit `  R
) ) )  -> 
( ( D `  E ) ( .r
`  R ) ( D `  X ) )  =  ( ( D `  X ) ( .r `  R
) ( D `  E ) ) )
4847oveq1d 6311 . . 3  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V )  /\  (
( X  .x.  Z
)  =  Y  /\  ( D `  X )  e.  (Unit `  R
) ) )  -> 
( ( ( D `
 E ) ( .r `  R ) ( D `  X
) )  ./  ( D `  X )
)  =  ( ( ( D `  X
) ( .r `  R ) ( D `
 E ) ) 
./  ( D `  X ) ) )
4914adantl 466 . . . . . 6  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V ) )  ->  N  e.  Fin )
5041adantr 465 . . . . . 6  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V ) )  ->  R  e.  CRing )
5127adantr 465 . . . . . 6  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V ) )  ->  I  e.  N )
5249, 50, 513jca 1176 . . . . 5  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V ) )  -> 
( N  e.  Fin  /\  R  e.  CRing  /\  I  e.  N ) )
53523adant3 1016 . . . 4  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V )  /\  (
( X  .x.  Z
)  =  Y  /\  ( D `  X )  e.  (Unit `  R
) ) )  -> 
( N  e.  Fin  /\  R  e.  CRing  /\  I  e.  N ) )
545, 6, 23, 11, 4cramerimplem1 19311 . . . 4  |-  ( ( ( N  e.  Fin  /\  R  e.  CRing  /\  I  e.  N )  /\  Z  e.  V )  ->  ( D `  E )  =  ( Z `  I ) )
5553, 26, 54syl2anc 661 . . 3  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V )  /\  (
( X  .x.  Z
)  =  Y  /\  ( D `  X )  e.  (Unit `  R
) ) )  -> 
( D `  E
)  =  ( Z `
 I ) )
5640, 48, 553eqtr3rd 2507 . 2  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V )  /\  (
( X  .x.  Z
)  =  Y  /\  ( D `  X )  e.  (Unit `  R
) ) )  -> 
( Z `  I
)  =  ( ( ( D `  X
) ( .r `  R ) ( D `
 E ) ) 
./  ( D `  X ) ) )
57 cramerimp.h . . . . 5  |-  H  =  ( ( X ( N matRepV  R ) Y ) `
 I )
585, 6, 23, 11, 57, 24, 4, 38cramerimplem3 19313 . . . 4  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V )  /\  ( X  .x.  Z )  =  Y )  ->  (
( D `  X
) ( .r `  R ) ( D `
 E ) )  =  ( D `  H ) )
59583adant3r 1225 . . 3  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V )  /\  (
( X  .x.  Z
)  =  Y  /\  ( D `  X )  e.  (Unit `  R
) ) )  -> 
( ( D `  X ) ( .r
`  R ) ( D `  E ) )  =  ( D `
 H ) )
6059oveq1d 6311 . 2  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V )  /\  (
( X  .x.  Z
)  =  Y  /\  ( D `  X )  e.  (Unit `  R
) ) )  -> 
( ( ( D `
 X ) ( .r `  R ) ( D `  E
) )  ./  ( D `  X )
)  =  ( ( D `  H ) 
./  ( D `  X ) ) )
6156, 60eqtrd 2498 1  |-  ( ( ( R  e.  CRing  /\  I  e.  N )  /\  ( X  e.  B  /\  Y  e.  V )  /\  (
( X  .x.  Z
)  =  Y  /\  ( D `  X )  e.  (Unit `  R
) ) )  -> 
( Z `  I
)  =  ( ( D `  H ) 
./  ( D `  X ) ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    /\ wa 369    /\ w3a 973    = wceq 1395    e. wcel 1819    =/= wne 2652   _Vcvv 3109   (/)c0 3793   <.cop 4038   -->wf 5590   ` cfv 5594  (class class class)co 6296    ^m cmap 7438   Fincfn 7535   Basecbs 14643   .rcmulr 14712   1rcur 17279   Ringcrg 17324   CRingccrg 17325  Unitcui 17414  /rcdvr 17457   Mat cmat 19035   maVecMul cmvmul 19168   matRepV cmatrepV 19185   maDet cmdat 19212
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1619  ax-4 1632  ax-5 1705  ax-6 1748  ax-7 1791  ax-8 1821  ax-9 1823  ax-10 1838  ax-11 1843  ax-12 1855  ax-13 2000  ax-ext 2435  ax-rep 4568  ax-sep 4578  ax-nul 4586  ax-pow 4634  ax-pr 4695  ax-un 6591  ax-inf2 8075  ax-cnex 9565  ax-resscn 9566  ax-1cn 9567  ax-icn 9568  ax-addcl 9569  ax-addrcl 9570  ax-mulcl 9571  ax-mulrcl 9572  ax-mulcom 9573  ax-addass 9574  ax-mulass 9575  ax-distr 9576  ax-i2m1 9577  ax-1ne0 9578  ax-1rid 9579  ax-rnegex 9580  ax-rrecex 9581  ax-cnre 9582  ax-pre-lttri 9583  ax-pre-lttrn 9584  ax-pre-ltadd 9585  ax-pre-mulgt0 9586  ax-addf 9588  ax-mulf 9589
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 974  df-3an 975  df-xor 1364  df-tru 1398  df-fal 1401  df-ex 1614  df-nf 1618  df-sb 1741  df-eu 2287  df-mo 2288  df-clab 2443  df-cleq 2449  df-clel 2452  df-nfc 2607  df-ne 2654  df-nel 2655  df-ral 2812  df-rex 2813  df-reu 2814  df-rmo 2815  df-rab 2816  df-v 3111  df-sbc 3328  df-csb 3431  df-dif 3474  df-un 3476  df-in 3478  df-ss 3485  df-pss 3487  df-nul 3794  df-if 3945  df-pw 4017  df-sn 4033  df-pr 4035  df-tp 4037  df-op 4039  df-ot 4041  df-uni 4252  df-int 4289  df-iun 4334  df-iin 4335  df-br 4457  df-opab 4516  df-mpt 4517  df-tr 4551  df-eprel 4800  df-id 4804  df-po 4809  df-so 4810  df-fr 4847  df-se 4848  df-we 4849  df-ord 4890  df-on 4891  df-lim 4892  df-suc 4893  df-xp 5014  df-rel 5015  df-cnv 5016  df-co 5017  df-dm 5018  df-rn 5019  df-res 5020  df-ima 5021  df-iota 5557  df-fun 5596  df-fn 5597  df-f 5598  df-f1 5599  df-fo 5600  df-f1o 5601  df-fv 5602  df-isom 5603  df-riota 6258  df-ov 6299  df-oprab 6300  df-mpt2 6301  df-of 6539  df-om 6700  df-1st 6799  df-2nd 6800  df-supp 6918  df-tpos 6973  df-recs 7060  df-rdg 7094  df-1o 7148  df-2o 7149  df-oadd 7152  df-er 7329  df-map 7440  df-pm 7441  df-ixp 7489  df-en 7536  df-dom 7537  df-sdom 7538  df-fin 7539  df-fsupp 7848  df-sup 7919  df-oi 7953  df-card 8337  df-cda 8565  df-pnf 9647  df-mnf 9648  df-xr 9649  df-ltxr 9650  df-le 9651  df-sub 9826  df-neg 9827  df-div 10228  df-nn 10557  df-2 10615  df-3 10616  df-4 10617  df-5 10618  df-6 10619  df-7 10620  df-8 10621  df-9 10622  df-10 10623  df-n0 10817  df-z 10886  df-dec 11001  df-uz 11107  df-rp 11246  df-fz 11698  df-fzo 11821  df-seq 12110  df-exp 12169  df-hash 12408  df-word 12545  df-lsw 12546  df-concat 12547  df-s1 12548  df-substr 12549  df-splice 12550  df-reverse 12551  df-s2 12824  df-struct 14645  df-ndx 14646  df-slot 14647  df-base 14648  df-sets 14649  df-ress 14650  df-plusg 14724  df-mulr 14725  df-starv 14726  df-sca 14727  df-vsca 14728  df-ip 14729  df-tset 14730  df-ple 14731  df-ds 14733  df-unif 14734  df-hom 14735  df-cco 14736  df-0g 14858  df-gsum 14859  df-prds 14864  df-pws 14866  df-mre 15002  df-mrc 15003  df-acs 15005  df-mgm 15998  df-sgrp 16037  df-mnd 16047  df-mhm 16092  df-submnd 16093  df-grp 16183  df-minusg 16184  df-sbg 16185  df-mulg 16186  df-subg 16324  df-ghm 16391  df-gim 16433  df-cntz 16481  df-oppg 16507  df-symg 16529  df-pmtr 16593  df-psgn 16642  df-evpm 16643  df-cmn 16926  df-abl 16927  df-mgp 17268  df-ur 17280  df-srg 17284  df-ring 17326  df-cring 17327  df-oppr 17398  df-dvdsr 17416  df-unit 17417  df-invr 17447  df-dvr 17458  df-rnghom 17490  df-drng 17524  df-subrg 17553  df-lmod 17640  df-lss 17705  df-sra 17944  df-rgmod 17945  df-cnfld 18547  df-zring 18615  df-zrh 18667  df-dsmm 18889  df-frlm 18904  df-mamu 19012  df-mat 19036  df-mvmul 19169  df-marrep 19186  df-marepv 19187  df-subma 19205  df-mdet 19213  df-minmar1 19263
This theorem is referenced by:  cramerlem1  19315
  Copyright terms: Public domain W3C validator