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

Theorem nqereq 9511
 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 9507 . . . . 5 (𝐴 ∈ (N × N) → ([Q]‘𝐴) ∈ Q)
213ad2ant1 1074 . . . 4 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐴 ~Q 𝐵) → ([Q]‘𝐴) ∈ Q)
3 nqercl 9507 . . . . 5 (𝐵 ∈ (N × N) → ([Q]‘𝐵) ∈ Q)
433ad2ant2 1075 . . . 4 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐴 ~Q 𝐵) → ([Q]‘𝐵) ∈ Q)
5 enqer 9497 . . . . . 6 ~Q Er (N × N)
65a1i 11 . . . . 5 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐴 ~Q 𝐵) → ~Q Er (N × N))
7 nqerrel 9508 . . . . . . 7 (𝐴 ∈ (N × N) → 𝐴 ~Q ([Q]‘𝐴))
873ad2ant1 1074 . . . . . 6 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐴 ~Q 𝐵) → 𝐴 ~Q ([Q]‘𝐴))
9 simp3 1055 . . . . . 6 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐴 ~Q 𝐵) → 𝐴 ~Q 𝐵)
106, 8, 9ertr3d 7522 . . . . 5 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐴 ~Q 𝐵) → ([Q]‘𝐴) ~Q 𝐵)
11 nqerrel 9508 . . . . . 6 (𝐵 ∈ (N × N) → 𝐵 ~Q ([Q]‘𝐵))
12113ad2ant2 1075 . . . . 5 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐴 ~Q 𝐵) → 𝐵 ~Q ([Q]‘𝐵))
136, 10, 12ertrd 7520 . . . 4 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐴 ~Q 𝐵) → ([Q]‘𝐴) ~Q ([Q]‘𝐵))
14 enqeq 9510 . . . 4 ((([Q]‘𝐴) ∈ Q ∧ ([Q]‘𝐵) ∈ Q ∧ ([Q]‘𝐴) ~Q ([Q]‘𝐵)) → ([Q]‘𝐴) = ([Q]‘𝐵))
152, 4, 13, 14syl3anc 1317 . . 3 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N) ∧ 𝐴 ~Q 𝐵) → ([Q]‘𝐴) = ([Q]‘𝐵))
16153expia 1258 . 2 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N)) → (𝐴 ~Q 𝐵 → ([Q]‘𝐴) = ([Q]‘𝐵)))
175a1i 11 . . . 4 ((𝐴 ∈ (N × N) ∧ (𝐵 ∈ (N × N) ∧ ([Q]‘𝐴) = ([Q]‘𝐵))) → ~Q Er (N × N))
187adantr 479 . . . . 5 ((𝐴 ∈ (N × N) ∧ (𝐵 ∈ (N × N) ∧ ([Q]‘𝐴) = ([Q]‘𝐵))) → 𝐴 ~Q ([Q]‘𝐴))
19 simprr 791 . . . . 5 ((𝐴 ∈ (N × N) ∧ (𝐵 ∈ (N × N) ∧ ([Q]‘𝐴) = ([Q]‘𝐵))) → ([Q]‘𝐴) = ([Q]‘𝐵))
2018, 19breqtrd 4507 . . . 4 ((𝐴 ∈ (N × N) ∧ (𝐵 ∈ (N × N) ∧ ([Q]‘𝐴) = ([Q]‘𝐵))) → 𝐴 ~Q ([Q]‘𝐵))
2111ad2antrl 759 . . . 4 ((𝐴 ∈ (N × N) ∧ (𝐵 ∈ (N × N) ∧ ([Q]‘𝐴) = ([Q]‘𝐵))) → 𝐵 ~Q ([Q]‘𝐵))
2217, 20, 21ertr4d 7523 . . 3 ((𝐴 ∈ (N × N) ∧ (𝐵 ∈ (N × N) ∧ ([Q]‘𝐴) = ([Q]‘𝐵))) → 𝐴 ~Q 𝐵)
2322expr 640 . 2 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N)) → (([Q]‘𝐴) = ([Q]‘𝐵) → 𝐴 ~Q 𝐵))
2416, 23impbid 200 1 ((𝐴 ∈ (N × N) ∧ 𝐵 ∈ (N × N)) → (𝐴 ~Q 𝐵 ↔ ([Q]‘𝐴) = ([Q]‘𝐵)))
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ↔ wb 194   ∧ wa 382   ∧ w3a 1030   = wceq 1474   ∈ wcel 1938   class class class wbr 4481   × cxp 4930  ‘cfv 5689   Er wer 7501  Ncnpi 9420   ~Q ceq 9427  Qcnq 9428  [Q]cerq 9430 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1700  ax-4 1713  ax-5 1793  ax-6 1838  ax-7 1885  ax-8 1940  ax-9 1947  ax-10 1966  ax-11 1971  ax-12 1983  ax-13 2137  ax-ext 2494  ax-sep 4607  ax-nul 4616  ax-pow 4668  ax-pr 4732  ax-un 6722 This theorem depends on definitions:  df-bi 195  df-or 383  df-an 384  df-3or 1031  df-3an 1032  df-tru 1477  df-ex 1695  df-nf 1699  df-sb 1831  df-eu 2366  df-mo 2367  df-clab 2501  df-cleq 2507  df-clel 2510  df-nfc 2644  df-ne 2686  df-ral 2805  df-rex 2806  df-reu 2807  df-rmo 2808  df-rab 2809  df-v 3079  df-sbc 3307  df-csb 3404  df-dif 3447  df-un 3449  df-in 3451  df-ss 3458  df-pss 3460  df-nul 3778  df-if 3940  df-pw 4013  df-sn 4029  df-pr 4031  df-tp 4033  df-op 4035  df-uni 4271  df-iun 4355  df-br 4482  df-opab 4542  df-mpt 4543  df-tr 4579  df-eprel 4843  df-id 4847  df-po 4853  df-so 4854  df-fr 4891  df-we 4893  df-xp 4938  df-rel 4939  df-cnv 4940  df-co 4941  df-dm 4942  df-rn 4943  df-res 4944  df-ima 4945  df-pred 5487  df-ord 5533  df-on 5534  df-lim 5535  df-suc 5536  df-iota 5653  df-fun 5691  df-fn 5692  df-f 5693  df-f1 5694  df-fo 5695  df-f1o 5696  df-fv 5697  df-ov 6428  df-oprab 6429  df-mpt2 6430  df-om 6833  df-1st 6933  df-2nd 6934  df-wrecs 7168  df-recs 7230  df-rdg 7268  df-1o 7322  df-oadd 7326  df-omul 7327  df-er 7504  df-ni 9448  df-mi 9450  df-lti 9451  df-enq 9487  df-nq 9488  df-erq 9489  df-1nq 9492 This theorem is referenced by:  adderpq  9532  mulerpq  9533  distrnq  9537  recmulnq  9540  ltexnq  9551
 Copyright terms: Public domain W3C validator