Metamath Proof Explorer


Theorem prdsco

Description: Structure product composition operation. (Contributed by Mario Carneiro, 7-Jan-2017) (Revised by Thierry Arnoux, 16-Jun-2019) (Revised by Zhi Wang, 18-Aug-2024)

Ref Expression
Hypotheses prdsbas.p 𝑃 = ( 𝑆 Xs 𝑅 )
prdsbas.s ( 𝜑𝑆𝑉 )
prdsbas.r ( 𝜑𝑅𝑊 )
prdsbas.b 𝐵 = ( Base ‘ 𝑃 )
prdsbas.i ( 𝜑 → dom 𝑅 = 𝐼 )
prdshom.h 𝐻 = ( Hom ‘ 𝑃 )
prdsco.o = ( comp ‘ 𝑃 )
Assertion prdsco ( 𝜑 = ( 𝑎 ∈ ( 𝐵 × 𝐵 ) , 𝑐𝐵 ↦ ( 𝑑 ∈ ( ( 2nd𝑎 ) 𝐻 𝑐 ) , 𝑒 ∈ ( 𝐻𝑎 ) ↦ ( 𝑥𝐼 ↦ ( ( 𝑑𝑥 ) ( ⟨ ( ( 1st𝑎 ) ‘ 𝑥 ) , ( ( 2nd𝑎 ) ‘ 𝑥 ) ⟩ ( comp ‘ ( 𝑅𝑥 ) ) ( 𝑐𝑥 ) ) ( 𝑒𝑥 ) ) ) ) ) )

Proof

