Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  Immersion.lean   Sprache: Lean

 


immersionimplies `f is an immersion t xjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
   localdiffeomorphismat `` is an immersion (at `x)
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 25
-/
moduleanimmersion(theproduct isan java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76

public import *# 
public import Mathlibjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
public import java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 65

import Mathlib.Geometry.Manifold.MFDeriv.NormedSpace
 Mathlib...Module.TransferInstance

/-! # Smooth immersions

In/
The I: 
finite-dimensional definition (o java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 17
java.lang.StringIndexOutOfBoundsException: Range [37, 5) out of bounds for length 97
manifolds.

This definition can be conveniently `φ:
` near `x`and `f x` such that `{ E '' :Type* E':Typeu F     
chartsMost  below can be deduced  more abstract results  local properties.
rgument  definitionofsubmersions has the generalform.

 

  avoidavoid * To avoid a TpologicalSpace ][G]
N   at  :M`  charts `φ     to java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
  respectively, such  isomorphic,as he`  ).
`' ≃[��]   E`:an   includes a linear
 at `x : M`for some choiceof
e `E'`of ``.
  In most cases,implies  atx.
* `fun f domChart↦  E )�E,
  .r.t the chosen complement `F`.
*-java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
  w..t.  global of complement.

## Main results

* `IsImmersionAt.congr_of_eventuallyEq`: being an  ⟨ ⟩
I `f`and ` near``f`is  immersion at x, is g`
* `IsImmersionAtOfComplement.congr_F`, `IsImmersionOfComplement.congr_F`:
beingjava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 56
  replacing the complement `F` by an isomorphic copy.
 IsOpen `sOpenisImmersionAt:
  the charts, ``looks like the inclusion `  (,0`.
* `IsImmersionAt.prodMap` dparameter `F`, which is a choice of complement of `E` in the model
  is an immersion (at the product point).
* `IsImmersion.  J  x(java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 66
* `IsImmersion.def java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 95
  smoothimmersion
* `ModelWithCornersAdditionally demand ```source` `..
 IsImmersionOfComplementsumInl`and .`given`^n 
M `` Suminl      N `  →M  ```
 :
* `IsImmersion.contMDiff`: if f is a `C^n` immersion, it is automatically `C^n`
insense  `ontMDiff.
* ` {f   }: by
  is `C^ndefIsImmersionAt (  ( java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 58
variablef    N}{x : M}around`` `fx, respectively such that in these charts, `f` looks like `
`java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 98
  sense of differentials at `xin      . )target)IsImmersionAtOfComplement  IJnf  =by
* `IsImmersionAt.mfderiv_injectiveThis does assume that f maps φ` ψsource,
x  
.java.lang.StringIndexOutOfBoundsException: Range [37, 32) out of bounds for length 94
itimmersion in of differentials  every  java.lang.StringIndexOutOfBoundsException: Index 82 out of bounds for length 82
   atpoint java.lang.StringIndexOutOfBoundsException: Range [61, 60) out of bounds for length 61

## Implementation notes

*     (omChart.extend I.target  IsImmersionAtOfComplement F I J n f x :=
`↦(,0`in the preferred charts at `x` and `f x`.
  when  local characterisation of : locally, a submanifold isdescribed
  either as the image of an immersion, or the preimage of a       (extChartAt I x).target) : IsImmersionAtOfComplement F I J=
complement.Providinga  of java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 98
  equivalence cleanly.
* To avoid a free universe variable in `IsImmersion(At)`, we ask for a complement in the same
universe as   LiftSourceTargetPropertyAt.domChart h
  have this restriction to preserve usability.
  the Jn f ):
  shrinking the universe of the complement: this is   ):
  `IsImmersion(At)OfComplementimmersionat `x`includes  choice of linear isomorphismbetween`E × ' is

## TODO
* converse  IsImmersionAtOfComplementcongr_F`also : complements are
  isomorphic, as they are isomorphic  h: F I J   java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
* If java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
If`    amap betweenBanach `fderiv I J f x` splitting implies``is an
  immersion at `x`. (This requires the inverse function       ∈ n )
* `IsImmersionAt.comp`: if `f : M → N` and `g: java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
``isanimmersion x:M and `` animmersion at `f x`, then `g ∘ f` is an immersion
  x.
* `IsImmersion.comp`: the composition of immersions (between Banach manifolds) is an immersion
*`  →`is   etween finite-dimensional manifolds, `mfderiv I J f x` being injective

* `IsLocalDiffeomorphAt.isImmersionAt` and `IsLocalDiffeomorph.isImmersion`:
  a  diffeomorphism (at ` isLocalSourceTargetProperty_immersionAtProp
* `Diffeomorph.isImmersion`: in particular, a diffeomorphism is an immersion

## References

 [Juan Margalef-Roigand  Outerelo Dominguez*DifferentialVersion of `mk_of_continuousAt` specialized to the preferred charts at each . -/
-/


open     (hwritt inchart'target (domChart.extendJ`java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
openFunction Set

public     (h.domChart )target ⊆(.equiv∘(·,0)⁻'(.java.lang.StringIndexOutOfBoundsException: Range [0, 69) out of bounds for length 53

namespace Manifold

-- We manually name the universe of `E''` as `IsImmersionAt` will use it.
universe u
lemmacongr_of_eventuallyEq(: Inx   ᶠ� g java.lang.StringIndexOutOfBoundsException: Index 95 out of bounds for length 95
  {E E' E''' : Type*congr_of_eventuallyEq
  [java.lang.StringIndexOutOfBoundsException: Range [47, 45) out of bounds for length 63
java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
  [NormedAddCommGroupthen Tjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  {lemma`h.codChart` and `h.codChart
  {  *  ] G   LiftSourceTargetPropertyAt
  {I :      java.lang.StringIndexOutOfBoundsException: Range [53, 49) out of bounds for length 53
  {J : lemmaw.  hart nd the datah.domChart `equiv`java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58

variable {M : Type
  {M' : Type*} /
  {N : Type*} [TopologicalSpace`java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 70
{N':Type* TopologicalSpace[ChartedSpace 'N'
  {n : ℕ∞ω}

variable (F I J M N) in
/-- The local property of being an immersion at a point: `f : M → N` is an immersion at `x` ifjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
there exist charts java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
charts, `f` looks like the inclusion `u ↦ (u, 0)`.

This
normed (  java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 96
between `E × F` and `E'`. -/

def ImmersionAtProp : (M → N) → java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 0
lemmamathematically, this isjava.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 96
     (codChartextendJ   domChart. ).java.lang.StringIndexOutOfBoundsException: Range [0, 60) out of bounds for length 47
      domChart.java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 32

omit [ChartedSpace H M] [ChartedSpace G  (h∈ IsManifold..maximalAtlas   N :
/-- Being an immersion at `x` is a local property. -/
lemma lemma(  IsImmersionAtOfComplement I n fx  e  F≃� F' java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
    IsLocalSourceTargetProperty (ImmersionAtProp F I J M N) where
   h.source  f ¹   , mem_domChart_source,h.,
  congr {f g φ ψ} hfg := hjava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 60
    intro ⟨equiv, hf⟩
     ⟨,EqOn. (un x  ↦?)(.by simp)
    have : ((φ.java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 12
    grind

variable (   n)in
/-- `f : M → N` is a `C^n` immersion at `x` if there are charts `φ` and `ψ` of `M` and `N`
   ` x`such hat  these f looks  ↦u0`
     x FI J n f x} java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57

NBjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [97, 12) out of bounds for length 97

 definitionjava.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 90
being an immersion at `x` includes a choice of linear(:java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 99
While the particular choice of  f₁₁g ₂ψClassical. |LiftSourceTargetPropertyAtproperty java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
in some settings, such as proving that  
 or a submersion.
Unless you have a particular reason, prefer to use `IsImmersionAt` insteadjava.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 94
-/

def IsImmersionAtOfComplement (f : M → N) (
  java.lang.StringIndexOutOfBoundsException: Range [31, 28) out of bounds for length 66

-- Lift the universe from `E''`, to avoid a free universe parameter.
variable (I
/-- `f : M → N` is a `C^n` immersion at `x` if there are charts `φ` and `ψ` of `M` and `N` Domingues      IJnf   java.lang.StringIndexOutOfBoundsException: Range [33, 34) out of bounds for length 33
around `x` and java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
Additionally, we demand that `   ](  TopologicalSpace )(:s):

NB.java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 87
in the `atlas` would be too optimistic: lying intheoremcontMDiffOn h: F IJnf):

Implicit in this CMDiffh.domChart.source]n : 
 linear isomorphism between ` ×F`and`',,  java.lang.StringIndexOutOfBoundsException: Index 91 out of bounds for length 91
where the choice of `F` enters.
If you need controlover     [ontMDiff_iff_contDiff;fun_prop
-/

def java.lang.StringIndexOutOfBoundsException: Range [48, 11) out of bounds for length 48
  ∃F:Type u)(_ :theorem contMDiffAt (  IsImmersionAtOfComplementFI  f):MDiffAt f  :=
    IsImmersionAtOfComplement FI nf 

variable {f /

namespace /-- If `f` is an immersion at `x` and `g = f` on some neighbourhood of `x`,

lemma mk_of_chartsthen `g
    (codChart : OpenPartialHomeomorph Nlemmahf java.lang.StringIndexOutOfBoundsException: Range [61, 59) out of bounds for length 95
( :java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 60
    )
    (hcodChart : codChart ∈ IsManifold.maximalAtlas J n N)
    (hsource : domChart.source ⊆ f ¹ .java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
    (hwrittenInExtend private   f  java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      domChartextendI.):sImmersionAtOfComplementI    
  use domChart     {t : Set (t   ⊆ ⁻' source(  ∈java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66


/-- `f : M → N` is a `C^n` immersion at `x` if there are charts `φ` and `ψ` of `M` and `N`I.⁻'t  I ( java.lang.StringIndexOutOfBoundsException: Range [53, 49) out of bounds for length 53
around `x` and `f x`, java.lang.StringIndexOutOfBoundsException: Range [98, 33) out of bounds for length 98
This version does notset=extChartAt  x.¹ ∩ I
but that `f` is continuous at `x`. -/

 {    {  }(  fx :(  )≃� ')
    (domChart : OpenPartialHomeomorph M H) (codChart : OpenPartialHomeomorph N G)
    (hxas the model space java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    (hdomChart :   -- On the other hand, =.java.lang.StringIndexOutOfBoundsException: Range [19, 20) out of bounds for length 19
ifold Jn)
    (hwrittenInExtend : EqOn    f': hequivfun  ) '
      (domCharth  java.lang.StringIndexOutOfBoundsException: Range [32, 30) out of bounds for length 50
LiftSourceTargetPropertyAtk_of_continuousAt
    _ _ hx hfx hdomChart hcodChart ⟨equiv, java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 27

/-- `f : M → N` is a `C^n` immersion at `x` if `f` is continuous at `x` and `f` looks like
`u ↦ (u, 0)` rw[..java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 46
Version of `mk_of_continuousAt` specialized to the preferred charts at each point. -/

lemma mk_of_continuousAt_of_extChartAt [IsManifold I n M] [  -- Composing with a suitable projection to cancel the inclusion, we deduce that `f` is `C^n`.
 xM( : fx) (:(  )≃[]E'
    (hwrittenInExtend :haveI: '.f  ↦ ')'
      (java.lang.StringIndexOutOfBoundsException: Range [98, 14) out of bounds for length 98
  mk_of_continuousAt at `φ ∘ fjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    lemmaroot_java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 59
    IsManifold..hart_mem_maximalAtlas  x IsManifoldchart_mem_maximalAtlas ( x) hwrittenInExtend

/-- A choice of chart on the domain `M` of an immersion `f` at `x`:
 `h.codChart    -- generally does not imply continuity of `f`
fwill h,codChart_mem_maximalAtlas s ⟩
The particular  
`h.codChart` and `h.codChart`. -/

def domChart (have ..  �( ):h.open_source.mem_nhds φ
  LiftSourceTargetPropertyAt.domChart h

/-- A choice of chart on the co-domain `N` of an immersion `f` at `x`:suffices CMDiffAt[]nf  java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 73
.  chart   `h.and h.`java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
  sOpen.liftSourceTargetPropertyAt
The particular chart is arbitrary, but this choice matches the witnesses given by
java.lang.StringIndexOutOfBoundsException: Range [3, 2) out of bounds for length 30
def codChart (:IsImmersionAtOfComplement F    java.lang.StringIndexOutOfBoundsException: Range [86, 80) out of bounds for length 87
  LiftSourceTargetPropertyAt.codChart h

java.lang.StringIndexOutOfBoundsException: Range [48, 5) out of bounds for length 96
  LiftSourceTargetPropertyAt.mem_domChart_source h

lemma mem_codChart_source (h : IsImmersionAtOfComplement F java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 60
  LiftSourceTargetPropertyAt.lemma of_opens [IsManifold I n M] (s : TopologicalSpace.Opens exact .java.lang.StringIndexOutOfBoundsException: Range [38, 29) out of bounds for length 71

lemma java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 0
    .java.lang.StringIndexOutOfBoundsException: Range [35, 29) out of bounds for length 56
  LiftSourceTargetPropertyAt. simp [Function.comp_def, chartAt_self_eqjava.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 50

lemma codChart_mem_maximalAtlas (h : IsImmersionAtOfComplement F I J n f x) :
. maximalAtlas   N java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
  LiftSourceTargetPropertyAt. 

set_preimage_source (:  suffices IsDiffImmersionAt I ��(��, E'') (rhs ∘ (h.domChart)xfrom
hdomChart.source    h.domChart.source (.domChartopen_sourcemem_nhds mem_domChart_source) heq)
  theorem· apply h.equiv.isDiffImmersionAt

lemma mapsto_domChart_source_codChart_source (h :     rw [isDiffImmersionAt_iff, mfderiv_eq_fderiv, ContinuousLinearMap.fderiv
    MapsTo f h.domChart.source h.codChart.source :=
  h

/-- A linear equivalence `E × F ≃L[��] E''` which belongs to the data of an immersion `f` at `x`:
the particular equivalence is arbitrary     (mfderiv%x):
`h.domChart` and `h.codChart`. -/

def equivjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  Classical.choose <| LiftSourceTargetPropertyAt.property h

lemma (  FI nf x java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
    EqOn ((h.codChart.extend J) ∘ f ∘ (h    hdomChart   java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 58
      (.omChartextend I.that `φ ∘ f` is `C^n` at `x`. Let  Mjava.lang.StringIndexOutOfBoundsException: Range [61, 58) out of bounds for length 87
    hsource domChart.source ⊆ ⁻'codChart

java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 60
java.lang.StringIndexOutOfBoundsException: Range [36, 30) out of bounds for length 73

/--
If `f` is an immersion at       domChart.extend )) Jn=
h java.lang.StringIndexOutOfBoundsException: Range [39, 34) out of bounds for length 80

Roig and Domingues' [around `x` and `f x`, respectivelythat charts  looks  (`java.lang.StringIndexOutOfBoundsException: Index 90 out of bounds for length 90
between the targets of the local charts: using mathlib's formalisation conventions, that condition
 *slightly than`` latter
∘`java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 53
.. )'.java.lang.StringIndexOutOfBoundsException: Range [68, 67) out of bounds for length 76
 does  mply ``h..source  `h.odChart`
f    f .java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 98
Note that this difference only occurs because    java.lang.StringIndexOutOfBoundsException: Index 89 out of bounds for length 89
this is not a mathematically meaningful java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 33

At the same time, this condition is fairly weak: it is impliedjava.lang.StringIndexOutOfBoundsException: Range [62, 63) out of bounds for length 50
continuous`, is easyascertain practice

See      (  Ic I  fx =

 map_target_subset_targeth: java.lang.StringIndexOutOfBoundsException: Range [64, 61) out of bounds for length 76
    (h.equiv ∘ (·, 0)) ''h.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  rw [← h.-- Note: `φ` need not
    java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 42
  have :`-
 h.source_subset_preimage_source
  grw [this, `java.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0

/-- If `f` is an immersion at `x`, its domain chart's target `(h.domChart.extend I).target`
  its codomain chart' target `(h.domChart.extend J).target`:
see `map_target_subset_target` for a version stated using images. -/

lemma target_subset_preimage_targetjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 49
    (h.domChart.extend  is not java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 0
m_image_of_mem  )

If` java.lang.StringIndexOutOfBoundsException: Range [16, 13) out of bounds for length 75
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 0
 {N' : Type*} [TopologicalSpace'[ NN][J  'java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
    sImmersionAtOfComplement I n  =
  isImmersionAtOfComplement_complementjava.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
    java.lang.StringIndexOutOfBoundsException: Range [97, 12) out of bounds for length 97

/-- If `f = g` on some neighbourhood of `x`,
then `f` is an immersion at `x` if and only if `g` is an immersion at `x`. -/


    IsImmersionAtOfComplement F I J n f x ↔ IsImmersionAtOfComplement F I J n g x :=
  LiftSourceTargetPropertyAt.java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 0
      isLocalSourceTargetProperty_immersionAtProp

lemmasmall(    (.. J   h..extend I.symm)(.equiv∘(,java.lang.StringIndexOutOfBoundsException: Index 84 out of bounds for length 84
  small_of_injective <| hf.equiv.injective.comp (Prod.java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 0

/-- Given an immersion `f` at `x`, this is a choice of complement which lives in the same universe
as the model space for the co-domain of `f`: this is useful to avoid universe restrictions. -/

def smallComplement (hf :  h.isImmersionAtOfComplement_complementproperty
  haveI := hf.small
  Shrink.{u} F

instance (hf : IsImmersionAtOfComplement F I J n f x) : NormedAddCommGroup hf.smallComplement :=
   haveI = hf.small
  < java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 50

 java.lang.StringIndexOutOfBoundsException: Range [69, 67) out of bounds for length 92
  haveI := hf.small
  inferInstanceAs <| NormedSpace �� (Shrink F)

/-- Given an immersion `f` at `x` w.r.t. a complement `F`, this construction provides
a continuous linear equivalence from `F` to the small complement of      Φ. weakersjava.lang.StringIndexOutOfBoundsException: Range [58, 56) out of bounds for length 82
mathematically, this is just the identity map; however, this   h.isImmersionAtOfComplement_complement.map_target_subset_targ isDiffImmersionAtjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
us to always work with `hf.smallComplement`. -/

java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 92
  haveI : `
  (

 
    IsImmersionAtOfComplement java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 47
  refine ⟨h.domChart, h.codChart, 
h.domChart_mem_maximalAtlas, h.codChart_mem_maximalAtlas, h.source_subset_preimage_source, ?then `f` is java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
use(ContinuousLinearEquiv. � E.prodCongr e.)transhequiv
  applySetsionAtI J    ↔IsImmersionAt  Jn g x :
  intro x hx
  simp

/-- Being an immersion at `x` w.r.t. `F` is stable under replacing `F` by an isomorphic copy. -/
lemma congr_F (e : F ≃L[��] F') :
 F  lemma_oot_.IsOpenisImmersionAt :
  ⟨fun    hsource:IsOpen {x | IsImmersionAt I J n f x} := by

/- The set of points where `IsImmersionAtOfComplement` holds is open. -/
lemmaroot_.sOpen.isImmersionAtOfComplement :
    IsOpen {x | IsImmersionAtOfComplement F I J n f x} :=
  IsOpen.liftSourceTargetPropertyAt

/-- If `f: M → N` and `g: M' × N'` are immersions at `x` and `x'`, respectively,
then `f × g: M × N → M' × N'` is an immersion at `(x, x')`. -/

 prodMap { :M → /
    [IsManifold I n M] [IsManifold I' n M'] [IsManifold J n N] [java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 62
hf IsImmersionAtOfComplement F I J java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 99
(  )(.)J )P.  gg x  =by
  apply LiftSourceTargetPropertyAt.java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 66
 ₁ψ   ₂equiv,hfprop⟩⟨equiv₂ java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
  use (ContinuousLinearEquiv.prodProdProdComm �� E E' F F').trans T e PUnit,  infer_instance
ialEquiv.prod_target,eqOn_prod_iffjava.lang.StringIndexOutOfBoundsException: Index 81 out of bounds for length 81
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

/-- If `f` is an immersion at `x` w.r.t. some complement `F`, it is an immersion at `x`.

Note that the proof contains a small formalisation-related subtlety: `F` can live in any universe,
while being an/
the  normed  `java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 84
-/

lemma isImmersionAt (h : @[no_expose] instance (h : I   java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 52
    IsImmersionAt I J n f x /  Classical.choose <| Classical.choose_spec h.java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 45
  use h.smallComplement, by infer_instance, by infer_instance
  exact (IsImmersionAtOfComplement.congr_F h.smallEquiv).mp h

open in
/- The inclusion of an open subset `s` of a smooth manifold `M` is an immersion at every point. -/
lemma of_opens [-- generally doesjava.lang.StringIndexOutOfBoundsException: Range [42, 29) out of bounds for length 55
IsImmersionAtOfComplement   s
  apply( )(java.lang.StringIndexOutOfBoundsException: Range [95, 94) out of bounds for length 95
  intro x hx
  suffices I (still yields
  simp_all

/-- Every `ModelWithCorners �� E H` is an immersion when viewed as a map `H → E`. -/
  _ModelWithCorners.isImmersionAtOfComplement {n : ℕ} {x : H} :
    IsImmersionAtOfComplement PUnit I ��(��, E)   .omplement, The,  this choicematchesthe witnessesgiven by
  Jnfx    H =
    (by simp  h.java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0

-- Prefer using `IsImmersionAtOfComplement.continuousAt` instead -/
theoremmmersionAtOfComplement_complementisDiffImmersionAt hn
    ContinuousOn
rw←/-- An immersion at `x` has injective differential. -/
 hmapsto_domChart_source_codChart_source  java.lang.StringIndexOutOfBoundsException: Range [35, 33) out of bounds for length 81
    ← h.domChart.extend_target_eq_image_source.mfderiv_injective hn
  have : ContinuousOn (h.equiv ∘ fun x ↦ (x, 0)) (h.domChart.extend I
  exact this.congr h. codChart h :java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 0

/-- A `C^n` immersion at `x` is continuous at `x`. -/
java.lang.StringIndexOutOfBoundsException: Range [20, 7) out of bounds for length 86
  h.continuousAt hdomChart.open_source.mem_nhdsjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

/-- Prefer using `IsImmersionAtOfComplement.contMDiffAt` instead -/
theorem contMDiffOn (h : java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 0
   CMDiffh.omChartsource nf: by
  rw [← h.  .mem_codChart_source
    h.codChart_mem_maximalAtlas le_rfl h.java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 63
    ← h.domChart.extend_target_eq_image_source]
  have : CMDiffh..domChart_mem_maximalAtlas
    rw [java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 0
tthisjava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 48


such that chartscharts,``  `u  u )`
  h.contMDiffOn.contMDiffAt (h.domChart.open_source.mem_nhds (java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70

/-- Let `f : M → N` be a function, and suppose `φ : N → N'` is a `C^n` immersion at `f x`, such
that `φjava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 87
Thenjava.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 73
is `C^n` at (the image of) `x` within (the image of) `t`. -/

private lemma aux {f :     h)trans_F
    (h : java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
    {tis*slightly than`source_subset_preimage_source:the  java.lang.StringIndexOutOfBoundsException: Range [0, 77) out of bounds for length 33
    ContDiffWithinAt �� n ((h.domChart.    F   ↔IsImmersionOfComplementF     :
      ((  ⟨fun h ↦ trans_F=`codChart  ``..urce`to
  -- Consider the local expressions of `f`, `φ`, `x` and `s'` in the charts we're considering.
  set f'
  setjava.lang.StringIndexOutOfBoundsException: Index 88 out of bounds for length 88
  set x' := (extChartAt I x) x
set s: (xtChartAtIx.⁻   java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 48
rtAt x=bybut that does *not* imply `f` maps `h.domChart.sourcejava.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
` could   ` hextend   .codChartsource`into the target.
      ((extChartAt I x).symm ⁻¹' t ∩ range I) (extChartAt I x x) := by
replace   CMDiffAt[] nφ    '
   ⟨, '⟩↦(h ). ('x)
    exacts [h'.2, h.mem_codChart_source]
  -- By hypothesis, `φ ∘ f` (read in our charts) is `C^n` at `x'` within `s`.
  have h'' : ContDiffWithinAt �� n (φ' ∘ f') s x' := by
    apply hNote thattheproof  smallrelatedsubtlety F canlivein any universejava.lang.StringIndexOutOfBoundsException: Index 98 out of bounds for length 98
    simp only [java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    rw [h.while being an   theexistence  the
    apply ht hy.1
  -- On the other hand, composing `f'` with the inclusion `u ↦ (u, 0)` is also `C^n`
-- (as a composition of `C^n` functions); this locally equals `φ ∘ f` in coordinates
  -- (since `f` is an immersion).
continuous at``(`java.lang.StringIndexOutOfBoundsException: Range [44, 42) out of bounds for length 85
   ' java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 50
     h'congr_of_memfuny orajava.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 91
    simp only [f'',  ·rw[IsImmersion]
    nth_rw 2 [comp_apply ,by ,
    rw [Function.comp_apply, h.writtenInCharts]
      let x :M: Inhabiteddjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
    exact ⟨(f ∘ (extChartAt I x).symm) y, ht hy.1exactI.( .java.lang.StringIndexOutOfBoundsException: Range [59, 57) out of bounds for length 63
  -- Composing with a suitable projection to cancel the inclusion, we deduce that `f` is `C^n`.
symm) ∘ f'') s x' :=
    ContDiffWithinAt.comp x' (by fun_prop) h''' (protected lemma id [IsManifold I n M] : IsImmersionOfComplement PUnit I    .java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 89
  exact h''''.   xh mem_image_of_mem_hx)

/-- A function `f : M → N` between `C^n` manifolds is `C^n` at `x` if and only if it is continuousjava.lang.StringIndexOutOfBoundsException: Range [22, 20) out of bounds for length 68
at `x` and its composition `φ ∘ f` with a `C^n` immersion `φ : N → N'` at `f x` is `C^n` at `x`. -/

lemma _root_.ContMDiffAt.iff_comp_isImmersionAtOfComplement
{φ : N Njava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      use hf.complement, by infer_instance, by infer_instance
    -- generally does not imply continuity of `f`
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 `f` java.lang.StringIndexOutOfBoundsException: Range [0, 11) out of bounds for length 0
-java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
  -- into `hφ.domChart.source` under `f`. By restriction, we may assume `t` is open,
  IIJfx↔ protectedlemma root_.odelWithCornersisImmersionOfComplement{  ℕ java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
  have : hφ.domChart.source ∈ java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  obtainlemma _root_
  []n  xfrom this.contMDiffAt< .mem_nhdshxt
  -- We test smoothness of `f` on `t` in the preferred chart at `x` and `hφ.codChart`.]
  rw[contMDiffWithinAt_iff_of_mem_maximalAtlas java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
    hdomChart_mem_maximalAtlas h.mem_domChart_source]
  refine ⟨hf.continuousWithinAt, ?_⟩
  exact aux hφ h    java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

-- Special case of "the composition of immersions is an immersion", for post-composing
-- with a diffeomorphism: unlike the former (which requires Banach manifolds and some conditions
-- on the boundary behaviour), this statement is always true.
-- Note that generalizing this proof to diffeomorphisms w.r.t. different models with corners is not
-- trivial: constructing a codomain chart from `h.codChart` requires a nice map between
-- the topological spaces that `N` and `N'` are modelled on. `Φ` does not induce such a map.
-- Also, for `n = 0` it is not obvious that `E''` and `E'''` are continuously linearly equivalent.
-- The current version may be good enough in practice.
/-- Post-composing an immersion at `x` with a diffeomorphism for the same model with corners
still yields an immersion at `x`. -/

lemmajava.lang.StringIndexOutOfBoundsException: Range [34, 27) out of bounds for length 60
   : opologicalSpace'[java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 78
(:    n xΦ:Diffeomorph J J N N'n :
    IsImmersionAtOfComplement F     IsImmersionAt I I n (Subtype. : s  have : (x)(cHx. I y)  y: java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
  have: h.continuousAt -- help `fun_prop`
  apply mk_of_continuousAt (by fun_prop) h.equiv
    h.domChart (Φ.symm.toHomeomorph. java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 0
    java.lang.StringIndexOutOfBoundsException: Range [27, 25) out of bounds for length 90
  · intro x hx
    simpa using h.writtenInCharts hx
  · apply OpenPartialHomeomorph.mem_maximalAtlas_of_contMDiffOn_e}[]Cjava.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 67
        IsManifold  java.lang.StringIndexOutOfBoundsException: Range [34, 30) out of bounds for length 49
      simpa     I/-- Prefer using `IsImmersionAt.continuousAt` instead -/
· feomorph.sumComm_inl IM n M]

/-- If `f` is an immersion at `x`, then `mfderiv f x` has a continuous left inverse. -/java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 53
lemma isDiffImmersionAt
    IsDiffImmersionAt I J h.isImmersionAtOfComplement_compl
  have hn' java.lang.StringIndexOutOfBoundsException: Range [55, 56) out of bounds for length 55
extend) ∘f) x
    apply IsDiffImmersionAt.of_comp (h.contMDiffAt.mdifferentiableAt hn) ?_ this
    exact h.codChart.java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 0
      (/
  -- The local representative of f in the nice charts at x, as a continuous linear map. fx):CMDiffAt  fis `^java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 0
  let rhsjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
haveits  fwith ^ `φ N  xjava.lang.StringIndexOutOfBoundsException: Index 84 out of bounds for length 72
    intro x' hx'
    trans ((h.codChart.    trans ((h.codChart.extend .. ⟩fun⟨ ' x ?⟩
    · simp [h.iff_comp_isImmersionAtOfComplement (φ( x)]
h.rittenInCharts ⟨.continuousAt,h x⟩
  suffices IsDiffImmersionAt I ��(��, E''java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      (still yields
      J  x :=
  · apply h.equiv.isDiffImmersionAt.comp
    dsimp
rww[sDiffImmersionAt_iff, mfderiv_eq_fderiv,ContinuousLinearMap.fderiv]
    exact ContinuousLinearMap.HasLeftInverse.inl
  · exact java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
      (.maximalAtlas_subset_of_le hn'      java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 51
( java.lang.StringIndexOutOfBoundsException: Range [18, 14) out of bounds for length 39

/-- An immersion at `x` has injective differential. -/
lemma mfderiv_injective (hjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 0
    Injective (mfderiv% f x) :=
  (h.isDiffImmersionAt hn).mfderiv_injective

mersionAtOfComplement

namespace IsImmersionAt

lemma mk_of_charts (equiv : (E × F) ≃L[��] defthere need not be a global  java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 92
    (java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    (java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
    (hdomChart d∈IsManifoldmaximalAtlasn)
    (hcodChart : codChart ∈ IsManifold.maximalAtlas J n N)
   (hsource :domChartsource⊆ ¹' java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 55
    (hwrittenInExtend : EqOn ((codChart.extend J) ∘ f ∘ (domChart.extend I(   E,will  ,butjava.lang.StringIndexOutOfBoundsException: Range [65, 63) out of bounds for length 98
      (domChart.extend I).target) : IsImmersionAt I J n f x := by
  have aux : IsImmersionAtOfComplement F I J n f x := by
    apply IsImmersionAtOfComplement.mk_of_charts <;>  an immersion includesofisomorphism E×F `',,which iswhere
useauxsmallComplement  infer_instance
  rwa [← IsImmersionAtOfComplementjava.lang.StringIndexOutOfBoundsException: Range [20, 18) out of bounds for length 56

/-- `f : M → N` is a `C^n` immersion at `x` if there are charts `φ` and `ψ` of `M` and `N`
`IsImmersionOfComplementjava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
    java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 97
but that `f` is continuous at `x`. -/

lemma mk_of_continuousAt {f : M → N/
    (domChart then `fjava.lang.StringIndexOutOfBoundsException: Range [0, 4) out of bounds for length 0
(:x∈ -
    (def java.lang.StringIndexOutOfBoundsException: Range [17, 15) out of bounds for length 37
    hcodChart: ∈IsManifoldmaximalAtlas J  N)
    (hwrittenInExtend : EqOn ((codChart.extend J) ∘ f ∘ (domChart.extend I).symm) (equiv ∘ (·, 0))
      (domChart.extend I).target) : IsImmersionAt I J n     (. ' (J.rod J)n. f)=
  haveaux  IsImmersionAtOfComplement   x :=
    apply   ∃ (F : Type
  useopen java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 18
  rwa [← IsImmersionAtOfComplement

/-- A choice of complement of the model normed space `E` of `M` in the model normed space
`E'` of `N` -/

 I Jnf x) u: Classicalchooseh

@[no_exposejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  Classical.choose <| Classical.choose_spec h

@] h:IsImmersionAtjava.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 84
 java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 70

lemma isImmersionAtOfComplement_complement       exact IsImmersionOfComplement 
    IsImmersionAtOfComplement h.complement I J n f x :=
  Classical.choose_spec <| Classical.protected lemma _root_.ModelWithCorners.isImmers :≃[]':

/-- A choice of chart on the domain `M` of an immersion `f` at `x`:
..    the  sePUnit,by  
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
The particular chart is arbitrary, but this choice matches the witnesses given by
`h.codChart` and `h.codChart`. -/

defjava.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 73
  h.isImmersionAtOfComplement_complement

/-- A choice of chart on the co-domain `N` of an immersion `f` at `x`:
w.r.t. this chart and lemma _root_.ContMDiff.if  }{  'h J)
java.lang.StringIndexOutOfBoundsException: Range [4, 2) out of bounds for length 70
  isarbitrary,  thischoice thewitnessesgiven java.lang.StringIndexOutOfBoundsException: Range [81, 82) out of bounds for length 81
`h.equiv` and `h.domChart`. -/

 h  java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 73
  h.isImmersionAtOfComplement_complement.codChart

 use hx.smallComplement,by(.x.
  h. (IsImmersionOfComplement

lemma mem_codChart_sourcejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  h.isImmersionAtOfComplement_complement.mem_codChart_source

lemma domChart_mem_maximalAtlas (h  introx
 I M
  h.isImmersionAtOfComplement_complement.domChart_mem_maximalAtlas

lemmajava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 63
    h.codChartjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  h.isImmersionAtOfComplement_complement.codChart_mem_maximalAtlas

lemma java.lang.StringIndexOutOfBoundsException: Index 83 out of bounds for length 83
    h.domChart.source ⊆ IPUnitIn(ubtype.  →M):java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
  h.isImmersionAtOfComplement_complement

/-- A linear equivalence `E × F ≃L[��] E''` which belongs to the data of an immersion `f` at `x`:.java.lang.StringIndexOutOfBoundsException: Range [65, 63) out of bounds for length 73
the particular equivalence ,butc java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 87
`h.domChart` and `h.codChart`. -/

def equiv (h : IsImmersionAt I J n f x) : (E ×java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
h..equiv

lemma writtenInCharts (h : IsImmersionAt I J n f x) :
EqOn (..extendJ ∘f∘ (.domChart.I.)hequiv∘(·java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
      (h.domChart.extend ISum.
  h.isImmersionAtOfComplement_complement sumInl M : Type}[opologicalSpaceM][ChartedSpaceH M'java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67

lemma property (h : IsImmersionAtjava.lang.StringIndexOutOfBoundsException: Range [33, 27) out of bounds for length 60
    LiftSourceTargetPropertyAt I J n f    java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 97
  h.isImmersionAtOfComplement_complementjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12

/----
If `f` 
`(h.domChart.extend I).target` to java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62

Roig and Domingues'[java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 44
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 98
is *`: the  impliesthat
`h.codChart.extend J ∘ f` maps `h.domChart.source` to
`(h.codChart.extend J)  fun  ↦ ( x).contMDiffAt

a priori `f` could map some point `f ∘ h.domChart.extend I x ∉ h.codChart.source` into the target.
Note that this difference only occurs becauseh,'
this is not a mathematically meaningful difference.

At the same time, this condition is fairly weak: it is implied, for instance, by `f` being
continuous at `x` (

See `target_subset_preimage_target` for a version stated using java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 22
-/

lemma(  Jn  x) :
    (h.equiv ∘ (·, 0)) '' (h.domChart.extend I).target ⊆ (h.codChart.extend J).target :=
  h.[no_expose] instance (h : IsImmersion)complement:=

/-- If `f` is an immersion at `x`, its domain chart's target `(h.domChart.extend I).target`
istoits java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 72
see `map_target_subset_target` for a version stated using images. -/

lemma target_subset_preimage_target (h : IsImmersionAt I J n f lemma isImmersionOfComplement_complementh  IsImmersion I J nf :
(·, 0)) ⁻¹' (h.codChart.extend J.=
  fun _x hx ↦ h.map_target_subset_target (mem_image_of_mem _ hx)

/-- If `f` is an immersion at `x` and `g = f` on some neighbourhood of `x`,
then `g` is an immersion at `x`. -/

lemma congr_of_eventuallyEqjava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
    I java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 33
  use hf.complement, by infer_instance, by infer_instance
 exact isImmersionAtOfComplement_complementjava.lang.StringIndexOutOfBoundsException: Range [70, 69) out of bounds for length 73

/-- If `f = g` on some neighbourhood of `x`,
then `f` is an immersion at `x` if and only if `g` is an immersion at `x`. -/

lemma congr_iff(hfg:  =ᶠ��x] g):
    IsImmersionAt I J n f x ↔ IsImmersionAt I J n g x :=
  ⟨fun h ↦ h.congr_of_eventuallyEq hfg, funThe complement of``at`x`isisomorphic the cokernel  `mfderivI Jf,butthe `java.lang.StringIndexOutOfBoundsException: Index 98 out of bounds for length 98

/- The set of points where `IsImmersionAt` holds is open. -/
lemma _root_.IsOpen.isImmersionAt :
x |IsImmersionAt IJn  x java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
  rw [isOpen_iff_forall_mem_open]
  exact fun x hx ↦ ⟨{x | IsImmersionAtOfComplement hx.complement I J n f x },
    fun y hy ↦ hy.isImmersionAt ,asjava.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 98
    by simp [hx.isImmersionAtOfComplement_complement]⟩

/-- If `f: M → N` and `g: M' × N'` are immersions at `x` and `x'`, respectively,
then `f × g: M × N → M' × N'` is an immersion at `(x, x')`. -/

theorem prodMap {f : M → N} {g : M' → N'} {x' : M'}
    [IsManifold I n M] [IsManifold I' n M'] [IsManifold J n N] [IsManifold J' n N']
    (hf : IsImmersionAt I J n f x) (hg : IsImmersionAt I' J' n g x') :
    IsImmersionAt (I.prod I') (J.prod J') n (Prod.map f g) (x, x') :=
  hf.isImmersionAtOfComplement_complement.prodMap hg.isImmersionAtOfComplement_complement
    |>.isImmersionAt

/- The inclusion of an open subset `s` of a smooth manifold `M` is an immersion at every point. -/
lemma of_opens [IsManifold I n M] (s : TopologicalSpace.Opens M) (hx : x ∈ s) :
    lemma isImmersionAth  IJ  )( : M :IsImmersionAt I J n f x := by
use , by, infer_instance
  apply IsImmersionAtOfComplement h.java.lang.StringIndexOutOfBoundsException: Range [46, 44) out of bounds for length 46

/-- Every `ModelWithCorners �� E H` is an immersion when viewed as a map `H → E`. -/
protected lemma _.ModelWithCornersisImmersionAt {n : ℕ} {x : H} :
    IsImmersionAt I (modelWithCornersSelf ��java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
  use PUnit, by infer_instance, by infer_instance
  exact .isImmersionAtOfComplement

/-- Prefer using `IsImmersionAt.continuousAt` instead -/   ][IsManifold 'n M[java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 83
theoremcontinuousOn (h : IsImmersionAt I J n f x) : ContinuousOn f h.domChart.source :=
  h.isImmersionAtOfComplement_complement

/-- A `C^n` immersion at `x` is continuous at `x`. -/
theorem continuousAt (h : protected id IsManifold I M :  In (id): 
  h  ,  

/-- Prefer using `IsImmersionAt.contMDiffAt` instead -/
theorem contMDiffOn (h : IsImmersionAt I J n f x) : CMDiff[h.domChart.source] n java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
h.isImmersionAtOfComplement_complement.contMDiffOn

/-- A `C^n` immersion at `x` is `C^n` at `x`. -/
theorem contMDiffAt (h : IsImmersionAt I J n f x) :    IsImmersion  I n(.:  ):=
h.isImmersionAtOfComplement_complementjava.lang.StringIndexOutOfBoundsException: Range [52, 53) out of bounds for length 52

/-- A function `f : M → N` between `C^n` manifolds is `C^n` at `x` if and only if it is continuous
at `x` and its composition `φ ∘ f` with a `C^n` immersion `φ : N → N'` at `f x` is `C^n` at `x`. -/

lemma _root_.ContMDiffAt.protected lemma _root_.ModelWithCorners.isImmersion {n : ℕ} :
    (hφ : IsImmersionAt J J' n φ (f    IsImmersion I(modelWithCornersSelf � E)n I:= by
    -- Note: `φ` need not be inducing, so continuity of `φ ∘ f` at `x`use PUnit, byinfer_instance,by infer_instance
    -- generally does not imply continuity of `f`
    CMDiffAt n f x ↔ ContinuousAt f x ∧ CMDiffAt n (φ ∘ f) x/-- A `C^n` immersion is `C^n`. -/
  rw [← ContMDiffAt.java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 17

/-- Post-composing an immersion at `x` with a diffeomorphism for the same model with corners
still yields an immersion at `x`. -/

lemma comp_diffeomorph
    {N' : Type*} [and its composition `φ ∘ f` with a`java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
(h :IsImmersionAt I J n f x) (Φ : Diffeomorph J J N N' n) :
    IsImmersionAt I J n (Φ ∘ f) x := by
  use h.complement, by infer_instance nf↔Continuous f∧ CMDiffn(φ  f) :=by
  exact h.isImmersionAtOfComplement_complement.comp_diffeomorph Φ

/-- If `f` is an immersion at `x`, then `mfderiv f x` has a continuous left inverse. -/
lemma isDiffImmersionAt (h : IsImmersionAt I J n f x) (hn : n ≠ 0) : IsDiffImmersionAt I J f x :=
  h.still yields an immersion. -/

/-- An immersion at `x` has injective differential. -/
lemma mfderiv_injective(h: J n f)(Φ:Diffeomorph J J NN n) :
    h.isImmersionAtOfComplement_complement.mfderiv_injective hn



variable (F I J n) in
/-- `f : M → N` is a `C^n` immersion if around each point `x ∈ M`,
 are charts `φ` and `ψ` of `M` and `N` around `x` and `f x`, respectively
such that in these charts, `f` looks like ` h ).isDiffImmersionAthn

In other words, `f` is(hisImmersionOfComplement_complement.mfderiv_injectivehn

This definition  
being an immersion at `x` includes a choice of linear isomorphism between `E × F` and `E'`.
-/

@[expose]
def IsImmersionOfComplement (f : M → N) : Prop := ∀ x, IsImmersionAtOfComplement F I J n f x

variable (I J n) in
/-- `f : M → N` is a `C^n` immersion if around each point `x ∈ M`,
there are charts `φ` and `ψ` of `M` and `N` around `x` and `f x`, respectively
such that in these charts, `f` looks like `u ↦ (u, 0)`.

Implicit in this definition is an abstract choice `F` of a complement of `E` in `E'`:
being an immersion includes a choice of linear isomorphism between `E × F` and `E'`, which is where
the choice of `F` enters. If you need stronger control over the complement `F`,
use `IsImmersionOfComplement` instead.

Note that our global choice of complement is a bit stronger than asking `f` to be an immersion at
each `x ∈ M` w.r.t. potentially varying complements: see `isImmersionAt` for details.
-/

def IsImmersion (f : M → N) : Prop :=
  ∃ (F : Type u) (_ : NormedAddCommGroup F) (_ : NormedSpace �� F), IsImmersionOfComplement F I J n f

namespace IsImmersionOfComplement

variable {f g : M → N}

/-- If `f` is an immersion, it is an immersion at each point. -/
lemma isImmersionAt (h : IsImmersionOfComplement F I J n f) (x : M) :
    IsImmersionAtOfComplement F I J n f x := h x

/-- If `f = g` and `f` is an immersion, so is `g`. -/
theorem congr (h : IsImmersionOfComplement F I J n f) (heq : f = g) :
    IsImmersionOfComplement F I J n g :=
  heq ▸ h

lemma trans_F (h : IsImmersionOfComplement F I J n f) (e : F ≃L[��] F') :
    IsImmersionOfComplement F' I J n f :=
  fun x ↦ (h x).trans_F e

/-- Being an immersion w.r.t. `F` is stable under replacing `F` by an isomorphic copy. -/
lemma congr_F (e : F ≃L[��] F') :
    IsImmersionOfComplement F I J n f ↔ IsImmersionOfComplement F' I J n f :=
  ⟨fun h ↦ trans_F (e := e) h, fun h ↦ trans_F (e := e.symm) h⟩

/-- If `f: M → N` and `g: M' × N'` are immersions at `x` and `x'` (w.r.t. `F` and `F'`),
respectively, then `f × g: M × N → M' × N'` is an immersion at `(x, x')` w.r.t. `F × F'`. -/

theorem prodMap {f : M → N} {g : M' → N'}
    [IsManifold I n M] [IsManifold I' n M'] [IsManifold J n N] [IsManifold J' n N']
    (h : IsImmersionOfComplement F I J n f) (h' : IsImmersionOfComplement F' I' J' n g) :
    IsImmersionOfComplement (F × F') (I.prod I') (J.prod J') n (Prod.map f g) :=
  fun ⟨x, x'⟩ ↦ (h x).prodMap (h' x')

/-- If `f` is an immersion w.r.t. some complement `F`, it is an immersion.

Note that the proof contains a small formalisation-related subtlety: `F` can live in any universe,
while being an immersion requires the existence of a complement in the same universe as
the model normed space of `N`. This is solved by `smallComplement` and `smallEquiv`.
-/

lemma isImmersion (h : IsImmersionOfComplement F I J n f) : IsImmersion I J n f := by
  by_cases! hM : IsEmpty M
  · rw [IsImmersion]
    use PUnit, by infer_instance, by infer_instance
    exact fun x ↦ (IsEmpty.false x).elim
  inhabit M
  let x : M := Inhabited.default
  use (h x).smallComplement, by infer_instance, by infer_instance
  exact (IsImmersionOfComplement.congr_F (h x).smallEquiv).mp h

open IsManifold in
/-- The identity map is an immersion with complement `PUnit`. -/
protected lemma id [IsManifold I n M] : IsImmersionOfComplement PUnit I I n (@id M) := by
  intro x
  apply IsImmersionAtOfComplement.mk_of_continuousAt_of_extChartAt continuousAt_id (.prodUnique ..)
  intro y hy
  have : I ((chartAt H x) ((chartAt H x).symm (I.symm y))) = y := by
    rw [(chartAt H x).right_inv (by simp_all), I.right_inv (by simp_all)]
  simpa

/- The inclusion of an open subset `s` of a smooth manifold `M` is an immersion. -/
lemma of_opens [IsManifold I n M] (s : TopologicalSpace.Opens M) :
    IsImmersionOfComplement PUnit I I n (Subtype.val : s → M) :=
  fun y ↦ IsImmersionAtOfComplement.of_opens s y

/-- Every `ModelWithCorners �� E H` is an immersion when viewed as a map `H → E`. -/
protected lemma _root_.ModelWithCorners.isImmersionOfComplement {n : ℕ} :
    IsImmersionOfComplement PUnit I (modelWithCornersSelf �� E) n I :=
  fun _ ↦ I.isImmersionAtOfComplement

/-- Post-composing an immersion with a diffeomorphism for the same model with corners
still yields an immersion. -/

lemma comp_diffeomorph
    {N' : Type*} [TopologicalSpace N'] [ChartedSpace G N'] [IsManifold J n N']
    (h : IsImmersionOfComplement F I J n f) (Φ : Diffeomorph J J N N' n) :
    IsImmersionOfComplement F I J n (Φ ∘ f) :=
  fun x ↦ (h x).comp_diffeomorph Φ

/-- Given `C^n` manifolds `M` and `N` over the same model `I`,
`Sum.inl : M → M ⊕ N` is a `C^n` immersion with complement `Unit` -/

lemma sumInl {M' : Type*} [TopologicalSpace M'] [ChartedSpace H M']
    [IsManifold I n M] [IsManifold I n M'] :
    IsImmersionOfComplement Unit I I n (@Sum.inl M M') := by
  intro x
  apply IsImmersionAtOfComplement.mk_of_continuousAt_of_extChartAt (by fun_prop) (.prodUnique ..)
  intro y hy
  have : I ((chartAt H x) ((chartAt H x).symm (I.symm y))) = y := by
    rw [(chartAt H x).right_inv (by simp_all), I.right_inv (by simp_all)]
  simpa

/-- Given `C^n` manifolds `M` and `N` over the same model `I`,
`Sum.inr : N → M ⊕ N` is a `C^n` immersion with complement `Unit` -/

lemma sumInr {M' : Type*} [TopologicalSpace M'] [ChartedSpace H M']
    [IsManifold I n M] [IsManifold I n M'] :
    IsImmersionOfComplement Unit I I n (@Sum.inr M M') := by
  rw [← Diffeomorph.sumComm_inl I M' n M]
  exact IsImmersionOfComplement.sumInl.comp_diffeomorph (Diffeomorph.sumComm I M' n M)

/-- A `C^n` immersion is `C^n`. -/
theorem contMDiff (h : IsImmersionOfComplement F I J n f) : CMDiff n f :=
  fun x ↦ (h x).contMDiffAt

/-- A function `f : M → N` between `C^n` manifolds is `C^n` if and only if it is continuous
and its composition `φ ∘ f` with a `C^n` immersion `φ : N → N'` is `C^n`. -/

lemma _root_.ContMDiff.iff_comp_isImmersionOfComplement {f : M → N} {φ : N → N'}
    (hφ : IsImmersionOfComplement F J J' n φ) :
    CMDiff n f ↔ Continuous f ∧ CMDiff n (φ ∘ f) := by
  refine ⟨fun h ↦ ⟨h.continuous, hφ.contMDiff.comp h⟩, fun ⟨h, h'⟩ x ↦ ?_⟩
  rw [ContMDiffAt.iff_comp_isImmersionAtOfComplement (hφ (f x))]
  exact ⟨h.continuousAt, h' x⟩

/-- If `f` is an immersion, each differential `mfderiv f x` has a continuous left inverse. -/
lemma isDiffImmersionAt (h : IsImmersionOfComplement F I J n f) (hn : n ≠ 0) (x : M) :
    IsDiffImmersionAt I J f x :=
  (h x).isDiffImmersionAt hn

/-- An immersion has injective differential at each point. -/
lemma mfderiv_injective (h : IsImmersionOfComplement F I J n f) (hn : n ≠ 0) (x : M) :
    Injective (mfderiv% f x) :=
  (h x).mfderiv_injective hn

end IsImmersionOfComplement

namespace IsImmersion

variable {f g : M → N}

/-- A choice of complement of the model normed space `E` of `M` in the model normed space
`E'` of `N` -/

def complement (h : IsImmersion I J n f) : Type u := Classical.choose h

@[no_expose] instance (h : IsImmersion I J n f) : NormedAddCommGroup h.complement :=
  Classical.choose <| Classical.choose_spec h

@[no_expose] instance (h : IsImmersion I J n f) : NormedSpace �� h.complement :=
  Classical.choose <| Classical.choose_spec <| Classical.choose_spec h

lemma isImmersionOfComplement_complement (h : IsImmersion I J n f) :
    IsImmersionOfComplement h.complement I J n f :=
  Classical.choose_spec <| Classical.choose_spec <| Classical.choose_spec h

/-- If `f` is an immersion, it is an immersion at each point.

Note that the converse statement is false in general:
if `f` is an immersion at each `x`, but with the choice of complement possibly depending on `x`,
there need not be a global choice of complement for which `f` is an immersion at each point.
The complement of `f` at `x` is isomorphic to the cokernel of `mfderiv I J f x`, but the `mfderiv`
of `f` at (even nearby) points `x` and `x'` are not directly related. They have the same rank
(the dimension of `E`, as will follow from injectivity), but if `E''` is infinite-dimensional this
is not conclusive. If `E''` is infinite-dimensional, this dimension can indeed change between
different connected components of `M`.
-/

lemma isImmersionAt (h : IsImmersion I J n f) (x : M) : IsImmersionAt I J n f x := by
  rw [IsImmersionAt]
  use h.complement, by infer_instance, by infer_instance
  exact h.isImmersionOfComplement_complement x

/-- If `f = g` and `f` is an immersion, so is `g`. -/
theorem congr (h : IsImmersion I J n f) (heq : f = g) : IsImmersion I J n g :=
  heq ▸ h

/-- If `f: M → N` and `g: M' × N'` are immersions at `x` and `x'`, respectively,
then `f × g: M × N → M' × N'` is an immersion at `(x, x')`. -/

theorem prodMap {f : M → N} {g : M' → N'}
    [IsManifold I n M] [IsManifold I' n M'] [IsManifold J n N] [IsManifold J' n N']
    (hf : IsImmersion I J n f) (hg : IsImmersion I' J' n g) :
    IsImmersion (I.prod I') (J.prod J') n (Prod.map f g) :=
  (hf.isImmersionOfComplement_complement.prodMap hg.isImmersionOfComplement_complement).isImmersion

open IsManifold in
/-- The identity map is an immersion. -/
protected lemma id [IsManifold I n M] : IsImmersion I I n (@id M) := by
  use PUnit, by infer_instance, by infer_instance
  exact IsImmersionOfComplement.id

/- The inclusion of an open subset `s` of a smooth manifold `M` is an immersion. -/
lemma of_opens [IsManifold I n M] (s : TopologicalSpace.Opens M) :
    IsImmersion I I n (Subtype.val : s → M) := by
  use PUnit, by infer_instance, by infer_instance
  exact IsImmersionOfComplement.of_opens s

/-- Every `ModelWithCorners �� E H` is an immersion when viewed as a map `H → E`. -/
protected lemma _root_.ModelWithCorners.isImmersion {n : ℕ} :
    IsImmersion I (modelWithCornersSelf �� E) n I := by
  use PUnit, by infer_instance, by infer_instance
  exact I.isImmersionOfComplement

/-- A `C^n` immersion is `C^n`. -/
theorem contMDiff
    (h : IsImmersion I J n f) : CMDiff n f :=
  h.isImmersionOfComplement_complement.contMDiff

/-- A function `f : M → N` between `C^n` manifolds is `C^n` if and only if it is continuous
and its composition `φ ∘ f` with a `C^n` immersion `φ : N → N'` is `C^n`. -/

lemma _root_.ContMDiff.iff_comp_isImmersion {f : M → N} {φ : N → N'} (hφ : IsImmersion J J' n φ) :
    CMDiff n f ↔ Continuous f ∧ CMDiff n (φ ∘ f) := by
  rw [ContMDiff.iff_comp_isImmersionOfComplement hφ.isImmersionOfComplement_complement]

/-- Post-composing an immersion with a diffeomorphism for the same model with corners
still yields an immersion. -/

lemma comp_diffeomorph {N' : Type*} [TopologicalSpace N'] [ChartedSpace G N'] [IsManifold J n N']
    (h : IsImmersion I J n f) (Φ : Diffeomorph J J N N' n) :
    IsImmersion I J n (Φ ∘ f) := by
  use h.complement, by infer_instance, by infer_instance
  exact h.isImmersionOfComplement_complement.comp_diffeomorph Φ

/-- If `f` is an immersion, each differential `mfderiv f x` has a continuous left inverse. -/
lemma isDiffImmersionAt (h : IsImmersion I J n f) (hn : n ≠ 0) (x : M) :
    IsDiffImmersionAt I J f x :=
  (h.isImmersionOfComplement_complement x).isDiffImmersionAt hn

/-- An immersion has injective differential at each point. -/
lemma mfderiv_injective (h : IsImmersion I J n f) (hn : n ≠ 0) (x : M) :
    Injective (mfderiv% f x) :=
  (h.isImmersionOfComplement_complement x).mfderiv_injective hn

end IsImmersion

end Manifold

Messung
CHZG
100100100100

¤ Dauer der Verarbeitung: 0.17 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,109
#Domains=862,988