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

Theorem vtxdun 27751
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 3072 . . . . . . . 8 {𝑥 ∈ dom (iEdg‘𝑈) ∣ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)} = {𝑥 ∣ (𝑥 ∈ dom (iEdg‘𝑈) ∧ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥))}
2 vtxdun.u . . . . . . . . . . . . . . 15 (𝜑 → (iEdg‘𝑈) = (𝐼𝐽))
32dmeqd 5803 . . . . . . . . . . . . . 14 (𝜑 → dom (iEdg‘𝑈) = dom (𝐼𝐽))
4 dmun 5808 . . . . . . . . . . . . . 14 dom (𝐼𝐽) = (dom 𝐼 ∪ dom 𝐽)
53, 4eqtrdi 2795 . . . . . . . . . . . . 13 (𝜑 → dom (iEdg‘𝑈) = (dom 𝐼 ∪ dom 𝐽))
65eleq2d 2824 . . . . . . . . . . . 12 (𝜑 → (𝑥 ∈ dom (iEdg‘𝑈) ↔ 𝑥 ∈ (dom 𝐼 ∪ dom 𝐽)))
7 elun 4079 . . . . . . . . . . . 12 (𝑥 ∈ (dom 𝐼 ∪ dom 𝐽) ↔ (𝑥 ∈ dom 𝐼𝑥 ∈ dom 𝐽))
86, 7bitrdi 286 . . . . . . . . . . 11 (𝜑 → (𝑥 ∈ dom (iEdg‘𝑈) ↔ (𝑥 ∈ dom 𝐼𝑥 ∈ dom 𝐽)))
98anbi1d 629 . . . . . . . . . 10 (𝜑 → ((𝑥 ∈ dom (iEdg‘𝑈) ∧ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ↔ ((𝑥 ∈ dom 𝐼𝑥 ∈ dom 𝐽) ∧ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥))))
10 andir 1005 . . . . . . . . . 10 (((𝑥 ∈ dom 𝐼𝑥 ∈ dom 𝐽) ∧ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ↔ ((𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ∨ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥))))
119, 10bitrdi 286 . . . . . . . . 9 (𝜑 → ((𝑥 ∈ dom (iEdg‘𝑈) ∧ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ↔ ((𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ∨ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥)))))
1211abbidv 2808 . . . . . . . 8 (𝜑 → {𝑥 ∣ (𝑥 ∈ dom (iEdg‘𝑈) ∧ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥))} = {𝑥 ∣ ((𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ∨ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥)))})
131, 12syl5eq 2791 . . . . . . 7 (𝜑 → {𝑥 ∈ dom (iEdg‘𝑈) ∣ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)} = {𝑥 ∣ ((𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ∨ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥)))})
14 unab 4229 . . . . . . . . 9 ({𝑥 ∣ (𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥))} ∪ {𝑥 ∣ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥))}) = {𝑥 ∣ ((𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ∨ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥)))}
1514eqcomi 2747 . . . . . . . 8 {𝑥 ∣ ((𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ∨ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥)))} = ({𝑥 ∣ (𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥))} ∪ {𝑥 ∣ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥))})
1615a1i 11 . . . . . . 7 (𝜑 → {𝑥 ∣ ((𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ∨ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥)))} = ({𝑥 ∣ (𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥))} ∪ {𝑥 ∣ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥))}))
17 df-rab 3072 . . . . . . . . 9 {𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥)} = {𝑥 ∣ (𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥))}
182fveq1d 6758 . . . . . . . . . . . . 13 (𝜑 → ((iEdg‘𝑈)‘𝑥) = ((𝐼𝐽)‘𝑥))
1918adantr 480 . . . . . . . . . . . 12 ((𝜑𝑥 ∈ dom 𝐼) → ((iEdg‘𝑈)‘𝑥) = ((𝐼𝐽)‘𝑥))
20 vtxdun.fi . . . . . . . . . . . . . . 15 (𝜑 → Fun 𝐼)
2120funfnd 6449 . . . . . . . . . . . . . 14 (𝜑𝐼 Fn dom 𝐼)
2221adantr 480 . . . . . . . . . . . . 13 ((𝜑𝑥 ∈ dom 𝐼) → 𝐼 Fn dom 𝐼)
23 vtxdun.fj . . . . . . . . . . . . . . 15 (𝜑 → Fun 𝐽)
2423funfnd 6449 . . . . . . . . . . . . . 14 (𝜑𝐽 Fn dom 𝐽)
2524adantr 480 . . . . . . . . . . . . 13 ((𝜑𝑥 ∈ dom 𝐼) → 𝐽 Fn dom 𝐽)
26 vtxdun.d . . . . . . . . . . . . . 14 (𝜑 → (dom 𝐼 ∩ dom 𝐽) = ∅)
2726anim1i 614 . . . . . . . . . . . . 13 ((𝜑𝑥 ∈ dom 𝐼) → ((dom 𝐼 ∩ dom 𝐽) = ∅ ∧ 𝑥 ∈ dom 𝐼))
28 fvun1 6841 . . . . . . . . . . . . 13 ((𝐼 Fn dom 𝐼𝐽 Fn dom 𝐽 ∧ ((dom 𝐼 ∩ dom 𝐽) = ∅ ∧ 𝑥 ∈ dom 𝐼)) → ((𝐼𝐽)‘𝑥) = (𝐼𝑥))
2922, 25, 27, 28syl3anc 1369 . . . . . . . . . . . 12 ((𝜑𝑥 ∈ dom 𝐼) → ((𝐼𝐽)‘𝑥) = (𝐼𝑥))
3019, 29eqtrd 2778 . . . . . . . . . . 11 ((𝜑𝑥 ∈ dom 𝐼) → ((iEdg‘𝑈)‘𝑥) = (𝐼𝑥))
3130eleq2d 2824 . . . . . . . . . 10 ((𝜑𝑥 ∈ dom 𝐼) → (𝑁 ∈ ((iEdg‘𝑈)‘𝑥) ↔ 𝑁 ∈ (𝐼𝑥)))
3231rabbidva 3402 . . . . . . . . 9 (𝜑 → {𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥)} = {𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)})
3317, 32eqtr3id 2793 . . . . . . . 8 (𝜑 → {𝑥 ∣ (𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥))} = {𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)})
34 df-rab 3072 . . . . . . . . 9 {𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥)} = {𝑥 ∣ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥))}
3518adantr 480 . . . . . . . . . . . 12 ((𝜑𝑥 ∈ dom 𝐽) → ((iEdg‘𝑈)‘𝑥) = ((𝐼𝐽)‘𝑥))
3621adantr 480 . . . . . . . . . . . . 13 ((𝜑𝑥 ∈ dom 𝐽) → 𝐼 Fn dom 𝐼)
3724adantr 480 . . . . . . . . . . . . 13 ((𝜑𝑥 ∈ dom 𝐽) → 𝐽 Fn dom 𝐽)
3826anim1i 614 . . . . . . . . . . . . 13 ((𝜑𝑥 ∈ dom 𝐽) → ((dom 𝐼 ∩ dom 𝐽) = ∅ ∧ 𝑥 ∈ dom 𝐽))
39 fvun2 6842 . . . . . . . . . . . . 13 ((𝐼 Fn dom 𝐼𝐽 Fn dom 𝐽 ∧ ((dom 𝐼 ∩ dom 𝐽) = ∅ ∧ 𝑥 ∈ dom 𝐽)) → ((𝐼𝐽)‘𝑥) = (𝐽𝑥))
4036, 37, 38, 39syl3anc 1369 . . . . . . . . . . . 12 ((𝜑𝑥 ∈ dom 𝐽) → ((𝐼𝐽)‘𝑥) = (𝐽𝑥))
4135, 40eqtrd 2778 . . . . . . . . . . 11 ((𝜑𝑥 ∈ dom 𝐽) → ((iEdg‘𝑈)‘𝑥) = (𝐽𝑥))
4241eleq2d 2824 . . . . . . . . . 10 ((𝜑𝑥 ∈ dom 𝐽) → (𝑁 ∈ ((iEdg‘𝑈)‘𝑥) ↔ 𝑁 ∈ (𝐽𝑥)))
4342rabbidva 3402 . . . . . . . . 9 (𝜑 → {𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥)} = {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})
4434, 43eqtr3id 2793 . . . . . . . 8 (𝜑 → {𝑥 ∣ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥))} = {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})
4533, 44uneq12d 4094 . . . . . . 7 (𝜑 → ({𝑥 ∣ (𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥))} ∪ {𝑥 ∣ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥))}) = ({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∪ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}))
4613, 16, 453eqtrd 2782 . . . . . 6 (𝜑 → {𝑥 ∈ dom (iEdg‘𝑈) ∣ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)} = ({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∪ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}))
4746fveq2d 6760 . . . . 5 (𝜑 → (♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)}) = (♯‘({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∪ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})))
48 vtxdun.i . . . . . . . . . 10 𝐼 = (iEdg‘𝐺)
4948fvexi 6770 . . . . . . . . 9 𝐼 ∈ V
5049dmex 7732 . . . . . . . 8 dom 𝐼 ∈ V
5150rabex 5251 . . . . . . 7 {𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∈ V
5251a1i 11 . . . . . 6 (𝜑 → {𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∈ V)
53 vtxdun.j . . . . . . . . . 10 𝐽 = (iEdg‘𝐻)
5453fvexi 6770 . . . . . . . . 9 𝐽 ∈ V
5554dmex 7732 . . . . . . . 8 dom 𝐽 ∈ V
5655rabex 5251 . . . . . . 7 {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)} ∈ V
5756a1i 11 . . . . . 6 (𝜑 → {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)} ∈ V)
58 ssrab2 4009 . . . . . . . . 9 {𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ⊆ dom 𝐼
59 ssrab2 4009 . . . . . . . . 9 {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)} ⊆ dom 𝐽
60 ss2in 4167 . . . . . . . . 9 (({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ⊆ dom 𝐼 ∧ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)} ⊆ dom 𝐽) → ({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∩ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) ⊆ (dom 𝐼 ∩ dom 𝐽))
6158, 59, 60mp2an 688 . . . . . . . 8 ({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∩ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) ⊆ (dom 𝐼 ∩ dom 𝐽)
6261, 26sseqtrid 3969 . . . . . . 7 (𝜑 → ({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∩ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) ⊆ ∅)
63 ss0 4329 . . . . . . 7 (({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∩ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) ⊆ ∅ → ({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∩ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) = ∅)
6462, 63syl 17 . . . . . 6 (𝜑 → ({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∩ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) = ∅)
65 hashunx 14029 . . . . . 6 (({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∈ V ∧ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)} ∈ V ∧ ({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∩ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) = ∅) → (♯‘({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∪ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})) = ((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})))
6652, 57, 64, 65syl3anc 1369 . . . . 5 (𝜑 → (♯‘({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∪ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})) = ((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})))
6747, 66eqtrd 2778 . . . 4 (𝜑 → (♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)}) = ((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})))
68 df-rab 3072 . . . . . . . 8 {𝑥 ∈ dom (iEdg‘𝑈) ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}} = {𝑥 ∣ (𝑥 ∈ dom (iEdg‘𝑈) ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})}
698anbi1d 629 . . . . . . . . . 10 (𝜑 → ((𝑥 ∈ dom (iEdg‘𝑈) ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ↔ ((𝑥 ∈ dom 𝐼𝑥 ∈ dom 𝐽) ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})))
70 andir 1005 . . . . . . . . . 10 (((𝑥 ∈ dom 𝐼𝑥 ∈ dom 𝐽) ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ↔ ((𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ∨ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})))
7169, 70bitrdi 286 . . . . . . . . 9 (𝜑 → ((𝑥 ∈ dom (iEdg‘𝑈) ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ↔ ((𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ∨ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}))))
7271abbidv 2808 . . . . . . . 8 (𝜑 → {𝑥 ∣ (𝑥 ∈ dom (iEdg‘𝑈) ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})} = {𝑥 ∣ ((𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ∨ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}))})
7368, 72syl5eq 2791 . . . . . . 7 (𝜑 → {𝑥 ∈ dom (iEdg‘𝑈) ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}} = {𝑥 ∣ ((𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ∨ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}))})
74 unab 4229 . . . . . . . . 9 ({𝑥 ∣ (𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})} ∪ {𝑥 ∣ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})}) = {𝑥 ∣ ((𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ∨ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}))}
7574eqcomi 2747 . . . . . . . 8 {𝑥 ∣ ((𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ∨ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}))} = ({𝑥 ∣ (𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})} ∪ {𝑥 ∣ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})})
7675a1i 11 . . . . . . 7 (𝜑 → {𝑥 ∣ ((𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ∨ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}))} = ({𝑥 ∣ (𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})} ∪ {𝑥 ∣ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})}))
77 df-rab 3072 . . . . . . . . 9 {𝑥 ∈ dom 𝐼 ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}} = {𝑥 ∣ (𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})}
7830eqeq1d 2740 . . . . . . . . . 10 ((𝜑𝑥 ∈ dom 𝐼) → (((iEdg‘𝑈)‘𝑥) = {𝑁} ↔ (𝐼𝑥) = {𝑁}))
7978rabbidva 3402 . . . . . . . . 9 (𝜑 → {𝑥 ∈ dom 𝐼 ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}} = {𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}})
8077, 79eqtr3id 2793 . . . . . . . 8 (𝜑 → {𝑥 ∣ (𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})} = {𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}})
81 df-rab 3072 . . . . . . . . 9 {𝑥 ∈ dom 𝐽 ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}} = {𝑥 ∣ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})}
8241eqeq1d 2740 . . . . . . . . . 10 ((𝜑𝑥 ∈ dom 𝐽) → (((iEdg‘𝑈)‘𝑥) = {𝑁} ↔ (𝐽𝑥) = {𝑁}))
8382rabbidva 3402 . . . . . . . . 9 (𝜑 → {𝑥 ∈ dom 𝐽 ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}} = {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})
8481, 83eqtr3id 2793 . . . . . . . 8 (𝜑 → {𝑥 ∣ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})} = {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})
8580, 84uneq12d 4094 . . . . . . 7 (𝜑 → ({𝑥 ∣ (𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})} ∪ {𝑥 ∣ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})}) = ({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∪ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}))
8673, 76, 853eqtrd 2782 . . . . . 6 (𝜑 → {𝑥 ∈ dom (iEdg‘𝑈) ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}} = ({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∪ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}))
8786fveq2d 6760 . . . . 5 (𝜑 → (♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}}) = (♯‘({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∪ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})))
8850rabex 5251 . . . . . . 7 {𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∈ V
8988a1i 11 . . . . . 6 (𝜑 → {𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∈ V)
9055rabex 5251 . . . . . . 7 {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}} ∈ V
9190a1i 11 . . . . . 6 (𝜑 → {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}} ∈ V)
92 ssrab2 4009 . . . . . . . . 9 {𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ⊆ dom 𝐼
93 ssrab2 4009 . . . . . . . . 9 {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}} ⊆ dom 𝐽
94 ss2in 4167 . . . . . . . . 9 (({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ⊆ dom 𝐼 ∧ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}} ⊆ dom 𝐽) → ({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∩ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}) ⊆ (dom 𝐼 ∩ dom 𝐽))
9592, 93, 94mp2an 688 . . . . . . . 8 ({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∩ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}) ⊆ (dom 𝐼 ∩ dom 𝐽)
9695, 26sseqtrid 3969 . . . . . . 7 (𝜑 → ({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∩ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}) ⊆ ∅)
97 ss0 4329 . . . . . . 7 (({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∩ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}) ⊆ ∅ → ({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∩ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}) = ∅)
9896, 97syl 17 . . . . . 6 (𝜑 → ({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∩ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}) = ∅)
99 hashunx 14029 . . . . . 6 (({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∈ V ∧ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}} ∈ V ∧ ({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∩ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}) = ∅) → (♯‘({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∪ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})) = ((♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})))
10089, 91, 98, 99syl3anc 1369 . . . . 5 (𝜑 → (♯‘({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∪ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})) = ((♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})))
10187, 100eqtrd 2778 . . . 4 (𝜑 → (♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}}) = ((♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})))
10267, 101oveq12d 7273 . . 3 (𝜑 → ((♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}})) = (((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})) +𝑒 ((♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}))))
103 hashxnn0 13981 . . . . 5 ({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∈ V → (♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) ∈ ℕ0*)
10452, 103syl 17 . . . 4 (𝜑 → (♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) ∈ ℕ0*)
105 hashxnn0 13981 . . . . 5 ({𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)} ∈ V → (♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) ∈ ℕ0*)
10657, 105syl 17 . . . 4 (𝜑 → (♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) ∈ ℕ0*)
107 hashxnn0 13981 . . . . 5 ({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∈ V → (♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}}) ∈ ℕ0*)
10889, 107syl 17 . . . 4 (𝜑 → (♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}}) ∈ ℕ0*)
109 hashxnn0 13981 . . . . 5 ({𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}} ∈ V → (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}) ∈ ℕ0*)
11091, 109syl 17 . . . 4 (𝜑 → (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}) ∈ ℕ0*)
111104, 106, 108, 110xnn0add4d 12967 . . 3 (𝜑 → (((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})) +𝑒 ((♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}))) = (((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}})) +𝑒 ((♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}))))
112102, 111eqtrd 2778 . 2 (𝜑 → ((♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}})) = (((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}})) +𝑒 ((♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}))))
113 vtxdun.n . . . 4 (𝜑𝑁𝑉)
114 vtxdun.vu . . . 4 (𝜑 → (Vtx‘𝑈) = 𝑉)
115113, 114eleqtrrd 2842 . . 3 (𝜑𝑁 ∈ (Vtx‘𝑈))
116 eqid 2738 . . . 4 (Vtx‘𝑈) = (Vtx‘𝑈)
117 eqid 2738 . . . 4 (iEdg‘𝑈) = (iEdg‘𝑈)
118 eqid 2738 . . . 4 dom (iEdg‘𝑈) = dom (iEdg‘𝑈)
119116, 117, 118vtxdgval 27738 . . 3 (𝑁 ∈ (Vtx‘𝑈) → ((VtxDeg‘𝑈)‘𝑁) = ((♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}})))
120115, 119syl 17 . 2 (𝜑 → ((VtxDeg‘𝑈)‘𝑁) = ((♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}})))
121 vtxdun.vg . . . . 5 𝑉 = (Vtx‘𝐺)
122 eqid 2738 . . . . 5 dom 𝐼 = dom 𝐼
123121, 48, 122vtxdgval 27738 . . . 4 (𝑁𝑉 → ((VtxDeg‘𝐺)‘𝑁) = ((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}})))
124113, 123syl 17 . . 3 (𝜑 → ((VtxDeg‘𝐺)‘𝑁) = ((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}})))
125 vtxdun.vh . . . . 5 (𝜑 → (Vtx‘𝐻) = 𝑉)
126113, 125eleqtrrd 2842 . . . 4 (𝜑𝑁 ∈ (Vtx‘𝐻))
127 eqid 2738 . . . . 5 (Vtx‘𝐻) = (Vtx‘𝐻)
128 eqid 2738 . . . . 5 dom 𝐽 = dom 𝐽
129127, 53, 128vtxdgval 27738 . . . 4 (𝑁 ∈ (Vtx‘𝐻) → ((VtxDeg‘𝐻)‘𝑁) = ((♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})))
130126, 129syl 17 . . 3 (𝜑 → ((VtxDeg‘𝐻)‘𝑁) = ((♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})))
131124, 130oveq12d 7273 . 2 (𝜑 → (((VtxDeg‘𝐺)‘𝑁) +𝑒 ((VtxDeg‘𝐻)‘𝑁)) = (((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}})) +𝑒 ((♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}))))
132112, 120, 1313eqtr4d 2788 1 (𝜑 → ((VtxDeg‘𝑈)‘𝑁) = (((VtxDeg‘𝐺)‘𝑁) +𝑒 ((VtxDeg‘𝐻)‘𝑁)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395  wo 843   = wceq 1539  wcel 2108  {cab 2715  {crab 3067  Vcvv 3422  cun 3881  cin 3882  wss 3883  c0 4253  {csn 4558  dom cdm 5580  Fun wfun 6412   Fn wfn 6413  cfv 6418  (class class class)co 7255  0*cxnn0 12235   +𝑒 cxad 12775  chash 13972  Vtxcvtx 27269  iEdgciedg 27270  VtxDegcvtxdg 27735
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  ax-cnex 10858  ax-resscn 10859  ax-1cn 10860  ax-icn 10861  ax-addcl 10862  ax-addrcl 10863  ax-mulcl 10864  ax-mulrcl 10865  ax-mulcom 10866  ax-addass 10867  ax-mulass 10868  ax-distr 10869  ax-i2m1 10870  ax-1ne0 10871  ax-1rid 10872  ax-rnegex 10873  ax-rrecex 10874  ax-cnre 10875  ax-pre-lttri 10876  ax-pre-lttrn 10877  ax-pre-ltadd 10878  ax-pre-mulgt0 10879
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  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-nel 3049  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-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-int 4877  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-we 5537  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-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  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-riota 7212  df-ov 7258  df-oprab 7259  df-mpo 7260  df-om 7688  df-1st 7804  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-1o 8267  df-oadd 8271  df-er 8456  df-en 8692  df-dom 8693  df-sdom 8694  df-fin 8695  df-dju 9590  df-card 9628  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-sub 11137  df-neg 11138  df-nn 11904  df-n0 12164  df-xnn0 12236  df-z 12250  df-uz 12512  df-xadd 12778  df-hash 13973  df-vtxdg 27736
This theorem is referenced by:  vtxdfiun  27752  vtxduhgrun  27753  p1evtxdeqlem  27782
  Copyright terms: Public domain W3C validator