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

Theorem frgrncvvdeq 30669
Description: In a friendship graph, two vertices which are not connected by an edge have the same degree. This corresponds to claim 1 in [Huneke] p. 1: "If x,y are elements of (the friendship graph) G and are not adjacent, then they have the same degree (i.e., the same number of adjacent vertices).". (Contributed by Alexander van der Vekens, 19-Dec-2017.) (Revised by AV, 10-May-2021.)
Hypotheses
Ref Expression
frgrncvvdeq.v 𝑉 = (Vtx‘𝐺)
frgrncvvdeq.d 𝐷 = (VtxDeg‘𝐺)
Assertion
Ref Expression
frgrncvvdeq (𝐺 ∈ FriendGraph → ∀𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})(𝑦 ∉ (𝐺 NeighbVtx 𝑥) → (𝐷𝑥) = (𝐷𝑦)))
Distinct variable groups:   𝑥,𝐺,𝑦   𝑥,𝑉,𝑦
Allowed substitution hints:   𝐷(𝑥, 𝑦)

Proof of Theorem frgrncvvdeq
Dummy variables 𝑎 𝑏 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 ovexd 7445 . . . . . 6 (((𝐺 ∈ FriendGraph ∧ (𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥}))) ∧ 𝑦 ∉ (𝐺 NeighbVtx 𝑥)) → (𝐺 NeighbVtx 𝑥) ∈ V)
2 frgrncvvdeq.v . . . . . . 7 𝑉 = (Vtx‘𝐺)
3 eqid 2763 . . . . . . 7 (Edg‘𝐺) = (Edg‘𝐺)
4 eqid 2763 . . . . . . 7 (𝐺 NeighbVtx 𝑥) = (𝐺 NeighbVtx 𝑥)
5 eqid 2763 . . . . . . 7 (𝐺 NeighbVtx 𝑦) = (𝐺 NeighbVtx 𝑦)
6 simpl 487 . . . . . . . 8 ((𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})) → 𝑥𝑉)
76ad2antlr 739 . . . . . . 7 (((𝐺 ∈ FriendGraph ∧ (𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥}))) ∧ 𝑦 ∉ (𝐺 NeighbVtx 𝑥)) → 𝑥𝑉)
8 eldifi 4085 . . . . . . . . 9 (𝑦 ∈ (𝑉 ∖ {𝑥}) → 𝑦𝑉)
98adantl 486 . . . . . . . 8 ((𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})) → 𝑦𝑉)
109ad2antlr 739 . . . . . . 7 (((𝐺 ∈ FriendGraph ∧ (𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥}))) ∧ 𝑦 ∉ (𝐺 NeighbVtx 𝑥)) → 𝑦𝑉)
11 eldif 3915 . . . . . . . . . 10 (𝑦 ∈ (𝑉 ∖ {𝑥}) ↔ (𝑦𝑉 ∧ ¬ 𝑦 ∈ {𝑥}))
12 velsn 4605 . . . . . . . . . . . . 13 (𝑦 ∈ {𝑥} ↔ 𝑦 = 𝑥)
1312biimpri 231 . . . . . . . . . . . 12 (𝑦 = 𝑥𝑦 ∈ {𝑥})
1413equcoms 2050 . . . . . . . . . . 11 (𝑥 = 𝑦𝑦 ∈ {𝑥})
1514necon3bi 2984 . . . . . . . . . 10 𝑦 ∈ {𝑥} → 𝑥𝑦)
1611, 15simplbiim 513 . . . . . . . . 9 (𝑦 ∈ (𝑉 ∖ {𝑥}) → 𝑥𝑦)
1716adantl 486 . . . . . . . 8 ((𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})) → 𝑥𝑦)
1817ad2antlr 739 . . . . . . 7 (((𝐺 ∈ FriendGraph ∧ (𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥}))) ∧ 𝑦 ∉ (𝐺 NeighbVtx 𝑥)) → 𝑥𝑦)
19 simpr 489 . . . . . . 7 (((𝐺 ∈ FriendGraph ∧ (𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥}))) ∧ 𝑦 ∉ (𝐺 NeighbVtx 𝑥)) → 𝑦 ∉ (𝐺 NeighbVtx 𝑥))
20 simpl 487 . . . . . . . 8 ((𝐺 ∈ FriendGraph ∧ (𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥}))) → 𝐺 ∈ FriendGraph )
2120adantr 485 . . . . . . 7 (((𝐺 ∈ FriendGraph ∧ (𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥}))) ∧ 𝑦 ∉ (𝐺 NeighbVtx 𝑥)) → 𝐺 ∈ FriendGraph )
22 eqid 2763 . . . . . . 7 (𝑎 ∈ (𝐺 NeighbVtx 𝑥) ↦ (𝑏 ∈ (𝐺 NeighbVtx 𝑦){𝑎, 𝑏} ∈ (Edg‘𝐺))) = (𝑎 ∈ (𝐺 NeighbVtx 𝑥) ↦ (𝑏 ∈ (𝐺 NeighbVtx 𝑦){𝑎, 𝑏} ∈ (Edg‘𝐺)))
232, 3, 4, 5, 7, 10, 18, 19, 21, 22frgrncvvdeqlem10 30668 . . . . . 6 (((𝐺 ∈ FriendGraph ∧ (𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥}))) ∧ 𝑦 ∉ (𝐺 NeighbVtx 𝑥)) → (𝑎 ∈ (𝐺 NeighbVtx 𝑥) ↦ (𝑏 ∈ (𝐺 NeighbVtx 𝑦){𝑎, 𝑏} ∈ (Edg‘𝐺))):(𝐺 NeighbVtx 𝑥)–1-1-onto→(𝐺 NeighbVtx 𝑦))
241, 23hasheqf1od 14394 . . . . 5 (((𝐺 ∈ FriendGraph ∧ (𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥}))) ∧ 𝑦 ∉ (𝐺 NeighbVtx 𝑥)) → (♯‘(𝐺 NeighbVtx 𝑥)) = (♯‘(𝐺 NeighbVtx 𝑦)))
25 frgrusgr 30621 . . . . . . . 8 (𝐺 ∈ FriendGraph → 𝐺 ∈ USGraph)
2625, 6anim12i 624 . . . . . . 7 ((𝐺 ∈ FriendGraph ∧ (𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥}))) → (𝐺 ∈ USGraph ∧ 𝑥𝑉))
2726adantr 485 . . . . . 6 (((𝐺 ∈ FriendGraph ∧ (𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥}))) ∧ 𝑦 ∉ (𝐺 NeighbVtx 𝑥)) → (𝐺 ∈ USGraph ∧ 𝑥𝑉))
282hashnbusgrvd 29887 . . . . . 6 ((𝐺 ∈ USGraph ∧ 𝑥𝑉) → (♯‘(𝐺 NeighbVtx 𝑥)) = ((VtxDeg‘𝐺)‘𝑥))
2927, 28syl 18 . . . . 5 (((𝐺 ∈ FriendGraph ∧ (𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥}))) ∧ 𝑦 ∉ (𝐺 NeighbVtx 𝑥)) → (♯‘(𝐺 NeighbVtx 𝑥)) = ((VtxDeg‘𝐺)‘𝑥))
3025, 9anim12i 624 . . . . . . 7 ((𝐺 ∈ FriendGraph ∧ (𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥}))) → (𝐺 ∈ USGraph ∧ 𝑦𝑉))
3130adantr 485 . . . . . 6 (((𝐺 ∈ FriendGraph ∧ (𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥}))) ∧ 𝑦 ∉ (𝐺 NeighbVtx 𝑥)) → (𝐺 ∈ USGraph ∧ 𝑦𝑉))
322hashnbusgrvd 29887 . . . . . 6 ((𝐺 ∈ USGraph ∧ 𝑦𝑉) → (♯‘(𝐺 NeighbVtx 𝑦)) = ((VtxDeg‘𝐺)‘𝑦))
3331, 32syl 18 . . . . 5 (((𝐺 ∈ FriendGraph ∧ (𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥}))) ∧ 𝑦 ∉ (𝐺 NeighbVtx 𝑥)) → (♯‘(𝐺 NeighbVtx 𝑦)) = ((VtxDeg‘𝐺)‘𝑦))
3424, 29, 333eqtr3d 2806 . . . 4 (((𝐺 ∈ FriendGraph ∧ (𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥}))) ∧ 𝑦 ∉ (𝐺 NeighbVtx 𝑥)) → ((VtxDeg‘𝐺)‘𝑥) = ((VtxDeg‘𝐺)‘𝑦))
35 frgrncvvdeq.d . . . . 5 𝐷 = (VtxDeg‘𝐺)
3635fveq1i 6882 . . . 4 (𝐷𝑥) = ((VtxDeg‘𝐺)‘𝑥)
3735fveq1i 6882 . . . 4 (𝐷𝑦) = ((VtxDeg‘𝐺)‘𝑦)
3834, 36, 373eqtr4g 2823 . . 3 (((𝐺 ∈ FriendGraph ∧ (𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥}))) ∧ 𝑦 ∉ (𝐺 NeighbVtx 𝑥)) → (𝐷𝑥) = (𝐷𝑦))
3938ex 417 . 2 ((𝐺 ∈ FriendGraph ∧ (𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥}))) → (𝑦 ∉ (𝐺 NeighbVtx 𝑥) → (𝐷𝑥) = (𝐷𝑦)))
4039ralrimivva 3208 1 (𝐺 ∈ FriendGraph → ∀𝑥𝑉𝑦 ∈ (𝑉 ∖ {𝑥})(𝑦 ∉ (𝐺 NeighbVtx 𝑥) → (𝐷𝑥) = (𝐷𝑦)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3  wi 4  wa 400   = wceq 1570  wcel 2143  wne 2958  wnel 3064  wral 3079  Vcvv 3455  cdif 3902  {csn 4589  {cpr 4591  cmpt 5192  cfv 6536  crio 7366  (class class class)co 7410  chash 14371  Vtxcvtx 29355  Edgcedg 29406  USGraphcusgr 29508   NeighbVtx cnbgr 29691  VtxDegcvtxdg 29824   FriendGraph cfrgr 30618
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1825  ax-4 1839  ax-5 1940  ax-6 1997  ax-7 2038  ax-8 2145  ax-9 2153  ax-10 2176  ax-11 2192  ax-12 2213  ax-ext 2735  ax-rep 5238  ax-sep 5257  ax-nul 5269  ax-pow 5336  ax-pr 5404  ax-un 7732  ax-cnex 11160  ax-resscn 11161  ax-1cn 11162  ax-icn 11163  ax-addcl 11164  ax-addrcl 11165  ax-mulcl 11166  ax-mulrcl 11167  ax-mulcom 11168  ax-addass 11169  ax-mulass 11170  ax-distr 11171  ax-i2m1 11172  ax-1ne0 11173  ax-1rid 11174  ax-rnegex 11175  ax-rrecex 11176  ax-cnre 11177  ax-pre-lttri 11178  ax-pre-lttrn 11179  ax-pre-ltadd 11180  ax-pre-mulgt0 11181
This proof depends on definitions:  df-bi 210  df-an 401  df-or 861  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1810  df-nf 1814  df-sb 2097  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2838  df-nfc 2912  df-ne 2959  df-nel 3065  df-ral 3080  df-rex 3090  df-rmo 3369  df-reu 3370  df-rab 3417  df-v 3457  df-sbc 3745  df-csb 3854  df-dif 3908  df-un 3910  df-in 3912  df-ss 3922  df-pss 3925  df-nul 4287  df-if 4488  df-pw 4564  df-sn 4590  df-pr 4592  df-op 4596  df-uni 4873  df-int 4913  df-iun 4958  df-br 5110  df-opab 5174  df-mpt 5193  df-tr 5219  df-id 5556  df-eprel 5561  df-po 5569  df-so 5570  df-fr 5614  df-we 5616  df-xp 5667  df-rel 5668  df-cnv 5669  df-co 5670  df-dm 5671  df-rn 5672  df-res 5673  df-ima 5674  df-pred 6302  df-ord 6363  df-on 6364  df-lim 6365  df-suc 6366  df-iota 6492  df-fun 6538  df-fn 6539  df-f 6540  df-f1 6541  df-fo 6542  df-f1o 6543  df-fv 6544  df-riota 7367  df-ov 7413  df-oprab 7414  df-mpo 7415  df-om 7859  df-1st 7982  df-2nd 7983  df-frecs 8274  df-wrecs 8305  df-recs 8354  df-rdg 8393  df-1o 8449  df-2o 8450  df-oadd 8453  df-er 8690  df-en 8940  df-dom 8941  df-sdom 8942  df-fin 8943  df-dju 9892  df-card 9930  df-pnf 11249  df-mnf 11250  df-xr 11251  df-ltxr 11252  df-le 11253  df-sub 11447  df-neg 11448  df-nn 12238  df-2 12307  df-n0 12509  df-xnn0 12582  df-z 12596  df-uz 12867  df-xadd 13142  df-fz 13540  df-hash 14372  df-edg 29407  df-uhgr 29417  df-ushgr 29418  df-upgr 29441  df-umgr 29442  df-uspgr 29509  df-usgr 29510  df-nbgr 29692  df-vtxdg 29825  df-frgr 30619
This theorem is used by:  frgrwopreglem4a  30670
  Copyright terms: Public domain W3C validator