ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  sqrt2irrlem Unicode version

Theorem sqrt2irrlem 11839
Description: Lemma for sqrt2irr 11840. This is 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
sqrt2irrlem.1  |-  ( ph  ->  A  e.  ZZ )
sqrt2irrlem.2  |-  ( ph  ->  B  e.  NN )
sqrt2irrlem.3  |-  ( ph  ->  ( sqr `  2
)  =  ( A  /  B ) )
Assertion
Ref Expression
sqrt2irrlem  |-  ( ph  ->  ( ( A  / 
2 )  e.  ZZ  /\  ( B  /  2
)  e.  NN ) )

Proof of Theorem sqrt2irrlem
StepHypRef Expression
1 2re 8790 . . . . . . . . . . . 12  |-  2  e.  RR
2 0le2 8810 . . . . . . . . . . . 12  |-  0  <_  2
3 resqrtth 10803 . . . . . . . . . . . 12  |-  ( ( 2  e.  RR  /\  0  <_  2 )  -> 
( ( sqr `  2
) ^ 2 )  =  2 )
41, 2, 3mp2an 422 . . . . . . . . . . 11  |-  ( ( sqr `  2 ) ^ 2 )  =  2
5 sqrt2irrlem.3 . . . . . . . . . . . 12  |-  ( ph  ->  ( sqr `  2
)  =  ( A  /  B ) )
65oveq1d 5789 . . . . . . . . . . 11  |-  ( ph  ->  ( ( sqr `  2
) ^ 2 )  =  ( ( A  /  B ) ^
2 ) )
74, 6syl5eqr 2186 . . . . . . . . . 10  |-  ( ph  ->  2  =  ( ( A  /  B ) ^ 2 ) )
8 sqrt2irrlem.1 . . . . . . . . . . . 12  |-  ( ph  ->  A  e.  ZZ )
98zcnd 9174 . . . . . . . . . . 11  |-  ( ph  ->  A  e.  CC )
10 sqrt2irrlem.2 . . . . . . . . . . . 12  |-  ( ph  ->  B  e.  NN )
1110nncnd 8734 . . . . . . . . . . 11  |-  ( ph  ->  B  e.  CC )
1210nnap0d 8766 . . . . . . . . . . 11  |-  ( ph  ->  B #  0 )
139, 11, 12sqdivapd 10437 . . . . . . . . . 10  |-  ( ph  ->  ( ( A  /  B ) ^ 2 )  =  ( ( A ^ 2 )  /  ( B ^
2 ) ) )
147, 13eqtrd 2172 . . . . . . . . 9  |-  ( ph  ->  2  =  ( ( A ^ 2 )  /  ( B ^
2 ) ) )
1514oveq1d 5789 . . . . . . . 8  |-  ( ph  ->  ( 2  x.  ( B ^ 2 ) )  =  ( ( ( A ^ 2 )  /  ( B ^
2 ) )  x.  ( B ^ 2 ) ) )
169sqcld 10422 . . . . . . . . 9  |-  ( ph  ->  ( A ^ 2 )  e.  CC )
1710nnsqcld 10445 . . . . . . . . . 10  |-  ( ph  ->  ( B ^ 2 )  e.  NN )
1817nncnd 8734 . . . . . . . . 9  |-  ( ph  ->  ( B ^ 2 )  e.  CC )
1917nnap0d 8766 . . . . . . . . 9  |-  ( ph  ->  ( B ^ 2 ) #  0 )
2016, 18, 19divcanap1d 8551 . . . . . . . 8  |-  ( ph  ->  ( ( ( A ^ 2 )  / 
( B ^ 2 ) )  x.  ( B ^ 2 ) )  =  ( A ^
2 ) )
2115, 20eqtrd 2172 . . . . . . 7  |-  ( ph  ->  ( 2  x.  ( B ^ 2 ) )  =  ( A ^
2 ) )
2221oveq1d 5789 . . . . . 6  |-  ( ph  ->  ( ( 2  x.  ( B ^ 2 ) )  /  2
)  =  ( ( A ^ 2 )  /  2 ) )
23 2cnd 8793 . . . . . . 7  |-  ( ph  ->  2  e.  CC )
24 2ap0 8813 . . . . . . . 8  |-  2 #  0
2524a1i 9 . . . . . . 7  |-  ( ph  ->  2 #  0 )
2618, 23, 25divcanap3d 8555 . . . . . 6  |-  ( ph  ->  ( ( 2  x.  ( B ^ 2 ) )  /  2
)  =  ( B ^ 2 ) )
2722, 26eqtr3d 2174 . . . . 5  |-  ( ph  ->  ( ( A ^
2 )  /  2
)  =  ( B ^ 2 ) )
2827, 17eqeltrd 2216 . . . 4  |-  ( ph  ->  ( ( A ^
2 )  /  2
)  e.  NN )
2928nnzd 9172 . . 3  |-  ( ph  ->  ( ( A ^
2 )  /  2
)  e.  ZZ )
30 zesq 10410 . . . 4  |-  ( A  e.  ZZ  ->  (
( A  /  2
)  e.  ZZ  <->  ( ( A ^ 2 )  / 
2 )  e.  ZZ ) )
318, 30syl 14 . . 3  |-  ( ph  ->  ( ( A  / 
2 )  e.  ZZ  <->  ( ( A ^ 2 )  /  2 )  e.  ZZ ) )
3229, 31mpbird 166 . 2  |-  ( ph  ->  ( A  /  2
)  e.  ZZ )
33 2cn 8791 . . . . . . . . 9  |-  2  e.  CC
3433sqvali 10372 . . . . . . . 8  |-  ( 2 ^ 2 )  =  ( 2  x.  2 )
3534oveq2i 5785 . . . . . . 7  |-  ( ( A ^ 2 )  /  ( 2 ^ 2 ) )  =  ( ( A ^
2 )  /  (
2  x.  2 ) )
369, 23, 25sqdivapd 10437 . . . . . . 7  |-  ( ph  ->  ( ( A  / 
2 ) ^ 2 )  =  ( ( A ^ 2 )  /  ( 2 ^ 2 ) ) )
3716, 23, 23, 25, 25divdivap1d 8582 . . . . . . 7  |-  ( ph  ->  ( ( ( A ^ 2 )  / 
2 )  /  2
)  =  ( ( A ^ 2 )  /  ( 2  x.  2 ) ) )
3835, 36, 373eqtr4a 2198 . . . . . 6  |-  ( ph  ->  ( ( A  / 
2 ) ^ 2 )  =  ( ( ( A ^ 2 )  /  2 )  /  2 ) )
3927oveq1d 5789 . . . . . 6  |-  ( ph  ->  ( ( ( A ^ 2 )  / 
2 )  /  2
)  =  ( ( B ^ 2 )  /  2 ) )
4038, 39eqtrd 2172 . . . . 5  |-  ( ph  ->  ( ( A  / 
2 ) ^ 2 )  =  ( ( B ^ 2 )  /  2 ) )
41 zsqcl 10363 . . . . . 6  |-  ( ( A  /  2 )  e.  ZZ  ->  (
( A  /  2
) ^ 2 )  e.  ZZ )
4232, 41syl 14 . . . . 5  |-  ( ph  ->  ( ( A  / 
2 ) ^ 2 )  e.  ZZ )
4340, 42eqeltrrd 2217 . . . 4  |-  ( ph  ->  ( ( B ^
2 )  /  2
)  e.  ZZ )
4417nnrpd 9482 . . . . . 6  |-  ( ph  ->  ( B ^ 2 )  e.  RR+ )
4544rphalfcld 9496 . . . . 5  |-  ( ph  ->  ( ( B ^
2 )  /  2
)  e.  RR+ )
4645rpgt0d 9486 . . . 4  |-  ( ph  ->  0  <  ( ( B ^ 2 )  /  2 ) )
47 elnnz 9064 . . . 4  |-  ( ( ( B ^ 2 )  /  2 )  e.  NN  <->  ( (
( B ^ 2 )  /  2 )  e.  ZZ  /\  0  <  ( ( B ^
2 )  /  2
) ) )
4843, 46, 47sylanbrc 413 . . 3  |-  ( ph  ->  ( ( B ^
2 )  /  2
)  e.  NN )
49 nnesq 10411 . . . 4  |-  ( B  e.  NN  ->  (
( B  /  2
)  e.  NN  <->  ( ( B ^ 2 )  / 
2 )  e.  NN ) )
5010, 49syl 14 . . 3  |-  ( ph  ->  ( ( B  / 
2 )  e.  NN  <->  ( ( B ^ 2 )  /  2 )  e.  NN ) )
5148, 50mpbird 166 . 2  |-  ( ph  ->  ( B  /  2
)  e.  NN )
5232, 51jca 304 1  |-  ( ph  ->  ( ( A  / 
2 )  e.  ZZ  /\  ( B  /  2
)  e.  NN ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 103    <-> wb 104    = wceq 1331    e. wcel 1480   class class class wbr 3929   ` cfv 5123  (class class class)co 5774   RRcr 7619   0cc0 7620    x. cmul 7625    < clt 7800    <_ cle 7801   # cap 8343    / cdiv 8432   NNcn 8720   2c2 8771   ZZcz 9054   ^cexp 10292   sqrcsqrt 10768
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 603  ax-in2 604  ax-io 698  ax-5 1423  ax-7 1424  ax-gen 1425  ax-ie1 1469  ax-ie2 1470  ax-8 1482  ax-10 1483  ax-11 1484  ax-i12 1485  ax-bndl 1486  ax-4 1487  ax-13 1491  ax-14 1492  ax-17 1506  ax-i9 1510  ax-ial 1514  ax-i5r 1515  ax-ext 2121  ax-coll 4043  ax-sep 4046  ax-nul 4054  ax-pow 4098  ax-pr 4131  ax-un 4355  ax-setind 4452  ax-iinf 4502  ax-cnex 7711  ax-resscn 7712  ax-1cn 7713  ax-1re 7714  ax-icn 7715  ax-addcl 7716  ax-addrcl 7717  ax-mulcl 7718  ax-mulrcl 7719  ax-addcom 7720  ax-mulcom 7721  ax-addass 7722  ax-mulass 7723  ax-distr 7724  ax-i2m1 7725  ax-0lt1 7726  ax-1rid 7727  ax-0id 7728  ax-rnegex 7729  ax-precex 7730  ax-cnre 7731  ax-pre-ltirr 7732  ax-pre-ltwlin 7733  ax-pre-lttrn 7734  ax-pre-apti 7735  ax-pre-ltadd 7736  ax-pre-mulgt0 7737  ax-pre-mulext 7738  ax-arch 7739  ax-caucvg 7740
This theorem depends on definitions:  df-bi 116  df-dc 820  df-3or 963  df-3an 964  df-tru 1334  df-fal 1337  df-nf 1437  df-sb 1736  df-eu 2002  df-mo 2003  df-clab 2126  df-cleq 2132  df-clel 2135  df-nfc 2270  df-ne 2309  df-nel 2404  df-ral 2421  df-rex 2422  df-reu 2423  df-rmo 2424  df-rab 2425  df-v 2688  df-sbc 2910  df-csb 3004  df-dif 3073  df-un 3075  df-in 3077  df-ss 3084  df-nul 3364  df-if 3475  df-pw 3512  df-sn 3533  df-pr 3534  df-op 3536  df-uni 3737  df-int 3772  df-iun 3815  df-br 3930  df-opab 3990  df-mpt 3991  df-tr 4027  df-id 4215  df-po 4218  df-iso 4219  df-iord 4288  df-on 4290  df-ilim 4291  df-suc 4293  df-iom 4505  df-xp 4545  df-rel 4546  df-cnv 4547  df-co 4548  df-dm 4549  df-rn 4550  df-res 4551  df-ima 4552  df-iota 5088  df-fun 5125  df-fn 5126  df-f 5127  df-f1 5128  df-fo 5129  df-f1o 5130  df-fv 5131  df-riota 5730  df-ov 5777  df-oprab 5778  df-mpo 5779  df-1st 6038  df-2nd 6039  df-recs 6202  df-frec 6288  df-pnf 7802  df-mnf 7803  df-xr 7804  df-ltxr 7805  df-le 7806  df-sub 7935  df-neg 7936  df-reap 8337  df-ap 8344  df-div 8433  df-inn 8721  df-2 8779  df-3 8780  df-4 8781  df-n0 8978  df-z 9055  df-uz 9327  df-rp 9442  df-seqfrec 10219  df-exp 10293  df-rsqrt 10770
This theorem is referenced by:  sqrt2irr  11840
  Copyright terms: Public domain W3C validator