diff -r 021fb1b01de5 -r 74c75da4cb01 src/HOL/Homology/Invariance_of_Domain.thy --- a/src/HOL/Homology/Invariance_of_Domain.thy Tue Jul 11 20:22:08 2023 +0100 +++ b/src/HOL/Homology/Invariance_of_Domain.thy Wed Jul 12 18:28:11 2023 +0100 @@ -54,7 +54,7 @@ moreover have "topspace (nsphere n) \ {f. f n = 0} = topspace (nsphere (n - Suc 0))" by (metis subt_eq topspace_subtopology) ultimately show ?thesis - using cmr continuous_map_def by fastforce + using fim by auto qed then have fimeq: "f ` (topspace (nsphere n) \ equator n) \ topspace (nsphere n) \ equator n" using fim cmf by (auto simp: equator_def continuous_map_def image_subset_iff) @@ -623,7 +623,7 @@ using rm_ret [OF \squashable 0 UNIV\] by auto then have "ret 0 x \ topspace (Euclidean_space n)" if "x \ topspace (Euclidean_space (Suc n))" "-1 < x n" "x n < 1" for x - using that by (simp add: continuous_map_def retraction_maps_def) + using that by (metis continuous_map_image_subset_topspace image_subset_iff retraction_maps_def) then show "(ret 0) ` (lo \ hi) \ topspace (Euclidean_space n) - S" by (auto simp: local.cong ret_def hi_def lo_def) show "homotopic_with (\h. h ` (lo \ hi) \ lo \ hi) (Euclidean_space (Suc n)) (Euclidean_space (Suc n)) (ret 0) id" @@ -1353,7 +1353,7 @@ have "openin (Euclidean_space n) (h ` e ` {- r<.. topspace (Euclidean_space 1)" + show hesub: "h ` e ` {- r<.. topspace (Euclidean_space 1)" using "1" C_def \\r. B r \ C r\ cmh continuous_map_image_subset_topspace eBr by fastforce have cont: "continuous_on {- r<.. h \ e)" proof (intro continuous_on_compose) @@ -1365,12 +1365,10 @@ by (auto simp: eBr \\r. B r \ C r\) (auto simp: B_def) with cmh show "continuous_on (e ` {- r<.. topspace ?E" - using subCr cmh by (simp add: continuous_map_def image_subset_iff) - moreover have "continuous_on (topspace ?E) e'" + have "continuous_on (topspace ?E) e'" by (metis "1" continuous_map_Euclidean_space_iff hom_ee' homeomorphic_maps_def) - ultimately show "continuous_on (h ` e ` {- r<..