simp [cons_toList, nil_toList] at h
case cons.nil
V : Type u
E : Type v
G✝ : Graph V E
u v✝¹ w✝² : V
e : EdgeBetween G✝ v✝¹ w✝²
G : Graph V E
v w✝¹ v✝ w✝ u✝ w : V
e₁ : EdgeBetween G w w✝
p₁' : EdgePath G w✝ w
ih : ∀ (p₂ : EdgePath G w✝ w), toList p₁' = toList p₂ → p₁' = p₂
h : toList (cons e₁ p₁') = toList (nil w)
⊢ cons e₁ p₁' = nil w
no goals