Proof of Theorem ofpreima2
Step | Hyp | Ref
| Expression |
1 | | ofpreima.1 |
. . . 4
⊢ (𝜑 → 𝐹:𝐴⟶𝐵) |
2 | | ofpreima.2 |
. . . 4
⊢ (𝜑 → 𝐺:𝐴⟶𝐶) |
3 | | ofpreima.3 |
. . . 4
⊢ (𝜑 → 𝐴 ∈ 𝑉) |
4 | | ofpreima.4 |
. . . 4
⊢ (𝜑 → 𝑅 Fn (𝐵 × 𝐶)) |
5 | 1, 2, 3, 4 | ofpreima 30904 |
. . 3
⊢ (𝜑 → (◡(𝐹 ∘f 𝑅𝐺) “ 𝐷) = ∪
𝑝 ∈ (◡𝑅 “ 𝐷)((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)}))) |
6 | | inundif 4409 |
. . . . 5
⊢ (((◡𝑅 “ 𝐷) ∩ (ran 𝐹 × ran 𝐺)) ∪ ((◡𝑅 “ 𝐷) ∖ (ran 𝐹 × ran 𝐺))) = (◡𝑅 “ 𝐷) |
7 | | iuneq1 4937 |
. . . . 5
⊢ ((((◡𝑅 “ 𝐷) ∩ (ran 𝐹 × ran 𝐺)) ∪ ((◡𝑅 “ 𝐷) ∖ (ran 𝐹 × ran 𝐺))) = (◡𝑅 “ 𝐷) → ∪
𝑝 ∈ (((◡𝑅 “ 𝐷) ∩ (ran 𝐹 × ran 𝐺)) ∪ ((◡𝑅 “ 𝐷) ∖ (ran 𝐹 × ran 𝐺)))((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)})) = ∪ 𝑝 ∈ (◡𝑅 “ 𝐷)((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)}))) |
8 | 6, 7 | ax-mp 5 |
. . . 4
⊢ ∪ 𝑝 ∈ (((◡𝑅 “ 𝐷) ∩ (ran 𝐹 × ran 𝐺)) ∪ ((◡𝑅 “ 𝐷) ∖ (ran 𝐹 × ran 𝐺)))((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)})) = ∪ 𝑝 ∈ (◡𝑅 “ 𝐷)((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)})) |
9 | | iunxun 5019 |
. . . 4
⊢ ∪ 𝑝 ∈ (((◡𝑅 “ 𝐷) ∩ (ran 𝐹 × ran 𝐺)) ∪ ((◡𝑅 “ 𝐷) ∖ (ran 𝐹 × ran 𝐺)))((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)})) = (∪ 𝑝 ∈ ((◡𝑅 “ 𝐷) ∩ (ran 𝐹 × ran 𝐺))((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)})) ∪ ∪ 𝑝 ∈ ((◡𝑅 “ 𝐷) ∖ (ran 𝐹 × ran 𝐺))((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)}))) |
10 | 8, 9 | eqtr3i 2768 |
. . 3
⊢ ∪ 𝑝 ∈ (◡𝑅 “ 𝐷)((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)})) = (∪ 𝑝 ∈ ((◡𝑅 “ 𝐷) ∩ (ran 𝐹 × ran 𝐺))((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)})) ∪ ∪ 𝑝 ∈ ((◡𝑅 “ 𝐷) ∖ (ran 𝐹 × ran 𝐺))((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)}))) |
11 | 5, 10 | eqtrdi 2795 |
. 2
⊢ (𝜑 → (◡(𝐹 ∘f 𝑅𝐺) “ 𝐷) = (∪
𝑝 ∈ ((◡𝑅 “ 𝐷) ∩ (ran 𝐹 × ran 𝐺))((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)})) ∪ ∪ 𝑝 ∈ ((◡𝑅 “ 𝐷) ∖ (ran 𝐹 × ran 𝐺))((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)})))) |
12 | | simpr 484 |
. . . . . . . . . . 11
⊢ ((𝜑 ∧ 𝑝 ∈ ((◡𝑅 “ 𝐷) ∖ (ran 𝐹 × ran 𝐺))) → 𝑝 ∈ ((◡𝑅 “ 𝐷) ∖ (ran 𝐹 × ran 𝐺))) |
13 | 12 | eldifbd 3896 |
. . . . . . . . . 10
⊢ ((𝜑 ∧ 𝑝 ∈ ((◡𝑅 “ 𝐷) ∖ (ran 𝐹 × ran 𝐺))) → ¬ 𝑝 ∈ (ran 𝐹 × ran 𝐺)) |
14 | | cnvimass 5978 |
. . . . . . . . . . . . . 14
⊢ (◡𝑅 “ 𝐷) ⊆ dom 𝑅 |
15 | 4 | fndmd 6522 |
. . . . . . . . . . . . . 14
⊢ (𝜑 → dom 𝑅 = (𝐵 × 𝐶)) |
16 | 14, 15 | sseqtrid 3969 |
. . . . . . . . . . . . 13
⊢ (𝜑 → (◡𝑅 “ 𝐷) ⊆ (𝐵 × 𝐶)) |
17 | 16 | ssdifssd 4073 |
. . . . . . . . . . . 12
⊢ (𝜑 → ((◡𝑅 “ 𝐷) ∖ (ran 𝐹 × ran 𝐺)) ⊆ (𝐵 × 𝐶)) |
18 | 17 | sselda 3917 |
. . . . . . . . . . 11
⊢ ((𝜑 ∧ 𝑝 ∈ ((◡𝑅 “ 𝐷) ∖ (ran 𝐹 × ran 𝐺))) → 𝑝 ∈ (𝐵 × 𝐶)) |
19 | | 1st2nd2 7843 |
. . . . . . . . . . 11
⊢ (𝑝 ∈ (𝐵 × 𝐶) → 𝑝 = 〈(1st ‘𝑝), (2nd ‘𝑝)〉) |
20 | | elxp6 7838 |
. . . . . . . . . . . 12
⊢ (𝑝 ∈ (ran 𝐹 × ran 𝐺) ↔ (𝑝 = 〈(1st ‘𝑝), (2nd ‘𝑝)〉 ∧ ((1st
‘𝑝) ∈ ran 𝐹 ∧ (2nd
‘𝑝) ∈ ran 𝐺))) |
21 | 20 | simplbi2 500 |
. . . . . . . . . . 11
⊢ (𝑝 = 〈(1st
‘𝑝), (2nd
‘𝑝)〉 →
(((1st ‘𝑝)
∈ ran 𝐹 ∧
(2nd ‘𝑝)
∈ ran 𝐺) → 𝑝 ∈ (ran 𝐹 × ran 𝐺))) |
22 | 18, 19, 21 | 3syl 18 |
. . . . . . . . . 10
⊢ ((𝜑 ∧ 𝑝 ∈ ((◡𝑅 “ 𝐷) ∖ (ran 𝐹 × ran 𝐺))) → (((1st ‘𝑝) ∈ ran 𝐹 ∧ (2nd ‘𝑝) ∈ ran 𝐺) → 𝑝 ∈ (ran 𝐹 × ran 𝐺))) |
23 | 13, 22 | mtod 197 |
. . . . . . . . 9
⊢ ((𝜑 ∧ 𝑝 ∈ ((◡𝑅 “ 𝐷) ∖ (ran 𝐹 × ran 𝐺))) → ¬ ((1st
‘𝑝) ∈ ran 𝐹 ∧ (2nd
‘𝑝) ∈ ran 𝐺)) |
24 | | ianor 978 |
. . . . . . . . 9
⊢ (¬
((1st ‘𝑝)
∈ ran 𝐹 ∧
(2nd ‘𝑝)
∈ ran 𝐺) ↔ (¬
(1st ‘𝑝)
∈ ran 𝐹 ∨ ¬
(2nd ‘𝑝)
∈ ran 𝐺)) |
25 | 23, 24 | sylib 217 |
. . . . . . . 8
⊢ ((𝜑 ∧ 𝑝 ∈ ((◡𝑅 “ 𝐷) ∖ (ran 𝐹 × ran 𝐺))) → (¬ (1st
‘𝑝) ∈ ran 𝐹 ∨ ¬ (2nd
‘𝑝) ∈ ran 𝐺)) |
26 | | disjsn 4644 |
. . . . . . . . 9
⊢ ((ran
𝐹 ∩ {(1st
‘𝑝)}) = ∅
↔ ¬ (1st ‘𝑝) ∈ ran 𝐹) |
27 | | disjsn 4644 |
. . . . . . . . 9
⊢ ((ran
𝐺 ∩ {(2nd
‘𝑝)}) = ∅
↔ ¬ (2nd ‘𝑝) ∈ ran 𝐺) |
28 | 26, 27 | orbi12i 911 |
. . . . . . . 8
⊢ (((ran
𝐹 ∩ {(1st
‘𝑝)}) = ∅ ∨
(ran 𝐺 ∩
{(2nd ‘𝑝)}) = ∅) ↔ (¬ (1st
‘𝑝) ∈ ran 𝐹 ∨ ¬ (2nd
‘𝑝) ∈ ran 𝐺)) |
29 | 25, 28 | sylibr 233 |
. . . . . . 7
⊢ ((𝜑 ∧ 𝑝 ∈ ((◡𝑅 “ 𝐷) ∖ (ran 𝐹 × ran 𝐺))) → ((ran 𝐹 ∩ {(1st ‘𝑝)}) = ∅ ∨ (ran 𝐺 ∩ {(2nd
‘𝑝)}) =
∅)) |
30 | 1 | ffnd 6585 |
. . . . . . . . 9
⊢ (𝜑 → 𝐹 Fn 𝐴) |
31 | | dffn3 6597 |
. . . . . . . . 9
⊢ (𝐹 Fn 𝐴 ↔ 𝐹:𝐴⟶ran 𝐹) |
32 | 30, 31 | sylib 217 |
. . . . . . . 8
⊢ (𝜑 → 𝐹:𝐴⟶ran 𝐹) |
33 | 2 | ffnd 6585 |
. . . . . . . . . 10
⊢ (𝜑 → 𝐺 Fn 𝐴) |
34 | | dffn3 6597 |
. . . . . . . . . 10
⊢ (𝐺 Fn 𝐴 ↔ 𝐺:𝐴⟶ran 𝐺) |
35 | 33, 34 | sylib 217 |
. . . . . . . . 9
⊢ (𝜑 → 𝐺:𝐴⟶ran 𝐺) |
36 | 35 | adantr 480 |
. . . . . . . 8
⊢ ((𝜑 ∧ 𝑝 ∈ ((◡𝑅 “ 𝐷) ∖ (ran 𝐹 × ran 𝐺))) → 𝐺:𝐴⟶ran 𝐺) |
37 | | fimacnvdisj 6636 |
. . . . . . . . . . 11
⊢ ((𝐹:𝐴⟶ran 𝐹 ∧ (ran 𝐹 ∩ {(1st ‘𝑝)}) = ∅) → (◡𝐹 “ {(1st ‘𝑝)}) = ∅) |
38 | | ineq1 4136 |
. . . . . . . . . . . 12
⊢ ((◡𝐹 “ {(1st ‘𝑝)}) = ∅ → ((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)})) = (∅ ∩ (◡𝐺 “ {(2nd ‘𝑝)}))) |
39 | | 0in 4324 |
. . . . . . . . . . . 12
⊢ (∅
∩ (◡𝐺 “ {(2nd ‘𝑝)})) = ∅ |
40 | 38, 39 | eqtrdi 2795 |
. . . . . . . . . . 11
⊢ ((◡𝐹 “ {(1st ‘𝑝)}) = ∅ → ((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)})) = ∅) |
41 | 37, 40 | syl 17 |
. . . . . . . . . 10
⊢ ((𝐹:𝐴⟶ran 𝐹 ∧ (ran 𝐹 ∩ {(1st ‘𝑝)}) = ∅) → ((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)})) = ∅) |
42 | 41 | ex 412 |
. . . . . . . . 9
⊢ (𝐹:𝐴⟶ran 𝐹 → ((ran 𝐹 ∩ {(1st ‘𝑝)}) = ∅ → ((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)})) =
∅)) |
43 | | fimacnvdisj 6636 |
. . . . . . . . . . 11
⊢ ((𝐺:𝐴⟶ran 𝐺 ∧ (ran 𝐺 ∩ {(2nd ‘𝑝)}) = ∅) → (◡𝐺 “ {(2nd ‘𝑝)}) = ∅) |
44 | | ineq2 4137 |
. . . . . . . . . . . 12
⊢ ((◡𝐺 “ {(2nd ‘𝑝)}) = ∅ → ((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)})) = ((◡𝐹 “ {(1st ‘𝑝)}) ∩
∅)) |
45 | | in0 4322 |
. . . . . . . . . . . 12
⊢ ((◡𝐹 “ {(1st ‘𝑝)}) ∩ ∅) =
∅ |
46 | 44, 45 | eqtrdi 2795 |
. . . . . . . . . . 11
⊢ ((◡𝐺 “ {(2nd ‘𝑝)}) = ∅ → ((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)})) = ∅) |
47 | 43, 46 | syl 17 |
. . . . . . . . . 10
⊢ ((𝐺:𝐴⟶ran 𝐺 ∧ (ran 𝐺 ∩ {(2nd ‘𝑝)}) = ∅) → ((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)})) = ∅) |
48 | 47 | ex 412 |
. . . . . . . . 9
⊢ (𝐺:𝐴⟶ran 𝐺 → ((ran 𝐺 ∩ {(2nd ‘𝑝)}) = ∅ → ((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)})) =
∅)) |
49 | 42, 48 | jaao 951 |
. . . . . . . 8
⊢ ((𝐹:𝐴⟶ran 𝐹 ∧ 𝐺:𝐴⟶ran 𝐺) → (((ran 𝐹 ∩ {(1st ‘𝑝)}) = ∅ ∨ (ran 𝐺 ∩ {(2nd
‘𝑝)}) = ∅)
→ ((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)})) =
∅)) |
50 | 32, 36, 49 | syl2an2r 681 |
. . . . . . 7
⊢ ((𝜑 ∧ 𝑝 ∈ ((◡𝑅 “ 𝐷) ∖ (ran 𝐹 × ran 𝐺))) → (((ran 𝐹 ∩ {(1st ‘𝑝)}) = ∅ ∨ (ran 𝐺 ∩ {(2nd
‘𝑝)}) = ∅)
→ ((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)})) =
∅)) |
51 | 29, 50 | mpd 15 |
. . . . . 6
⊢ ((𝜑 ∧ 𝑝 ∈ ((◡𝑅 “ 𝐷) ∖ (ran 𝐹 × ran 𝐺))) → ((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)})) = ∅) |
52 | 51 | iuneq2dv 4945 |
. . . . 5
⊢ (𝜑 → ∪ 𝑝 ∈ ((◡𝑅 “ 𝐷) ∖ (ran 𝐹 × ran 𝐺))((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)})) = ∪ 𝑝 ∈ ((◡𝑅 “ 𝐷) ∖ (ran 𝐹 × ran 𝐺))∅) |
53 | | iun0 4987 |
. . . . 5
⊢ ∪ 𝑝 ∈ ((◡𝑅 “ 𝐷) ∖ (ran 𝐹 × ran 𝐺))∅ = ∅ |
54 | 52, 53 | eqtrdi 2795 |
. . . 4
⊢ (𝜑 → ∪ 𝑝 ∈ ((◡𝑅 “ 𝐷) ∖ (ran 𝐹 × ran 𝐺))((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)})) = ∅) |
55 | 54 | uneq2d 4093 |
. . 3
⊢ (𝜑 → (∪ 𝑝 ∈ ((◡𝑅 “ 𝐷) ∩ (ran 𝐹 × ran 𝐺))((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)})) ∪ ∪ 𝑝 ∈ ((◡𝑅 “ 𝐷) ∖ (ran 𝐹 × ran 𝐺))((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)}))) = (∪ 𝑝 ∈ ((◡𝑅 “ 𝐷) ∩ (ran 𝐹 × ran 𝐺))((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)})) ∪
∅)) |
56 | | un0 4321 |
. . 3
⊢ (∪ 𝑝 ∈ ((◡𝑅 “ 𝐷) ∩ (ran 𝐹 × ran 𝐺))((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)})) ∪ ∅) = ∪ 𝑝 ∈ ((◡𝑅 “ 𝐷) ∩ (ran 𝐹 × ran 𝐺))((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)})) |
57 | 55, 56 | eqtrdi 2795 |
. 2
⊢ (𝜑 → (∪ 𝑝 ∈ ((◡𝑅 “ 𝐷) ∩ (ran 𝐹 × ran 𝐺))((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)})) ∪ ∪ 𝑝 ∈ ((◡𝑅 “ 𝐷) ∖ (ran 𝐹 × ran 𝐺))((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)}))) = ∪ 𝑝 ∈ ((◡𝑅 “ 𝐷) ∩ (ran 𝐹 × ran 𝐺))((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)}))) |
58 | 11, 57 | eqtrd 2778 |
1
⊢ (𝜑 → (◡(𝐹 ∘f 𝑅𝐺) “ 𝐷) = ∪
𝑝 ∈ ((◡𝑅 “ 𝐷) ∩ (ran 𝐹 × ran 𝐺))((◡𝐹 “ {(1st ‘𝑝)}) ∩ (◡𝐺 “ {(2nd ‘𝑝)}))) |