match p, w', eql with
| nil _, _, rfl =>
  rename_i v'
  simp only [shiftTarget]
| cons e p', w', eql =>
  simp only [shiftTarget, cons_toList, toList_shiftTarget]
V : Type u
E : Type v
inst✝¹ : DecidableEq V
inst✝ : DecidableEq E
G✝ : Graph V E
u v✝ w✝ : V
e : EdgeBetween G✝ v✝ w✝
G : Graph V E
v w w' : V
p : EdgePath G v w
eql : w = w'
⊢ toList (shiftTarget p eql) = toList p
no goals