Users' Mathboxes Mathbox for Jim Kingdon < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  irrdiff Structured version   Visualization version   GIF version

Theorem irrdiff 35005
Description: The irrationals are exactly those reals that are a different distance from every rational. (Contributed by Jim Kingdon, 19-May-2024.)
Assertion
Ref Expression
irrdiff (𝐴 ∈ ℝ → (¬ 𝐴 ∈ ℚ ↔ ∀𝑞 ∈ ℚ ∀𝑟 ∈ ℚ (𝑞𝑟 → (abs‘(𝐴𝑞)) ≠ (abs‘(𝐴𝑟)))))
Distinct variable group:   𝐴,𝑞,𝑟

Proof of Theorem irrdiff
StepHypRef Expression
1 simplll 775 . . . . 5 ((((𝐴 ∈ ℝ ∧ ¬ 𝐴 ∈ ℚ) ∧ (𝑞 ∈ ℚ ∧ 𝑟 ∈ ℚ)) ∧ 𝑞𝑟) → 𝐴 ∈ ℝ)
2 simpllr 776 . . . . 5 ((((𝐴 ∈ ℝ ∧ ¬ 𝐴 ∈ ℚ) ∧ (𝑞 ∈ ℚ ∧ 𝑟 ∈ ℚ)) ∧ 𝑞𝑟) → ¬ 𝐴 ∈ ℚ)
3 simplrl 777 . . . . 5 ((((𝐴 ∈ ℝ ∧ ¬ 𝐴 ∈ ℚ) ∧ (𝑞 ∈ ℚ ∧ 𝑟 ∈ ℚ)) ∧ 𝑞𝑟) → 𝑞 ∈ ℚ)
4 simplrr 778 . . . . 5 ((((𝐴 ∈ ℝ ∧ ¬ 𝐴 ∈ ℚ) ∧ (𝑞 ∈ ℚ ∧ 𝑟 ∈ ℚ)) ∧ 𝑞𝑟) → 𝑟 ∈ ℚ)
5 simpr 489 . . . . 5 ((((𝐴 ∈ ℝ ∧ ¬ 𝐴 ∈ ℚ) ∧ (𝑞 ∈ ℚ ∧ 𝑟 ∈ ℚ)) ∧ 𝑞𝑟) → 𝑞𝑟)
61, 2, 3, 4, 5irrdifflemf 35004 . . . 4 ((((𝐴 ∈ ℝ ∧ ¬ 𝐴 ∈ ℚ) ∧ (𝑞 ∈ ℚ ∧ 𝑟 ∈ ℚ)) ∧ 𝑞𝑟) → (abs‘(𝐴𝑞)) ≠ (abs‘(𝐴𝑟)))
76ex 417 . . 3 (((𝐴 ∈ ℝ ∧ ¬ 𝐴 ∈ ℚ) ∧ (𝑞 ∈ ℚ ∧ 𝑟 ∈ ℚ)) → (𝑞𝑟 → (abs‘(𝐴𝑞)) ≠ (abs‘(𝐴𝑟))))
87ralrimivva 3118 . 2 ((𝐴 ∈ ℝ ∧ ¬ 𝐴 ∈ ℚ) → ∀𝑞 ∈ ℚ ∀𝑟 ∈ ℚ (𝑞𝑟 → (abs‘(𝐴𝑞)) ≠ (abs‘(𝐴𝑟))))
9 simplr 769 . . . 4 (((𝐴 ∈ ℝ ∧ ∀𝑞 ∈ ℚ ∀𝑟 ∈ ℚ (𝑞𝑟 → (abs‘(𝐴𝑞)) ≠ (abs‘(𝐴𝑟)))) ∧ 𝐴 ∈ ℚ) → ∀𝑞 ∈ ℚ ∀𝑟 ∈ ℚ (𝑞𝑟 → (abs‘(𝐴𝑞)) ≠ (abs‘(𝐴𝑟))))
10 peano2rem 10976 . . . . . 6 (𝐴 ∈ ℝ → (𝐴 − 1) ∈ ℝ)
11 recn 10650 . . . . . . . 8 (𝐴 ∈ ℝ → 𝐴 ∈ ℂ)
12 1cnd 10659 . . . . . . . 8 (𝐴 ∈ ℝ → 1 ∈ ℂ)
1311, 12negsubd 11026 . . . . . . 7 (𝐴 ∈ ℝ → (𝐴 + -1) = (𝐴 − 1))
14 neg1lt0 11776 . . . . . . . . 9 -1 < 0
15 0lt1 11185 . . . . . . . . 9 0 < 1
16 neg1rr 11774 . . . . . . . . . 10 -1 ∈ ℝ
17 0re 10666 . . . . . . . . . 10 0 ∈ ℝ
18 1re 10664 . . . . . . . . . 10 1 ∈ ℝ
1916, 17, 18lttri 10789 . . . . . . . . 9 ((-1 < 0 ∧ 0 < 1) → -1 < 1)
2014, 15, 19mp2an 692 . . . . . . . 8 -1 < 1
2116a1i 11 . . . . . . . . 9 (𝐴 ∈ ℝ → -1 ∈ ℝ)
22 1red 10665 . . . . . . . . 9 (𝐴 ∈ ℝ → 1 ∈ ℝ)
23 id 22 . . . . . . . . 9 (𝐴 ∈ ℝ → 𝐴 ∈ ℝ)
2421, 22, 23ltadd2d 10819 . . . . . . . 8 (𝐴 ∈ ℝ → (-1 < 1 ↔ (𝐴 + -1) < (𝐴 + 1)))
2520, 24mpbii 236 . . . . . . 7 (𝐴 ∈ ℝ → (𝐴 + -1) < (𝐴 + 1))
2613, 25eqbrtrrd 5049 . . . . . 6 (𝐴 ∈ ℝ → (𝐴 − 1) < (𝐴 + 1))
2710, 26ltned 10799 . . . . 5 (𝐴 ∈ ℝ → (𝐴 − 1) ≠ (𝐴 + 1))
2827ad2antrr 726 . . . 4 (((𝐴 ∈ ℝ ∧ ∀𝑞 ∈ ℚ ∀𝑟 ∈ ℚ (𝑞𝑟 → (abs‘(𝐴𝑞)) ≠ (abs‘(𝐴𝑟)))) ∧ 𝐴 ∈ ℚ) → (𝐴 − 1) ≠ (𝐴 + 1))
29 1z 12036 . . . . . . 7 1 ∈ ℤ
30 zq 12379 . . . . . . 7 (1 ∈ ℤ → 1 ∈ ℚ)
3129, 30ax-mp 5 . . . . . 6 1 ∈ ℚ
32 qsubcl 12393 . . . . . 6 ((𝐴 ∈ ℚ ∧ 1 ∈ ℚ) → (𝐴 − 1) ∈ ℚ)
3331, 32mpan2 691 . . . . 5 (𝐴 ∈ ℚ → (𝐴 − 1) ∈ ℚ)
34 qaddcl 12390 . . . . . . 7 ((𝐴 ∈ ℚ ∧ 1 ∈ ℚ) → (𝐴 + 1) ∈ ℚ)
3531, 34mpan2 691 . . . . . 6 (𝐴 ∈ ℚ → (𝐴 + 1) ∈ ℚ)
3635adantl 486 . . . . 5 (((𝐴 ∈ ℝ ∧ ∀𝑞 ∈ ℚ ∀𝑟 ∈ ℚ (𝑞𝑟 → (abs‘(𝐴𝑞)) ≠ (abs‘(𝐴𝑟)))) ∧ 𝐴 ∈ ℚ) → (𝐴 + 1) ∈ ℚ)
37 simpl 487 . . . . . . . 8 ((𝑞 = (𝐴 − 1) ∧ 𝑟 = (𝐴 + 1)) → 𝑞 = (𝐴 − 1))
38 simpr 489 . . . . . . . 8 ((𝑞 = (𝐴 − 1) ∧ 𝑟 = (𝐴 + 1)) → 𝑟 = (𝐴 + 1))
3937, 38neeq12d 3010 . . . . . . 7 ((𝑞 = (𝐴 − 1) ∧ 𝑟 = (𝐴 + 1)) → (𝑞𝑟 ↔ (𝐴 − 1) ≠ (𝐴 + 1)))
40 oveq2 7151 . . . . . . . . . 10 (𝑞 = (𝐴 − 1) → (𝐴𝑞) = (𝐴 − (𝐴 − 1)))
4140adantr 485 . . . . . . . . 9 ((𝑞 = (𝐴 − 1) ∧ 𝑟 = (𝐴 + 1)) → (𝐴𝑞) = (𝐴 − (𝐴 − 1)))
4241fveq2d 6655 . . . . . . . 8 ((𝑞 = (𝐴 − 1) ∧ 𝑟 = (𝐴 + 1)) → (abs‘(𝐴𝑞)) = (abs‘(𝐴 − (𝐴 − 1))))
43 oveq2 7151 . . . . . . . . . 10 (𝑟 = (𝐴 + 1) → (𝐴𝑟) = (𝐴 − (𝐴 + 1)))
4443adantl 486 . . . . . . . . 9 ((𝑞 = (𝐴 − 1) ∧ 𝑟 = (𝐴 + 1)) → (𝐴𝑟) = (𝐴 − (𝐴 + 1)))
4544fveq2d 6655 . . . . . . . 8 ((𝑞 = (𝐴 − 1) ∧ 𝑟 = (𝐴 + 1)) → (abs‘(𝐴𝑟)) = (abs‘(𝐴 − (𝐴 + 1))))
4642, 45neeq12d 3010 . . . . . . 7 ((𝑞 = (𝐴 − 1) ∧ 𝑟 = (𝐴 + 1)) → ((abs‘(𝐴𝑞)) ≠ (abs‘(𝐴𝑟)) ↔ (abs‘(𝐴 − (𝐴 − 1))) ≠ (abs‘(𝐴 − (𝐴 + 1)))))
4739, 46imbi12d 349 . . . . . 6 ((𝑞 = (𝐴 − 1) ∧ 𝑟 = (𝐴 + 1)) → ((𝑞𝑟 → (abs‘(𝐴𝑞)) ≠ (abs‘(𝐴𝑟))) ↔ ((𝐴 − 1) ≠ (𝐴 + 1) → (abs‘(𝐴 − (𝐴 − 1))) ≠ (abs‘(𝐴 − (𝐴 + 1))))))
4847rspc2gv 3548 . . . . 5 (((𝐴 − 1) ∈ ℚ ∧ (𝐴 + 1) ∈ ℚ) → (∀𝑞 ∈ ℚ ∀𝑟 ∈ ℚ (𝑞𝑟 → (abs‘(𝐴𝑞)) ≠ (abs‘(𝐴𝑟))) → ((𝐴 − 1) ≠ (𝐴 + 1) → (abs‘(𝐴 − (𝐴 − 1))) ≠ (abs‘(𝐴 − (𝐴 + 1))))))
4933, 36, 48syl2an2 686 . . . 4 (((𝐴 ∈ ℝ ∧ ∀𝑞 ∈ ℚ ∀𝑟 ∈ ℚ (𝑞𝑟 → (abs‘(𝐴𝑞)) ≠ (abs‘(𝐴𝑟)))) ∧ 𝐴 ∈ ℚ) → (∀𝑞 ∈ ℚ ∀𝑟 ∈ ℚ (𝑞𝑟 → (abs‘(𝐴𝑞)) ≠ (abs‘(𝐴𝑟))) → ((𝐴 − 1) ≠ (𝐴 + 1) → (abs‘(𝐴 − (𝐴 − 1))) ≠ (abs‘(𝐴 − (𝐴 + 1))))))
509, 28, 49mp2d 49 . . 3 (((𝐴 ∈ ℝ ∧ ∀𝑞 ∈ ℚ ∀𝑟 ∈ ℚ (𝑞𝑟 → (abs‘(𝐴𝑞)) ≠ (abs‘(𝐴𝑟)))) ∧ 𝐴 ∈ ℚ) → (abs‘(𝐴 − (𝐴 − 1))) ≠ (abs‘(𝐴 − (𝐴 + 1))))
51 neirr 2958 . . . . 5 ¬ (abs‘1) ≠ (abs‘1)
5211, 12nncand 11025 . . . . . . 7 (𝐴 ∈ ℝ → (𝐴 − (𝐴 − 1)) = 1)
5352fveq2d 6655 . . . . . 6 (𝐴 ∈ ℝ → (abs‘(𝐴 − (𝐴 − 1))) = (abs‘1))
5411, 12subnegd 11027 . . . . . . . . . 10 (𝐴 ∈ ℝ → (𝐴 − -1) = (𝐴 + 1))
5554oveq2d 7159 . . . . . . . . 9 (𝐴 ∈ ℝ → (𝐴 − (𝐴 − -1)) = (𝐴 − (𝐴 + 1)))
5621recnd 10692 . . . . . . . . . 10 (𝐴 ∈ ℝ → -1 ∈ ℂ)
5711, 56nncand 11025 . . . . . . . . 9 (𝐴 ∈ ℝ → (𝐴 − (𝐴 − -1)) = -1)
5855, 57eqtr3d 2796 . . . . . . . 8 (𝐴 ∈ ℝ → (𝐴 − (𝐴 + 1)) = -1)
5958fveq2d 6655 . . . . . . 7 (𝐴 ∈ ℝ → (abs‘(𝐴 − (𝐴 + 1))) = (abs‘-1))
6012absnegd 14842 . . . . . . 7 (𝐴 ∈ ℝ → (abs‘-1) = (abs‘1))
6159, 60eqtrd 2794 . . . . . 6 (𝐴 ∈ ℝ → (abs‘(𝐴 − (𝐴 + 1))) = (abs‘1))
6253, 61neeq12d 3010 . . . . 5 (𝐴 ∈ ℝ → ((abs‘(𝐴 − (𝐴 − 1))) ≠ (abs‘(𝐴 − (𝐴 + 1))) ↔ (abs‘1) ≠ (abs‘1)))
6351, 62mtbiri 331 . . . 4 (𝐴 ∈ ℝ → ¬ (abs‘(𝐴 − (𝐴 − 1))) ≠ (abs‘(𝐴 − (𝐴 + 1))))
6463ad2antrr 726 . . 3 (((𝐴 ∈ ℝ ∧ ∀𝑞 ∈ ℚ ∀𝑟 ∈ ℚ (𝑞𝑟 → (abs‘(𝐴𝑞)) ≠ (abs‘(𝐴𝑟)))) ∧ 𝐴 ∈ ℚ) → ¬ (abs‘(𝐴 − (𝐴 − 1))) ≠ (abs‘(𝐴 − (𝐴 + 1))))
6550, 64pm2.65da 817 . 2 ((𝐴 ∈ ℝ ∧ ∀𝑞 ∈ ℚ ∀𝑟 ∈ ℚ (𝑞𝑟 → (abs‘(𝐴𝑞)) ≠ (abs‘(𝐴𝑟)))) → ¬ 𝐴 ∈ ℚ)
668, 65impbida 801 1 (𝐴 ∈ ℝ → (¬ 𝐴 ∈ ℚ ↔ ∀𝑞 ∈ ℚ ∀𝑟 ∈ ℚ (𝑞𝑟 → (abs‘(𝐴𝑞)) ≠ (abs‘(𝐴𝑟)))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 400   = wceq 1539  wcel 2112  wne 2949  wral 3068   class class class wbr 5025  cfv 6328  (class class class)co 7143  cr 10559  0cc0 10560  1c1 10561   + caddc 10563   < clt 10698  cmin 10893  -cneg 10894  cz 12005  cq 12373  abscabs 14626
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1912  ax-6 1971  ax-7 2016  ax-8 2114  ax-9 2122  ax-10 2143  ax-11 2159  ax-12 2176  ax-ext 2730  ax-sep 5162  ax-nul 5169  ax-pow 5227  ax-pr 5291  ax-un 7452  ax-cnex 10616  ax-resscn 10617  ax-1cn 10618  ax-icn 10619  ax-addcl 10620  ax-addrcl 10621  ax-mulcl 10622  ax-mulrcl 10623  ax-mulcom 10624  ax-addass 10625  ax-mulass 10626  ax-distr 10627  ax-i2m1 10628  ax-1ne0 10629  ax-1rid 10630  ax-rnegex 10631  ax-rrecex 10632  ax-cnre 10633  ax-pre-lttri 10634  ax-pre-lttrn 10635  ax-pre-ltadd 10636  ax-pre-mulgt0 10637  ax-pre-sup 10638
This theorem depends on definitions:  df-bi 210  df-an 401  df-or 846  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2071  df-mo 2558  df-eu 2589  df-clab 2737  df-cleq 2751  df-clel 2831  df-nfc 2899  df-ne 2950  df-nel 3054  df-ral 3073  df-rex 3074  df-reu 3075  df-rmo 3076  df-rab 3077  df-v 3409  df-sbc 3694  df-csb 3802  df-dif 3857  df-un 3859  df-in 3861  df-ss 3871  df-pss 3873  df-nul 4222  df-if 4414  df-pw 4489  df-sn 4516  df-pr 4518  df-tp 4520  df-op 4522  df-uni 4792  df-iun 4878  df-br 5026  df-opab 5088  df-mpt 5106  df-tr 5132  df-id 5423  df-eprel 5428  df-po 5436  df-so 5437  df-fr 5476  df-we 5478  df-xp 5523  df-rel 5524  df-cnv 5525  df-co 5526  df-dm 5527  df-rn 5528  df-res 5529  df-ima 5530  df-pred 6119  df-ord 6165  df-on 6166  df-lim 6167  df-suc 6168  df-iota 6287  df-fun 6330  df-fn 6331  df-f 6332  df-f1 6333  df-fo 6334  df-f1o 6335  df-fv 6336  df-riota 7101  df-ov 7146  df-oprab 7147  df-mpo 7148  df-om 7573  df-1st 7686  df-2nd 7687  df-wrecs 7950  df-recs 8011  df-rdg 8049  df-er 8292  df-en 8521  df-dom 8522  df-sdom 8523  df-sup 8924  df-pnf 10700  df-mnf 10701  df-xr 10702  df-ltxr 10703  df-le 10704  df-sub 10895  df-neg 10896  df-div 11321  df-nn 11660  df-2 11722  df-3 11723  df-n0 11920  df-z 12006  df-uz 12268  df-q 12374  df-rp 12416  df-seq 13404  df-exp 13465  df-cj 14491  df-re 14492  df-im 14493  df-sqrt 14627  df-abs 14628
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator