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

Theorem ispth 28091
Description: Conditions for a pair of classes/functions to be a path (in an undirected graph). (Contributed by Alexander van der Vekens, 21-Oct-2017.) (Revised by AV, 9-Jan-2021.) (Revised by AV, 29-Oct-2021.)
Assertion
Ref Expression
ispth (𝐹(Paths‘𝐺)𝑃 ↔ (𝐹(Trails‘𝐺)𝑃 ∧ Fun (𝑃 ↾ (1..^(♯‘𝐹))) ∧ ((𝑃 “ {0, (♯‘𝐹)}) ∩ (𝑃 “ (1..^(♯‘𝐹)))) = ∅))

Proof of Theorem ispth
Dummy variables 𝑓 𝑝 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 pthsfval 28089 . . . 4 (Paths‘𝐺) = {⟨𝑓, 𝑝⟩ ∣ (𝑓(Trails‘𝐺)𝑝 ∧ Fun (𝑝 ↾ (1..^(♯‘𝑓))) ∧ ((𝑝 “ {0, (♯‘𝑓)}) ∩ (𝑝 “ (1..^(♯‘𝑓)))) = ∅)}
2 3anass 1094 . . . . 5 ((𝑓(Trails‘𝐺)𝑝 ∧ Fun (𝑝 ↾ (1..^(♯‘𝑓))) ∧ ((𝑝 “ {0, (♯‘𝑓)}) ∩ (𝑝 “ (1..^(♯‘𝑓)))) = ∅) ↔ (𝑓(Trails‘𝐺)𝑝 ∧ (Fun (𝑝 ↾ (1..^(♯‘𝑓))) ∧ ((𝑝 “ {0, (♯‘𝑓)}) ∩ (𝑝 “ (1..^(♯‘𝑓)))) = ∅)))
32opabbii 5141 . . . 4 {⟨𝑓, 𝑝⟩ ∣ (𝑓(Trails‘𝐺)𝑝 ∧ Fun (𝑝 ↾ (1..^(♯‘𝑓))) ∧ ((𝑝 “ {0, (♯‘𝑓)}) ∩ (𝑝 “ (1..^(♯‘𝑓)))) = ∅)} = {⟨𝑓, 𝑝⟩ ∣ (𝑓(Trails‘𝐺)𝑝 ∧ (Fun (𝑝 ↾ (1..^(♯‘𝑓))) ∧ ((𝑝 “ {0, (♯‘𝑓)}) ∩ (𝑝 “ (1..^(♯‘𝑓)))) = ∅))}
41, 3eqtri 2766 . . 3 (Paths‘𝐺) = {⟨𝑓, 𝑝⟩ ∣ (𝑓(Trails‘𝐺)𝑝 ∧ (Fun (𝑝 ↾ (1..^(♯‘𝑓))) ∧ ((𝑝 “ {0, (♯‘𝑓)}) ∩ (𝑝 “ (1..^(♯‘𝑓)))) = ∅))}
5 simpr 485 . . . . . . 7 ((𝑓 = 𝐹𝑝 = 𝑃) → 𝑝 = 𝑃)
6 fveq2 6774 . . . . . . . . 9 (𝑓 = 𝐹 → (♯‘𝑓) = (♯‘𝐹))
76oveq2d 7291 . . . . . . . 8 (𝑓 = 𝐹 → (1..^(♯‘𝑓)) = (1..^(♯‘𝐹)))
87adantr 481 . . . . . . 7 ((𝑓 = 𝐹𝑝 = 𝑃) → (1..^(♯‘𝑓)) = (1..^(♯‘𝐹)))
95, 8reseq12d 5892 . . . . . 6 ((𝑓 = 𝐹𝑝 = 𝑃) → (𝑝 ↾ (1..^(♯‘𝑓))) = (𝑃 ↾ (1..^(♯‘𝐹))))
109cnveqd 5784 . . . . 5 ((𝑓 = 𝐹𝑝 = 𝑃) → (𝑝 ↾ (1..^(♯‘𝑓))) = (𝑃 ↾ (1..^(♯‘𝐹))))
1110funeqd 6456 . . . 4 ((𝑓 = 𝐹𝑝 = 𝑃) → (Fun (𝑝 ↾ (1..^(♯‘𝑓))) ↔ Fun (𝑃 ↾ (1..^(♯‘𝐹)))))
126preq2d 4676 . . . . . . . 8 (𝑓 = 𝐹 → {0, (♯‘𝑓)} = {0, (♯‘𝐹)})
1312adantr 481 . . . . . . 7 ((𝑓 = 𝐹𝑝 = 𝑃) → {0, (♯‘𝑓)} = {0, (♯‘𝐹)})
145, 13imaeq12d 5970 . . . . . 6 ((𝑓 = 𝐹𝑝 = 𝑃) → (𝑝 “ {0, (♯‘𝑓)}) = (𝑃 “ {0, (♯‘𝐹)}))
155, 8imaeq12d 5970 . . . . . 6 ((𝑓 = 𝐹𝑝 = 𝑃) → (𝑝 “ (1..^(♯‘𝑓))) = (𝑃 “ (1..^(♯‘𝐹))))
1614, 15ineq12d 4147 . . . . 5 ((𝑓 = 𝐹𝑝 = 𝑃) → ((𝑝 “ {0, (♯‘𝑓)}) ∩ (𝑝 “ (1..^(♯‘𝑓)))) = ((𝑃 “ {0, (♯‘𝐹)}) ∩ (𝑃 “ (1..^(♯‘𝐹)))))
1716eqeq1d 2740 . . . 4 ((𝑓 = 𝐹𝑝 = 𝑃) → (((𝑝 “ {0, (♯‘𝑓)}) ∩ (𝑝 “ (1..^(♯‘𝑓)))) = ∅ ↔ ((𝑃 “ {0, (♯‘𝐹)}) ∩ (𝑃 “ (1..^(♯‘𝐹)))) = ∅))
1811, 17anbi12d 631 . . 3 ((𝑓 = 𝐹𝑝 = 𝑃) → ((Fun (𝑝 ↾ (1..^(♯‘𝑓))) ∧ ((𝑝 “ {0, (♯‘𝑓)}) ∩ (𝑝 “ (1..^(♯‘𝑓)))) = ∅) ↔ (Fun (𝑃 ↾ (1..^(♯‘𝐹))) ∧ ((𝑃 “ {0, (♯‘𝐹)}) ∩ (𝑃 “ (1..^(♯‘𝐹)))) = ∅)))
19 reltrls 28062 . . 3 Rel (Trails‘𝐺)
204, 18, 19brfvopabrbr 6872 . 2 (𝐹(Paths‘𝐺)𝑃 ↔ (𝐹(Trails‘𝐺)𝑃 ∧ (Fun (𝑃 ↾ (1..^(♯‘𝐹))) ∧ ((𝑃 “ {0, (♯‘𝐹)}) ∩ (𝑃 “ (1..^(♯‘𝐹)))) = ∅)))
21 3anass 1094 . 2 ((𝐹(Trails‘𝐺)𝑃 ∧ Fun (𝑃 ↾ (1..^(♯‘𝐹))) ∧ ((𝑃 “ {0, (♯‘𝐹)}) ∩ (𝑃 “ (1..^(♯‘𝐹)))) = ∅) ↔ (𝐹(Trails‘𝐺)𝑃 ∧ (Fun (𝑃 ↾ (1..^(♯‘𝐹))) ∧ ((𝑃 “ {0, (♯‘𝐹)}) ∩ (𝑃 “ (1..^(♯‘𝐹)))) = ∅)))
2220, 21bitr4i 277 1 (𝐹(Paths‘𝐺)𝑃 ↔ (𝐹(Trails‘𝐺)𝑃 ∧ Fun (𝑃 ↾ (1..^(♯‘𝐹))) ∧ ((𝑃 “ {0, (♯‘𝐹)}) ∩ (𝑃 “ (1..^(♯‘𝐹)))) = ∅))
Colors of variables: wff setvar class
Syntax hints:  wb 205  wa 396  w3a 1086   = wceq 1539  cin 3886  c0 4256  {cpr 4563   class class class wbr 5074  {copab 5136  ccnv 5588  cres 5591  cima 5592  Fun wfun 6427  cfv 6433  (class class class)co 7275  0cc0 10871  1c1 10872  ..^cfzo 13382  chash 14044  Trailsctrls 28058  Pathscpths 28080
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-10 2137  ax-11 2154  ax-12 2171  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-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  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-mpt 5158  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-iota 6391  df-fun 6435  df-fv 6441  df-ov 7278  df-trls 28060  df-pths 28084
This theorem is referenced by:  pthistrl  28093  spthispth  28094  pthdivtx  28097  2pthnloop  28099  pthdepisspth  28103  pthd  28137  0pth  28489  1pthd  28507  pthhashvtx  33089  subgrpth  33096
  Copyright terms: Public domain W3C validator