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

Theorem vtxdun 26508
Description: The degree of a vertex in the union of two graphs on the same vertex set is the sum of the degrees of the vertex in each graph. (Contributed by Mario Carneiro, 12-Mar-2015.) (Revised by Alexander van der Vekens, 21-Dec-2017.) (Revised by AV, 19-Feb-2021.)
Hypotheses
Ref Expression
vtxdun.i 𝐼 = (iEdg‘𝐺)
vtxdun.j 𝐽 = (iEdg‘𝐻)
vtxdun.vg 𝑉 = (Vtx‘𝐺)
vtxdun.vh (𝜑 → (Vtx‘𝐻) = 𝑉)
vtxdun.vu (𝜑 → (Vtx‘𝑈) = 𝑉)
vtxdun.d (𝜑 → (dom 𝐼 ∩ dom 𝐽) = ∅)
vtxdun.fi (𝜑 → Fun 𝐼)
vtxdun.fj (𝜑 → Fun 𝐽)
vtxdun.n (𝜑𝑁𝑉)
vtxdun.u (𝜑 → (iEdg‘𝑈) = (𝐼𝐽))
Assertion
Ref Expression
vtxdun (𝜑 → ((VtxDeg‘𝑈)‘𝑁) = (((VtxDeg‘𝐺)‘𝑁) +𝑒 ((VtxDeg‘𝐻)‘𝑁)))

