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

Theorem ispth 28960
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 28958 . . . 4 (Paths‘𝐺) = {⟨𝑓, 𝑝⟩ ∣ (𝑓(Trails‘𝐺)𝑝 ∧ Fun (𝑝 ↾ (1..^(♯‘𝑓))) ∧ ((𝑝 “ {0, (♯‘𝑓)}) ∩ (𝑝 “ (1..^(♯‘𝑓)))) = ∅)}
2 3anass 1096 . . . . 5 ((𝑓(Trails‘𝐺)𝑝 ∧ Fun (𝑝 ↾ (1..^(♯‘𝑓))) ∧ ((𝑝 “ {0, (♯‘𝑓)}) ∩ (𝑝 “ (1..^(♯‘𝑓)))) = ∅) ↔ (𝑓(Trails‘𝐺)𝑝 ∧ (Fun (𝑝 ↾ (1..^(♯‘𝑓))) ∧ ((𝑝 “ {0, (♯‘𝑓)}) ∩ (𝑝 “ (1..^(♯‘𝑓)))) = ∅)))
32opabbii 5214 . . . 4 {⟨𝑓, 𝑝⟩ ∣ (𝑓(Trails‘𝐺)𝑝 ∧ Fun (𝑝 ↾ (1..^(♯‘𝑓))) ∧ ((𝑝 “ {0, (♯‘𝑓)}) ∩ (𝑝 “ (1..^(♯‘𝑓)))) = ∅)} = {⟨𝑓, 𝑝⟩ ∣ (𝑓(Trails‘𝐺)𝑝 ∧ (Fun (𝑝 ↾ (1..^(♯‘𝑓))) ∧ ((𝑝 “ {0, (♯‘𝑓)}) ∩ (𝑝 “ (1..^(♯‘𝑓)))) = ∅))}
41, 3eqtri 2761 . . 3 (Paths‘𝐺) = {⟨𝑓, 𝑝⟩ ∣ (𝑓(Trails‘𝐺)𝑝 ∧ (Fun (𝑝 ↾ (1..^(♯‘𝑓))) ∧ ((𝑝 “ {0, (♯‘𝑓)}) ∩ (𝑝 “ (1..^(♯‘𝑓)))) = ∅))}
5 simpr 486 . . . . . . 7 ((𝑓 = 𝐹𝑝 = 𝑃) → 𝑝 = 𝑃)
6 fveq2 6888 . . . . . . . . 9 (𝑓 = 𝐹 → (♯‘𝑓) = (♯‘𝐹))
76oveq2d 7420 . . . . . . . 8 (𝑓 = 𝐹 → (1..^(♯‘𝑓)) = (1..^(♯‘𝐹)))
87adantr 482 . . . . . . 7 ((𝑓 = 𝐹𝑝 = 𝑃) → (1..^(♯‘𝑓)) = (1..^(♯‘𝐹)))
95, 8reseq12d 5980 . . . . . 6 ((𝑓 = 𝐹𝑝 = 𝑃) → (𝑝 ↾ (1..^(♯‘𝑓))) = (𝑃 ↾ (1..^(♯‘𝐹))))
109cnveqd 5873 . . . . 5 ((𝑓 = 𝐹𝑝 = 𝑃) → (𝑝 ↾ (1..^(♯‘𝑓))) = (𝑃 ↾ (1..^(♯‘𝐹))))
1110funeqd 6567 . . . 4 ((𝑓 = 𝐹𝑝 = 𝑃) → (Fun (𝑝 ↾ (1..^(♯‘𝑓))) ↔ Fun (𝑃 ↾ (1..^(♯‘𝐹)))))
126preq2d 4743 . . . . . . . 8 (𝑓 = 𝐹 → {0, (♯‘𝑓)} = {0, (♯‘𝐹)})
1312adantr 482 . . . . . . 7 ((𝑓 = 𝐹𝑝 = 𝑃) → {0, (♯‘𝑓)} = {0, (♯‘𝐹)})
145, 13imaeq12d 6058 . . . . . 6 ((𝑓 = 𝐹𝑝 = 𝑃) → (𝑝 “ {0, (♯‘𝑓)}) = (𝑃 “ {0, (♯‘𝐹)}))
155, 8imaeq12d 6058 . . . . . 6 ((𝑓 = 𝐹𝑝 = 𝑃) → (𝑝 “ (1..^(♯‘𝑓))) = (𝑃 “ (1..^(♯‘𝐹))))
1614, 15ineq12d 4212 . . . . 5 ((𝑓 = 𝐹𝑝 = 𝑃) → ((𝑝 “ {0, (♯‘𝑓)}) ∩ (𝑝 “ (1..^(♯‘𝑓)))) = ((𝑃 “ {0, (♯‘𝐹)}) ∩ (𝑃 “ (1..^(♯‘𝐹)))))
1716eqeq1d 2735 . . . 4 ((𝑓 = 𝐹𝑝 = 𝑃) → (((𝑝 “ {0, (♯‘𝑓)}) ∩ (𝑝 “ (1..^(♯‘𝑓)))) = ∅ ↔ ((𝑃 “ {0, (♯‘𝐹)}) ∩ (𝑃 “ (1..^(♯‘𝐹)))) = ∅))
1811, 17anbi12d 632 . . 3 ((𝑓 = 𝐹𝑝 = 𝑃) → ((Fun (𝑝 ↾ (1..^(♯‘𝑓))) ∧ ((𝑝 “ {0, (♯‘𝑓)}) ∩ (𝑝 “ (1..^(♯‘𝑓)))) = ∅) ↔ (Fun (𝑃 ↾ (1..^(♯‘𝐹))) ∧ ((𝑃 “ {0, (♯‘𝐹)}) ∩ (𝑃 “ (1..^(♯‘𝐹)))) = ∅)))
19 reltrls 28931 . . 3 Rel (Trails‘𝐺)
204, 18, 19brfvopabrbr 6991 . 2 (𝐹(Paths‘𝐺)𝑃 ↔ (𝐹(Trails‘𝐺)𝑃 ∧ (Fun (𝑃 ↾ (1..^(♯‘𝐹))) ∧ ((𝑃 “ {0, (♯‘𝐹)}) ∩ (𝑃 “ (1..^(♯‘𝐹)))) = ∅)))
21 3anass 1096 . 2 ((𝐹(Trails‘𝐺)𝑃 ∧ Fun (𝑃 ↾ (1..^(♯‘𝐹))) ∧ ((𝑃 “ {0, (♯‘𝐹)}) ∩ (𝑃 “ (1..^(♯‘𝐹)))) = ∅) ↔ (𝐹(Trails‘𝐺)𝑃 ∧ (Fun (𝑃 ↾ (1..^(♯‘𝐹))) ∧ ((𝑃 “ {0, (♯‘𝐹)}) ∩ (𝑃 “ (1..^(♯‘𝐹)))) = ∅)))
2220, 21bitr4i 278 1 (𝐹(Paths‘𝐺)𝑃 ↔ (𝐹(Trails‘𝐺)𝑃 ∧ Fun (𝑃 ↾ (1..^(♯‘𝐹))) ∧ ((𝑃 “ {0, (♯‘𝐹)}) ∩ (𝑃 “ (1..^(♯‘𝐹)))) = ∅))
Colors of variables: wff setvar class
Syntax hints:  wb 205  wa 397  w3a 1088   = wceq 1542  cin 3946  c0 4321  {cpr 4629   class class class wbr 5147  {copab 5209  ccnv 5674  cres 5677  cima 5678  Fun wfun 6534  cfv 6540  (class class class)co 7404  0cc0 11106  1c1 11107  ..^cfzo 13623  chash 14286  Trailsctrls 28927  Pathscpths 28949
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 1914  ax-6 1972  ax-7 2012  ax-8 2109  ax-9 2117  ax-10 2138  ax-11 2155  ax-12 2172  ax-ext 2704  ax-sep 5298  ax-nul 5305  ax-pr 5426
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 847  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1783  df-nf 1787  df-sb 2069  df-mo 2535  df-eu 2564  df-clab 2711  df-cleq 2725  df-clel 2811  df-nfc 2886  df-ne 2942  df-ral 3063  df-rex 3072  df-rab 3434  df-v 3477  df-sbc 3777  df-csb 3893  df-dif 3950  df-un 3952  df-in 3954  df-ss 3964  df-nul 4322  df-if 4528  df-sn 4628  df-pr 4630  df-op 4634  df-uni 4908  df-br 5148  df-opab 5210  df-mpt 5231  df-id 5573  df-xp 5681  df-rel 5682  df-cnv 5683  df-co 5684  df-dm 5685  df-rn 5686  df-res 5687  df-ima 5688  df-iota 6492  df-fun 6542  df-fv 6548  df-ov 7407  df-trls 28929  df-pths 28953
This theorem is referenced by:  pthistrl  28962  spthispth  28963  pthdivtx  28966  2pthnloop  28968  pthdepisspth  28972  pthd  29006  0pth  29358  1pthd  29376  pthhashvtx  34056  subgrpth  34063
  Copyright terms: Public domain W3C validator