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

Theorem iscycl 28447
Description: Sufficient and necessary conditions for a pair of functions to be a cycle (in an undirected graph): A pair of function "is" (represents) a cycle iff it is a closed path. (Contributed by Alexander van der Vekens, 30-Oct-2017.) (Revised by AV, 31-Jan-2021.) (Revised by AV, 30-Oct-2021.)
Assertion
Ref Expression
iscycl (𝐹(Cycles‘𝐺)𝑃 ↔ (𝐹(Paths‘𝐺)𝑃 ∧ (𝑃‘0) = (𝑃‘(♯‘𝐹))))

Proof of Theorem iscycl
Dummy variables 𝑓 𝑝 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 cycls 28445 . 2 (Cycles‘𝐺) = {⟨𝑓, 𝑝⟩ ∣ (𝑓(Paths‘𝐺)𝑝 ∧ (𝑝‘0) = (𝑝‘(♯‘𝑓)))}
2 fveq1 6824 . . . 4 (𝑝 = 𝑃 → (𝑝‘0) = (𝑃‘0))
32adantl 482 . . 3 ((𝑓 = 𝐹𝑝 = 𝑃) → (𝑝‘0) = (𝑃‘0))
4 simpr 485 . . . 4 ((𝑓 = 𝐹𝑝 = 𝑃) → 𝑝 = 𝑃)
5 fveq2 6825 . . . . 5 (𝑓 = 𝐹 → (♯‘𝑓) = (♯‘𝐹))
65adantr 481 . . . 4 ((𝑓 = 𝐹𝑝 = 𝑃) → (♯‘𝑓) = (♯‘𝐹))
74, 6fveq12d 6832 . . 3 ((𝑓 = 𝐹𝑝 = 𝑃) → (𝑝‘(♯‘𝑓)) = (𝑃‘(♯‘𝐹)))
83, 7eqeq12d 2752 . 2 ((𝑓 = 𝐹𝑝 = 𝑃) → ((𝑝‘0) = (𝑝‘(♯‘𝑓)) ↔ (𝑃‘0) = (𝑃‘(♯‘𝐹))))
9 relpths 28376 . 2 Rel (Paths‘𝐺)
101, 8, 9brfvopabrbr 6928 1 (𝐹(Cycles‘𝐺)𝑃 ↔ (𝐹(Paths‘𝐺)𝑃 ∧ (𝑃‘0) = (𝑃‘(♯‘𝐹))))
Colors of variables: wff setvar class
Syntax hints:  wb 205  wa 396   = wceq 1540   class class class wbr 5092  cfv 6479  0cc0 10972  chash 14145  Pathscpths 28368  Cyclesccycls 28441
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1912  ax-6 1970  ax-7 2010  ax-8 2107  ax-9 2115  ax-10 2136  ax-11 2153  ax-12 2170  ax-ext 2707  ax-sep 5243  ax-nul 5250  ax-pr 5372
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1543  df-fal 1553  df-ex 1781  df-nf 1785  df-sb 2067  df-mo 2538  df-eu 2567  df-clab 2714  df-cleq 2728  df-clel 2814  df-nfc 2886  df-ne 2941  df-ral 3062  df-rex 3071  df-rab 3404  df-v 3443  df-sbc 3728  df-csb 3844  df-dif 3901  df-un 3903  df-in 3905  df-ss 3915  df-nul 4270  df-if 4474  df-sn 4574  df-pr 4576  df-op 4580  df-uni 4853  df-br 5093  df-opab 5155  df-mpt 5176  df-id 5518  df-xp 5626  df-rel 5627  df-cnv 5628  df-co 5629  df-dm 5630  df-rn 5631  df-res 5632  df-ima 5633  df-iota 6431  df-fun 6481  df-fv 6487  df-pths 28372  df-cycls 28443
This theorem is referenced by:  cyclprop  28449  cycliscrct  28455  cyclnspth  28456  cyclispthon  28457  0cycl  28786  lp1cycl  28804  3cycld  28830  pthisspthorcycl  33389  spthcycl  33390  subgrcycl  33396  2cycld  33399
  Copyright terms: Public domain W3C validator