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

Theorem isrgr 27829
Description: The property of a class being a k-regular graph. (Contributed by Alexander van der Vekens, 7-Jul-2018.) (Revised by AV, 26-Dec-2020.)
Hypotheses
Ref Expression
isrgr.v 𝑉 = (Vtx‘𝐺)
isrgr.d 𝐷 = (VtxDeg‘𝐺)
Assertion
Ref Expression
isrgr ((𝐺𝑊𝐾𝑍) → (𝐺 RegGraph 𝐾 ↔ (𝐾 ∈ ℕ0* ∧ ∀𝑣𝑉 (𝐷𝑣) = 𝐾)))
Distinct variable groups:   𝑣,𝐺   𝑣,𝐾
Allowed substitution hints:   𝐷(𝑣)   𝑉(𝑣)   𝑊(𝑣)   𝑍(𝑣)

Proof of Theorem isrgr
Dummy variables 𝑔 𝑘 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 eleq1 2826 . . . . 5 (𝑘 = 𝐾 → (𝑘 ∈ ℕ0*𝐾 ∈ ℕ0*))
21adantl 481 . . . 4 ((𝑔 = 𝐺𝑘 = 𝐾) → (𝑘 ∈ ℕ0*𝐾 ∈ ℕ0*))
3 fveq2 6756 . . . . . 6 (𝑔 = 𝐺 → (Vtx‘𝑔) = (Vtx‘𝐺))
43adantr 480 . . . . 5 ((𝑔 = 𝐺𝑘 = 𝐾) → (Vtx‘𝑔) = (Vtx‘𝐺))
5 fveq2 6756 . . . . . . . 8 (𝑔 = 𝐺 → (VtxDeg‘𝑔) = (VtxDeg‘𝐺))
65fveq1d 6758 . . . . . . 7 (𝑔 = 𝐺 → ((VtxDeg‘𝑔)‘𝑣) = ((VtxDeg‘𝐺)‘𝑣))
76adantr 480 . . . . . 6 ((𝑔 = 𝐺𝑘 = 𝐾) → ((VtxDeg‘𝑔)‘𝑣) = ((VtxDeg‘𝐺)‘𝑣))
8 simpr 484 . . . . . 6 ((𝑔 = 𝐺𝑘 = 𝐾) → 𝑘 = 𝐾)
97, 8eqeq12d 2754 . . . . 5 ((𝑔 = 𝐺𝑘 = 𝐾) → (((VtxDeg‘𝑔)‘𝑣) = 𝑘 ↔ ((VtxDeg‘𝐺)‘𝑣) = 𝐾))
104, 9raleqbidv 3327 . . . 4 ((𝑔 = 𝐺𝑘 = 𝐾) → (∀𝑣 ∈ (Vtx‘𝑔)((VtxDeg‘𝑔)‘𝑣) = 𝑘 ↔ ∀𝑣 ∈ (Vtx‘𝐺)((VtxDeg‘𝐺)‘𝑣) = 𝐾))
112, 10anbi12d 630 . . 3 ((𝑔 = 𝐺𝑘 = 𝐾) → ((𝑘 ∈ ℕ0* ∧ ∀𝑣 ∈ (Vtx‘𝑔)((VtxDeg‘𝑔)‘𝑣) = 𝑘) ↔ (𝐾 ∈ ℕ0* ∧ ∀𝑣 ∈ (Vtx‘𝐺)((VtxDeg‘𝐺)‘𝑣) = 𝐾)))
12 df-rgr 27827 . . 3 RegGraph = {⟨𝑔, 𝑘⟩ ∣ (𝑘 ∈ ℕ0* ∧ ∀𝑣 ∈ (Vtx‘𝑔)((VtxDeg‘𝑔)‘𝑣) = 𝑘)}
1311, 12brabga 5440 . 2 ((𝐺𝑊𝐾𝑍) → (𝐺 RegGraph 𝐾 ↔ (𝐾 ∈ ℕ0* ∧ ∀𝑣 ∈ (Vtx‘𝐺)((VtxDeg‘𝐺)‘𝑣) = 𝐾)))
14 isrgr.v . . . . . 6 𝑉 = (Vtx‘𝐺)
15 isrgr.d . . . . . . . 8 𝐷 = (VtxDeg‘𝐺)
1615fveq1i 6757 . . . . . . 7 (𝐷𝑣) = ((VtxDeg‘𝐺)‘𝑣)
1716eqeq1i 2743 . . . . . 6 ((𝐷𝑣) = 𝐾 ↔ ((VtxDeg‘𝐺)‘𝑣) = 𝐾)
1814, 17raleqbii 3160 . . . . 5 (∀𝑣𝑉 (𝐷𝑣) = 𝐾 ↔ ∀𝑣 ∈ (Vtx‘𝐺)((VtxDeg‘𝐺)‘𝑣) = 𝐾)
1918bicomi 223 . . . 4 (∀𝑣 ∈ (Vtx‘𝐺)((VtxDeg‘𝐺)‘𝑣) = 𝐾 ↔ ∀𝑣𝑉 (𝐷𝑣) = 𝐾)
2019a1i 11 . . 3 ((𝐺𝑊𝐾𝑍) → (∀𝑣 ∈ (Vtx‘𝐺)((VtxDeg‘𝐺)‘𝑣) = 𝐾 ↔ ∀𝑣𝑉 (𝐷𝑣) = 𝐾))
2120anbi2d 628 . 2 ((𝐺𝑊𝐾𝑍) → ((𝐾 ∈ ℕ0* ∧ ∀𝑣 ∈ (Vtx‘𝐺)((VtxDeg‘𝐺)‘𝑣) = 𝐾) ↔ (𝐾 ∈ ℕ0* ∧ ∀𝑣𝑉 (𝐷𝑣) = 𝐾)))
2213, 21bitrd 278 1 ((𝐺𝑊𝐾𝑍) → (𝐺 RegGraph 𝐾 ↔ (𝐾 ∈ ℕ0* ∧ ∀𝑣𝑉 (𝐷𝑣) = 𝐾)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1539  wcel 2108  wral 3063   class class class wbr 5070  cfv 6418  0*cxnn0 12235  Vtxcvtx 27269  VtxDegcvtxdg 27735   RegGraph crgr 27825
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-ral 3068  df-rab 3072  df-v 3424  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-opab 5133  df-iota 6376  df-fv 6426  df-rgr 27827
This theorem is referenced by:  rgrprop  27830  isrusgr0  27836  0edg0rgr  27842  0vtxrgr  27846  rgrprcx  27862
  Copyright terms: Public domain W3C validator