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

Theorem isrgr 27926
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 482 . . . 4 ((𝑔 = 𝐺𝑘 = 𝐾) → (𝑘 ∈ ℕ0*𝐾 ∈ ℕ0*))
3 fveq2 6774 . . . . . 6 (𝑔 = 𝐺 → (Vtx‘𝑔) = (Vtx‘𝐺))
43adantr 481 . . . . 5 ((𝑔 = 𝐺𝑘 = 𝐾) → (Vtx‘𝑔) = (Vtx‘𝐺))
5 fveq2 6774 . . . . . . . 8 (𝑔 = 𝐺 → (VtxDeg‘𝑔) = (VtxDeg‘𝐺))
65fveq1d 6776 . . . . . . 7 (𝑔 = 𝐺 → ((VtxDeg‘𝑔)‘𝑣) = ((VtxDeg‘𝐺)‘𝑣))
76adantr 481 . . . . . 6 ((𝑔 = 𝐺𝑘 = 𝐾) → ((VtxDeg‘𝑔)‘𝑣) = ((VtxDeg‘𝐺)‘𝑣))
8 simpr 485 . . . . . 6 ((𝑔 = 𝐺𝑘 = 𝐾) → 𝑘 = 𝐾)
97, 8eqeq12d 2754 . . . . 5 ((𝑔 = 𝐺𝑘 = 𝐾) → (((VtxDeg‘𝑔)‘𝑣) = 𝑘 ↔ ((VtxDeg‘𝐺)‘𝑣) = 𝐾))
104, 9raleqbidv 3336 . . . 4 ((𝑔 = 𝐺𝑘 = 𝐾) → (∀𝑣 ∈ (Vtx‘𝑔)((VtxDeg‘𝑔)‘𝑣) = 𝑘 ↔ ∀𝑣 ∈ (Vtx‘𝐺)((VtxDeg‘𝐺)‘𝑣) = 𝐾))
112, 10anbi12d 631 . . 3 ((𝑔 = 𝐺𝑘 = 𝐾) → ((𝑘 ∈ ℕ0* ∧ ∀𝑣 ∈ (Vtx‘𝑔)((VtxDeg‘𝑔)‘𝑣) = 𝑘) ↔ (𝐾 ∈ ℕ0* ∧ ∀𝑣 ∈ (Vtx‘𝐺)((VtxDeg‘𝐺)‘𝑣) = 𝐾)))
12 df-rgr 27924 . . 3 RegGraph = {⟨𝑔, 𝑘⟩ ∣ (𝑘 ∈ ℕ0* ∧ ∀𝑣 ∈ (Vtx‘𝑔)((VtxDeg‘𝑔)‘𝑣) = 𝑘)}
1311, 12brabga 5447 . 2 ((𝐺𝑊𝐾𝑍) → (𝐺 RegGraph 𝐾 ↔ (𝐾 ∈ ℕ0* ∧ ∀𝑣 ∈ (Vtx‘𝐺)((VtxDeg‘𝐺)‘𝑣) = 𝐾)))
14 isrgr.v . . . . . 6 𝑉 = (Vtx‘𝐺)
15 isrgr.d . . . . . . . 8 𝐷 = (VtxDeg‘𝐺)
1615fveq1i 6775 . . . . . . 7 (𝐷𝑣) = ((VtxDeg‘𝐺)‘𝑣)
1716eqeq1i 2743 . . . . . 6 ((𝐷𝑣) = 𝐾 ↔ ((VtxDeg‘𝐺)‘𝑣) = 𝐾)
1814, 17raleqbii 3163 . . . . 5 (∀𝑣𝑉 (𝐷𝑣) = 𝐾 ↔ ∀𝑣 ∈ (Vtx‘𝐺)((VtxDeg‘𝐺)‘𝑣) = 𝐾)
1918bicomi 223 . . . 4 (∀𝑣 ∈ (Vtx‘𝐺)((VtxDeg‘𝐺)‘𝑣) = 𝐾 ↔ ∀𝑣𝑉 (𝐷𝑣) = 𝐾)
2019a1i 11 . . 3 ((𝐺𝑊𝐾𝑍) → (∀𝑣 ∈ (Vtx‘𝐺)((VtxDeg‘𝐺)‘𝑣) = 𝐾 ↔ ∀𝑣𝑉 (𝐷𝑣) = 𝐾))
2120anbi2d 629 . 2 ((𝐺𝑊𝐾𝑍) → ((𝐾 ∈ ℕ0* ∧ ∀𝑣 ∈ (Vtx‘𝐺)((VtxDeg‘𝐺)‘𝑣) = 𝐾) ↔ (𝐾 ∈ ℕ0* ∧ ∀𝑣𝑉 (𝐷𝑣) = 𝐾)))
2213, 21bitrd 278 1 ((𝐺𝑊𝐾𝑍) → (𝐺 RegGraph 𝐾 ↔ (𝐾 ∈ ℕ0* ∧ ∀𝑣𝑉 (𝐷𝑣) = 𝐾)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396   = wceq 1539  wcel 2106  wral 3064   class class class wbr 5074  cfv 6433  0*cxnn0 12305  Vtxcvtx 27366  VtxDegcvtxdg 27832   RegGraph crgr 27922
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-sb 2068  df-clab 2716  df-cleq 2730  df-clel 2816  df-ral 3069  df-rab 3073  df-v 3434  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-br 5075  df-opab 5137  df-iota 6391  df-fv 6441  df-rgr 27924
This theorem is referenced by:  rgrprop  27927  isrusgr0  27933  0edg0rgr  27939  0vtxrgr  27943  rgrprcx  27959
  Copyright terms: Public domain W3C validator