Proof of Theorem vtxdun
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 df-rab 3023 . . . . . . . 8 {𝑥 ∈ dom (iEdg‘𝑈) ∣ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)} = {𝑥 ∣ (𝑥 ∈ dom (iEdg‘𝑈) ∧ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥))}
2 vtxdun.u . . . . . . . . . . . . . . 15 (𝜑 → (iEdg‘𝑈) = (𝐼𝐽))
32dmeqd 5433 . . . . . . . . . . . . . 14 (𝜑 → dom (iEdg‘𝑈) = dom (𝐼𝐽))
4 dmun 5438 . . . . . . . . . . . . . 14 dom (𝐼𝐽) = (dom 𝐼 ∪ dom 𝐽)
53, 4syl6eq 2774 . . . . . . . . . . . . 13 (𝜑 → dom (iEdg‘𝑈) = (dom 𝐼 ∪ dom 𝐽))
65eleq2d 2789 . . . . . . . . . . . 12 (𝜑 → (𝑥 ∈ dom (iEdg‘𝑈) ↔ 𝑥 ∈ (dom 𝐼 ∪ dom 𝐽)))
7 elun 3861 . . . . . . . . . . . 12 (𝑥 ∈ (dom 𝐼 ∪ dom 𝐽) ↔ (𝑥 ∈ dom 𝐼𝑥 ∈ dom 𝐽))
86, 7syl6bb 276 . . . . . . . . . . 11 (𝜑 → (𝑥 ∈ dom (iEdg‘𝑈) ↔ (𝑥 ∈ dom 𝐼𝑥 ∈ dom 𝐽)))
98anbi1d 743 . . . . . . . . . 10 (𝜑 → ((𝑥 ∈ dom (iEdg‘𝑈) ∧ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ↔ ((𝑥 ∈ dom 𝐼𝑥 ∈ dom 𝐽) ∧ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥))))
10 andir 948 . . . . . . . . . 10 (((𝑥 ∈ dom 𝐼𝑥 ∈ dom 𝐽) ∧ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ↔ ((𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ∨ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥))))
119, 10syl6bb 276 . . . . . . . . 9 (𝜑 → ((𝑥 ∈ dom (iEdg‘𝑈) ∧ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ↔ ((𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ∨ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥)))))
1211abbidv 2843 . . . . . . . 8 (𝜑 → {𝑥 ∣ (𝑥 ∈ dom (iEdg‘𝑈) ∧ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥))} = {𝑥 ∣ ((𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ∨ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥)))})
131, 12syl5eq 2770 . . . . . . 7 (𝜑 → {𝑥 ∈ dom (iEdg‘𝑈) ∣ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)} = {𝑥 ∣ ((𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ∨ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥)))})
14 unab 4002 . . . . . . . . 9 ({𝑥 ∣ (𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥))} ∪ {𝑥 ∣ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥))}) = {𝑥 ∣ ((𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ∨ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥)))}
1514eqcomi 2733 . . . . . . . 8 {𝑥 ∣ ((𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ∨ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥)))} = ({𝑥 ∣ (𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥))} ∪ {𝑥 ∣ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥))})
1615a1i 11 . . . . . . 7 (𝜑 → {𝑥 ∣ ((𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ∨ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥)))} = ({𝑥 ∣ (𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥))} ∪ {𝑥 ∣ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥))}))
17 df-rab 3023 . . . . . . . . 9 {𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥)} = {𝑥 ∣ (𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥))}
182fveq1d 6306 . . . . . . . . . . . . 13 (𝜑 → ((iEdg‘𝑈)‘𝑥) = ((𝐼𝐽)‘𝑥))
1918adantr 472 . . . . . . . . . . . 12 ((𝜑𝑥 ∈ dom 𝐼) → ((iEdg‘𝑈)‘𝑥) = ((𝐼𝐽)‘𝑥))
20 vtxdun.fi . . . . . . . . . . . . . . 15 (𝜑 → Fun 𝐼)
21 funfn 6031 . . . . . . . . . . . . . . 15 (Fun 𝐼𝐼 Fn dom 𝐼)
2220, 21sylib 208 . . . . . . . . . . . . . 14 (𝜑𝐼 Fn dom 𝐼)
2322adantr 472 . . . . . . . . . . . . 13 ((𝜑𝑥 ∈ dom 𝐼) → 𝐼 Fn dom 𝐼)
24 vtxdun.fj . . . . . . . . . . . . . . 15 (𝜑 → Fun 𝐽)
25 funfn 6031 . . . . . . . . . . . . . . 15 (Fun 𝐽𝐽 Fn dom 𝐽)
2624, 25sylib 208 . . . . . . . . . . . . . 14 (𝜑𝐽 Fn dom 𝐽)
2726adantr 472 . . . . . . . . . . . . 13 ((𝜑𝑥 ∈ dom 𝐼) → 𝐽 Fn dom 𝐽)
28 vtxdun.d . . . . . . . . . . . . . 14 (𝜑 → (dom 𝐼 ∩ dom 𝐽) = ∅)
2928anim1i 593 . . . . . . . . . . . . 13 ((𝜑𝑥 ∈ dom 𝐼) → ((dom 𝐼 ∩ dom 𝐽) = ∅ ∧ 𝑥 ∈ dom 𝐼))
30 fvun1 6383 . . . . . . . . . . . . 13 ((𝐼 Fn dom 𝐼𝐽 Fn dom 𝐽 ∧ ((dom 𝐼 ∩ dom 𝐽) = ∅ ∧ 𝑥 ∈ dom 𝐼)) → ((𝐼𝐽)‘𝑥) = (𝐼𝑥))
3123, 27, 29, 30syl3anc 1439 . . . . . . . . . . . 12 ((𝜑𝑥 ∈ dom 𝐼) → ((𝐼𝐽)‘𝑥) = (𝐼𝑥))
3219, 31eqtrd 2758 . . . . . . . . . . 11 ((𝜑𝑥 ∈ dom 𝐼) → ((iEdg‘𝑈)‘𝑥) = (𝐼𝑥))
3332eleq2d 2789 . . . . . . . . . 10 ((𝜑𝑥 ∈ dom 𝐼) → (𝑁 ∈ ((iEdg‘𝑈)‘𝑥) ↔ 𝑁 ∈ (𝐼𝑥)))
3433rabbidva 3292 . . . . . . . . 9 (𝜑 → {𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥)} = {𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)})
3517, 34syl5eqr 2772 . . . . . . . 8 (𝜑 → {𝑥 ∣ (𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥))} = {𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)})
36 df-rab 3023 . . . . . . . . 9 {𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥)} = {𝑥 ∣ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥))}
3718adantr 472 . . . . . . . . . . . 12 ((𝜑𝑥 ∈ dom 𝐽) → ((iEdg‘𝑈)‘𝑥) = ((𝐼𝐽)‘𝑥))
3822adantr 472 . . . . . . . . . . . . 13 ((𝜑𝑥 ∈ dom 𝐽) → 𝐼 Fn dom 𝐼)
3926adantr 472 . . . . . . . . . . . . 13 ((𝜑𝑥 ∈ dom 𝐽) → 𝐽 Fn dom 𝐽)
4028anim1i 593 . . . . . . . . . . . . 13 ((𝜑𝑥 ∈ dom 𝐽) → ((dom 𝐼 ∩ dom 𝐽) = ∅ ∧ 𝑥 ∈ dom 𝐽))
41 fvun2 6384 . . . . . . . . . . . . 13 ((𝐼 Fn dom 𝐼𝐽 Fn dom 𝐽 ∧ ((dom 𝐼 ∩ dom 𝐽) = ∅ ∧ 𝑥 ∈ dom 𝐽)) → ((𝐼𝐽)‘𝑥) = (𝐽𝑥))
4238, 39, 40, 41syl3anc 1439 . . . . . . . . . . . 12 ((𝜑𝑥 ∈ dom 𝐽) → ((𝐼𝐽)‘𝑥) = (𝐽𝑥))
4337, 42eqtrd 2758 . . . . . . . . . . 11 ((𝜑𝑥 ∈ dom 𝐽) → ((iEdg‘𝑈)‘𝑥) = (𝐽𝑥))
4443eleq2d 2789 . . . . . . . . . 10 ((𝜑𝑥 ∈ dom 𝐽) → (𝑁 ∈ ((iEdg‘𝑈)‘𝑥) ↔ 𝑁 ∈ (𝐽𝑥)))
4544rabbidva 3292 . . . . . . . . 9 (𝜑 → {𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥)} = {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})
4636, 45syl5eqr 2772 . . . . . . . 8 (𝜑 → {𝑥 ∣ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥))} = {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})
4735, 46uneq12d 3876 . . . . . . 7 (𝜑 → ({𝑥 ∣ (𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥))} ∪ {𝑥 ∣ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥))}) = ({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∪ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}))
4813, 16, 473eqtrd 2762 . . . . . 6 (𝜑 → {𝑥 ∈ dom (iEdg‘𝑈) ∣ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)} = ({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∪ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}))
4948fveq2d 6308 . . . . 5 (𝜑 → (♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)}) = (♯‘({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∪ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})))
50 vtxdun.i . . . . . . . . . 10 𝐼 = (iEdg‘𝐺)
51 fvex 6314 . . . . . . . . . 10 (iEdg‘𝐺) ∈ V
5250, 51eqeltri 2799 . . . . . . . . 9 𝐼 ∈ V
5352dmex 7216 . . . . . . . 8 dom 𝐼 ∈ V
5453rabex 4920 . . . . . . 7 {𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∈ V
5554a1i 11 . . . . . 6 (𝜑 → {𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∈ V)
56 vtxdun.j . . . . . . . . . 10 𝐽 = (iEdg‘𝐻)
57 fvex 6314 . . . . . . . . . 10 (iEdg‘𝐻) ∈ V
5856, 57eqeltri 2799 . . . . . . . . 9 𝐽 ∈ V
5958dmex 7216 . . . . . . . 8 dom 𝐽 ∈ V
6059rabex 4920 . . . . . . 7 {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)} ∈ V
6160a1i 11 . . . . . 6 (𝜑 → {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)} ∈ V)
62 ssrab2 3793 . . . . . . . . 9 {𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ⊆ dom 𝐼
63 ssrab2 3793 . . . . . . . . 9 {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)} ⊆ dom 𝐽
64 ss2in 3948 . . . . . . . . 9 (({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ⊆ dom 𝐼 ∧ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)} ⊆ dom 𝐽) → ({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∩ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) ⊆ (dom 𝐼 ∩ dom 𝐽))
6562, 63, 64mp2an 710 . . . . . . . 8 ({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∩ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) ⊆ (dom 𝐼 ∩ dom 𝐽)
6665, 28syl5sseq 3759 . . . . . . 7 (𝜑 → ({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∩ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) ⊆ ∅)
67 ss0 4082 . . . . . . 7 (({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∩ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) ⊆ ∅ → ({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∩ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) = ∅)
6866, 67syl 17 . . . . . 6 (𝜑 → ({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∩ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) = ∅)
69 hashunx 13288 . . . . . 6 (({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∈ V ∧ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)} ∈ V ∧ ({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∩ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) = ∅) → (♯‘({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∪ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})) = ((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})))
7055, 61, 68, 69syl3anc 1439 . . . . 5 (𝜑 → (♯‘({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∪ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})) = ((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})))
7149, 70eqtrd 2758 . . . 4 (𝜑 → (♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)}) = ((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})))
72 df-rab 3023 . . . . . . . 8 {𝑥 ∈ dom (iEdg‘𝑈) ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}} = {𝑥 ∣ (𝑥 ∈ dom (iEdg‘𝑈) ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})}
738anbi1d 743 . . . . . . . . . 10 (𝜑 → ((𝑥 ∈ dom (iEdg‘𝑈) ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ↔ ((𝑥 ∈ dom 𝐼𝑥 ∈ dom 𝐽) ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})))
74 andir 948 . . . . . . . . . 10 (((𝑥 ∈ dom 𝐼𝑥 ∈ dom 𝐽) ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ↔ ((𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ∨ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})))
7573, 74syl6bb 276 . . . . . . . . 9 (𝜑 → ((𝑥 ∈ dom (iEdg‘𝑈) ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ↔ ((𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ∨ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}))))
7675abbidv 2843 . . . . . . . 8 (𝜑 → {𝑥 ∣ (𝑥 ∈ dom (iEdg‘𝑈) ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})} = {𝑥 ∣ ((𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ∨ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}))})
7772, 76syl5eq 2770 . . . . . . 7 (𝜑 → {𝑥 ∈ dom (iEdg‘𝑈) ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}} = {𝑥 ∣ ((𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ∨ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}))})
78 unab 4002 . . . . . . . . 9 ({𝑥 ∣ (𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})} ∪ {𝑥 ∣ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})}) = {𝑥 ∣ ((𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ∨ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}))}
7978eqcomi 2733 . . . . . . . 8 {𝑥 ∣ ((𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ∨ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}))} = ({𝑥 ∣ (𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})} ∪ {𝑥 ∣ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})})
8079a1i 11 . . . . . . 7 (𝜑 → {𝑥 ∣ ((𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ∨ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}))} = ({𝑥 ∣ (𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})} ∪ {𝑥 ∣ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})}))
81 df-rab 3023 . . . . . . . . 9 {𝑥 ∈ dom 𝐼 ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}} = {𝑥 ∣ (𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})}
8232eqeq1d 2726 . . . . . . . . . 10 ((𝜑𝑥 ∈ dom 𝐼) → (((iEdg‘𝑈)‘𝑥) = {𝑁} ↔ (𝐼𝑥) = {𝑁}))
8382rabbidva 3292 . . . . . . . . 9 (𝜑 → {𝑥 ∈ dom 𝐼 ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}} = {𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}})
8481, 83syl5eqr 2772 . . . . . . . 8 (𝜑 → {𝑥 ∣ (𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})} = {𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}})
85 df-rab 3023 . . . . . . . . 9 {𝑥 ∈ dom 𝐽 ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}} = {𝑥 ∣ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})}
8643eqeq1d 2726 . . . . . . . . . 10 ((𝜑𝑥 ∈ dom 𝐽) → (((iEdg‘𝑈)‘𝑥) = {𝑁} ↔ (𝐽𝑥) = {𝑁}))
8786rabbidva 3292 . . . . . . . . 9 (𝜑 → {𝑥 ∈ dom 𝐽 ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}} = {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})
8885, 87syl5eqr 2772 . . . . . . . 8 (𝜑 → {𝑥 ∣ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})} = {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})
8984, 88uneq12d 3876 . . . . . . 7 (𝜑 → ({𝑥 ∣ (𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})} ∪ {𝑥 ∣ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})}) = ({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∪ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}))
9077, 80, 893eqtrd 2762 . . . . . 6 (𝜑 → {𝑥 ∈ dom (iEdg‘𝑈) ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}} = ({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∪ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}))
9190fveq2d 6308 . . . . 5 (𝜑 → (♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}}) = (♯‘({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∪ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})))
9253rabex 4920 . . . . . . 7 {𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∈ V
9392a1i 11 . . . . . 6 (𝜑 → {𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∈ V)
9459rabex 4920 . . . . . . 7 {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}} ∈ V
9594a1i 11 . . . . . 6 (𝜑 → {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}} ∈ V)
96 ssrab2 3793 . . . . . . . . 9 {𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ⊆ dom 𝐼
97 ssrab2 3793 . . . . . . . . 9 {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}} ⊆ dom 𝐽
98 ss2in 3948 . . . . . . . . 9 (({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ⊆ dom 𝐼 ∧ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}} ⊆ dom 𝐽) → ({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∩ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}) ⊆ (dom 𝐼 ∩ dom 𝐽))
9996, 97, 98mp2an 710 . . . . . . . 8 ({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∩ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}) ⊆ (dom 𝐼 ∩ dom 𝐽)
10099, 28syl5sseq 3759 . . . . . . 7 (𝜑 → ({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∩ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}) ⊆ ∅)
101 ss0 4082 . . . . . . 7 (({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∩ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}) ⊆ ∅ → ({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∩ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}) = ∅)
102100, 101syl 17 . . . . . 6 (𝜑 → ({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∩ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}) = ∅)
103 hashunx 13288 . . . . . 6 (({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∈ V ∧ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}} ∈ V ∧ ({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∩ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}) = ∅) → (♯‘({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∪ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})) = ((♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})))
10493, 95, 102, 103syl3anc 1439 . . . . 5 (𝜑 → (♯‘({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∪ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})) = ((♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})))
10591, 104eqtrd 2758 . . . 4 (𝜑 → (♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}}) = ((♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})))
10671, 105oveq12d 6783 . . 3 (𝜑 → ((♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}})) = (((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})) +𝑒 ((♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}))))
107 hashxnn0 13242 . . . . 5 ({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∈ V → (♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) ∈ ℕ0*)
10855, 107syl 17 . . . 4 (𝜑 → (♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) ∈ ℕ0*)
109 hashxnn0 13242 . . . . 5 ({𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)} ∈ V → (♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) ∈ ℕ0*)
11061, 109syl 17 . . . 4 (𝜑 → (♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) ∈ ℕ0*)
111 hashxnn0 13242 . . . . 5 ({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∈ V → (♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}}) ∈ ℕ0*)
11293, 111syl 17 . . . 4 (𝜑 → (♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}}) ∈ ℕ0*)
113 hashxnn0 13242 . . . . 5 ({𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}} ∈ V → (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}) ∈ ℕ0*)
11495, 113syl 17 . . . 4 (𝜑 → (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}) ∈ ℕ0*)
115108, 110, 112, 114xnn0add4d 12248 . . 3 (𝜑 → (((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})) +𝑒 ((♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}))) = (((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}})) +𝑒 ((♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}))))
116106, 115eqtrd 2758 . 2 (𝜑 → ((♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}})) = (((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}})) +𝑒 ((♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}))))
117 vtxdun.n . . . 4 (𝜑𝑁𝑉)
118 vtxdun.vu . . . 4 (𝜑 → (Vtx‘𝑈) = 𝑉)
119117, 118eleqtrrd 2806 . . 3 (𝜑𝑁 ∈ (Vtx‘𝑈))
120 eqid 2724 . . . 4 (Vtx‘𝑈) = (Vtx‘𝑈)
121 eqid 2724 . . . 4 (iEdg‘𝑈) = (iEdg‘𝑈)
122 eqid 2724 . . . 4 dom (iEdg‘𝑈) = dom (iEdg‘𝑈)
123120, 121, 122vtxdgval 26495 . . 3 (𝑁 ∈ (Vtx‘𝑈) → ((VtxDeg‘𝑈)‘𝑁) = ((♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}})))
124119, 123syl 17 . 2 (𝜑 → ((VtxDeg‘𝑈)‘𝑁) = ((♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}})))
125 vtxdun.vg . . . . 5 𝑉 = (Vtx‘𝐺)
126 eqid 2724 . . . . 5 dom 𝐼 = dom 𝐼
127125, 50, 126vtxdgval 26495 . . . 4 (𝑁𝑉 → ((VtxDeg‘𝐺)‘𝑁) = ((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}})))
128117, 127syl 17 . . 3 (𝜑 → ((VtxDeg‘𝐺)‘𝑁) = ((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}})))
129 vtxdun.vh . . . . 5 (𝜑 → (Vtx‘𝐻) = 𝑉)
130117, 129eleqtrrd 2806 . . . 4 (𝜑𝑁 ∈ (Vtx‘𝐻))
131 eqid 2724 . . . . 5 (Vtx‘𝐻) = (Vtx‘𝐻)
132 eqid 2724 . . . . 5 dom 𝐽 = dom 𝐽
133131, 56, 132vtxdgval 26495 . . . 4 (𝑁 ∈ (Vtx‘𝐻) → ((VtxDeg‘𝐻)‘𝑁) = ((♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})))
134130, 133syl 17 . . 3 (𝜑 → ((VtxDeg‘𝐻)‘𝑁) = ((♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})))
135128, 134oveq12d 6783 . 2 (𝜑 → (((VtxDeg‘𝐺)‘𝑁) +𝑒 ((VtxDeg‘𝐻)‘𝑁)) = (((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}})) +𝑒 ((♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}))))
136116, 124, 1353eqtr4d 2768 1 (𝜑 → ((VtxDeg‘𝑈)‘𝑁) = (((VtxDeg‘𝐺)‘𝑁) +𝑒 ((VtxDeg‘𝐻)‘𝑁)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wo 382  wa 383   = wceq 1596  wcel 2103  {cab 2710  {crab 3018  Vcvv 3304  cun 3678  cin 3679  wss 3680  c0 4023  {csn 4285  dom cdm 5218  Fun wfun 5995   Fn wfn 5996  cfv 6001  (class class class)co 6765  0*cxnn0 11476   +𝑒 cxad 12058  chash 13232  Vtxcvtx 25994  iEdgciedg 25995  VtxDegcvtxdg 26492
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1835  ax-4 1850  ax-5 1952  ax-6 2018  ax-7 2054  ax-8 2105  ax-9 2112  ax-10 2132  ax-11 2147  ax-12 2160  ax-13 2355  ax-ext 2704  ax-rep 4879  ax-sep 4889  ax-nul 4897  ax-pow 4948  ax-pr 5011  ax-un 7066  ax-cnex 10105  ax-resscn 10106  ax-1cn 10107  ax-icn 10108  ax-addcl 10109  ax-addrcl 10110  ax-mulcl 10111  ax-mulrcl 10112  ax-mulcom 10113  ax-addass 10114  ax-mulass 10115  ax-distr 10116  ax-i2m1 10117  ax-1ne0 10118  ax-1rid 10119  ax-rnegex 10120  ax-rrecex 10121  ax-cnre 10122  ax-pre-lttri 10123  ax-pre-lttrn 10124  ax-pre-ltadd 10125  ax-pre-mulgt0 10126
This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3or 1073  df-3an 1074  df-tru 1599  df-ex 1818  df-nf 1823  df-sb 2011  df-eu 2575  df-mo 2576  df-clab 2711  df-cleq 2717  df-clel 2720  df-nfc 2855  df-ne 2897  df-nel 3000  df-ral 3019  df-rex 3020  df-reu 3021  df-rmo 3022  df-rab 3023  df-v 3306  df-sbc 3542  df-csb 3640  df-dif 3683  df-un 3685  df-in 3687  df-ss 3694  df-pss 3696  df-nul 4024  df-if 4195  df-pw 4268  df-sn 4286  df-pr 4288  df-tp 4290  df-op 4292  df-uni 4545  df-int 4584  df-iun 4630  df-br 4761  df-opab 4821  df-mpt 4838  df-tr 4861  df-id 5128  df-eprel 5133  df-po 5139  df-so 5140  df-fr 5177  df-we 5179  df-xp 5224  df-rel 5225  df-cnv 5226  df-co 5227  df-dm 5228  df-rn 5229  df-res 5230  df-ima 5231  df-pred 5793  df-ord 5839  df-on 5840  df-lim 5841  df-suc 5842  df-iota 5964  df-fun 6003  df-fn 6004  df-f 6005  df-f1 6006  df-fo 6007  df-f1o 6008  df-fv 6009  df-riota 6726  df-ov 6768  df-oprab 6769  df-mpt2 6770  df-om 7183  df-1st 7285  df-2nd 7286  df-wrecs 7527  df-recs 7588  df-rdg 7626  df-1o 7680  df-oadd 7684  df-er 7862  df-en 8073  df-dom 8074  df-sdom 8075  df-fin 8076  df-card 8878  df-cda 9103  df-pnf 10189  df-mnf 10190  df-xr 10191  df-ltxr 10192  df-le 10193  df-sub 10381  df-neg 10382  df-nn 11134  df-n0 11406  df-xnn0 11477  df-z 11491  df-uz 11801  df-xadd 12061  df-hash 13233  df-vtxdg 26493
This theorem is referenced by:  vtxdfiun  26509  vtxduhgrun  26510  p1evtxdeqlem  26539
  Copyright terms: Public domain W3C validator