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

Theorem ssimaex 6853
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 5913 . . . . 5 dom (𝐹𝐴) = (𝐴 ∩ dom 𝐹)
21imaeq2i 5967 . . . 4 (𝐹 “ dom (𝐹𝐴)) = (𝐹 “ (𝐴 ∩ dom 𝐹))
3 imadmres 6137 . . . 4 (𝐹 “ dom (𝐹𝐴)) = (𝐹𝐴)
42, 3eqtr3i 2768 . . 3 (𝐹 “ (𝐴 ∩ dom 𝐹)) = (𝐹𝐴)
54sseq2i 3950 . 2 (𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹)) ↔ 𝐵 ⊆ (𝐹𝐴))
6 ssrab2 4013 . . . 4 {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} ⊆ (𝐴 ∩ dom 𝐹)
7 ssel2 3916 . . . . . . . . 9 ((𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹)) ∧ 𝑧𝐵) → 𝑧 ∈ (𝐹 “ (𝐴 ∩ dom 𝐹)))
87adantll 711 . . . . . . . 8 (((Fun 𝐹𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹))) ∧ 𝑧𝐵) → 𝑧 ∈ (𝐹 “ (𝐴 ∩ dom 𝐹)))
9 fvelima 6835 . . . . . . . . . . . 12 ((Fun 𝐹𝑧 ∈ (𝐹 “ (𝐴 ∩ dom 𝐹))) → ∃𝑤 ∈ (𝐴 ∩ dom 𝐹)(𝐹𝑤) = 𝑧)
109ex 413 . . . . . . . . . . 11 (Fun 𝐹 → (𝑧 ∈ (𝐹 “ (𝐴 ∩ dom 𝐹)) → ∃𝑤 ∈ (𝐴 ∩ dom 𝐹)(𝐹𝑤) = 𝑧))
1110adantr 481 . . . . . . . . . 10 ((Fun 𝐹𝑧𝐵) → (𝑧 ∈ (𝐹 “ (𝐴 ∩ dom 𝐹)) → ∃𝑤 ∈ (𝐴 ∩ dom 𝐹)(𝐹𝑤) = 𝑧))
12 eleq1a 2834 . . . . . . . . . . . . . . . 16 (𝑧𝐵 → ((𝐹𝑤) = 𝑧 → (𝐹𝑤) ∈ 𝐵))
1312anim2d 612 . . . . . . . . . . . . . . 15 (𝑧𝐵 → ((𝑤 ∈ (𝐴 ∩ dom 𝐹) ∧ (𝐹𝑤) = 𝑧) → (𝑤 ∈ (𝐴 ∩ dom 𝐹) ∧ (𝐹𝑤) ∈ 𝐵)))
14 fveq2 6774 . . . . . . . . . . . . . . . . 17 (𝑦 = 𝑤 → (𝐹𝑦) = (𝐹𝑤))
1514eleq1d 2823 . . . . . . . . . . . . . . . 16 (𝑦 = 𝑤 → ((𝐹𝑦) ∈ 𝐵 ↔ (𝐹𝑤) ∈ 𝐵))
1615elrab 3624 . . . . . . . . . . . . . . 15 (𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} ↔ (𝑤 ∈ (𝐴 ∩ dom 𝐹) ∧ (𝐹𝑤) ∈ 𝐵))
1713, 16syl6ibr 251 . . . . . . . . . . . . . 14 (𝑧𝐵 → ((𝑤 ∈ (𝐴 ∩ dom 𝐹) ∧ (𝐹𝑤) = 𝑧) → 𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}))
18 simpr 485 . . . . . . . . . . . . . 14 ((𝑤 ∈ (𝐴 ∩ dom 𝐹) ∧ (𝐹𝑤) = 𝑧) → (𝐹𝑤) = 𝑧)
1917, 18jca2 514 . . . . . . . . . . . . 13 (𝑧𝐵 → ((𝑤 ∈ (𝐴 ∩ dom 𝐹) ∧ (𝐹𝑤) = 𝑧) → (𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} ∧ (𝐹𝑤) = 𝑧)))
2019reximdv2 3199 . . . . . . . . . . . 12 (𝑧𝐵 → (∃𝑤 ∈ (𝐴 ∩ dom 𝐹)(𝐹𝑤) = 𝑧 → ∃𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} (𝐹𝑤) = 𝑧))
2120adantl 482 . . . . . . . . . . 11 ((Fun 𝐹𝑧𝐵) → (∃𝑤 ∈ (𝐴 ∩ dom 𝐹)(𝐹𝑤) = 𝑧 → ∃𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} (𝐹𝑤) = 𝑧))
22 funfn 6464 . . . . . . . . . . . . 13 (Fun 𝐹𝐹 Fn dom 𝐹)
23 inss2 4163 . . . . . . . . . . . . . . 15 (𝐴 ∩ dom 𝐹) ⊆ dom 𝐹
246, 23sstri 3930 . . . . . . . . . . . . . 14 {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} ⊆ dom 𝐹
25 fvelimab 6841 . . . . . . . . . . . . . 14 ((𝐹 Fn dom 𝐹 ∧ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} ⊆ dom 𝐹) → (𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}) ↔ ∃𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} (𝐹𝑤) = 𝑧))
2624, 25mpan2 688 . . . . . . . . . . . . 13 (𝐹 Fn dom 𝐹 → (𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}) ↔ ∃𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} (𝐹𝑤) = 𝑧))
2722, 26sylbi 216 . . . . . . . . . . . 12 (Fun 𝐹 → (𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}) ↔ ∃𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} (𝐹𝑤) = 𝑧))
2827adantr 481 . . . . . . . . . . 11 ((Fun 𝐹𝑧𝐵) → (𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}) ↔ ∃𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} (𝐹𝑤) = 𝑧))
2921, 28sylibrd 258 . . . . . . . . . 10 ((Fun 𝐹𝑧𝐵) → (∃𝑤 ∈ (𝐴 ∩ dom 𝐹)(𝐹𝑤) = 𝑧𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵})))
3011, 29syld 47 . . . . . . . . 9 ((Fun 𝐹𝑧𝐵) → (𝑧 ∈ (𝐹 “ (𝐴 ∩ dom 𝐹)) → 𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵})))
3130adantlr 712 . . . . . . . 8 (((Fun 𝐹𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹))) ∧ 𝑧𝐵) → (𝑧 ∈ (𝐹 “ (𝐴 ∩ dom 𝐹)) → 𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵})))
328, 31mpd 15 . . . . . . 7 (((Fun 𝐹𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹))) ∧ 𝑧𝐵) → 𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}))
3332ex 413 . . . . . 6 ((Fun 𝐹𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹))) → (𝑧𝐵𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵})))
34 fvelima 6835 . . . . . . . . 9 ((Fun 𝐹𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵})) → ∃𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} (𝐹𝑤) = 𝑧)
3534ex 413 . . . . . . . 8 (Fun 𝐹 → (𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}) → ∃𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} (𝐹𝑤) = 𝑧))
36 eleq1 2826 . . . . . . . . . . . 12 ((𝐹𝑤) = 𝑧 → ((𝐹𝑤) ∈ 𝐵𝑧𝐵))
3736biimpcd 248 . . . . . . . . . . 11 ((𝐹𝑤) ∈ 𝐵 → ((𝐹𝑤) = 𝑧𝑧𝐵))
3837adantl 482 . . . . . . . . . 10 ((𝑤 ∈ (𝐴 ∩ dom 𝐹) ∧ (𝐹𝑤) ∈ 𝐵) → ((𝐹𝑤) = 𝑧𝑧𝐵))
3916, 38sylbi 216 . . . . . . . . 9 (𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} → ((𝐹𝑤) = 𝑧𝑧𝐵))
4039rexlimiv 3209 . . . . . . . 8 (∃𝑤 ∈ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} (𝐹𝑤) = 𝑧𝑧𝐵)
4135, 40syl6 35 . . . . . . 7 (Fun 𝐹 → (𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}) → 𝑧𝐵))
4241adantr 481 . . . . . 6 ((Fun 𝐹𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹))) → (𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}) → 𝑧𝐵))
4333, 42impbid 211 . . . . 5 ((Fun 𝐹𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹))) → (𝑧𝐵𝑧 ∈ (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵})))
4443eqrdv 2736 . . . 4 ((Fun 𝐹𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹))) → 𝐵 = (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}))
45 ssimaex.1 . . . . . . 7 𝐴 ∈ V
4645inex1 5241 . . . . . 6 (𝐴 ∩ dom 𝐹) ∈ V
4746rabex 5256 . . . . 5 {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} ∈ V
48 sseq1 3946 . . . . . 6 (𝑥 = {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} → (𝑥 ⊆ (𝐴 ∩ dom 𝐹) ↔ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} ⊆ (𝐴 ∩ dom 𝐹)))
49 imaeq2 5965 . . . . . . 7 (𝑥 = {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} → (𝐹𝑥) = (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}))
5049eqeq2d 2749 . . . . . 6 (𝑥 = {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} → (𝐵 = (𝐹𝑥) ↔ 𝐵 = (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵})))
5148, 50anbi12d 631 . . . . 5 (𝑥 = {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} → ((𝑥 ⊆ (𝐴 ∩ dom 𝐹) ∧ 𝐵 = (𝐹𝑥)) ↔ ({𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} ⊆ (𝐴 ∩ dom 𝐹) ∧ 𝐵 = (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵}))))
5247, 51spcev 3545 . . . 4 (({𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵} ⊆ (𝐴 ∩ dom 𝐹) ∧ 𝐵 = (𝐹 “ {𝑦 ∈ (𝐴 ∩ dom 𝐹) ∣ (𝐹𝑦) ∈ 𝐵})) → ∃𝑥(𝑥 ⊆ (𝐴 ∩ dom 𝐹) ∧ 𝐵 = (𝐹𝑥)))
536, 44, 52sylancr 587 . . 3 ((Fun 𝐹𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹))) → ∃𝑥(𝑥 ⊆ (𝐴 ∩ dom 𝐹) ∧ 𝐵 = (𝐹𝑥)))
54 inss1 4162 . . . . . 6 (𝐴 ∩ dom 𝐹) ⊆ 𝐴
55 sstr 3929 . . . . . 6 ((𝑥 ⊆ (𝐴 ∩ dom 𝐹) ∧ (𝐴 ∩ dom 𝐹) ⊆ 𝐴) → 𝑥𝐴)
5654, 55mpan2 688 . . . . 5 (𝑥 ⊆ (𝐴 ∩ dom 𝐹) → 𝑥𝐴)
5756anim1i 615 . . . 4 ((𝑥 ⊆ (𝐴 ∩ dom 𝐹) ∧ 𝐵 = (𝐹𝑥)) → (𝑥𝐴𝐵 = (𝐹𝑥)))
5857eximi 1837 . . 3 (∃𝑥(𝑥 ⊆ (𝐴 ∩ dom 𝐹) ∧ 𝐵 = (𝐹𝑥)) → ∃𝑥(𝑥𝐴𝐵 = (𝐹𝑥)))
5953, 58syl 17 . 2 ((Fun 𝐹𝐵 ⊆ (𝐹 “ (𝐴 ∩ dom 𝐹))) → ∃𝑥(𝑥𝐴𝐵 = (𝐹𝑥)))
605, 59sylan2br 595 1 ((Fun 𝐹𝐵 ⊆ (𝐹𝐴)) → ∃𝑥(𝑥𝐴𝐵 = (𝐹𝑥)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396   = wceq 1539  wex 1782  wcel 2106  wrex 3065  {crab 3068  Vcvv 3432  cin 3886  wss 3887  dom cdm 5589  cres 5591  cima 5592  Fun wfun 6427   Fn wfn 6428  cfv 6433
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-br 5075  df-opab 5137  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-iota 6391  df-fun 6435  df-fn 6436  df-fv 6441
This theorem is referenced by:  ssimaexg  6854
  Copyright terms: Public domain W3C validator