Users' Mathboxes Mathbox for Scott Fenton < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  elima4 Structured version   Visualization version   GIF version

Theorem elima4 31402
Description: Quantifier-free expression saying that a class is a member of an image. (Contributed by Scott Fenton, 8-May-2018.)
Assertion
Ref Expression
elima4 (𝐴 ∈ (𝑅𝐵) ↔ (𝑅 ∩ (𝐵 × {𝐴})) ≠ ∅)

Proof of Theorem elima4
Dummy variables 𝑥 𝑝 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 elex 3198 . 2 (𝐴 ∈ (𝑅𝐵) → 𝐴 ∈ V)
2 xpeq2 5091 . . . . . . 7 ({𝐴} = ∅ → (𝐵 × {𝐴}) = (𝐵 × ∅))
3 xp0 5513 . . . . . . 7 (𝐵 × ∅) = ∅
42, 3syl6eq 2671 . . . . . 6 ({𝐴} = ∅ → (𝐵 × {𝐴}) = ∅)
54ineq2d 3794 . . . . 5 ({𝐴} = ∅ → (𝑅 ∩ (𝐵 × {𝐴})) = (𝑅 ∩ ∅))
6 in0 3942 . . . . 5 (𝑅 ∩ ∅) = ∅
75, 6syl6eq 2671 . . . 4 ({𝐴} = ∅ → (𝑅 ∩ (𝐵 × {𝐴})) = ∅)
87necon3i 2822 . . 3 ((𝑅 ∩ (𝐵 × {𝐴})) ≠ ∅ → {𝐴} ≠ ∅)
9 snnzb 4226 . . 3 (𝐴 ∈ V ↔ {𝐴} ≠ ∅)
108, 9sylibr 224 . 2 ((𝑅 ∩ (𝐵 × {𝐴})) ≠ ∅ → 𝐴 ∈ V)
11 eleq1 2686 . . 3 (𝑥 = 𝐴 → (𝑥 ∈ (𝑅𝐵) ↔ 𝐴 ∈ (𝑅𝐵)))
12 sneq 4160 . . . . . 6 (𝑥 = 𝐴 → {𝑥} = {𝐴})
1312xpeq2d 5101 . . . . 5 (𝑥 = 𝐴 → (𝐵 × {𝑥}) = (𝐵 × {𝐴}))
1413ineq2d 3794 . . . 4 (𝑥 = 𝐴 → (𝑅 ∩ (𝐵 × {𝑥})) = (𝑅 ∩ (𝐵 × {𝐴})))
1514neeq1d 2849 . . 3 (𝑥 = 𝐴 → ((𝑅 ∩ (𝐵 × {𝑥})) ≠ ∅ ↔ (𝑅 ∩ (𝐵 × {𝐴})) ≠ ∅))
16 elin 3776 . . . . . . 7 (𝑝 ∈ (𝑅 ∩ (𝐵 × {𝑥})) ↔ (𝑝𝑅𝑝 ∈ (𝐵 × {𝑥})))
17 ancom 466 . . . . . . 7 ((𝑝𝑅𝑝 ∈ (𝐵 × {𝑥})) ↔ (𝑝 ∈ (𝐵 × {𝑥}) ∧ 𝑝𝑅))
18 elxp 5093 . . . . . . . 8 (𝑝 ∈ (𝐵 × {𝑥}) ↔ ∃𝑦𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑦𝐵𝑧 ∈ {𝑥})))
1918anbi1i 730 . . . . . . 7 ((𝑝 ∈ (𝐵 × {𝑥}) ∧ 𝑝𝑅) ↔ (∃𝑦𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑦𝐵𝑧 ∈ {𝑥})) ∧ 𝑝𝑅))
2016, 17, 193bitri 286 . . . . . 6 (𝑝 ∈ (𝑅 ∩ (𝐵 × {𝑥})) ↔ (∃𝑦𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑦𝐵𝑧 ∈ {𝑥})) ∧ 𝑝𝑅))
2120exbii 1771 . . . . 5 (∃𝑝 𝑝 ∈ (𝑅 ∩ (𝐵 × {𝑥})) ↔ ∃𝑝(∃𝑦𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑦𝐵𝑧 ∈ {𝑥})) ∧ 𝑝𝑅))
22 anass 680 . . . . . . . . 9 (((𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑦𝐵𝑧 ∈ {𝑥})) ∧ 𝑝𝑅) ↔ (𝑝 = ⟨𝑦, 𝑧⟩ ∧ ((𝑦𝐵𝑧 ∈ {𝑥}) ∧ 𝑝𝑅)))
23222exbii 1772 . . . . . . . 8 (∃𝑦𝑧((𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑦𝐵𝑧 ∈ {𝑥})) ∧ 𝑝𝑅) ↔ ∃𝑦𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ ((𝑦𝐵𝑧 ∈ {𝑥}) ∧ 𝑝𝑅)))
24 19.41vv 1912 . . . . . . . 8 (∃𝑦𝑧((𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑦𝐵𝑧 ∈ {𝑥})) ∧ 𝑝𝑅) ↔ (∃𝑦𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑦𝐵𝑧 ∈ {𝑥})) ∧ 𝑝𝑅))
2523, 24bitr3i 266 . . . . . . 7 (∃𝑦𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ ((𝑦𝐵𝑧 ∈ {𝑥}) ∧ 𝑝𝑅)) ↔ (∃𝑦𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑦𝐵𝑧 ∈ {𝑥})) ∧ 𝑝𝑅))
2625exbii 1771 . . . . . 6 (∃𝑝𝑦𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ ((𝑦𝐵𝑧 ∈ {𝑥}) ∧ 𝑝𝑅)) ↔ ∃𝑝(∃𝑦𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑦𝐵𝑧 ∈ {𝑥})) ∧ 𝑝𝑅))
27 exrot3 2042 . . . . . 6 (∃𝑝𝑦𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ ((𝑦𝐵𝑧 ∈ {𝑥}) ∧ 𝑝𝑅)) ↔ ∃𝑦𝑧𝑝(𝑝 = ⟨𝑦, 𝑧⟩ ∧ ((𝑦𝐵𝑧 ∈ {𝑥}) ∧ 𝑝𝑅)))
2826, 27bitr3i 266 . . . . 5 (∃𝑝(∃𝑦𝑧(𝑝 = ⟨𝑦, 𝑧⟩ ∧ (𝑦𝐵𝑧 ∈ {𝑥})) ∧ 𝑝𝑅) ↔ ∃𝑦𝑧𝑝(𝑝 = ⟨𝑦, 𝑧⟩ ∧ ((𝑦𝐵𝑧 ∈ {𝑥}) ∧ 𝑝𝑅)))
29 opex 4895 . . . . . . . . 9 𝑦, 𝑧⟩ ∈ V
30 eleq1 2686 . . . . . . . . . 10 (𝑝 = ⟨𝑦, 𝑧⟩ → (𝑝𝑅 ↔ ⟨𝑦, 𝑧⟩ ∈ 𝑅))
3130anbi2d 739 . . . . . . . . 9 (𝑝 = ⟨𝑦, 𝑧⟩ → (((𝑦𝐵𝑧 ∈ {𝑥}) ∧ 𝑝𝑅) ↔ ((𝑦𝐵𝑧 ∈ {𝑥}) ∧ ⟨𝑦, 𝑧⟩ ∈ 𝑅)))
3229, 31ceqsexv 3228 . . . . . . . 8 (∃𝑝(𝑝 = ⟨𝑦, 𝑧⟩ ∧ ((𝑦𝐵𝑧 ∈ {𝑥}) ∧ 𝑝𝑅)) ↔ ((𝑦𝐵𝑧 ∈ {𝑥}) ∧ ⟨𝑦, 𝑧⟩ ∈ 𝑅))
3332exbii 1771 . . . . . . 7 (∃𝑧𝑝(𝑝 = ⟨𝑦, 𝑧⟩ ∧ ((𝑦𝐵𝑧 ∈ {𝑥}) ∧ 𝑝𝑅)) ↔ ∃𝑧((𝑦𝐵𝑧 ∈ {𝑥}) ∧ ⟨𝑦, 𝑧⟩ ∈ 𝑅))
34 anass 680 . . . . . . . . 9 (((𝑦𝐵𝑧 ∈ {𝑥}) ∧ ⟨𝑦, 𝑧⟩ ∈ 𝑅) ↔ (𝑦𝐵 ∧ (𝑧 ∈ {𝑥} ∧ ⟨𝑦, 𝑧⟩ ∈ 𝑅)))
35 an12 837 . . . . . . . . 9 ((𝑦𝐵 ∧ (𝑧 ∈ {𝑥} ∧ ⟨𝑦, 𝑧⟩ ∈ 𝑅)) ↔ (𝑧 ∈ {𝑥} ∧ (𝑦𝐵 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝑅)))
36 velsn 4166 . . . . . . . . . 10 (𝑧 ∈ {𝑥} ↔ 𝑧 = 𝑥)
3736anbi1i 730 . . . . . . . . 9 ((𝑧 ∈ {𝑥} ∧ (𝑦𝐵 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝑅)) ↔ (𝑧 = 𝑥 ∧ (𝑦𝐵 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝑅)))
3834, 35, 373bitri 286 . . . . . . . 8 (((𝑦𝐵𝑧 ∈ {𝑥}) ∧ ⟨𝑦, 𝑧⟩ ∈ 𝑅) ↔ (𝑧 = 𝑥 ∧ (𝑦𝐵 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝑅)))
3938exbii 1771 . . . . . . 7 (∃𝑧((𝑦𝐵𝑧 ∈ {𝑥}) ∧ ⟨𝑦, 𝑧⟩ ∈ 𝑅) ↔ ∃𝑧(𝑧 = 𝑥 ∧ (𝑦𝐵 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝑅)))
40 vex 3189 . . . . . . . 8 𝑥 ∈ V
41 opeq2 4373 . . . . . . . . . 10 (𝑧 = 𝑥 → ⟨𝑦, 𝑧⟩ = ⟨𝑦, 𝑥⟩)
4241eleq1d 2683 . . . . . . . . 9 (𝑧 = 𝑥 → (⟨𝑦, 𝑧⟩ ∈ 𝑅 ↔ ⟨𝑦, 𝑥⟩ ∈ 𝑅))
4342anbi2d 739 . . . . . . . 8 (𝑧 = 𝑥 → ((𝑦𝐵 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝑅) ↔ (𝑦𝐵 ∧ ⟨𝑦, 𝑥⟩ ∈ 𝑅)))
4440, 43ceqsexv 3228 . . . . . . 7 (∃𝑧(𝑧 = 𝑥 ∧ (𝑦𝐵 ∧ ⟨𝑦, 𝑧⟩ ∈ 𝑅)) ↔ (𝑦𝐵 ∧ ⟨𝑦, 𝑥⟩ ∈ 𝑅))
4533, 39, 443bitri 286 . . . . . 6 (∃𝑧𝑝(𝑝 = ⟨𝑦, 𝑧⟩ ∧ ((𝑦𝐵𝑧 ∈ {𝑥}) ∧ 𝑝𝑅)) ↔ (𝑦𝐵 ∧ ⟨𝑦, 𝑥⟩ ∈ 𝑅))
4645exbii 1771 . . . . 5 (∃𝑦𝑧𝑝(𝑝 = ⟨𝑦, 𝑧⟩ ∧ ((𝑦𝐵𝑧 ∈ {𝑥}) ∧ 𝑝𝑅)) ↔ ∃𝑦(𝑦𝐵 ∧ ⟨𝑦, 𝑥⟩ ∈ 𝑅))
4721, 28, 463bitri 286 . . . 4 (∃𝑝 𝑝 ∈ (𝑅 ∩ (𝐵 × {𝑥})) ↔ ∃𝑦(𝑦𝐵 ∧ ⟨𝑦, 𝑥⟩ ∈ 𝑅))
48 n0 3909 . . . 4 ((𝑅 ∩ (𝐵 × {𝑥})) ≠ ∅ ↔ ∃𝑝 𝑝 ∈ (𝑅 ∩ (𝐵 × {𝑥})))
4940elima3 5434 . . . 4 (𝑥 ∈ (𝑅𝐵) ↔ ∃𝑦(𝑦𝐵 ∧ ⟨𝑦, 𝑥⟩ ∈ 𝑅))
5047, 48, 493bitr4ri 293 . . 3 (𝑥 ∈ (𝑅𝐵) ↔ (𝑅 ∩ (𝐵 × {𝑥})) ≠ ∅)
5111, 15, 50vtoclbg 3253 . 2 (𝐴 ∈ V → (𝐴 ∈ (𝑅𝐵) ↔ (𝑅 ∩ (𝐵 × {𝐴})) ≠ ∅))
521, 10, 51pm5.21nii 368 1 (𝐴 ∈ (𝑅𝐵) ↔ (𝑅 ∩ (𝐵 × {𝐴})) ≠ ∅)
Colors of variables: wff setvar class
Syntax hints:  wb 196  wa 384   = wceq 1480  wex 1701  wcel 1987  wne 2790  Vcvv 3186  cin 3555  c0 3893  {csn 4150  cop 4156   × cxp 5074  cima 5079
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-sep 4743  ax-nul 4751  ax-pr 4869
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-ne 2791  df-ral 2912  df-rex 2913  df-rab 2916  df-v 3188  df-dif 3559  df-un 3561  df-in 3563  df-ss 3570  df-nul 3894  df-if 4061  df-sn 4151  df-pr 4153  df-op 4157  df-br 4616  df-opab 4676  df-xp 5082  df-rel 5083  df-cnv 5084  df-dm 5086  df-rn 5087  df-res 5088  df-ima 5089
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator