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

Theorem frgrncvvdeqlem3 28007
Description: Lemma 3 for frgrncvvdeq 28015. The unique neighbor of a vertex (expressed by a restricted iota) is the intersection of the corresponding neighborhoods. (Contributed by Alexander van der Vekens, 18-Dec-2017.) (Revised by AV, 10-May-2021.) (Proof shortened by AV, 12-Feb-2022.)
Hypotheses
Ref Expression
frgrncvvdeq.v1 𝑉 = (Vtx‘𝐺)
frgrncvvdeq.e 𝐸 = (Edg‘𝐺)
frgrncvvdeq.nx 𝐷 = (𝐺 NeighbVtx 𝑋)
frgrncvvdeq.ny 𝑁 = (𝐺 NeighbVtx 𝑌)
frgrncvvdeq.x (𝜑𝑋𝑉)
frgrncvvdeq.y (𝜑𝑌𝑉)
frgrncvvdeq.ne (𝜑𝑋𝑌)
frgrncvvdeq.xy (𝜑𝑌𝐷)
frgrncvvdeq.f (𝜑𝐺 ∈ FriendGraph )
frgrncvvdeq.a 𝐴 = (𝑥𝐷 ↦ (𝑦𝑁 {𝑥, 𝑦} ∈ 𝐸))
Assertion
Ref Expression
frgrncvvdeqlem3 ((𝜑𝑥𝐷) → {(𝑦𝑁 {𝑥, 𝑦} ∈ 𝐸)} = ((𝐺 NeighbVtx 𝑥) ∩ 𝑁))
Distinct variable groups:   𝑦,𝐸   𝑦,𝐺   𝑦,𝑉   𝑦,𝑌   𝑥,𝑦   𝑦,𝑁
Allowed substitution hints:   𝜑(𝑥,𝑦)   𝐴(𝑥,𝑦)   𝐷(𝑥,𝑦)   𝐸(𝑥)   𝐺(𝑥)   𝑁(𝑥)   𝑉(𝑥)   𝑋(𝑥,𝑦)   𝑌(𝑥)

