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

Theorem nqereq 10893
Description: The function [Q] acts as a substitute for equivalence classes, and it satisfies the fundamental requirement for equivalence representatives: the representatives are equal iff the members are equivalent. (Contributed by Mario Carneiro, 6-May-2013.) (Revised by Mario Carneiro, 12-Aug-2015.) (New usage is discouraged.)
Assertion
Ref Expression
nqereq ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N)) → (𝐴 ~Q 𝐵 ↔ ([Q]‘𝐴) = ([Q]‘𝐵)))

Proof of Theorem nqereq
StepHypRef Expression
1 nqercl 10889 . . . . 5 (𝐴 ∈ (N × N) → ([Q]‘𝐴) ∈ Q)
213ad2ant1 1146 . . . 4 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐴 ~Q 𝐵) → ([Q]‘𝐴) ∈ Q)
3 nqercl 10889 . . . . 5 (𝐵 ∈ (N × N) → ([Q]‘𝐵) ∈ Q)
433ad2ant2 1147 . . . 4 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐴 ~Q 𝐵) → ([Q]‘𝐵) ∈ Q)
5 enqer 10879 . . . . . 6 ~Q Er (N × N)
65a1i 11 . . . . 5 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐴 ~Q 𝐵) → ~Q Er (N × N))
7 nqerrel 10890 . . . . . . 7 (𝐴 ∈ (N × N) → 𝐴 ~Q ([Q]‘𝐴))
873ad2ant1 1146 . . . . . 6 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐴 ~Q 𝐵) → 𝐴 ~Q ([Q]‘𝐴))
9 simp3 1151 . . . . . 6 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐴 ~Q 𝐵) → 𝐴 ~Q 𝐵)
106, 8, 9ertr3d 8697 . . . . 5 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐴 ~Q 𝐵) → ([Q]‘𝐴) ~Q 𝐵)
11 nqerrel 10890 . . . . . 6 (𝐵 ∈ (N × N) → 𝐵 ~Q ([Q]‘𝐵))
12113ad2ant2 1147 . . . . 5 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐴 ~Q 𝐵) → 𝐵 ~Q ([Q]‘𝐵))
136, 10, 12ertrd 8695 . . . 4 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐴 ~Q 𝐵) → ([Q]‘𝐴) ~Q ([Q]‘𝐵))
14 enqeq 10892 . . . 4 ((([Q]‘𝐴) ∈ Q ∧ ([Q]‘𝐵) ∈ Q ∧ ([Q]‘𝐴) ~Q ([Q]‘𝐵)) → ([Q]‘𝐴) = ([Q]‘𝐵))
152, 4, 13, 14syl3anc 1390 . . 3 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐴 ~Q 𝐵) → ([Q]‘𝐴) = ([Q]‘𝐵))
16153expia 1134 . 2 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N)) → (𝐴 ~Q 𝐵 → ([Q]‘𝐴) = ([Q]‘𝐵)))
175a1i 11 . . . 4 ((𝐴 ∈ (N × N) ∧ (𝐵 ∈ (N × N) ∧ ([Q]‘𝐴) = ([Q]‘𝐵))) → ~Q Er (N × N))
187adantr 484 . . . . 5 ((𝐴 ∈ (N × N) ∧ (𝐵 ∈ (N × N) ∧ ([Q]‘𝐴) = ([Q]‘𝐵))) → 𝐴 ~Q ([Q]‘𝐴))
19 simprr 782 . . . . 5 ((𝐴 ∈ (N × N) ∧ (𝐵 ∈ (N × N) ∧ ([Q]‘𝐴) = ([Q]‘𝐵))) → ([Q]‘𝐴) = ([Q]‘𝐵))
2018, 19breqtrd 5126 . . . 4 ((𝐴 ∈ (N × N) ∧ (𝐵 ∈ (N × N) ∧ ([Q]‘𝐴) = ([Q]‘𝐵))) → 𝐴 ~Q ([Q]‘𝐵))
2111ad2antrl 738 . . . 4 ((𝐴 ∈ (N × N) ∧ (𝐵 ∈ (N × N) ∧ ([Q]‘𝐴) = ([Q]‘𝐵))) → 𝐵 ~Q ([Q]‘𝐵))
2217, 20, 21ertr4d 8698 . . 3 ((𝐴 ∈ (N × N) ∧ (𝐵 ∈ (N × N) ∧ ([Q]‘𝐴) = ([Q]‘𝐵))) → 𝐴 ~Q 𝐵)
2322expr 460 . 2 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N)) → (([Q]‘𝐴) = ([Q]‘𝐵) → 𝐴 ~Q 𝐵))
2416, 23impbid 214 1 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N)) → (𝐴 ~Q 𝐵 ↔ ([Q]‘𝐴) = ([Q]‘𝐵)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 399  w3a 1098   = wceq 1560  wcel 2142   class class class wbr 5100   × cxp 5645  cfv 6521   Er wer 8675  Ncnpi 10802   ~Q ceq 10809  Qcnq 10810  [Q]cerq 10812
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1815  ax-4 1829  ax-5 1930  ax-6 1987  ax-7 2028  ax-8 2144  ax-9 2152  ax-10 2175  ax-11 2191  ax-12 2212  ax-ext 2734  ax-sep 5246  ax-nul 5256  ax-pr 5390  ax-un 7718
This theorem depends on definitions:  df-bi 209  df-an 400  df-or 859  df-3or 1099  df-3an 1100  df-tru 1563  df-fal 1573  df-ex 1800  df-nf 1804  df-sb 2091  df-mo 2566  df-eu 2596  df-clab 2741  df-cleq 2754  df-clel 2837  df-nfc 2911  df-ne 2958  df-ral 3077  df-rex 3087  df-rmo 3367  df-reu 3368  df-rab 3415  df-v 3456  df-sbc 3745  df-csb 3853  df-dif 3907  df-un 3909  df-in 3911  df-ss 3921  df-pss 3924  df-nul 4286  df-if 4481  df-pw 4557  df-sn 4583  df-pr 4585  df-op 4589  df-uni 4866  df-iun 4951  df-br 5101  df-opab 5163  df-mpt 5182  df-tr 5208  df-id 5542  df-eprel 5547  df-po 5555  df-so 5556  df-fr 5600  df-we 5602  df-xp 5653  df-rel 5654  df-cnv 5655  df-co 5656  df-dm 5657  df-rn 5658  df-res 5659  df-ima 5660  df-pred 6288  df-ord 6349  df-on 6350  df-lim 6351  df-suc 6352  df-iota 6477  df-fun 6523  df-fn 6524  df-f 6525  df-f1 6526  df-fo 6527  df-f1o 6528  df-fv 6529  df-ov 7399  df-oprab 7400  df-mpo 7401  df-om 7847  df-1st 7970  df-2nd 7971  df-frecs 8262  df-wrecs 8293  df-recs 8342  df-rdg 8381  df-1o 8437  df-oadd 8441  df-omul 8442  df-er 8678  df-ni 10830  df-mi 10832  df-lti 10833  df-enq 10869  df-nq 10870  df-erq 10871  df-1nq 10874
This theorem is referenced by:  adderpq  10914  mulerpq  10915  distrnq  10919  recmulnq  10922  ltexnq  10933
  Copyright terms: Public domain W3C validator