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

Theorem erinxp 7708
Description: A restricted equivalence relation is an equivalence relation. (Contributed by Mario Carneiro, 10-Jul-2015.) (Revised by Mario Carneiro, 12-Aug-2015.)
Hypotheses
Ref Expression
erinxp.r (𝜑𝑅 Er 𝐴)
erinxp.a (𝜑𝐵𝐴)
Assertion
Ref Expression
erinxp (𝜑 → (𝑅 ∩ (𝐵 × 𝐵)) Er 𝐵)

Proof of Theorem erinxp
Dummy variables 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 inss2 3796 . . . 4 (𝑅 ∩ (𝐵 × 𝐵)) ⊆ (𝐵 × 𝐵)
2 relxp 5150 . . . 4 Rel (𝐵 × 𝐵)
3 relss 5129 . . . 4 ((𝑅 ∩ (𝐵 × 𝐵)) ⊆ (𝐵 × 𝐵) → (Rel (𝐵 × 𝐵) → Rel (𝑅 ∩ (𝐵 × 𝐵))))
41, 2, 3mp2 9 . . 3 Rel (𝑅 ∩ (𝐵 × 𝐵))
54a1i 11 . 2 (𝜑 → Rel (𝑅 ∩ (𝐵 × 𝐵)))
6 simpr 476 . . . . 5 ((𝜑𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦) → 𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦)
7 brinxp2 5103 . . . . 5 (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦 ↔ (𝑥𝐵𝑦𝐵𝑥𝑅𝑦))
86, 7sylib 207 . . . 4 ((𝜑𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦) → (𝑥𝐵𝑦𝐵𝑥𝑅𝑦))
98simp2d 1067 . . 3 ((𝜑𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦) → 𝑦𝐵)
108simp1d 1066 . . 3 ((𝜑𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦) → 𝑥𝐵)
11 erinxp.r . . . . 5 (𝜑𝑅 Er 𝐴)
1211adantr 480 . . . 4 ((𝜑𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦) → 𝑅 Er 𝐴)
138simp3d 1068 . . . 4 ((𝜑𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦) → 𝑥𝑅𝑦)
1412, 13ersym 7641 . . 3 ((𝜑𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦) → 𝑦𝑅𝑥)
15 brinxp2 5103 . . 3 (𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑥 ↔ (𝑦𝐵𝑥𝐵𝑦𝑅𝑥))
169, 10, 14, 15syl3anbrc 1239 . 2 ((𝜑𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦) → 𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑥)
1710adantrr 749 . . 3 ((𝜑 ∧ (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)) → 𝑥𝐵)
18 simprr 792 . . . . 5 ((𝜑 ∧ (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)) → 𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)
19 brinxp2 5103 . . . . 5 (𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧 ↔ (𝑦𝐵𝑧𝐵𝑦𝑅𝑧))
2018, 19sylib 207 . . . 4 ((𝜑 ∧ (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)) → (𝑦𝐵𝑧𝐵𝑦𝑅𝑧))
2120simp2d 1067 . . 3 ((𝜑 ∧ (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)) → 𝑧𝐵)
2211adantr 480 . . . 4 ((𝜑 ∧ (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)) → 𝑅 Er 𝐴)
2313adantrr 749 . . . 4 ((𝜑 ∧ (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)) → 𝑥𝑅𝑦)
2420simp3d 1068 . . . 4 ((𝜑 ∧ (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)) → 𝑦𝑅𝑧)
2522, 23, 24ertrd 7645 . . 3 ((𝜑 ∧ (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)) → 𝑥𝑅𝑧)
26 brinxp2 5103 . . 3 (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑧 ↔ (𝑥𝐵𝑧𝐵𝑥𝑅𝑧))
2717, 21, 25, 26syl3anbrc 1239 . 2 ((𝜑 ∧ (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑦𝑦(𝑅 ∩ (𝐵 × 𝐵))𝑧)) → 𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑧)
2811adantr 480 . . . . . 6 ((𝜑𝑥𝐵) → 𝑅 Er 𝐴)
29 erinxp.a . . . . . . 7 (𝜑𝐵𝐴)
3029sselda 3568 . . . . . 6 ((𝜑𝑥𝐵) → 𝑥𝐴)
3128, 30erref 7649 . . . . 5 ((𝜑𝑥𝐵) → 𝑥𝑅𝑥)
3231ex 449 . . . 4 (𝜑 → (𝑥𝐵𝑥𝑅𝑥))
3332pm4.71rd 665 . . 3 (𝜑 → (𝑥𝐵 ↔ (𝑥𝑅𝑥𝑥𝐵)))
34 brin 4634 . . . 4 (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑥 ↔ (𝑥𝑅𝑥𝑥(𝐵 × 𝐵)𝑥))
35 brxp 5071 . . . . . 6 (𝑥(𝐵 × 𝐵)𝑥 ↔ (𝑥𝐵𝑥𝐵))
36 anidm 674 . . . . . 6 ((𝑥𝐵𝑥𝐵) ↔ 𝑥𝐵)
3735, 36bitri 263 . . . . 5 (𝑥(𝐵 × 𝐵)𝑥𝑥𝐵)
3837anbi2i 726 . . . 4 ((𝑥𝑅𝑥𝑥(𝐵 × 𝐵)𝑥) ↔ (𝑥𝑅𝑥𝑥𝐵))
3934, 38bitri 263 . . 3 (𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑥 ↔ (𝑥𝑅𝑥𝑥𝐵))
4033, 39syl6bbr 277 . 2 (𝜑 → (𝑥𝐵𝑥(𝑅 ∩ (𝐵 × 𝐵))𝑥))
415, 16, 27, 40iserd 7655 1 (𝜑 → (𝑅 ∩ (𝐵 × 𝐵)) Er 𝐵)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 383  w3a 1031  wcel 1977  cin 3539  wss 3540   class class class wbr 4583   × cxp 5036  Rel wrel 5043   Er wer 7626
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-9 1986  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590  ax-sep 4709  ax-nul 4717  ax-pr 4833
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-3an 1033  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-eu 2462  df-mo 2463  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-ral 2901  df-rex 2902  df-rab 2905  df-v 3175  df-dif 3543  df-un 3545  df-in 3547  df-ss 3554  df-nul 3875  df-if 4037  df-sn 4126  df-pr 4128  df-op 4132  df-br 4584  df-opab 4644  df-xp 5044  df-rel 5045  df-cnv 5046  df-co 5047  df-dm 5048  df-er 7629
This theorem is referenced by:  frgpuplem  18008  pi1buni  22648  pi1addf  22655  pi1addval  22656  pi1grplem  22657
  Copyright terms: Public domain W3C validator