Users' Mathboxes Mathbox for BJ < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  bj-imdirco Structured version   Visualization version   GIF version

Theorem bj-imdirco 35288
Description: Functorial property of the direct image: the direct image by a composition is the composition of the direct images. (Contributed by BJ, 23-May-2024.)
Hypotheses
Ref Expression
bj-imdirco.exa (𝜑𝐴𝑈)
bj-imdirco.exb (𝜑𝐵𝑉)
bj-imdirco.exc (𝜑𝐶𝑊)
bj-imdirco.arg1 (𝜑𝑅 ⊆ (𝐴 × 𝐵))
bj-imdirco.arg2 (𝜑𝑆 ⊆ (𝐵 × 𝐶))
Assertion
Ref Expression
bj-imdirco (𝜑 → ((𝐴𝒫*𝐶)‘(𝑆𝑅)) = (((𝐵𝒫*𝐶)‘𝑆) ∘ ((𝐴𝒫*𝐵)‘𝑅)))

Proof of Theorem bj-imdirco
Dummy variables 𝑥 𝑦 𝑧 𝑢 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 imaco 6144 . . . . . . . 8 ((𝑆𝑅) “ 𝑥) = (𝑆 “ (𝑅𝑥))
21eqeq1i 2743 . . . . . . 7 (((𝑆𝑅) “ 𝑥) = 𝑧 ↔ (𝑆 “ (𝑅𝑥)) = 𝑧)
32anbi2i 622 . . . . . 6 (((𝑥𝐴𝑧𝐶) ∧ ((𝑆𝑅) “ 𝑥) = 𝑧) ↔ ((𝑥𝐴𝑧𝐶) ∧ (𝑆 “ (𝑅𝑥)) = 𝑧))
43a1i 11 . . . . 5 (𝜑 → (((𝑥𝐴𝑧𝐶) ∧ ((𝑆𝑅) “ 𝑥) = 𝑧) ↔ ((𝑥𝐴𝑧𝐶) ∧ (𝑆 “ (𝑅𝑥)) = 𝑧)))
5 bj-imdirco.exa . . . . . . . . . . . . 13 (𝜑𝐴𝑈)
6 bj-imdirco.exb . . . . . . . . . . . . 13 (𝜑𝐵𝑉)
75, 6xpexd 7579 . . . . . . . . . . . 12 (𝜑 → (𝐴 × 𝐵) ∈ V)
8 bj-imdirco.arg1 . . . . . . . . . . . 12 (𝜑𝑅 ⊆ (𝐴 × 𝐵))
97, 8ssexd 5243 . . . . . . . . . . 11 (𝜑𝑅 ∈ V)
10 imaexg 7736 . . . . . . . . . . 11 (𝑅 ∈ V → (𝑅𝑥) ∈ V)
119, 10syl 17 . . . . . . . . . 10 (𝜑 → (𝑅𝑥) ∈ V)
12 imass1 5998 . . . . . . . . . . . . 13 (𝑅 ⊆ (𝐴 × 𝐵) → (𝑅𝑥) ⊆ ((𝐴 × 𝐵) “ 𝑥))
13 xpima 6074 . . . . . . . . . . . . . 14 ((𝐴 × 𝐵) “ 𝑥) = if((𝐴𝑥) = ∅, ∅, 𝐵)
14 simpr 484 . . . . . . . . . . . . . . . . . 18 (((𝐴𝑥) = ∅ ∧ 𝑢 ∈ ∅) → 𝑢 ∈ ∅)
15 simpr 484 . . . . . . . . . . . . . . . . . 18 ((¬ (𝐴𝑥) = ∅ ∧ 𝑢𝐵) → 𝑢𝐵)
1614, 15orim12i 905 . . . . . . . . . . . . . . . . 17 ((((𝐴𝑥) = ∅ ∧ 𝑢 ∈ ∅) ∨ (¬ (𝐴𝑥) = ∅ ∧ 𝑢𝐵)) → (𝑢 ∈ ∅ ∨ 𝑢𝐵))
17 elif 4499 . . . . . . . . . . . . . . . . 17 (𝑢 ∈ if((𝐴𝑥) = ∅, ∅, 𝐵) ↔ (((𝐴𝑥) = ∅ ∧ 𝑢 ∈ ∅) ∨ (¬ (𝐴𝑥) = ∅ ∧ 𝑢𝐵)))
18 elun 4079 . . . . . . . . . . . . . . . . 17 (𝑢 ∈ (∅ ∪ 𝐵) ↔ (𝑢 ∈ ∅ ∨ 𝑢𝐵))
1916, 17, 183imtr4i 291 . . . . . . . . . . . . . . . 16 (𝑢 ∈ if((𝐴𝑥) = ∅, ∅, 𝐵) → 𝑢 ∈ (∅ ∪ 𝐵))
2019ssriv 3921 . . . . . . . . . . . . . . 15 if((𝐴𝑥) = ∅, ∅, 𝐵) ⊆ (∅ ∪ 𝐵)
21 0ss 4327 . . . . . . . . . . . . . . . 16 ∅ ⊆ 𝐵
22 ssid 3939 . . . . . . . . . . . . . . . 16 𝐵𝐵
2321, 22unssi 4115 . . . . . . . . . . . . . . 15 (∅ ∪ 𝐵) ⊆ 𝐵
2420, 23sstri 3926 . . . . . . . . . . . . . 14 if((𝐴𝑥) = ∅, ∅, 𝐵) ⊆ 𝐵
2513, 24eqsstri 3951 . . . . . . . . . . . . 13 ((𝐴 × 𝐵) “ 𝑥) ⊆ 𝐵
2612, 25sstrdi 3929 . . . . . . . . . . . 12 (𝑅 ⊆ (𝐴 × 𝐵) → (𝑅𝑥) ⊆ 𝐵)
278, 26syl 17 . . . . . . . . . . 11 (𝜑 → (𝑅𝑥) ⊆ 𝐵)
28 eqidd 2739 . . . . . . . . . . 11 (𝜑 → (𝑅𝑥) = (𝑅𝑥))
2927, 28jca 511 . . . . . . . . . 10 (𝜑 → ((𝑅𝑥) ⊆ 𝐵 ∧ (𝑅𝑥) = (𝑅𝑥)))
30 sseq1 3942 . . . . . . . . . . 11 (𝑦 = (𝑅𝑥) → (𝑦𝐵 ↔ (𝑅𝑥) ⊆ 𝐵))
31 eqeq2 2750 . . . . . . . . . . 11 (𝑦 = (𝑅𝑥) → ((𝑅𝑥) = 𝑦 ↔ (𝑅𝑥) = (𝑅𝑥)))
3230, 31anbi12d 630 . . . . . . . . . 10 (𝑦 = (𝑅𝑥) → ((𝑦𝐵 ∧ (𝑅𝑥) = 𝑦) ↔ ((𝑅𝑥) ⊆ 𝐵 ∧ (𝑅𝑥) = (𝑅𝑥))))
3311, 29, 32spcedv 3527 . . . . . . . . 9 (𝜑 → ∃𝑦(𝑦𝐵 ∧ (𝑅𝑥) = 𝑦))
3433biantrurd 532 . . . . . . . 8 (𝜑 → ((𝑆 “ (𝑅𝑥)) = 𝑧 ↔ (∃𝑦(𝑦𝐵 ∧ (𝑅𝑥) = 𝑦) ∧ (𝑆 “ (𝑅𝑥)) = 𝑧)))
35 19.41v 1954 . . . . . . . . 9 (∃𝑦((𝑦𝐵 ∧ (𝑅𝑥) = 𝑦) ∧ (𝑆 “ (𝑅𝑥)) = 𝑧) ↔ (∃𝑦(𝑦𝐵 ∧ (𝑅𝑥) = 𝑦) ∧ (𝑆 “ (𝑅𝑥)) = 𝑧))
36 anass 468 . . . . . . . . . 10 (((𝑦𝐵 ∧ (𝑅𝑥) = 𝑦) ∧ (𝑆 “ (𝑅𝑥)) = 𝑧) ↔ (𝑦𝐵 ∧ ((𝑅𝑥) = 𝑦 ∧ (𝑆 “ (𝑅𝑥)) = 𝑧)))
3736exbii 1851 . . . . . . . . 9 (∃𝑦((𝑦𝐵 ∧ (𝑅𝑥) = 𝑦) ∧ (𝑆 “ (𝑅𝑥)) = 𝑧) ↔ ∃𝑦(𝑦𝐵 ∧ ((𝑅𝑥) = 𝑦 ∧ (𝑆 “ (𝑅𝑥)) = 𝑧)))
3835, 37bitr3i 276 . . . . . . . 8 ((∃𝑦(𝑦𝐵 ∧ (𝑅𝑥) = 𝑦) ∧ (𝑆 “ (𝑅𝑥)) = 𝑧) ↔ ∃𝑦(𝑦𝐵 ∧ ((𝑅𝑥) = 𝑦 ∧ (𝑆 “ (𝑅𝑥)) = 𝑧)))
3934, 38bitrdi 286 . . . . . . 7 (𝜑 → ((𝑆 “ (𝑅𝑥)) = 𝑧 ↔ ∃𝑦(𝑦𝐵 ∧ ((𝑅𝑥) = 𝑦 ∧ (𝑆 “ (𝑅𝑥)) = 𝑧))))
40 imaeq2 5954 . . . . . . . . . . . . 13 ((𝑅𝑥) = 𝑦 → (𝑆 “ (𝑅𝑥)) = (𝑆𝑦))
4140eqeq1d 2740 . . . . . . . . . . . 12 ((𝑅𝑥) = 𝑦 → ((𝑆 “ (𝑅𝑥)) = 𝑧 ↔ (𝑆𝑦) = 𝑧))
4241pm5.32i 574 . . . . . . . . . . 11 (((𝑅𝑥) = 𝑦 ∧ (𝑆 “ (𝑅𝑥)) = 𝑧) ↔ ((𝑅𝑥) = 𝑦 ∧ (𝑆𝑦) = 𝑧))
4342bianass 638 . . . . . . . . . 10 ((𝑦𝐵 ∧ ((𝑅𝑥) = 𝑦 ∧ (𝑆 “ (𝑅𝑥)) = 𝑧)) ↔ ((𝑦𝐵 ∧ (𝑅𝑥) = 𝑦) ∧ (𝑆𝑦) = 𝑧))
4443biancomi 462 . . . . . . . . 9 ((𝑦𝐵 ∧ ((𝑅𝑥) = 𝑦 ∧ (𝑆 “ (𝑅𝑥)) = 𝑧)) ↔ ((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦)))
4544exbii 1851 . . . . . . . 8 (∃𝑦(𝑦𝐵 ∧ ((𝑅𝑥) = 𝑦 ∧ (𝑆 “ (𝑅𝑥)) = 𝑧)) ↔ ∃𝑦((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦)))
4645a1i 11 . . . . . . 7 (𝜑 → (∃𝑦(𝑦𝐵 ∧ ((𝑅𝑥) = 𝑦 ∧ (𝑆 “ (𝑅𝑥)) = 𝑧)) ↔ ∃𝑦((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦))))
47 pm4.24 563 . . . . . . . . . . . . 13 (𝑦𝐵 ↔ (𝑦𝐵𝑦𝐵))
4847anbi1i 623 . . . . . . . . . . . 12 ((𝑦𝐵 ∧ (𝑅𝑥) = 𝑦) ↔ ((𝑦𝐵𝑦𝐵) ∧ (𝑅𝑥) = 𝑦))
49 anass 468 . . . . . . . . . . . 12 (((𝑦𝐵𝑦𝐵) ∧ (𝑅𝑥) = 𝑦) ↔ (𝑦𝐵 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦)))
5048, 49bitri 274 . . . . . . . . . . 11 ((𝑦𝐵 ∧ (𝑅𝑥) = 𝑦) ↔ (𝑦𝐵 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦)))
5150anbi2i 622 . . . . . . . . . 10 (((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦)) ↔ ((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦))))
52 an12 641 . . . . . . . . . 10 (((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦))) ↔ (𝑦𝐵 ∧ ((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦))))
5351, 52bitri 274 . . . . . . . . 9 (((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦)) ↔ (𝑦𝐵 ∧ ((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦))))
5453exbii 1851 . . . . . . . 8 (∃𝑦((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦)) ↔ ∃𝑦(𝑦𝐵 ∧ ((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦))))
5554a1i 11 . . . . . . 7 (𝜑 → (∃𝑦((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦)) ↔ ∃𝑦(𝑦𝐵 ∧ ((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦)))))
5639, 46, 553bitrd 304 . . . . . 6 (𝜑 → ((𝑆 “ (𝑅𝑥)) = 𝑧 ↔ ∃𝑦(𝑦𝐵 ∧ ((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦)))))
5756anbi2d 628 . . . . 5 (𝜑 → (((𝑥𝐴𝑧𝐶) ∧ (𝑆 “ (𝑅𝑥)) = 𝑧) ↔ ((𝑥𝐴𝑧𝐶) ∧ ∃𝑦(𝑦𝐵 ∧ ((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦))))))
58 19.42v 1958 . . . . . . 7 (∃𝑦((𝑥𝐴𝑧𝐶) ∧ (𝑦𝐵 ∧ ((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦)))) ↔ ((𝑥𝐴𝑧𝐶) ∧ ∃𝑦(𝑦𝐵 ∧ ((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦)))))
59 anass 468 . . . . . . . . 9 (((𝑥𝐴𝑧𝐶) ∧ (𝑦𝐵 ∧ ((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦)))) ↔ (𝑥𝐴 ∧ (𝑧𝐶 ∧ (𝑦𝐵 ∧ ((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦))))))
60 ancom 460 . . . . . . . . . . 11 ((((𝑅𝑥) = 𝑦 ∧ ((𝑦𝐵𝑧𝐶) ∧ (𝑆𝑦) = 𝑧)) ∧ 𝑦𝐵) ↔ (𝑦𝐵 ∧ ((𝑅𝑥) = 𝑦 ∧ ((𝑦𝐵𝑧𝐶) ∧ (𝑆𝑦) = 𝑧))))
6160bianass 638 . . . . . . . . . 10 ((𝑥𝐴 ∧ (((𝑅𝑥) = 𝑦 ∧ ((𝑦𝐵𝑧𝐶) ∧ (𝑆𝑦) = 𝑧)) ∧ 𝑦𝐵)) ↔ ((𝑥𝐴𝑦𝐵) ∧ ((𝑅𝑥) = 𝑦 ∧ ((𝑦𝐵𝑧𝐶) ∧ (𝑆𝑦) = 𝑧))))
62 ancom 460 . . . . . . . . . . . 12 (((((𝑦𝐵𝑧𝐶) ∧ (𝑆𝑦) = 𝑧) ∧ 𝑦𝐵) ∧ (𝑅𝑥) = 𝑦) ↔ ((𝑅𝑥) = 𝑦 ∧ (((𝑦𝐵𝑧𝐶) ∧ (𝑆𝑦) = 𝑧) ∧ 𝑦𝐵)))
63 ancom 460 . . . . . . . . . . . . . . 15 ((𝑧𝐶𝑦𝐵) ↔ (𝑦𝐵𝑧𝐶))
6463anbi1i 623 . . . . . . . . . . . . . 14 (((𝑧𝐶𝑦𝐵) ∧ (𝑆𝑦) = 𝑧) ↔ ((𝑦𝐵𝑧𝐶) ∧ (𝑆𝑦) = 𝑧))
6564anbi1i 623 . . . . . . . . . . . . 13 ((((𝑧𝐶𝑦𝐵) ∧ (𝑆𝑦) = 𝑧) ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦)) ↔ (((𝑦𝐵𝑧𝐶) ∧ (𝑆𝑦) = 𝑧) ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦)))
66 biid 260 . . . . . . . . . . . . . . 15 ((𝑦𝐵 ∧ ((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦))) ↔ (𝑦𝐵 ∧ ((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦))))
6766bianass 638 . . . . . . . . . . . . . 14 ((𝑧𝐶 ∧ (𝑦𝐵 ∧ ((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦)))) ↔ ((𝑧𝐶𝑦𝐵) ∧ ((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦))))
68 anass 468 . . . . . . . . . . . . . 14 ((((𝑧𝐶𝑦𝐵) ∧ (𝑆𝑦) = 𝑧) ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦)) ↔ ((𝑧𝐶𝑦𝐵) ∧ ((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦))))
6967, 68bitr4i 277 . . . . . . . . . . . . 13 ((𝑧𝐶 ∧ (𝑦𝐵 ∧ ((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦)))) ↔ (((𝑧𝐶𝑦𝐵) ∧ (𝑆𝑦) = 𝑧) ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦)))
70 anass 468 . . . . . . . . . . . . 13 (((((𝑦𝐵𝑧𝐶) ∧ (𝑆𝑦) = 𝑧) ∧ 𝑦𝐵) ∧ (𝑅𝑥) = 𝑦) ↔ (((𝑦𝐵𝑧𝐶) ∧ (𝑆𝑦) = 𝑧) ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦)))
7165, 69, 703bitr4i 302 . . . . . . . . . . . 12 ((𝑧𝐶 ∧ (𝑦𝐵 ∧ ((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦)))) ↔ ((((𝑦𝐵𝑧𝐶) ∧ (𝑆𝑦) = 𝑧) ∧ 𝑦𝐵) ∧ (𝑅𝑥) = 𝑦))
72 anass 468 . . . . . . . . . . . 12 ((((𝑅𝑥) = 𝑦 ∧ ((𝑦𝐵𝑧𝐶) ∧ (𝑆𝑦) = 𝑧)) ∧ 𝑦𝐵) ↔ ((𝑅𝑥) = 𝑦 ∧ (((𝑦𝐵𝑧𝐶) ∧ (𝑆𝑦) = 𝑧) ∧ 𝑦𝐵)))
7362, 71, 723bitr4i 302 . . . . . . . . . . 11 ((𝑧𝐶 ∧ (𝑦𝐵 ∧ ((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦)))) ↔ (((𝑅𝑥) = 𝑦 ∧ ((𝑦𝐵𝑧𝐶) ∧ (𝑆𝑦) = 𝑧)) ∧ 𝑦𝐵))
7473anbi2i 622 . . . . . . . . . 10 ((𝑥𝐴 ∧ (𝑧𝐶 ∧ (𝑦𝐵 ∧ ((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦))))) ↔ (𝑥𝐴 ∧ (((𝑅𝑥) = 𝑦 ∧ ((𝑦𝐵𝑧𝐶) ∧ (𝑆𝑦) = 𝑧)) ∧ 𝑦𝐵)))
75 anass 468 . . . . . . . . . 10 ((((𝑥𝐴𝑦𝐵) ∧ (𝑅𝑥) = 𝑦) ∧ ((𝑦𝐵𝑧𝐶) ∧ (𝑆𝑦) = 𝑧)) ↔ ((𝑥𝐴𝑦𝐵) ∧ ((𝑅𝑥) = 𝑦 ∧ ((𝑦𝐵𝑧𝐶) ∧ (𝑆𝑦) = 𝑧))))
7661, 74, 753bitr4i 302 . . . . . . . . 9 ((𝑥𝐴 ∧ (𝑧𝐶 ∧ (𝑦𝐵 ∧ ((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦))))) ↔ (((𝑥𝐴𝑦𝐵) ∧ (𝑅𝑥) = 𝑦) ∧ ((𝑦𝐵𝑧𝐶) ∧ (𝑆𝑦) = 𝑧)))
7759, 76bitri 274 . . . . . . . 8 (((𝑥𝐴𝑧𝐶) ∧ (𝑦𝐵 ∧ ((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦)))) ↔ (((𝑥𝐴𝑦𝐵) ∧ (𝑅𝑥) = 𝑦) ∧ ((𝑦𝐵𝑧𝐶) ∧ (𝑆𝑦) = 𝑧)))
7877exbii 1851 . . . . . . 7 (∃𝑦((𝑥𝐴𝑧𝐶) ∧ (𝑦𝐵 ∧ ((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦)))) ↔ ∃𝑦(((𝑥𝐴𝑦𝐵) ∧ (𝑅𝑥) = 𝑦) ∧ ((𝑦𝐵𝑧𝐶) ∧ (𝑆𝑦) = 𝑧)))
7958, 78bitr3i 276 . . . . . 6 (((𝑥𝐴𝑧𝐶) ∧ ∃𝑦(𝑦𝐵 ∧ ((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦)))) ↔ ∃𝑦(((𝑥𝐴𝑦𝐵) ∧ (𝑅𝑥) = 𝑦) ∧ ((𝑦𝐵𝑧𝐶) ∧ (𝑆𝑦) = 𝑧)))
8079a1i 11 . . . . 5 (𝜑 → (((𝑥𝐴𝑧𝐶) ∧ ∃𝑦(𝑦𝐵 ∧ ((𝑆𝑦) = 𝑧 ∧ (𝑦𝐵 ∧ (𝑅𝑥) = 𝑦)))) ↔ ∃𝑦(((𝑥𝐴𝑦𝐵) ∧ (𝑅𝑥) = 𝑦) ∧ ((𝑦𝐵𝑧𝐶) ∧ (𝑆𝑦) = 𝑧))))
814, 57, 803bitrd 304 . . . 4 (𝜑 → (((𝑥𝐴𝑧𝐶) ∧ ((𝑆𝑅) “ 𝑥) = 𝑧) ↔ ∃𝑦(((𝑥𝐴𝑦𝐵) ∧ (𝑅𝑥) = 𝑦) ∧ ((𝑦𝐵𝑧𝐶) ∧ (𝑆𝑦) = 𝑧))))
8281opabbidv 5136 . . 3 (𝜑 → {⟨𝑥, 𝑧⟩ ∣ ((𝑥𝐴𝑧𝐶) ∧ ((𝑆𝑅) “ 𝑥) = 𝑧)} = {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(((𝑥𝐴𝑦𝐵) ∧ (𝑅𝑥) = 𝑦) ∧ ((𝑦𝐵𝑧𝐶) ∧ (𝑆𝑦) = 𝑧))})
83 bj-opabco 35286 . . 3 ({⟨𝑦, 𝑧⟩ ∣ ((𝑦𝐵𝑧𝐶) ∧ (𝑆𝑦) = 𝑧)} ∘ {⟨𝑥, 𝑦⟩ ∣ ((𝑥𝐴𝑦𝐵) ∧ (𝑅𝑥) = 𝑦)}) = {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(((𝑥𝐴𝑦𝐵) ∧ (𝑅𝑥) = 𝑦) ∧ ((𝑦𝐵𝑧𝐶) ∧ (𝑆𝑦) = 𝑧))}
8482, 83eqtr4di 2797 . 2 (𝜑 → {⟨𝑥, 𝑧⟩ ∣ ((𝑥𝐴𝑧𝐶) ∧ ((𝑆𝑅) “ 𝑥) = 𝑧)} = ({⟨𝑦, 𝑧⟩ ∣ ((𝑦𝐵𝑧𝐶) ∧ (𝑆𝑦) = 𝑧)} ∘ {⟨𝑥, 𝑦⟩ ∣ ((𝑥𝐴𝑦𝐵) ∧ (𝑅𝑥) = 𝑦)}))
85 bj-imdirco.exc . . 3 (𝜑𝐶𝑊)
86 bj-imdirco.arg2 . . . . 5 (𝜑𝑆 ⊆ (𝐵 × 𝐶))
8786, 8coss12d 14611 . . . 4 (𝜑 → (𝑆𝑅) ⊆ ((𝐵 × 𝐶) ∘ (𝐴 × 𝐵)))
88 bj-xpcossxp 35287 . . . 4 ((𝐵 × 𝐶) ∘ (𝐴 × 𝐵)) ⊆ (𝐴 × 𝐶)
8987, 88sstrdi 3929 . . 3 (𝜑 → (𝑆𝑅) ⊆ (𝐴 × 𝐶))
905, 85, 89bj-imdirval2 35281 . 2 (𝜑 → ((𝐴𝒫*𝐶)‘(𝑆𝑅)) = {⟨𝑥, 𝑧⟩ ∣ ((𝑥𝐴𝑧𝐶) ∧ ((𝑆𝑅) “ 𝑥) = 𝑧)})
916, 85, 86bj-imdirval2 35281 . . 3 (𝜑 → ((𝐵𝒫*𝐶)‘𝑆) = {⟨𝑦, 𝑧⟩ ∣ ((𝑦𝐵𝑧𝐶) ∧ (𝑆𝑦) = 𝑧)})
925, 6, 8bj-imdirval2 35281 . . 3 (𝜑 → ((𝐴𝒫*𝐵)‘𝑅) = {⟨𝑥, 𝑦⟩ ∣ ((𝑥𝐴𝑦𝐵) ∧ (𝑅𝑥) = 𝑦)})
9391, 92coeq12d 5762 . 2 (𝜑 → (((𝐵𝒫*𝐶)‘𝑆) ∘ ((𝐴𝒫*𝐵)‘𝑅)) = ({⟨𝑦, 𝑧⟩ ∣ ((𝑦𝐵𝑧𝐶) ∧ (𝑆𝑦) = 𝑧)} ∘ {⟨𝑥, 𝑦⟩ ∣ ((𝑥𝐴𝑦𝐵) ∧ (𝑅𝑥) = 𝑦)}))
9484, 90, 933eqtr4d 2788 1 (𝜑 → ((𝐴𝒫*𝐶)‘(𝑆𝑅)) = (((𝐵𝒫*𝐶)‘𝑆) ∘ ((𝐴𝒫*𝐵)‘𝑅)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  wo 843   = wceq 1539  wex 1783  wcel 2108  Vcvv 3422  cun 3881  cin 3882  wss 3883  c0 4253  ifcif 4456  {copab 5132   × cxp 5578  cima 5583  ccom 5584  cfv 6418  (class class class)co 7255  𝒫*cimdir 35276
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-reu 3070  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-ov 7258  df-oprab 7259  df-mpo 7260  df-imdir 35277
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator