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

Theorem numedglnl 27514
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 8962 . . . . . . 7 (𝑉 ∈ Fin → (𝑉 ∖ {𝑁}) ∈ Fin)
21adantr 481 . . . . . 6 ((𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) → (𝑉 ∖ {𝑁}) ∈ Fin)
323ad2ant2 1133 . . . . 5 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → (𝑉 ∖ {𝑁}) ∈ Fin)
4 dmfi 9097 . . . . . . . . 9 (𝐸 ∈ Fin → dom 𝐸 ∈ Fin)
5 rabfi 9044 . . . . . . . . 9 (dom 𝐸 ∈ Fin → {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin)
64, 5syl 17 . . . . . . . 8 (𝐸 ∈ Fin → {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin)
76adantl 482 . . . . . . 7 ((𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) → {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin)
873ad2ant2 1133 . . . . . 6 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin)
98adantr 481 . . . . 5 (((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ 𝑣 ∈ (𝑉 ∖ {𝑁})) → {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin)
10 notnotb 315 . . . . . . . . . . . . . 14 (𝑁 ∈ (𝐸𝑖) ↔ ¬ ¬ 𝑁 ∈ (𝐸𝑖))
11 notnotb 315 . . . . . . . . . . . . . . . . 17 (𝑣 ∈ (𝐸𝑖) ↔ ¬ ¬ 𝑣 ∈ (𝐸𝑖))
12 upgruhgr 27472 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (𝐺 ∈ UPGraph → 𝐺 ∈ UHGraph)
13 edglnl.e . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 𝐸 = (iEdg‘𝐺)
1413uhgrfun 27436 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (𝐺 ∈ UHGraph → Fun 𝐸)
1512, 14syl 17 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝐺 ∈ UPGraph → Fun 𝐸)
1613iedgedg 27420 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((Fun 𝐸𝑖 ∈ dom 𝐸) → (𝐸𝑖) ∈ (Edg‘𝐺))
1715, 16sylan 580 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝐺 ∈ UPGraph ∧ 𝑖 ∈ dom 𝐸) → (𝐸𝑖) ∈ (Edg‘𝐺))
18 edglnl.v . . . . . . . . . . . . . . . . . . . . . . . . . 26 𝑉 = (Vtx‘𝐺)
19 eqid 2738 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (Edg‘𝐺) = (Edg‘𝐺)
2018, 19upgredg 27507 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝐺 ∈ UPGraph ∧ (𝐸𝑖) ∈ (Edg‘𝐺)) → ∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛})
2117, 20syldan 591 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝐺 ∈ UPGraph ∧ 𝑖 ∈ dom 𝐸) → ∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛})
2221ex 413 . . . . . . . . . . . . . . . . . . . . . . 23 (𝐺 ∈ UPGraph → (𝑖 ∈ dom 𝐸 → ∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛}))
23223ad2ant1 1132 . . . . . . . . . . . . . . . . . . . . . 22 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → (𝑖 ∈ dom 𝐸 → ∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛}))
2423adantr 481 . . . . . . . . . . . . . . . . . . . . 21 (((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) → (𝑖 ∈ dom 𝐸 → ∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛}))
2524adantr 481 . . . . . . . . . . . . . . . . . . . 20 ((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) → (𝑖 ∈ dom 𝐸 → ∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛}))
2625imp 407 . . . . . . . . . . . . . . . . . . 19 (((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) → ∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛})
27 eldifsni 4723 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑣 ∈ (𝑉 ∖ {𝑁}) → 𝑣𝑁)
28 eldifsni 4723 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑤 ∈ (𝑉 ∖ {𝑁}) → 𝑤𝑁)
29 3elpr2eq 4838 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 (((𝑁 ∈ {𝑚, 𝑛} ∧ 𝑣 ∈ {𝑚, 𝑛} ∧ 𝑤 ∈ {𝑚, 𝑛}) ∧ (𝑣𝑁𝑤𝑁)) → 𝑣 = 𝑤)
3029expcom 414 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 ((𝑣𝑁𝑤𝑁) → ((𝑁 ∈ {𝑚, 𝑛} ∧ 𝑣 ∈ {𝑚, 𝑛} ∧ 𝑤 ∈ {𝑚, 𝑛}) → 𝑣 = 𝑤))
31303expd 1352 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 ((𝑣𝑁𝑤𝑁) → (𝑁 ∈ {𝑚, 𝑛} → (𝑣 ∈ {𝑚, 𝑛} → (𝑤 ∈ {𝑚, 𝑛} → 𝑣 = 𝑤))))
3231com23 86 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((𝑣𝑁𝑤𝑁) → (𝑣 ∈ {𝑚, 𝑛} → (𝑁 ∈ {𝑚, 𝑛} → (𝑤 ∈ {𝑚, 𝑛} → 𝑣 = 𝑤))))
33323imp 1110 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (((𝑣𝑁𝑤𝑁) ∧ 𝑣 ∈ {𝑚, 𝑛} ∧ 𝑁 ∈ {𝑚, 𝑛}) → (𝑤 ∈ {𝑚, 𝑛} → 𝑣 = 𝑤))
3433con3d 152 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (((𝑣𝑁𝑤𝑁) ∧ 𝑣 ∈ {𝑚, 𝑛} ∧ 𝑁 ∈ {𝑚, 𝑛}) → (¬ 𝑣 = 𝑤 → ¬ 𝑤 ∈ {𝑚, 𝑛}))
35343exp 1118 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝑣𝑁𝑤𝑁) → (𝑣 ∈ {𝑚, 𝑛} → (𝑁 ∈ {𝑚, 𝑛} → (¬ 𝑣 = 𝑤 → ¬ 𝑤 ∈ {𝑚, 𝑛}))))
3635com24 95 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑣𝑁𝑤𝑁) → (¬ 𝑣 = 𝑤 → (𝑁 ∈ {𝑚, 𝑛} → (𝑣 ∈ {𝑚, 𝑛} → ¬ 𝑤 ∈ {𝑚, 𝑛}))))
3736imp 407 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝑣𝑁𝑤𝑁) ∧ ¬ 𝑣 = 𝑤) → (𝑁 ∈ {𝑚, 𝑛} → (𝑣 ∈ {𝑚, 𝑛} → ¬ 𝑤 ∈ {𝑚, 𝑛})))
38 eleq2 2827 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝐸𝑖) = {𝑚, 𝑛} → (𝑁 ∈ (𝐸𝑖) ↔ 𝑁 ∈ {𝑚, 𝑛}))
39 eleq2 2827 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝐸𝑖) = {𝑚, 𝑛} → (𝑣 ∈ (𝐸𝑖) ↔ 𝑣 ∈ {𝑚, 𝑛}))
40 eleq2 2827 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝐸𝑖) = {𝑚, 𝑛} → (𝑤 ∈ (𝐸𝑖) ↔ 𝑤 ∈ {𝑚, 𝑛}))
4140notbid 318 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝐸𝑖) = {𝑚, 𝑛} → (¬ 𝑤 ∈ (𝐸𝑖) ↔ ¬ 𝑤 ∈ {𝑚, 𝑛}))
4239, 41imbi12d 345 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝐸𝑖) = {𝑚, 𝑛} → ((𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖)) ↔ (𝑣 ∈ {𝑚, 𝑛} → ¬ 𝑤 ∈ {𝑚, 𝑛})))
4338, 42imbi12d 345 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝐸𝑖) = {𝑚, 𝑛} → ((𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖))) ↔ (𝑁 ∈ {𝑚, 𝑛} → (𝑣 ∈ {𝑚, 𝑛} → ¬ 𝑤 ∈ {𝑚, 𝑛}))))
4437, 43syl5ibrcom 246 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑣𝑁𝑤𝑁) ∧ ¬ 𝑣 = 𝑤) → ((𝐸𝑖) = {𝑚, 𝑛} → (𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖)))))
4544adantr 481 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((((𝑣𝑁𝑤𝑁) ∧ ¬ 𝑣 = 𝑤) ∧ (𝑚𝑉𝑛𝑉)) → ((𝐸𝑖) = {𝑚, 𝑛} → (𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖)))))
4645rexlimdvva 3223 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑣𝑁𝑤𝑁) ∧ ¬ 𝑣 = 𝑤) → (∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛} → (𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖)))))
4746ex 413 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑣𝑁𝑤𝑁) → (¬ 𝑣 = 𝑤 → (∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛} → (𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖))))))
4827, 28, 47syl2an 596 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁})) → (¬ 𝑣 = 𝑤 → (∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛} → (𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖))))))
4948adantl 482 . . . . . . . . . . . . . . . . . . . . 21 (((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) → (¬ 𝑣 = 𝑤 → (∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛} → (𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖))))))
5049imp 407 . . . . . . . . . . . . . . . . . . . 20 ((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) → (∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛} → (𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖)))))
5150adantr 481 . . . . . . . . . . . . . . . . . . 19 (((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) → (∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛} → (𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖)))))
5226, 51mpd 15 . . . . . . . . . . . . . . . . . 18 (((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) → (𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖))))
5352imp 407 . . . . . . . . . . . . . . . . 17 ((((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) ∧ 𝑁 ∈ (𝐸𝑖)) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖)))
5411, 53syl5bir 242 . . . . . . . . . . . . . . . 16 ((((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) ∧ 𝑁 ∈ (𝐸𝑖)) → (¬ ¬ 𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖)))
5554orrd 860 . . . . . . . . . . . . . . 15 ((((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) ∧ 𝑁 ∈ (𝐸𝑖)) → (¬ 𝑣 ∈ (𝐸𝑖) ∨ ¬ 𝑤 ∈ (𝐸𝑖)))
5655ex 413 . . . . . . . . . . . . . 14 (((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) → (𝑁 ∈ (𝐸𝑖) → (¬ 𝑣 ∈ (𝐸𝑖) ∨ ¬ 𝑤 ∈ (𝐸𝑖))))
5710, 56syl5bir 242 . . . . . . . . . . . . 13 (((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) → (¬ ¬ 𝑁 ∈ (𝐸𝑖) → (¬ 𝑣 ∈ (𝐸𝑖) ∨ ¬ 𝑤 ∈ (𝐸𝑖))))
5857orrd 860 . . . . . . . . . . . 12 (((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) → (¬ 𝑁 ∈ (𝐸𝑖) ∨ (¬ 𝑣 ∈ (𝐸𝑖) ∨ ¬ 𝑤 ∈ (𝐸𝑖))))
59 anandi 673 . . . . . . . . . . . . . . 15 ((𝑁 ∈ (𝐸𝑖) ∧ (𝑣 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))) ↔ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))))
6059bicomi 223 . . . . . . . . . . . . . 14 (((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))) ↔ (𝑁 ∈ (𝐸𝑖) ∧ (𝑣 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))))
6160notbii 320 . . . . . . . . . . . . 13 (¬ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))) ↔ ¬ (𝑁 ∈ (𝐸𝑖) ∧ (𝑣 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))))
62 ianor 979 . . . . . . . . . . . . 13 (¬ (𝑁 ∈ (𝐸𝑖) ∧ (𝑣 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))) ↔ (¬ 𝑁 ∈ (𝐸𝑖) ∨ ¬ (𝑣 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))))
63 ianor 979 . . . . . . . . . . . . . 14 (¬ (𝑣 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖)) ↔ (¬ 𝑣 ∈ (𝐸𝑖) ∨ ¬ 𝑤 ∈ (𝐸𝑖)))
6463orbi2i 910 . . . . . . . . . . . . 13 ((¬ 𝑁 ∈ (𝐸𝑖) ∨ ¬ (𝑣 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))) ↔ (¬ 𝑁 ∈ (𝐸𝑖) ∨ (¬ 𝑣 ∈ (𝐸𝑖) ∨ ¬ 𝑤 ∈ (𝐸𝑖))))
6561, 62, 643bitri 297 . . . . . . . . . . . 12 (¬ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))) ↔ (¬ 𝑁 ∈ (𝐸𝑖) ∨ (¬ 𝑣 ∈ (𝐸𝑖) ∨ ¬ 𝑤 ∈ (𝐸𝑖))))
6658, 65sylibr 233 . . . . . . . . . . 11 (((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) → ¬ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))))
6766ralrimiva 3103 . . . . . . . . . 10 ((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) → ∀𝑖 ∈ dom 𝐸 ¬ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))))
68 inrab 4240 . . . . . . . . . . . 12 ({𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))}) = {𝑖 ∈ dom 𝐸 ∣ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖)))}
6968eqeq1i 2743 . . . . . . . . . . 11 (({𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))}) = ∅ ↔ {𝑖 ∈ dom 𝐸 ∣ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖)))} = ∅)
70 rabeq0 4318 . . . . . . . . . . 11 ({𝑖 ∈ dom 𝐸 ∣ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖)))} = ∅ ↔ ∀𝑖 ∈ dom 𝐸 ¬ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))))
7169, 70bitri 274 . . . . . . . . . 10 (({𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))}) = ∅ ↔ ∀𝑖 ∈ dom 𝐸 ¬ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))))
7267, 71sylibr 233 . . . . . . . . 9 ((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) → ({𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))}) = ∅)
7372ex 413 . . . . . . . 8 (((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) → (¬ 𝑣 = 𝑤 → ({𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))}) = ∅))
7473orrd 860 . . . . . . 7 (((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) → (𝑣 = 𝑤 ∨ ({𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))}) = ∅))
7574ralrimivva 3123 . . . . . 6 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → ∀𝑣 ∈ (𝑉 ∖ {𝑁})∀𝑤 ∈ (𝑉 ∖ {𝑁})(𝑣 = 𝑤 ∨ ({𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))}) = ∅))
76 eleq1w 2821 . . . . . . . . 9 (𝑣 = 𝑤 → (𝑣 ∈ (𝐸𝑖) ↔ 𝑤 ∈ (𝐸𝑖)))
7776anbi2d 629 . . . . . . . 8 (𝑣 = 𝑤 → ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ↔ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))))
7877rabbidv 3414 . . . . . . 7 (𝑣 = 𝑤 → {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} = {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))})
7978disjor 5054 . . . . . 6 (Disj 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ↔ ∀𝑣 ∈ (𝑉 ∖ {𝑁})∀𝑤 ∈ (𝑉 ∖ {𝑁})(𝑣 = 𝑤 ∨ ({𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))}) = ∅))
8075, 79sylibr 233 . . . . 5 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → Disj 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))})
813, 9, 80hashiun 15534 . . . 4 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → (♯‘ 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}) = Σ𝑣 ∈ (𝑉 ∖ {𝑁})(♯‘{𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}))
8281eqcomd 2744 . . 3 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → Σ𝑣 ∈ (𝑉 ∖ {𝑁})(♯‘{𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}) = (♯‘ 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}))
8382oveq1d 7290 . 2 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → (Σ𝑣 ∈ (𝑉 ∖ {𝑁})(♯‘{𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}) + (♯‘{𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}})) = ((♯‘ 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}) + (♯‘{𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}})))
849ralrimiva 3103 . . . 4 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → ∀𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin)
85 iunfi 9107 . . . 4 (((𝑉 ∖ {𝑁}) ∈ Fin ∧ ∀𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin) → 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin)
863, 84, 85syl2anc 584 . . 3 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin)
87 rabfi 9044 . . . . . 6 (dom 𝐸 ∈ Fin → {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}} ∈ Fin)
884, 87syl 17 . . . . 5 (𝐸 ∈ Fin → {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}} ∈ Fin)
8988adantl 482 . . . 4 ((𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) → {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}} ∈ Fin)
90893ad2ant2 1133 . . 3 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}} ∈ Fin)
91 fveqeq2 6783 . . . . . . 7 (𝑖 = 𝑗 → ((𝐸𝑖) = {𝑁} ↔ (𝐸𝑗) = {𝑁}))
9291elrab 3624 . . . . . 6 (𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}} ↔ (𝑗 ∈ dom 𝐸 ∧ (𝐸𝑗) = {𝑁}))
93 eldifn 4062 . . . . . . . . . . . . . . 15 (𝑣 ∈ (𝑉 ∖ {𝑁}) → ¬ 𝑣 ∈ {𝑁})
94 eleq2 2827 . . . . . . . . . . . . . . . 16 ((𝐸𝑗) = {𝑁} → (𝑣 ∈ (𝐸𝑗) ↔ 𝑣 ∈ {𝑁}))
9594notbid 318 . . . . . . . . . . . . . . 15 ((𝐸𝑗) = {𝑁} → (¬ 𝑣 ∈ (𝐸𝑗) ↔ ¬ 𝑣 ∈ {𝑁}))
9693, 95syl5ibr 245 . . . . . . . . . . . . . 14 ((𝐸𝑗) = {𝑁} → (𝑣 ∈ (𝑉 ∖ {𝑁}) → ¬ 𝑣 ∈ (𝐸𝑗)))
9796adantl 482 . . . . . . . . . . . . 13 ((𝑗 ∈ dom 𝐸 ∧ (𝐸𝑗) = {𝑁}) → (𝑣 ∈ (𝑉 ∖ {𝑁}) → ¬ 𝑣 ∈ (𝐸𝑗)))
9897adantl 482 . . . . . . . . . . . 12 (((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑗 ∈ dom 𝐸 ∧ (𝐸𝑗) = {𝑁})) → (𝑣 ∈ (𝑉 ∖ {𝑁}) → ¬ 𝑣 ∈ (𝐸𝑗)))
9998imp 407 . . . . . . . . . . 11 ((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑗 ∈ dom 𝐸 ∧ (𝐸𝑗) = {𝑁})) ∧ 𝑣 ∈ (𝑉 ∖ {𝑁})) → ¬ 𝑣 ∈ (𝐸𝑗))
10099intnand 489 . . . . . . . . . 10 ((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑗 ∈ dom 𝐸 ∧ (𝐸𝑗) = {𝑁})) ∧ 𝑣 ∈ (𝑉 ∖ {𝑁})) → ¬ (𝑁 ∈ (𝐸𝑗) ∧ 𝑣 ∈ (𝐸𝑗)))
101100intnand 489 . . . . . . . . 9 ((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑗 ∈ dom 𝐸 ∧ (𝐸𝑗) = {𝑁})) ∧ 𝑣 ∈ (𝑉 ∖ {𝑁})) → ¬ (𝑗 ∈ dom 𝐸 ∧ (𝑁 ∈ (𝐸𝑗) ∧ 𝑣 ∈ (𝐸𝑗))))
102101ralrimiva 3103 . . . . . . . 8 (((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑗 ∈ dom 𝐸 ∧ (𝐸𝑗) = {𝑁})) → ∀𝑣 ∈ (𝑉 ∖ {𝑁}) ¬ (𝑗 ∈ dom 𝐸 ∧ (𝑁 ∈ (𝐸𝑗) ∧ 𝑣 ∈ (𝐸𝑗))))
103 eliun 4928 . . . . . . . . . 10 (𝑗 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ↔ ∃𝑣 ∈ (𝑉 ∖ {𝑁})𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))})
104103notbii 320 . . . . . . . . 9 𝑗 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ↔ ¬ ∃𝑣 ∈ (𝑉 ∖ {𝑁})𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))})
105 ralnex 3167 . . . . . . . . 9 (∀𝑣 ∈ (𝑉 ∖ {𝑁}) ¬ 𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ↔ ¬ ∃𝑣 ∈ (𝑉 ∖ {𝑁})𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))})
106 fveq2 6774 . . . . . . . . . . . . . 14 (𝑖 = 𝑗 → (𝐸𝑖) = (𝐸𝑗))
107106eleq2d 2824 . . . . . . . . . . . . 13 (𝑖 = 𝑗 → (𝑁 ∈ (𝐸𝑖) ↔ 𝑁 ∈ (𝐸𝑗)))
108106eleq2d 2824 . . . . . . . . . . . . 13 (𝑖 = 𝑗 → (𝑣 ∈ (𝐸𝑖) ↔ 𝑣 ∈ (𝐸𝑗)))
109107, 108anbi12d 631 . . . . . . . . . . . 12 (𝑖 = 𝑗 → ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ↔ (𝑁 ∈ (𝐸𝑗) ∧ 𝑣 ∈ (𝐸𝑗))))
110109elrab 3624 . . . . . . . . . . 11 (𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ↔ (𝑗 ∈ dom 𝐸 ∧ (𝑁 ∈ (𝐸𝑗) ∧ 𝑣 ∈ (𝐸𝑗))))
111110notbii 320 . . . . . . . . . 10 𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ↔ ¬ (𝑗 ∈ dom 𝐸 ∧ (𝑁 ∈ (𝐸𝑗) ∧ 𝑣 ∈ (𝐸𝑗))))
112111ralbii 3092 . . . . . . . . 9 (∀𝑣 ∈ (𝑉 ∖ {𝑁}) ¬ 𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ↔ ∀𝑣 ∈ (𝑉 ∖ {𝑁}) ¬ (𝑗 ∈ dom 𝐸 ∧ (𝑁 ∈ (𝐸𝑗) ∧ 𝑣 ∈ (𝐸𝑗))))
113104, 105, 1123bitr2i 299 . . . . . . . 8 𝑗 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ↔ ∀𝑣 ∈ (𝑉 ∖ {𝑁}) ¬ (𝑗 ∈ dom 𝐸 ∧ (𝑁 ∈ (𝐸𝑗) ∧ 𝑣 ∈ (𝐸𝑗))))
114102, 113sylibr 233 . . . . . . 7 (((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑗 ∈ dom 𝐸 ∧ (𝐸𝑗) = {𝑁})) → ¬ 𝑗 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))})
115114ex 413 . . . . . 6 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → ((𝑗 ∈ dom 𝐸 ∧ (𝐸𝑗) = {𝑁}) → ¬ 𝑗 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}))
11692, 115syl5bi 241 . . . . 5 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → (𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}} → ¬ 𝑗 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}))
117116ralrimiv 3102 . . . 4 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → ∀𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}} ¬ 𝑗 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))})
118 disjr 4383 . . . 4 (( 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}}) = ∅ ↔ ∀𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}} ¬ 𝑗 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))})
119117, 118sylibr 233 . . 3 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → ( 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}}) = ∅)
120 hashun 14097 . . 3 (( 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin ∧ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}} ∈ Fin ∧ ( 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}}) = ∅) → (♯‘( 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∪ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}})) = ((♯‘ 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}) + (♯‘{𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}})))
12186, 90, 119, 120syl3anc 1370 . 2 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → (♯‘( 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∪ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}})) = ((♯‘ 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}) + (♯‘{𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}})))
12218, 13edglnl 27513 . . . 4 ((𝐺 ∈ UPGraph ∧ 𝑁𝑉) → ( 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∪ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}}) = {𝑖 ∈ dom 𝐸𝑁 ∈ (𝐸𝑖)})
1231223adant2 1130 . . 3 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → ( 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∪ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}}) = {𝑖 ∈ dom 𝐸𝑁 ∈ (𝐸𝑖)})
124123fveq2d 6778 . 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 396  wo 844  w3a 1086   = wceq 1539  wcel 2106  wne 2943  wral 3064  wrex 3065  {crab 3068  cdif 3884  cun 3885  cin 3886  c0 4256  {csn 4561  {cpr 4563   ciun 4924  Disj wdisj 5039  dom cdm 5589  Fun wfun 6427  cfv 6433  (class class class)co 7275  Fincfn 8733   + caddc 10874  chash 14044  Σcsu 15397  Vtxcvtx 27366  iEdgciedg 27367  Edgcedg 27417  UHGraphcuhgr 27426  UPGraphcupgr 27450
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-rep 5209  ax-sep 5223  ax-nul 5230  ax-pow 5288  ax-pr 5352  ax-un 7588  ax-inf2 9399  ax-cnex 10927  ax-resscn 10928  ax-1cn 10929  ax-icn 10930  ax-addcl 10931  ax-addrcl 10932  ax-mulcl 10933  ax-mulrcl 10934  ax-mulcom 10935  ax-addass 10936  ax-mulass 10937  ax-distr 10938  ax-i2m1 10939  ax-1ne0 10940  ax-1rid 10941  ax-rnegex 10942  ax-rrecex 10943  ax-cnre 10944  ax-pre-lttri 10945  ax-pre-lttrn 10946  ax-pre-ltadd 10947  ax-pre-mulgt0 10948  ax-pre-sup 10949
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-nel 3050  df-ral 3069  df-rex 3070  df-rmo 3071  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-pss 3906  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-int 4880  df-iun 4926  df-disj 5040  df-br 5075  df-opab 5137  df-mpt 5158  df-tr 5192  df-id 5489  df-eprel 5495  df-po 5503  df-so 5504  df-fr 5544  df-se 5545  df-we 5546  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-pred 6202  df-ord 6269  df-on 6270  df-lim 6271  df-suc 6272  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-isom 6442  df-riota 7232  df-ov 7278  df-oprab 7279  df-mpo 7280  df-om 7713  df-1st 7831  df-2nd 7832  df-frecs 8097  df-wrecs 8128  df-recs 8202  df-rdg 8241  df-1o 8297  df-2o 8298  df-oadd 8301  df-er 8498  df-en 8734  df-dom 8735  df-sdom 8736  df-fin 8737  df-sup 9201  df-oi 9269  df-dju 9659  df-card 9697  df-pnf 11011  df-mnf 11012  df-xr 11013  df-ltxr 11014  df-le 11015  df-sub 11207  df-neg 11208  df-div 11633  df-nn 11974  df-2 12036  df-3 12037  df-n0 12234  df-xnn0 12306  df-z 12320  df-uz 12583  df-rp 12731  df-fz 13240  df-fzo 13383  df-seq 13722  df-exp 13783  df-hash 14045  df-cj 14810  df-re 14811  df-im 14812  df-sqrt 14946  df-abs 14947  df-clim 15197  df-sum 15398  df-edg 27418  df-uhgr 27428  df-upgr 27452
This theorem is referenced by:  finsumvtxdg2ssteplem3  27914
  Copyright terms: Public domain W3C validator