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

Theorem elpq 9783
Description: A positive rational is the quotient of two positive integers. (Contributed by AV, 29-Dec-2022.)
Assertion
Ref Expression
elpq ((𝐴 ∈ ℚ ∧ 0 < 𝐴) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝐴 = (𝑥 / 𝑦))
Distinct variable group:   𝑥,𝐴,𝑦

Proof of Theorem elpq
Dummy variable 𝑧 is distinct from all other variables.
StepHypRef Expression
1 elq 9756 . . . . 5 (𝐴 ∈ ℚ ↔ ∃𝑧 ∈ ℤ ∃𝑦 ∈ ℕ 𝐴 = (𝑧 / 𝑦))
2 rexcom 2671 . . . . 5 (∃𝑧 ∈ ℤ ∃𝑦 ∈ ℕ 𝐴 = (𝑧 / 𝑦) ↔ ∃𝑦 ∈ ℕ ∃𝑧 ∈ ℤ 𝐴 = (𝑧 / 𝑦))
31, 2bitri 184 . . . 4 (𝐴 ∈ ℚ ↔ ∃𝑦 ∈ ℕ ∃𝑧 ∈ ℤ 𝐴 = (𝑧 / 𝑦))
4 breq2 4052 . . . . . . . . . . 11 (𝐴 = (𝑧 / 𝑦) → (0 < 𝐴 ↔ 0 < (𝑧 / 𝑦)))
5 zre 9389 . . . . . . . . . . . . . 14 (𝑧 ∈ ℤ → 𝑧 ∈ ℝ)
65adantl 277 . . . . . . . . . . . . 13 ((𝑦 ∈ ℕ ∧ 𝑧 ∈ ℤ) → 𝑧 ∈ ℝ)
7 nnre 9056 . . . . . . . . . . . . . 14 (𝑦 ∈ ℕ → 𝑦 ∈ ℝ)
87adantr 276 . . . . . . . . . . . . 13 ((𝑦 ∈ ℕ ∧ 𝑧 ∈ ℤ) → 𝑦 ∈ ℝ)
9 nngt0 9074 . . . . . . . . . . . . . 14 (𝑦 ∈ ℕ → 0 < 𝑦)
109adantr 276 . . . . . . . . . . . . 13 ((𝑦 ∈ ℕ ∧ 𝑧 ∈ ℤ) → 0 < 𝑦)
11 gt0div 8956 . . . . . . . . . . . . 13 ((𝑧 ∈ ℝ ∧ 𝑦 ∈ ℝ ∧ 0 < 𝑦) → (0 < 𝑧 ↔ 0 < (𝑧 / 𝑦)))
126, 8, 10, 11syl3anc 1250 . . . . . . . . . . . 12 ((𝑦 ∈ ℕ ∧ 𝑧 ∈ ℤ) → (0 < 𝑧 ↔ 0 < (𝑧 / 𝑦)))
1312bicomd 141 . . . . . . . . . . 11 ((𝑦 ∈ ℕ ∧ 𝑧 ∈ ℤ) → (0 < (𝑧 / 𝑦) ↔ 0 < 𝑧))
144, 13sylan9bb 462 . . . . . . . . . 10 ((𝐴 = (𝑧 / 𝑦) ∧ (𝑦 ∈ ℕ ∧ 𝑧 ∈ ℤ)) → (0 < 𝐴 ↔ 0 < 𝑧))
15 elnnz 9395 . . . . . . . . . . . . . . . 16 (𝑧 ∈ ℕ ↔ (𝑧 ∈ ℤ ∧ 0 < 𝑧))
1615simplbi2 385 . . . . . . . . . . . . . . 15 (𝑧 ∈ ℤ → (0 < 𝑧𝑧 ∈ ℕ))
1716adantl 277 . . . . . . . . . . . . . 14 ((𝑦 ∈ ℕ ∧ 𝑧 ∈ ℤ) → (0 < 𝑧𝑧 ∈ ℕ))
1817adantl 277 . . . . . . . . . . . . 13 ((𝐴 = (𝑧 / 𝑦) ∧ (𝑦 ∈ ℕ ∧ 𝑧 ∈ ℤ)) → (0 < 𝑧𝑧 ∈ ℕ))
1918imp 124 . . . . . . . . . . . 12 (((𝐴 = (𝑧 / 𝑦) ∧ (𝑦 ∈ ℕ ∧ 𝑧 ∈ ℤ)) ∧ 0 < 𝑧) → 𝑧 ∈ ℕ)
20 oveq1 5961 . . . . . . . . . . . . . 14 (𝑥 = 𝑧 → (𝑥 / 𝑦) = (𝑧 / 𝑦))
2120eqeq2d 2218 . . . . . . . . . . . . 13 (𝑥 = 𝑧 → (𝐴 = (𝑥 / 𝑦) ↔ 𝐴 = (𝑧 / 𝑦)))
2221adantl 277 . . . . . . . . . . . 12 ((((𝐴 = (𝑧 / 𝑦) ∧ (𝑦 ∈ ℕ ∧ 𝑧 ∈ ℤ)) ∧ 0 < 𝑧) ∧ 𝑥 = 𝑧) → (𝐴 = (𝑥 / 𝑦) ↔ 𝐴 = (𝑧 / 𝑦)))
23 simpll 527 . . . . . . . . . . . 12 (((𝐴 = (𝑧 / 𝑦) ∧ (𝑦 ∈ ℕ ∧ 𝑧 ∈ ℤ)) ∧ 0 < 𝑧) → 𝐴 = (𝑧 / 𝑦))
2419, 22, 23rspcedvd 2885 . . . . . . . . . . 11 (((𝐴 = (𝑧 / 𝑦) ∧ (𝑦 ∈ ℕ ∧ 𝑧 ∈ ℤ)) ∧ 0 < 𝑧) → ∃𝑥 ∈ ℕ 𝐴 = (𝑥 / 𝑦))
2524ex 115 . . . . . . . . . 10 ((𝐴 = (𝑧 / 𝑦) ∧ (𝑦 ∈ ℕ ∧ 𝑧 ∈ ℤ)) → (0 < 𝑧 → ∃𝑥 ∈ ℕ 𝐴 = (𝑥 / 𝑦)))
2614, 25sylbid 150 . . . . . . . . 9 ((𝐴 = (𝑧 / 𝑦) ∧ (𝑦 ∈ ℕ ∧ 𝑧 ∈ ℤ)) → (0 < 𝐴 → ∃𝑥 ∈ ℕ 𝐴 = (𝑥 / 𝑦)))
2726ex 115 . . . . . . . 8 (𝐴 = (𝑧 / 𝑦) → ((𝑦 ∈ ℕ ∧ 𝑧 ∈ ℤ) → (0 < 𝐴 → ∃𝑥 ∈ ℕ 𝐴 = (𝑥 / 𝑦))))
2827com13 80 . . . . . . 7 (0 < 𝐴 → ((𝑦 ∈ ℕ ∧ 𝑧 ∈ ℤ) → (𝐴 = (𝑧 / 𝑦) → ∃𝑥 ∈ ℕ 𝐴 = (𝑥 / 𝑦))))
2928impl 380 . . . . . 6 (((0 < 𝐴𝑦 ∈ ℕ) ∧ 𝑧 ∈ ℤ) → (𝐴 = (𝑧 / 𝑦) → ∃𝑥 ∈ ℕ 𝐴 = (𝑥 / 𝑦)))
3029rexlimdva 2624 . . . . 5 ((0 < 𝐴𝑦 ∈ ℕ) → (∃𝑧 ∈ ℤ 𝐴 = (𝑧 / 𝑦) → ∃𝑥 ∈ ℕ 𝐴 = (𝑥 / 𝑦)))
3130reximdva 2609 . . . 4 (0 < 𝐴 → (∃𝑦 ∈ ℕ ∃𝑧 ∈ ℤ 𝐴 = (𝑧 / 𝑦) → ∃𝑦 ∈ ℕ ∃𝑥 ∈ ℕ 𝐴 = (𝑥 / 𝑦)))
323, 31biimtrid 152 . . 3 (0 < 𝐴 → (𝐴 ∈ ℚ → ∃𝑦 ∈ ℕ ∃𝑥 ∈ ℕ 𝐴 = (𝑥 / 𝑦)))
3332impcom 125 . 2 ((𝐴 ∈ ℚ ∧ 0 < 𝐴) → ∃𝑦 ∈ ℕ ∃𝑥 ∈ ℕ 𝐴 = (𝑥 / 𝑦))
34 rexcom 2671 . 2 (∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝐴 = (𝑥 / 𝑦) ↔ ∃𝑦 ∈ ℕ ∃𝑥 ∈ ℕ 𝐴 = (𝑥 / 𝑦))
3533, 34sylibr 134 1 ((𝐴 ∈ ℚ ∧ 0 < 𝐴) → ∃𝑥 ∈ ℕ ∃𝑦 ∈ ℕ 𝐴 = (𝑥 / 𝑦))
Colors of variables: wff set class
Syntax hints:  wi 4  wa 104  wb 105   = wceq 1373  wcel 2177  wrex 2486   class class class wbr 4048  (class class class)co 5954  cr 7937  0cc0 7938   < clt 8120   / cdiv 8758  cn 9049  cz 9385  cq 9753
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 615  ax-in2 616  ax-io 711  ax-5 1471  ax-7 1472  ax-gen 1473  ax-ie1 1517  ax-ie2 1518  ax-8 1528  ax-10 1529  ax-11 1530  ax-i12 1531  ax-bndl 1533  ax-4 1534  ax-17 1550  ax-i9 1554  ax-ial 1558  ax-i5r 1559  ax-13 2179  ax-14 2180  ax-ext 2188  ax-sep 4167  ax-pow 4223  ax-pr 4258  ax-un 4485  ax-setind 4590  ax-cnex 8029  ax-resscn 8030  ax-1cn 8031  ax-1re 8032  ax-icn 8033  ax-addcl 8034  ax-addrcl 8035  ax-mulcl 8036  ax-mulrcl 8037  ax-addcom 8038  ax-mulcom 8039  ax-addass 8040  ax-mulass 8041  ax-distr 8042  ax-i2m1 8043  ax-0lt1 8044  ax-1rid 8045  ax-0id 8046  ax-rnegex 8047  ax-precex 8048  ax-cnre 8049  ax-pre-ltirr 8050  ax-pre-ltwlin 8051  ax-pre-lttrn 8052  ax-pre-apti 8053  ax-pre-ltadd 8054  ax-pre-mulgt0 8055  ax-pre-mulext 8056
This theorem depends on definitions:  df-bi 117  df-3or 982  df-3an 983  df-tru 1376  df-fal 1379  df-nf 1485  df-sb 1787  df-eu 2058  df-mo 2059  df-clab 2193  df-cleq 2199  df-clel 2202  df-nfc 2338  df-ne 2378  df-nel 2473  df-ral 2490  df-rex 2491  df-reu 2492  df-rmo 2493  df-rab 2494  df-v 2775  df-sbc 3001  df-csb 3096  df-dif 3170  df-un 3172  df-in 3174  df-ss 3181  df-pw 3620  df-sn 3641  df-pr 3642  df-op 3644  df-uni 3854  df-int 3889  df-iun 3932  df-br 4049  df-opab 4111  df-mpt 4112  df-id 4345  df-po 4348  df-iso 4349  df-xp 4686  df-rel 4687  df-cnv 4688  df-co 4689  df-dm 4690  df-rn 4691  df-res 4692  df-ima 4693  df-iota 5238  df-fun 5279  df-fn 5280  df-f 5281  df-fv 5285  df-riota 5909  df-ov 5957  df-oprab 5958  df-mpo 5959  df-1st 6236  df-2nd 6237  df-pnf 8122  df-mnf 8123  df-xr 8124  df-ltxr 8125  df-le 8126  df-sub 8258  df-neg 8259  df-reap 8661  df-ap 8668  df-div 8759  df-inn 9050  df-z 9386  df-q 9754
This theorem is referenced by:  elpqb  9784  logbgcd1irr  15489
  Copyright terms: Public domain W3C validator