diff -r 19cc354ba625 -r 35b2143aeec6 src/HOL/Analysis/Homotopy.thy --- a/src/HOL/Analysis/Homotopy.thy Thu Mar 28 08:30:42 2024 +0100 +++ b/src/HOL/Analysis/Homotopy.thy Thu Mar 28 13:32:57 2024 +0000 @@ -623,6 +623,15 @@ by (metis homotopic_paths_reversepath path_image_reversepath path_reversepath pathfinish_linepath pathfinish_reversepath reversepath_joinpaths reversepath_linepath) +lemma homotopic_paths_rid': + assumes "path p" "path_image p \ s" "x = pathfinish p" + shows "homotopic_paths s (p +++ linepath x x) p" + using homotopic_paths_rid[of p s] assms by simp + +lemma homotopic_paths_lid': + "\path p; path_image p \ s; x = pathstart p\ \ homotopic_paths s (linepath x x +++ p) p" + using homotopic_paths_lid[of p s] by simp + proposition homotopic_paths_assoc: "\path p; path_image p \ S; path q; path_image q \ S; path r; path_image r \ S; pathfinish p = pathstart q; pathfinish q = pathstart r\