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

Theorem ssimaex 6835
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 5902 . . . . 5 dom (𝐹𝐴) = (𝐴 ∩ dom 𝐹)
21imaeq2i 5956 . . . 4 (𝐹 “ dom (𝐹𝐴)) = (𝐹 “ (𝐴 ∩ dom 𝐹))
3 imadmres 6126 . . . 4 (𝐹 “ dom (𝐹𝐴)) = (𝐹𝐴)
42, 3eqtr3i 2768 . . 3 (𝐹 “ (𝐴 ∩ dom 𝐹)) = (𝐹𝐴)
54sseq2i 3946 . 2 (𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹)) ↔ 𝐵 ⊆ (𝐹𝐴))
6 ssrab2 4009 . . . 4 {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} ⊆ (𝐴 ∩ dom 𝐹)
7 ssel2 3912 . . . . . . . . 9 ((𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹)) ∧ 𝑧𝐵) → 𝑧 ∈ (𝐹 “ (𝐴 ∩ dom 𝐹)))
87adantll 710 . . . . . . . 8 (((Fun 𝐹𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹))) ∧ 𝑧𝐵) → 𝑧 ∈ (𝐹 “ (𝐴 ∩ dom 𝐹)))
9 fvelima 6817 . . . . . . . . . . . 12 ((Fun 𝐹𝑧 ∈ (𝐹 “ (𝐴 ∩ dom 𝐹))) → ∃𝑤 ∈ (𝐴 ∩ dom 𝐹)(𝐹𝑤) = 𝑧)
109ex 412 . . . . . . . . . . 11 (Fun 𝐹 → (𝑧 ∈ (𝐹 “ (𝐴 ∩ dom 𝐹)) → ∃𝑤 ∈ (𝐴 ∩ dom 𝐹)(𝐹𝑤) = 𝑧))
1110adantr 480 . . . . . . . . . 10 ((Fun 𝐹𝑧𝐵) → (𝑧 ∈ (𝐹 “ (𝐴 ∩ dom 𝐹)) → ∃𝑤 ∈ (𝐴 ∩ dom 𝐹)(𝐹𝑤) = 𝑧))
12 eleq1a 2834 . . . . . . . . . . . . . . . 16 (𝑧𝐵 → ((𝐹𝑤) = 𝑧 → (𝐹𝑤) ∈ 𝐵))
1312anim2d 611 . . . . . . . . . . . . . . 15 (𝑧𝐵 → ((𝑤 ∈ (𝐴 ∩ dom 𝐹) ∧ (𝐹𝑤) = 𝑧) → (𝑤 ∈ (𝐴 ∩ dom 𝐹) ∧ (𝐹𝑤) ∈ 𝐵)))
14 fveq2 6756 . . . . . . . . . . . . . . . . 17 (𝑦 = 𝑤 → (𝐹𝑦) = (𝐹𝑤))
1514eleq1d 2823 . . . . . . . . . . . . . . . 16 (𝑦 = 𝑤 → ((𝐹𝑦) ∈ 𝐵 ↔ (𝐹𝑤) ∈ 𝐵))
1615elrab 3617 . . . . . . . . . . . . . . 15 (𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} ↔ (𝑤 ∈ (𝐴 ∩ dom 𝐹) ∧ (𝐹𝑤) ∈ 𝐵))
1713, 16syl6ibr 251 . . . . . . . . . . . . . 14 (𝑧𝐵 → ((𝑤 ∈ (𝐴 ∩ dom 𝐹) ∧ (𝐹𝑤) = 𝑧) → 𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}))
18 simpr 484 . . . . . . . . . . . . . 14 ((𝑤 ∈ (𝐴 ∩ dom 𝐹) ∧ (𝐹𝑤) = 𝑧) → (𝐹𝑤) = 𝑧)
1917, 18jca2 513 . . . . . . . . . . . . 13 (𝑧𝐵 → ((𝑤 ∈ (𝐴 ∩ dom 𝐹) ∧ (𝐹𝑤) = 𝑧) → (𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} ∧ (𝐹𝑤) = 𝑧)))
2019reximdv2 3198 . . . . . . . . . . . 12 (𝑧𝐵 → (∃𝑤 ∈ (𝐴 ∩ dom 𝐹)(𝐹𝑤) = 𝑧 → ∃𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} (𝐹𝑤) = 𝑧))
2120adantl 481 . . . . . . . . . . 11 ((Fun 𝐹𝑧𝐵) → (∃𝑤 ∈ (𝐴 ∩ dom 𝐹)(𝐹𝑤) = 𝑧 → ∃𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} (𝐹𝑤) = 𝑧))
22 funfn 6448 . . . . . . . . . . . . 13 (Fun 𝐹𝐹 Fn dom 𝐹)
23 inss2 4160 . . . . . . . . . . . . . . 15 (𝐴 ∩ dom 𝐹) ⊆ dom 𝐹
246, 23sstri 3926 . . . . . . . . . . . . . 14 {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} ⊆ dom 𝐹
25 fvelimab 6823 . . . . . . . . . . . . . 14 ((𝐹 Fn dom 𝐹 ∧ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} ⊆ dom 𝐹) → (𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}) ↔ ∃𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} (𝐹𝑤) = 𝑧))
2624, 25mpan2 687 . . . . . . . . . . . . 13 (𝐹 Fn dom 𝐹 → (𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}) ↔ ∃𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} (𝐹𝑤) = 𝑧))
2722, 26sylbi 216 . . . . . . . . . . . 12 (Fun 𝐹 → (𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}) ↔ ∃𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} (𝐹𝑤) = 𝑧))
2827adantr 480 . . . . . . . . . . 11 ((Fun 𝐹𝑧𝐵) → (𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}) ↔ ∃𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} (𝐹𝑤) = 𝑧))
2921, 28sylibrd 258 . . . . . . . . . 10 ((Fun 𝐹𝑧𝐵) → (∃𝑤 ∈ (𝐴 ∩ dom 𝐹)(𝐹𝑤) = 𝑧𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵})))
3011, 29syld 47 . . . . . . . . 9 ((Fun 𝐹𝑧𝐵) → (𝑧 ∈ (𝐹 “ (𝐴 ∩ dom 𝐹)) → 𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵})))
3130adantlr 711 . . . . . . . 8 (((Fun 𝐹𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹))) ∧ 𝑧𝐵) → (𝑧 ∈ (𝐹 “ (𝐴 ∩ dom 𝐹)) → 𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵})))
328, 31mpd 15 . . . . . . 7 (((Fun 𝐹𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹))) ∧ 𝑧𝐵) → 𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}))
3332ex 412 . . . . . 6 ((Fun 𝐹𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹))) → (𝑧𝐵𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵})))
34 fvelima 6817 . . . . . . . . 9 ((Fun 𝐹𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵})) → ∃𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} (𝐹𝑤) = 𝑧)
3534ex 412 . . . . . . . 8 (Fun 𝐹 → (𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}) → ∃𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} (𝐹𝑤) = 𝑧))
36 eleq1 2826 . . . . . . . . . . . 12 ((𝐹𝑤) = 𝑧 → ((𝐹𝑤) ∈ 𝐵𝑧𝐵))
3736biimpcd 248 . . . . . . . . . . 11 ((𝐹𝑤) ∈ 𝐵 → ((𝐹𝑤) = 𝑧𝑧𝐵))
3837adantl 481 . . . . . . . . . 10 ((𝑤 ∈ (𝐴 ∩ dom 𝐹) ∧ (𝐹𝑤) ∈ 𝐵) → ((𝐹𝑤) = 𝑧𝑧𝐵))
3916, 38sylbi 216 . . . . . . . . 9 (𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} → ((𝐹𝑤) = 𝑧𝑧𝐵))
4039rexlimiv 3208 . . . . . . . 8 (∃𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} (𝐹𝑤) = 𝑧𝑧𝐵)
4135, 40syl6 35 . . . . . . 7 (Fun 𝐹 → (𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}) → 𝑧𝐵))
4241adantr 480 . . . . . 6 ((Fun 𝐹𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹))) → (𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}) → 𝑧𝐵))
4333, 42impbid 211 . . . . 5 ((Fun 𝐹𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹))) → (𝑧𝐵𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵})))
4443eqrdv 2736 . . . 4 ((Fun 𝐹𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹))) → 𝐵 = (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}))
45 ssimaex.1 . . . . . . 7 𝐴 ∈ V
4645inex1 5236 . . . . . 6 (𝐴 ∩ dom 𝐹) ∈ V
4746rabex 5251 . . . . 5 {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} ∈ V
48 sseq1 3942 . . . . . 6 (𝑥 = {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} → (𝑥 ⊆ (𝐴 ∩ dom 𝐹) ↔ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} ⊆ (𝐴 ∩ dom 𝐹)))
49 imaeq2 5954 . . . . . . 7 (𝑥 = {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} → (𝐹𝑥) = (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}))
5049eqeq2d 2749 . . . . . 6 (𝑥 = {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} → (𝐵 = (𝐹𝑥) ↔ 𝐵 = (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵})))
5148, 50anbi12d 630 . . . . 5 (𝑥 = {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} → ((𝑥 ⊆ (𝐴 ∩ dom 𝐹) ∧ 𝐵 = (𝐹𝑥)) ↔ ({𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} ⊆ (𝐴 ∩ dom 𝐹) ∧ 𝐵 = (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}))))
5247, 51spcev 3535 . . . 4 (({𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} ⊆ (𝐴 ∩ dom 𝐹) ∧ 𝐵 = (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵})) → ∃𝑥(𝑥 ⊆ (𝐴 ∩ dom 𝐹) ∧ 𝐵 = (𝐹𝑥)))
536, 44, 52sylancr 586 . . 3 ((Fun 𝐹𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹))) → ∃𝑥(𝑥 ⊆ (𝐴 ∩ dom 𝐹) ∧ 𝐵 = (𝐹𝑥)))
54 inss1 4159 . . . . . 6 (𝐴 ∩ dom 𝐹) ⊆ 𝐴
55 sstr 3925 . . . . . 6 ((𝑥 ⊆ (𝐴 ∩ dom 𝐹) ∧ (𝐴 ∩ dom 𝐹) ⊆ 𝐴) → 𝑥𝐴)
5654, 55mpan2 687 . . . . 5 (𝑥 ⊆ (𝐴 ∩ dom 𝐹) → 𝑥𝐴)
5756anim1i 614 . . . 4 ((𝑥 ⊆ (𝐴 ∩ dom 𝐹) ∧ 𝐵 = (𝐹𝑥)) → (𝑥𝐴𝐵 = (𝐹𝑥)))
5857eximi 1838 . . 3 (∃𝑥(𝑥 ⊆ (𝐴 ∩ dom 𝐹) ∧ 𝐵 = (𝐹𝑥)) → ∃𝑥(𝑥𝐴𝐵 = (𝐹𝑥)))
5953, 58syl 17 . 2 ((Fun 𝐹𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹))) → ∃𝑥(𝑥𝐴𝐵 = (𝐹𝑥)))
605, 59sylan2br 594 1 ((Fun 𝐹𝐵 ⊆ (𝐹𝐴)) → ∃𝑥(𝑥𝐴𝐵 = (𝐹𝑥)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1539  wex 1783  wcel 2108  wrex 3064  {crab 3067  Vcvv 3422  cin 3882  wss 3883  dom cdm 5580  cres 5582  cima 5583  Fun wfun 6412   Fn wfn 6413  cfv 6418
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-opab 5133  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-iota 6376  df-fun 6420  df-fn 6421  df-fv 6426
This theorem is referenced by:  ssimaexg  6836
  Copyright terms: Public domain W3C validator