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

Theorem nbusgrvtxm1 27491
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 488 . . . . . . . 8 ((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) → (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉))
43adantr 484 . . . . . . 7 (((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) → (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉))
5 simprl 771 . . . . . . 7 (((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) → 𝑀𝑉)
6 simpr 488 . . . . . . . 8 ((𝑀𝑉𝑀𝑈) → 𝑀𝑈)
76adantl 485 . . . . . . 7 (((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) → 𝑀𝑈)
8 df-nel 3048 . . . . . . . . . 10 (𝑀 ∉ (𝐺 NeighbVtx 𝑈) ↔ ¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈))
98biimpri 231 . . . . . . . . 9 𝑀 ∈ (𝐺 NeighbVtx 𝑈) → 𝑀 ∉ (𝐺 NeighbVtx 𝑈))
109adantr 484 . . . . . . . 8 ((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) → 𝑀 ∉ (𝐺 NeighbVtx 𝑈))
1110adantr 484 . . . . . . 7 (((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) → 𝑀 ∉ (𝐺 NeighbVtx 𝑈))
12 hashnbusgrnn0.v . . . . . . . 8 𝑉 = (Vtx‘𝐺)
1312nbfusgrlevtxm2 27490 . . . . . . 7 (((𝐺 ∈ FinUSGraph ∧ 𝑈𝑉) ∧ (𝑀𝑉𝑀𝑈𝑀 ∉ (𝐺 NeighbVtx 𝑈))) → (♯‘(𝐺 NeighbVtx 𝑈)) ≤ ((♯‘𝑉) − 2))
144, 5, 7, 11, 13syl13anc 1374 . . . . . 6 (((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) → (♯‘(𝐺 NeighbVtx 𝑈)) ≤ ((♯‘𝑉) − 2))
15 breq1 5071 . . . . . . . . 9 ((♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1) → ((♯‘(𝐺 NeighbVtx 𝑈)) ≤ ((♯‘𝑉) − 2) ↔ ((♯‘𝑉) − 1) ≤ ((♯‘𝑉) − 2)))
1615adantl 485 . . . . . . . 8 ((((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) ∧ (♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1)) → ((♯‘(𝐺 NeighbVtx 𝑈)) ≤ ((♯‘𝑉) − 2) ↔ ((♯‘𝑉) − 1) ≤ ((♯‘𝑉) − 2)))
1712fusgrvtxfi 27431 . . . . . . . . . . . 12 (𝐺 ∈ FinUSGraph → 𝑉 ∈ Fin)
18 hashcl 13948 . . . . . . . . . . . 12 (𝑉 ∈ Fin → (♯‘𝑉) ∈ ℕ0)
19 nn0re 12124 . . . . . . . . . . . . 13 ((♯‘𝑉) ∈ ℕ0 → (♯‘𝑉) ∈ ℝ)
20 1red 10859 . . . . . . . . . . . . . . 15 ((♯‘𝑉) ∈ ℝ → 1 ∈ ℝ)
21 2re 11929 . . . . . . . . . . . . . . . 16 2 ∈ ℝ
2221a1i 11 . . . . . . . . . . . . . . 15 ((♯‘𝑉) ∈ ℝ → 2 ∈ ℝ)
23 id 22 . . . . . . . . . . . . . . 15 ((♯‘𝑉) ∈ ℝ → (♯‘𝑉) ∈ ℝ)
24 1lt2 12026 . . . . . . . . . . . . . . . 16 1 < 2
2524a1i 11 . . . . . . . . . . . . . . 15 ((♯‘𝑉) ∈ ℝ → 1 < 2)
2620, 22, 23, 25ltsub2dd 11470 . . . . . . . . . . . . . 14 ((♯‘𝑉) ∈ ℝ → ((♯‘𝑉) − 2) < ((♯‘𝑉) − 1))
2723, 22resubcld 11285 . . . . . . . . . . . . . . 15 ((♯‘𝑉) ∈ ℝ → ((♯‘𝑉) − 2) ∈ ℝ)
28 peano2rem 11170 . . . . . . . . . . . . . . 15 ((♯‘𝑉) ∈ ℝ → ((♯‘𝑉) − 1) ∈ ℝ)
2927, 28ltnled 11004 . . . . . . . . . . . . . 14 ((♯‘𝑉) ∈ ℝ → (((♯‘𝑉) − 2) < ((♯‘𝑉) − 1) ↔ ¬ ((♯‘𝑉) − 1) ≤ ((♯‘𝑉) − 2)))
3026, 29mpbid 235 . . . . . . . . . . . . 13 ((♯‘𝑉) ∈ ℝ → ¬ ((♯‘𝑉) − 1) ≤ ((♯‘𝑉) − 2))
3119, 30syl 17 . . . . . . . . . . . 12 ((♯‘𝑉) ∈ ℕ0 → ¬ ((♯‘𝑉) − 1) ≤ ((♯‘𝑉) − 2))
3217, 18, 313syl 18 . . . . . . . . . . 11 (𝐺 ∈ FinUSGraph → ¬ ((♯‘𝑉) − 1) ≤ ((♯‘𝑉) − 2))
3332pm2.21d 121 . . . . . . . . . 10 (𝐺 ∈ FinUSGraph → (((♯‘𝑉) − 1) ≤ ((♯‘𝑉) − 2) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈)))
3433adantr 484 . . . . . . . . 9 ((𝐺 ∈ FinUSGraph ∧ 𝑈𝑉) → (((♯‘𝑉) − 1) ≤ ((♯‘𝑉) − 2) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈)))
3534ad3antlr 731 . . . . . . . 8 ((((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) ∧ (♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1)) → (((♯‘𝑉) − 1) ≤ ((♯‘𝑉) − 2) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈)))
3616, 35sylbid 243 . . . . . . 7 ((((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) ∧ (♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1)) → ((♯‘(𝐺 NeighbVtx 𝑈)) ≤ ((♯‘𝑉) − 2) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈)))
3736ex 416 . . . . . 6 (((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) → ((♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1) → ((♯‘(𝐺 NeighbVtx 𝑈)) ≤ ((♯‘𝑉) − 2) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈))))
3814, 37mpid 44 . . . . 5 (((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) ∧ (𝑀𝑉𝑀𝑈)) → ((♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈)))
3938ex 416 . . . 4 ((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) → ((𝑀𝑉𝑀𝑈) → ((♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈))))
4039com23 86 . . 3 ((¬ 𝑀 ∈ (𝐺 NeighbVtx 𝑈) ∧ (𝐺 ∈ FinUSGraph ∧ 𝑈𝑉)) → ((♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1) → ((𝑀𝑉𝑀𝑈) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈))))
4140ex 416 . 2 𝑀 ∈ (𝐺 NeighbVtx 𝑈) → ((𝐺 ∈ FinUSGraph ∧ 𝑈𝑉) → ((♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1) → ((𝑀𝑉𝑀𝑈) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈)))))
422, 41pm2.61i 185 1 ((𝐺 ∈ FinUSGraph ∧ 𝑈𝑉) → ((♯‘(𝐺 NeighbVtx 𝑈)) = ((♯‘𝑉) − 1) → ((𝑀𝑉𝑀𝑈) → 𝑀 ∈ (𝐺 NeighbVtx 𝑈))))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 399   = wceq 1543  wcel 2111  wne 2941  wnel 3047   class class class wbr 5068  cfv 6398  (class class class)co 7232  Fincfn 8647  cr 10753  1c1 10755   < clt 10892  cle 10893  cmin 11087  2c2 11910  0cn0 12115  chash 13921  Vtxcvtx 27111  FinUSGraphcfusgr 27428   NeighbVtx cnbgr 27444
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2016  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2159  ax-12 2176  ax-ext 2709  ax-sep 5207  ax-nul 5214  ax-pow 5273  ax-pr 5337  ax-un 7542  ax-cnex 10810  ax-resscn 10811  ax-1cn 10812  ax-icn 10813  ax-addcl 10814  ax-addrcl 10815  ax-mulcl 10816  ax-mulrcl 10817  ax-mulcom 10818  ax-addass 10819  ax-mulass 10820  ax-distr 10821  ax-i2m1 10822  ax-1ne0 10823  ax-1rid 10824  ax-rnegex 10825  ax-rrecex 10826  ax-cnre 10827  ax-pre-lttri 10828  ax-pre-lttrn 10829  ax-pre-ltadd 10830  ax-pre-mulgt0 10831
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3or 1090  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-nf 1792  df-sb 2072  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2887  df-ne 2942  df-nel 3048  df-ral 3067  df-rex 3068  df-reu 3069  df-rab 3071  df-v 3423  df-sbc 3710  df-csb 3827  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-pss 3900  df-nul 4253  df-if 4455  df-pw 4530  df-sn 4557  df-pr 4559  df-tp 4561  df-op 4563  df-uni 4835  df-int 4875  df-iun 4921  df-br 5069  df-opab 5131  df-mpt 5151  df-tr 5177  df-id 5470  df-eprel 5475  df-po 5483  df-so 5484  df-fr 5524  df-we 5526  df-xp 5572  df-rel 5573  df-cnv 5574  df-co 5575  df-dm 5576  df-rn 5577  df-res 5578  df-ima 5579  df-pred 6176  df-ord 6234  df-on 6235  df-lim 6236  df-suc 6237  df-iota 6356  df-fun 6400  df-fn 6401  df-f 6402  df-f1 6403  df-fo 6404  df-f1o 6405  df-fv 6406  df-riota 7189  df-ov 7235  df-oprab 7236  df-mpo 7237  df-om 7664  df-1st 7780  df-2nd 7781  df-wrecs 8068  df-recs 8129  df-rdg 8167  df-1o 8223  df-oadd 8227  df-er 8412  df-en 8648  df-dom 8649  df-sdom 8650  df-fin 8651  df-dju 9542  df-card 9580  df-pnf 10894  df-mnf 10895  df-xr 10896  df-ltxr 10897  df-le 10898  df-sub 11089  df-neg 11090  df-nn 11856  df-2 11918  df-n0 12116  df-xnn0 12188  df-z 12202  df-uz 12464  df-fz 13121  df-hash 13922  df-fusgr 27429  df-nbgr 27445
This theorem is referenced by:  nbusgrvtxm1uvtx  27517
  Copyright terms: Public domain W3C validator