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

Theorem eceqoveq 8611
Description: Equality of equivalence relation in terms of an operation. (Contributed by NM, 15-Feb-1996.) (Proof shortened by Mario Carneiro, 12-Aug-2015.)
Hypotheses
Ref Expression
eceqoveq.5 Er (𝑆 × 𝑆)
eceqoveq.7 dom + = (𝑆 × 𝑆)
eceqoveq.8 ¬ ∅ ∈ 𝑆
eceqoveq.9 ((𝑥𝑆𝑦𝑆) → (𝑥 + 𝑦) ∈ 𝑆)
eceqoveq.10 (((𝐴𝑆𝐵𝑆) ∧ (𝐶𝑆𝐷𝑆)) → (⟨𝐴, 𝐵𝐶, 𝐷⟩ ↔ (𝐴 + 𝐷) = (𝐵 + 𝐶)))
Assertion
Ref Expression
eceqoveq ((𝐴𝑆𝐶𝑆) → ([⟨𝐴, 𝐵⟩] = [⟨𝐶, 𝐷⟩] ↔ (𝐴 + 𝐷) = (𝐵 + 𝐶)))
Distinct variable groups:   𝑥,𝑦, +   𝑥,𝑆,𝑦   𝑥,𝐴,𝑦   𝑥,𝐵,𝑦   𝑥,𝐶,𝑦   𝑥,𝐷,𝑦
Allowed substitution hints:   (𝑥,𝑦)

