∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_5} [inst_1 : NormedAddCommGroup E]
  [inst_2 : NormedSpace 𝕜 E] {F : Type u_2} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {H : Type u_6}
  [inst_5 : TopologicalSpace H] {G : Type u_3} [inst_6 : TopologicalSpace G] {I : ModelWithCorners 𝕜 E H}
  {J : ModelWithCorners 𝕜 F G} {M : Type u_7} [inst_7 : TopologicalSpace M] [inst_8 : ChartedSpace H M] {N : Type u_4}
  [inst_9 : TopologicalSpace N] [inst_10 : ChartedSpace G N] {n : WithTop ℕ∞} {f : M → N} (g : N → M)
  (hgInverse : Function.LeftInverse g f ∧ Function.RightInverse g f) (Φ : M → PartialDiffeomorph I J M N n),
  (∀ (x : M), x ∈ (Φ x).source ∧ Set.EqOn f (↑(Φ x).toPartialEquiv) (Φ x).source) →
    (∀ (x : M), Set.EqOn g (↑(Φ x).symm.toPartialEquiv) (Φ x).target) →
      ContMDiff J I n ⇑{ toFun := f, invFun := g, left_inv := ⋯, right_inv := ⋯ }.symm