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

Theorem numedglnl 27417
Description: The number of edges incident with a vertex 𝑁 is the number of edges joining 𝑁 with other vertices and the number of loops on 𝑁 in a pseudograph of finite size. (Contributed by AV, 19-Dec-2021.)
Hypotheses
Ref Expression
edglnl.v 𝑉 = (Vtx‘𝐺)
edglnl.e 𝐸 = (iEdg‘𝐺)
Assertion
Ref Expression
numedglnl ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → (Σ𝑣 ∈ (𝑉 ∖ {𝑁})(♯‘{𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}) + (♯‘{𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}})) = (♯‘{𝑖 ∈ dom 𝐸𝑁 ∈ (𝐸𝑖)}))
Distinct variable groups:   𝑣,𝐸   𝑖,𝐺   𝑖,𝑁,𝑣   𝑖,𝑉,𝑣   𝑖,𝐸   𝑣,𝐺

Proof of Theorem numedglnl
Dummy variables 𝑚 𝑛 𝑤 𝑗 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 diffi 8979 . . . . . . 7 (𝑉 ∈ Fin → (𝑉 ∖ {𝑁}) ∈ Fin)
21adantr 480 . . . . . 6 ((𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) → (𝑉 ∖ {𝑁}) ∈ Fin)
323ad2ant2 1132 . . . . 5 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → (𝑉 ∖ {𝑁}) ∈ Fin)
4 dmfi 9027 . . . . . . . . 9 (𝐸 ∈ Fin → dom 𝐸 ∈ Fin)
5 rabfi 8973 . . . . . . . . 9 (dom 𝐸 ∈ Fin → {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin)
64, 5syl 17 . . . . . . . 8 (𝐸 ∈ Fin → {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin)
76adantl 481 . . . . . . 7 ((𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) → {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin)
873ad2ant2 1132 . . . . . 6 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin)
98adantr 480 . . . . 5 (((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ 𝑣 ∈ (𝑉 ∖ {𝑁})) → {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin)
10 notnotb 314 . . . . . . . . . . . . . 14 (𝑁 ∈ (𝐸𝑖) ↔ ¬ ¬ 𝑁 ∈ (𝐸𝑖))
11 notnotb 314 . . . . . . . . . . . . . . . . 17 (𝑣 ∈ (𝐸𝑖) ↔ ¬ ¬ 𝑣 ∈ (𝐸𝑖))
12 upgruhgr 27375 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (𝐺 ∈ UPGraph → 𝐺 ∈ UHGraph)
13 edglnl.e . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 𝐸 = (iEdg‘𝐺)
1413uhgrfun 27339 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (𝐺 ∈ UHGraph → Fun 𝐸)
1512, 14syl 17 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝐺 ∈ UPGraph → Fun 𝐸)
1613iedgedg 27323 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((Fun 𝐸𝑖 ∈ dom 𝐸) → (𝐸𝑖) ∈ (Edg‘𝐺))
1715, 16sylan 579 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝐺 ∈ UPGraph ∧ 𝑖 ∈ dom 𝐸) → (𝐸𝑖) ∈ (Edg‘𝐺))
18 edglnl.v . . . . . . . . . . . . . . . . . . . . . . . . . 26 𝑉 = (Vtx‘𝐺)
19 eqid 2738 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (Edg‘𝐺) = (Edg‘𝐺)
2018, 19upgredg 27410 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝐺 ∈ UPGraph ∧ (𝐸𝑖) ∈ (Edg‘𝐺)) → ∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛})
2117, 20syldan 590 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝐺 ∈ UPGraph ∧ 𝑖 ∈ dom 𝐸) → ∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛})
2221ex 412 . . . . . . . . . . . . . . . . . . . . . . 23 (𝐺 ∈ UPGraph → (𝑖 ∈ dom 𝐸 → ∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛}))
23223ad2ant1 1131 . . . . . . . . . . . . . . . . . . . . . 22 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → (𝑖 ∈ dom 𝐸 → ∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛}))
2423adantr 480 . . . . . . . . . . . . . . . . . . . . 21 (((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) → (𝑖 ∈ dom 𝐸 → ∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛}))
2524adantr 480 . . . . . . . . . . . . . . . . . . . 20 ((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) → (𝑖 ∈ dom 𝐸 → ∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛}))
2625imp 406 . . . . . . . . . . . . . . . . . . 19 (((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) → ∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛})
27 eldifsni 4720 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑣 ∈ (𝑉 ∖ {𝑁}) → 𝑣𝑁)
28 eldifsni 4720 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑤 ∈ (𝑉 ∖ {𝑁}) → 𝑤𝑁)
29 3elpr2eq 4835 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 (((𝑁 ∈ {𝑚, 𝑛} ∧ 𝑣 ∈ {𝑚, 𝑛} ∧ 𝑤 ∈ {𝑚, 𝑛}) ∧ (𝑣𝑁𝑤𝑁)) → 𝑣 = 𝑤)
3029expcom 413 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 ((𝑣𝑁𝑤𝑁) → ((𝑁 ∈ {𝑚, 𝑛} ∧ 𝑣 ∈ {𝑚, 𝑛} ∧ 𝑤 ∈ {𝑚, 𝑛}) → 𝑣 = 𝑤))
31303expd 1351 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 ((𝑣𝑁𝑤𝑁) → (𝑁 ∈ {𝑚, 𝑛} → (𝑣 ∈ {𝑚, 𝑛} → (𝑤 ∈ {𝑚, 𝑛} → 𝑣 = 𝑤))))
3231com23 86 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((𝑣𝑁𝑤𝑁) → (𝑣 ∈ {𝑚, 𝑛} → (𝑁 ∈ {𝑚, 𝑛} → (𝑤 ∈ {𝑚, 𝑛} → 𝑣 = 𝑤))))
33323imp 1109 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (((𝑣𝑁𝑤𝑁) ∧ 𝑣 ∈ {𝑚, 𝑛} ∧ 𝑁 ∈ {𝑚, 𝑛}) → (𝑤 ∈ {𝑚, 𝑛} → 𝑣 = 𝑤))
3433con3d 152 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (((𝑣𝑁𝑤𝑁) ∧ 𝑣 ∈ {𝑚, 𝑛} ∧ 𝑁 ∈ {𝑚, 𝑛}) → (¬ 𝑣 = 𝑤 → ¬ 𝑤 ∈ {𝑚, 𝑛}))
35343exp 1117 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝑣𝑁𝑤𝑁) → (𝑣 ∈ {𝑚, 𝑛} → (𝑁 ∈ {𝑚, 𝑛} → (¬ 𝑣 = 𝑤 → ¬ 𝑤 ∈ {𝑚, 𝑛}))))
3635com24 95 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑣𝑁𝑤𝑁) → (¬ 𝑣 = 𝑤 → (𝑁 ∈ {𝑚, 𝑛} → (𝑣 ∈ {𝑚, 𝑛} → ¬ 𝑤 ∈ {𝑚, 𝑛}))))
3736imp 406 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝑣𝑁𝑤𝑁) ∧ ¬ 𝑣 = 𝑤) → (𝑁 ∈ {𝑚, 𝑛} → (𝑣 ∈ {𝑚, 𝑛} → ¬ 𝑤 ∈ {𝑚, 𝑛})))
38 eleq2 2827 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝐸𝑖) = {𝑚, 𝑛} → (𝑁 ∈ (𝐸𝑖) ↔ 𝑁 ∈ {𝑚, 𝑛}))
39 eleq2 2827 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝐸𝑖) = {𝑚, 𝑛} → (𝑣 ∈ (𝐸𝑖) ↔ 𝑣 ∈ {𝑚, 𝑛}))
40 eleq2 2827 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝐸𝑖) = {𝑚, 𝑛} → (𝑤 ∈ (𝐸𝑖) ↔ 𝑤 ∈ {𝑚, 𝑛}))
4140notbid 317 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝐸𝑖) = {𝑚, 𝑛} → (¬ 𝑤 ∈ (𝐸𝑖) ↔ ¬ 𝑤 ∈ {𝑚, 𝑛}))
4239, 41imbi12d 344 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝐸𝑖) = {𝑚, 𝑛} → ((𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖)) ↔ (𝑣 ∈ {𝑚, 𝑛} → ¬ 𝑤 ∈ {𝑚, 𝑛})))
4338, 42imbi12d 344 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝐸𝑖) = {𝑚, 𝑛} → ((𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖))) ↔ (𝑁 ∈ {𝑚, 𝑛} → (𝑣 ∈ {𝑚, 𝑛} → ¬ 𝑤 ∈ {𝑚, 𝑛}))))
4437, 43syl5ibrcom 246 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑣𝑁𝑤𝑁) ∧ ¬ 𝑣 = 𝑤) → ((𝐸𝑖) = {𝑚, 𝑛} → (𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖)))))
4544adantr 480 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((((𝑣𝑁𝑤𝑁) ∧ ¬ 𝑣 = 𝑤) ∧ (𝑚𝑉𝑛𝑉)) → ((𝐸𝑖) = {𝑚, 𝑛} → (𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖)))))
4645rexlimdvva 3222 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑣𝑁𝑤𝑁) ∧ ¬ 𝑣 = 𝑤) → (∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛} → (𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖)))))
4746ex 412 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑣𝑁𝑤𝑁) → (¬ 𝑣 = 𝑤 → (∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛} → (𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖))))))
4827, 28, 47syl2an 595 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁})) → (¬ 𝑣 = 𝑤 → (∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛} → (𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖))))))
4948adantl 481 . . . . . . . . . . . . . . . . . . . . 21 (((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) → (¬ 𝑣 = 𝑤 → (∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛} → (𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖))))))
5049imp 406 . . . . . . . . . . . . . . . . . . . 20 ((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) → (∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛} → (𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖)))))
5150adantr 480 . . . . . . . . . . . . . . . . . . 19 (((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) → (∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛} → (𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖)))))
5226, 51mpd 15 . . . . . . . . . . . . . . . . . 18 (((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) → (𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖))))
5352imp 406 . . . . . . . . . . . . . . . . 17 ((((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) ∧ 𝑁 ∈ (𝐸𝑖)) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖)))
5411, 53syl5bir 242 . . . . . . . . . . . . . . . 16 ((((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) ∧ 𝑁 ∈ (𝐸𝑖)) → (¬ ¬ 𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖)))
5554orrd 859 . . . . . . . . . . . . . . 15 ((((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) ∧ 𝑁 ∈ (𝐸𝑖)) → (¬ 𝑣 ∈ (𝐸𝑖) ∨ ¬ 𝑤 ∈ (𝐸𝑖)))
5655ex 412 . . . . . . . . . . . . . 14 (((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) → (𝑁 ∈ (𝐸𝑖) → (¬ 𝑣 ∈ (𝐸𝑖) ∨ ¬ 𝑤 ∈ (𝐸𝑖))))
5710, 56syl5bir 242 . . . . . . . . . . . . 13 (((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) → (¬ ¬ 𝑁 ∈ (𝐸𝑖) → (¬ 𝑣 ∈ (𝐸𝑖) ∨ ¬ 𝑤 ∈ (𝐸𝑖))))
5857orrd 859 . . . . . . . . . . . 12 (((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) → (¬ 𝑁 ∈ (𝐸𝑖) ∨ (¬ 𝑣 ∈ (𝐸𝑖) ∨ ¬ 𝑤 ∈ (𝐸𝑖))))
59 anandi 672 . . . . . . . . . . . . . . 15 ((𝑁 ∈ (𝐸𝑖) ∧ (𝑣 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))) ↔ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))))
6059bicomi 223 . . . . . . . . . . . . . 14 (((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))) ↔ (𝑁 ∈ (𝐸𝑖) ∧ (𝑣 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))))
6160notbii 319 . . . . . . . . . . . . 13 (¬ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))) ↔ ¬ (𝑁 ∈ (𝐸𝑖) ∧ (𝑣 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))))
62 ianor 978 . . . . . . . . . . . . 13 (¬ (𝑁 ∈ (𝐸𝑖) ∧ (𝑣 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))) ↔ (¬ 𝑁 ∈ (𝐸𝑖) ∨ ¬ (𝑣 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))))
63 ianor 978 . . . . . . . . . . . . . 14 (¬ (𝑣 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖)) ↔ (¬ 𝑣 ∈ (𝐸𝑖) ∨ ¬ 𝑤 ∈ (𝐸𝑖)))
6463orbi2i 909 . . . . . . . . . . . . 13 ((¬ 𝑁 ∈ (𝐸𝑖) ∨ ¬ (𝑣 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))) ↔ (¬ 𝑁 ∈ (𝐸𝑖) ∨ (¬ 𝑣 ∈ (𝐸𝑖) ∨ ¬ 𝑤 ∈ (𝐸𝑖))))
6561, 62, 643bitri 296 . . . . . . . . . . . 12 (¬ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))) ↔ (¬ 𝑁 ∈ (𝐸𝑖) ∨ (¬ 𝑣 ∈ (𝐸𝑖) ∨ ¬ 𝑤 ∈ (𝐸𝑖))))
6658, 65sylibr 233 . . . . . . . . . . 11 (((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) → ¬ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))))
6766ralrimiva 3107 . . . . . . . . . 10 ((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) → ∀𝑖 ∈ dom 𝐸 ¬ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))))
68 inrab 4237 . . . . . . . . . . . 12 ({𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))}) = {𝑖 ∈ dom 𝐸 ∣ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖)))}
6968eqeq1i 2743 . . . . . . . . . . 11 (({𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))}) = ∅ ↔ {𝑖 ∈ dom 𝐸 ∣ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖)))} = ∅)
70 rabeq0 4315 . . . . . . . . . . 11 ({𝑖 ∈ dom 𝐸 ∣ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖)))} = ∅ ↔ ∀𝑖 ∈ dom 𝐸 ¬ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))))
7169, 70bitri 274 . . . . . . . . . 10 (({𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))}) = ∅ ↔ ∀𝑖 ∈ dom 𝐸 ¬ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))))
7267, 71sylibr 233 . . . . . . . . 9 ((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) → ({𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))}) = ∅)
7372ex 412 . . . . . . . 8 (((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) → (¬ 𝑣 = 𝑤 → ({𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))}) = ∅))
7473orrd 859 . . . . . . 7 (((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) → (𝑣 = 𝑤 ∨ ({𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))}) = ∅))
7574ralrimivva 3114 . . . . . 6 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → ∀𝑣 ∈ (𝑉 ∖ {𝑁})∀𝑤 ∈ (𝑉 ∖ {𝑁})(𝑣 = 𝑤 ∨ ({𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))}) = ∅))
76 eleq1w 2821 . . . . . . . . 9 (𝑣 = 𝑤 → (𝑣 ∈ (𝐸𝑖) ↔ 𝑤 ∈ (𝐸𝑖)))
7776anbi2d 628 . . . . . . . 8 (𝑣 = 𝑤 → ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ↔ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))))
7877rabbidv 3404 . . . . . . 7 (𝑣 = 𝑤 → {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} = {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))})
7978disjor 5050 . . . . . 6 (Disj 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ↔ ∀𝑣 ∈ (𝑉 ∖ {𝑁})∀𝑤 ∈ (𝑉 ∖ {𝑁})(𝑣 = 𝑤 ∨ ({𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))}) = ∅))
8075, 79sylibr 233 . . . . 5 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → Disj 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))})
813, 9, 80hashiun 15462 . . . 4 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → (♯‘ 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}) = Σ𝑣 ∈ (𝑉 ∖ {𝑁})(♯‘{𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}))
8281eqcomd 2744 . . 3 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → Σ𝑣 ∈ (𝑉 ∖ {𝑁})(♯‘{𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}) = (♯‘ 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}))
8382oveq1d 7270 . 2 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → (Σ𝑣 ∈ (𝑉 ∖ {𝑁})(♯‘{𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}) + (♯‘{𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}})) = ((♯‘ 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}) + (♯‘{𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}})))
849ralrimiva 3107 . . . 4 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → ∀𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin)
85 iunfi 9037 . . . 4 (((𝑉 ∖ {𝑁}) ∈ Fin ∧ ∀𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin) → 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin)
863, 84, 85syl2anc 583 . . 3 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin)
87 rabfi 8973 . . . . . 6 (dom 𝐸 ∈ Fin → {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}} ∈ Fin)
884, 87syl 17 . . . . 5 (𝐸 ∈ Fin → {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}} ∈ Fin)
8988adantl 481 . . . 4 ((𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) → {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}} ∈ Fin)
90893ad2ant2 1132 . . 3 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}} ∈ Fin)
91 fveqeq2 6765 . . . . . . 7 (𝑖 = 𝑗 → ((𝐸𝑖) = {𝑁} ↔ (𝐸𝑗) = {𝑁}))
9291elrab 3617 . . . . . 6 (𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}} ↔ (𝑗 ∈ dom 𝐸 ∧ (𝐸𝑗) = {𝑁}))
93 eldifn 4058 . . . . . . . . . . . . . . 15 (𝑣 ∈ (𝑉 ∖ {𝑁}) → ¬ 𝑣 ∈ {𝑁})
94 eleq2 2827 . . . . . . . . . . . . . . . 16 ((𝐸𝑗) = {𝑁} → (𝑣 ∈ (𝐸𝑗) ↔ 𝑣 ∈ {𝑁}))
9594notbid 317 . . . . . . . . . . . . . . 15 ((𝐸𝑗) = {𝑁} → (¬ 𝑣 ∈ (𝐸𝑗) ↔ ¬ 𝑣 ∈ {𝑁}))
9693, 95syl5ibr 245 . . . . . . . . . . . . . 14 ((𝐸𝑗) = {𝑁} → (𝑣 ∈ (𝑉 ∖ {𝑁}) → ¬ 𝑣 ∈ (𝐸𝑗)))
9796adantl 481 . . . . . . . . . . . . 13 ((𝑗 ∈ dom 𝐸 ∧ (𝐸𝑗) = {𝑁}) → (𝑣 ∈ (𝑉 ∖ {𝑁}) → ¬ 𝑣 ∈ (𝐸𝑗)))
9897adantl 481 . . . . . . . . . . . 12 (((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑗 ∈ dom 𝐸 ∧ (𝐸𝑗) = {𝑁})) → (𝑣 ∈ (𝑉 ∖ {𝑁}) → ¬ 𝑣 ∈ (𝐸𝑗)))
9998imp 406 . . . . . . . . . . 11 ((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑗 ∈ dom 𝐸 ∧ (𝐸𝑗) = {𝑁})) ∧ 𝑣 ∈ (𝑉 ∖ {𝑁})) → ¬ 𝑣 ∈ (𝐸𝑗))
10099intnand 488 . . . . . . . . . 10 ((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑗 ∈ dom 𝐸 ∧ (𝐸𝑗) = {𝑁})) ∧ 𝑣 ∈ (𝑉 ∖ {𝑁})) → ¬ (𝑁 ∈ (𝐸𝑗) ∧ 𝑣 ∈ (𝐸𝑗)))
101100intnand 488 . . . . . . . . 9 ((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑗 ∈ dom 𝐸 ∧ (𝐸𝑗) = {𝑁})) ∧ 𝑣 ∈ (𝑉 ∖ {𝑁})) → ¬ (𝑗 ∈ dom 𝐸 ∧ (𝑁 ∈ (𝐸𝑗) ∧ 𝑣 ∈ (𝐸𝑗))))
102101ralrimiva 3107 . . . . . . . 8 (((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑗 ∈ dom 𝐸 ∧ (𝐸𝑗) = {𝑁})) → ∀𝑣 ∈ (𝑉 ∖ {𝑁}) ¬ (𝑗 ∈ dom 𝐸 ∧ (𝑁 ∈ (𝐸𝑗) ∧ 𝑣 ∈ (𝐸𝑗))))
103 eliun 4925 . . . . . . . . . 10 (𝑗 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ↔ ∃𝑣 ∈ (𝑉 ∖ {𝑁})𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))})
104103notbii 319 . . . . . . . . 9 𝑗 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ↔ ¬ ∃𝑣 ∈ (𝑉 ∖ {𝑁})𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))})
105 ralnex 3163 . . . . . . . . 9 (∀𝑣 ∈ (𝑉 ∖ {𝑁}) ¬ 𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ↔ ¬ ∃𝑣 ∈ (𝑉 ∖ {𝑁})𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))})
106 fveq2 6756 . . . . . . . . . . . . . 14 (𝑖 = 𝑗 → (𝐸𝑖) = (𝐸𝑗))
107106eleq2d 2824 . . . . . . . . . . . . 13 (𝑖 = 𝑗 → (𝑁 ∈ (𝐸𝑖) ↔ 𝑁 ∈ (𝐸𝑗)))
108106eleq2d 2824 . . . . . . . . . . . . 13 (𝑖 = 𝑗 → (𝑣 ∈ (𝐸𝑖) ↔ 𝑣 ∈ (𝐸𝑗)))
109107, 108anbi12d 630 . . . . . . . . . . . 12 (𝑖 = 𝑗 → ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ↔ (𝑁 ∈ (𝐸𝑗) ∧ 𝑣 ∈ (𝐸𝑗))))
110109elrab 3617 . . . . . . . . . . 11 (𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ↔ (𝑗 ∈ dom 𝐸 ∧ (𝑁 ∈ (𝐸𝑗) ∧ 𝑣 ∈ (𝐸𝑗))))
111110notbii 319 . . . . . . . . . 10 𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ↔ ¬ (𝑗 ∈ dom 𝐸 ∧ (𝑁 ∈ (𝐸𝑗) ∧ 𝑣 ∈ (𝐸𝑗))))
112111ralbii 3090 . . . . . . . . 9 (∀𝑣 ∈ (𝑉 ∖ {𝑁}) ¬ 𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ↔ ∀𝑣 ∈ (𝑉 ∖ {𝑁}) ¬ (𝑗 ∈ dom 𝐸 ∧ (𝑁 ∈ (𝐸𝑗) ∧ 𝑣 ∈ (𝐸𝑗))))
113104, 105, 1123bitr2i 298 . . . . . . . 8 𝑗 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ↔ ∀𝑣 ∈ (𝑉 ∖ {𝑁}) ¬ (𝑗 ∈ dom 𝐸 ∧ (𝑁 ∈ (𝐸𝑗) ∧ 𝑣 ∈ (𝐸𝑗))))
114102, 113sylibr 233 . . . . . . 7 (((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑗 ∈ dom 𝐸 ∧ (𝐸𝑗) = {𝑁})) → ¬ 𝑗 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))})
115114ex 412 . . . . . 6 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → ((𝑗 ∈ dom 𝐸 ∧ (𝐸𝑗) = {𝑁}) → ¬ 𝑗 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}))
11692, 115syl5bi 241 . . . . 5 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → (𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}} → ¬ 𝑗 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}))
117116ralrimiv 3106 . . . 4 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → ∀𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}} ¬ 𝑗 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))})
118 disjr 4380 . . . 4 (( 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}}) = ∅ ↔ ∀𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}} ¬ 𝑗 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))})
119117, 118sylibr 233 . . 3 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → ( 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}}) = ∅)
120 hashun 14025 . . 3 (( 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin ∧ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}} ∈ Fin ∧ ( 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}}) = ∅) → (♯‘( 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∪ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}})) = ((♯‘ 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}) + (♯‘{𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}})))
12186, 90, 119, 120syl3anc 1369 . 2 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → (♯‘( 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∪ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}})) = ((♯‘ 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}) + (♯‘{𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}})))
12218, 13edglnl 27416 . . . 4 ((𝐺 ∈ UPGraph ∧ 𝑁𝑉) → ( 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∪ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}}) = {𝑖 ∈ dom 𝐸𝑁 ∈ (𝐸𝑖)})
1231223adant2 1129 . . 3 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → ( 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∪ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}}) = {𝑖 ∈ dom 𝐸𝑁 ∈ (𝐸𝑖)})
124123fveq2d 6760 . 2 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → (♯‘( 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∪ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}})) = (♯‘{𝑖 ∈ dom 𝐸𝑁 ∈ (𝐸𝑖)}))
12583, 121, 1243eqtr2d 2784 1 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → (Σ𝑣 ∈ (𝑉 ∖ {𝑁})(♯‘{𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}) + (♯‘{𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}})) = (♯‘{𝑖 ∈ dom 𝐸𝑁 ∈ (𝐸𝑖)}))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 395  wo 843  w3a 1085   = wceq 1539  wcel 2108  wne 2942  wral 3063  wrex 3064  {crab 3067  cdif 3880  cun 3881  cin 3882  c0 4253  {csn 4558  {cpr 4560   ciun 4921  Disj wdisj 5035  dom cdm 5580  Fun wfun 6412  cfv 6418  (class class class)co 7255  Fincfn 8691   + caddc 10805  chash 13972  Σcsu 15325  Vtxcvtx 27269  iEdgciedg 27270  Edgcedg 27320  UHGraphcuhgr 27329  UPGraphcupgr 27353
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-inf2 9329  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  ax-pre-sup 10880
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-rmo 3071  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-disj 5036  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-se 5536  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-isom 6427  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-2o 8268  df-oadd 8271  df-er 8456  df-en 8692  df-dom 8693  df-sdom 8694  df-fin 8695  df-sup 9131  df-oi 9199  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-div 11563  df-nn 11904  df-2 11966  df-3 11967  df-n0 12164  df-xnn0 12236  df-z 12250  df-uz 12512  df-rp 12660  df-fz 13169  df-fzo 13312  df-seq 13650  df-exp 13711  df-hash 13973  df-cj 14738  df-re 14739  df-im 14740  df-sqrt 14874  df-abs 14875  df-clim 15125  df-sum 15326  df-edg 27321  df-uhgr 27331  df-upgr 27355
This theorem is referenced by:  finsumvtxdg2ssteplem3  27817
  Copyright terms: Public domain W3C validator