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

Theorem sqrt2irrap 10765
Description: The square root of 2 is irrational. That is, for any rational number,  ( sqr `  2
) is apart from it. In the absence of excluded middle, we can distinguish between this and "the square root of 2 is not rational" which is sqrt2irr 10748. (Contributed by Jim Kingdon, 2-Oct-2021.)
Assertion
Ref Expression
sqrt2irrap  |-  ( Q  e.  QQ  ->  ( sqr `  2 ) #  Q
)

Proof of Theorem sqrt2irrap
Dummy variables  a  b are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 elq 8840 . . 3  |-  ( Q  e.  QQ  <->  E. a  e.  ZZ  E. b  e.  NN  Q  =  ( a  /  b ) )
21biimpi 118 . 2  |-  ( Q  e.  QQ  ->  E. a  e.  ZZ  E. b  e.  NN  Q  =  ( a  /  b ) )
3 simplrl 502 . . . . . . . . 9  |-  ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b
) )  ->  a  e.  ZZ )
43adantr 270 . . . . . . . 8  |-  ( ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b ) )  /\  a  <_  0
)  ->  a  e.  ZZ )
5 simplrr 503 . . . . . . . . 9  |-  ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b
) )  ->  b  e.  NN )
65adantr 270 . . . . . . . 8  |-  ( ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b ) )  /\  a  <_  0
)  ->  b  e.  NN )
7 znq 8842 . . . . . . . . 9  |-  ( ( a  e.  ZZ  /\  b  e.  NN )  ->  ( a  /  b
)  e.  QQ )
8 qre 8843 . . . . . . . . 9  |-  ( ( a  /  b )  e.  QQ  ->  (
a  /  b )  e.  RR )
97, 8syl 14 . . . . . . . 8  |-  ( ( a  e.  ZZ  /\  b  e.  NN )  ->  ( a  /  b
)  e.  RR )
104, 6, 9syl2anc 403 . . . . . . 7  |-  ( ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b ) )  /\  a  <_  0
)  ->  ( a  /  b )  e.  RR )
11 sqrt2re 10749 . . . . . . . 8  |-  ( sqr `  2 )  e.  RR
1211a1i 9 . . . . . . 7  |-  ( ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b ) )  /\  a  <_  0
)  ->  ( sqr `  2 )  e.  RR )
13 0red 7234 . . . . . . . 8  |-  ( ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b ) )  /\  a  <_  0
)  ->  0  e.  RR )
144zcnd 8603 . . . . . . . . . 10  |-  ( ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b ) )  /\  a  <_  0
)  ->  a  e.  CC )
156nncnd 8172 . . . . . . . . . 10  |-  ( ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b ) )  /\  a  <_  0
)  ->  b  e.  CC )
166nnap0d 8203 . . . . . . . . . 10  |-  ( ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b ) )  /\  a  <_  0
)  ->  b #  0
)
1714, 15, 16divrecapd 7999 . . . . . . . . 9  |-  ( ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b ) )  /\  a  <_  0
)  ->  ( a  /  b )  =  ( a  x.  (
1  /  b ) ) )
184zred 8602 . . . . . . . . . 10  |-  ( ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b ) )  /\  a  <_  0
)  ->  a  e.  RR )
196nnrecred 8204 . . . . . . . . . 10  |-  ( ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b ) )  /\  a  <_  0
)  ->  ( 1  /  b )  e.  RR )
20 simpr 108 . . . . . . . . . 10  |-  ( ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b ) )  /\  a  <_  0
)  ->  a  <_  0 )
21 1red 7248 . . . . . . . . . . 11  |-  ( ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b ) )  /\  a  <_  0
)  ->  1  e.  RR )
226nnrpd 8905 . . . . . . . . . . 11  |-  ( ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b ) )  /\  a  <_  0
)  ->  b  e.  RR+ )
23 0le1 7704 . . . . . . . . . . . 12  |-  0  <_  1
2423a1i 9 . . . . . . . . . . 11  |-  ( ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b ) )  /\  a  <_  0
)  ->  0  <_  1 )
2521, 22, 24divge0d 8947 . . . . . . . . . 10  |-  ( ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b ) )  /\  a  <_  0
)  ->  0  <_  ( 1  /  b ) )
26 mulle0r 8141 . . . . . . . . . 10  |-  ( ( ( a  e.  RR  /\  ( 1  /  b
)  e.  RR )  /\  ( a  <_ 
0  /\  0  <_  ( 1  /  b ) ) )  ->  (
a  x.  ( 1  /  b ) )  <_  0 )
2718, 19, 20, 25, 26syl22anc 1171 . . . . . . . . 9  |-  ( ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b ) )  /\  a  <_  0
)  ->  ( a  x.  ( 1  /  b
) )  <_  0
)
2817, 27eqbrtrd 3825 . . . . . . . 8  |-  ( ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b ) )  /\  a  <_  0
)  ->  ( a  /  b )  <_ 
0 )
29 2re 8228 . . . . . . . . . 10  |-  2  e.  RR
30 2pos 8249 . . . . . . . . . 10  |-  0  <  2
3129, 30sqrtgt0ii 10218 . . . . . . . . 9  |-  0  <  ( sqr `  2
)
3231a1i 9 . . . . . . . 8  |-  ( ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b ) )  /\  a  <_  0
)  ->  0  <  ( sqr `  2 ) )
3310, 13, 12, 28, 32lelttrd 7353 . . . . . . 7  |-  ( ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b ) )  /\  a  <_  0
)  ->  ( a  /  b )  < 
( sqr `  2
) )
3410, 12, 33gtapd 7854 . . . . . 6  |-  ( ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b ) )  /\  a  <_  0
)  ->  ( sqr `  2 ) #  ( a  /  b ) )
353adantr 270 . . . . . . . 8  |-  ( ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b ) )  /\  0  <  a
)  ->  a  e.  ZZ )
36 simpr 108 . . . . . . . 8  |-  ( ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b ) )  /\  0  <  a
)  ->  0  <  a )
37 elnnz 8494 . . . . . . . 8  |-  ( a  e.  NN  <->  ( a  e.  ZZ  /\  0  < 
a ) )
3835, 36, 37sylanbrc 408 . . . . . . 7  |-  ( ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b ) )  /\  0  <  a
)  ->  a  e.  NN )
395adantr 270 . . . . . . 7  |-  ( ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b ) )  /\  0  <  a
)  ->  b  e.  NN )
40 sqrt2irraplemnn 10764 . . . . . . 7  |-  ( ( a  e.  NN  /\  b  e.  NN )  ->  ( sqr `  2
) #  ( a  / 
b ) )
4138, 39, 40syl2anc 403 . . . . . 6  |-  ( ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b ) )  /\  0  <  a
)  ->  ( sqr `  2 ) #  ( a  /  b ) )
42 0z 8495 . . . . . . . . 9  |-  0  e.  ZZ
43 zlelttric 8529 . . . . . . . . 9  |-  ( ( a  e.  ZZ  /\  0  e.  ZZ )  ->  ( a  <_  0  \/  0  <  a ) )
4442, 43mpan2 416 . . . . . . . 8  |-  ( a  e.  ZZ  ->  (
a  <_  0  \/  0  <  a ) )
4544ad2antrl 474 . . . . . . 7  |-  ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  ->  ( a  <_  0  \/  0  < 
a ) )
4645adantr 270 . . . . . 6  |-  ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b
) )  ->  (
a  <_  0  \/  0  <  a ) )
4734, 41, 46mpjaodan 745 . . . . 5  |-  ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b
) )  ->  ( sqr `  2 ) #  ( a  /  b ) )
48 simpr 108 . . . . 5  |-  ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b
) )  ->  Q  =  ( a  / 
b ) )
4947, 48breqtrrd 3831 . . . 4  |-  ( ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  /\  Q  =  ( a  /  b
) )  ->  ( sqr `  2 ) #  Q
)
5049ex 113 . . 3  |-  ( ( Q  e.  QQ  /\  ( a  e.  ZZ  /\  b  e.  NN ) )  ->  ( Q  =  ( a  / 
b )  ->  ( sqr `  2 ) #  Q
) )
5150rexlimdvva 2489 . 2  |-  ( Q  e.  QQ  ->  ( E. a  e.  ZZ  E. b  e.  NN  Q  =  ( a  / 
b )  ->  ( sqr `  2 ) #  Q
) )
522, 51mpd 13 1  |-  ( Q  e.  QQ  ->  ( sqr `  2 ) #  Q
)
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 102    \/ wo 662    = wceq 1285    e. wcel 1434   E.wrex 2354   class class class wbr 3805   ` cfv 4952  (class class class)co 5563   RRcr 7094   0cc0 7095   1c1 7096    x. cmul 7100    < clt 7267    <_ cle 7268   # cap 7800    / cdiv 7879   NNcn 8158   2c2 8208   ZZcz 8484   QQcq 8837   sqrcsqrt 10083
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 104  ax-ia2 105  ax-ia3 106  ax-in1 577  ax-in2 578  ax-io 663  ax-5 1377  ax-7 1378  ax-gen 1379  ax-ie1 1423  ax-ie2 1424  ax-8 1436  ax-10 1437  ax-11 1438  ax-i12 1439  ax-bndl 1440  ax-4 1441  ax-13 1445  ax-14 1446  ax-17 1460  ax-i9 1464  ax-ial 1468  ax-i5r 1469  ax-ext 2065  ax-coll 3913  ax-sep 3916  ax-nul 3924  ax-pow 3968  ax-pr 3992  ax-un 4216  ax-setind 4308  ax-iinf 4357  ax-cnex 7181  ax-resscn 7182  ax-1cn 7183  ax-1re 7184  ax-icn 7185  ax-addcl 7186  ax-addrcl 7187  ax-mulcl 7188  ax-mulrcl 7189  ax-addcom 7190  ax-mulcom 7191  ax-addass 7192  ax-mulass 7193  ax-distr 7194  ax-i2m1 7195  ax-0lt1 7196  ax-1rid 7197  ax-0id 7198  ax-rnegex 7199  ax-precex 7200  ax-cnre 7201  ax-pre-ltirr 7202  ax-pre-ltwlin 7203  ax-pre-lttrn 7204  ax-pre-apti 7205  ax-pre-ltadd 7206  ax-pre-mulgt0 7207  ax-pre-mulext 7208  ax-arch 7209  ax-caucvg 7210
This theorem depends on definitions:  df-bi 115  df-dc 777  df-3or 921  df-3an 922  df-tru 1288  df-fal 1291  df-xor 1308  df-nf 1391  df-sb 1688  df-eu 1946  df-mo 1947  df-clab 2070  df-cleq 2076  df-clel 2079  df-nfc 2212  df-ne 2250  df-nel 2345  df-ral 2358  df-rex 2359  df-reu 2360  df-rmo 2361  df-rab 2362  df-v 2612  df-sbc 2825  df-csb 2918  df-dif 2984  df-un 2986  df-in 2988  df-ss 2995  df-nul 3268  df-if 3369  df-pw 3402  df-sn 3422  df-pr 3423  df-op 3425  df-uni 3622  df-int 3657  df-iun 3700  df-br 3806  df-opab 3860  df-mpt 3861  df-tr 3896  df-id 4076  df-po 4079  df-iso 4080  df-iord 4149  df-on 4151  df-ilim 4152  df-suc 4154  df-iom 4360  df-xp 4397  df-rel 4398  df-cnv 4399  df-co 4400  df-dm 4401  df-rn 4402  df-res 4403  df-ima 4404  df-iota 4917  df-fun 4954  df-fn 4955  df-f 4956  df-f1 4957  df-fo 4958  df-f1o 4959  df-fv 4960  df-riota 5519  df-ov 5566  df-oprab 5567  df-mpt2 5568  df-1st 5818  df-2nd 5819  df-recs 5974  df-frec 6060  df-1o 6085  df-2o 6086  df-er 6193  df-en 6309  df-sup 6491  df-pnf 7269  df-mnf 7270  df-xr 7271  df-ltxr 7272  df-le 7273  df-sub 7400  df-neg 7401  df-reap 7794  df-ap 7801  df-div 7880  df-inn 8159  df-2 8217  df-3 8218  df-4 8219  df-n0 8408  df-z 8485  df-uz 8753  df-q 8838  df-rp 8868  df-fz 9158  df-fzo 9282  df-fl 9404  df-mod 9457  df-iseq 9574  df-iexp 9625  df-cj 9930  df-re 9931  df-im 9932  df-rsqrt 10085  df-abs 10086  df-dvds 10404  df-gcd 10546  df-prm 10697
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator