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

Theorem wunfunc 18105
Description: A weak universe is closed under the functor set operation. (Contributed by Mario Carneiro, 12-Jan-2017.) (Proof shortened by AV, 13-Oct-2024.)
Hypotheses
Ref Expression
wunfunc.1 (𝜑 → 𝑈 ∈ WUni)
wunfunc.2 (𝜑 → 𝐶 ∈ 𝑈)
wunfunc.3 (𝜑 → 𝐷 ∈ 𝑈)
Assertion
Ref Expression
wunfunc (𝜑 → (𝐶 Func 𝐷) ∈ 𝑈)

Proof of Theorem wunfunc
Dummy variables 𝑓 𝑔 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 wunfunc.1 . 2 (𝜑 → 𝑈 ∈ WUni)
2 baseid 17419 . . . . 5 Base = Slot (Base‘ndx)
3 wunfunc.3 . . . . 5 (𝜑 → 𝐷 ∈ 𝑈)
42, 1, 3wunstr 17395 . . . 4 (𝜑 → (Base‘𝐷) ∈ 𝑈)
5 wunfunc.2 . . . . 5 (𝜑 → 𝐶 ∈ 𝑈)
62, 1, 5wunstr 17395 . . . 4 (𝜑 → (Base‘𝐶) ∈ 𝑈)
71, 4, 6wunmap 10838 . . 3 (𝜑 → ((Base‘𝐷) ↑m (Base‘𝐶)) ∈ 𝑈)
8 homid 17612 . . . . . . . . 9 Hom = Slot (Hom ‘ndx)
98, 1, 5wunstr 17395 . . . . . . . 8 (𝜑 → (Hom ‘𝐶) ∈ 𝑈)
101, 9wunrn 10841 . . . . . . 7 (𝜑 → ran (Hom ‘𝐶) ∈ 𝑈)
111, 10wununi 10818 . . . . . 6 (𝜑 → ∪ ran (Hom ‘𝐶) ∈ 𝑈)
128, 1, 3wunstr 17395 . . . . . . . 8 (𝜑 → (Hom ‘𝐷) ∈ 𝑈)
131, 12wunrn 10841 . . . . . . 7 (𝜑 → ran (Hom ‘𝐷) ∈ 𝑈)
141, 13wununi 10818 . . . . . 6 (𝜑 → ∪ ran (Hom ‘𝐷) ∈ 𝑈)
151, 11, 14wunxp 10836 . . . . 5 (𝜑 → (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷)) ∈ 𝑈)
161, 15wunpw 10819 . . . 4 (𝜑 → 𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷)) ∈ 𝑈)
171, 6, 6wunxp 10836 . . . 4 (𝜑 → ((Base‘𝐶) × (Base‘𝐶)) ∈ 𝑈)
181, 16, 17wunmap 10838 . . 3 (𝜑 → (𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷)) ↑m ((Base‘𝐶) × (Base‘𝐶))) ∈ 𝑈)
191, 7, 18wunxp 10836 . 2 (𝜑 → (((Base‘𝐷) ↑m (Base‘𝐶)) × (𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷)) ↑m ((Base‘𝐶) × (Base‘𝐶)))) ∈ 𝑈)
20 relfunc 18066 . . . 4 Rel (𝐶 Func 𝐷)
2120a1i 11 . . 3 (𝜑 → Rel (𝐶 Func 𝐷))
22 df-br 5107 . . . 4 (𝑓(𝐶 Func 𝐷)𝑔 ↔ ⟨𝑓, 𝑔⟩ ∈ (𝐶 Func 𝐷))
23 eqid 2763 . . . . . . . 8 (Base‘𝐶) = (Base‘𝐶)
24 eqid 2763 . . . . . . . 8 (Base‘𝐷) = (Base‘𝐷)
25 simpr 490 . . . . . . . 8 ((𝜑 ∧ 𝑓(𝐶 Func 𝐷)𝑔) → 𝑓(𝐶 Func 𝐷)𝑔)
2623, 24, 25funcf1 18070 . . . . . . 7 ((𝜑 ∧ 𝑓(𝐶 Func 𝐷)𝑔) → 𝑓:(Base‘𝐶)⟶(Base‘𝐷))
27 fvex 6921 . . . . . . . 8 (Base‘𝐷) ∈ V
28 fvex 6921 . . . . . . . 8 (Base‘𝐶) ∈ V
2927, 28elmap 8927 . . . . . . 7 (𝑓 ∈ ((Base‘𝐷) ↑m (Base‘𝐶)) ↔ 𝑓:(Base‘𝐶)⟶(Base‘𝐷))
3026, 29sylibr 237 . . . . . 6 ((𝜑 ∧ 𝑓(𝐶 Func 𝐷)𝑔) → 𝑓 ∈ ((Base‘𝐷) ↑m (Base‘𝐶)))
31 mapsspw 8934 . . . . . . . . . . 11 (((𝑓‘(1st ‘𝑧))(Hom ‘𝐷)(𝑓‘(2nd ‘𝑧))) ↑m ((Hom ‘𝐶)‘𝑧)) ⊆ 𝒫 (((Hom ‘𝐶)‘𝑧) × ((𝑓‘(1st ‘𝑧))(Hom ‘𝐷)(𝑓‘(2nd ‘𝑧))))
32 fvssunirn 6939 . . . . . . . . . . . . 13 ((Hom ‘𝐶)‘𝑧) ⊆ ∪ ran (Hom ‘𝐶)
33 ovssunirn 7479 . . . . . . . . . . . . 13 ((𝑓‘(1st ‘𝑧))(Hom ‘𝐷)(𝑓‘(2nd ‘𝑧))) ⊆ ∪ ran (Hom ‘𝐷)
34 xpss12 5670 . . . . . . . . . . . . 13 ((((Hom ‘𝐶)‘𝑧) ⊆ ∪ ran (Hom ‘𝐶) ∧ ((𝑓‘(1st ‘𝑧))(Hom ‘𝐷)(𝑓‘(2nd ‘𝑧))) ⊆ ∪ ran (Hom ‘𝐷)) → (((Hom ‘𝐶)‘𝑧) × ((𝑓‘(1st ‘𝑧))(Hom ‘𝐷)(𝑓‘(2nd ‘𝑧)))) ⊆ (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷)))
3532, 33, 34mp2an 705 . . . . . . . . . . . 12 (((Hom ‘𝐶)‘𝑧) × ((𝑓‘(1st ‘𝑧))(Hom ‘𝐷)(𝑓‘(2nd ‘𝑧)))) ⊆ (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷))
3635sspwi 4572 . . . . . . . . . . 11 𝒫 (((Hom ‘𝐶)‘𝑧) × ((𝑓‘(1st ‘𝑧))(Hom ‘𝐷)(𝑓‘(2nd ‘𝑧)))) ⊆ 𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷))
3731, 36sstri 3922 . . . . . . . . . 10 (((𝑓‘(1st ‘𝑧))(Hom ‘𝐷)(𝑓‘(2nd ‘𝑧))) ↑m ((Hom ‘𝐶)‘𝑧)) ⊆ 𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷))
3837rgenw 3084 . . . . . . . . 9 ∀𝑧 ∈ ((Base‘𝐶) × (Base‘𝐶))(((𝑓‘(1st ‘𝑧))(Hom ‘𝐷)(𝑓‘(2nd ‘𝑧))) ↑m ((Hom ‘𝐶)‘𝑧)) ⊆ 𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷))
39 ss2ixp 8966 . . . . . . . . 9 (∀𝑧 ∈ ((Base‘𝐶) × (Base‘𝐶))(((𝑓‘(1st ‘𝑧))(Hom ‘𝐷)(𝑓‘(2nd ‘𝑧))) ↑m ((Hom ‘𝐶)‘𝑧)) ⊆ 𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷)) → X𝑧 ∈ ((Base‘𝐶) × (Base‘𝐶))(((𝑓‘(1st ‘𝑧))(Hom ‘𝐷)(𝑓‘(2nd ‘𝑧))) ↑m ((Hom ‘𝐶)‘𝑧)) ⊆ X𝑧 ∈ ((Base‘𝐶) × (Base‘𝐶))𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷)))
4038, 39ax-mp 5 . . . . . . . 8 X𝑧 ∈ ((Base‘𝐶) × (Base‘𝐶))(((𝑓‘(1st ‘𝑧))(Hom ‘𝐷)(𝑓‘(2nd ‘𝑧))) ↑m ((Hom ‘𝐶)‘𝑧)) ⊆ X𝑧 ∈ ((Base‘𝐶) × (Base‘𝐶))𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷))
4128, 28xpex 7791 . . . . . . . . 9 ((Base‘𝐶) × (Base‘𝐶)) ∈ V
42 fvex 6921 . . . . . . . . . . . . 13 (Hom ‘𝐶) ∈ V
4342rnex 7946 . . . . . . . . . . . 12 ran (Hom ‘𝐶) ∈ V
4443uniex 7782 . . . . . . . . . . 11 ∪ ran (Hom ‘𝐶) ∈ V
45 fvex 6921 . . . . . . . . . . . . 13 (Hom ‘𝐷) ∈ V
4645rnex 7946 . . . . . . . . . . . 12 ran (Hom ‘𝐷) ∈ V
4746uniex 7782 . . . . . . . . . . 11 ∪ ran (Hom ‘𝐷) ∈ V
4844, 47xpex 7791 . . . . . . . . . 10 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷)) ∈ V
4948pwex 5346 . . . . . . . . 9 𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷)) ∈ V
5041, 49ixpconst 8963 . . . . . . . 8 X𝑧 ∈ ((Base‘𝐶) × (Base‘𝐶))𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷)) = (𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷)) ↑m ((Base‘𝐶) × (Base‘𝐶)))
5140, 50sseqtri 3961 . . . . . . 7 X𝑧 ∈ ((Base‘𝐶) × (Base‘𝐶))(((𝑓‘(1st ‘𝑧))(Hom ‘𝐷)(𝑓‘(2nd ‘𝑧))) ↑m ((Hom ‘𝐶)‘𝑧)) ⊆ (𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷)) ↑m ((Base‘𝐶) × (Base‘𝐶)))
52 eqid 2763 . . . . . . . 8 (Hom ‘𝐶) = (Hom ‘𝐶)
53 eqid 2763 . . . . . . . 8 (Hom ‘𝐷) = (Hom ‘𝐷)
5423, 52, 53, 25funcixp 18071 . . . . . . 7 ((𝜑 ∧ 𝑓(𝐶 Func 𝐷)𝑔) → 𝑔 ∈ X𝑧 ∈ ((Base‘𝐶) × (Base‘𝐶))(((𝑓‘(1st ‘𝑧))(Hom ‘𝐷)(𝑓‘(2nd ‘𝑧))) ↑m ((Hom ‘𝐶)‘𝑧)))
5551, 54sselid 3911 . . . . . 6 ((𝜑 ∧ 𝑓(𝐶 Func 𝐷)𝑔) → 𝑔 ∈ (𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷)) ↑m ((Base‘𝐶) × (Base‘𝐶))))
5630, 55opelxpd 5694 . . . . 5 ((𝜑 ∧ 𝑓(𝐶 Func 𝐷)𝑔) → ⟨𝑓, 𝑔⟩ ∈ (((Base‘𝐷) ↑m (Base‘𝐶)) × (𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷)) ↑m ((Base‘𝐶) × (Base‘𝐶)))))
5756ex 418 . . . 4 (𝜑 → (𝑓(𝐶 Func 𝐷)𝑔 → ⟨𝑓, 𝑔⟩ ∈ (((Base‘𝐷) ↑m (Base‘𝐶)) × (𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷)) ↑m ((Base‘𝐶) × (Base‘𝐶))))))
5822, 57biimtrrid 246 . . 3 (𝜑 → (⟨𝑓, 𝑔⟩ ∈ (𝐶 Func 𝐷) → ⟨𝑓, 𝑔⟩ ∈ (((Base‘𝐷) ↑m (Base‘𝐶)) × (𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷)) ↑m ((Base‘𝐶) × (Base‘𝐶))))))
5921, 58relssdv 5769 . 2 (𝜑 → (𝐶 Func 𝐷) ⊆ (((Base‘𝐷) ↑m (Base‘𝐶)) × (𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷)) ↑m ((Base‘𝐶) × (Base‘𝐶)))))
601, 19, 59wunss 10824 1 (𝜑 → (𝐶 Func 𝐷) ∈ 𝑈)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   ∈ wcel 2147  ∀wral 3080   ⊆ wss 3900  𝒫 cpw 4560  ⟨cop 4838  ∪ cuni 4870   class class class wbr 5106   × cxp 5653  ran crn 5656  Rel wrel 5660  ⟶wf 6554  ‘cfv 6558  (class class class)co 7443  1st c1st 8023  2nd c2nd 8024   ↑m cmap 8875  Xcixp 8953  WUnicwun 10812  ndxcnx 17400  Basecbs 17416  Hom chom 17468   Func cfunc 18058
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-rep 5235  ax-sep 5252  ax-nul 5263  ax-pow 5331  ax-pr 5395  ax-un 7775  ax-cnex 11283  ax-resscn 11284  ax-1cn 11285  ax-icn 11286  ax-addcl 11287  ax-addrcl 11288  ax-mulcl 11289  ax-mulrcl 11290  ax-mulcom 11291  ax-addass 11292  ax-mulass 11293  ax-distr 11294  ax-i2m1 11295  ax-1ne0 11296  ax-1rid 11297  ax-rnegex 11298  ax-rrecex 11299  ax-cnre 11300  ax-pre-lttri 11301  ax-pre-lttrn 11302  ax-pre-ltadd 11303
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-nel 3066  df-ral 3081  df-rex 3091  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-pss 4017  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-iun 4956  df-br 5107  df-opab 5171  df-mpt 5190  df-tr 5216  df-id 5550  df-eprel 5555  df-po 5563  df-so 5564  df-fr 5608  df-we 5610  df-xp 5661  df-rel 5662  df-cnv 5663  df-co 5664  df-dm 5665  df-rn 5666  df-res 5667  df-ima 5668  df-pred 6322  df-ord 6383  df-on 6384  df-lim 6385  df-suc 6386  df-iota 6512  df-fun 6560  df-fn 6561  df-f 6562  df-f1 6563  df-fo 6564  df-f1o 6565  df-fv 6566  df-ov 7446  df-oprab 7447  df-mpo 7448  df-om 7902  df-1st 8025  df-2nd 8026  df-frecs 8327  df-wrecs 8358  df-recs 8407  df-rdg 8446  df-er 8745  df-map 8877  df-pm 8878  df-ixp 8954  df-en 9002  df-dom 9003  df-sdom 9004  df-wun 10814  df-pnf 11372  df-mnf 11373  df-ltxr 11375  df-nn 12363  df-2 12432  df-3 12433  df-4 12434  df-5 12435  df-6 12436  df-7 12437  df-8 12438  df-9 12439  df-n0 12634  df-dec 12842  df-slot 17389  df-ndx 17401  df-base 17417  df-hom 17481  df-func 18062
This theorem is used by:  wunnat  18163  catcfuccl  18322
  Copyright terms: Public domain W3C validator