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

Theorem sqr2irrlem 12849
Description: Lemma for irrationality of square root of 2. The core of the proof - if  A  /  B  =  sqr ( 2 ), then 
A and  B are even, so  A  /  2 and  B  /  2 are smaller representatives, which is absurd by the method of infinite descent (here implemented by strong induction). (Contributed by NM, 20-Aug-2001.) (Revised by Mario Carneiro, 12-Sep-2015.)
Hypotheses
Ref Expression
sqr2irrlem.1  |-  ( ph  ->  A  e.  ZZ )
sqr2irrlem.2  |-  ( ph  ->  B  e.  NN )
sqr2irrlem.3  |-  ( ph  ->  ( sqr `  2
)  =  ( A  /  B ) )
Assertion
Ref Expression
sqr2irrlem  |-  ( ph  ->  ( ( A  / 
2 )  e.  ZZ  /\  ( B  /  2
)  e.  NN ) )

Proof of Theorem sqr2irrlem
StepHypRef Expression
1 2cn 10072 . . . . . . . . . . . 12  |-  2  e.  CC
2 sqrth 12170 . . . . . . . . . . . 12  |-  ( 2  e.  CC  ->  (
( sqr `  2
) ^ 2 )  =  2 )
31, 2ax-mp 8 . . . . . . . . . . 11  |-  ( ( sqr `  2 ) ^ 2 )  =  2
4 sqr2irrlem.3 . . . . . . . . . . . 12  |-  ( ph  ->  ( sqr `  2
)  =  ( A  /  B ) )
54oveq1d 6098 . . . . . . . . . . 11  |-  ( ph  ->  ( ( sqr `  2
) ^ 2 )  =  ( ( A  /  B ) ^
2 ) )
63, 5syl5eqr 2484 . . . . . . . . . 10  |-  ( ph  ->  2  =  ( ( A  /  B ) ^ 2 ) )
7 sqr2irrlem.1 . . . . . . . . . . . 12  |-  ( ph  ->  A  e.  ZZ )
87zcnd 10378 . . . . . . . . . . 11  |-  ( ph  ->  A  e.  CC )
9 sqr2irrlem.2 . . . . . . . . . . . 12  |-  ( ph  ->  B  e.  NN )
109nncnd 10018 . . . . . . . . . . 11  |-  ( ph  ->  B  e.  CC )
119nnne0d 10046 . . . . . . . . . . 11  |-  ( ph  ->  B  =/=  0 )
128, 10, 11sqdivd 11538 . . . . . . . . . 10  |-  ( ph  ->  ( ( A  /  B ) ^ 2 )  =  ( ( A ^ 2 )  /  ( B ^
2 ) ) )
136, 12eqtrd 2470 . . . . . . . . 9  |-  ( ph  ->  2  =  ( ( A ^ 2 )  /  ( B ^
2 ) ) )
1413oveq1d 6098 . . . . . . . 8  |-  ( ph  ->  ( 2  x.  ( B ^ 2 ) )  =  ( ( ( A ^ 2 )  /  ( B ^
2 ) )  x.  ( B ^ 2 ) ) )
158sqcld 11523 . . . . . . . . 9  |-  ( ph  ->  ( A ^ 2 )  e.  CC )
169nnsqcld 11545 . . . . . . . . . 10  |-  ( ph  ->  ( B ^ 2 )  e.  NN )
1716nncnd 10018 . . . . . . . . 9  |-  ( ph  ->  ( B ^ 2 )  e.  CC )
1816nnne0d 10046 . . . . . . . . 9  |-  ( ph  ->  ( B ^ 2 )  =/=  0 )
1915, 17, 18divcan1d 9793 . . . . . . . 8  |-  ( ph  ->  ( ( ( A ^ 2 )  / 
( B ^ 2 ) )  x.  ( B ^ 2 ) )  =  ( A ^
2 ) )
2014, 19eqtrd 2470 . . . . . . 7  |-  ( ph  ->  ( 2  x.  ( B ^ 2 ) )  =  ( A ^
2 ) )
2120oveq1d 6098 . . . . . 6  |-  ( ph  ->  ( ( 2  x.  ( B ^ 2 ) )  /  2
)  =  ( ( A ^ 2 )  /  2 ) )
221a1i 11 . . . . . . 7  |-  ( ph  ->  2  e.  CC )
23 2ne0 10085 . . . . . . . 8  |-  2  =/=  0
2423a1i 11 . . . . . . 7  |-  ( ph  ->  2  =/=  0 )
2517, 22, 24divcan3d 9797 . . . . . 6  |-  ( ph  ->  ( ( 2  x.  ( B ^ 2 ) )  /  2
)  =  ( B ^ 2 ) )
2621, 25eqtr3d 2472 . . . . 5  |-  ( ph  ->  ( ( A ^
2 )  /  2
)  =  ( B ^ 2 ) )
2726, 16eqeltrd 2512 . . . 4  |-  ( ph  ->  ( ( A ^
2 )  /  2
)  e.  NN )
2827nnzd 10376 . . 3  |-  ( ph  ->  ( ( A ^
2 )  /  2
)  e.  ZZ )
29 zesq 11504 . . . 4  |-  ( A  e.  ZZ  ->  (
( A  /  2
)  e.  ZZ  <->  ( ( A ^ 2 )  / 
2 )  e.  ZZ ) )
307, 29syl 16 . . 3  |-  ( ph  ->  ( ( A  / 
2 )  e.  ZZ  <->  ( ( A ^ 2 )  /  2 )  e.  ZZ ) )
3128, 30mpbird 225 . 2  |-  ( ph  ->  ( A  /  2
)  e.  ZZ )
321sqvali 11463 . . . . . . . 8  |-  ( 2 ^ 2 )  =  ( 2  x.  2 )
3332oveq2i 6094 . . . . . . 7  |-  ( ( A ^ 2 )  /  ( 2 ^ 2 ) )  =  ( ( A ^
2 )  /  (
2  x.  2 ) )
348, 22, 24sqdivd 11538 . . . . . . 7  |-  ( ph  ->  ( ( A  / 
2 ) ^ 2 )  =  ( ( A ^ 2 )  /  ( 2 ^ 2 ) ) )
3515, 22, 22, 24, 24divdiv1d 9823 . . . . . . 7  |-  ( ph  ->  ( ( ( A ^ 2 )  / 
2 )  /  2
)  =  ( ( A ^ 2 )  /  ( 2  x.  2 ) ) )
3633, 34, 353eqtr4a 2496 . . . . . 6  |-  ( ph  ->  ( ( A  / 
2 ) ^ 2 )  =  ( ( ( A ^ 2 )  /  2 )  /  2 ) )
3726oveq1d 6098 . . . . . 6  |-  ( ph  ->  ( ( ( A ^ 2 )  / 
2 )  /  2
)  =  ( ( B ^ 2 )  /  2 ) )
3836, 37eqtrd 2470 . . . . 5  |-  ( ph  ->  ( ( A  / 
2 ) ^ 2 )  =  ( ( B ^ 2 )  /  2 ) )
39 zsqcl 11454 . . . . . 6  |-  ( ( A  /  2 )  e.  ZZ  ->  (
( A  /  2
) ^ 2 )  e.  ZZ )
4031, 39syl 16 . . . . 5  |-  ( ph  ->  ( ( A  / 
2 ) ^ 2 )  e.  ZZ )
4138, 40eqeltrrd 2513 . . . 4  |-  ( ph  ->  ( ( B ^
2 )  /  2
)  e.  ZZ )
4216nnrpd 10649 . . . . . 6  |-  ( ph  ->  ( B ^ 2 )  e.  RR+ )
4342rphalfcld 10662 . . . . 5  |-  ( ph  ->  ( ( B ^
2 )  /  2
)  e.  RR+ )
4443rpgt0d 10653 . . . 4  |-  ( ph  ->  0  <  ( ( B ^ 2 )  /  2 ) )
45 elnnz 10294 . . . 4  |-  ( ( ( B ^ 2 )  /  2 )  e.  NN  <->  ( (
( B ^ 2 )  /  2 )  e.  ZZ  /\  0  <  ( ( B ^
2 )  /  2
) ) )
4641, 44, 45sylanbrc 647 . . 3  |-  ( ph  ->  ( ( B ^
2 )  /  2
)  e.  NN )
47 nnesq 11505 . . . 4  |-  ( B  e.  NN  ->  (
( B  /  2
)  e.  NN  <->  ( ( B ^ 2 )  / 
2 )  e.  NN ) )
489, 47syl 16 . . 3  |-  ( ph  ->  ( ( B  / 
2 )  e.  NN  <->  ( ( B ^ 2 )  /  2 )  e.  NN ) )
4946, 48mpbird 225 . 2  |-  ( ph  ->  ( B  /  2
)  e.  NN )
5031, 49jca 520 1  |-  ( ph  ->  ( ( A  / 
2 )  e.  ZZ  /\  ( B  /  2
)  e.  NN ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    <-> wb 178    /\ wa 360    = wceq 1653    e. wcel 1726    =/= wne 2601   class class class wbr 4214   ` cfv 5456  (class class class)co 6083   CCcc 8990   0cc0 8992    x. cmul 8997    < clt 9122    / cdiv 9679   NNcn 10002   2c2 10051   ZZcz 10284   ^cexp 11384   sqrcsqr 12040
This theorem is referenced by:  sqr2irr  12850
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1556  ax-5 1567  ax-17 1627  ax-9 1667  ax-8 1688  ax-13 1728  ax-14 1730  ax-6 1745  ax-7 1750  ax-11 1762  ax-12 1951  ax-ext 2419  ax-sep 4332  ax-nul 4340  ax-pow 4379  ax-pr 4405  ax-un 4703  ax-cnex 9048  ax-resscn 9049  ax-1cn 9050  ax-icn 9051  ax-addcl 9052  ax-addrcl 9053  ax-mulcl 9054  ax-mulrcl 9055  ax-mulcom 9056  ax-addass 9057  ax-mulass 9058  ax-distr 9059  ax-i2m1 9060  ax-1ne0 9061  ax-1rid 9062  ax-rnegex 9063  ax-rrecex 9064  ax-cnre 9065  ax-pre-lttri 9066  ax-pre-lttrn 9067  ax-pre-ltadd 9068  ax-pre-mulgt0 9069  ax-pre-sup 9070
This theorem depends on definitions:  df-bi 179  df-or 361  df-an 362  df-3or 938  df-3an 939  df-tru 1329  df-ex 1552  df-nf 1555  df-sb 1660  df-eu 2287  df-mo 2288  df-clab 2425  df-cleq 2431  df-clel 2434  df-nfc 2563  df-ne 2603  df-nel 2604  df-ral 2712  df-rex 2713  df-reu 2714  df-rmo 2715  df-rab 2716  df-v 2960  df-sbc 3164  df-csb 3254  df-dif 3325  df-un 3327  df-in 3329  df-ss 3336  df-pss 3338  df-nul 3631  df-if 3742  df-pw 3803  df-sn 3822  df-pr 3823  df-tp 3824  df-op 3825  df-uni 4018  df-iun 4097  df-br 4215  df-opab 4269  df-mpt 4270  df-tr 4305  df-eprel 4496  df-id 4500  df-po 4505  df-so 4506  df-fr 4543  df-we 4545  df-ord 4586  df-on 4587  df-lim 4588  df-suc 4589  df-om 4848  df-xp 4886  df-rel 4887  df-cnv 4888  df-co 4889  df-dm 4890  df-rn 4891  df-res 4892  df-ima 4893  df-iota 5420  df-fun 5458  df-fn 5459  df-f 5460  df-f1 5461  df-fo 5462  df-f1o 5463  df-fv 5464  df-ov 6086  df-oprab 6087  df-mpt2 6088  df-2nd 6352  df-riota 6551  df-recs 6635  df-rdg 6670  df-er 6907  df-en 7112  df-dom 7113  df-sdom 7114  df-sup 7448  df-pnf 9124  df-mnf 9125  df-xr 9126  df-ltxr 9127  df-le 9128  df-sub 9295  df-neg 9296  df-div 9680  df-nn 10003  df-2 10060  df-3 10061  df-n0 10224  df-z 10285  df-uz 10491  df-rp 10615  df-seq 11326  df-exp 11385  df-cj 11906  df-re 11907  df-im 11908  df-sqr 12042  df-abs 12043
  Copyright terms: Public domain W3C validator