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

Theorem wunnat 17238
 Description: A weak universe is closed under the natural transformation operation. (Contributed by Mario Carneiro, 12-Jan-2017.)
Hypotheses
Ref Expression
wunnat.1 (𝜑𝑈 ∈ WUni)
wunnat.2 (𝜑𝐶𝑈)
wunnat.3 (𝜑𝐷𝑈)
Assertion
Ref Expression
wunnat (𝜑 → (𝐶 Nat 𝐷) ∈ 𝑈)

Proof of Theorem wunnat
Dummy variables 𝑓 𝑎 𝑔 𝑟 𝑠 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 wunnat.1 . 2 (𝜑𝑈 ∈ WUni)
2 wunnat.2 . . . 4 (𝜑𝐶𝑈)
3 wunnat.3 . . . 4 (𝜑𝐷𝑈)
41, 2, 3wunfunc 17181 . . 3 (𝜑 → (𝐶 Func 𝐷) ∈ 𝑈)
51, 4, 4wunxp 10153 . 2 (𝜑 → ((𝐶 Func 𝐷) × (𝐶 Func 𝐷)) ∈ 𝑈)
6 df-hom 16601 . . . . . . 7 Hom = Slot 14
76, 1, 3wunstr 16519 . . . . . 6 (𝜑 → (Hom ‘𝐷) ∈ 𝑈)
81, 7wunrn 10158 . . . . 5 (𝜑 → ran (Hom ‘𝐷) ∈ 𝑈)
91, 8wununi 10135 . . . 4 (𝜑 ran (Hom ‘𝐷) ∈ 𝑈)
10 df-base 16501 . . . . 5 Base = Slot 1
1110, 1, 2wunstr 16519 . . . 4 (𝜑 → (Base‘𝐶) ∈ 𝑈)
121, 9, 11wunmap 10155 . . 3 (𝜑 → ( ran (Hom ‘𝐷) ↑m (Base‘𝐶)) ∈ 𝑈)
131, 12wunpw 10136 . 2 (𝜑 → 𝒫 ( ran (Hom ‘𝐷) ↑m (Base‘𝐶)) ∈ 𝑈)
14 fvex 6668 . . . . . 6 (1st𝑓) ∈ V
15 fvex 6668 . . . . . . . . 9 (1st𝑔) ∈ V
16 ovex 7178 . . . . . . . . . . . 12 ( ran (Hom ‘𝐷) ↑m (Base‘𝐶)) ∈ V
17 ssrab2 4009 . . . . . . . . . . . . 13 {𝑎X𝑥 ∈ (Base‘𝐶)((𝑟𝑥)(Hom ‘𝐷)(𝑠𝑥)) ∣ ∀𝑥 ∈ (Base‘𝐶)∀𝑦 ∈ (Base‘𝐶)∀𝑧 ∈ (𝑥(Hom ‘𝐶)𝑦)((𝑎𝑦)(⟨(𝑟𝑥), (𝑟𝑦)⟩(comp‘𝐷)(𝑠𝑦))((𝑥(2nd𝑓)𝑦)‘𝑧)) = (((𝑥(2nd𝑔)𝑦)‘𝑧)(⟨(𝑟𝑥), (𝑠𝑥)⟩(comp‘𝐷)(𝑠𝑦))(𝑎𝑥))} ⊆ X𝑥 ∈ (Base‘𝐶)((𝑟𝑥)(Hom ‘𝐷)(𝑠𝑥))
18 ovssunirn 7181 . . . . . . . . . . . . . . . 16 ((𝑟𝑥)(Hom ‘𝐷)(𝑠𝑥)) ⊆ ran (Hom ‘𝐷)
1918rgenw 3118 . . . . . . . . . . . . . . 15 𝑥 ∈ (Base‘𝐶)((𝑟𝑥)(Hom ‘𝐷)(𝑠𝑥)) ⊆ ran (Hom ‘𝐷)
20 ss2ixp 8475 . . . . . . . . . . . . . . 15 (∀𝑥 ∈ (Base‘𝐶)((𝑟𝑥)(Hom ‘𝐷)(𝑠𝑥)) ⊆ ran (Hom ‘𝐷) → X𝑥 ∈ (Base‘𝐶)((𝑟𝑥)(Hom ‘𝐷)(𝑠𝑥)) ⊆ X𝑥 ∈ (Base‘𝐶) ran (Hom ‘𝐷))
2119, 20ax-mp 5 . . . . . . . . . . . . . 14 X𝑥 ∈ (Base‘𝐶)((𝑟𝑥)(Hom ‘𝐷)(𝑠𝑥)) ⊆ X𝑥 ∈ (Base‘𝐶) ran (Hom ‘𝐷)
22 fvex 6668 . . . . . . . . . . . . . . 15 (Base‘𝐶) ∈ V
23 fvex 6668 . . . . . . . . . . . . . . . . 17 (Hom ‘𝐷) ∈ V
2423rnex 7612 . . . . . . . . . . . . . . . 16 ran (Hom ‘𝐷) ∈ V
2524uniex 7460 . . . . . . . . . . . . . . 15 ran (Hom ‘𝐷) ∈ V
2622, 25ixpconst 8472 . . . . . . . . . . . . . 14 X𝑥 ∈ (Base‘𝐶) ran (Hom ‘𝐷) = ( ran (Hom ‘𝐷) ↑m (Base‘𝐶))
2721, 26sseqtri 3953 . . . . . . . . . . . . 13 X𝑥 ∈ (Base‘𝐶)((𝑟𝑥)(Hom ‘𝐷)(𝑠𝑥)) ⊆ ( ran (Hom ‘𝐷) ↑m (Base‘𝐶))
2817, 27sstri 3926 . . . . . . . . . . . 12 {𝑎X𝑥 ∈ (Base‘𝐶)((𝑟𝑥)(Hom ‘𝐷)(𝑠𝑥)) ∣ ∀𝑥 ∈ (Base‘𝐶)∀𝑦 ∈ (Base‘𝐶)∀𝑧 ∈ (𝑥(Hom ‘𝐶)𝑦)((𝑎𝑦)(⟨(𝑟𝑥), (𝑟𝑦)⟩(comp‘𝐷)(𝑠𝑦))((𝑥(2nd𝑓)𝑦)‘𝑧)) = (((𝑥(2nd𝑔)𝑦)‘𝑧)(⟨(𝑟𝑥), (𝑠𝑥)⟩(comp‘𝐷)(𝑠𝑦))(𝑎𝑥))} ⊆ ( ran (Hom ‘𝐷) ↑m (Base‘𝐶))
2916, 28elpwi2 5217 . . . . . . . . . . 11 {𝑎X𝑥 ∈ (Base‘𝐶)((𝑟𝑥)(Hom ‘𝐷)(𝑠𝑥)) ∣ ∀𝑥 ∈ (Base‘𝐶)∀𝑦 ∈ (Base‘𝐶)∀𝑧 ∈ (𝑥(Hom ‘𝐶)𝑦)((𝑎𝑦)(⟨(𝑟𝑥), (𝑟𝑦)⟩(comp‘𝐷)(𝑠𝑦))((𝑥(2nd𝑓)𝑦)‘𝑧)) = (((𝑥(2nd𝑔)𝑦)‘𝑧)(⟨(𝑟𝑥), (𝑠𝑥)⟩(comp‘𝐷)(𝑠𝑦))(𝑎𝑥))} ∈ 𝒫 ( ran (Hom ‘𝐷) ↑m (Base‘𝐶))
3029sbcth 3737 . . . . . . . . . 10 ((1st𝑔) ∈ V → [(1st𝑔) / 𝑠]{𝑎X𝑥 ∈ (Base‘𝐶)((𝑟𝑥)(Hom ‘𝐷)(𝑠𝑥)) ∣ ∀𝑥 ∈ (Base‘𝐶)∀𝑦 ∈ (Base‘𝐶)∀𝑧 ∈ (𝑥(Hom ‘𝐶)𝑦)((𝑎𝑦)(⟨(𝑟𝑥), (𝑟𝑦)⟩(comp‘𝐷)(𝑠𝑦))((𝑥(2nd𝑓)𝑦)‘𝑧)) = (((𝑥(2nd𝑔)𝑦)‘𝑧)(⟨(𝑟𝑥), (𝑠𝑥)⟩(comp‘𝐷)(𝑠𝑦))(𝑎𝑥))} ∈ 𝒫 ( ran (Hom ‘𝐷) ↑m (Base‘𝐶)))
31 sbcel1g 4324 . . . . . . . . . 10 ((1st𝑔) ∈ V → ([(1st𝑔) / 𝑠]{𝑎X𝑥 ∈ (Base‘𝐶)((𝑟𝑥)(Hom ‘𝐷)(𝑠𝑥)) ∣ ∀𝑥 ∈ (Base‘𝐶)∀𝑦 ∈ (Base‘𝐶)∀𝑧 ∈ (𝑥(Hom ‘𝐶)𝑦)((𝑎𝑦)(⟨(𝑟𝑥), (𝑟𝑦)⟩(comp‘𝐷)(𝑠𝑦))((𝑥(2nd𝑓)𝑦)‘𝑧)) = (((𝑥(2nd𝑔)𝑦)‘𝑧)(⟨(𝑟𝑥), (𝑠𝑥)⟩(comp‘𝐷)(𝑠𝑦))(𝑎𝑥))} ∈ 𝒫 ( ran (Hom ‘𝐷) ↑m (Base‘𝐶)) ↔ (1st𝑔) / 𝑠{𝑎X𝑥 ∈ (Base‘𝐶)((𝑟𝑥)(Hom ‘𝐷)(𝑠𝑥)) ∣ ∀𝑥 ∈ (Base‘𝐶)∀𝑦 ∈ (Base‘𝐶)∀𝑧 ∈ (𝑥(Hom ‘𝐶)𝑦)((𝑎𝑦)(⟨(𝑟𝑥), (𝑟𝑦)⟩(comp‘𝐷)(𝑠𝑦))((𝑥(2nd𝑓)𝑦)‘𝑧)) = (((𝑥(2nd𝑔)𝑦)‘𝑧)(⟨(𝑟𝑥), (𝑠𝑥)⟩(comp‘𝐷)(𝑠𝑦))(𝑎𝑥))} ∈ 𝒫 ( ran (Hom ‘𝐷) ↑m (Base‘𝐶))))
3230, 31mpbid 235 . . . . . . . . 9 ((1st𝑔) ∈ V → (1st𝑔) / 𝑠{𝑎X𝑥 ∈ (Base‘𝐶)((𝑟𝑥)(Hom ‘𝐷)(𝑠𝑥)) ∣ ∀𝑥 ∈ (Base‘𝐶)∀𝑦 ∈ (Base‘𝐶)∀𝑧 ∈ (𝑥(Hom ‘𝐶)𝑦)((𝑎𝑦)(⟨(𝑟𝑥), (𝑟𝑦)⟩(comp‘𝐷)(𝑠𝑦))((𝑥(2nd𝑓)𝑦)‘𝑧)) = (((𝑥(2nd𝑔)𝑦)‘𝑧)(⟨(𝑟𝑥), (𝑠𝑥)⟩(comp‘𝐷)(𝑠𝑦))(𝑎𝑥))} ∈ 𝒫 ( ran (Hom ‘𝐷) ↑m (Base‘𝐶)))
3315, 32ax-mp 5 . . . . . . . 8 (1st𝑔) / 𝑠{𝑎X𝑥 ∈ (Base‘𝐶)((𝑟𝑥)(Hom ‘𝐷)(𝑠𝑥)) ∣ ∀𝑥 ∈ (Base‘𝐶)∀𝑦 ∈ (Base‘𝐶)∀𝑧 ∈ (𝑥(Hom ‘𝐶)𝑦)((𝑎𝑦)(⟨(𝑟𝑥), (𝑟𝑦)⟩(comp‘𝐷)(𝑠𝑦))((𝑥(2nd𝑓)𝑦)‘𝑧)) = (((𝑥(2nd𝑔)𝑦)‘𝑧)(⟨(𝑟𝑥), (𝑠𝑥)⟩(comp‘𝐷)(𝑠𝑦))(𝑎𝑥))} ∈ 𝒫 ( ran (Hom ‘𝐷) ↑m (Base‘𝐶))
3433sbcth 3737 . . . . . . 7 ((1st𝑓) ∈ V → [(1st𝑓) / 𝑟](1st𝑔) / 𝑠{𝑎X𝑥 ∈ (Base‘𝐶)((𝑟𝑥)(Hom ‘𝐷)(𝑠𝑥)) ∣ ∀𝑥 ∈ (Base‘𝐶)∀𝑦 ∈ (Base‘𝐶)∀𝑧 ∈ (𝑥(Hom ‘𝐶)𝑦)((𝑎𝑦)(⟨(𝑟𝑥), (𝑟𝑦)⟩(comp‘𝐷)(𝑠𝑦))((𝑥(2nd𝑓)𝑦)‘𝑧)) = (((𝑥(2nd𝑔)𝑦)‘𝑧)(⟨(𝑟𝑥), (𝑠𝑥)⟩(comp‘𝐷)(𝑠𝑦))(𝑎𝑥))} ∈ 𝒫 ( ran (Hom ‘𝐷) ↑m (Base‘𝐶)))
35 sbcel1g 4324 . . . . . . 7 ((1st𝑓) ∈ V → ([(1st𝑓) / 𝑟](1st𝑔) / 𝑠{𝑎X𝑥 ∈ (Base‘𝐶)((𝑟𝑥)(Hom ‘𝐷)(𝑠𝑥)) ∣ ∀𝑥 ∈ (Base‘𝐶)∀𝑦 ∈ (Base‘𝐶)∀𝑧 ∈ (𝑥(Hom ‘𝐶)𝑦)((𝑎𝑦)(⟨(𝑟𝑥), (𝑟𝑦)⟩(comp‘𝐷)(𝑠𝑦))((𝑥(2nd𝑓)𝑦)‘𝑧)) = (((𝑥(2nd𝑔)𝑦)‘𝑧)(⟨(𝑟𝑥), (𝑠𝑥)⟩(comp‘𝐷)(𝑠𝑦))(𝑎𝑥))} ∈ 𝒫 ( ran (Hom ‘𝐷) ↑m (Base‘𝐶)) ↔ (1st𝑓) / 𝑟(1st𝑔) / 𝑠{𝑎X𝑥 ∈ (Base‘𝐶)((𝑟𝑥)(Hom ‘𝐷)(𝑠𝑥)) ∣ ∀𝑥 ∈ (Base‘𝐶)∀𝑦 ∈ (Base‘𝐶)∀𝑧 ∈ (𝑥(Hom ‘𝐶)𝑦)((𝑎𝑦)(⟨(𝑟𝑥), (𝑟𝑦)⟩(comp‘𝐷)(𝑠𝑦))((𝑥(2nd𝑓)𝑦)‘𝑧)) = (((𝑥(2nd𝑔)𝑦)‘𝑧)(⟨(𝑟𝑥), (𝑠𝑥)⟩(comp‘𝐷)(𝑠𝑦))(𝑎𝑥))} ∈ 𝒫 ( ran (Hom ‘𝐷) ↑m (Base‘𝐶))))
3634, 35mpbid 235 . . . . . 6 ((1st𝑓) ∈ V → (1st𝑓) / 𝑟(1st𝑔) / 𝑠{𝑎X𝑥 ∈ (Base‘𝐶)((𝑟𝑥)(Hom ‘𝐷)(𝑠𝑥)) ∣ ∀𝑥 ∈ (Base‘𝐶)∀𝑦 ∈ (Base‘𝐶)∀𝑧 ∈ (𝑥(Hom ‘𝐶)𝑦)((𝑎𝑦)(⟨(𝑟𝑥), (𝑟𝑦)⟩(comp‘𝐷)(𝑠𝑦))((𝑥(2nd𝑓)𝑦)‘𝑧)) = (((𝑥(2nd𝑔)𝑦)‘𝑧)(⟨(𝑟𝑥), (𝑠𝑥)⟩(comp‘𝐷)(𝑠𝑦))(𝑎𝑥))} ∈ 𝒫 ( ran (Hom ‘𝐷) ↑m (Base‘𝐶)))
3714, 36ax-mp 5 . . . . 5 (1st𝑓) / 𝑟(1st𝑔) / 𝑠{𝑎X𝑥 ∈ (Base‘𝐶)((𝑟𝑥)(Hom ‘𝐷)(𝑠𝑥)) ∣ ∀𝑥 ∈ (Base‘𝐶)∀𝑦 ∈ (Base‘𝐶)∀𝑧 ∈ (𝑥(Hom ‘𝐶)𝑦)((𝑎𝑦)(⟨(𝑟𝑥), (𝑟𝑦)⟩(comp‘𝐷)(𝑠𝑦))((𝑥(2nd𝑓)𝑦)‘𝑧)) = (((𝑥(2nd𝑔)𝑦)‘𝑧)(⟨(𝑟𝑥), (𝑠𝑥)⟩(comp‘𝐷)(𝑠𝑦))(𝑎𝑥))} ∈ 𝒫 ( ran (Hom ‘𝐷) ↑m (Base‘𝐶))
3837rgen2w 3119 . . . 4 𝑓 ∈ (𝐶 Func 𝐷)∀𝑔 ∈ (𝐶 Func 𝐷)(1st𝑓) / 𝑟(1st𝑔) / 𝑠{𝑎X𝑥 ∈ (Base‘𝐶)((𝑟𝑥)(Hom ‘𝐷)(𝑠𝑥)) ∣ ∀𝑥 ∈ (Base‘𝐶)∀𝑦 ∈ (Base‘𝐶)∀𝑧 ∈ (𝑥(Hom ‘𝐶)𝑦)((𝑎𝑦)(⟨(𝑟𝑥), (𝑟𝑦)⟩(comp‘𝐷)(𝑠𝑦))((𝑥(2nd𝑓)𝑦)‘𝑧)) = (((𝑥(2nd𝑔)𝑦)‘𝑧)(⟨(𝑟𝑥), (𝑠𝑥)⟩(comp‘𝐷)(𝑠𝑦))(𝑎𝑥))} ∈ 𝒫 ( ran (Hom ‘𝐷) ↑m (Base‘𝐶))
39 eqid 2798 . . . . . 6 (𝐶 Nat 𝐷) = (𝐶 Nat 𝐷)
40 eqid 2798 . . . . . 6 (Base‘𝐶) = (Base‘𝐶)
41 eqid 2798 . . . . . 6 (Hom ‘𝐶) = (Hom ‘𝐶)
42 eqid 2798 . . . . . 6 (Hom ‘𝐷) = (Hom ‘𝐷)
43 eqid 2798 . . . . . 6 (comp‘𝐷) = (comp‘𝐷)
4439, 40, 41, 42, 43natfval 17228 . . . . 5 (𝐶 Nat 𝐷) = (𝑓 ∈ (𝐶 Func 𝐷), 𝑔 ∈ (𝐶 Func 𝐷) ↦ (1st𝑓) / 𝑟(1st𝑔) / 𝑠{𝑎X𝑥 ∈ (Base‘𝐶)((𝑟𝑥)(Hom ‘𝐷)(𝑠𝑥)) ∣ ∀𝑥 ∈ (Base‘𝐶)∀𝑦 ∈ (Base‘𝐶)∀𝑧 ∈ (𝑥(Hom ‘𝐶)𝑦)((𝑎𝑦)(⟨(𝑟𝑥), (𝑟𝑦)⟩(comp‘𝐷)(𝑠𝑦))((𝑥(2nd𝑓)𝑦)‘𝑧)) = (((𝑥(2nd𝑔)𝑦)‘𝑧)(⟨(𝑟𝑥), (𝑠𝑥)⟩(comp‘𝐷)(𝑠𝑦))(𝑎𝑥))})
4544fmpo 7761 . . . 4 (∀𝑓 ∈ (𝐶 Func 𝐷)∀𝑔 ∈ (𝐶 Func 𝐷)(1st𝑓) / 𝑟(1st𝑔) / 𝑠{𝑎X𝑥 ∈ (Base‘𝐶)((𝑟𝑥)(Hom ‘𝐷)(𝑠𝑥)) ∣ ∀𝑥 ∈ (Base‘𝐶)∀𝑦 ∈ (Base‘𝐶)∀𝑧 ∈ (𝑥(Hom ‘𝐶)𝑦)((𝑎𝑦)(⟨(𝑟𝑥), (𝑟𝑦)⟩(comp‘𝐷)(𝑠𝑦))((𝑥(2nd𝑓)𝑦)‘𝑧)) = (((𝑥(2nd𝑔)𝑦)‘𝑧)(⟨(𝑟𝑥), (𝑠𝑥)⟩(comp‘𝐷)(𝑠𝑦))(𝑎𝑥))} ∈ 𝒫 ( ran (Hom ‘𝐷) ↑m (Base‘𝐶)) ↔ (𝐶 Nat 𝐷):((𝐶 Func 𝐷) × (𝐶 Func 𝐷))⟶𝒫 ( ran (Hom ‘𝐷) ↑m (Base‘𝐶)))
4638, 45mpbi 233 . . 3 (𝐶 Nat 𝐷):((𝐶 Func 𝐷) × (𝐶 Func 𝐷))⟶𝒫 ( ran (Hom ‘𝐷) ↑m (Base‘𝐶))
4746a1i 11 . 2 (𝜑 → (𝐶 Nat 𝐷):((𝐶 Func 𝐷) × (𝐶 Func 𝐷))⟶𝒫 ( ran (Hom ‘𝐷) ↑m (Base‘𝐶)))
481, 5, 13, 47wunf 10156 1 (𝜑 → (𝐶 Nat 𝐷) ∈ 𝑈)
 Colors of variables: wff setvar class Syntax hints:   → wi 4   = wceq 1538   ∈ wcel 2111  ∀wral 3106  {crab 3110  Vcvv 3442  [wsbc 3722  ⦋csb 3830   ⊆ wss 3883  𝒫 cpw 4500  ⟨cop 4534  ∪ cuni 4804   × cxp 5521  ran crn 5524  ⟶wf 6328  ‘cfv 6332  (class class class)co 7145  1st c1st 7682  2nd c2nd 7683   ↑m cmap 8407  Xcixp 8462  WUnicwun 10129  1c1 10545  4c4 11700  ;cdc 12106  Basecbs 16495  Hom chom 16588  compcco 16589   Func cfunc 17136   Nat cnat 17223 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-rep 5158  ax-sep 5171  ax-nul 5178  ax-pow 5235  ax-pr 5299  ax-un 7454 This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3an 1086  df-tru 1541  df-fal 1551  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-ral 3111  df-rex 3112  df-reu 3113  df-rab 3115  df-v 3444  df-sbc 3723  df-csb 3831  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4247  df-if 4429  df-pw 4502  df-sn 4529  df-pr 4531  df-op 4535  df-uni 4805  df-iun 4887  df-br 5035  df-opab 5097  df-mpt 5115  df-tr 5141  df-id 5429  df-xp 5529  df-rel 5530  df-cnv 5531  df-co 5532  df-dm 5533  df-rn 5534  df-res 5535  df-ima 5536  df-iota 6291  df-fun 6334  df-fn 6335  df-f 6336  df-f1 6337  df-fo 6338  df-f1o 6339  df-fv 6340  df-ov 7148  df-oprab 7149  df-mpo 7150  df-1st 7684  df-2nd 7685  df-map 8409  df-pm 8410  df-ixp 8463  df-wun 10131  df-slot 16499  df-base 16501  df-hom 16601  df-func 17140  df-nat 17225 This theorem is referenced by:  catcfuccl  17381
 Copyright terms: Public domain W3C validator