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

Theorem enqbreq2 11029
Description: Equivalence relation for positive fractions in terms of positive integers. (Contributed by Mario Carneiro, 8-May-2013.) (New usage is discouraged.)
Assertion
Ref Expression
enqbreq2 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N)) → (𝐴 ~Q 𝐵 ↔ ((1st ‘𝐴) ·N (2nd ‘𝐵)) = ((1st ‘𝐵) ·N (2nd ‘𝐴))))

Proof of Theorem enqbreq2
StepHypRef Expression
1 1st2nd2 8061 . . 3 (𝐴 ∈ (N × N) → 𝐴 = ⟨(1st ‘𝐴), (2nd ‘𝐴)⟩)
2 1st2nd2 8061 . . 3 (𝐵 ∈ (N × N) → 𝐵 = ⟨(1st ‘𝐵), (2nd ‘𝐵)⟩)
31, 2breqan12d 5122 . 2 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N)) → (𝐴 ~Q 𝐵 ↔ ⟨(1st ‘𝐴), (2nd ‘𝐴)⟩ ~Q ⟨(1st ‘𝐵), (2nd ‘𝐵)⟩))
4 xp1st 8054 . . . 4 (𝐴 ∈ (N × N) → (1st ‘𝐴) ∈ N)
5 xp2nd 8055 . . . 4 (𝐴 ∈ (N × N) → (2nd ‘𝐴) ∈ N)
64, 5jca 521 . . 3 (𝐴 ∈ (N × N) → ((1st ‘𝐴) ∈ N ∧ (2nd ‘𝐴) ∈ N))
7 xp1st 8054 . . . 4 (𝐵 ∈ (N × N) → (1st ‘𝐵) ∈ N)
8 xp2nd 8055 . . . 4 (𝐵 ∈ (N × N) → (2nd ‘𝐵) ∈ N)
97, 8jca 521 . . 3 (𝐵 ∈ (N × N) → ((1st ‘𝐵) ∈ N ∧ (2nd ‘𝐵) ∈ N))
10 enqbreq 11028 . . 3 ((((1st ‘𝐴) ∈ N ∧ (2nd ‘𝐴) ∈ N) ∧ ((1st ‘𝐵) ∈ N ∧ (2nd ‘𝐵) ∈ N)) → (⟨(1st ‘𝐴), (2nd ‘𝐴)⟩ ~Q ⟨(1st ‘𝐵), (2nd ‘𝐵)⟩ ↔ ((1st ‘𝐴) ·N (2nd ‘𝐵)) = ((2nd ‘𝐴) ·N (1st ‘𝐵))))
116, 9, 10syl2an 608 . 2 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N)) → (⟨(1st ‘𝐴), (2nd ‘𝐴)⟩ ~Q ⟨(1st ‘𝐵), (2nd ‘𝐵)⟩ ↔ ((1st ‘𝐴) ·N (2nd ‘𝐵)) = ((2nd ‘𝐴) ·N (1st ‘𝐵))))
12 mulcompi 11005 . . . 4 ((2nd ‘𝐴) ·N (1st ‘𝐵)) = ((1st ‘𝐵) ·N (2nd ‘𝐴))
1312eqeq2i 2776 . . 3 (((1st ‘𝐴) ·N (2nd ‘𝐵)) = ((2nd ‘𝐴) ·N (1st ‘𝐵)) ↔ ((1st ‘𝐴) ·N (2nd ‘𝐵)) = ((1st ‘𝐵) ·N (2nd ‘𝐴)))
1413a1i 11 . 2 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N)) → (((1st ‘𝐴) ·N (2nd ‘𝐵)) = ((2nd ‘𝐴) ·N (1st ‘𝐵)) ↔ ((1st ‘𝐴) ·N (2nd ‘𝐵)) = ((1st ‘𝐵) ·N (2nd ‘𝐴))))
153, 11, 143bitrd 308 1 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N)) → (𝐴 ~Q 𝐵 ↔ ((1st ‘𝐴) ·N (2nd ‘𝐵)) = ((1st ‘𝐵) ·N (2nd ‘𝐴))))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1570   ∈ wcel 2147  ⟨cop 4838   class class class wbr 5106   × cxp 5653  ‘cfv 6555  (class class class)co 7440  1st c1st 8020  2nd c2nd 8021  Ncnpi 10953   ·N cmi 10955   ~Q ceq 10960
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-sep 5252  ax-nul 5263  ax-pr 5395  ax-un 7772
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-pss 4017  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-iun 4956  df-br 5107  df-opab 5171  df-mpt 5190  df-tr 5216  df-id 5550  df-eprel 5555  df-po 5563  df-so 5564  df-fr 5608  df-we 5610  df-xp 5661  df-rel 5662  df-cnv 5663  df-co 5664  df-dm 5665  df-rn 5666  df-res 5667  df-ima 5668  df-pred 6319  df-ord 6380  df-on 6381  df-lim 6382  df-suc 6383  df-iota 6509  df-fun 6557  df-fn 6558  df-f 6559  df-f1 6560  df-fo 6561  df-f1o 6562  df-fv 6563  df-ov 7443  df-oprab 7444  df-mpo 7445  df-om 7899  df-1st 8022  df-2nd 8023  df-frecs 8324  df-wrecs 8355  df-recs 8404  df-rdg 8443  df-oadd 8505  df-omul 8506  df-ni 10981  df-mi 10983  df-enq 11020
This theorem is used by:  adderpqlem  11063  mulerpqlem  11064  ltsonq  11078  lterpq  11079
  Copyright terms: Public domain W3C validator