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

Theorem frgrwopreglem4a 30970
Description: In a friendship graph any two vertices with different degrees are connected. Alternate version of frgrwopreglem4 30975 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 6915 . . . . . 6 (𝑋 = 𝑌 → (𝐷‘𝑋) = (𝐷‘𝑌))
21a1i 11 . . . . 5 ((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) → (𝑋 = 𝑌 → (𝐷‘𝑋) = (𝐷‘𝑌)))
32necon3d 2983 . . . 4 ((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) → ((𝐷‘𝑋) ≠ (𝐷‘𝑌) → 𝑋 ≠ 𝑌))
43imp 412 . . 3 (((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) ∧ (𝐷‘𝑋) ≠ (𝐷‘𝑌)) → 𝑋 ≠ 𝑌)
543adant1 1149 . 2 ((𝐺 ∈ FriendGraph ∧ (𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) ∧ (𝐷‘𝑋) ≠ (𝐷‘𝑌)) → 𝑋 ≠ 𝑌)
6 frgrncvvdeq.v . . . . . . 7 𝑉 = (Vtx‘𝐺)
7 frgrncvvdeq.d . . . . . . 7 𝐷 = (VtxDeg‘𝐺)
86, 7frgrncvvdeq 30969 . . . . . 6 (𝐺 ∈ FriendGraph → ∀𝑥 ∈ 𝑉 ∀𝑦 ∈ (𝑉 ∖ {𝑥})(𝑦 ∉ (𝐺 NeighbVtx 𝑥) → (𝐷‘𝑥) = (𝐷‘𝑦)))
9 oveq2 7458 . . . . . . . . . . 11 (𝑥 = 𝑋 → (𝐺 NeighbVtx 𝑥) = (𝐺 NeighbVtx 𝑋))
10 neleq2 3075 . . . . . . . . . . 11 ((𝐺 NeighbVtx 𝑥) = (𝐺 NeighbVtx 𝑋) → (𝑦 ∉ (𝐺 NeighbVtx 𝑥) ↔ 𝑦 ∉ (𝐺 NeighbVtx 𝑋)))
119, 10syl 18 . . . . . . . . . 10 (𝑥 = 𝑋 → (𝑦 ∉ (𝐺 NeighbVtx 𝑥) ↔ 𝑦 ∉ (𝐺 NeighbVtx 𝑋)))
12 fveqeq2 6924 . . . . . . . . . 10 (𝑥 = 𝑋 → ((𝐷‘𝑥) = (𝐷‘𝑦) ↔ (𝐷‘𝑋) = (𝐷‘𝑦)))
1311, 12imbi12d 347 . . . . . . . . 9 (𝑥 = 𝑋 → ((𝑦 ∉ (𝐺 NeighbVtx 𝑥) → (𝐷‘𝑥) = (𝐷‘𝑦)) ↔ (𝑦 ∉ (𝐺 NeighbVtx 𝑋) → (𝐷‘𝑋) = (𝐷‘𝑦))))
14 neleq1 3074 . . . . . . . . . 10 (𝑦 = 𝑌 → (𝑦 ∉ (𝐺 NeighbVtx 𝑋) ↔ 𝑌 ∉ (𝐺 NeighbVtx 𝑋)))
15 fveq2 6915 . . . . . . . . . . 11 (𝑦 = 𝑌 → (𝐷‘𝑦) = (𝐷‘𝑌))
1615eqeq2d 2777 . . . . . . . . . 10 (𝑦 = 𝑌 → ((𝐷‘𝑋) = (𝐷‘𝑦) ↔ (𝐷‘𝑋) = (𝐷‘𝑌)))
1714, 16imbi12d 347 . . . . . . . . 9 (𝑦 = 𝑌 → ((𝑦 ∉ (𝐺 NeighbVtx 𝑋) → (𝐷‘𝑋) = (𝐷‘𝑦)) ↔ (𝑌 ∉ (𝐺 NeighbVtx 𝑋) → (𝐷‘𝑋) = (𝐷‘𝑌))))
18 simpll 779 . . . . . . . . 9 (((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → 𝑋 ∈ 𝑉)
19 sneq 4593 . . . . . . . . . . 11 (𝑥 = 𝑋 → {𝑥} = {𝑋})
2019difeq2d 4065 . . . . . . . . . 10 (𝑥 = 𝑋 → (𝑉 ∖ {𝑥}) = (𝑉 ∖ {𝑋}))
2120adantl 487 . . . . . . . . 9 ((((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) ∧ 𝑥 = 𝑋) → (𝑉 ∖ {𝑥}) = (𝑉 ∖ {𝑋}))
22 simpr 490 . . . . . . . . . . 11 ((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) → 𝑌 ∈ 𝑉)
23 necom 3015 . . . . . . . . . . . 12 (𝑋 ≠ 𝑌 ↔ 𝑌 ≠ 𝑋)
2423biimpi 219 . . . . . . . . . . 11 (𝑋 ≠ 𝑌 → 𝑌 ≠ 𝑋)
2522, 24anim12i 625 . . . . . . . . . 10 (((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (𝑌 ∈ 𝑉 ∧ 𝑌 ≠ 𝑋))
26 eldifsn 4749 . . . . . . . . . 10 (𝑌 ∈ (𝑉 ∖ {𝑋}) ↔ (𝑌 ∈ 𝑉 ∧ 𝑌 ≠ 𝑋))
2725, 26sylibr 237 . . . . . . . . 9 (((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → 𝑌 ∈ (𝑉 ∖ {𝑋}))
2813, 17, 18, 21, 27rspc2vd 3898 . . . . . . . 8 (((𝑋 ∈ 𝑉 ∧ 𝑌 ∈ 𝑉) ∧ 𝑋 ≠ 𝑌) → (∀𝑥 ∈ 𝑉 ∀𝑦 ∈ (𝑉 ∖ {𝑥})(𝑦 ∉ (𝐺 NeighbVtx 𝑥) → (𝐷‘𝑥) = (𝐷‘𝑦)) → (𝑌 ∉ (𝐺 NeighbVtx 𝑋) → (𝐷‘𝑋) = (𝐷‘𝑌))))
29 nnel 3078 . . . . . . . . . . 11 (¬ 𝑌 ∉ (𝐺 NeighbVtx 𝑋) ↔ 𝑌 ∈ (𝐺 NeighbVtx 𝑋))
30 nbgrsym 30003 . . . . . . . . . . . . . . . 16 (𝑌 ∈ (𝐺 NeighbVtx 𝑋) ↔ 𝑋 ∈ (𝐺 NeighbVtx 𝑌))
31 frgrusgr 30921 . . . . . . . . . . . . . . . . . 18 (𝐺 ∈ FriendGraph → 𝐺 ∈ USGraph)
32 frgrwopreglem4a.e . . . . . . . . . . . . . . . . . . 19 𝐸 = (Edg‘𝐺)
3332nbusgreledg 29993 . . . . . . . . . . . . . . . . . 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 2973 . . . . . . . . . . 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 1129 . 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 1104   = wceq 1572   ∈ wcel 2150   ≠ wne 2962   ∉ wnel 3068  ∀wral 3083   ∖ cdif 4047  {csn 4587  {cpr 4589  ‘cfv 6565  (class class class)co 7450  Vtxcvtx 29633  Edgcedg 29684  USGraphcusgr 29789   NeighbVtx cnbgr 29972  VtxDegcvtxdg 30105   FriendGraph cfrgr 30918
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2152  ax-9 2160  ax-10 2183  ax-11 2200  ax-12 2219  ax-ext 2738  ax-rep 5237  ax-sep 5254  ax-nul 5265  ax-pow 5333  ax-pr 5397  ax-un 7782  ax-cnex 11294  ax-resscn 11295  ax-1cn 11296  ax-icn 11297  ax-addcl 11298  ax-addrcl 11299  ax-mulcl 11300  ax-mulrcl 11301  ax-mulcom 11302  ax-addass 11303  ax-mulass 11304  ax-distr 11305  ax-i2m1 11306  ax-1ne0 11307  ax-1rid 11308  ax-rnegex 11309  ax-rrecex 11310  ax-cnre 11311  ax-pre-lttri 11312  ax-pre-lttrn 11313  ax-pre-ltadd 11314  ax-pre-mulgt0 11315
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1105  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2104  df-mo 2570  df-eu 2600  df-clab 2745  df-cleq 2758  df-clel 2842  df-nfc 2916  df-ne 2963  df-nel 3069  df-ral 3084  df-rex 3094  df-rmo 3368  df-reu 3369  df-rab 3416  df-v 3455  df-sbc 3742  df-csb 3851  df-ss 3900  df-pss 4016  df-dif 4049  df-in 4093  df-un 4153  df-nul 4281  df-if 4485  df-pw 4561  df-sn 4588  df-pr 4590  df-op 4840  df-uni 4872  df-int 4912  df-iun 4957  df-br 5108  df-opab 5173  df-mpt 5192  df-tr 5218  df-id 5552  df-eprel 5557  df-po 5565  df-so 5566  df-fr 5610  df-we 5612  df-xp 5663  df-rel 5664  df-cnv 5665  df-co 5666  df-dm 5667  df-rn 5668  df-res 5669  df-ima 5670  df-pred 6329  df-ord 6390  df-on 6391  df-lim 6392  df-suc 6393  df-iota 6519  df-fun 6567  df-fn 6568  df-f 6569  df-f1 6570  df-fo 6571  df-f1o 6572  df-fv 6573  df-riota 7407  df-ov 7453  df-oprab 7454  df-mpo 7455  df-om 7911  df-1st 8034  df-2nd 8035  df-frecs 8336  df-wrecs 8367  df-recs 8416  df-rdg 8455  df-1o 8513  df-2o 8514  df-oadd 8517  df-er 8754  df-en 9011  df-dom 9012  df-sdom 9013  df-fin 9014  df-dju 10018  df-card 10056  df-pnf 11383  df-mnf 11384  df-xr 11385  df-ltxr 11386  df-le 11387  df-sub 11581  df-neg 11582  df-nn 12375  df-2 12444  df-n0 12646  df-xnn0 12719  df-z 12733  df-uz 13005  df-xadd 13281  df-fz 13679  df-hash 14515  df-edg 29685  df-uhgr 29695  df-ushgr 29696  df-upgr 29719  df-umgr 29720  df-uspgr 29790  df-usgr 29791  df-nbgr 29973  df-vtxdg 30106  df-frgr 30919
This theorem is used by:  frgrwopreglem5a  30971  frgrwopreglem4  30975
  Copyright terms: Public domain W3C validator