Metamath Proof Explorer


Theorem iscycl

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)

Ref Expression
Assertion iscycl FCyclesGPFPathsGPP0=PF

Proof

Step Hyp Ref Expression
1 cycls CyclesG=fp|fPathsGpp0=pf
2 fveq1 p=Pp0=P0
3 2 adantl f=Fp=Pp0=P0
4 simpr f=Fp=Pp=P
5 fveq2 f=Ff=F
6 5 adantr f=Fp=Pf=F
7 4 6 fveq12d f=Fp=Ppf=PF
8 3 7 eqeq12d f=Fp=Pp0=pfP0=PF
9 relpths RelPathsG
10 1 8 9 brfvopabrbr FCyclesGPFPathsGPP0=PF