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

Theorem ssimaex 6173
 Description: The existence of a subimage. (Contributed by NM, 8-Apr-2007.)
Hypothesis
Ref Expression
ssimaex.1 𝐴 ∈ V
Assertion
Ref Expression
ssimaex ((Fun 𝐹𝐵 ⊆ (𝐹𝐴)) → ∃𝑥(𝑥𝐴𝐵 = (𝐹𝑥)))
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵   𝑥,𝐹

Proof of Theorem ssimaex
Dummy variables 𝑤 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 dmres 5339 . . . . 5 dom (𝐹𝐴) = (𝐴 ∩ dom 𝐹)
21imaeq2i 5383 . . . 4 (𝐹 “ dom (𝐹𝐴)) = (𝐹 “ (𝐴 ∩ dom 𝐹))
3 imadmres 5544 . . . 4 (𝐹 “ dom (𝐹𝐴)) = (𝐹𝐴)
42, 3eqtr3i 2634 . . 3 (𝐹 “ (𝐴 ∩ dom 𝐹)) = (𝐹𝐴)
54sseq2i 3593 . 2 (𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹)) ↔ 𝐵 ⊆ (𝐹𝐴))
6 ssrab2 3650 . . . 4 {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} ⊆ (𝐴 ∩ dom 𝐹)
7 ssel2 3563 . . . . . . . . 9 ((𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹)) ∧ 𝑧𝐵) → 𝑧 ∈ (𝐹 “ (𝐴 ∩ dom 𝐹)))
87adantll 746 . . . . . . . 8 (((Fun 𝐹𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹))) ∧ 𝑧𝐵) → 𝑧 ∈ (𝐹 “ (𝐴 ∩ dom 𝐹)))
9 fvelima 6158 . . . . . . . . . . . 12 ((Fun 𝐹𝑧 ∈ (𝐹 “ (𝐴 ∩ dom 𝐹))) → ∃𝑤 ∈ (𝐴 ∩ dom 𝐹)(𝐹𝑤) = 𝑧)
109ex 449 . . . . . . . . . . 11 (Fun 𝐹 → (𝑧 ∈ (𝐹 “ (𝐴 ∩ dom 𝐹)) → ∃𝑤 ∈ (𝐴 ∩ dom 𝐹)(𝐹𝑤) = 𝑧))
1110adantr 480 . . . . . . . . . 10 ((Fun 𝐹𝑧𝐵) → (𝑧 ∈ (𝐹 “ (𝐴 ∩ dom 𝐹)) → ∃𝑤 ∈ (𝐴 ∩ dom 𝐹)(𝐹𝑤) = 𝑧))
12 eleq1a 2683 . . . . . . . . . . . . . . . 16 (𝑧𝐵 → ((𝐹𝑤) = 𝑧 → (𝐹𝑤) ∈ 𝐵))
1312anim2d 587 . . . . . . . . . . . . . . 15 (𝑧𝐵 → ((𝑤 ∈ (𝐴 ∩ dom 𝐹) ∧ (𝐹𝑤) = 𝑧) → (𝑤 ∈ (𝐴 ∩ dom 𝐹) ∧ (𝐹𝑤) ∈ 𝐵)))
14 fveq2 6103 . . . . . . . . . . . . . . . . 17 (𝑦 = 𝑤 → (𝐹𝑦) = (𝐹𝑤))
1514eleq1d 2672 . . . . . . . . . . . . . . . 16 (𝑦 = 𝑤 → ((𝐹𝑦) ∈ 𝐵 ↔ (𝐹𝑤) ∈ 𝐵))
1615elrab 3331 . . . . . . . . . . . . . . 15 (𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} ↔ (𝑤 ∈ (𝐴 ∩ dom 𝐹) ∧ (𝐹𝑤) ∈ 𝐵))
1713, 16syl6ibr 241 . . . . . . . . . . . . . 14 (𝑧𝐵 → ((𝑤 ∈ (𝐴 ∩ dom 𝐹) ∧ (𝐹𝑤) = 𝑧) → 𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}))
18 simpr 476 . . . . . . . . . . . . . . 15 ((𝑤 ∈ (𝐴 ∩ dom 𝐹) ∧ (𝐹𝑤) = 𝑧) → (𝐹𝑤) = 𝑧)
1918a1i 11 . . . . . . . . . . . . . 14 (𝑧𝐵 → ((𝑤 ∈ (𝐴 ∩ dom 𝐹) ∧ (𝐹𝑤) = 𝑧) → (𝐹𝑤) = 𝑧))
2017, 19jcad 554 . . . . . . . . . . . . 13 (𝑧𝐵 → ((𝑤 ∈ (𝐴 ∩ dom 𝐹) ∧ (𝐹𝑤) = 𝑧) → (𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} ∧ (𝐹𝑤) = 𝑧)))
2120reximdv2 2997 . . . . . . . . . . . 12 (𝑧𝐵 → (∃𝑤 ∈ (𝐴 ∩ dom 𝐹)(𝐹𝑤) = 𝑧 → ∃𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} (𝐹𝑤) = 𝑧))
2221adantl 481 . . . . . . . . . . 11 ((Fun 𝐹𝑧𝐵) → (∃𝑤 ∈ (𝐴 ∩ dom 𝐹)(𝐹𝑤) = 𝑧 → ∃𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} (𝐹𝑤) = 𝑧))
23 funfn 5833 . . . . . . . . . . . . 13 (Fun 𝐹𝐹 Fn dom 𝐹)
24 inss2 3796 . . . . . . . . . . . . . . 15 (𝐴 ∩ dom 𝐹) ⊆ dom 𝐹
256, 24sstri 3577 . . . . . . . . . . . . . 14 {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} ⊆ dom 𝐹
26 fvelimab 6163 . . . . . . . . . . . . . 14 ((𝐹 Fn dom 𝐹 ∧ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} ⊆ dom 𝐹) → (𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}) ↔ ∃𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} (𝐹𝑤) = 𝑧))
2725, 26mpan2 703 . . . . . . . . . . . . 13 (𝐹 Fn dom 𝐹 → (𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}) ↔ ∃𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} (𝐹𝑤) = 𝑧))
2823, 27sylbi 206 . . . . . . . . . . . 12 (Fun 𝐹 → (𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}) ↔ ∃𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} (𝐹𝑤) = 𝑧))
2928adantr 480 . . . . . . . . . . 11 ((Fun 𝐹𝑧𝐵) → (𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}) ↔ ∃𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} (𝐹𝑤) = 𝑧))
3022, 29sylibrd 248 . . . . . . . . . 10 ((Fun 𝐹𝑧𝐵) → (∃𝑤 ∈ (𝐴 ∩ dom 𝐹)(𝐹𝑤) = 𝑧𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵})))
3111, 30syld 46 . . . . . . . . 9 ((Fun 𝐹𝑧𝐵) → (𝑧 ∈ (𝐹 “ (𝐴 ∩ dom 𝐹)) → 𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵})))
3231adantlr 747 . . . . . . . 8 (((Fun 𝐹𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹))) ∧ 𝑧𝐵) → (𝑧 ∈ (𝐹 “ (𝐴 ∩ dom 𝐹)) → 𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵})))
338, 32mpd 15 . . . . . . 7 (((Fun 𝐹𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹))) ∧ 𝑧𝐵) → 𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}))
3433ex 449 . . . . . 6 ((Fun 𝐹𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹))) → (𝑧𝐵𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵})))
35 fvelima 6158 . . . . . . . . 9 ((Fun 𝐹𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵})) → ∃𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} (𝐹𝑤) = 𝑧)
3635ex 449 . . . . . . . 8 (Fun 𝐹 → (𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}) → ∃𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} (𝐹𝑤) = 𝑧))
37 eleq1 2676 . . . . . . . . . . . 12 ((𝐹𝑤) = 𝑧 → ((𝐹𝑤) ∈ 𝐵𝑧𝐵))
3837biimpcd 238 . . . . . . . . . . 11 ((𝐹𝑤) ∈ 𝐵 → ((𝐹𝑤) = 𝑧𝑧𝐵))
3938adantl 481 . . . . . . . . . 10 ((𝑤 ∈ (𝐴 ∩ dom 𝐹) ∧ (𝐹𝑤) ∈ 𝐵) → ((𝐹𝑤) = 𝑧𝑧𝐵))
4016, 39sylbi 206 . . . . . . . . 9 (𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} → ((𝐹𝑤) = 𝑧𝑧𝐵))
4140rexlimiv 3009 . . . . . . . 8 (∃𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} (𝐹𝑤) = 𝑧𝑧𝐵)
4236, 41syl6 34 . . . . . . 7 (Fun 𝐹 → (𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}) → 𝑧𝐵))
4342adantr 480 . . . . . 6 ((Fun 𝐹𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹))) → (𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}) → 𝑧𝐵))
4434, 43impbid 201 . . . . 5 ((Fun 𝐹𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹))) → (𝑧𝐵𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵})))
4544eqrdv 2608 . . . 4 ((Fun 𝐹𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹))) → 𝐵 = (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}))
46 ssimaex.1 . . . . . . 7 𝐴 ∈ V
4746inex1 4727 . . . . . 6 (𝐴 ∩ dom 𝐹) ∈ V
4847rabex 4740 . . . . 5 {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} ∈ V
49 sseq1 3589 . . . . . 6 (𝑥 = {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} → (𝑥 ⊆ (𝐴 ∩ dom 𝐹) ↔ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} ⊆ (𝐴 ∩ dom 𝐹)))
50 imaeq2 5381 . . . . . . 7 (𝑥 = {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} → (𝐹𝑥) = (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}))
5150eqeq2d 2620 . . . . . 6 (𝑥 = {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} → (𝐵 = (𝐹𝑥) ↔ 𝐵 = (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵})))
5249, 51anbi12d 743 . . . . 5 (𝑥 = {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} → ((𝑥 ⊆ (𝐴 ∩ dom 𝐹) ∧ 𝐵 = (𝐹𝑥)) ↔ ({𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} ⊆ (𝐴 ∩ dom 𝐹) ∧ 𝐵 = (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}))))
5348, 52spcev 3273 . . . 4 (({𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} ⊆ (𝐴 ∩ dom 𝐹) ∧ 𝐵 = (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵})) → ∃𝑥(𝑥 ⊆ (𝐴 ∩ dom 𝐹) ∧ 𝐵 = (𝐹𝑥)))
546, 45, 53sylancr 694 . . 3 ((Fun 𝐹𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹))) → ∃𝑥(𝑥 ⊆ (𝐴 ∩ dom 𝐹) ∧ 𝐵 = (𝐹𝑥)))
55 inss1 3795 . . . . . 6 (𝐴 ∩ dom 𝐹) ⊆ 𝐴
56 sstr 3576 . . . . . 6 ((𝑥 ⊆ (𝐴 ∩ dom 𝐹) ∧ (𝐴 ∩ dom 𝐹) ⊆ 𝐴) → 𝑥𝐴)
5755, 56mpan2 703 . . . . 5 (𝑥 ⊆ (𝐴 ∩ dom 𝐹) → 𝑥𝐴)
5857anim1i 590 . . . 4 ((𝑥 ⊆ (𝐴 ∩ dom 𝐹) ∧ 𝐵 = (𝐹𝑥)) → (𝑥𝐴𝐵 = (𝐹𝑥)))
5958eximi 1752 . . 3 (∃𝑥(𝑥 ⊆ (𝐴 ∩ dom 𝐹) ∧ 𝐵 = (𝐹𝑥)) → ∃𝑥(𝑥𝐴𝐵 = (𝐹𝑥)))
6054, 59syl 17 . 2 ((Fun 𝐹𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹))) → ∃𝑥(𝑥𝐴𝐵 = (𝐹𝑥)))
615, 60sylan2br 492 1 ((Fun 𝐹𝐵 ⊆ (𝐹𝐴)) → ∃𝑥(𝑥𝐴𝐵 = (𝐹𝑥)))
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ↔ wb 195   ∧ wa 383   = wceq 1475  ∃wex 1695   ∈ wcel 1977  ∃wrex 2897  {crab 2900  Vcvv 3173   ∩ cin 3539   ⊆ wss 3540  dom cdm 5038   ↾ cres 5040   “ cima 5041  Fun wfun 5798   Fn wfn 5799  ‘cfv 5804 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-sbc 3403  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-uni 4373  df-br 4584  df-opab 4644  df-id 4953  df-xp 5044  df-rel 5045  df-cnv 5046  df-co 5047  df-dm 5048  df-rn 5049  df-res 5050  df-ima 5051  df-iota 5768  df-fun 5806  df-fn 5807  df-fv 5812 This theorem is referenced by:  ssimaexg  6174
 Copyright terms: Public domain W3C validator