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

Theorem wunfunc 18081
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 17395 . . . . 5 Base = Slot (Base‘ndx)
3 wunfunc.3 . . . . 5 (𝜑 → 𝐷 ∈ 𝑈)
42, 1, 3wunstr 17371 . . . 4 (𝜑 → (Base‘𝐷) ∈ 𝑈)
5 wunfunc.2 . . . . 5 (𝜑 → 𝐶 ∈ 𝑈)
62, 1, 5wunstr 17371 . . . 4 (𝜑 → (Base‘𝐶) ∈ 𝑈)
71, 4, 6wunmap 10814 . . 3 (𝜑 → ((Base‘𝐷) ↑m (Base‘𝐶)) ∈ 𝑈)
8 homid 17588 . . . . . . . . 9 Hom = Slot (Hom ‘ndx)
98, 1, 5wunstr 17371 . . . . . . . 8 (𝜑 → (Hom ‘𝐶) ∈ 𝑈)
101, 9wunrn 10817 . . . . . . 7 (𝜑 → ran (Hom ‘𝐶) ∈ 𝑈)
111, 10wununi 10794 . . . . . 6 (𝜑 → ∪ ran (Hom ‘𝐶) ∈ 𝑈)
128, 1, 3wunstr 17371 . . . . . . . 8 (𝜑 → (Hom ‘𝐷) ∈ 𝑈)
131, 12wunrn 10817 . . . . . . 7 (𝜑 → ran (Hom ‘𝐷) ∈ 𝑈)
141, 13wununi 10794 . . . . . 6 (𝜑 → ∪ ran (Hom ‘𝐷) ∈ 𝑈)
151, 11, 14wunxp 10812 . . . . 5 (𝜑 → (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷)) ∈ 𝑈)
161, 15wunpw 10795 . . . 4 (𝜑 → 𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷)) ∈ 𝑈)
171, 6, 6wunxp 10812 . . . 4 (𝜑 → ((Base‘𝐶) × (Base‘𝐶)) ∈ 𝑈)
181, 16, 17wunmap 10814 . . 3 (𝜑 → (𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷)) ↑m ((Base‘𝐶) × (Base‘𝐶))) ∈ 𝑈)
191, 7, 18wunxp 10812 . 2 (𝜑 → (((Base‘𝐷) ↑m (Base‘𝐶)) × (𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷)) ↑m ((Base‘𝐶) × (Base‘𝐶)))) ∈ 𝑈)
20 relfunc 18042 . . . 4 Rel (𝐶 Func 𝐷)
2120a1i 11 . . 3 (𝜑 → Rel (𝐶 Func 𝐷))
22 df-br 5103 . . . 4 (𝑓(𝐶 Func 𝐷)𝑔 ↔ ⟨𝑓, 𝑔⟩ ∈ (𝐶 Func 𝐷))
23 eqid 2760 . . . . . . . 8 (Base‘𝐶) = (Base‘𝐶)
24 eqid 2760 . . . . . . . 8 (Base‘𝐷) = (Base‘𝐷)
25 simpr 490 . . . . . . . 8 ((𝜑 ∧ 𝑓(𝐶 Func 𝐷)𝑔) → 𝑓(𝐶 Func 𝐷)𝑔)
2623, 24, 25funcf1 18046 . . . . . . 7 ((𝜑 ∧ 𝑓(𝐶 Func 𝐷)𝑔) → 𝑓:(Base‘𝐶)⟶(Base‘𝐷))
27 fvex 6898 . . . . . . . 8 (Base‘𝐷) ∈ V
28 fvex 6898 . . . . . . . 8 (Base‘𝐶) ∈ V
2927, 28elmap 8902 . . . . . . 7 (𝑓 ∈ ((Base‘𝐷) ↑m (Base‘𝐶)) ↔ 𝑓:(Base‘𝐶)⟶(Base‘𝐷))
3026, 29sylibr 237 . . . . . 6 ((𝜑 ∧ 𝑓(𝐶 Func 𝐷)𝑔) → 𝑓 ∈ ((Base‘𝐷) ↑m (Base‘𝐶)))
31 mapsspw 8909 . . . . . . . . . . 11 (((𝑓‘(1st ‘𝑧))(Hom ‘𝐷)(𝑓‘(2nd ‘𝑧))) ↑m ((Hom ‘𝐶)‘𝑧)) ⊆ 𝒫 (((Hom ‘𝐶)‘𝑧) × ((𝑓‘(1st ‘𝑧))(Hom ‘𝐷)(𝑓‘(2nd ‘𝑧))))
32 fvssunirn 6916 . . . . . . . . . . . . 13 ((Hom ‘𝐶)‘𝑧) ⊆ ∪ ran (Hom ‘𝐶)
33 ovssunirn 7456 . . . . . . . . . . . . 13 ((𝑓‘(1st ‘𝑧))(Hom ‘𝐷)(𝑓‘(2nd ‘𝑧))) ⊆ ∪ ran (Hom ‘𝐷)
34 xpss12 5665 . . . . . . . . . . . . 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 4568 . . . . . . . . . . 11 𝒫 (((Hom ‘𝐶)‘𝑧) × ((𝑓‘(1st ‘𝑧))(Hom ‘𝐷)(𝑓‘(2nd ‘𝑧)))) ⊆ 𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷))
3731, 36sstri 3917 . . . . . . . . . 10 (((𝑓‘(1st ‘𝑧))(Hom ‘𝐷)(𝑓‘(2nd ‘𝑧))) ↑m ((Hom ‘𝐶)‘𝑧)) ⊆ 𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷))
3837rgenw 3080 . . . . . . . . 9 ∀𝑧 ∈ ((Base‘𝐶) × (Base‘𝐶))(((𝑓‘(1st ‘𝑧))(Hom ‘𝐷)(𝑓‘(2nd ‘𝑧))) ↑m ((Hom ‘𝐶)‘𝑧)) ⊆ 𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷))
39 ss2ixp 8941 . . . . . . . . 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 7767 . . . . . . . . 9 ((Base‘𝐶) × (Base‘𝐶)) ∈ V
42 fvex 6898 . . . . . . . . . . . . 13 (Hom ‘𝐶) ∈ V
4342rnex 7922 . . . . . . . . . . . 12 ran (Hom ‘𝐶) ∈ V
4443uniex 7758 . . . . . . . . . . 11 ∪ ran (Hom ‘𝐶) ∈ V
45 fvex 6898 . . . . . . . . . . . . 13 (Hom ‘𝐷) ∈ V
4645rnex 7922 . . . . . . . . . . . 12 ran (Hom ‘𝐷) ∈ V
4746uniex 7758 . . . . . . . . . . 11 ∪ ran (Hom ‘𝐷) ∈ V
4844, 47xpex 7767 . . . . . . . . . 10 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷)) ∈ V
4948pwex 5341 . . . . . . . . 9 𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷)) ∈ V
5041, 49ixpconst 8938 . . . . . . . 8 X𝑧 ∈ ((Base‘𝐶) × (Base‘𝐶))𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷)) = (𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷)) ↑m ((Base‘𝐶) × (Base‘𝐶)))
5140, 50sseqtri 3956 . . . . . . 7 X𝑧 ∈ ((Base‘𝐶) × (Base‘𝐶))(((𝑓‘(1st ‘𝑧))(Hom ‘𝐷)(𝑓‘(2nd ‘𝑧))) ↑m ((Hom ‘𝐶)‘𝑧)) ⊆ (𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷)) ↑m ((Base‘𝐶) × (Base‘𝐶)))
52 eqid 2760 . . . . . . . 8 (Hom ‘𝐶) = (Hom ‘𝐶)
53 eqid 2760 . . . . . . . 8 (Hom ‘𝐷) = (Hom ‘𝐷)
5423, 52, 53, 25funcixp 18047 . . . . . . 7 ((𝜑 ∧ 𝑓(𝐶 Func 𝐷)𝑔) → 𝑔 ∈ X𝑧 ∈ ((Base‘𝐶) × (Base‘𝐶))(((𝑓‘(1st ‘𝑧))(Hom ‘𝐷)(𝑓‘(2nd ‘𝑧))) ↑m ((Hom ‘𝐶)‘𝑧)))
5551, 54sselid 3906 . . . . . 6 ((𝜑 ∧ 𝑓(𝐶 Func 𝐷)𝑔) → 𝑔 ∈ (𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷)) ↑m ((Base‘𝐶) × (Base‘𝐶))))
5630, 55opelxpd 5689 . . . . 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 5763 . 2 (𝜑 → (𝐶 Func 𝐷) ⊆ (((Base‘𝐷) ↑m (Base‘𝐶)) × (𝒫 (∪ ran (Hom ‘𝐶) × ∪ ran (Hom ‘𝐷)) ↑m ((Base‘𝐶) × (Base‘𝐶)))))
601, 19, 59wunss 10800 1 (𝜑 → (𝐶 Func 𝐷) ∈ 𝑈)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   ∈ wcel 2144  ∀wral 3076   ⊆ wss 3895  𝒫 cpw 4556  ⟨cop 4834  ∪ cuni 4866   class class class wbr 5102   × cxp 5648  ran crn 5651  Rel wrel 5655  ⟶wf 6534  ‘cfv 6538  (class class class)co 7420  1st c1st 7999  2nd c2nd 8000   ↑m cmap 8850  Xcixp 8928  WUnicwun 10788  ndxcnx 17376  Basecbs 17392  Hom chom 17444   Func cfunc 18034
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-rep 5231  ax-sep 5248  ax-nul 5259  ax-pow 5326  ax-pr 5390  ax-un 7751  ax-cnex 11259  ax-resscn 11260  ax-1cn 11261  ax-icn 11262  ax-addcl 11263  ax-addrcl 11264  ax-mulcl 11265  ax-mulrcl 11266  ax-mulcom 11267  ax-addass 11268  ax-mulass 11269  ax-distr 11270  ax-i2m1 11271  ax-1ne0 11272  ax-1rid 11273  ax-rnegex 11274  ax-rrecex 11275  ax-cnre 11276  ax-pre-lttri 11277  ax-pre-lttrn 11278  ax-pre-ltadd 11279
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-nel 3062  df-ral 3077  df-rex 3087  df-reu 3366  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3847  df-ss 3896  df-pss 4014  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-pw 4558  df-sn 4585  df-pr 4587  df-op 4835  df-uni 4867  df-iun 4952  df-br 5103  df-opab 5167  df-mpt 5186  df-tr 5212  df-id 5545  df-eprel 5550  df-po 5558  df-so 5559  df-fr 5603  df-we 5605  df-xp 5656  df-rel 5657  df-cnv 5658  df-co 5659  df-dm 5660  df-rn 5661  df-res 5662  df-ima 5663  df-pred 6304  df-ord 6365  df-on 6366  df-lim 6367  df-suc 6368  df-iota 6494  df-fun 6540  df-fn 6541  df-f 6542  df-f1 6543  df-fo 6544  df-f1o 6545  df-fv 6546  df-ov 7423  df-oprab 7424  df-mpo 7425  df-om 7878  df-1st 8001  df-2nd 8002  df-frecs 8302  df-wrecs 8333  df-recs 8382  df-rdg 8421  df-er 8720  df-map 8852  df-pm 8853  df-ixp 8929  df-en 8977  df-dom 8978  df-sdom 8979  df-wun 10790  df-pnf 11348  df-mnf 11349  df-ltxr 11351  df-nn 12339  df-2 12408  df-3 12409  df-4 12410  df-5 12411  df-6 12412  df-7 12413  df-8 12414  df-9 12415  df-n0 12610  df-dec 12818  df-slot 17365  df-ndx 17377  df-base 17393  df-hom 17457  df-func 18038
This theorem is used by:  wunnat  18139  catcfuccl  18298
  Copyright terms: Public domain W3C validator