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

Theorem vtxdun 27435
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 3063 . . . . . . . 8 {𝑥 ∈ dom (iEdg‘𝑈) ∣ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)} = {𝑥 ∣ (𝑥 ∈ dom (iEdg‘𝑈) ∧ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥))}
2 vtxdun.u . . . . . . . . . . . . . . 15 (𝜑 → (iEdg‘𝑈) = (𝐼𝐽))
32dmeqd 5758 . . . . . . . . . . . . . 14 (𝜑 → dom (iEdg‘𝑈) = dom (𝐼𝐽))
4 dmun 5763 . . . . . . . . . . . . . 14 dom (𝐼𝐽) = (dom 𝐼 ∪ dom 𝐽)
53, 4eqtrdi 2790 . . . . . . . . . . . . 13 (𝜑 → dom (iEdg‘𝑈) = (dom 𝐼 ∪ dom 𝐽))
65eleq2d 2819 . . . . . . . . . . . 12 (𝜑 → (𝑥 ∈ dom (iEdg‘𝑈) ↔ 𝑥 ∈ (dom 𝐼 ∪ dom 𝐽)))
7 elun 4049 . . . . . . . . . . . 12 (𝑥 ∈ (dom 𝐼 ∪ dom 𝐽) ↔ (𝑥 ∈ dom 𝐼𝑥 ∈ dom 𝐽))
86, 7bitrdi 290 . . . . . . . . . . 11 (𝜑 → (𝑥 ∈ dom (iEdg‘𝑈) ↔ (𝑥 ∈ dom 𝐼𝑥 ∈ dom 𝐽)))
98anbi1d 633 . . . . . . . . . 10 (𝜑 → ((𝑥 ∈ dom (iEdg‘𝑈) ∧ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ↔ ((𝑥 ∈ dom 𝐼𝑥 ∈ dom 𝐽) ∧ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥))))
10 andir 1008 . . . . . . . . . 10 (((𝑥 ∈ dom 𝐼𝑥 ∈ dom 𝐽) ∧ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ↔ ((𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ∨ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥))))
119, 10bitrdi 290 . . . . . . . . 9 (𝜑 → ((𝑥 ∈ dom (iEdg‘𝑈) ∧ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ↔ ((𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ∨ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥)))))
1211abbidv 2803 . . . . . . . 8 (𝜑 → {𝑥 ∣ (𝑥 ∈ dom (iEdg‘𝑈) ∧ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥))} = {𝑥 ∣ ((𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ∨ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥)))})
131, 12syl5eq 2786 . . . . . . 7 (𝜑 → {𝑥 ∈ dom (iEdg‘𝑈) ∣ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)} = {𝑥 ∣ ((𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ∨ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥)))})
14 unab 4198 . . . . . . . . 9 ({𝑥 ∣ (𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥))} ∪ {𝑥 ∣ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥))}) = {𝑥 ∣ ((𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ∨ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥)))}
1514eqcomi 2748 . . . . . . . 8 {𝑥 ∣ ((𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ∨ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥)))} = ({𝑥 ∣ (𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥))} ∪ {𝑥 ∣ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥))})
1615a1i 11 . . . . . . 7 (𝜑 → {𝑥 ∣ ((𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥)) ∨ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥)))} = ({𝑥 ∣ (𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥))} ∪ {𝑥 ∣ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥))}))
17 df-rab 3063 . . . . . . . . 9 {𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥)} = {𝑥 ∣ (𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥))}
182fveq1d 6688 . . . . . . . . . . . . 13 (𝜑 → ((iEdg‘𝑈)‘𝑥) = ((𝐼𝐽)‘𝑥))
1918adantr 484 . . . . . . . . . . . 12 ((𝜑𝑥 ∈ dom 𝐼) → ((iEdg‘𝑈)‘𝑥) = ((𝐼𝐽)‘𝑥))
20 vtxdun.fi . . . . . . . . . . . . . . 15 (𝜑 → Fun 𝐼)
2120funfnd 6380 . . . . . . . . . . . . . 14 (𝜑𝐼 Fn dom 𝐼)
2221adantr 484 . . . . . . . . . . . . 13 ((𝜑𝑥 ∈ dom 𝐼) → 𝐼 Fn dom 𝐼)
23 vtxdun.fj . . . . . . . . . . . . . . 15 (𝜑 → Fun 𝐽)
2423funfnd 6380 . . . . . . . . . . . . . 14 (𝜑𝐽 Fn dom 𝐽)
2524adantr 484 . . . . . . . . . . . . 13 ((𝜑𝑥 ∈ dom 𝐼) → 𝐽 Fn dom 𝐽)
26 vtxdun.d . . . . . . . . . . . . . 14 (𝜑 → (dom 𝐼 ∩ dom 𝐽) = ∅)
2726anim1i 618 . . . . . . . . . . . . 13 ((𝜑𝑥 ∈ dom 𝐼) → ((dom 𝐼 ∩ dom 𝐽) = ∅ ∧ 𝑥 ∈ dom 𝐼))
28 fvun1 6771 . . . . . . . . . . . . 13 ((𝐼 Fn dom 𝐼𝐽 Fn dom 𝐽 ∧ ((dom 𝐼 ∩ dom 𝐽) = ∅ ∧ 𝑥 ∈ dom 𝐼)) → ((𝐼𝐽)‘𝑥) = (𝐼𝑥))
2922, 25, 27, 28syl3anc 1372 . . . . . . . . . . . 12 ((𝜑𝑥 ∈ dom 𝐼) → ((𝐼𝐽)‘𝑥) = (𝐼𝑥))
3019, 29eqtrd 2774 . . . . . . . . . . 11 ((𝜑𝑥 ∈ dom 𝐼) → ((iEdg‘𝑈)‘𝑥) = (𝐼𝑥))
3130eleq2d 2819 . . . . . . . . . 10 ((𝜑𝑥 ∈ dom 𝐼) → (𝑁 ∈ ((iEdg‘𝑈)‘𝑥) ↔ 𝑁 ∈ (𝐼𝑥)))
3231rabbidva 3380 . . . . . . . . 9 (𝜑 → {𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥)} = {𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)})
3317, 32eqtr3id 2788 . . . . . . . 8 (𝜑 → {𝑥 ∣ (𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥))} = {𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)})
34 df-rab 3063 . . . . . . . . 9 {𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥)} = {𝑥 ∣ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥))}
3518adantr 484 . . . . . . . . . . . 12 ((𝜑𝑥 ∈ dom 𝐽) → ((iEdg‘𝑈)‘𝑥) = ((𝐼𝐽)‘𝑥))
3621adantr 484 . . . . . . . . . . . . 13 ((𝜑𝑥 ∈ dom 𝐽) → 𝐼 Fn dom 𝐼)
3724adantr 484 . . . . . . . . . . . . 13 ((𝜑𝑥 ∈ dom 𝐽) → 𝐽 Fn dom 𝐽)
3826anim1i 618 . . . . . . . . . . . . 13 ((𝜑𝑥 ∈ dom 𝐽) → ((dom 𝐼 ∩ dom 𝐽) = ∅ ∧ 𝑥 ∈ dom 𝐽))
39 fvun2 6772 . . . . . . . . . . . . 13 ((𝐼 Fn dom 𝐼𝐽 Fn dom 𝐽 ∧ ((dom 𝐼 ∩ dom 𝐽) = ∅ ∧ 𝑥 ∈ dom 𝐽)) → ((𝐼𝐽)‘𝑥) = (𝐽𝑥))
4036, 37, 38, 39syl3anc 1372 . . . . . . . . . . . 12 ((𝜑𝑥 ∈ dom 𝐽) → ((𝐼𝐽)‘𝑥) = (𝐽𝑥))
4135, 40eqtrd 2774 . . . . . . . . . . 11 ((𝜑𝑥 ∈ dom 𝐽) → ((iEdg‘𝑈)‘𝑥) = (𝐽𝑥))
4241eleq2d 2819 . . . . . . . . . 10 ((𝜑𝑥 ∈ dom 𝐽) → (𝑁 ∈ ((iEdg‘𝑈)‘𝑥) ↔ 𝑁 ∈ (𝐽𝑥)))
4342rabbidva 3380 . . . . . . . . 9 (𝜑 → {𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥)} = {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})
4434, 43eqtr3id 2788 . . . . . . . 8 (𝜑 → {𝑥 ∣ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥))} = {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})
4533, 44uneq12d 4064 . . . . . . 7 (𝜑 → ({𝑥 ∣ (𝑥 ∈ dom 𝐼𝑁 ∈ ((iEdg‘𝑈)‘𝑥))} ∪ {𝑥 ∣ (𝑥 ∈ dom 𝐽𝑁 ∈ ((iEdg‘𝑈)‘𝑥))}) = ({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∪ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}))
4613, 16, 453eqtrd 2778 . . . . . 6 (𝜑 → {𝑥 ∈ dom (iEdg‘𝑈) ∣ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)} = ({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∪ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}))
4746fveq2d 6690 . . . . 5 (𝜑 → (♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)}) = (♯‘({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∪ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})))
48 vtxdun.i . . . . . . . . . 10 𝐼 = (iEdg‘𝐺)
4948fvexi 6700 . . . . . . . . 9 𝐼 ∈ V
5049dmex 7654 . . . . . . . 8 dom 𝐼 ∈ V
5150rabex 5210 . . . . . . 7 {𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∈ V
5251a1i 11 . . . . . 6 (𝜑 → {𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∈ V)
53 vtxdun.j . . . . . . . . . 10 𝐽 = (iEdg‘𝐻)
5453fvexi 6700 . . . . . . . . 9 𝐽 ∈ V
5554dmex 7654 . . . . . . . 8 dom 𝐽 ∈ V
5655rabex 5210 . . . . . . 7 {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)} ∈ V
5756a1i 11 . . . . . 6 (𝜑 → {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)} ∈ V)
58 ssrab2 3979 . . . . . . . . 9 {𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ⊆ dom 𝐼
59 ssrab2 3979 . . . . . . . . 9 {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)} ⊆ dom 𝐽
60 ss2in 4137 . . . . . . . . 9 (({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ⊆ dom 𝐼 ∧ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)} ⊆ dom 𝐽) → ({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∩ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) ⊆ (dom 𝐼 ∩ dom 𝐽))
6158, 59, 60mp2an 692 . . . . . . . 8 ({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∩ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) ⊆ (dom 𝐼 ∩ dom 𝐽)
6261, 26sseqtrid 3939 . . . . . . 7 (𝜑 → ({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∩ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) ⊆ ∅)
63 ss0 4297 . . . . . . 7 (({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∩ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) ⊆ ∅ → ({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∩ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) = ∅)
6462, 63syl 17 . . . . . 6 (𝜑 → ({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∩ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) = ∅)
65 hashunx 13851 . . . . . 6 (({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∈ V ∧ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)} ∈ V ∧ ({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∩ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) = ∅) → (♯‘({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∪ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})) = ((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})))
6652, 57, 64, 65syl3anc 1372 . . . . 5 (𝜑 → (♯‘({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∪ {𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})) = ((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})))
6747, 66eqtrd 2774 . . . 4 (𝜑 → (♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)}) = ((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})))
68 df-rab 3063 . . . . . . . 8 {𝑥 ∈ dom (iEdg‘𝑈) ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}} = {𝑥 ∣ (𝑥 ∈ dom (iEdg‘𝑈) ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})}
698anbi1d 633 . . . . . . . . . 10 (𝜑 → ((𝑥 ∈ dom (iEdg‘𝑈) ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ↔ ((𝑥 ∈ dom 𝐼𝑥 ∈ dom 𝐽) ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})))
70 andir 1008 . . . . . . . . . 10 (((𝑥 ∈ dom 𝐼𝑥 ∈ dom 𝐽) ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ↔ ((𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ∨ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})))
7169, 70bitrdi 290 . . . . . . . . 9 (𝜑 → ((𝑥 ∈ dom (iEdg‘𝑈) ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ↔ ((𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ∨ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}))))
7271abbidv 2803 . . . . . . . 8 (𝜑 → {𝑥 ∣ (𝑥 ∈ dom (iEdg‘𝑈) ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})} = {𝑥 ∣ ((𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ∨ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}))})
7368, 72syl5eq 2786 . . . . . . 7 (𝜑 → {𝑥 ∈ dom (iEdg‘𝑈) ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}} = {𝑥 ∣ ((𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ∨ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}))})
74 unab 4198 . . . . . . . . 9 ({𝑥 ∣ (𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})} ∪ {𝑥 ∣ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})}) = {𝑥 ∣ ((𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ∨ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}))}
7574eqcomi 2748 . . . . . . . 8 {𝑥 ∣ ((𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ∨ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}))} = ({𝑥 ∣ (𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})} ∪ {𝑥 ∣ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})})
7675a1i 11 . . . . . . 7 (𝜑 → {𝑥 ∣ ((𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}) ∨ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁}))} = ({𝑥 ∣ (𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})} ∪ {𝑥 ∣ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})}))
77 df-rab 3063 . . . . . . . . 9 {𝑥 ∈ dom 𝐼 ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}} = {𝑥 ∣ (𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})}
7830eqeq1d 2741 . . . . . . . . . 10 ((𝜑𝑥 ∈ dom 𝐼) → (((iEdg‘𝑈)‘𝑥) = {𝑁} ↔ (𝐼𝑥) = {𝑁}))
7978rabbidva 3380 . . . . . . . . 9 (𝜑 → {𝑥 ∈ dom 𝐼 ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}} = {𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}})
8077, 79eqtr3id 2788 . . . . . . . 8 (𝜑 → {𝑥 ∣ (𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})} = {𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}})
81 df-rab 3063 . . . . . . . . 9 {𝑥 ∈ dom 𝐽 ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}} = {𝑥 ∣ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})}
8241eqeq1d 2741 . . . . . . . . . 10 ((𝜑𝑥 ∈ dom 𝐽) → (((iEdg‘𝑈)‘𝑥) = {𝑁} ↔ (𝐽𝑥) = {𝑁}))
8382rabbidva 3380 . . . . . . . . 9 (𝜑 → {𝑥 ∈ dom 𝐽 ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}} = {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})
8481, 83eqtr3id 2788 . . . . . . . 8 (𝜑 → {𝑥 ∣ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})} = {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})
8580, 84uneq12d 4064 . . . . . . 7 (𝜑 → ({𝑥 ∣ (𝑥 ∈ dom 𝐼 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})} ∪ {𝑥 ∣ (𝑥 ∈ dom 𝐽 ∧ ((iEdg‘𝑈)‘𝑥) = {𝑁})}) = ({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∪ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}))
8673, 76, 853eqtrd 2778 . . . . . 6 (𝜑 → {𝑥 ∈ dom (iEdg‘𝑈) ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}} = ({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∪ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}))
8786fveq2d 6690 . . . . 5 (𝜑 → (♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}}) = (♯‘({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∪ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})))
8850rabex 5210 . . . . . . 7 {𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∈ V
8988a1i 11 . . . . . 6 (𝜑 → {𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∈ V)
9055rabex 5210 . . . . . . 7 {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}} ∈ V
9190a1i 11 . . . . . 6 (𝜑 → {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}} ∈ V)
92 ssrab2 3979 . . . . . . . . 9 {𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ⊆ dom 𝐼
93 ssrab2 3979 . . . . . . . . 9 {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}} ⊆ dom 𝐽
94 ss2in 4137 . . . . . . . . 9 (({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ⊆ dom 𝐼 ∧ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}} ⊆ dom 𝐽) → ({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∩ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}) ⊆ (dom 𝐼 ∩ dom 𝐽))
9592, 93, 94mp2an 692 . . . . . . . 8 ({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∩ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}) ⊆ (dom 𝐼 ∩ dom 𝐽)
9695, 26sseqtrid 3939 . . . . . . 7 (𝜑 → ({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∩ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}) ⊆ ∅)
97 ss0 4297 . . . . . . 7 (({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∩ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}) ⊆ ∅ → ({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∩ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}) = ∅)
9896, 97syl 17 . . . . . 6 (𝜑 → ({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∩ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}) = ∅)
99 hashunx 13851 . . . . . 6 (({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∈ V ∧ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}} ∈ V ∧ ({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∩ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}) = ∅) → (♯‘({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∪ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})) = ((♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})))
10089, 91, 98, 99syl3anc 1372 . . . . 5 (𝜑 → (♯‘({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∪ {𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})) = ((♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})))
10187, 100eqtrd 2774 . . . 4 (𝜑 → (♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}}) = ((♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})))
10267, 101oveq12d 7200 . . 3 (𝜑 → ((♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}})) = (((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})) +𝑒 ((♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}))))
103 hashxnn0 13803 . . . . 5 ({𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)} ∈ V → (♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) ∈ ℕ0*)
10452, 103syl 17 . . . 4 (𝜑 → (♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) ∈ ℕ0*)
105 hashxnn0 13803 . . . . 5 ({𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)} ∈ V → (♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) ∈ ℕ0*)
10657, 105syl 17 . . . 4 (𝜑 → (♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) ∈ ℕ0*)
107 hashxnn0 13803 . . . . 5 ({𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}} ∈ V → (♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}}) ∈ ℕ0*)
10889, 107syl 17 . . . 4 (𝜑 → (♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}}) ∈ ℕ0*)
109 hashxnn0 13803 . . . . 5 ({𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}} ∈ V → (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}) ∈ ℕ0*)
11091, 109syl 17 . . . 4 (𝜑 → (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}) ∈ ℕ0*)
111104, 106, 108, 110xnn0add4d 12792 . . 3 (𝜑 → (((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)})) +𝑒 ((♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}))) = (((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}})) +𝑒 ((♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}))))
112102, 111eqtrd 2774 . 2 (𝜑 → ((♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ 𝑁 ∈ ((iEdg‘𝑈)‘𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom (iEdg‘𝑈) ∣ ((iEdg‘𝑈)‘𝑥) = {𝑁}})) = (((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}})) +𝑒 ((♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}))))
113 vtxdun.n . . . 4 (𝜑𝑁𝑉)
114 vtxdun.vu . . . 4 (𝜑 → (Vtx‘𝑈) = 𝑉)
115113, 114eleqtrrd 2837 . . 3 (𝜑𝑁 ∈ (Vtx‘𝑈))
116 eqid 2739 . . . 4 (Vtx‘𝑈) = (Vtx‘𝑈)
117 eqid 2739 . . . 4 (iEdg‘𝑈) = (iEdg‘𝑈)
118 eqid 2739 . . . 4 dom (iEdg‘𝑈) = dom (iEdg‘𝑈)
119116, 117, 118vtxdgval 27422 . . 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 2739 . . . . 5 dom 𝐼 = dom 𝐼
123121, 48, 122vtxdgval 27422 . . . 4 (𝑁𝑉 → ((VtxDeg‘𝐺)‘𝑁) = ((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}})))
124113, 123syl 17 . . 3 (𝜑 → ((VtxDeg‘𝐺)‘𝑁) = ((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}})))
125 vtxdun.vh . . . . 5 (𝜑 → (Vtx‘𝐻) = 𝑉)
126113, 125eleqtrrd 2837 . . . 4 (𝜑𝑁 ∈ (Vtx‘𝐻))
127 eqid 2739 . . . . 5 (Vtx‘𝐻) = (Vtx‘𝐻)
128 eqid 2739 . . . . 5 dom 𝐽 = dom 𝐽
129127, 53, 128vtxdgval 27422 . . . 4 (𝑁 ∈ (Vtx‘𝐻) → ((VtxDeg‘𝐻)‘𝑁) = ((♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})))
130126, 129syl 17 . . 3 (𝜑 → ((VtxDeg‘𝐻)‘𝑁) = ((♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}})))
131124, 130oveq12d 7200 . 2 (𝜑 → (((VtxDeg‘𝐺)‘𝑁) +𝑒 ((VtxDeg‘𝐻)‘𝑁)) = (((♯‘{𝑥 ∈ dom 𝐼𝑁 ∈ (𝐼𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐼 ∣ (𝐼𝑥) = {𝑁}})) +𝑒 ((♯‘{𝑥 ∈ dom 𝐽𝑁 ∈ (𝐽𝑥)}) +𝑒 (♯‘{𝑥 ∈ dom 𝐽 ∣ (𝐽𝑥) = {𝑁}}))))
132112, 120, 1313eqtr4d 2784 1 (𝜑 → ((VtxDeg‘𝑈)‘𝑁) = (((VtxDeg‘𝐺)‘𝑁) +𝑒 ((VtxDeg‘𝐻)‘𝑁)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 399  wo 846   = wceq 1542  wcel 2114  {cab 2717  {crab 3058  Vcvv 3400  cun 3851  cin 3852  wss 3853  c0 4221  {csn 4526  dom cdm 5535  Fun wfun 6343   Fn wfn 6344  cfv 6349  (class class class)co 7182  0*cxnn0 12060   +𝑒 cxad 12600  chash 13794  Vtxcvtx 26953  iEdgciedg 26954  VtxDegcvtxdg 27419
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1802  ax-4 1816  ax-5 1917  ax-6 1975  ax-7 2020  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2162  ax-12 2179  ax-ext 2711  ax-rep 5164  ax-sep 5177  ax-nul 5184  ax-pow 5242  ax-pr 5306  ax-un 7491  ax-cnex 10683  ax-resscn 10684  ax-1cn 10685  ax-icn 10686  ax-addcl 10687  ax-addrcl 10688  ax-mulcl 10689  ax-mulrcl 10690  ax-mulcom 10691  ax-addass 10692  ax-mulass 10693  ax-distr 10694  ax-i2m1 10695  ax-1ne0 10696  ax-1rid 10697  ax-rnegex 10698  ax-rrecex 10699  ax-cnre 10700  ax-pre-lttri 10701  ax-pre-lttrn 10702  ax-pre-ltadd 10703  ax-pre-mulgt0 10704
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 847  df-3or 1089  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1787  df-nf 1791  df-sb 2075  df-mo 2541  df-eu 2571  df-clab 2718  df-cleq 2731  df-clel 2812  df-nfc 2882  df-ne 2936  df-nel 3040  df-ral 3059  df-rex 3060  df-reu 3061  df-rab 3063  df-v 3402  df-sbc 3686  df-csb 3801  df-dif 3856  df-un 3858  df-in 3860  df-ss 3870  df-pss 3872  df-nul 4222  df-if 4425  df-pw 4500  df-sn 4527  df-pr 4529  df-tp 4531  df-op 4533  df-uni 4807  df-int 4847  df-iun 4893  df-br 5041  df-opab 5103  df-mpt 5121  df-tr 5147  df-id 5439  df-eprel 5444  df-po 5452  df-so 5453  df-fr 5493  df-we 5495  df-xp 5541  df-rel 5542  df-cnv 5543  df-co 5544  df-dm 5545  df-rn 5546  df-res 5547  df-ima 5548  df-pred 6139  df-ord 6185  df-on 6186  df-lim 6187  df-suc 6188  df-iota 6307  df-fun 6351  df-fn 6352  df-f 6353  df-f1 6354  df-fo 6355  df-f1o 6356  df-fv 6357  df-riota 7139  df-ov 7185  df-oprab 7186  df-mpo 7187  df-om 7612  df-1st 7726  df-2nd 7727  df-wrecs 7988  df-recs 8049  df-rdg 8087  df-1o 8143  df-oadd 8147  df-er 8332  df-en 8568  df-dom 8569  df-sdom 8570  df-fin 8571  df-dju 9415  df-card 9453  df-pnf 10767  df-mnf 10768  df-xr 10769  df-ltxr 10770  df-le 10771  df-sub 10962  df-neg 10963  df-nn 11729  df-n0 11989  df-xnn0 12061  df-z 12075  df-uz 12337  df-xadd 12603  df-hash 13795  df-vtxdg 27420
This theorem is referenced by:  vtxdfiun  27436  vtxduhgrun  27437  p1evtxdeqlem  27466
  Copyright terms: Public domain W3C validator