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

Theorem numedglnl 26951
 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 8741 . . . . . . 7 (𝑉 ∈ Fin → (𝑉 ∖ {𝑁}) ∈ Fin)
21adantr 484 . . . . . 6 ((𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) → (𝑉 ∖ {𝑁}) ∈ Fin)
323ad2ant2 1131 . . . . 5 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → (𝑉 ∖ {𝑁}) ∈ Fin)
4 dmfi 8793 . . . . . . . . 9 (𝐸 ∈ Fin → dom 𝐸 ∈ Fin)
5 rabfi 8734 . . . . . . . . 9 (dom 𝐸 ∈ Fin → {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin)
64, 5syl 17 . . . . . . . 8 (𝐸 ∈ Fin → {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin)
76adantl 485 . . . . . . 7 ((𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) → {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin)
873ad2ant2 1131 . . . . . 6 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin)
98adantr 484 . . . . 5 (((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ 𝑣 ∈ (𝑉 ∖ {𝑁})) → {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin)
10 notnotb 318 . . . . . . . . . . . . . 14 (𝑁 ∈ (𝐸𝑖) ↔ ¬ ¬ 𝑁 ∈ (𝐸𝑖))
11 notnotb 318 . . . . . . . . . . . . . . . . 17 (𝑣 ∈ (𝐸𝑖) ↔ ¬ ¬ 𝑣 ∈ (𝐸𝑖))
12 upgruhgr 26909 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (𝐺 ∈ UPGraph → 𝐺 ∈ UHGraph)
13 edglnl.e . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 𝐸 = (iEdg‘𝐺)
1413uhgrfun 26873 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (𝐺 ∈ UHGraph → Fun 𝐸)
1512, 14syl 17 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝐺 ∈ UPGraph → Fun 𝐸)
1613iedgedg 26857 . . . . . . . . . . . . . . . . . . . . . . . . . 26 ((Fun 𝐸𝑖 ∈ dom 𝐸) → (𝐸𝑖) ∈ (Edg‘𝐺))
1715, 16sylan 583 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝐺 ∈ UPGraph ∧ 𝑖 ∈ dom 𝐸) → (𝐸𝑖) ∈ (Edg‘𝐺))
18 edglnl.v . . . . . . . . . . . . . . . . . . . . . . . . . 26 𝑉 = (Vtx‘𝐺)
19 eqid 2798 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (Edg‘𝐺) = (Edg‘𝐺)
2018, 19upgredg 26944 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝐺 ∈ UPGraph ∧ (𝐸𝑖) ∈ (Edg‘𝐺)) → ∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛})
2117, 20syldan 594 . . . . . . . . . . . . . . . . . . . . . . . 24 ((𝐺 ∈ UPGraph ∧ 𝑖 ∈ dom 𝐸) → ∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛})
2221ex 416 . . . . . . . . . . . . . . . . . . . . . . 23 (𝐺 ∈ UPGraph → (𝑖 ∈ dom 𝐸 → ∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛}))
23223ad2ant1 1130 . . . . . . . . . . . . . . . . . . . . . 22 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → (𝑖 ∈ dom 𝐸 → ∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛}))
2423adantr 484 . . . . . . . . . . . . . . . . . . . . 21 (((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) → (𝑖 ∈ dom 𝐸 → ∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛}))
2524adantr 484 . . . . . . . . . . . . . . . . . . . 20 ((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) → (𝑖 ∈ dom 𝐸 → ∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛}))
2625imp 410 . . . . . . . . . . . . . . . . . . 19 (((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) → ∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛})
27 eldifsni 4683 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑣 ∈ (𝑉 ∖ {𝑁}) → 𝑣𝑁)
28 eldifsni 4683 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑤 ∈ (𝑉 ∖ {𝑁}) → 𝑤𝑁)
29 3elpr2eq 4800 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 (((𝑁 ∈ {𝑚, 𝑛} ∧ 𝑣 ∈ {𝑚, 𝑛} ∧ 𝑤 ∈ {𝑚, 𝑛}) ∧ (𝑣𝑁𝑤𝑁)) → 𝑣 = 𝑤)
3029expcom 417 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 ((𝑣𝑁𝑤𝑁) → ((𝑁 ∈ {𝑚, 𝑛} ∧ 𝑣 ∈ {𝑚, 𝑛} ∧ 𝑤 ∈ {𝑚, 𝑛}) → 𝑣 = 𝑤))
31303expd 1350 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 ((𝑣𝑁𝑤𝑁) → (𝑁 ∈ {𝑚, 𝑛} → (𝑣 ∈ {𝑚, 𝑛} → (𝑤 ∈ {𝑚, 𝑛} → 𝑣 = 𝑤))))
3231com23 86 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 ((𝑣𝑁𝑤𝑁) → (𝑣 ∈ {𝑚, 𝑛} → (𝑁 ∈ {𝑚, 𝑛} → (𝑤 ∈ {𝑚, 𝑛} → 𝑣 = 𝑤))))
33323imp 1108 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 (((𝑣𝑁𝑤𝑁) ∧ 𝑣 ∈ {𝑚, 𝑛} ∧ 𝑁 ∈ {𝑚, 𝑛}) → (𝑤 ∈ {𝑚, 𝑛} → 𝑣 = 𝑤))
3433con3d 155 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 (((𝑣𝑁𝑤𝑁) ∧ 𝑣 ∈ {𝑚, 𝑛} ∧ 𝑁 ∈ {𝑚, 𝑛}) → (¬ 𝑣 = 𝑤 → ¬ 𝑤 ∈ {𝑚, 𝑛}))
35343exp 1116 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝑣𝑁𝑤𝑁) → (𝑣 ∈ {𝑚, 𝑛} → (𝑁 ∈ {𝑚, 𝑛} → (¬ 𝑣 = 𝑤 → ¬ 𝑤 ∈ {𝑚, 𝑛}))))
3635com24 95 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝑣𝑁𝑤𝑁) → (¬ 𝑣 = 𝑤 → (𝑁 ∈ {𝑚, 𝑛} → (𝑣 ∈ {𝑚, 𝑛} → ¬ 𝑤 ∈ {𝑚, 𝑛}))))
3736imp 410 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (((𝑣𝑁𝑤𝑁) ∧ ¬ 𝑣 = 𝑤) → (𝑁 ∈ {𝑚, 𝑛} → (𝑣 ∈ {𝑚, 𝑛} → ¬ 𝑤 ∈ {𝑚, 𝑛})))
38 eleq2 2878 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝐸𝑖) = {𝑚, 𝑛} → (𝑁 ∈ (𝐸𝑖) ↔ 𝑁 ∈ {𝑚, 𝑛}))
39 eleq2 2878 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝐸𝑖) = {𝑚, 𝑛} → (𝑣 ∈ (𝐸𝑖) ↔ 𝑣 ∈ {𝑚, 𝑛}))
40 eleq2 2878 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 ((𝐸𝑖) = {𝑚, 𝑛} → (𝑤 ∈ (𝐸𝑖) ↔ 𝑤 ∈ {𝑚, 𝑛}))
4140notbid 321 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 ((𝐸𝑖) = {𝑚, 𝑛} → (¬ 𝑤 ∈ (𝐸𝑖) ↔ ¬ 𝑤 ∈ {𝑚, 𝑛}))
4239, 41imbi12d 348 . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 ((𝐸𝑖) = {𝑚, 𝑛} → ((𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖)) ↔ (𝑣 ∈ {𝑚, 𝑛} → ¬ 𝑤 ∈ {𝑚, 𝑛})))
4338, 42imbi12d 348 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 ((𝐸𝑖) = {𝑚, 𝑛} → ((𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖))) ↔ (𝑁 ∈ {𝑚, 𝑛} → (𝑣 ∈ {𝑚, 𝑛} → ¬ 𝑤 ∈ {𝑚, 𝑛}))))
4437, 43syl5ibrcom 250 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (((𝑣𝑁𝑤𝑁) ∧ ¬ 𝑣 = 𝑤) → ((𝐸𝑖) = {𝑚, 𝑛} → (𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖)))))
4544adantr 484 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((((𝑣𝑁𝑤𝑁) ∧ ¬ 𝑣 = 𝑤) ∧ (𝑚𝑉𝑛𝑉)) → ((𝐸𝑖) = {𝑚, 𝑛} → (𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖)))))
4645rexlimdvva 3253 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝑣𝑁𝑤𝑁) ∧ ¬ 𝑣 = 𝑤) → (∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛} → (𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖)))))
4746ex 416 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑣𝑁𝑤𝑁) → (¬ 𝑣 = 𝑤 → (∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛} → (𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖))))))
4827, 28, 47syl2an 598 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁})) → (¬ 𝑣 = 𝑤 → (∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛} → (𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖))))))
4948adantl 485 . . . . . . . . . . . . . . . . . . . . 21 (((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) → (¬ 𝑣 = 𝑤 → (∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛} → (𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖))))))
5049imp 410 . . . . . . . . . . . . . . . . . . . 20 ((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) → (∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛} → (𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖)))))
5150adantr 484 . . . . . . . . . . . . . . . . . . 19 (((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) → (∃𝑚𝑉𝑛𝑉 (𝐸𝑖) = {𝑚, 𝑛} → (𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖)))))
5226, 51mpd 15 . . . . . . . . . . . . . . . . . 18 (((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) → (𝑁 ∈ (𝐸𝑖) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖))))
5352imp 410 . . . . . . . . . . . . . . . . 17 ((((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) ∧ 𝑁 ∈ (𝐸𝑖)) → (𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖)))
5411, 53syl5bir 246 . . . . . . . . . . . . . . . 16 ((((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) ∧ 𝑁 ∈ (𝐸𝑖)) → (¬ ¬ 𝑣 ∈ (𝐸𝑖) → ¬ 𝑤 ∈ (𝐸𝑖)))
5554orrd 860 . . . . . . . . . . . . . . 15 ((((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) ∧ 𝑁 ∈ (𝐸𝑖)) → (¬ 𝑣 ∈ (𝐸𝑖) ∨ ¬ 𝑤 ∈ (𝐸𝑖)))
5655ex 416 . . . . . . . . . . . . . 14 (((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) → (𝑁 ∈ (𝐸𝑖) → (¬ 𝑣 ∈ (𝐸𝑖) ∨ ¬ 𝑤 ∈ (𝐸𝑖))))
5710, 56syl5bir 246 . . . . . . . . . . . . 13 (((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) → (¬ ¬ 𝑁 ∈ (𝐸𝑖) → (¬ 𝑣 ∈ (𝐸𝑖) ∨ ¬ 𝑤 ∈ (𝐸𝑖))))
5857orrd 860 . . . . . . . . . . . 12 (((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) → (¬ 𝑁 ∈ (𝐸𝑖) ∨ (¬ 𝑣 ∈ (𝐸𝑖) ∨ ¬ 𝑤 ∈ (𝐸𝑖))))
59 anandi 675 . . . . . . . . . . . . . . 15 ((𝑁 ∈ (𝐸𝑖) ∧ (𝑣 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))) ↔ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))))
6059bicomi 227 . . . . . . . . . . . . . 14 (((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))) ↔ (𝑁 ∈ (𝐸𝑖) ∧ (𝑣 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))))
6160notbii 323 . . . . . . . . . . . . 13 (¬ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))) ↔ ¬ (𝑁 ∈ (𝐸𝑖) ∧ (𝑣 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))))
62 ianor 979 . . . . . . . . . . . . 13 (¬ (𝑁 ∈ (𝐸𝑖) ∧ (𝑣 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))) ↔ (¬ 𝑁 ∈ (𝐸𝑖) ∨ ¬ (𝑣 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))))
63 ianor 979 . . . . . . . . . . . . . 14 (¬ (𝑣 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖)) ↔ (¬ 𝑣 ∈ (𝐸𝑖) ∨ ¬ 𝑤 ∈ (𝐸𝑖)))
6463orbi2i 910 . . . . . . . . . . . . 13 ((¬ 𝑁 ∈ (𝐸𝑖) ∨ ¬ (𝑣 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))) ↔ (¬ 𝑁 ∈ (𝐸𝑖) ∨ (¬ 𝑣 ∈ (𝐸𝑖) ∨ ¬ 𝑤 ∈ (𝐸𝑖))))
6561, 62, 643bitri 300 . . . . . . . . . . . 12 (¬ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))) ↔ (¬ 𝑁 ∈ (𝐸𝑖) ∨ (¬ 𝑣 ∈ (𝐸𝑖) ∨ ¬ 𝑤 ∈ (𝐸𝑖))))
6658, 65sylibr 237 . . . . . . . . . . 11 (((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) ∧ 𝑖 ∈ dom 𝐸) → ¬ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))))
6766ralrimiva 3149 . . . . . . . . . 10 ((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) → ∀𝑖 ∈ dom 𝐸 ¬ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))))
68 inrab 4227 . . . . . . . . . . . 12 ({𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))}) = {𝑖 ∈ dom 𝐸 ∣ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖)))}
6968eqeq1i 2803 . . . . . . . . . . 11 (({𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))}) = ∅ ↔ {𝑖 ∈ dom 𝐸 ∣ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖)))} = ∅)
70 rabeq0 4292 . . . . . . . . . . 11 ({𝑖 ∈ dom 𝐸 ∣ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖)))} = ∅ ↔ ∀𝑖 ∈ dom 𝐸 ¬ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))))
7169, 70bitri 278 . . . . . . . . . 10 (({𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))}) = ∅ ↔ ∀𝑖 ∈ dom 𝐸 ¬ ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ∧ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))))
7267, 71sylibr 237 . . . . . . . . 9 ((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) ∧ ¬ 𝑣 = 𝑤) → ({𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))}) = ∅)
7372ex 416 . . . . . . . 8 (((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) → (¬ 𝑣 = 𝑤 → ({𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))}) = ∅))
7473orrd 860 . . . . . . 7 (((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑣 ∈ (𝑉 ∖ {𝑁}) ∧ 𝑤 ∈ (𝑉 ∖ {𝑁}))) → (𝑣 = 𝑤 ∨ ({𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))}) = ∅))
7574ralrimivva 3156 . . . . . 6 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → ∀𝑣 ∈ (𝑉 ∖ {𝑁})∀𝑤 ∈ (𝑉 ∖ {𝑁})(𝑣 = 𝑤 ∨ ({𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))}) = ∅))
76 eleq1w 2872 . . . . . . . . 9 (𝑣 = 𝑤 → (𝑣 ∈ (𝐸𝑖) ↔ 𝑤 ∈ (𝐸𝑖)))
7776anbi2d 631 . . . . . . . 8 (𝑣 = 𝑤 → ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ↔ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))))
7877rabbidv 3427 . . . . . . 7 (𝑣 = 𝑤 → {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} = {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))})
7978disjor 5011 . . . . . 6 (Disj 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ↔ ∀𝑣 ∈ (𝑉 ∖ {𝑁})∀𝑤 ∈ (𝑉 ∖ {𝑁})(𝑣 = 𝑤 ∨ ({𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑤 ∈ (𝐸𝑖))}) = ∅))
8075, 79sylibr 237 . . . . 5 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → Disj 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))})
813, 9, 80hashiun 15176 . . . 4 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → (♯‘ 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}) = Σ𝑣 ∈ (𝑉 ∖ {𝑁})(♯‘{𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}))
8281eqcomd 2804 . . 3 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → Σ𝑣 ∈ (𝑉 ∖ {𝑁})(♯‘{𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}) = (♯‘ 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}))
8382oveq1d 7155 . 2 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → (Σ𝑣 ∈ (𝑉 ∖ {𝑁})(♯‘{𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}) + (♯‘{𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}})) = ((♯‘ 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}) + (♯‘{𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}})))
849ralrimiva 3149 . . . 4 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → ∀𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin)
85 iunfi 8803 . . . 4 (((𝑉 ∖ {𝑁}) ∈ Fin ∧ ∀𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin) → 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin)
863, 84, 85syl2anc 587 . . 3 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin)
87 rabfi 8734 . . . . . 6 (dom 𝐸 ∈ Fin → {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}} ∈ Fin)
884, 87syl 17 . . . . 5 (𝐸 ∈ Fin → {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}} ∈ Fin)
8988adantl 485 . . . 4 ((𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) → {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}} ∈ Fin)
90893ad2ant2 1131 . . 3 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}} ∈ Fin)
91 fveqeq2 6659 . . . . . . 7 (𝑖 = 𝑗 → ((𝐸𝑖) = {𝑁} ↔ (𝐸𝑗) = {𝑁}))
9291elrab 3628 . . . . . 6 (𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}} ↔ (𝑗 ∈ dom 𝐸 ∧ (𝐸𝑗) = {𝑁}))
93 eldifn 4055 . . . . . . . . . . . . . . 15 (𝑣 ∈ (𝑉 ∖ {𝑁}) → ¬ 𝑣 ∈ {𝑁})
94 eleq2 2878 . . . . . . . . . . . . . . . 16 ((𝐸𝑗) = {𝑁} → (𝑣 ∈ (𝐸𝑗) ↔ 𝑣 ∈ {𝑁}))
9594notbid 321 . . . . . . . . . . . . . . 15 ((𝐸𝑗) = {𝑁} → (¬ 𝑣 ∈ (𝐸𝑗) ↔ ¬ 𝑣 ∈ {𝑁}))
9693, 95syl5ibr 249 . . . . . . . . . . . . . 14 ((𝐸𝑗) = {𝑁} → (𝑣 ∈ (𝑉 ∖ {𝑁}) → ¬ 𝑣 ∈ (𝐸𝑗)))
9796adantl 485 . . . . . . . . . . . . 13 ((𝑗 ∈ dom 𝐸 ∧ (𝐸𝑗) = {𝑁}) → (𝑣 ∈ (𝑉 ∖ {𝑁}) → ¬ 𝑣 ∈ (𝐸𝑗)))
9897adantl 485 . . . . . . . . . . . 12 (((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑗 ∈ dom 𝐸 ∧ (𝐸𝑗) = {𝑁})) → (𝑣 ∈ (𝑉 ∖ {𝑁}) → ¬ 𝑣 ∈ (𝐸𝑗)))
9998imp 410 . . . . . . . . . . 11 ((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑗 ∈ dom 𝐸 ∧ (𝐸𝑗) = {𝑁})) ∧ 𝑣 ∈ (𝑉 ∖ {𝑁})) → ¬ 𝑣 ∈ (𝐸𝑗))
10099intnand 492 . . . . . . . . . 10 ((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑗 ∈ dom 𝐸 ∧ (𝐸𝑗) = {𝑁})) ∧ 𝑣 ∈ (𝑉 ∖ {𝑁})) → ¬ (𝑁 ∈ (𝐸𝑗) ∧ 𝑣 ∈ (𝐸𝑗)))
101100intnand 492 . . . . . . . . 9 ((((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑗 ∈ dom 𝐸 ∧ (𝐸𝑗) = {𝑁})) ∧ 𝑣 ∈ (𝑉 ∖ {𝑁})) → ¬ (𝑗 ∈ dom 𝐸 ∧ (𝑁 ∈ (𝐸𝑗) ∧ 𝑣 ∈ (𝐸𝑗))))
102101ralrimiva 3149 . . . . . . . 8 (((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑗 ∈ dom 𝐸 ∧ (𝐸𝑗) = {𝑁})) → ∀𝑣 ∈ (𝑉 ∖ {𝑁}) ¬ (𝑗 ∈ dom 𝐸 ∧ (𝑁 ∈ (𝐸𝑗) ∧ 𝑣 ∈ (𝐸𝑗))))
103 eliun 4886 . . . . . . . . . 10 (𝑗 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ↔ ∃𝑣 ∈ (𝑉 ∖ {𝑁})𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))})
104103notbii 323 . . . . . . . . 9 𝑗 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ↔ ¬ ∃𝑣 ∈ (𝑉 ∖ {𝑁})𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))})
105 ralnex 3199 . . . . . . . . 9 (∀𝑣 ∈ (𝑉 ∖ {𝑁}) ¬ 𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ↔ ¬ ∃𝑣 ∈ (𝑉 ∖ {𝑁})𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))})
106 fveq2 6650 . . . . . . . . . . . . . 14 (𝑖 = 𝑗 → (𝐸𝑖) = (𝐸𝑗))
107106eleq2d 2875 . . . . . . . . . . . . 13 (𝑖 = 𝑗 → (𝑁 ∈ (𝐸𝑖) ↔ 𝑁 ∈ (𝐸𝑗)))
108106eleq2d 2875 . . . . . . . . . . . . 13 (𝑖 = 𝑗 → (𝑣 ∈ (𝐸𝑖) ↔ 𝑣 ∈ (𝐸𝑗)))
109107, 108anbi12d 633 . . . . . . . . . . . 12 (𝑖 = 𝑗 → ((𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖)) ↔ (𝑁 ∈ (𝐸𝑗) ∧ 𝑣 ∈ (𝐸𝑗))))
110109elrab 3628 . . . . . . . . . . 11 (𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ↔ (𝑗 ∈ dom 𝐸 ∧ (𝑁 ∈ (𝐸𝑗) ∧ 𝑣 ∈ (𝐸𝑗))))
111110notbii 323 . . . . . . . . . 10 𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ↔ ¬ (𝑗 ∈ dom 𝐸 ∧ (𝑁 ∈ (𝐸𝑗) ∧ 𝑣 ∈ (𝐸𝑗))))
112111ralbii 3133 . . . . . . . . 9 (∀𝑣 ∈ (𝑉 ∖ {𝑁}) ¬ 𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ↔ ∀𝑣 ∈ (𝑉 ∖ {𝑁}) ¬ (𝑗 ∈ dom 𝐸 ∧ (𝑁 ∈ (𝐸𝑗) ∧ 𝑣 ∈ (𝐸𝑗))))
113104, 105, 1123bitr2i 302 . . . . . . . 8 𝑗 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ↔ ∀𝑣 ∈ (𝑉 ∖ {𝑁}) ¬ (𝑗 ∈ dom 𝐸 ∧ (𝑁 ∈ (𝐸𝑗) ∧ 𝑣 ∈ (𝐸𝑗))))
114102, 113sylibr 237 . . . . . . 7 (((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) ∧ (𝑗 ∈ dom 𝐸 ∧ (𝐸𝑗) = {𝑁})) → ¬ 𝑗 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))})
115114ex 416 . . . . . 6 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → ((𝑗 ∈ dom 𝐸 ∧ (𝐸𝑗) = {𝑁}) → ¬ 𝑗 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}))
11692, 115syl5bi 245 . . . . 5 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → (𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}} → ¬ 𝑗 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}))
117116ralrimiv 3148 . . . 4 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → ∀𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}} ¬ 𝑗 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))})
118 disjr 4357 . . . 4 (( 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}}) = ∅ ↔ ∀𝑗 ∈ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}} ¬ 𝑗 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))})
119117, 118sylibr 237 . . 3 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → ( 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}}) = ∅)
120 hashun 13746 . . 3 (( 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∈ Fin ∧ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}} ∈ Fin ∧ ( 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∩ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}}) = ∅) → (♯‘( 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∪ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}})) = ((♯‘ 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}) + (♯‘{𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}})))
12186, 90, 119, 120syl3anc 1368 . 2 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → (♯‘( 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∪ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}})) = ((♯‘ 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}) + (♯‘{𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}})))
12218, 13edglnl 26950 . . . 4 ((𝐺 ∈ UPGraph ∧ 𝑁𝑉) → ( 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∪ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}}) = {𝑖 ∈ dom 𝐸𝑁 ∈ (𝐸𝑖)})
1231223adant2 1128 . . 3 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → ( 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∪ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}}) = {𝑖 ∈ dom 𝐸𝑁 ∈ (𝐸𝑖)})
124123fveq2d 6654 . 2 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → (♯‘( 𝑣 ∈ (𝑉 ∖ {𝑁}){𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))} ∪ {𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}})) = (♯‘{𝑖 ∈ dom 𝐸𝑁 ∈ (𝐸𝑖)}))
12583, 121, 1243eqtr2d 2839 1 ((𝐺 ∈ UPGraph ∧ (𝑉 ∈ Fin ∧ 𝐸 ∈ Fin) ∧ 𝑁𝑉) → (Σ𝑣 ∈ (𝑉 ∖ {𝑁})(♯‘{𝑖 ∈ dom 𝐸 ∣ (𝑁 ∈ (𝐸𝑖) ∧ 𝑣 ∈ (𝐸𝑖))}) + (♯‘{𝑖 ∈ dom 𝐸 ∣ (𝐸𝑖) = {𝑁}})) = (♯‘{𝑖 ∈ dom 𝐸𝑁 ∈ (𝐸𝑖)}))
 Colors of variables: wff setvar class Syntax hints:  ¬ wn 3   → wi 4   ∧ wa 399   ∨ wo 844   ∧ w3a 1084   = wceq 1538   ∈ wcel 2111   ≠ wne 2987  ∀wral 3106  ∃wrex 3107  {crab 3110   ∖ cdif 3878   ∪ cun 3879   ∩ cin 3880  ∅c0 4243  {csn 4525  {cpr 4527  ∪ ciun 4882  Disj wdisj 4996  dom cdm 5520  Fun wfun 6321  ‘cfv 6327  (class class class)co 7140  Fincfn 8499   + caddc 10536  ♯chash 13693  Σcsu 15041  Vtxcvtx 26803  iEdgciedg 26804  Edgcedg 26854  UHGraphcuhgr 26863  UPGraphcupgr 26887 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-rep 5155  ax-sep 5168  ax-nul 5175  ax-pow 5232  ax-pr 5296  ax-un 7448  ax-inf2 9095  ax-cnex 10589  ax-resscn 10590  ax-1cn 10591  ax-icn 10592  ax-addcl 10593  ax-addrcl 10594  ax-mulcl 10595  ax-mulrcl 10596  ax-mulcom 10597  ax-addass 10598  ax-mulass 10599  ax-distr 10600  ax-i2m1 10601  ax-1ne0 10602  ax-1rid 10603  ax-rnegex 10604  ax-rrecex 10605  ax-cnre 10606  ax-pre-lttri 10607  ax-pre-lttrn 10608  ax-pre-ltadd 10609  ax-pre-mulgt0 10610  ax-pre-sup 10611 This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-fal 1551  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-nel 3092  df-ral 3111  df-rex 3112  df-reu 3113  df-rmo 3114  df-rab 3115  df-v 3443  df-sbc 3721  df-csb 3829  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-pss 3900  df-nul 4244  df-if 4426  df-pw 4499  df-sn 4526  df-pr 4528  df-tp 4530  df-op 4532  df-uni 4802  df-int 4840  df-iun 4884  df-disj 4997  df-br 5032  df-opab 5094  df-mpt 5112  df-tr 5138  df-id 5426  df-eprel 5431  df-po 5439  df-so 5440  df-fr 5479  df-se 5480  df-we 5481  df-xp 5526  df-rel 5527  df-cnv 5528  df-co 5529  df-dm 5530  df-rn 5531  df-res 5532  df-ima 5533  df-pred 6119  df-ord 6165  df-on 6166  df-lim 6167  df-suc 6168  df-iota 6286  df-fun 6329  df-fn 6330  df-f 6331  df-f1 6332  df-fo 6333  df-f1o 6334  df-fv 6335  df-isom 6336  df-riota 7098  df-ov 7143  df-oprab 7144  df-mpo 7145  df-om 7568  df-1st 7678  df-2nd 7679  df-wrecs 7937  df-recs 7998  df-rdg 8036  df-1o 8092  df-2o 8093  df-oadd 8096  df-er 8279  df-en 8500  df-dom 8501  df-sdom 8502  df-fin 8503  df-sup 8897  df-oi 8965  df-dju 9321  df-card 9359  df-pnf 10673  df-mnf 10674  df-xr 10675  df-ltxr 10676  df-le 10677  df-sub 10868  df-neg 10869  df-div 11294  df-nn 11633  df-2 11695  df-3 11696  df-n0 11893  df-xnn0 11963  df-z 11977  df-uz 12239  df-rp 12385  df-fz 12893  df-fzo 13036  df-seq 13372  df-exp 13433  df-hash 13694  df-cj 14457  df-re 14458  df-im 14459  df-sqrt 14593  df-abs 14594  df-clim 14844  df-sum 15042  df-edg 26855  df-uhgr 26865  df-upgr 26889 This theorem is referenced by:  finsumvtxdg2ssteplem3  27351
 Copyright terms: Public domain W3C validator