match p, w', eqlv, eqlw with
| nil _, _, rfl, rfl =>
  simp only [shiftEnds]
| cons e p', w', rfl,  eqlw =>
  simp only [shiftEnds, 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 v' w w' : V
p : EdgePath G v w
eqlv : v = v'
eqlw : w = w'
⊢ toList (shiftEnds p eqlv eqlw) = toList p
no goals