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

Theorem 1egrvtxdg1 26962
Description: The vertex degree of a one-edge graph, case 2: an edge from the given vertex to some other vertex contributes one to the vertex's degree. (Contributed by Mario Carneiro, 12-Mar-2015.) (Revised by Alexander van der Vekens, 22-Dec-2017.) (Revised by AV, 21-Feb-2021.)
Hypotheses
Ref Expression
1egrvtxdg1.v (𝜑 → (Vtx‘𝐺) = 𝑉)
1egrvtxdg1.a (𝜑𝐴𝑋)
1egrvtxdg1.b (𝜑𝐵𝑉)
1egrvtxdg1.c (𝜑𝐶𝑉)
1egrvtxdg1.n (𝜑𝐵𝐶)
1egrvtxdg1.i (𝜑 → (iEdg‘𝐺) = {⟨𝐴, {𝐵, 𝐶}⟩})
Assertion
Ref Expression
1egrvtxdg1 (𝜑 → ((VtxDeg‘𝐺)‘𝐵) = 1)

Proof of Theorem 1egrvtxdg1
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 eqid 2793 . . . 4 (Vtx‘𝐺) = (Vtx‘𝐺)
2 1egrvtxdg1.a . . . 4 (𝜑𝐴𝑋)
3 1egrvtxdg1.b . . . . 5 (𝜑𝐵𝑉)
4 1egrvtxdg1.v . . . . 5 (𝜑 → (Vtx‘𝐺) = 𝑉)
53, 4eleqtrrd 2884 . . . 4 (𝜑𝐵 ∈ (Vtx‘𝐺))
6 1egrvtxdg1.c . . . . 5 (𝜑𝐶𝑉)
76, 4eleqtrrd 2884 . . . 4 (𝜑𝐶 ∈ (Vtx‘𝐺))
8 1egrvtxdg1.i . . . 4 (𝜑 → (iEdg‘𝐺) = {⟨𝐴, {𝐵, 𝐶}⟩})
9 1egrvtxdg1.n . . . 4 (𝜑𝐵𝐶)
101, 2, 5, 7, 8, 9usgr1e 26698 . . 3 (𝜑𝐺 ∈ USGraph)
11 eqid 2793 . . . 4 (iEdg‘𝐺) = (iEdg‘𝐺)
12 eqid 2793 . . . 4 dom (iEdg‘𝐺) = dom (iEdg‘𝐺)
13 eqid 2793 . . . 4 (VtxDeg‘𝐺) = (VtxDeg‘𝐺)
141, 11, 12, 13vtxdusgrval 26940 . . 3 ((𝐺 ∈ USGraph ∧ 𝐵 ∈ (Vtx‘𝐺)) → ((VtxDeg‘𝐺)‘𝐵) = (♯‘{𝑥 ∈ dom (iEdg‘𝐺) ∣ 𝐵 ∈ ((iEdg‘𝐺)‘𝑥)}))
1510, 5, 14syl2anc 584 . 2 (𝜑 → ((VtxDeg‘𝐺)‘𝐵) = (♯‘{𝑥 ∈ dom (iEdg‘𝐺) ∣ 𝐵 ∈ ((iEdg‘𝐺)‘𝑥)}))
16 dmeq 5650 . . . . . . . 8 ((iEdg‘𝐺) = {⟨𝐴, {𝐵, 𝐶}⟩} → dom (iEdg‘𝐺) = dom {⟨𝐴, {𝐵, 𝐶}⟩})
1716adantl 482 . . . . . . 7 ((𝜑 ∧ (iEdg‘𝐺) = {⟨𝐴, {𝐵, 𝐶}⟩}) → dom (iEdg‘𝐺) = dom {⟨𝐴, {𝐵, 𝐶}⟩})
18 prex 5217 . . . . . . . 8 {𝐵, 𝐶} ∈ V
19 dmsnopg 5937 . . . . . . . 8 ({𝐵, 𝐶} ∈ V → dom {⟨𝐴, {𝐵, 𝐶}⟩} = {𝐴})
2018, 19mp1i 13 . . . . . . 7 ((𝜑 ∧ (iEdg‘𝐺) = {⟨𝐴, {𝐵, 𝐶}⟩}) → dom {⟨𝐴, {𝐵, 𝐶}⟩} = {𝐴})
2117, 20eqtrd 2829 . . . . . 6 ((𝜑 ∧ (iEdg‘𝐺) = {⟨𝐴, {𝐵, 𝐶}⟩}) → dom (iEdg‘𝐺) = {𝐴})
22 fveq1 6529 . . . . . . . 8 ((iEdg‘𝐺) = {⟨𝐴, {𝐵, 𝐶}⟩} → ((iEdg‘𝐺)‘𝑥) = ({⟨𝐴, {𝐵, 𝐶}⟩}‘𝑥))
2322eleq2d 2866 . . . . . . 7 ((iEdg‘𝐺) = {⟨𝐴, {𝐵, 𝐶}⟩} → (𝐵 ∈ ((iEdg‘𝐺)‘𝑥) ↔ 𝐵 ∈ ({⟨𝐴, {𝐵, 𝐶}⟩}‘𝑥)))
2423adantl 482 . . . . . 6 ((𝜑 ∧ (iEdg‘𝐺) = {⟨𝐴, {𝐵, 𝐶}⟩}) → (𝐵 ∈ ((iEdg‘𝐺)‘𝑥) ↔ 𝐵 ∈ ({⟨𝐴, {𝐵, 𝐶}⟩}‘𝑥)))
2521, 24rabeqbidv 3425 . . . . 5 ((𝜑 ∧ (iEdg‘𝐺) = {⟨𝐴, {𝐵, 𝐶}⟩}) → {𝑥 ∈ dom (iEdg‘𝐺) ∣ 𝐵 ∈ ((iEdg‘𝐺)‘𝑥)} = {𝑥 ∈ {𝐴} ∣ 𝐵 ∈ ({⟨𝐴, {𝐵, 𝐶}⟩}‘𝑥)})
2625fveq2d 6534 . . . 4 ((𝜑 ∧ (iEdg‘𝐺) = {⟨𝐴, {𝐵, 𝐶}⟩}) → (♯‘{𝑥 ∈ dom (iEdg‘𝐺) ∣ 𝐵 ∈ ((iEdg‘𝐺)‘𝑥)}) = (♯‘{𝑥 ∈ {𝐴} ∣ 𝐵 ∈ ({⟨𝐴, {𝐵, 𝐶}⟩}‘𝑥)}))
27 fveq2 6530 . . . . . . . . . 10 (𝑥 = 𝐴 → ({⟨𝐴, {𝐵, 𝐶}⟩}‘𝑥) = ({⟨𝐴, {𝐵, 𝐶}⟩}‘𝐴))
2827eleq2d 2866 . . . . . . . . 9 (𝑥 = 𝐴 → (𝐵 ∈ ({⟨𝐴, {𝐵, 𝐶}⟩}‘𝑥) ↔ 𝐵 ∈ ({⟨𝐴, {𝐵, 𝐶}⟩}‘𝐴)))
2928rabsnif 4560 . . . . . . . 8 {𝑥 ∈ {𝐴} ∣ 𝐵 ∈ ({⟨𝐴, {𝐵, 𝐶}⟩}‘𝑥)} = if(𝐵 ∈ ({⟨𝐴, {𝐵, 𝐶}⟩}‘𝐴), {𝐴}, ∅)
30 prid1g 4597 . . . . . . . . . . 11 (𝐵𝑉𝐵 ∈ {𝐵, 𝐶})
313, 30syl 17 . . . . . . . . . 10 (𝜑𝐵 ∈ {𝐵, 𝐶})
32 fvsng 6796 . . . . . . . . . . 11 ((𝐴𝑋 ∧ {𝐵, 𝐶} ∈ V) → ({⟨𝐴, {𝐵, 𝐶}⟩}‘𝐴) = {𝐵, 𝐶})
332, 18, 32sylancl 586 . . . . . . . . . 10 (𝜑 → ({⟨𝐴, {𝐵, 𝐶}⟩}‘𝐴) = {𝐵, 𝐶})
3431, 33eleqtrrd 2884 . . . . . . . . 9 (𝜑𝐵 ∈ ({⟨𝐴, {𝐵, 𝐶}⟩}‘𝐴))
3534iftrued 4383 . . . . . . . 8 (𝜑 → if(𝐵 ∈ ({⟨𝐴, {𝐵, 𝐶}⟩}‘𝐴), {𝐴}, ∅) = {𝐴})
3629, 35syl5eq 2841 . . . . . . 7 (𝜑 → {𝑥 ∈ {𝐴} ∣ 𝐵 ∈ ({⟨𝐴, {𝐵, 𝐶}⟩}‘𝑥)} = {𝐴})
3736fveq2d 6534 . . . . . 6 (𝜑 → (♯‘{𝑥 ∈ {𝐴} ∣ 𝐵 ∈ ({⟨𝐴, {𝐵, 𝐶}⟩}‘𝑥)}) = (♯‘{𝐴}))
38 hashsng 13567 . . . . . . 7 (𝐴𝑋 → (♯‘{𝐴}) = 1)
392, 38syl 17 . . . . . 6 (𝜑 → (♯‘{𝐴}) = 1)
4037, 39eqtrd 2829 . . . . 5 (𝜑 → (♯‘{𝑥 ∈ {𝐴} ∣ 𝐵 ∈ ({⟨𝐴, {𝐵, 𝐶}⟩}‘𝑥)}) = 1)
4140adantr 481 . . . 4 ((𝜑 ∧ (iEdg‘𝐺) = {⟨𝐴, {𝐵, 𝐶}⟩}) → (♯‘{𝑥 ∈ {𝐴} ∣ 𝐵 ∈ ({⟨𝐴, {𝐵, 𝐶}⟩}‘𝑥)}) = 1)
4226, 41eqtrd 2829 . . 3 ((𝜑 ∧ (iEdg‘𝐺) = {⟨𝐴, {𝐵, 𝐶}⟩}) → (♯‘{𝑥 ∈ dom (iEdg‘𝐺) ∣ 𝐵 ∈ ((iEdg‘𝐺)‘𝑥)}) = 1)
438, 42mpdan 683 . 2 (𝜑 → (♯‘{𝑥 ∈ dom (iEdg‘𝐺) ∣ 𝐵 ∈ ((iEdg‘𝐺)‘𝑥)}) = 1)
4415, 43eqtrd 2829 1 (𝜑 → ((VtxDeg‘𝐺)‘𝐵) = 1)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 207  wa 396   = wceq 1520  wcel 2079  wne 2982  {crab 3107  Vcvv 3432  c0 4206  ifcif 4375  {csn 4466  {cpr 4468  cop 4472  dom cdm 5435  cfv 6217  1c1 10373  chash 13528  Vtxcvtx 26452  iEdgciedg 26453  USGraphcusgr 26605  VtxDegcvtxdg 26918
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1775  ax-4 1789  ax-5 1886  ax-6 1945  ax-7 1990  ax-8 2081  ax-9 2089  ax-10 2110  ax-11 2124  ax-12 2139  ax-13 2342  ax-ext 2767  ax-rep 5075  ax-sep 5088  ax-nul 5095  ax-pow 5150  ax-pr 5214  ax-un 7310  ax-cnex 10428  ax-resscn 10429  ax-1cn 10430  ax-icn 10431  ax-addcl 10432  ax-addrcl 10433  ax-mulcl 10434  ax-mulrcl 10435  ax-mulcom 10436  ax-addass 10437  ax-mulass 10438  ax-distr 10439  ax-i2m1 10440  ax-1ne0 10441  ax-1rid 10442  ax-rnegex 10443  ax-rrecex 10444  ax-cnre 10445  ax-pre-lttri 10446  ax-pre-lttrn 10447  ax-pre-ltadd 10448  ax-pre-mulgt0 10449
This theorem depends on definitions:  df-bi 208  df-an 397  df-or 843  df-3or 1079  df-3an 1080  df-tru 1523  df-ex 1760  df-nf 1764  df-sb 2041  df-mo 2574  df-eu 2610  df-clab 2774  df-cleq 2786  df-clel 2861  df-nfc 2933  df-ne 2983  df-nel 3089  df-ral 3108  df-rex 3109  df-reu 3110  df-rmo 3111  df-rab 3112  df-v 3434  df-sbc 3702  df-csb 3807  df-dif 3857  df-un 3859  df-in 3861  df-ss 3869  df-pss 3871  df-nul 4207  df-if 4376  df-pw 4449  df-sn 4467  df-pr 4469  df-tp 4471  df-op 4473  df-uni 4740  df-int 4777  df-iun 4821  df-br 4957  df-opab 5019  df-mpt 5036  df-tr 5058  df-id 5340  df-eprel 5345  df-po 5354  df-so 5355  df-fr 5394  df-we 5396  df-xp 5441  df-rel 5442  df-cnv 5443  df-co 5444  df-dm 5445  df-rn 5446  df-res 5447  df-ima 5448  df-pred 6015  df-ord 6061  df-on 6062  df-lim 6063  df-suc 6064  df-iota 6181  df-fun 6219  df-fn 6220  df-f 6221  df-f1 6222  df-fo 6223  df-f1o 6224  df-fv 6225  df-riota 6968  df-ov 7010  df-oprab 7011  df-mpo 7012  df-om 7428  df-1st 7536  df-2nd 7537  df-wrecs 7789  df-recs 7851  df-rdg 7889  df-1o 7944  df-oadd 7948  df-er 8130  df-en 8348  df-dom 8349  df-sdom 8350  df-fin 8351  df-dju 9165  df-card 9203  df-pnf 10512  df-mnf 10513  df-xr 10514  df-ltxr 10515  df-le 10516  df-sub 10708  df-neg 10709  df-nn 11476  df-2 11537  df-n0 11735  df-xnn0 11805  df-z 11819  df-uz 12083  df-xadd 12347  df-fz 12732  df-hash 13529  df-edg 26504  df-upgr 26538  df-umgr 26539  df-uspgr 26606  df-usgr 26607  df-vtxdg 26919
This theorem is referenced by:  1egrvtxdg1r  26963
  Copyright terms: Public domain W3C validator