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

Theorem frgrncvvdeqlem2 27157
 Description: Lemma 2 for frgrncvvdeq 27166. In a friendship graph, for each neighbor of a vertex there is exactly one neighbor of another vertex so that there is an edge between these two neighbors. (Contributed by Alexander van der Vekens, 22-Dec-2017.) (Revised by AV, 10-May-2021.) (Proof shortened by AV, 30-Dec-2021.)
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
frgrncvvdeqlem2 ((𝜑𝑥𝐷) → ∃!𝑦𝑁 {𝑥, 𝑦} ∈ 𝐸)
Distinct variable groups:   𝑦,𝐷   𝑦,𝐺   𝑦,𝑉   𝑦,𝑌   𝜑,𝑦   𝑥,𝑦
Allowed substitution hints:   𝜑(𝑥)   𝐴(𝑥,𝑦)   𝐷(𝑥)   𝐸(𝑥,𝑦)   𝐺(𝑥)   𝑁(𝑥,𝑦)   𝑉(𝑥)   𝑋(𝑥,𝑦)   𝑌(𝑥)

Proof of Theorem frgrncvvdeqlem2
StepHypRef Expression
1 frgrncvvdeq.f . . . 4 (𝜑𝐺 ∈ FriendGraph )
21adantr 481 . . 3 ((𝜑𝑥𝐷) → 𝐺 ∈ FriendGraph )
3 frgrncvvdeq.nx . . . . . . 7 𝐷 = (𝐺 NeighbVtx 𝑋)
43eleq2i 2692 . . . . . 6 (𝑥𝐷𝑥 ∈ (𝐺 NeighbVtx 𝑋))
5 frgrusgr 27117 . . . . . . 7 (𝐺 ∈ FriendGraph → 𝐺 ∈ USGraph )
6 frgrncvvdeq.v1 . . . . . . . . 9 𝑉 = (Vtx‘𝐺)
76nbgrisvtx 26249 . . . . . . . 8 ((𝐺 ∈ USGraph ∧ 𝑥 ∈ (𝐺 NeighbVtx 𝑋)) → 𝑥𝑉)
87ex 450 . . . . . . 7 (𝐺 ∈ USGraph → (𝑥 ∈ (𝐺 NeighbVtx 𝑋) → 𝑥𝑉))
91, 5, 83syl 18 . . . . . 6 (𝜑 → (𝑥 ∈ (𝐺 NeighbVtx 𝑋) → 𝑥𝑉))
104, 9syl5bi 232 . . . . 5 (𝜑 → (𝑥𝐷𝑥𝑉))
1110imp 445 . . . 4 ((𝜑𝑥𝐷) → 𝑥𝑉)
12 frgrncvvdeq.y . . . . 5 (𝜑𝑌𝑉)
1312adantr 481 . . . 4 ((𝜑𝑥𝐷) → 𝑌𝑉)
14 frgrncvvdeq.xy . . . . . 6 (𝜑𝑌𝐷)
15 elnelne2 2907 . . . . . . 7 ((𝑥𝐷𝑌𝐷) → 𝑥𝑌)
1615expcom 451 . . . . . 6 (𝑌𝐷 → (𝑥𝐷𝑥𝑌))
1714, 16syl 17 . . . . 5 (𝜑 → (𝑥𝐷𝑥𝑌))
1817imp 445 . . . 4 ((𝜑𝑥𝐷) → 𝑥𝑌)
1911, 13, 183jca 1241 . . 3 ((𝜑𝑥𝐷) → (𝑥𝑉𝑌𝑉𝑥𝑌))
20 frgrncvvdeq.e . . . 4 𝐸 = (Edg‘𝐺)
216, 20frcond1 27123 . . 3 (𝐺 ∈ FriendGraph → ((𝑥𝑉𝑌𝑉𝑥𝑌) → ∃!𝑦𝑉 {{𝑥, 𝑦}, {𝑦, 𝑌}} ⊆ 𝐸))
222, 19, 21sylc 65 . 2 ((𝜑𝑥𝐷) → ∃!𝑦𝑉 {{𝑥, 𝑦}, {𝑦, 𝑌}} ⊆ 𝐸)
23 usgrumgr 26068 . . . . . . . . . . . 12 (𝐺 ∈ USGraph → 𝐺 ∈ UMGraph )
246, 20umgrpredgv 26029 . . . . . . . . . . . . . 14 ((𝐺 ∈ UMGraph ∧ {𝑥, 𝑦} ∈ 𝐸) → (𝑥𝑉𝑦𝑉))
2524simprd 479 . . . . . . . . . . . . 13 ((𝐺 ∈ UMGraph ∧ {𝑥, 𝑦} ∈ 𝐸) → 𝑦𝑉)
2625ex 450 . . . . . . . . . . . 12 (𝐺 ∈ UMGraph → ({𝑥, 𝑦} ∈ 𝐸𝑦𝑉))
2723, 26syl 17 . . . . . . . . . . 11 (𝐺 ∈ USGraph → ({𝑥, 𝑦} ∈ 𝐸𝑦𝑉))
2827adantld 483 . . . . . . . . . 10 (𝐺 ∈ USGraph → (({𝑦, 𝑌} ∈ 𝐸 ∧ {𝑥, 𝑦} ∈ 𝐸) → 𝑦𝑉))
2928pm4.71rd 667 . . . . . . . . 9 (𝐺 ∈ USGraph → (({𝑦, 𝑌} ∈ 𝐸 ∧ {𝑥, 𝑦} ∈ 𝐸) ↔ (𝑦𝑉 ∧ ({𝑦, 𝑌} ∈ 𝐸 ∧ {𝑥, 𝑦} ∈ 𝐸))))
30 prex 4907 . . . . . . . . . . . 12 {𝑥, 𝑦} ∈ V
31 prex 4907 . . . . . . . . . . . 12 {𝑦, 𝑌} ∈ V
3230, 31prss 4349 . . . . . . . . . . 11 (({𝑥, 𝑦} ∈ 𝐸 ∧ {𝑦, 𝑌} ∈ 𝐸) ↔ {{𝑥, 𝑦}, {𝑦, 𝑌}} ⊆ 𝐸)
33 ancom 466 . . . . . . . . . . 11 (({𝑥, 𝑦} ∈ 𝐸 ∧ {𝑦, 𝑌} ∈ 𝐸) ↔ ({𝑦, 𝑌} ∈ 𝐸 ∧ {𝑥, 𝑦} ∈ 𝐸))
3432, 33bitr3i 266 . . . . . . . . . 10 ({{𝑥, 𝑦}, {𝑦, 𝑌}} ⊆ 𝐸 ↔ ({𝑦, 𝑌} ∈ 𝐸 ∧ {𝑥, 𝑦} ∈ 𝐸))
3534anbi2i 730 . . . . . . . . 9 ((𝑦𝑉 ∧ {{𝑥, 𝑦}, {𝑦, 𝑌}} ⊆ 𝐸) ↔ (𝑦𝑉 ∧ ({𝑦, 𝑌} ∈ 𝐸 ∧ {𝑥, 𝑦} ∈ 𝐸)))
3629, 35syl6rbbr 279 . . . . . . . 8 (𝐺 ∈ USGraph → ((𝑦𝑉 ∧ {{𝑥, 𝑦}, {𝑦, 𝑌}} ⊆ 𝐸) ↔ ({𝑦, 𝑌} ∈ 𝐸 ∧ {𝑥, 𝑦} ∈ 𝐸)))
37 frgrncvvdeq.ny . . . . . . . . . . 11 𝑁 = (𝐺 NeighbVtx 𝑌)
3837eleq2i 2692 . . . . . . . . . 10 (𝑦𝑁𝑦 ∈ (𝐺 NeighbVtx 𝑌))
3920nbusgreledg 26243 . . . . . . . . . 10 (𝐺 ∈ USGraph → (𝑦 ∈ (𝐺 NeighbVtx 𝑌) ↔ {𝑦, 𝑌} ∈ 𝐸))
4038, 39syl5rbb 273 . . . . . . . . 9 (𝐺 ∈ USGraph → ({𝑦, 𝑌} ∈ 𝐸𝑦𝑁))
4140anbi1d 741 . . . . . . . 8 (𝐺 ∈ USGraph → (({𝑦, 𝑌} ∈ 𝐸 ∧ {𝑥, 𝑦} ∈ 𝐸) ↔ (𝑦𝑁 ∧ {𝑥, 𝑦} ∈ 𝐸)))
4236, 41bitrd 268 . . . . . . 7 (𝐺 ∈ USGraph → ((𝑦𝑉 ∧ {{𝑥, 𝑦}, {𝑦, 𝑌}} ⊆ 𝐸) ↔ (𝑦𝑁 ∧ {𝑥, 𝑦} ∈ 𝐸)))
4342eubidv 2489 . . . . . 6 (𝐺 ∈ USGraph → (∃!𝑦(𝑦𝑉 ∧ {{𝑥, 𝑦}, {𝑦, 𝑌}} ⊆ 𝐸) ↔ ∃!𝑦(𝑦𝑁 ∧ {𝑥, 𝑦} ∈ 𝐸)))
4443biimpd 219 . . . . 5 (𝐺 ∈ USGraph → (∃!𝑦(𝑦𝑉 ∧ {{𝑥, 𝑦}, {𝑦, 𝑌}} ⊆ 𝐸) → ∃!𝑦(𝑦𝑁 ∧ {𝑥, 𝑦} ∈ 𝐸)))
45 df-reu 2918 . . . . 5 (∃!𝑦𝑉 {{𝑥, 𝑦}, {𝑦, 𝑌}} ⊆ 𝐸 ↔ ∃!𝑦(𝑦𝑉 ∧ {{𝑥, 𝑦}, {𝑦, 𝑌}} ⊆ 𝐸))
46 df-reu 2918 . . . . 5 (∃!𝑦𝑁 {𝑥, 𝑦} ∈ 𝐸 ↔ ∃!𝑦(𝑦𝑁 ∧ {𝑥, 𝑦} ∈ 𝐸))
4744, 45, 463imtr4g 285 . . . 4 (𝐺 ∈ USGraph → (∃!𝑦𝑉 {{𝑥, 𝑦}, {𝑦, 𝑌}} ⊆ 𝐸 → ∃!𝑦𝑁 {𝑥, 𝑦} ∈ 𝐸))
481, 5, 473syl 18 . . 3 (𝜑 → (∃!𝑦𝑉 {{𝑥, 𝑦}, {𝑦, 𝑌}} ⊆ 𝐸 → ∃!𝑦𝑁 {𝑥, 𝑦} ∈ 𝐸))
4948adantr 481 . 2 ((𝜑𝑥𝐷) → (∃!𝑦𝑉 {{𝑥, 𝑦}, {𝑦, 𝑌}} ⊆ 𝐸 → ∃!𝑦𝑁 {𝑥, 𝑦} ∈ 𝐸))
5022, 49mpd 15 1 ((𝜑𝑥𝐷) → ∃!𝑦𝑁 {𝑥, 𝑦} ∈ 𝐸)
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ∧ wa 384   ∧ w3a 1037   = wceq 1482   ∈ wcel 1989  ∃!weu 2469   ≠ wne 2793   ∉ wnel 2896  ∃!wreu 2913   ⊆ wss 3572  {cpr 4177   ↦ cmpt 4727  ‘cfv 5886  ℩crio 6607  (class class class)co 6647  Vtxcvtx 25868  Edgcedg 25933   UMGraph cumgr 25970   USGraph cusgr 26038   NeighbVtx cnbgr 26218   FriendGraph cfrgr 27113 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1721  ax-4 1736  ax-5 1838  ax-6 1887  ax-7 1934  ax-8 1991  ax-9 1998  ax-10 2018  ax-11 2033  ax-12 2046  ax-13 2245  ax-ext 2601  ax-rep 4769  ax-sep 4779  ax-nul 4787  ax-pow 4841  ax-pr 4904  ax-un 6946  ax-cnex 9989  ax-resscn 9990  ax-1cn 9991  ax-icn 9992  ax-addcl 9993  ax-addrcl 9994  ax-mulcl 9995  ax-mulrcl 9996  ax-mulcom 9997  ax-addass 9998  ax-mulass 9999  ax-distr 10000  ax-i2m1 10001  ax-1ne0 10002  ax-1rid 10003  ax-rnegex 10004  ax-rrecex 10005  ax-cnre 10006  ax-pre-lttri 10007  ax-pre-lttrn 10008  ax-pre-ltadd 10009  ax-pre-mulgt0 10010 This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1038  df-3an 1039  df-tru 1485  df-fal 1488  df-ex 1704  df-nf 1709  df-sb 1880  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2752  df-ne 2794  df-nel 2897  df-ral 2916  df-rex 2917  df-reu 2918  df-rmo 2919  df-rab 2920  df-v 3200  df-sbc 3434  df-csb 3532  df-dif 3575  df-un 3577  df-in 3579  df-ss 3586  df-pss 3588  df-nul 3914  df-if 4085  df-pw 4158  df-sn 4176  df-pr 4178  df-tp 4180  df-op 4182  df-uni 4435  df-int 4474  df-iun 4520  df-br 4652  df-opab 4711  df-mpt 4728  df-tr 4751  df-id 5022  df-eprel 5027  df-po 5033  df-so 5034  df-fr 5071  df-we 5073  df-xp 5118  df-rel 5119  df-cnv 5120  df-co 5121  df-dm 5122  df-rn 5123  df-res 5124  df-ima 5125  df-pred 5678  df-ord 5724  df-on 5725  df-lim 5726  df-suc 5727  df-iota 5849  df-fun 5888  df-fn 5889  df-f 5890  df-f1 5891  df-fo 5892  df-f1o 5893  df-fv 5894  df-riota 6608  df-ov 6650  df-oprab 6651  df-mpt2 6652  df-om 7063  df-1st 7165  df-2nd 7166  df-wrecs 7404  df-recs 7465  df-rdg 7503  df-1o 7557  df-2o 7558  df-oadd 7561  df-er 7739  df-en 7953  df-dom 7954  df-sdom 7955  df-fin 7956  df-card 8762  df-cda 8987  df-pnf 10073  df-mnf 10074  df-xr 10075  df-ltxr 10076  df-le 10077  df-sub 10265  df-neg 10266  df-nn 11018  df-2 11076  df-n0 11290  df-xnn0 11361  df-z 11375  df-uz 11685  df-fz 12324  df-hash 13113  df-edg 25934  df-upgr 25971  df-umgr 25972  df-usgr 26040  df-nbgr 26222  df-frgr 27114 This theorem is referenced by:  frgrncvvdeqlem3  27158  frgrncvvdeqlem4  27159
 Copyright terms: Public domain W3C validator