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 39476
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 5772 . 2 ((Rel 𝐴 ∧ Rel 𝐵) → (𝐴 = 𝐵 ↔ ∀𝑢∀𝑣(⟨𝑢, 𝑣⟩ ∈ 𝐴 ↔ ⟨𝑢, 𝑣⟩ ∈ 𝐵)))
2 nfv 1951 . . 3 Ⅎ𝑢(⟨𝑥, 𝑦⟩ ∈ 𝐴 ↔ ⟨𝑥, 𝑦⟩ ∈ 𝐵)
3 nfv 1951 . . 3 Ⅎ𝑣(⟨𝑥, 𝑦⟩ ∈ 𝐴 ↔ ⟨𝑥, 𝑦⟩ ∈ 𝐵)
4 eqrelf.1 . . . . 5 Ⅎ𝑥𝐴
54nfel2 2950 . . . 4 Ⅎ𝑥⟨𝑢, 𝑣⟩ ∈ 𝐴
6 eqrelf.2 . . . . 5 Ⅎ𝑥𝐵
76nfel2 2950 . . . 4 Ⅎ𝑥⟨𝑢, 𝑣⟩ ∈ 𝐵
85, 7nfbi 1940 . . 3 Ⅎ𝑥(⟨𝑢, 𝑣⟩ ∈ 𝐴 ↔ ⟨𝑢, 𝑣⟩ ∈ 𝐵)
9 eqrelf.3 . . . . 5 Ⅎ𝑦𝐴
109nfel2 2950 . . . 4 Ⅎ𝑦⟨𝑢, 𝑣⟩ ∈ 𝐴
11 eqrelf.4 . . . . 5 Ⅎ𝑦𝐵
1211nfel2 2950 . . . 4 Ⅎ𝑦⟨𝑢, 𝑣⟩ ∈ 𝐵
1310, 12nfbi 1940 . . 3 Ⅎ𝑦(⟨𝑢, 𝑣⟩ ∈ 𝐴 ↔ ⟨𝑢, 𝑣⟩ ∈ 𝐵)
14 opeq12 4850 . . . . 5 ((𝑥 = 𝑢 ∧ 𝑦 = 𝑣) → ⟨𝑥, 𝑦⟩ = ⟨𝑢, 𝑣⟩)
1514eleq1d 2855 . . . 4 ((𝑥 = 𝑢 ∧ 𝑦 = 𝑣) → (⟨𝑥, 𝑦⟩ ∈ 𝐴 ↔ ⟨𝑢, 𝑣⟩ ∈ 𝐴))
1614eleq1d 2855 . . . 4 ((𝑥 = 𝑢 ∧ 𝑦 = 𝑣) → (⟨𝑥, 𝑦⟩ ∈ 𝐵 ↔ ⟨𝑢, 𝑣⟩ ∈ 𝐵))
1715, 16bibi12d 348 . . 3 ((𝑥 = 𝑢 ∧ 𝑦 = 𝑣) → ((⟨𝑥, 𝑦⟩ ∈ 𝐴 ↔ ⟨𝑥, 𝑦⟩ ∈ 𝐵) ↔ (⟨𝑢, 𝑣⟩ ∈ 𝐴 ↔ ⟨𝑢, 𝑣⟩ ∈ 𝐵)))
182, 3, 8, 13, 17cbval2v 2380 . 2 (∀𝑥∀𝑦(⟨𝑥, 𝑦⟩ ∈ 𝐴 ↔ ⟨𝑥, 𝑦⟩ ∈ 𝐵) ↔ ∀𝑢∀𝑣(⟨𝑢, 𝑣⟩ ∈ 𝐴 ↔ ⟨𝑢, 𝑣⟩ ∈ 𝐵))
191, 18bitr4di 292 1 ((Rel 𝐴 ∧ Rel 𝐵) → (𝐴 = 𝐵 ↔ ∀𝑥∀𝑦(⟨𝑥, 𝑦⟩ ∈ 𝐴 ↔ ⟨𝑥, 𝑦⟩ ∈ 𝐵)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401  ∀wal 1570   = wceq 1572   ∈ wcel 2151  Ⅎwnfc 2917  ⟨cop 4843  Rel wrel 5666
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-10 2184  ax-11 2201  ax-12 2220  ax-ext 2741
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2105  df-clab 2748  df-cleq 2761  df-clel 2845  df-nfc 2919  df-rab 3419  df-v 3458  df-ss 3903  df-dif 4052  df-un 4156  df-nul 4284  df-if 4488  df-sn 4591  df-pr 4593  df-op 4844  df-opab 5177  df-xp 5667  df-rel 5668
This theorem is used by:  vvdifopab  39483
  Copyright terms: Public domain W3C validator