MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  ltbtwnnq Structured version   Visualization version   GIF version

Theorem ltbtwnnq 10718
Description: There exists a number between any two positive fractions. Proposition 9-2.6(i) of [Gleason] p. 120. (Contributed by NM, 17-Mar-1996.) (Revised by Mario Carneiro, 10-May-2013.) (New usage is discouraged.)
Assertion
Ref Expression
ltbtwnnq (𝐴 <Q 𝐵 ↔ ∃𝑥(𝐴 <Q 𝑥𝑥 <Q 𝐵))
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵

Proof of Theorem ltbtwnnq
Dummy variables 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 ltrelnq 10666 . . . . 5 <Q ⊆ (Q × Q)
21brel 5651 . . . 4 (𝐴 <Q 𝐵 → (𝐴Q𝐵Q))
32simprd 495 . . 3 (𝐴 <Q 𝐵𝐵Q)
4 ltexnq 10715 . . . 4 (𝐵Q → (𝐴 <Q 𝐵 ↔ ∃𝑦(𝐴 +Q 𝑦) = 𝐵))
5 eleq1 2827 . . . . . . . . . 10 ((𝐴 +Q 𝑦) = 𝐵 → ((𝐴 +Q 𝑦) ∈ Q𝐵Q))
65biimparc 479 . . . . . . . . 9 ((𝐵Q ∧ (𝐴 +Q 𝑦) = 𝐵) → (𝐴 +Q 𝑦) ∈ Q)
7 addnqf 10688 . . . . . . . . . . 11 +Q :(Q × Q)⟶Q
87fdmi 6608 . . . . . . . . . 10 dom +Q = (Q × Q)
9 0nnq 10664 . . . . . . . . . 10 ¬ ∅ ∈ Q
108, 9ndmovrcl 7449 . . . . . . . . 9 ((𝐴 +Q 𝑦) ∈ Q → (𝐴Q𝑦Q))
116, 10syl 17 . . . . . . . 8 ((𝐵Q ∧ (𝐴 +Q 𝑦) = 𝐵) → (𝐴Q𝑦Q))
1211simprd 495 . . . . . . 7 ((𝐵Q ∧ (𝐴 +Q 𝑦) = 𝐵) → 𝑦Q)
13 nsmallnq 10717 . . . . . . . 8 (𝑦Q → ∃𝑧 𝑧 <Q 𝑦)
1411simpld 494 . . . . . . . . . . . 12 ((𝐵Q ∧ (𝐴 +Q 𝑦) = 𝐵) → 𝐴Q)
151brel 5651 . . . . . . . . . . . . 13 (𝑧 <Q 𝑦 → (𝑧Q𝑦Q))
1615simpld 494 . . . . . . . . . . . 12 (𝑧 <Q 𝑦𝑧Q)
17 ltaddnq 10714 . . . . . . . . . . . 12 ((𝐴Q𝑧Q) → 𝐴 <Q (𝐴 +Q 𝑧))
1814, 16, 17syl2an 595 . . . . . . . . . . 11 (((𝐵Q ∧ (𝐴 +Q 𝑦) = 𝐵) ∧ 𝑧 <Q 𝑦) → 𝐴 <Q (𝐴 +Q 𝑧))
19 ltanq 10711 . . . . . . . . . . . . . 14 (𝐴Q → (𝑧 <Q 𝑦 ↔ (𝐴 +Q 𝑧) <Q (𝐴 +Q 𝑦)))
2019biimpa 476 . . . . . . . . . . . . 13 ((𝐴Q𝑧 <Q 𝑦) → (𝐴 +Q 𝑧) <Q (𝐴 +Q 𝑦))
2114, 20sylan 579 . . . . . . . . . . . 12 (((𝐵Q ∧ (𝐴 +Q 𝑦) = 𝐵) ∧ 𝑧 <Q 𝑦) → (𝐴 +Q 𝑧) <Q (𝐴 +Q 𝑦))
22 simplr 765 . . . . . . . . . . . 12 (((𝐵Q ∧ (𝐴 +Q 𝑦) = 𝐵) ∧ 𝑧 <Q 𝑦) → (𝐴 +Q 𝑦) = 𝐵)
2321, 22breqtrd 5104 . . . . . . . . . . 11 (((𝐵Q ∧ (𝐴 +Q 𝑦) = 𝐵) ∧ 𝑧 <Q 𝑦) → (𝐴 +Q 𝑧) <Q 𝐵)
24 ovex 7301 . . . . . . . . . . . 12 (𝐴 +Q 𝑧) ∈ V
25 breq2 5082 . . . . . . . . . . . . 13 (𝑥 = (𝐴 +Q 𝑧) → (𝐴 <Q 𝑥𝐴 <Q (𝐴 +Q 𝑧)))
26 breq1 5081 . . . . . . . . . . . . 13 (𝑥 = (𝐴 +Q 𝑧) → (𝑥 <Q 𝐵 ↔ (𝐴 +Q 𝑧) <Q 𝐵))
2725, 26anbi12d 630 . . . . . . . . . . . 12 (𝑥 = (𝐴 +Q 𝑧) → ((𝐴 <Q 𝑥𝑥 <Q 𝐵) ↔ (𝐴 <Q (𝐴 +Q 𝑧) ∧ (𝐴 +Q 𝑧) <Q 𝐵)))
2824, 27spcev 3543 . . . . . . . . . . 11 ((𝐴 <Q (𝐴 +Q 𝑧) ∧ (𝐴 +Q 𝑧) <Q 𝐵) → ∃𝑥(𝐴 <Q 𝑥𝑥 <Q 𝐵))
2918, 23, 28syl2anc 583 . . . . . . . . . 10 (((𝐵Q ∧ (𝐴 +Q 𝑦) = 𝐵) ∧ 𝑧 <Q 𝑦) → ∃𝑥(𝐴 <Q 𝑥𝑥 <Q 𝐵))
3029ex 412 . . . . . . . . 9 ((𝐵Q ∧ (𝐴 +Q 𝑦) = 𝐵) → (𝑧 <Q 𝑦 → ∃𝑥(𝐴 <Q 𝑥𝑥 <Q 𝐵)))
3130exlimdv 1939 . . . . . . . 8 ((𝐵Q ∧ (𝐴 +Q 𝑦) = 𝐵) → (∃𝑧 𝑧 <Q 𝑦 → ∃𝑥(𝐴 <Q 𝑥𝑥 <Q 𝐵)))
3213, 31syl5 34 . . . . . . 7 ((𝐵Q ∧ (𝐴 +Q 𝑦) = 𝐵) → (𝑦Q → ∃𝑥(𝐴 <Q 𝑥𝑥 <Q 𝐵)))
3312, 32mpd 15 . . . . . 6 ((𝐵Q ∧ (𝐴 +Q 𝑦) = 𝐵) → ∃𝑥(𝐴 <Q 𝑥𝑥 <Q 𝐵))
3433ex 412 . . . . 5 (𝐵Q → ((𝐴 +Q 𝑦) = 𝐵 → ∃𝑥(𝐴 <Q 𝑥𝑥 <Q 𝐵)))
3534exlimdv 1939 . . . 4 (𝐵Q → (∃𝑦(𝐴 +Q 𝑦) = 𝐵 → ∃𝑥(𝐴 <Q 𝑥𝑥 <Q 𝐵)))
364, 35sylbid 239 . . 3 (𝐵Q → (𝐴 <Q 𝐵 → ∃𝑥(𝐴 <Q 𝑥𝑥 <Q 𝐵)))
373, 36mpcom 38 . 2 (𝐴 <Q 𝐵 → ∃𝑥(𝐴 <Q 𝑥𝑥 <Q 𝐵))
38 ltsonq 10709 . . . 4 <Q Or Q
3938, 1sotri 6029 . . 3 ((𝐴 <Q 𝑥𝑥 <Q 𝐵) → 𝐴 <Q 𝐵)
4039exlimiv 1936 . 2 (∃𝑥(𝐴 <Q 𝑥𝑥 <Q 𝐵) → 𝐴 <Q 𝐵)
4137, 40impbii 208 1 (𝐴 <Q 𝐵 ↔ ∃𝑥(𝐴 <Q 𝑥𝑥 <Q 𝐵))
Colors of variables: wff setvar class
Syntax hints:  wb 205  wa 395   = wceq 1541  wex 1785  wcel 2109   class class class wbr 5078   × cxp 5586  (class class class)co 7268  Qcnq 10592   +Q cplq 10595   <Q cltq 10598
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1801  ax-4 1815  ax-5 1916  ax-6 1974  ax-7 2014  ax-8 2111  ax-9 2119  ax-10 2140  ax-11 2157  ax-12 2174  ax-ext 2710  ax-sep 5226  ax-nul 5233  ax-pr 5355  ax-un 7579
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1544  df-fal 1554  df-ex 1786  df-nf 1790  df-sb 2071  df-mo 2541  df-eu 2570  df-clab 2717  df-cleq 2731  df-clel 2817  df-nfc 2890  df-ne 2945  df-ral 3070  df-rex 3071  df-reu 3072  df-rmo 3073  df-rab 3074  df-v 3432  df-sbc 3720  df-csb 3837  df-dif 3894  df-un 3896  df-in 3898  df-ss 3908  df-pss 3910  df-nul 4262  df-if 4465  df-pw 4540  df-sn 4567  df-pr 4569  df-tp 4571  df-op 4573  df-uni 4845  df-int 4885  df-iun 4931  df-br 5079  df-opab 5141  df-mpt 5162  df-tr 5196  df-id 5488  df-eprel 5494  df-po 5502  df-so 5503  df-fr 5543  df-we 5545  df-xp 5594  df-rel 5595  df-cnv 5596  df-co 5597  df-dm 5598  df-rn 5599  df-res 5600  df-ima 5601  df-pred 6199  df-ord 6266  df-on 6267  df-lim 6268  df-suc 6269  df-iota 6388  df-fun 6432  df-fn 6433  df-f 6434  df-f1 6435  df-fo 6436  df-f1o 6437  df-fv 6438  df-ov 7271  df-oprab 7272  df-mpo 7273  df-om 7701  df-1st 7817  df-2nd 7818  df-frecs 8081  df-wrecs 8112  df-recs 8186  df-rdg 8225  df-1o 8281  df-oadd 8285  df-omul 8286  df-er 8472  df-ni 10612  df-pli 10613  df-mi 10614  df-lti 10615  df-plpq 10648  df-mpq 10649  df-ltpq 10650  df-enq 10651  df-nq 10652  df-erq 10653  df-plq 10654  df-mq 10655  df-1nq 10656  df-rq 10657  df-ltnq 10658
This theorem is referenced by:  nqpr  10754  reclem2pr  10788
  Copyright terms: Public domain W3C validator