Proof of Theorem frgrncvvdeqlem3
Dummy variable 𝑛 is distinct from all other variables.
StepHypRef Expression
1 frgrncvvdeq.ny . . 3 𝑁 = (𝐺 NeighbVtx 𝑌)
21ineq2i 4183 . 2 ((𝐺 NeighbVtx 𝑥) ∩ 𝑁) = ((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌))
3 frgrncvvdeq.f . . . . 5 (𝜑𝐺 ∈ FriendGraph )
43adantr 481 . . . 4 ((𝜑𝑥𝐷) → 𝐺 ∈ FriendGraph )
5 frgrncvvdeq.nx . . . . . . . 8 𝐷 = (𝐺 NeighbVtx 𝑋)
65eleq2i 2901 . . . . . . 7 (𝑥𝐷𝑥 ∈ (𝐺 NeighbVtx 𝑋))
7 frgrncvvdeq.v1 . . . . . . . . 9 𝑉 = (Vtx‘𝐺)
87nbgrisvtx 27050 . . . . . . . 8 (𝑥 ∈ (𝐺 NeighbVtx 𝑋) → 𝑥𝑉)
98a1i 11 . . . . . . 7 (𝜑 → (𝑥 ∈ (𝐺 NeighbVtx 𝑋) → 𝑥𝑉))
106, 9syl5bi 243 . . . . . 6 (𝜑 → (𝑥𝐷𝑥𝑉))
1110imp 407 . . . . 5 ((𝜑𝑥𝐷) → 𝑥𝑉)
12 frgrncvvdeq.y . . . . . 6 (𝜑𝑌𝑉)
1312adantr 481 . . . . 5 ((𝜑𝑥𝐷) → 𝑌𝑉)
14 frgrncvvdeq.xy . . . . . . 7 (𝜑𝑌𝐷)
15 elnelne2 3131 . . . . . . 7 ((𝑥𝐷𝑌𝐷) → 𝑥𝑌)
1614, 15sylan2 592 . . . . . 6 ((𝑥𝐷𝜑) → 𝑥𝑌)
1716ancoms 459 . . . . 5 ((𝜑𝑥𝐷) → 𝑥𝑌)
1811, 13, 173jca 1120 . . . 4 ((𝜑𝑥𝐷) → (𝑥𝑉𝑌𝑉𝑥𝑌))
19 frgrncvvdeq.e . . . . 5 𝐸 = (Edg‘𝐺)
207, 19frcond3 27975 . . . 4 (𝐺 ∈ FriendGraph → ((𝑥𝑉𝑌𝑉𝑥𝑌) → ∃𝑛𝑉 ((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {𝑛}))
214, 18, 20sylc 65 . . 3 ((𝜑𝑥𝐷) → ∃𝑛𝑉 ((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {𝑛})
22 vex 3495 . . . . . . . . . 10 𝑛 ∈ V
23 elinsn 4638 . . . . . . . . . 10 ((𝑛 ∈ V ∧ ((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {𝑛}) → (𝑛 ∈ (𝐺 NeighbVtx 𝑥) ∧ 𝑛 ∈ (𝐺 NeighbVtx 𝑌)))
2422, 23mpan 686 . . . . . . . . 9 (((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {𝑛} → (𝑛 ∈ (𝐺 NeighbVtx 𝑥) ∧ 𝑛 ∈ (𝐺 NeighbVtx 𝑌)))
25 frgrusgr 27967 . . . . . . . . . . . . . . 15 (𝐺 ∈ FriendGraph → 𝐺 ∈ USGraph)
2619nbusgreledg 27062 . . . . . . . . . . . . . . . . 17 (𝐺 ∈ USGraph → (𝑛 ∈ (𝐺 NeighbVtx 𝑥) ↔ {𝑛, 𝑥} ∈ 𝐸))
27 prcom 4660 . . . . . . . . . . . . . . . . . 18 {𝑛, 𝑥} = {𝑥, 𝑛}
2827eleq1i 2900 . . . . . . . . . . . . . . . . 17 ({𝑛, 𝑥} ∈ 𝐸 ↔ {𝑥, 𝑛} ∈ 𝐸)
2926, 28syl6bb 288 . . . . . . . . . . . . . . . 16 (𝐺 ∈ USGraph → (𝑛 ∈ (𝐺 NeighbVtx 𝑥) ↔ {𝑥, 𝑛} ∈ 𝐸))
3029biimpd 230 . . . . . . . . . . . . . . 15 (𝐺 ∈ USGraph → (𝑛 ∈ (𝐺 NeighbVtx 𝑥) → {𝑥, 𝑛} ∈ 𝐸))
313, 25, 303syl 18 . . . . . . . . . . . . . 14 (𝜑 → (𝑛 ∈ (𝐺 NeighbVtx 𝑥) → {𝑥, 𝑛} ∈ 𝐸))
3231adantr 481 . . . . . . . . . . . . 13 ((𝜑𝑥𝐷) → (𝑛 ∈ (𝐺 NeighbVtx 𝑥) → {𝑥, 𝑛} ∈ 𝐸))
3332com12 32 . . . . . . . . . . . 12 (𝑛 ∈ (𝐺 NeighbVtx 𝑥) → ((𝜑𝑥𝐷) → {𝑥, 𝑛} ∈ 𝐸))
3433adantr 481 . . . . . . . . . . 11 ((𝑛 ∈ (𝐺 NeighbVtx 𝑥) ∧ 𝑛 ∈ (𝐺 NeighbVtx 𝑌)) → ((𝜑𝑥𝐷) → {𝑥, 𝑛} ∈ 𝐸))
3534imp 407 . . . . . . . . . 10 (((𝑛 ∈ (𝐺 NeighbVtx 𝑥) ∧ 𝑛 ∈ (𝐺 NeighbVtx 𝑌)) ∧ (𝜑𝑥𝐷)) → {𝑥, 𝑛} ∈ 𝐸)
361eqcomi 2827 . . . . . . . . . . . . . 14 (𝐺 NeighbVtx 𝑌) = 𝑁
3736eleq2i 2901 . . . . . . . . . . . . 13 (𝑛 ∈ (𝐺 NeighbVtx 𝑌) ↔ 𝑛𝑁)
3837biimpi 217 . . . . . . . . . . . 12 (𝑛 ∈ (𝐺 NeighbVtx 𝑌) → 𝑛𝑁)
3938adantl 482 . . . . . . . . . . 11 ((𝑛 ∈ (𝐺 NeighbVtx 𝑥) ∧ 𝑛 ∈ (𝐺 NeighbVtx 𝑌)) → 𝑛𝑁)
40 frgrncvvdeq.x . . . . . . . . . . . 12 (𝜑𝑋𝑉)
41 frgrncvvdeq.ne . . . . . . . . . . . 12 (𝜑𝑋𝑌)
42 frgrncvvdeq.a . . . . . . . . . . . 12 𝐴 = (𝑥𝐷 ↦ (𝑦𝑁 {𝑥, 𝑦} ∈ 𝐸))
437, 19, 5, 1, 40, 12, 41, 14, 3, 42frgrncvvdeqlem2 28006 . . . . . . . . . . 11 ((𝜑𝑥𝐷) → ∃!𝑦𝑁 {𝑥, 𝑦} ∈ 𝐸)
44 preq2 4662 . . . . . . . . . . . . 13 (𝑦 = 𝑛 → {𝑥, 𝑦} = {𝑥, 𝑛})
4544eleq1d 2894 . . . . . . . . . . . 12 (𝑦 = 𝑛 → ({𝑥, 𝑦} ∈ 𝐸 ↔ {𝑥, 𝑛} ∈ 𝐸))
4645riota2 7128 . . . . . . . . . . 11 ((𝑛𝑁 ∧ ∃!𝑦𝑁 {𝑥, 𝑦} ∈ 𝐸) → ({𝑥, 𝑛} ∈ 𝐸 ↔ (𝑦𝑁 {𝑥, 𝑦} ∈ 𝐸) = 𝑛))
4739, 43, 46syl2an 595 . . . . . . . . . 10 (((𝑛 ∈ (𝐺 NeighbVtx 𝑥) ∧ 𝑛 ∈ (𝐺 NeighbVtx 𝑌)) ∧ (𝜑𝑥𝐷)) → ({𝑥, 𝑛} ∈ 𝐸 ↔ (𝑦𝑁 {𝑥, 𝑦} ∈ 𝐸) = 𝑛))
4835, 47mpbid 233 . . . . . . . . 9 (((𝑛 ∈ (𝐺 NeighbVtx 𝑥) ∧ 𝑛 ∈ (𝐺 NeighbVtx 𝑌)) ∧ (𝜑𝑥𝐷)) → (𝑦𝑁 {𝑥, 𝑦} ∈ 𝐸) = 𝑛)
4924, 48sylan 580 . . . . . . . 8 ((((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {𝑛} ∧ (𝜑𝑥𝐷)) → (𝑦𝑁 {𝑥, 𝑦} ∈ 𝐸) = 𝑛)
5049eqcomd 2824 . . . . . . 7 ((((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {𝑛} ∧ (𝜑𝑥𝐷)) → 𝑛 = (𝑦𝑁 {𝑥, 𝑦} ∈ 𝐸))
5150sneqd 4569 . . . . . 6 ((((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {𝑛} ∧ (𝜑𝑥𝐷)) → {𝑛} = {(𝑦𝑁 {𝑥, 𝑦} ∈ 𝐸)})
52 eqeq1 2822 . . . . . . 7 (((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {𝑛} → (((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {(𝑦𝑁 {𝑥, 𝑦} ∈ 𝐸)} ↔ {𝑛} = {(𝑦𝑁 {𝑥, 𝑦} ∈ 𝐸)}))
5352adantr 481 . . . . . 6 ((((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {𝑛} ∧ (𝜑𝑥𝐷)) → (((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {(𝑦𝑁 {𝑥, 𝑦} ∈ 𝐸)} ↔ {𝑛} = {(𝑦𝑁 {𝑥, 𝑦} ∈ 𝐸)}))
5451, 53mpbird 258 . . . . 5 ((((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {𝑛} ∧ (𝜑𝑥𝐷)) → ((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {(𝑦𝑁 {𝑥, 𝑦} ∈ 𝐸)})
5554ex 413 . . . 4 (((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {𝑛} → ((𝜑𝑥𝐷) → ((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {(𝑦𝑁 {𝑥, 𝑦} ∈ 𝐸)}))
5655rexlimivw 3279 . . 3 (∃𝑛𝑉 ((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {𝑛} → ((𝜑𝑥𝐷) → ((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {(𝑦𝑁 {𝑥, 𝑦} ∈ 𝐸)}))
5721, 56mpcom 38 . 2 ((𝜑𝑥𝐷) → ((𝐺 NeighbVtx 𝑥) ∩ (𝐺 NeighbVtx 𝑌)) = {(𝑦𝑁 {𝑥, 𝑦} ∈ 𝐸)})
582, 57syl5req 2866 1 ((𝜑𝑥𝐷) → {(𝑦𝑁 {𝑥, 𝑦} ∈ 𝐸)} = ((𝐺 NeighbVtx 𝑥) ∩ 𝑁))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 207  wa 396  w3a 1079   = wceq 1528  wcel 2105  wne 3013  wnel 3120  wrex 3136  ∃!wreu 3137  Vcvv 3492  cin 3932  {csn 4557  {cpr 4559  cmpt 5137  cfv 6348  crio 7102  (class class class)co 7145  Vtxcvtx 26708  Edgcedg 26759  USGraphcusgr 26861   NeighbVtx cnbgr 27041   FriendGraph cfrgr 27964
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1787  ax-4 1801  ax-5 1902  ax-6 1961  ax-7 2006  ax-8 2107  ax-9 2115  ax-10 2136  ax-11 2151  ax-12 2167  ax-ext 2790  ax-rep 5181  ax-sep 5194  ax-nul 5201  ax-pow 5257  ax-pr 5320  ax-un 7450  ax-cnex 10581  ax-resscn 10582  ax-1cn 10583  ax-icn 10584  ax-addcl 10585  ax-addrcl 10586  ax-mulcl 10587  ax-mulrcl 10588  ax-mulcom 10589  ax-addass 10590  ax-mulass 10591  ax-distr 10592  ax-i2m1 10593  ax-1ne0 10594  ax-1rid 10595  ax-rnegex 10596  ax-rrecex 10597  ax-cnre 10598  ax-pre-lttri 10599  ax-pre-lttrn 10600  ax-pre-ltadd 10601  ax-pre-mulgt0 10602
This theorem depends on definitions:  df-bi 208  df-an 397  df-or 842  df-3or 1080  df-3an 1081  df-tru 1531  df-fal 1541  df-ex 1772  df-nf 1776  df-sb 2061  df-mo 2615  df-eu 2647  df-clab 2797  df-cleq 2811  df-clel 2890  df-nfc 2960  df-ne 3014  df-nel 3121  df-ral 3140  df-rex 3141  df-reu 3142  df-rmo 3143  df-rab 3144  df-v 3494  df-sbc 3770  df-csb 3881  df-dif 3936  df-un 3938  df-in 3940  df-ss 3949  df-pss 3951  df-nul 4289  df-if 4464  df-pw 4537  df-sn 4558  df-pr 4560  df-tp 4562  df-op 4564  df-uni 4831  df-int 4868  df-iun 4912  df-br 5058  df-opab 5120  df-mpt 5138  df-tr 5164  df-id 5453  df-eprel 5458  df-po 5467  df-so 5468  df-fr 5507  df-we 5509  df-xp 5554  df-rel 5555  df-cnv 5556  df-co 5557  df-dm 5558  df-rn 5559  df-res 5560  df-ima 5561  df-pred 6141  df-ord 6187  df-on 6188  df-lim 6189  df-suc 6190  df-iota 6307  df-fun 6350  df-fn 6351  df-f 6352  df-f1 6353  df-fo 6354  df-f1o 6355  df-fv 6356  df-riota 7103  df-ov 7148  df-oprab 7149  df-mpo 7150  df-om 7570  df-1st 7678  df-2nd 7679  df-wrecs 7936  df-recs 7997  df-rdg 8035  df-1o 8091  df-2o 8092  df-oadd 8095  df-er 8278  df-en 8498  df-dom 8499  df-sdom 8500  df-fin 8501  df-dju 9318  df-card 9356  df-pnf 10665  df-mnf 10666  df-xr 10667  df-ltxr 10668  df-le 10669  df-sub 10860  df-neg 10861  df-nn 11627  df-2 11688  df-n0 11886  df-xnn0 11956  df-z 11970  df-uz 12232  df-fz 12881  df-hash 13679  df-edg 26760  df-upgr 26794  df-umgr 26795  df-usgr 26863  df-nbgr 27042  df-frgr 27965
This theorem is referenced by:  frgrncvvdeqlem5  28009
  Copyright terms: Public domain W3C validator