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

Theorem frgrwopreglem4a 30938
Description: In a friendship graph any two vertices with different degrees are connected. Alternate version of frgrwopreglem4 30943 without a fixed degree and without using the sets 𝐴 and 𝐵. (Contributed by Alexander van der Vekens, 30-Dec-2017.) (Revised by AV, 4-Feb-2022.)
Hypotheses
Ref Expression
frgrncvvdeq.v 𝑉 = (Vtx‘𝐺)
frgrncvvdeq.d 𝐷 = (VtxDeg‘𝐺)
frgrwopreglem4a.e 𝐸 = (Edg‘𝐺)
Assertion
Ref Expression
frgrwopreglem4a ((𝐺 ∈ FriendGraph ∧ (𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) ∧ (𝐷‘𝑋) ≠ (𝐷‘𝑌)) → {𝑋, 𝑌} ∈ 𝐸)

Proof of Theorem frgrwopreglem4a
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fveq2 6905 . . . . . 6 (𝑋 = 𝑌 → (𝐷‘𝑋) = (𝐷‘𝑌))
21a1i 11 . . . . 5 ((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) → (𝑋 = 𝑌 → (𝐷‘𝑋) = (𝐷‘𝑌)))
32necon3d 2980 . . . 4 ((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) → ((𝐷‘𝑋) ≠ (𝐷‘𝑌) → 𝑋 ≠ 𝑌))
43imp 412 . . 3 (((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) ∧ (𝐷‘𝑋) ≠ (𝐷‘𝑌)) → 𝑋 ≠ 𝑌)
543adant1 1148 . 2 ((𝐺 ∈ FriendGraph ∧ (𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) ∧ (𝐷‘𝑋) ≠ (𝐷‘𝑌)) → 𝑋 ≠ 𝑌)
6 frgrncvvdeq.v . . . . . . 7 𝑉 = (Vtx‘𝐺)
7 frgrncvvdeq.d . . . . . . 7 𝐷 = (VtxDeg‘𝐺)
86, 7frgrncvvdeq 30937 . . . . . 6 (𝐺 ∈ FriendGraph → ∀𝑥 ∈ 𝑉 ∀𝑦 ∈ (𝑉 ∖ {𝑥})(𝑦 ∉ (𝐺 NeighbVtx 𝑥) → (𝐷‘𝑥) = (𝐷‘𝑦)))
9 oveq2 7448 . . . . . . . . . . 11 (𝑥 = 𝑋 → (𝐺 NeighbVtx 𝑥) = (𝐺 NeighbVtx 𝑋))
10 neleq2 3072 . . . . . . . . . . 11 ((𝐺 NeighbVtx 𝑥) = (𝐺 NeighbVtx 𝑋) → (𝑦 ∉ (𝐺 NeighbVtx 𝑥) ↔ 𝑦 ∉ (𝐺 NeighbVtx 𝑋)))
119, 10syl 18 . . . . . . . . . 10 (𝑥 = 𝑋 → (𝑦 ∉ (𝐺 NeighbVtx 𝑥) ↔ 𝑦 ∉ (𝐺 NeighbVtx 𝑋)))
12 fveqeq2 6914 . . . . . . . . . 10 (𝑥 = 𝑋 → ((𝐷‘𝑥) = (𝐷‘𝑦) ↔ (𝐷‘𝑋) = (𝐷‘𝑦)))
1311, 12imbi12d 347 . . . . . . . . 9 (𝑥 = 𝑋 → ((𝑦 ∉ (𝐺 NeighbVtx 𝑥) → (𝐷‘𝑥) = (𝐷‘𝑦)) ↔ (𝑦 ∉ (𝐺 NeighbVtx 𝑋) → (𝐷‘𝑋) = (𝐷‘𝑦))))
14 neleq1 3071 . . . . . . . . . 10 (𝑦 = 𝑌 → (𝑦 ∉ (𝐺 NeighbVtx 𝑋) ↔ 𝑌 ∉ (𝐺 NeighbVtx 𝑋)))
15 fveq2 6905 . . . . . . . . . . 11 (𝑦 = 𝑌 → (𝐷‘𝑦) = (𝐷‘𝑌))
1615eqeq2d 2774 . . . . . . . . . 10 (𝑦 = 𝑌 → ((𝐷‘𝑋) = (𝐷‘𝑦) ↔ (𝐷‘𝑋) = (𝐷‘𝑌)))
1714, 16imbi12d 347 . . . . . . . . 9 (𝑦 = 𝑌 → ((𝑦 ∉ (𝐺 NeighbVtx 𝑋) → (𝐷‘𝑋) = (𝐷‘𝑦)) ↔ (𝑌 ∉ (𝐺 NeighbVtx 𝑋) → (𝐷‘𝑋) = (𝐷‘𝑌))))
18 simpll 779 . . . . . . . . 9 (((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → 𝑋 ∈ 𝑉)
19 sneq 4594 . . . . . . . . . . 11 (𝑥 = 𝑋 → {𝑥} = {𝑋})
2019difeq2d 4066 . . . . . . . . . 10 (𝑥 = 𝑋 → (𝑉 ∖ {𝑥}) = (𝑉 ∖ {𝑋}))
2120adantl 487 . . . . . . . . 9 ((((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) ∧ 𝑥 = 𝑋) → (𝑉 ∖ {𝑥}) = (𝑉 ∖ {𝑋}))
22 simpr 490 . . . . . . . . . . 11 ((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) → 𝑌 ∈ 𝑉)
23 necom 3012 . . . . . . . . . . . 12 (𝑋 ≠ 𝑌 ↔ 𝑌 ≠ 𝑋)
2423biimpi 219 . . . . . . . . . . 11 (𝑋 ≠ 𝑌 → 𝑌 ≠ 𝑋)
2522, 24anim12i 625 . . . . . . . . . 10 (((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (𝑌 ∈ 𝑉 ∧ 𝑌 ≠ 𝑋))
26 eldifsn 4748 . . . . . . . . . 10 (𝑌 ∈ (𝑉 ∖ {𝑋}) ↔ (𝑌 ∈ 𝑉 ∧ 𝑌 ≠ 𝑋))
2725, 26sylibr 237 . . . . . . . . 9 (((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → 𝑌 ∈ (𝑉 ∖ {𝑋}))
2813, 17, 18, 21, 27rspc2vd 3899 . . . . . . . 8 (((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (∀𝑥 ∈ 𝑉 ∀𝑦 ∈ (𝑉 ∖ {𝑥})(𝑦 ∉ (𝐺 NeighbVtx 𝑥) → (𝐷‘𝑥) = (𝐷‘𝑦)) → (𝑌 ∉ (𝐺 NeighbVtx 𝑋) → (𝐷‘𝑋) = (𝐷‘𝑌))))
29 nnel 3075 . . . . . . . . . . 11 (¬ 𝑌 ∉ (𝐺 NeighbVtx 𝑋) ↔ 𝑌 ∈ (𝐺 NeighbVtx 𝑋))
30 nbgrsym 29971 . . . . . . . . . . . . . . . 16 (𝑌 ∈ (𝐺 NeighbVtx 𝑋) ↔ 𝑋 ∈ (𝐺 NeighbVtx 𝑌))
31 frgrusgr 30889 . . . . . . . . . . . . . . . . . 18 (𝐺 ∈ FriendGraph → 𝐺 ∈ USGraph)
32 frgrwopreglem4a.e . . . . . . . . . . . . . . . . . . 19 𝐸 = (Edg‘𝐺)
3332nbusgreledg 29961 . . . . . . . . . . . . . . . . . 18 (𝐺 ∈ USGraph → (𝑋 ∈ (𝐺 NeighbVtx 𝑌) ↔ {𝑋, 𝑌} ∈ 𝐸))
3431, 33syl 18 . . . . . . . . . . . . . . . . 17 (𝐺 ∈ FriendGraph → (𝑋 ∈ (𝐺 NeighbVtx 𝑌) ↔ {𝑋, 𝑌} ∈ 𝐸))
3534biimpd 232 . . . . . . . . . . . . . . . 16 (𝐺 ∈ FriendGraph → (𝑋 ∈ (𝐺 NeighbVtx 𝑌) → {𝑋, 𝑌} ∈ 𝐸))
3630, 35biimtrid 245 . . . . . . . . . . . . . . 15 (𝐺 ∈ FriendGraph → (𝑌 ∈ (𝐺 NeighbVtx 𝑋) → {𝑋, 𝑌} ∈ 𝐸))
3736imp 412 . . . . . . . . . . . . . 14 ((𝐺 ∈ FriendGraph ∧ 𝑌 ∈ (𝐺 NeighbVtx 𝑋)) → {𝑋, 𝑌} ∈ 𝐸)
3837a1d 26 . . . . . . . . . . . . 13 ((𝐺 ∈ FriendGraph ∧ 𝑌 ∈ (𝐺 NeighbVtx 𝑋)) → ((𝐷‘𝑋) ≠ (𝐷‘𝑌) → {𝑋, 𝑌} ∈ 𝐸))
3938expcom 419 . . . . . . . . . . . 12 (𝑌 ∈ (𝐺 NeighbVtx 𝑋) → (𝐺 ∈ FriendGraph → ((𝐷‘𝑋) ≠ (𝐷‘𝑌) → {𝑋, 𝑌} ∈ 𝐸)))
4039a1d 26 . . . . . . . . . . 11 (𝑌 ∈ (𝐺 NeighbVtx 𝑋) → (((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (𝐺 ∈ FriendGraph → ((𝐷‘𝑋) ≠ (𝐷‘𝑌) → {𝑋, 𝑌} ∈ 𝐸))))
4129, 40sylbi 220 . . . . . . . . . 10 (¬ 𝑌 ∉ (𝐺 NeighbVtx 𝑋) → (((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (𝐺 ∈ FriendGraph → ((𝐷‘𝑋) ≠ (𝐷‘𝑌) → {𝑋, 𝑌} ∈ 𝐸))))
42 eqneqall 2970 . . . . . . . . . . 11 ((𝐷‘𝑋) = (𝐷‘𝑌) → ((𝐷‘𝑋) ≠ (𝐷‘𝑌) → {𝑋, 𝑌} ∈ 𝐸))
43422a1d 27 . . . . . . . . . 10 ((𝐷‘𝑋) = (𝐷‘𝑌) → (((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (𝐺 ∈ FriendGraph → ((𝐷‘𝑋) ≠ (𝐷‘𝑌) → {𝑋, 𝑌} ∈ 𝐸))))
4441, 43ja 188 . . . . . . . . 9 ((𝑌 ∉ (𝐺 NeighbVtx 𝑋) → (𝐷‘𝑋) = (𝐷‘𝑌)) → (((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (𝐺 ∈ FriendGraph → ((𝐷‘𝑋) ≠ (𝐷‘𝑌) → {𝑋, 𝑌} ∈ 𝐸))))
4544com12 33 . . . . . . . 8 (((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → ((𝑌 ∉ (𝐺 NeighbVtx 𝑋) → (𝐷‘𝑋) = (𝐷‘𝑌)) → (𝐺 ∈ FriendGraph → ((𝐷‘𝑋) ≠ (𝐷‘𝑌) → {𝑋, 𝑌} ∈ 𝐸))))
4628, 45syld 48 . . . . . . 7 (((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (∀𝑥 ∈ 𝑉 ∀𝑦 ∈ (𝑉 ∖ {𝑥})(𝑦 ∉ (𝐺 NeighbVtx 𝑥) → (𝐷‘𝑥) = (𝐷‘𝑦)) → (𝐺 ∈ FriendGraph → ((𝐷‘𝑋) ≠ (𝐷‘𝑌) → {𝑋, 𝑌} ∈ 𝐸))))
4746com3l 90 . . . . . 6 (∀𝑥 ∈ 𝑉 ∀𝑦 ∈ (𝑉 ∖ {𝑥})(𝑦 ∉ (𝐺 NeighbVtx 𝑥) → (𝐷‘𝑥) = (𝐷‘𝑦)) → (𝐺 ∈ FriendGraph → (((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → ((𝐷‘𝑋) ≠ (𝐷‘𝑌) → {𝑋, 𝑌} ∈ 𝐸))))
488, 47mpcom 39 . . . . 5 (𝐺 ∈ FriendGraph → (((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → ((𝐷‘𝑋) ≠ (𝐷‘𝑌) → {𝑋, 𝑌} ∈ 𝐸)))
4948expd 421 . . . 4 (𝐺 ∈ FriendGraph → ((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) → (𝑋 ≠ 𝑌 → ((𝐷‘𝑋) ≠ (𝐷‘𝑌) → {𝑋, 𝑌} ∈ 𝐸))))
5049com34 92 . . 3 (𝐺 ∈ FriendGraph → ((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) → ((𝐷‘𝑋) ≠ (𝐷‘𝑌) → (𝑋 ≠ 𝑌 → {𝑋, 𝑌} ∈ 𝐸))))
51503imp 1128 . 2 ((𝐺 ∈ FriendGraph ∧ (𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) ∧ (𝐷‘𝑋) ≠ (𝐷‘𝑌)) → (𝑋 ≠ 𝑌 → {𝑋, 𝑌} ∈ 𝐸))
525, 51mpd 16 1 ((𝐺 ∈ FriendGraph ∧ (𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) ∧ (𝐷‘𝑋) ≠ (𝐷‘𝑌)) → {𝑋, 𝑌} ∈ 𝐸)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ↔ wb 209   ∧ wa 401   ∧ w3a 1103   = wceq 1570   ∈ wcel 2147   ≠ wne 2959   ∉ wnel 3065  ∀wral 3080   ∖ cdif 4048  {csn 4588  {cpr 4590  ‘cfv 6555  (class class class)co 7440  Vtxcvtx 29601  Edgcedg 29652  USGraphcusgr 29757   NeighbVtx cnbgr 29940  VtxDegcvtxdg 30073   FriendGraph cfrgr 30886
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-rep 5235  ax-sep 5252  ax-nul 5263  ax-pow 5331  ax-pr 5395  ax-un 7772  ax-cnex 11280  ax-resscn 11281  ax-1cn 11282  ax-icn 11283  ax-addcl 11284  ax-addrcl 11285  ax-mulcl 11286  ax-mulrcl 11287  ax-mulcom 11288  ax-addass 11289  ax-mulass 11290  ax-distr 11291  ax-i2m1 11292  ax-1ne0 11293  ax-1rid 11294  ax-rnegex 11295  ax-rrecex 11296  ax-cnre 11297  ax-pre-lttri 11298  ax-pre-lttrn 11299  ax-pre-ltadd 11300  ax-pre-mulgt0 11301
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-nel 3066  df-ral 3081  df-rex 3091  df-rmo 3369  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-pss 4017  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-int 4911  df-iun 4956  df-br 5107  df-opab 5171  df-mpt 5190  df-tr 5216  df-id 5550  df-eprel 5555  df-po 5563  df-so 5564  df-fr 5608  df-we 5610  df-xp 5661  df-rel 5662  df-cnv 5663  df-co 5664  df-dm 5665  df-rn 5666  df-res 5667  df-ima 5668  df-pred 6319  df-ord 6380  df-on 6381  df-lim 6382  df-suc 6383  df-iota 6509  df-fun 6557  df-fn 6558  df-f 6559  df-f1 6560  df-fo 6561  df-f1o 6562  df-fv 6563  df-riota 7397  df-ov 7443  df-oprab 7444  df-mpo 7445  df-om 7899  df-1st 8022  df-2nd 8023  df-frecs 8324  df-wrecs 8355  df-recs 8404  df-rdg 8443  df-1o 8501  df-2o 8502  df-oadd 8505  df-er 8742  df-en 8999  df-dom 9000  df-sdom 9001  df-fin 9002  df-dju 10006  df-card 10044  df-pnf 11369  df-mnf 11370  df-xr 11371  df-ltxr 11372  df-le 11373  df-sub 11567  df-neg 11568  df-nn 12360  df-2 12429  df-n0 12631  df-xnn0 12704  df-z 12718  df-uz 12990  df-xadd 13266  df-fz 13664  df-hash 14499  df-edg 29653  df-uhgr 29663  df-ushgr 29664  df-upgr 29687  df-umgr 29688  df-uspgr 29758  df-usgr 29759  df-nbgr 29941  df-vtxdg 30074  df-frgr 30887
This theorem is used by:  frgrwopreglem5a  30939  frgrwopreglem4  30943
  Copyright terms: Public domain W3C validator