Users' Mathboxes Mathbox for Peter Mazsa < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  eqrelf Structured version   Visualization version   GIF version

Theorem eqrelf 34961
Description: The equality connective between relations. (Contributed by Peter Mazsa, 25-Jun-2019.)
Hypotheses
Ref Expression
eqrelf.1 𝑥𝐴
eqrelf.2 𝑥𝐵
eqrelf.3 𝑦𝐴
eqrelf.4 𝑦𝐵
Assertion
Ref Expression
eqrelf ((Rel 𝐴 ∧ Rel 𝐵) → (𝐴 = 𝐵 ↔ ∀𝑥𝑦(⟨𝑥, 𝑦⟩ ∈ 𝐴 ↔ ⟨𝑥, 𝑦⟩ ∈ 𝐵)))
Distinct variable group:   𝑥,𝑦
Allowed substitution hints:   𝐴(𝑥,𝑦)   𝐵(𝑥,𝑦)

Proof of Theorem eqrelf
Dummy variables 𝑢 𝑣 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 eqrel 5509 . 2 ((Rel 𝐴 ∧ Rel 𝐵) → (𝐴 = 𝐵 ↔ ∀𝑢𝑣(⟨𝑢, 𝑣⟩ ∈ 𝐴 ↔ ⟨𝑢, 𝑣⟩ ∈ 𝐵)))
2 nfv 1873 . . 3 𝑢(⟨𝑥, 𝑦⟩ ∈ 𝐴 ↔ ⟨𝑥, 𝑦⟩ ∈ 𝐵)
3 nfv 1873 . . 3 𝑣(⟨𝑥, 𝑦⟩ ∈ 𝐴 ↔ ⟨𝑥, 𝑦⟩ ∈ 𝐵)
4 eqrelf.1 . . . . 5 𝑥𝐴
54nfel2 2948 . . . 4 𝑥𝑢, 𝑣⟩ ∈ 𝐴
6 eqrelf.2 . . . . 5 𝑥𝐵
76nfel2 2948 . . . 4 𝑥𝑢, 𝑣⟩ ∈ 𝐵
85, 7nfbi 1866 . . 3 𝑥(⟨𝑢, 𝑣⟩ ∈ 𝐴 ↔ ⟨𝑢, 𝑣⟩ ∈ 𝐵)
9 eqrelf.3 . . . . 5 𝑦𝐴
109nfel2 2948 . . . 4 𝑦𝑢, 𝑣⟩ ∈ 𝐴
11 eqrelf.4 . . . . 5 𝑦𝐵
1211nfel2 2948 . . . 4 𝑦𝑢, 𝑣⟩ ∈ 𝐵
1310, 12nfbi 1866 . . 3 𝑦(⟨𝑢, 𝑣⟩ ∈ 𝐴 ↔ ⟨𝑢, 𝑣⟩ ∈ 𝐵)
14 opeq12 4680 . . . . 5 ((𝑥 = 𝑢𝑦 = 𝑣) → ⟨𝑥, 𝑦⟩ = ⟨𝑢, 𝑣⟩)
1514eleq1d 2850 . . . 4 ((𝑥 = 𝑢𝑦 = 𝑣) → (⟨𝑥, 𝑦⟩ ∈ 𝐴 ↔ ⟨𝑢, 𝑣⟩ ∈ 𝐴))
1614eleq1d 2850 . . . 4 ((𝑥 = 𝑢𝑦 = 𝑣) → (⟨𝑥, 𝑦⟩ ∈ 𝐵 ↔ ⟨𝑢, 𝑣⟩ ∈ 𝐵))
1715, 16bibi12d 338 . . 3 ((𝑥 = 𝑢𝑦 = 𝑣) → ((⟨𝑥, 𝑦⟩ ∈ 𝐴 ↔ ⟨𝑥, 𝑦⟩ ∈ 𝐵) ↔ (⟨𝑢, 𝑣⟩ ∈ 𝐴 ↔ ⟨𝑢, 𝑣⟩ ∈ 𝐵)))
182, 3, 8, 13, 17cbval2 2345 . 2 (∀𝑥𝑦(⟨𝑥, 𝑦⟩ ∈ 𝐴 ↔ ⟨𝑥, 𝑦⟩ ∈ 𝐵) ↔ ∀𝑢𝑣(⟨𝑢, 𝑣⟩ ∈ 𝐴 ↔ ⟨𝑢, 𝑣⟩ ∈ 𝐵))
191, 18syl6bbr 281 1 ((Rel 𝐴 ∧ Rel 𝐵) → (𝐴 = 𝐵 ↔ ∀𝑥𝑦(⟨𝑥, 𝑦⟩ ∈ 𝐴 ↔ ⟨𝑥, 𝑦⟩ ∈ 𝐵)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 198  wa 387  wal 1505   = wceq 1507  wcel 2050  wnfc 2916  cop 4448  Rel wrel 5413
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1758  ax-4 1772  ax-5 1869  ax-6 1928  ax-7 1965  ax-8 2052  ax-9 2059  ax-10 2079  ax-11 2093  ax-12 2106  ax-13 2301  ax-ext 2750
This theorem depends on definitions:  df-bi 199  df-an 388  df-or 834  df-3an 1070  df-tru 1510  df-ex 1743  df-nf 1747  df-sb 2016  df-clab 2759  df-cleq 2771  df-clel 2846  df-nfc 2918  df-rab 3097  df-v 3417  df-dif 3834  df-un 3836  df-in 3838  df-ss 3845  df-nul 4181  df-if 4352  df-sn 4443  df-pr 4445  df-op 4449  df-opab 4993  df-xp 5414  df-rel 5415
This theorem is referenced by:  vvdifopab  34965
  Copyright terms: Public domain W3C validator