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

Theorem nqpi 7752
Description: Decomposition of a positive fraction into numerator and denominator. Similar to dmaddpqlem 7751 but also shows that the numerator and denominator are positive integers. (Contributed by Jim Kingdon, 20-Sep-2019.)
Assertion
Ref Expression
nqpi (𝐴 ∈ Q → ∃𝑤∃𝑣((𝑤 ∈ N ∧ 𝑣 ∈ N) ∧ 𝐴 = [⟨𝑤, 𝑣⟩] ~Q ))
Distinct variable group:   𝑣,𝐴,𝑤

Proof of Theorem nqpi
Dummy variable 𝑎 is distinct from all other variables.
StepHypRef Expression
1 elqsi 6865 . . 3 (𝐴 ∈ ((N × N) / ~Q ) → ∃𝑎 ∈ (N × N)𝐴 = [𝑎] ~Q )
2 elxpi 4792 . . . . . . 7 (𝑎 ∈ (N × N) → ∃𝑤∃𝑣(𝑎 = ⟨𝑤, 𝑣⟩ ∧ (𝑤 ∈ N ∧ 𝑣 ∈ N)))
32anim1i 340 . . . . . 6 ((𝑎 ∈ (N × N) ∧ 𝐴 = [𝑎] ~Q ) → (∃𝑤∃𝑣(𝑎 = ⟨𝑤, 𝑣⟩ ∧ (𝑤 ∈ N ∧ 𝑣 ∈ N)) ∧ 𝐴 = [𝑎] ~Q ))
4 19.41vv 1959 . . . . . 6 (∃𝑤∃𝑣((𝑎 = ⟨𝑤, 𝑣⟩ ∧ (𝑤 ∈ N ∧ 𝑣 ∈ N)) ∧ 𝐴 = [𝑎] ~Q ) ↔ (∃𝑤∃𝑣(𝑎 = ⟨𝑤, 𝑣⟩ ∧ (𝑤 ∈ N ∧ 𝑣 ∈ N)) ∧ 𝐴 = [𝑎] ~Q ))
53, 4sylibr 134 . . . . 5 ((𝑎 ∈ (N × N) ∧ 𝐴 = [𝑎] ~Q ) → ∃𝑤∃𝑣((𝑎 = ⟨𝑤, 𝑣⟩ ∧ (𝑤 ∈ N ∧ 𝑣 ∈ N)) ∧ 𝐴 = [𝑎] ~Q ))
6 simplr 533 . . . . . . 7 (((𝑎 = ⟨𝑤, 𝑣⟩ ∧ (𝑤 ∈ N ∧ 𝑣 ∈ N)) ∧ 𝐴 = [𝑎] ~Q ) → (𝑤 ∈ N ∧ 𝑣 ∈ N))
7 simpr 110 . . . . . . . 8 (((𝑎 = ⟨𝑤, 𝑣⟩ ∧ (𝑤 ∈ N ∧ 𝑣 ∈ N)) ∧ 𝐴 = [𝑎] ~Q ) → 𝐴 = [𝑎] ~Q )
8 eceq1 6846 . . . . . . . . 9 (𝑎 = ⟨𝑤, 𝑣⟩ → [𝑎] ~Q = [⟨𝑤, 𝑣⟩] ~Q )
98ad2antrr 492 . . . . . . . 8 (((𝑎 = ⟨𝑤, 𝑣⟩ ∧ (𝑤 ∈ N ∧ 𝑣 ∈ N)) ∧ 𝐴 = [𝑎] ~Q ) → [𝑎] ~Q = [⟨𝑤, 𝑣⟩] ~Q )
107, 9eqtrd 2271 . . . . . . 7 (((𝑎 = ⟨𝑤, 𝑣⟩ ∧ (𝑤 ∈ N ∧ 𝑣 ∈ N)) ∧ 𝐴 = [𝑎] ~Q ) → 𝐴 = [⟨𝑤, 𝑣⟩] ~Q )
116, 10jca 306 . . . . . 6 (((𝑎 = ⟨𝑤, 𝑣⟩ ∧ (𝑤 ∈ N ∧ 𝑣 ∈ N)) ∧ 𝐴 = [𝑎] ~Q ) → ((𝑤 ∈ N ∧ 𝑣 ∈ N) ∧ 𝐴 = [⟨𝑤, 𝑣⟩] ~Q ))
12112eximi 1654 . . . . 5 (∃𝑤∃𝑣((𝑎 = ⟨𝑤, 𝑣⟩ ∧ (𝑤 ∈ N ∧ 𝑣 ∈ N)) ∧ 𝐴 = [𝑎] ~Q ) → ∃𝑤∃𝑣((𝑤 ∈ N ∧ 𝑣 ∈ N) ∧ 𝐴 = [⟨𝑤, 𝑣⟩] ~Q ))
135, 12syl 14 . . . 4 ((𝑎 ∈ (N × N) ∧ 𝐴 = [𝑎] ~Q ) → ∃𝑤∃𝑣((𝑤 ∈ N ∧ 𝑣 ∈ N) ∧ 𝐴 = [⟨𝑤, 𝑣⟩] ~Q ))
1413rexlimiva 2663 . . 3 (∃𝑎 ∈ (N × N)𝐴 = [𝑎] ~Q → ∃𝑤∃𝑣((𝑤 ∈ N ∧ 𝑣 ∈ N) ∧ 𝐴 = [⟨𝑤, 𝑣⟩] ~Q ))
151, 14syl 14 . 2 (𝐴 ∈ ((N × N) / ~Q ) → ∃𝑤∃𝑣((𝑤 ∈ N ∧ 𝑣 ∈ N) ∧ 𝐴 = [⟨𝑤, 𝑣⟩] ~Q ))
16 df-nqqs 7722 . 2 Q = ((N × N) / ~Q )
1715, 16eleq2s 2333 1 (𝐴 ∈ Q → ∃𝑤∃𝑣((𝑤 ∈ N ∧ 𝑣 ∈ N) ∧ 𝐴 = [⟨𝑤, 𝑣⟩] ~Q ))
Colors of variables:    wff set class
This proof depends on syntax axioms:   → wi 4   ∧ wa 104   = wceq 1402  ∃wex 1545   ∈ wcel 2209  ∃wrex 2529  ⟨cop 3712   × cxp 4774  [cec 6809   / cqs 6810  Ncnpi 7646   ~Q ceq 7653  Qcnq 7654
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-io 721  ax-5 1500  ax-7 1501  ax-gen 1502  ax-ie1 1546  ax-ie2 1547  ax-8 1557  ax-10 1558  ax-11 1559  ax-i12 1560  ax-bndl 1562  ax-4 1563  ax-17 1579  ax-i9 1583  ax-ial 1587  ax-i5r 1588  ax-ext 2220
This proof depends on definitions:  df-bi 117  df-3an 1011  df-tru 1405  df-nf 1514  df-sb 1816  df-clab 2225  df-cleq 2231  df-clel 2234  df-nfc 2381  df-ral 2533  df-rex 2534  df-v 2823  df-un 3224  df-in 3226  df-ss 3233  df-sn 3715  df-pr 3716  df-op 3718  df-br 4132  df-opab 4194  df-xp 4782  df-cnv 4784  df-dm 4786  df-rn 4787  df-res 4788  df-ima 4789  df-ec 6813  df-qs 6817  df-nqqs 7722
This theorem is used by:  ltdcnq  7771  archnqq  7791  nqpnq0nq  7827  nqnq0a  7828  nqnq0m  7829
  Copyright terms: Public domain W3C validator