{
  "id": "4323",
  "ident": "NS.04323",
  "slug": "mathoverflow-235893",
  "title": "Mathoverflow 235893",
  "status": "open",
  "statement_status": "reviewed",
  "statement_md": "Assume for $n>1$, $f:\\mathbb{R}^n\\to\\mathbb{R}^n$ is a bijection, where $\\mathbb{R}^n$ is equipped\nwith the standard topology. Does the connectedness of (the induced power set map) $f$ imply\nthat of $f^{-1}$?",
  "subjects": [
    "math.CA",
    "math.GN",
    "msc:26",
    "msc:54"
  ],
  "tags": [
    "question"
  ],
  "collection": "mathoverflow",
  "source_url": "https://mathoverflow.net/questions/235893",
  "solved_on_platform": false,
  "needs_answer": false,
  "version": 1,
  "decl_name": "Mathoverflow235893.mathoverflow_235893",
  "statement_lean": "theorem mathoverflow_235893 :\n    ∀ n > 1, ∀ (f : ℝ^n ≃ ℝ^n), IsConnectedMap f → IsConnectedMap f.symm",
  "challenge_source": "/-\nCopyright 2025 The Formal Conjectures Authors.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n-/\nmodule\n\npublic import FormalConjecturesUtil\n\n/-!\n# Mathoverflow 235893\n\n*Reference:* [mathoverflow/235893](https://mathoverflow.net/questions/235893)\nasked by user [*Willie Wong*](https://mathoverflow.net/users/3948/willie-wong)\n-/\n\n@[expose] public section\n\nopen scoped EuclideanGeometry\n\nnamespace Mathoverflow235893\n\nvariable (n : ℕ)\n\n/-- For topological spaces $X$ and $Y$ we say a function $f : X → Y$ is *connected* is it sends\nconnected sets to connected sets.\n-/\ndef IsConnectedMap {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y] (f : X → Y) : Prop :=\n  ∀ ⦃s : Set X⦄, IsConnected s → IsConnected (f '' s)\n\n/--\nBy a standard result, every continuous map is connected\n-/\n@[category test, AMS 54]\ntheorem Continuous.isConnectedMap {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]\n    {f : X → Y} (hf : Continuous f) : IsConnectedMap f :=\n  fun _ h ↦ IsConnected.image h f (Continuous.continuousOn hf)\n\n/--\nA set in $\\mathbb{R}$ is connected if and only if it is order-connected and non-empty.\n-/\n@[category test, AMS 54]\nlemma isConnected_iff_ordConnected_and_nonempty {s : Set ℝ} :\n    IsConnected s ↔ s.OrdConnected ∧ s.Nonempty := by\n  /-\n  We prove this by combining the facts that connected sets in $\\mathbb{R}$ are exactly the order-connected sets, and that connected sets are by definition non-empty.\n  -/\n  constructor\n  · rintro ⟨h1, h2⟩\n    exact ⟨h2.ordConnected, h1⟩\n  · rintro ⟨h1, h2⟩\n    exact ⟨h2, h1.isPreconnected⟩\n/--\nIf $f : \\mathbb{R} \\to \\mathbb{R}$ is a connected bijection, then its inverse is also a connected bijection.\n-/\n@[category test, AMS 54]\nlemma isConnectedMap_symm_of_R (f : ℝ ≃ ℝ) (hf : IsConnectedMap f) : IsConnectedMap f.symm := by\n  /-\n  We prove this by contradiction. Suppose the inverse is not connected. Then it maps some connected set to a disconnected set.\n  By the characterization of connected sets in $\\mathbb{R}$, this means there are points $a, c$ in the image and a point $b$ between them that is not in the image.\n  We then use the connectedness of $f$ on the intervals $[a, b]$ and $[b, c]$ to derive a contradiction, as $f(b)$ must be either less than or greater than both $f(a)$ and $f(c)$, which violates the intermediate value property.\n  -/\n  intro s hs\n  rw [isConnected_iff_ordConnected_and_nonempty] at hs ⊢\n  rcases hs with ⟨h_ord, h_nonempty⟩\n  have h_nonempty' : (f.symm '' s).Nonempty := by\n    rcases h_nonempty with ⟨y, hy⟩\n    use f.symm y\n    exact Set.mem_image_of_mem f.symm hy\n  refine ⟨?_, h_nonempty'⟩\n  rw [Set.ordConnected_def]\n  intro a ha c hc b hb\n  rw [Equiv.image_symm_eq_preimage] at ha hc ⊢\n  by_contra hfb\n  have h_not_mem : f b ∉ Set.uIcc (f a) (f c) := by\n    intro h\n    cases le_total (f a) (f c) with\n    | inl hle =>\n      rw [Set.uIcc_of_le hle] at h\n      exact hfb (h_ord.out ha hc h)\n    | inr hle =>\n      rw [Set.uIcc_of_ge hle] at h\n      exact hfb (h_ord.out hc ha h)\n  have hI1 : IsConnected (Set.Icc a b) := by\n    rw [isConnected_iff_ordConnected_and_nonempty]\n    exact ⟨Set.ordConnected_Icc, Set.nonempty_Icc.mpr hb.1⟩\n  have hI2 : IsConnected (Set.Icc b c) := by\n    rw [isConnected_iff_ordConnected_and_nonempty]\n    exact ⟨Set.ordConnected_Icc, Set.nonempty_Icc.mpr hb.2⟩\n  have hfI1 := hf hI1\n  have hfI2 := hf hI2\n  rw [isConnected_iff_ordConnected_and_nonempty] at hfI1 hfI2\n  have h_uIcc1 : Set.uIcc (f a) (f b) ⊆ f '' Set.Icc a b := by\n    apply hfI1.1.uIcc_subset\n    · exact Set.mem_image_of_mem f (Set.left_mem_Icc.mpr hb.1)\n    · exact Set.mem_image_of_mem f (Set.right_mem_Icc.mpr hb.1)\n  have h_uIcc2 : Set.uIcc (f b) (f c) ⊆ f '' Set.Icc b c := by\n    apply hfI2.1.uIcc_subset\n    · exact Set.mem_image_of_mem f (Set.left_mem_Icc.mpr hb.2)\n    · exact Set.mem_image_of_mem f (Set.right_mem_Icc.mpr hb.2)\n  have h_cases : f b < min (f a) (f c) ∨ max (f a) (f c) < f b := by\n    rw [Set.uIcc, Set.mem_Icc, not_and_or, not_le, not_le] at h_not_mem\n    exact h_not_mem\n  rcases h_cases with h_lt | h_gt\n  · let y := min (f a) (f c)\n    have hy1 : y ∈ Set.uIcc (f a) (f b) := by\n      rw [Set.uIcc_eq_union, Set.mem_union, Set.mem_Icc, Set.mem_Icc]\n      right\n      exact ⟨h_lt.le, min_le_left _ _⟩\n    have hy2 : y ∈ Set.uIcc (f b) (f c) := by\n      rw [Set.uIcc_eq_union, Set.mem_union, Set.mem_Icc, Set.mem_Icc]\n      left\n      exact ⟨h_lt.le, min_le_right _ _⟩\n    have h_x1 : ∃ x1 ∈ Set.Icc a b, f x1 = y := h_uIcc1 hy1\n    have h_x2 : ∃ x2 ∈ Set.Icc b c, f x2 = y := h_uIcc2 hy2\n    rcases h_x1 with ⟨x1, hx1, hfx1⟩\n    rcases h_x2 with ⟨x2, hx2, hfx2⟩\n    have h_eq : x1 = x2 := f.injective (hfx1.trans hfx2.symm)\n    have h_eq_b : x1 = b := by linarith [hx1.2, hx2.1, h_eq]\n    have : f b = min (f a) (f c) := by rw [← h_eq_b, hfx1]\n    linarith\n  · let y := max (f a) (f c)\n    have hy1 : y ∈ Set.uIcc (f a) (f b) := by\n      rw [Set.uIcc_eq_union, Set.mem_union, Set.mem_Icc, Set.mem_Icc]\n      left\n      exact ⟨le_max_left _ _, h_gt.le⟩\n    have hy2 : y ∈ Set.uIcc (f b) (f c) := by\n      rw [Set.uIcc_eq_union, Set.mem_union, Set.mem_Icc, Set.mem_Icc]\n      right\n      exact ⟨le_max_right _ _, h_gt.le⟩\n    have h_x1 : ∃ x1 ∈ Set.Icc a b, f x1 = y := h_uIcc1 hy1\n    have h_x2 : ∃ x2 ∈ Set.Icc b c, f x2 = y := h_uIcc2 hy2\n    rcases h_x1 with ⟨x1, hx1, hfx1⟩\n    rcases h_x2 with ⟨x2, hx2, hfx2⟩\n    have h_eq : x1 = x2 := f.injective (hfx1.trans hfx2.symm)\n    have h_eq_b : x1 = b := by linarith [hx1.2, hx2.1, h_eq]\n    have : f b = max (f a) (f c) := by rw [← h_eq_b, hfx1]\n    linarith\n/--\nThe composition of two connected maps is a connected map.\n-/\n@[category test, AMS 54]\nlemma isConnectedMap_comp {X Y Z : Type*} [TopologicalSpace X] [TopologicalSpace Y] [TopologicalSpace Z]\n    {f : X → Y} {g : Y → Z} (hf : IsConnectedMap f) (hg : IsConnectedMap g) :\n    IsConnectedMap (g ∘ f) := by\n  /-\n  We prove this by simply applying the definition of a connected map twice.\n  -/\n  intro s hs\n  rw [Set.image_comp]\n  exact hg (hf hs)\n\n/--\nA homeomorphism is a connected map.\n-/\n@[category test, AMS 54]\nlemma isConnectedMap_homeomorph {X Y : Type*} [TopologicalSpace X] [TopologicalSpace Y]\n    (h : X ≃ₜ Y) : IsConnectedMap h := by\n  /-\n  We prove this by noting that a homeomorphism is continuous, and continuous maps preserve connectedness.\n  -/\n  intro s hs\n  exact hs.image h h.continuous.continuousOn\n\n/--\nIf $f : \\mathbb{R}^1 \\to \\mathbb{R}^1$ is a connected bijection, then its inverse is also a connected bijection.\n-/\n@[category test, AMS 54]\nlemma isConnectedMap_symm_of_E1 (f : ℝ^1 ≃ ℝ^1) (hf : IsConnectedMap f) : IsConnectedMap f.symm := by\n  /-\n  We prove this by conjugating $f$ with the standard homeomorphism between $\\mathbb{R}^1$ and $\\mathbb{R}$, and then applying the corresponding result for $\\mathbb{R}$.\n  -/\n  let h : ℝ^1 ≃ₜ ℝ := (EuclideanSpace.equiv (Fin 1) ℝ).toHomeomorph.trans (Homeomorph.funUnique (Fin 1) ℝ)\n  let g : ℝ ≃ ℝ := h.symm.toEquiv.trans (f.trans h.toEquiv)\n  have hg_conn : IsConnectedMap g := by\n    have h1 : IsConnectedMap h.symm := isConnectedMap_homeomorph h.symm\n    have h2 : IsConnectedMap h := isConnectedMap_homeomorph h\n    change IsConnectedMap (h ∘ f ∘ h.symm)\n    exact isConnectedMap_comp (isConnectedMap_comp h1 hf) h2\n  have hg_symm_conn : IsConnectedMap g.symm := isConnectedMap_symm_of_R g hg_conn\n  have hf_eq : (f.symm : ℝ^1 → ℝ^1) = h.symm ∘ g.symm ∘ h := by\n    ext x\n    simp [g]\n  rw [hf_eq]\n  have h1 : IsConnectedMap h := isConnectedMap_homeomorph h\n  have h2 : IsConnectedMap h.symm := isConnectedMap_homeomorph h.symm\n  change IsConnectedMap (h.symm ∘ g.symm ∘ h)\n  exact isConnectedMap_comp (isConnectedMap_comp h1 hg_symm_conn) h2\n\n\n/--\nAssume for $n>1$, $f:\\mathbb{R}^n\\to\\mathbb{R}^n$ is a bijection, where $\\mathbb{R}^n$ is equipped\nwith the standard topology. Does the connectedness of (the induced power set map) $f$ imply\nthat of $f^{-1}$?\n-/\n@[category research open, question, AMS 26 54]\ntheorem mathoverflow_235893 :\n    ∀ n > 1, ∀ (f : ℝ^n ≃ ℝ^n), IsConnectedMap f → IsConnectedMap f.symm := by\n  sorry\n\n/--\nThere exists a connected bijection ℝ → ℝ^2 where the inverse is not connected,\nproven in [mathoverflow/260589](https://mathoverflow.net/questions/260589) by user\n[Gro-Tsen](https://mathoverflow.net/users/17064/gro-tsen).\n-/\n@[category research solved, AMS 26 54]\ntheorem mathoverflow_260589 :\n    ∃ f : ℝ ≃ ℝ^2, IsConnectedMap f ∧ ¬ IsConnectedMap f.symm := by\n  sorry\n\n-- TODO: Add remarks from the mathoverflow post\n\nend Mathoverflow235893\n",
  "statement_hash": "f4d02140015eedf2d5385d5c46d0d158a51f85f732a8c53ad2f8e3bc019b5f5f",
  "toolchain": "leanprover/lean4:v4.33.1",
  "upstream_commit": "f9b3868d5ca994a7bf95039bcec05338c0c21e2f",
  "workspace": "formal-conjectures",
  "field": "math",
  "formalization": "formal",
  "verification": "lean-kernel",
  "license": "Apache-2.0",
  "attribution": "google-deepmind/formal-conjectures contributors",
  "metric_name": null,
  "metric_direction": null,
  "critiques": [],
  "public_partial_proofs": [],
  "research_threads": [],
  "instructions": "Read research_threads first: other people's public repositories and what they already tried. Write Solution.lean starting from challenge_source. Keep every definition identical, prove decl_name with exactly the same type, no sorry in its dependency closure, no new axioms, no native_decide, no metaprogramming. Submit with POST /api/v1/submissions."
}