Step Hyp Ref Expression
1 prdsbas.p 𝑃 = ( 𝑆 Xs 𝑅 )
2 prdsbas.s ( 𝜑𝑆𝑉 )
3 prdsbas.r ( 𝜑𝑅𝑊 )
4 prdsbas.b 𝐵 = ( Base ‘ 𝑃 )
5 prdsbas.i ( 𝜑 → dom 𝑅 = 𝐼 )
6 prdshom.h 𝐻 = ( Hom ‘ 𝑃 )
7 prdsco.o = ( comp ‘ 𝑃 )
8 eqid ( Base ‘ 𝑆 ) = ( Base ‘ 𝑆 )
9 1 2 3 4 5 prdsbas ( 𝜑𝐵 = X 𝑥𝐼 ( Base ‘ ( 𝑅𝑥 ) ) )
10 eqid ( +g𝑃 ) = ( +g𝑃 )
11 1 2 3 4 5 10 prdsplusg ( 𝜑 → ( +g𝑃 ) = ( 𝑓𝐵 , 𝑔𝐵 ↦ ( 𝑥𝐼 ↦ ( ( 𝑓𝑥 ) ( +g ‘ ( 𝑅𝑥 ) ) ( 𝑔𝑥 ) ) ) ) )
12 eqid ( .r𝑃 ) = ( .r𝑃 )
13 1 2 3 4 5 12 prdsmulr ( 𝜑 → ( .r𝑃 ) = ( 𝑓𝐵 , 𝑔𝐵 ↦ ( 𝑥𝐼 ↦ ( ( 𝑓𝑥 ) ( .r ‘ ( 𝑅𝑥 ) ) ( 𝑔𝑥 ) ) ) ) )
14 eqid ( ·𝑠𝑃 ) = ( ·𝑠𝑃 )
15 1 2 3 4 5 8 14 prdsvsca ( 𝜑 → ( ·𝑠𝑃 ) = ( 𝑓 ∈ ( Base ‘ 𝑆 ) , 𝑔𝐵 ↦ ( 𝑥𝐼 ↦ ( 𝑓 ( ·𝑠 ‘ ( 𝑅𝑥 ) ) ( 𝑔𝑥 ) ) ) ) )
16 eqidd ( 𝜑 → ( 𝑓𝐵 , 𝑔𝐵 ↦ ( 𝑆 Σg ( 𝑥𝐼 ↦ ( ( 𝑓𝑥 ) ( ·𝑖 ‘ ( 𝑅𝑥 ) ) ( 𝑔𝑥 ) ) ) ) ) = ( 𝑓𝐵 , 𝑔𝐵 ↦ ( 𝑆 Σg ( 𝑥𝐼 ↦ ( ( 𝑓𝑥 ) ( ·𝑖 ‘ ( 𝑅𝑥 ) ) ( 𝑔𝑥 ) ) ) ) ) )
17 eqid ( TopSet ‘ 𝑃 ) = ( TopSet ‘ 𝑃 )
18 1 2 3 4 5 17 prdstset ( 𝜑 → ( TopSet ‘ 𝑃 ) = ( ∏t ‘ ( TopOpen ∘ 𝑅 ) ) )
19 eqid ( le ‘ 𝑃 ) = ( le ‘ 𝑃 )
20 1 2 3 4 5 19 prdsle ( 𝜑 → ( le ‘ 𝑃 ) = { ⟨ 𝑓 , 𝑔 ⟩ ∣ ( { 𝑓 , 𝑔 } ⊆ 𝐵 ∧ ∀ 𝑥𝐼 ( 𝑓𝑥 ) ( le ‘ ( 𝑅𝑥 ) ) ( 𝑔𝑥 ) ) } )
21 eqid ( dist ‘ 𝑃 ) = ( dist ‘ 𝑃 )
22 1 2 3 4 5 21 prdsds ( 𝜑 → ( dist ‘ 𝑃 ) = ( 𝑓𝐵 , 𝑔𝐵 ↦ sup ( ( ran ( 𝑥𝐼 ↦ ( ( 𝑓𝑥 ) ( dist ‘ ( 𝑅𝑥 ) ) ( 𝑔𝑥 ) ) ) ∪ { 0 } ) , ℝ* , < ) ) )
23 1 2 3 4 5 6 prdshom ( 𝜑𝐻 = ( 𝑓𝐵 , 𝑔𝐵X 𝑥𝐼 ( ( 𝑓𝑥 ) ( Hom ‘ ( 𝑅𝑥 ) ) ( 𝑔𝑥 ) ) ) )
24 eqidd ( 𝜑 → ( 𝑎 ∈ ( 𝐵 × 𝐵 ) , 𝑐𝐵 ↦ ( 𝑑 ∈ ( ( 2nd𝑎 ) 𝐻 𝑐 ) , 𝑒 ∈ ( 𝐻𝑎 ) ↦ ( 𝑥𝐼 ↦ ( ( 𝑑𝑥 ) ( ⟨ ( ( 1st𝑎 ) ‘ 𝑥 ) , ( ( 2nd𝑎 ) ‘ 𝑥 ) ⟩ ( comp ‘ ( 𝑅𝑥 ) ) ( 𝑐𝑥 ) ) ( 𝑒𝑥 ) ) ) ) ) = ( 𝑎 ∈ ( 𝐵 × 𝐵 ) , 𝑐𝐵 ↦ ( 𝑑 ∈ ( ( 2nd𝑎 ) 𝐻 𝑐 ) , 𝑒 ∈ ( 𝐻𝑎 ) ↦ ( 𝑥𝐼 ↦ ( ( 𝑑𝑥 ) ( ⟨ ( ( 1st𝑎 ) ‘ 𝑥 ) , ( ( 2nd𝑎 ) ‘ 𝑥 ) ⟩ ( comp ‘ ( 𝑅𝑥 ) ) ( 𝑐𝑥 ) ) ( 𝑒𝑥 ) ) ) ) ) )
25 1 8 5 9 11 13 15 16 18 20 22 23 24 2 3 prdsval ( 𝜑𝑃 = ( ( { ⟨ ( Base ‘ ndx ) , 𝐵 ⟩ , ⟨ ( +g ‘ ndx ) , ( +g𝑃 ) ⟩ , ⟨ ( .r ‘ ndx ) , ( .r𝑃 ) ⟩ } ∪ { ⟨ ( Scalar ‘ ndx ) , 𝑆 ⟩ , ⟨ ( ·𝑠 ‘ ndx ) , ( ·𝑠𝑃 ) ⟩ , ⟨ ( ·𝑖 ‘ ndx ) , ( 𝑓𝐵 , 𝑔𝐵 ↦ ( 𝑆 Σg ( 𝑥𝐼 ↦ ( ( 𝑓𝑥 ) ( ·𝑖 ‘ ( 𝑅𝑥 ) ) ( 𝑔𝑥 ) ) ) ) ) ⟩ } ) ∪ ( { ⟨ ( TopSet ‘ ndx ) , ( TopSet ‘ 𝑃 ) ⟩ , ⟨ ( le ‘ ndx ) , ( le ‘ 𝑃 ) ⟩ , ⟨ ( dist ‘ ndx ) , ( dist ‘ 𝑃 ) ⟩ } ∪ { ⟨ ( Hom ‘ ndx ) , 𝐻 ⟩ , ⟨ ( comp ‘ ndx ) , ( 𝑎 ∈ ( 𝐵 × 𝐵 ) , 𝑐𝐵 ↦ ( 𝑑 ∈ ( ( 2nd𝑎 ) 𝐻 𝑐 ) , 𝑒 ∈ ( 𝐻𝑎 ) ↦ ( 𝑥𝐼 ↦ ( ( 𝑑𝑥 ) ( ⟨ ( ( 1st𝑎 ) ‘ 𝑥 ) , ( ( 2nd𝑎 ) ‘ 𝑥 ) ⟩ ( comp ‘ ( 𝑅𝑥 ) ) ( 𝑐𝑥 ) ) ( 𝑒𝑥 ) ) ) ) ) ⟩ } ) ) )
26 ccoid comp = Slot ( comp ‘ ndx )
27 4 fvexi 𝐵 ∈ V
28 27 27 xpex ( 𝐵 × 𝐵 ) ∈ V
29 28 27 mpoex ( 𝑎 ∈ ( 𝐵 × 𝐵 ) , 𝑐𝐵 ↦ ( 𝑑 ∈ ( ( 2nd𝑎 ) 𝐻 𝑐 ) , 𝑒 ∈ ( 𝐻𝑎 ) ↦ ( 𝑥𝐼 ↦ ( ( 𝑑𝑥 ) ( ⟨ ( ( 1st𝑎 ) ‘ 𝑥 ) , ( ( 2nd𝑎 ) ‘ 𝑥 ) ⟩ ( comp ‘ ( 𝑅𝑥 ) ) ( 𝑐𝑥 ) ) ( 𝑒𝑥 ) ) ) ) ) ∈ V
30 29 a1i ( 𝜑 → ( 𝑎 ∈ ( 𝐵 × 𝐵 ) , 𝑐𝐵 ↦ ( 𝑑 ∈ ( ( 2nd𝑎 ) 𝐻 𝑐 ) , 𝑒 ∈ ( 𝐻𝑎 ) ↦ ( 𝑥𝐼 ↦ ( ( 𝑑𝑥 ) ( ⟨ ( ( 1st𝑎 ) ‘ 𝑥 ) , ( ( 2nd𝑎 ) ‘ 𝑥 ) ⟩ ( comp ‘ ( 𝑅𝑥 ) ) ( 𝑐𝑥 ) ) ( 𝑒𝑥 ) ) ) ) ) ∈ V )
31 snsspr2 { ⟨ ( comp ‘ ndx ) , ( 𝑎 ∈ ( 𝐵 × 𝐵 ) , 𝑐𝐵 ↦ ( 𝑑 ∈ ( ( 2nd𝑎 ) 𝐻 𝑐 ) , 𝑒 ∈ ( 𝐻𝑎 ) ↦ ( 𝑥𝐼 ↦ ( ( 𝑑𝑥 ) ( ⟨ ( ( 1st𝑎 ) ‘ 𝑥 ) , ( ( 2nd𝑎 ) ‘ 𝑥 ) ⟩ ( comp ‘ ( 𝑅𝑥 ) ) ( 𝑐𝑥 ) ) ( 𝑒𝑥 ) ) ) ) ) ⟩ } ⊆ { ⟨ ( Hom ‘ ndx ) , 𝐻 ⟩ , ⟨ ( comp ‘ ndx ) , ( 𝑎 ∈ ( 𝐵 × 𝐵 ) , 𝑐𝐵 ↦ ( 𝑑 ∈ ( ( 2nd𝑎 ) 𝐻 𝑐 ) , 𝑒 ∈ ( 𝐻𝑎 ) ↦ ( 𝑥𝐼 ↦ ( ( 𝑑𝑥 ) ( ⟨ ( ( 1st𝑎 ) ‘ 𝑥 ) , ( ( 2nd𝑎 ) ‘ 𝑥 ) ⟩ ( comp ‘ ( 𝑅𝑥 ) ) ( 𝑐𝑥 ) ) ( 𝑒𝑥 ) ) ) ) ) ⟩ }
32 ssun2 { ⟨ ( Hom ‘ ndx ) , 𝐻 ⟩ , ⟨ ( comp ‘ ndx ) , ( 𝑎 ∈ ( 𝐵 × 𝐵 ) , 𝑐𝐵 ↦ ( 𝑑 ∈ ( ( 2nd𝑎 ) 𝐻 𝑐 ) , 𝑒 ∈ ( 𝐻𝑎 ) ↦ ( 𝑥𝐼 ↦ ( ( 𝑑𝑥 ) ( ⟨ ( ( 1st𝑎 ) ‘ 𝑥 ) , ( ( 2nd𝑎 ) ‘ 𝑥 ) ⟩ ( comp ‘ ( 𝑅𝑥 ) ) ( 𝑐𝑥 ) ) ( 𝑒𝑥 ) ) ) ) ) ⟩ } ⊆ ( { ⟨ ( TopSet ‘ ndx ) , ( TopSet ‘ 𝑃 ) ⟩ , ⟨ ( le ‘ ndx ) , ( le ‘ 𝑃 ) ⟩ , ⟨ ( dist ‘ ndx ) , ( dist ‘ 𝑃 ) ⟩ } ∪ { ⟨ ( Hom ‘ ndx ) , 𝐻 ⟩ , ⟨ ( comp ‘ ndx ) , ( 𝑎 ∈ ( 𝐵 × 𝐵 ) , 𝑐𝐵 ↦ ( 𝑑 ∈ ( ( 2nd𝑎 ) 𝐻 𝑐 ) , 𝑒 ∈ ( 𝐻𝑎 ) ↦ ( 𝑥𝐼 ↦ ( ( 𝑑𝑥 ) ( ⟨ ( ( 1st𝑎 ) ‘ 𝑥 ) , ( ( 2nd𝑎 ) ‘ 𝑥 ) ⟩ ( comp ‘ ( 𝑅𝑥 ) ) ( 𝑐𝑥 ) ) ( 𝑒𝑥 ) ) ) ) ) ⟩ } )
33 31 32 sstri { ⟨ ( comp ‘ ndx ) , ( 𝑎 ∈ ( 𝐵 × 𝐵 ) , 𝑐𝐵 ↦ ( 𝑑 ∈ ( ( 2nd𝑎 ) 𝐻 𝑐 ) , 𝑒 ∈ ( 𝐻𝑎 ) ↦ ( 𝑥𝐼 ↦ ( ( 𝑑𝑥 ) ( ⟨ ( ( 1st𝑎 ) ‘ 𝑥 ) , ( ( 2nd𝑎 ) ‘ 𝑥 ) ⟩ ( comp ‘ ( 𝑅𝑥 ) ) ( 𝑐𝑥 ) ) ( 𝑒𝑥 ) ) ) ) ) ⟩ } ⊆ ( { ⟨ ( TopSet ‘ ndx ) , ( TopSet ‘ 𝑃 ) ⟩ , ⟨ ( le ‘ ndx ) , ( le ‘ 𝑃 ) ⟩ , ⟨ ( dist ‘ ndx ) , ( dist ‘ 𝑃 ) ⟩ } ∪ { ⟨ ( Hom ‘ ndx ) , 𝐻 ⟩ , ⟨ ( comp ‘ ndx ) , ( 𝑎 ∈ ( 𝐵 × 𝐵 ) , 𝑐𝐵 ↦ ( 𝑑 ∈ ( ( 2nd𝑎 ) 𝐻 𝑐 ) , 𝑒 ∈ ( 𝐻𝑎 ) ↦ ( 𝑥𝐼 ↦ ( ( 𝑑𝑥 ) ( ⟨ ( ( 1st𝑎 ) ‘ 𝑥 ) , ( ( 2nd𝑎 ) ‘ 𝑥 ) ⟩ ( comp ‘ ( 𝑅𝑥 ) ) ( 𝑐𝑥 ) ) ( 𝑒𝑥 ) ) ) ) ) ⟩ } )
34 ssun2 ( { ⟨ ( TopSet ‘ ndx ) , ( TopSet ‘ 𝑃 ) ⟩ , ⟨ ( le ‘ ndx ) , ( le ‘ 𝑃 ) ⟩ , ⟨ ( dist ‘ ndx ) , ( dist ‘ 𝑃 ) ⟩ } ∪ { ⟨ ( Hom ‘ ndx ) , 𝐻 ⟩ , ⟨ ( comp ‘ ndx ) , ( 𝑎 ∈ ( 𝐵 × 𝐵 ) , 𝑐𝐵 ↦ ( 𝑑 ∈ ( ( 2nd𝑎 ) 𝐻 𝑐 ) , 𝑒 ∈ ( 𝐻𝑎 ) ↦ ( 𝑥𝐼 ↦ ( ( 𝑑𝑥 ) ( ⟨ ( ( 1st𝑎 ) ‘ 𝑥 ) , ( ( 2nd𝑎 ) ‘ 𝑥 ) ⟩ ( comp ‘ ( 𝑅𝑥 ) ) ( 𝑐𝑥 ) ) ( 𝑒𝑥 ) ) ) ) ) ⟩ } ) ⊆ ( ( { ⟨ ( Base ‘ ndx ) , 𝐵 ⟩ , ⟨ ( +g ‘ ndx ) , ( +g𝑃 ) ⟩ , ⟨ ( .r ‘ ndx ) , ( .r𝑃 ) ⟩ } ∪ { ⟨ ( Scalar ‘ ndx ) , 𝑆 ⟩ , ⟨ ( ·𝑠 ‘ ndx ) , ( ·𝑠𝑃 ) ⟩ , ⟨ ( ·𝑖 ‘ ndx ) , ( 𝑓𝐵 , 𝑔𝐵 ↦ ( 𝑆 Σg ( 𝑥𝐼 ↦ ( ( 𝑓𝑥 ) ( ·𝑖 ‘ ( 𝑅𝑥 ) ) ( 𝑔𝑥 ) ) ) ) ) ⟩ } ) ∪ ( { ⟨ ( TopSet ‘ ndx ) , ( TopSet ‘ 𝑃 ) ⟩ , ⟨ ( le ‘ ndx ) , ( le ‘ 𝑃 ) ⟩ , ⟨ ( dist ‘ ndx ) , ( dist ‘ 𝑃 ) ⟩ } ∪ { ⟨ ( Hom ‘ ndx ) , 𝐻 ⟩ , ⟨ ( comp ‘ ndx ) , ( 𝑎 ∈ ( 𝐵 × 𝐵 ) , 𝑐𝐵 ↦ ( 𝑑 ∈ ( ( 2nd𝑎 ) 𝐻 𝑐 ) , 𝑒 ∈ ( 𝐻𝑎 ) ↦ ( 𝑥𝐼 ↦ ( ( 𝑑𝑥 ) ( ⟨ ( ( 1st𝑎 ) ‘ 𝑥 ) , ( ( 2nd𝑎 ) ‘ 𝑥 ) ⟩ ( comp ‘ ( 𝑅𝑥 ) ) ( 𝑐𝑥 ) ) ( 𝑒𝑥 ) ) ) ) ) ⟩ } ) )
35 33 34 sstri { ⟨ ( comp ‘ ndx ) , ( 𝑎 ∈ ( 𝐵 × 𝐵 ) , 𝑐𝐵 ↦ ( 𝑑 ∈ ( ( 2nd𝑎 ) 𝐻 𝑐 ) , 𝑒 ∈ ( 𝐻𝑎 ) ↦ ( 𝑥𝐼 ↦ ( ( 𝑑𝑥 ) ( ⟨ ( ( 1st𝑎 ) ‘ 𝑥 ) , ( ( 2nd𝑎 ) ‘ 𝑥 ) ⟩ ( comp ‘ ( 𝑅𝑥 ) ) ( 𝑐𝑥 ) ) ( 𝑒𝑥 ) ) ) ) ) ⟩ } ⊆ ( ( { ⟨ ( Base ‘ ndx ) , 𝐵 ⟩ , ⟨ ( +g ‘ ndx ) , ( +g𝑃 ) ⟩ , ⟨ ( .r ‘ ndx ) , ( .r𝑃 ) ⟩ } ∪ { ⟨ ( Scalar ‘ ndx ) , 𝑆 ⟩ , ⟨ ( ·𝑠 ‘ ndx ) , ( ·𝑠𝑃 ) ⟩ , ⟨ ( ·𝑖 ‘ ndx ) , ( 𝑓𝐵 , 𝑔𝐵 ↦ ( 𝑆 Σg ( 𝑥𝐼 ↦ ( ( 𝑓𝑥 ) ( ·𝑖 ‘ ( 𝑅𝑥 ) ) ( 𝑔𝑥 ) ) ) ) ) ⟩ } ) ∪ ( { ⟨ ( TopSet ‘ ndx ) , ( TopSet ‘ 𝑃 ) ⟩ , ⟨ ( le ‘ ndx ) , ( le ‘ 𝑃 ) ⟩ , ⟨ ( dist ‘ ndx ) , ( dist ‘ 𝑃 ) ⟩ } ∪ { ⟨ ( Hom ‘ ndx ) , 𝐻 ⟩ , ⟨ ( comp ‘ ndx ) , ( 𝑎 ∈ ( 𝐵 × 𝐵 ) , 𝑐𝐵 ↦ ( 𝑑 ∈ ( ( 2nd𝑎 ) 𝐻 𝑐 ) , 𝑒 ∈ ( 𝐻𝑎 ) ↦ ( 𝑥𝐼 ↦ ( ( 𝑑𝑥 ) ( ⟨ ( ( 1st𝑎 ) ‘ 𝑥 ) , ( ( 2nd𝑎 ) ‘ 𝑥 ) ⟩ ( comp ‘ ( 𝑅𝑥 ) ) ( 𝑐𝑥 ) ) ( 𝑒𝑥 ) ) ) ) ) ⟩ } ) )
36 25 7 26 30 35 prdsbaslem ( 𝜑 = ( 𝑎 ∈ ( 𝐵 × 𝐵 ) , 𝑐𝐵 ↦ ( 𝑑 ∈ ( ( 2nd𝑎 ) 𝐻 𝑐 ) , 𝑒 ∈ ( 𝐻𝑎 ) ↦ ( 𝑥𝐼 ↦ ( ( 𝑑𝑥 ) ( ⟨ ( ( 1st𝑎 ) ‘ 𝑥 ) , ( ( 2nd𝑎 ) ‘ 𝑥 ) ⟩ ( comp ‘ ( 𝑅𝑥 ) ) ( 𝑐𝑥 ) ) ( 𝑒𝑥 ) ) ) ) ) )