start using "refine"

The proof of "path_pregroupoid" looks a lot shorter.