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

Theorem nbusgrvtxm1 26563
Description: If the number of neighbors of a vertex in a finite simple graph is the number of vertices of the graph minus 1, each vertex except the first mentioned vertex is a neighbor of this vertex. (Contributed by Alexander van der Vekens, 14-Jul-2018.) (Revised by AV, 16-Dec-2020.)
Hypothesis
Ref Expression
hashnbusgrnn0.v 𝑉 = (Vtx‘𝐺)
Assertion
Ref Expression
nbusgrvtxm1 ((𝐺 ∈ FinUSGraph ∧ 𝑈𝑉) → ((♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1) → ((𝑀𝑉𝑀𝑈) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈))))

Proof of Theorem nbusgrvtxm1
StepHypRef Expression
1 ax-1 6 . . 3 (𝑀 ∈ (𝐺 NeighbVtx 𝑈) → ((𝑀𝑉𝑀𝑈) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈)))
212a1d 26 . 2 (𝑀 ∈ (𝐺 NeighbVtx 𝑈) → ((𝐺 ∈ FinUSGraph ∧ 𝑈𝑉) → ((♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1) → ((𝑀𝑉𝑀𝑈) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈)))))
3 simpr 477 . . . . . . . 8 ((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) → (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉))
43adantr 472 . . . . . . 7 (((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) → (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉))
5 simprl 787 . . . . . . 7 (((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) → 𝑀𝑉)
6 simpr 477 . . . . . . . 8 ((𝑀𝑉𝑀𝑈) → 𝑀𝑈)
76adantl 473 . . . . . . 7 (((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) → 𝑀𝑈)
8 df-nel 3041 . . . . . . . . . 10 (𝑀 ∉ (𝐺 NeighbVtx 𝑈) ↔ ¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈))
98biimpri 219 . . . . . . . . 9 𝑀 ∈ (𝐺 NeighbVtx 𝑈) → 𝑀 ∉ (𝐺 NeighbVtx 𝑈))
109adantr 472 . . . . . . . 8 ((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) → 𝑀 ∉ (𝐺 NeighbVtx 𝑈))
1110adantr 472 . . . . . . 7 (((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) → 𝑀 ∉ (𝐺 NeighbVtx 𝑈))
12 hashnbusgrnn0.v . . . . . . . 8 𝑉 = (Vtx‘𝐺)
1312nbfusgrlevtxm2 26562 . . . . . . 7 (((𝐺 ∈ FinUSGraph ∧ 𝑈𝑉) ∧ (𝑀𝑉𝑀𝑈𝑀 ∉ (𝐺 NeighbVtx 𝑈))) → (♯‘(𝐺 NeighbVtx 𝑈)) ≤ ((♯‘𝑉) − 2))
144, 5, 7, 11, 13syl13anc 1491 . . . . . 6 (((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) → (♯‘(𝐺 NeighbVtx 𝑈)) ≤ ((♯‘𝑉) − 2))
15 breq1 4814 . . . . . . . . 9 ((♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1) → ((♯‘(𝐺 NeighbVtx 𝑈)) ≤ ((♯‘𝑉) − 2) ↔ ((♯‘𝑉) − 1) ≤ ((♯‘𝑉) − 2)))
1615adantl 473 . . . . . . . 8 ((((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) ∧ (♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1)) → ((♯‘(𝐺 NeighbVtx 𝑈)) ≤ ((♯‘𝑉) − 2) ↔ ((♯‘𝑉) − 1) ≤ ((♯‘𝑉) − 2)))
1712fusgrvtxfi 26493 . . . . . . . . . . . 12 (𝐺 ∈ FinUSGraph → 𝑉 ∈ Fin)
18 hashcl 13352 . . . . . . . . . . . 12 (𝑉 ∈ Fin → (♯‘𝑉) ∈ ℕ0)
19 nn0re 11550 . . . . . . . . . . . . 13 ((♯‘𝑉) ∈ ℕ0 → (♯‘𝑉) ∈ ℝ)
20 1red 10296 . . . . . . . . . . . . . . 15 ((♯‘𝑉) ∈ ℝ → 1 ∈ ℝ)
21 2re 11348 . . . . . . . . . . . . . . . 16 2 ∈ ℝ
2221a1i 11 . . . . . . . . . . . . . . 15 ((♯‘𝑉) ∈ ℝ → 2 ∈ ℝ)
23 id 22 . . . . . . . . . . . . . . 15 ((♯‘𝑉) ∈ ℝ → (♯‘𝑉) ∈ ℝ)
24 1lt2 11451 . . . . . . . . . . . . . . . 16 1 < 2
2524a1i 11 . . . . . . . . . . . . . . 15 ((♯‘𝑉) ∈ ℝ → 1 < 2)
2620, 22, 23, 25ltsub2dd 10896 . . . . . . . . . . . . . 14 ((♯‘𝑉) ∈ ℝ → ((♯‘𝑉) − 2) < ((♯‘𝑉) − 1))
2723, 22resubcld 10714 . . . . . . . . . . . . . . 15 ((♯‘𝑉) ∈ ℝ → ((♯‘𝑉) − 2) ∈ ℝ)
28 peano2rem 10604 . . . . . . . . . . . . . . 15 ((♯‘𝑉) ∈ ℝ → ((♯‘𝑉) − 1) ∈ ℝ)
2927, 28ltnled 10440 . . . . . . . . . . . . . 14 ((♯‘𝑉) ∈ ℝ → (((♯‘𝑉) − 2) < ((♯‘𝑉) − 1) ↔ ¬ ((♯‘𝑉) − 1) ≤ ((♯‘𝑉) − 2)))
3026, 29mpbid 223 . . . . . . . . . . . . 13 ((♯‘𝑉) ∈ ℝ → ¬ ((♯‘𝑉) − 1) ≤ ((♯‘𝑉) − 2))
3119, 30syl 17 . . . . . . . . . . . 12 ((♯‘𝑉) ∈ ℕ0 → ¬ ((♯‘𝑉) − 1) ≤ ((♯‘𝑉) − 2))
3217, 18, 313syl 18 . . . . . . . . . . 11 (𝐺 ∈ FinUSGraph → ¬ ((♯‘𝑉) − 1) ≤ ((♯‘𝑉) − 2))
3332pm2.21d 119 . . . . . . . . . 10 (𝐺 ∈ FinUSGraph → (((♯‘𝑉) − 1) ≤ ((♯‘𝑉) − 2) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈)))
3433adantr 472 . . . . . . . . 9 ((𝐺 ∈ FinUSGraph ∧ 𝑈𝑉) → (((♯‘𝑉) − 1) ≤ ((♯‘𝑉) − 2) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈)))
3534ad3antlr 722 . . . . . . . 8 ((((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) ∧ (♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1)) → (((♯‘𝑉) − 1) ≤ ((♯‘𝑉) − 2) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈)))
3616, 35sylbid 231 . . . . . . 7 ((((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) ∧ (♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1)) → ((♯‘(𝐺 NeighbVtx 𝑈)) ≤ ((♯‘𝑉) − 2) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈)))
3736ex 401 . . . . . 6 (((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) → ((♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1) → ((♯‘(𝐺 NeighbVtx 𝑈)) ≤ ((♯‘𝑉) − 2) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈))))
3814, 37mpid 44 . . . . 5 (((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) → ((♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈)))
3938ex 401 . . . 4 ((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) → ((𝑀𝑉𝑀𝑈) → ((♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈))))
4039com23 86 . . 3 ((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) → ((♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1) → ((𝑀𝑉𝑀𝑈) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈))))
4140ex 401 . 2 𝑀 ∈ (𝐺 NeighbVtx 𝑈) → ((𝐺 ∈ FinUSGraph ∧ 𝑈𝑉) → ((♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1) → ((𝑀𝑉𝑀𝑈) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈)))))
422, 41pm2.61i 176 1 ((𝐺 ∈ FinUSGraph ∧ 𝑈𝑉) → ((♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1) → ((𝑀𝑉𝑀𝑈) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 197  wa 384   = wceq 1652  wcel 2155  wne 2937  wnel 3040   class class class wbr 4811  cfv 6070  (class class class)co 6844  Fincfn 8162  cr 10190  1c1 10192   < clt 10330  cle 10331  cmin 10522  2c2 11329  0cn0 11540  chash 13324  Vtxcvtx 26168  FinUSGraphcfusgr 26490   NeighbVtx cnbgr 26506
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1890  ax-4 1904  ax-5 2005  ax-6 2070  ax-7 2105  ax-8 2157  ax-9 2164  ax-10 2183  ax-11 2198  ax-12 2211  ax-13 2352  ax-ext 2743  ax-rep 4932  ax-sep 4943  ax-nul 4951  ax-pow 5003  ax-pr 5064  ax-un 7149  ax-cnex 10247  ax-resscn 10248  ax-1cn 10249  ax-icn 10250  ax-addcl 10251  ax-addrcl 10252  ax-mulcl 10253  ax-mulrcl 10254  ax-mulcom 10255  ax-addass 10256  ax-mulass 10257  ax-distr 10258  ax-i2m1 10259  ax-1ne0 10260  ax-1rid 10261  ax-rnegex 10262  ax-rrecex 10263  ax-cnre 10264  ax-pre-lttri 10265  ax-pre-lttrn 10266  ax-pre-ltadd 10267  ax-pre-mulgt0 10268
This theorem depends on definitions:  df-bi 198  df-an 385  df-or 874  df-3or 1108  df-3an 1109  df-tru 1656  df-fal 1666  df-ex 1875  df-nf 1879  df-sb 2063  df-mo 2565  df-eu 2582  df-clab 2752  df-cleq 2758  df-clel 2761  df-nfc 2896  df-ne 2938  df-nel 3041  df-ral 3060  df-rex 3061  df-reu 3062  df-rmo 3063  df-rab 3064  df-v 3352  df-sbc 3599  df-csb 3694  df-dif 3737  df-un 3739  df-in 3741  df-ss 3748  df-pss 3750  df-nul 4082  df-if 4246  df-pw 4319  df-sn 4337  df-pr 4339  df-tp 4341  df-op 4343  df-uni 4597  df-int 4636  df-iun 4680  df-br 4812  df-opab 4874  df-mpt 4891  df-tr 4914  df-id 5187  df-eprel 5192  df-po 5200  df-so 5201  df-fr 5238  df-we 5240  df-xp 5285  df-rel 5286  df-cnv 5287  df-co 5288  df-dm 5289  df-rn 5290  df-res 5291  df-ima 5292  df-pred 5867  df-ord 5913  df-on 5914  df-lim 5915  df-suc 5916  df-iota 6033  df-fun 6072  df-fn 6073  df-f 6074  df-f1 6075  df-fo 6076  df-f1o 6077  df-fv 6078  df-riota 6805  df-ov 6847  df-oprab 6848  df-mpt2 6849  df-om 7266  df-1st 7368  df-2nd 7369  df-wrecs 7612  df-recs 7674  df-rdg 7712  df-1o 7766  df-oadd 7770  df-er 7949  df-en 8163  df-dom 8164  df-sdom 8165  df-fin 8166  df-card 9018  df-cda 9245  df-pnf 10332  df-mnf 10333  df-xr 10334  df-ltxr 10335  df-le 10336  df-sub 10524  df-neg 10525  df-nn 11277  df-2 11337  df-n0 11541  df-xnn0 11613  df-z 11627  df-uz 11890  df-fz 12537  df-hash 13325  df-fusgr 26491  df-nbgr 26507
This theorem is referenced by:  nbusgrvtxm1uvtx  26594
  Copyright terms: Public domain W3C validator