Proof of Theorem eceqoveq
StepHypRef Expression
1 opelxpi 5626 . . . . . . . 8 ((𝐴𝑆𝐵𝑆) → ⟨𝐴, 𝐵⟩ ∈ (𝑆 × 𝑆))
21ad2antrr 723 . . . . . . 7 ((((𝐴𝑆𝐵𝑆) ∧ 𝐶𝑆) ∧ [⟨𝐴, 𝐵⟩] = [⟨𝐶, 𝐷⟩] ) → ⟨𝐴, 𝐵⟩ ∈ (𝑆 × 𝑆))
3 eceqoveq.5 . . . . . . . . 9 Er (𝑆 × 𝑆)
43a1i 11 . . . . . . . 8 ((((𝐴𝑆𝐵𝑆) ∧ 𝐶𝑆) ∧ [⟨𝐴, 𝐵⟩] = [⟨𝐶, 𝐷⟩] ) → Er (𝑆 × 𝑆))
5 simpr 485 . . . . . . . 8 ((((𝐴𝑆𝐵𝑆) ∧ 𝐶𝑆) ∧ [⟨𝐴, 𝐵⟩] = [⟨𝐶, 𝐷⟩] ) → [⟨𝐴, 𝐵⟩] = [⟨𝐶, 𝐷⟩] )
64, 5ereldm 8546 . . . . . . 7 ((((𝐴𝑆𝐵𝑆) ∧ 𝐶𝑆) ∧ [⟨𝐴, 𝐵⟩] = [⟨𝐶, 𝐷⟩] ) → (⟨𝐴, 𝐵⟩ ∈ (𝑆 × 𝑆) ↔ ⟨𝐶, 𝐷⟩ ∈ (𝑆 × 𝑆)))
72, 6mpbid 231 . . . . . 6 ((((𝐴𝑆𝐵𝑆) ∧ 𝐶𝑆) ∧ [⟨𝐴, 𝐵⟩] = [⟨𝐶, 𝐷⟩] ) → ⟨𝐶, 𝐷⟩ ∈ (𝑆 × 𝑆))
8 opelxp2 5631 . . . . . 6 (⟨𝐶, 𝐷⟩ ∈ (𝑆 × 𝑆) → 𝐷𝑆)
97, 8syl 17 . . . . 5 ((((𝐴𝑆𝐵𝑆) ∧ 𝐶𝑆) ∧ [⟨𝐴, 𝐵⟩] = [⟨𝐶, 𝐷⟩] ) → 𝐷𝑆)
109ex 413 . . . 4 (((𝐴𝑆𝐵𝑆) ∧ 𝐶𝑆) → ([⟨𝐴, 𝐵⟩] = [⟨𝐶, 𝐷⟩] 𝐷𝑆))
11 eceqoveq.9 . . . . . . . 8 ((𝑥𝑆𝑦𝑆) → (𝑥 + 𝑦) ∈ 𝑆)
1211caovcl 7466 . . . . . . 7 ((𝐵𝑆𝐶𝑆) → (𝐵 + 𝐶) ∈ 𝑆)
13 eleq1 2826 . . . . . . 7 ((𝐴 + 𝐷) = (𝐵 + 𝐶) → ((𝐴 + 𝐷) ∈ 𝑆 ↔ (𝐵 + 𝐶) ∈ 𝑆))
1412, 13syl5ibr 245 . . . . . 6 ((𝐴 + 𝐷) = (𝐵 + 𝐶) → ((𝐵𝑆𝐶𝑆) → (𝐴 + 𝐷) ∈ 𝑆))
15 eceqoveq.7 . . . . . . . 8 dom + = (𝑆 × 𝑆)
16 eceqoveq.8 . . . . . . . 8 ¬ ∅ ∈ 𝑆
1715, 16ndmovrcl 7458 . . . . . . 7 ((𝐴 + 𝐷) ∈ 𝑆 → (𝐴𝑆𝐷𝑆))
1817simprd 496 . . . . . 6 ((𝐴 + 𝐷) ∈ 𝑆𝐷𝑆)
1914, 18syl6com 37 . . . . 5 ((𝐵𝑆𝐶𝑆) → ((𝐴 + 𝐷) = (𝐵 + 𝐶) → 𝐷𝑆))
2019adantll 711 . . . 4 (((𝐴𝑆𝐵𝑆) ∧ 𝐶𝑆) → ((𝐴 + 𝐷) = (𝐵 + 𝐶) → 𝐷𝑆))
213a1i 11 . . . . . . 7 (((𝐴𝑆𝐵𝑆) ∧ (𝐶𝑆𝐷𝑆)) → Er (𝑆 × 𝑆))
221adantr 481 . . . . . . 7 (((𝐴𝑆𝐵𝑆) ∧ (𝐶𝑆𝐷𝑆)) → ⟨𝐴, 𝐵⟩ ∈ (𝑆 × 𝑆))
2321, 22erth 8547 . . . . . 6 (((𝐴𝑆𝐵𝑆) ∧ (𝐶𝑆𝐷𝑆)) → (⟨𝐴, 𝐵𝐶, 𝐷⟩ ↔ [⟨𝐴, 𝐵⟩] = [⟨𝐶, 𝐷⟩] ))
24 eceqoveq.10 . . . . . 6 (((𝐴𝑆𝐵𝑆) ∧ (𝐶𝑆𝐷𝑆)) → (⟨𝐴, 𝐵𝐶, 𝐷⟩ ↔ (𝐴 + 𝐷) = (𝐵 + 𝐶)))
2523, 24bitr3d 280 . . . . 5 (((𝐴𝑆𝐵𝑆) ∧ (𝐶𝑆𝐷𝑆)) → ([⟨𝐴, 𝐵⟩] = [⟨𝐶, 𝐷⟩] ↔ (𝐴 + 𝐷) = (𝐵 + 𝐶)))
2625expr 457 . . . 4 (((𝐴𝑆𝐵𝑆) ∧ 𝐶𝑆) → (𝐷𝑆 → ([⟨𝐴, 𝐵⟩] = [⟨𝐶, 𝐷⟩] ↔ (𝐴 + 𝐷) = (𝐵 + 𝐶))))
2710, 20, 26pm5.21ndd 381 . . 3 (((𝐴𝑆𝐵𝑆) ∧ 𝐶𝑆) → ([⟨𝐴, 𝐵⟩] = [⟨𝐶, 𝐷⟩] ↔ (𝐴 + 𝐷) = (𝐵 + 𝐶)))
2827an32s 649 . 2 (((𝐴𝑆𝐶𝑆) ∧ 𝐵𝑆) → ([⟨𝐴, 𝐵⟩] = [⟨𝐶, 𝐷⟩] ↔ (𝐴 + 𝐷) = (𝐵 + 𝐶)))
29 eqcom 2745 . . . 4 (∅ = [⟨𝐶, 𝐷⟩] ↔ [⟨𝐶, 𝐷⟩] = ∅)
30 erdm 8508 . . . . . . . . . . . 12 ( Er (𝑆 × 𝑆) → dom = (𝑆 × 𝑆))
313, 30ax-mp 5 . . . . . . . . . . 11 dom = (𝑆 × 𝑆)
3231eleq2i 2830 . . . . . . . . . 10 (⟨𝐶, 𝐷⟩ ∈ dom ↔ ⟨𝐶, 𝐷⟩ ∈ (𝑆 × 𝑆))
33 ecdmn0 8545 . . . . . . . . . 10 (⟨𝐶, 𝐷⟩ ∈ dom ↔ [⟨𝐶, 𝐷⟩] ≠ ∅)
34 opelxp 5625 . . . . . . . . . 10 (⟨𝐶, 𝐷⟩ ∈ (𝑆 × 𝑆) ↔ (𝐶𝑆𝐷𝑆))
3532, 33, 343bitr3i 301 . . . . . . . . 9 ([⟨𝐶, 𝐷⟩] ≠ ∅ ↔ (𝐶𝑆𝐷𝑆))
3635simplbi2 501 . . . . . . . 8 (𝐶𝑆 → (𝐷𝑆 → [⟨𝐶, 𝐷⟩] ≠ ∅))
3736ad2antlr 724 . . . . . . 7 (((𝐴𝑆𝐶𝑆) ∧ ¬ 𝐵𝑆) → (𝐷𝑆 → [⟨𝐶, 𝐷⟩] ≠ ∅))
3837necon2bd 2959 . . . . . 6 (((𝐴𝑆𝐶𝑆) ∧ ¬ 𝐵𝑆) → ([⟨𝐶, 𝐷⟩] = ∅ → ¬ 𝐷𝑆))
39 simpr 485 . . . . . . 7 ((𝐴𝑆𝐷𝑆) → 𝐷𝑆)
4015ndmov 7456 . . . . . . 7 (¬ (𝐴𝑆𝐷𝑆) → (𝐴 + 𝐷) = ∅)
4139, 40nsyl5 159 . . . . . 6 𝐷𝑆 → (𝐴 + 𝐷) = ∅)
4238, 41syl6 35 . . . . 5 (((𝐴𝑆𝐶𝑆) ∧ ¬ 𝐵𝑆) → ([⟨𝐶, 𝐷⟩] = ∅ → (𝐴 + 𝐷) = ∅))
43 eleq1 2826 . . . . . . 7 ((𝐴 + 𝐷) = ∅ → ((𝐴 + 𝐷) ∈ 𝑆 ↔ ∅ ∈ 𝑆))
4416, 43mtbiri 327 . . . . . 6 ((𝐴 + 𝐷) = ∅ → ¬ (𝐴 + 𝐷) ∈ 𝑆)
4535simprbi 497 . . . . . . . 8 ([⟨𝐶, 𝐷⟩] ≠ ∅ → 𝐷𝑆)
4611caovcl 7466 . . . . . . . . . 10 ((𝐴𝑆𝐷𝑆) → (𝐴 + 𝐷) ∈ 𝑆)
4746ex 413 . . . . . . . . 9 (𝐴𝑆 → (𝐷𝑆 → (𝐴 + 𝐷) ∈ 𝑆))
4847ad2antrr 723 . . . . . . . 8 (((𝐴𝑆𝐶𝑆) ∧ ¬ 𝐵𝑆) → (𝐷𝑆 → (𝐴 + 𝐷) ∈ 𝑆))
4945, 48syl5 34 . . . . . . 7 (((𝐴𝑆𝐶𝑆) ∧ ¬ 𝐵𝑆) → ([⟨𝐶, 𝐷⟩] ≠ ∅ → (𝐴 + 𝐷) ∈ 𝑆))
5049necon1bd 2961 . . . . . 6 (((𝐴𝑆𝐶𝑆) ∧ ¬ 𝐵𝑆) → (¬ (𝐴 + 𝐷) ∈ 𝑆 → [⟨𝐶, 𝐷⟩] = ∅))
5144, 50syl5 34 . . . . 5 (((𝐴𝑆𝐶𝑆) ∧ ¬ 𝐵𝑆) → ((𝐴 + 𝐷) = ∅ → [⟨𝐶, 𝐷⟩] = ∅))
5242, 51impbid 211 . . . 4 (((𝐴𝑆𝐶𝑆) ∧ ¬ 𝐵𝑆) → ([⟨𝐶, 𝐷⟩] = ∅ ↔ (𝐴 + 𝐷) = ∅))
5329, 52bitrid 282 . . 3 (((𝐴𝑆𝐶𝑆) ∧ ¬ 𝐵𝑆) → (∅ = [⟨𝐶, 𝐷⟩] ↔ (𝐴 + 𝐷) = ∅))
5431eleq2i 2830 . . . . . . . 8 (⟨𝐴, 𝐵⟩ ∈ dom ↔ ⟨𝐴, 𝐵⟩ ∈ (𝑆 × 𝑆))
55 ecdmn0 8545 . . . . . . . 8 (⟨𝐴, 𝐵⟩ ∈ dom ↔ [⟨𝐴, 𝐵⟩] ≠ ∅)
56 opelxp 5625 . . . . . . . 8 (⟨𝐴, 𝐵⟩ ∈ (𝑆 × 𝑆) ↔ (𝐴𝑆𝐵𝑆))
5754, 55, 563bitr3i 301 . . . . . . 7 ([⟨𝐴, 𝐵⟩] ≠ ∅ ↔ (𝐴𝑆𝐵𝑆))
5857simprbi 497 . . . . . 6 ([⟨𝐴, 𝐵⟩] ≠ ∅ → 𝐵𝑆)
5958necon1bi 2972 . . . . 5 𝐵𝑆 → [⟨𝐴, 𝐵⟩] = ∅)
6059adantl 482 . . . 4 (((𝐴𝑆𝐶𝑆) ∧ ¬ 𝐵𝑆) → [⟨𝐴, 𝐵⟩] = ∅)
6160eqeq1d 2740 . . 3 (((𝐴𝑆𝐶𝑆) ∧ ¬ 𝐵𝑆) → ([⟨𝐴, 𝐵⟩] = [⟨𝐶, 𝐷⟩] ↔ ∅ = [⟨𝐶, 𝐷⟩] ))
62 simpl 483 . . . . . 6 ((𝐵𝑆𝐶𝑆) → 𝐵𝑆)
6315ndmov 7456 . . . . . 6 (¬ (𝐵𝑆𝐶𝑆) → (𝐵 + 𝐶) = ∅)
6462, 63nsyl5 159 . . . . 5 𝐵𝑆 → (𝐵 + 𝐶) = ∅)
6564adantl 482 . . . 4 (((𝐴𝑆𝐶𝑆) ∧ ¬ 𝐵𝑆) → (𝐵 + 𝐶) = ∅)
6665eqeq2d 2749 . . 3 (((𝐴𝑆𝐶𝑆) ∧ ¬ 𝐵𝑆) → ((𝐴 + 𝐷) = (𝐵 + 𝐶) ↔ (𝐴 + 𝐷) = ∅))
6753, 61, 663bitr4d 311 . 2 (((𝐴𝑆𝐶𝑆) ∧ ¬ 𝐵𝑆) → ([⟨𝐴, 𝐵⟩] = [⟨𝐶, 𝐷⟩] ↔ (𝐴 + 𝐷) = (𝐵 + 𝐶)))
6828, 67pm2.61dan 810 1 ((𝐴𝑆𝐶𝑆) → ([⟨𝐴, 𝐵⟩] = [⟨𝐶, 𝐷⟩] ↔ (𝐴 + 𝐷) = (𝐵 + 𝐶)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 396   = wceq 1539  wcel 2106  wne 2943  c0 4256  cop 4567   class class class wbr 5074   × cxp 5587  dom cdm 5589  (class class class)co 7275   Er wer 8495  [cec 8496
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-ne 2944  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-br 5075  df-opab 5137  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-iota 6391  df-fv 6441  df-ov 7278  df-er 8498  df-ec 8500
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator