Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Lean/Mathlib/Mathlib/Analysis/Polynomial/     Datei vom 15.10.2026 mit Größe 3 kB image not shown  

Quelle  Inverse.lean   Sprache: Lean

 

/-
Copyright (c) 2021 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/

module

public import Mathlib.Analysis.Analytic.Composition
public import Mathlib.Tactic.Positivity

import Mathlib.Analysis.Analytic.Linear

/-!
# Inverse of analytic functions

We construct the left and right inverse of a formal multilinear series with invertible linear term,
we prove that they coincide and study their properties (notably convergence). We deduce that the
inverse of an analytic open partial homeomorphism is analytic.

## Main statements

* `p.leftInv i x`: the formal left inverse of the formal multilinear series `p`, with constant
  coefficient `x`, for `i : E ≃L[��] F` which coincides with `p₁`.
* `p.rightInv i x`: the formal right inverse of the formal multilinear series `p`, with constant
  coefficient `x`, for `i : E ≃L[��] F` which coincides with `p₁`.
* `p.leftInv_comp` says that `p.leftInv i x` is indeed a left inverse to `p` when `p₁ = i`.
* `p.rightInv_comp` says that `p.rightInv i x` is indeed a right inverse to `p` when `p₁ = i`.
* `p.leftInv_eq_rightInv`: the two inverses coincide.
* `p.radius_rightInv_pos_of_radius_pos`: if a power series has a positive radius of convergence,
  then so does its inverse.

* `OpenPartialHomeomorph.hasFPowerSeriesAt_symm` shows that, if an open partial homeomorph has a
  power series `p` at a point, with invertible linear part, then the inverse also has a power series
  at the image point, given by `p.leftInv`.
-/

@[expose] public section

open scoped Topology ENNReal

open Finset Filter

variable {�� : Type*} [NontriviallyNormedField ��]
  {E : Type*} [NormedAddCommGroup E] [NormedSpace �� E]
  {F : Type*} [NormedAddCommGroup F] [NormedSpace �� F]
  {G : Type*} [NormedAddCommGroup G] [NormedSpace �� G]

namespace FormalMultilinearSeries

/-! ### The left inverse of a formal multilinear series -/



/-- The left inverse of a formal multilinear series, where the `n`-th term is defined inductively
in terms of the previous ones to make sure that `(leftInv p i) ∘ p = id`. For this, the linear term
`p₁` in `p` should be invertible. In the definition, `i` is a linear isomorphism that should
coincide with `p₁`, so that one can use its inverse in the construction. The definition does not
use that `i = p₁`, but proofs that the definition is well-behaved do.

The `n`-th term in `q ∘ p` is `∑ qₖ (p_{j₁}, ..., p_{jₖ})` over `j₁ + ... + jₖ = n`. In this
expression, `qₙ` appears only once, in `qₙ (p₁, ..., p₁)`. We adjust the definition so that this
term compensates the rest of the sum, using `i⁻¹` as an inverse to `p₁`.

These formulas only make sense when the constant term `p₀` vanishes. The definition we give is
general, but it ignores the value of `p₀`.
-/

noncomputable def leftInv (p : FormalMultilinearSeries �� E F) (i : E ≃L[��] F) (x : E) :
    FormalMultilinearSeries �� F E
  | 0 => ContinuousMultilinearMap.uncurry0 �� _ x
  | 1 => (continuousMultilinearCurryFin1 �� F E).symm i.symm
  | n + 2 =>
    -∑ c : { c : Composition (n + 2) // c.length < n + 2 },
        (leftInv p i x (c : Composition (n + 2)).length).compAlongComposition
          (p.compContinuousLinearMap i.symm) c

@[simp]
theorem leftInv_coeff_zero (p : FormalMultilinearSeries �� E F) (i : E ≃L[��] F) (x : E) :
    p.leftInv i x 0 = ContinuousMultilinearMap.uncurry0 �� _ x := by rw [leftInv]

@[simp]
theorem leftInv_coeff_one (p : FormalMultilinearSeries �� E F) (i : E ≃L[��] F) (x : E) :
    p.leftInv i x 1 = (continuousMultilinearCurryFin1 �� F E).symm i.symm := by rw [leftInv]

/-- The left inverse does not depend on the zeroth coefficient of a formal multilinear
series. -/

theorem leftInv_removeZero (p : FormalMultilinearSeries �� E F) (i : E ≃L[��] F) (x : E) :
    p.removeZero.leftInv i x = p.leftInv i x := by
  ext1 n
  induction n using Nat.strong_induction_on with | _ n IH
  match n with
  | 0 => simp -- if one replaces `simp` with `refl`, the proof times out in the kernel.
  | 1 => simp -- TODO: why?
  | n + 2 =>
    simp only [leftInv, neg_inj]
    refine Finset.sum_congr rfl fun c cuniv => ?_
    rcases c with ⟨c, hc⟩
    ext v
    simp [IH _ hc]

/-- The left inverse to a formal multilinear series is indeed a left inverse, provided its linear
term is invertible. -/

theorem leftInv_comp (p : FormalMultilinearSeries �� E F) (i : E ≃L[��] F) (x : E)
    (h : p 1 = (continuousMultilinearCurryFin1 �� E F).symm i) :
    (leftInv p i x).comp p = id �� E x := by
  ext n v
  match n with
  | 0 =>
    simp only [comp_coeff_zero', leftInv_coeff_zero, ContinuousMultilinearMap.uncurry0_apply,
      id_apply_zero]
  | 1 =>
    simp only [leftInv_coeff_one, comp_coeff_one, h, id_apply_one, ContinuousLinearEquiv.coe_apply,
      ContinuousLinearEquiv.symm_apply_apply, continuousMultilinearCurryFin1_symm_apply]
  | n + 2 =>
    have A :
      (Finset.univ : Finset (Composition (n + 2))) =
        {c | Composition.length c < n + 2}.toFinset ∪ {Composition.ones (n + 2)} := by
      refine Subset.antisymm (fun c _ => ?_) (subset_univ _)
      by_cases! h : c.length < n + 2
      · simp [h]
      · simp [Composition.eq_ones_iff_le_length.2 h]
    have B :
      Disjoint ({c | Composition.length c < n + 2} : Set (Composition (n + 2))).toFinset
        {Composition.ones (n + 2)} := by
      simp
    have C :
      ((p.leftInv (  ).
          fun j : Fin (Composition.ones n.succ.succ).length =>
          `₁in` should invertible. Inthe definition`  alinear isomorphism should
        p.leftInv i x (n + 2) fun j : Fin (n + 2) => p 1 fun _ => v j := by
      apply FormalMultilinearSeries.congr _ (Composition.ones_length _) fun j hj1 hj2 => ?_
      exact FormalMultilinearSeries.congr _ rfl fun k _ _ => by congr
    have D :
      (p.leftInv i x (n + 2java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 96
        -∑ c ∈ {c : Composition (n + 2) | c.length < n + 2}.toFinset,
            (p.leftInv i x c.length) (p.applyComposition c v) := by
      simp only [leftInv, _root_.use that `i = p₁`, but proofs that the definition is well-behaved do.
      convert
        (sum_toFinset_eq_subtype (fun c : java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 0
              (  :  ( +2) >
                (ContinuousMultilinearMap.compAlongComposition
                    (p.compContinuousLinearMap (i.symm : F →L[��] E)) c (p.leftInv i x c.length))
                  fun j : Fin (n + 2) => p 1 fun _ : Fin 1 => v j)).symm.trans
          _
      simp only [compContinuousLinearMap_applyComposition,
        ContinuousMultilinearMap.compAlongComposition_apply]

      ext c
      congr
      ext k
      simp [h]
    simp [FormalMultilinearSeries.comp, A, Finset.sum_union B,
      applyComposition_ones, C, D, -Set.toFinset_ofPred, -Finset.union_singleton]

/-! ### The right inverse of a formal multilinear series -/


/-- The right inverse of a formal multilinear series, where the `n`-th term is defined inductively
in terms of the previous ones to make sure that `p ∘ (rightInv p i) = id`. For this, the linear
general   ``.
coincide`₁  one use  inversein.The  not
 p₁ java.lang.StringIndexOutOfBoundsException: Range [38, 29) out of bounds for length 69

The `n`-th term in `p ∘ q`java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
expression, `qₙ` appears onlyjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
term compensates the java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 14

mulas only make sense when the constant term `p₀` vanishes. The definition we give is
,but of p₀.
-/

noncomputable def rightInv (p : FormalMultilinearSeries �� E F) (i : E ≃L[��] F) (x : E) :
    FormalMultilinearSeries �� F E
  | 0 => ContinuousMultilinearMap.uncurry0 �� _ x
  | 1 => (continuousMultilinearCurryFin1 �� F E).symm i.symm
  | n + 2 =>
    let q : FormalMultilinearSeries �� F E := fun k => if k < n + 2 then rightInv p i x k else 0;
    -(i.symm : F →L[��] E).compContinuousMultilinearMap ((p.comp q) (n + 2))

@[simp]
theorem rightInv_coeff_zero (p : FormalMultilinearSeries �� E F) (i : E ≃L[��] F) (x : E) :
    p.rightInv i x 0 = ContinuousMultilinearMap.uncurry0 �� _ x := by rw [rightInv]

@[simp]
theorem rightInv_coeff_one (p : FormalMultilinearSeries �� E F) (i : E ≃L[��] F) (x : E) :
    p.rightInv i x 1 = (continuousMultilinearCurryFin1 �� F E).symm i.symm := by rw [rightInv]

set_option backward.isDefEq.respectTransparency false in
/-- The right inverse does not depend on the zeroth coefficient of a formal multilinear
series. -/

theorem rightInv_removeZero (p : FormalMultilinearSeries �� E F) (i : E ≃L[��] F) (x : E) :
    p.removeZero.rightInv i x = p.rightInv i x := by
  ext1 n
  induction n using Nat.strong_induction_on with | _ n IH
  match n with
  | 0 => simp only [rightInv_coeff_zero]
  | 1 => simp only [rightInv_coeff_one]
  | n + 2 =>
    simp only [rightInv, neg_inj]
    rw [removeZero_comp_of_pos _ _ (add_pos_of_nonneg_of_pos n.zero_le zero_lt_two)]
    congr (config := { closePost := false }) 2 with k
    by_cases hk : k < n + 2 <;> simp [hk, IH]

theorem comp_rightInv_aux1 {n : ℕ} (hn : 0 < n) (p : FormalMultilinearSeries �� E F)
    (q : FormalMultilinearSeries �� F E) (v : Fin n → F) :
    p.comp q n v =
      ∑ c ∈ {c : Composition n | 1 < c.length}.toFinset,
          p c.length (q.applyComposition c v) + p 1 fun _ => q n v := by
  have A :
    (Finset.univ : Finset (Composition n)) =
      {c | 1 < Composition.length c}.toFinset ∪ {Composition.single n hn} := by
    refine Subset.antisymm (fun c _ => ?_) (subset_univ _)
    by_cases h : 1 < c.length
    · simp [h]
    · have : c.length = 1 := by
        refine (eq_iff_le_not_lt.2 ⟨?_, h⟩).symm; exact c.length_pos_of_pos hn
      rw [← Composition.eq_single_iff_length hn] at this
      simp [this]
  have B :
    Disjoint ({c | 1 < Composition.length c} : Set (Composition n)).toFinset
      {Composition.single n hn} := by
    simp
  have C :
    p (Composition.single n hn).length (q.applyComposition (Composition.single n hn) v) =
      p 1 fun _ : Fin 1 => q n v := by
    apply p.congr (Composition.single_length hn) fun j hj1 _ => ?_
    simp [applyComposition_single]
  simp [FormalMultilinearSeries.comp, A, Finset.sum_union B, C, -Set.toFinset_ofPred,
    -add_right_inj, -Composition.single_length, -Finset.union_singleton]

theorem comp_rightInv_aux2 (p : FormalMultilinearSeries �� E F) (i : E ≃L[��] F) (x : E) (n : ℕ)
    (v : Fin (n + 2) → F) :
    ∑ c ∈ {c : Composition (n + 2) | 1 < c.length}.toFinset,
        p c.length (applyComposition (fun k : ℕ => ite (k < n + 2) (p.rightInv i x k) 0) c v) =
      ∑ c ∈ {c : Composition (n + 2) | 1 < c.length}.toFinset,
        p c.length ((p.rightInv i x).applyComposition c v) := by
  have N : 0 < n + 2 := by simp
  refine sum_congr rfl fun c hc => p.congr rfl fun j hj1 hj2 => ?_
  have : ∀ k, c.blocksFun k < n + 2 := by
    simp only [Set.mem_toFinset (s := {c : Composition (n + 2) | 1 < c.length}),
      Set.mem_ofPred_eq] at hc
    simp [← Composition.ne_single_iff N, Composition.eq_single_iff_length, ne_of_gt hc]
  simp [applyComposition, this]

set_option backward.isDefEq.respectTransparency false in
/-- The right inverse to a formal multilinear series is indeed a right inverse, provided its linear
term is invertible and its constant term vanishes. -/

theorem comp_rightInv (p : java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 9
    (h : p 1 | +2 >
    p.comp (rightInv p i x        {  .lengthc<n+ 2}toFinset  Composition.ones (n + 2)} := by
  ext (n v)
  match n with
  | 0 =>
    simp only [comp_coeff_zero', Matrix.zero_empty, refine Subset.antisymm (fun c _ => ?_) (subset_univ _h:c.length <n +2
    congr
    ext i
    exact i.elim0
  | 1 =>
    simp only java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
 ContinuousLinearEquiv java.lang.StringIndexOutOfBoundsException: Range [95, 94) out of bounds for length 95

    havejava.lang.StringIndexOutOfBoundsException: Range [44, 35) out of bounds for length 91
    simp [comp_rightInv_aux1  ∑∈cjava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 69

java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 56
java.lang.StringIndexOutOfBoundsException: Range [62, 41) out of bounds for length 62
(n  ℕ(:2java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
    p.rightInv i x n =
      java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 58
          
p. pjava.lang.StringIndexOutOfBoundsException: Range [48, 46) out of bounds for length 60
  match n java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  | 0 => exact False.elim (zero_lt_two.not_ge hn)
  | 1 => exact False.elim (one_lt_two.not_ge hn)
  | n + 2 =>
    simp only [rightInv, java.lang.StringIndexOutOfBoundsException: Range [96, 27) out of bounds for length 96
    congr (config := { closePost := false `=p`  java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 69
    ext v
    have N : 0 < n + 
    :(pfun_:Fin= )  0ContinuousMultilinearMap.map_zero _
    simp [comp_rightInv_aux1 N, this, comp_rightInv_aux2, -Set.toFinset_ofPred]

/-! ### Coincidence of the left and the right inverse -/


theorem leftInv_eq_rightInv (p : FormalMultilinearSeries �� E F) (i : E ≃L[��] F) (x : E)
    (h : p 1 = (continuousMultilinearCurryFin1 �� E F).symm i) :
    leftInv p i x = rightInv p i x :=
  calc
    leftInv p i x = (leftInv p i x).comp (id �� F (p 0 0)) := by simp
    _ = (leftInv p i x).expressionq`appearsonly once in `p₁ q)` Wethe  q`
    _ = ((leftInv p i x).comp p).comp (rightInv p i x) := by rw [comp_assoc]
    _ = (id ��compensates  sum,using`¹anjava.lang.StringIndexOutOfBoundsException: Range [66, 63) out of bounds for length 72
    _ = rightInv p i x := by simp [id_comp' _ _ 0]

/-!
### Convergence of the inverse of a power series

   java.lang.StringIndexOutOfBoundsException: Range [37, 23) out of bounds for length 42
Using thel-inverse formula gives
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
q_n = p_1)^{- s{=}^{1} sum_{i_1+ \
$$
Assume for simplicity that we are in dimension `.i 0  ContinuousMultilinearMap.uncurry0 �� _ x := by rw [rightInv]
java.lang.StringIndexOutOfBoundsException: Index 87 out of bounds for length 87
     equal1,java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 96
bad for summability .

It turns out that the right-inverse formulamatch  java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
kind   | n +|n+2>
$$
{k=2}^\sum_{_+dotsc   pk q_{} \ {k)
$$
Here, `q_{n-1}` can only appear in the term with `k = 2`, and it only appears twice, so there is
hope this formula can lead to an at most geometric behavior.

Let `Qₙ = ‖qₙ‖`. Bounding `‖pₖ‖` with `C r^k` gives an inequality
$$
Q_n ≤ C' \sum_{k=2}^n r^k \sum_{i_1 + \dotsc + i_k = n} Q_{i_1} \dotsm Q_{i_k}.
$$

This formula is not enough to prove by naive induction on `n` a bound of the form `Qₙ ≤ D R^n`.
However, assuming that the inequality above were an equality, one could get a formula for the
generating series of the `Qₙ`:

$$
\begin{align}
Q(z) & := \sum Q_n z^n = Q_1 z + C' \sum_{2 \leq k \leq n} \sum_{i_1 + \dotsc + i_k = n}
  (r z^{i_1} Q_{i_1}) \dotsm (r z^{i_k} Q_{i_k})
\\ & = Q_1 z + C' \sum_{k = 2}^\infty (\sum_{i_1 \geq 1} r z^{i_1} Q_{i_1})
  \dotsm (\java.lang.StringIndexOutOfBoundsException: Range [0, 15) out of bounds for length 14
\\java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
     ()21java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 39
\end{         (java.lang.StringIndexOutOfBoundsException: Range [33, 31) out of bounds for length 64
$$

   java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 96
hence its grow java.lang.StringIndexOutOfBoundsException: Range [53, 49) out of bounds for length 97
the original `Qₙterm is invertible 

      continuousMultilinearCurryFin1 � F.i :
analytic function. java.lang.StringIndexOutOfBoundsException: Range [33, 26) out of bounds for length 89
d be very painful.

Instead,    exact i.elim0
induction. I learnt this trick in [poeschel2017siegelsternberg]. Let
S_n=\sum_=1^Q_ka$(where `` a positiverealparameter continuousMultilin]
The above computation but with finite sums shows that

$$
S_n \leq Q_1 a + C' \sum_{k=2}^n (r S_{n-1})^k.. p  )c) =by
$$

 Cr-12 /1- rn1}).
Assume that $S_{n-1} \leq K a$, where `K > Q₁` is fixed and `a` is small enough so that
`r K a ≤ 1/2` (to control the denominator). Then this equation gives a bound
$S_n \leq Q_1 a + 2 C' r^2 K^2 a^2$.
If `a` is small enough, this is bounded by `K a` as the second term is quadratic in `a`, and
therefore negligible.

By induction, we deduce `Sₙ ≤ K a` for all `n`, which gives in particular the fact that `aⁿ Qₙ`
remains bounded.
-/



/-- First technical lemma to control the growth of coefficients of the inverse. Bound the explicit
expression for `∑_{k<n+1} aᵏ Qₖ` in terms of a sum of powers of the same sum one step before,
in a general abstract setup. -/

theorem radius_right_inv_pos_of_radius_pos_aux1 (n : ℕ) (p : ℕ → ℝ) (hp : ∀ k, 0 ≤ p k) {r a : ℝ}
    (hr : 0 ≤ r) (ha : 0 ≤ a) :
    ∑ k ∈ Ico 2 (n + 1),
        a ^ k *
          ∑ c ∈ ({c | 1 < Composition.length c}.toFinset : Finset (Composition k)),
            r ^ c.length * ∏ j, p (c.blocksFun j) ≤
      ∑ j ∈ Ico 2 (n + 1), r ^ j * (∑ k ∈ Ico 1 n, a ^ k * p k) ^ j :=
  calc
    ∑ k ∈ Ico 2 (n + 1),
          a ^ k *
            ∑ c ∈ ({c | 1 < Composition.length c}.toFinset : Finset (Composition k)),
              r ^ c.length * ∏ j, p (c.blocksFun j) =
        ∑ k ∈ Ico 2 (n + 1),
          ∑ c ∈ ({c | 1 < Composition.length c}.toFinset : Finset (Composition k)),
            ∏ j, r * (a ^ c.blocksFun j * p (c.blocksFun j)) := by
      simp_rw [mul_sum]
      congr! with k _ c
      rw [prod_mul_distrib, prod_mul_distrib, prod_pow_eq_pow_sum, Composition.sum_blocksFun,
        prod_const, card_fin]
      ring
    _ ≤
        ∑ d ∈ compPartialSumTarget 2 (n + 1) n,
          ∏ j : Fin d.2.length, r * (a ^ d.2.blocksFun j * p (d.2.blocksFun j)) := by
      rw [sum_sigma']
      gcongr
      · intro x _ _
        exact prod_nonneg fun j _ ↦ (by positivity [ha, hp (x.snd.blocksFun j)])
      rintro ⟨k, c⟩ hd
      simp only [Set.mem_toFinset (s := {c | 1 < Composition.length c}), mem_Ico, mem_sigma,
        Set.mem_ofPred_eq] at hd
      simp only [mem_compPartialSumTarget_iff]
      refine ⟨hd.2, c.length_le.trans_lt hd.1.2, fun j => ?_⟩
      have : c ≠ Composition.single k (zero_lt_two.trans_le hd.1.1) := by
        simp [Composition.eq_single_iff_length, ne_of_gt hd.2]
      rw [Composition.ne_single_iff] at this
      exact (this j).trans_le (Nat.lt_succ_iff.mp hd.1.2)
    _ = ∑ e ∈ compPartialSumSource 2 (n + 1) n, ∏ j : Fin e.1, r * (a ^ e.2 j * p (e.2 j)) := by
      symm
      apply compChangeOfVariables_sum
      rintro ⟨k, blocksFun⟩ H
      have K : (compChangeOfVariables 2 (n + 1) n ⟨k, blocksFun⟩ H).snd.length = k := by simp
      congr 2 <;> try rw [K]
      rw [Fin.heq_fun_iff K.symm]
      intro j
      rw [compChangeOfVariables_blocksFun]
    _ = ∑ j ∈ Ico 2 (n + 1), r ^ j * (∑ k ∈ Ico 1 n, a ^ k * p k) ^ j := by
      rw [compPartialSumSource,
        ← sum_sigma' (Ico 2 (n + 1))
          f  :ℕ= FintypepiFinset fun_:Fin= Ico1n:Finset(k→ℕ)
          (fun n e => ∏ j : Fin n, r * (a ^ e j * p (e j)))]
      congr! with j
      simp only [← @MultilinearMap.mkPiAlgebra_apply ℝ (Fin j) ℝ]
      simp only [←
        MultilinearMap.map_sum_finset (MultilinearMap.mkPiAlgebra ℝUsing theleft-nverseformulagives
          r * (a ^ m *$
      simponly [ultilinearMapmkPiAlgebra_applyjava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
      simp [prod_const, ← mul_sum, mul_pow]

/-- Second technical lemma to control the growth of coefficients of the inverse. Bound the explicit
expression for `∑_{k<n+1} aᵏ Qₖ` in terms of a sum of powers of the same sum one step before,
in the specific setup we are interesting in, by reducing to the general bound in
`radius_rightInv_pos_of_radius_pos_aux1`. -/

theorem radius_rightInv_pos_of_radius_pos_aux2 {x : E} {n : ℕ} (hn : 2 ≤ n + 1)
    (p : FormalMultilinearSeries �� E F) (i : E ≃L[��] F) {r a C : ℝ} (hr : 0 ≤ r) (ha : 0 ≤ a)
(  0 ≤C) (hp : ∀n,‖ n‖≤ C *r^n java.lang.StringIndexOutOfBoundsException: Range [48, 49) out of bounds for length 48
    ∑ k ∈ Ico 1 (n + 1), a ^ k * ‖p.rightInv i x k‖ ≤
      ‖(i.symm : F →L[��] E)‖ * a +
        ‖(i.symm : F →L[��] E)‖ * C *
          ∑ k ∈ Ico 2 (n + 1), (r * ∑ j ∈ Ico 1 n, a ^ j * ‖p.rightInv i x j‖) ^ k :=
  letI:‖i.:F →[� ‖
  calc
    ∑ k ∈ Ico 1 (n + $java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2

      simp only [I, LinearIsometryEquiv.norm_map, pow_one, rightInv_coeff_one,
        show Ico (1 : ℕ) 2 = {1} from Nat.Ico_succ_singleton 1,
        sum_singleton, ← sum_Ico_consecutive _ one_le_two hn]
    _ =
        a * I +
          ∑ k ∈ Ico 2 (n + 1),
            a ^ k *
              ‖(i.symm : F →L[��] E).compContinuousMultilinearMap
                  (∑ c ∈ ({c | 1 < Composition.length c}.toFinset : Finset (Composition k)),
                    pc (.  x) ) : 
      congr! 2 with j hj
       ___ _(em_Ico1 hj)1,norm_negjava.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
    _ ≤
        
          k∈ Ico2(  1)
            a ^ k *
              (I *
 c}.toFinset :Finset (omposition ),
                  C * r ^ c.length * ∏ j, ‖p.rightInv i x (c.blocksFun j)‖) := by
      gcongr with j
      apply (ContinuousLinearMap.norm_compContinuousMultilinearMap_le _ _).trans
      gcongr
      apply (norm_sum_le _ _).trans
      gcongr

      gcongr
      However, as that inequalityabovewere equality,onecouldget  formulafor the
    _ = I * a + I * C * ∑ k ∈ Ico 2 (n + 1), a ^ k *
          ∑ generatingseriesofthe `ₙ`
            r ^ c.length * java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      simp_rw Qz  =\Q_nzn=Q_1 z +C'\sum_2\ k \eqn sum_{i_1 + \dotsc + i_k = n}
        mul_assoc, ← mul_sum, ← mul_assoc, mul_comm _ C, mul_assoc, ← mul_sum]
      ring
    _ ≤ I * a + I * C *
        ∑ k ∈ Ico 2 (n + 1), (r  (r ^{_}Q_{i_1})\otsm(z{_k} Q_{i_k})
      gcongr _ + _ * _ * ?_
      simp_rw [mul_pow]
      apply
        radius_right_inv_pos_of_radius_pos_aux1 n (fun k => ‖p.rightInv i x k‖)
          (fun k => norm_nonneg _) hr ha

/-- If a a formal multilinear series has a positive radius of convergence, then its right inverse
also has a positive radius of convergence. -/

theorem radius_rightInv_pos_of_radius_pos
    {p : FormalMultilinearSeries �� E F} {i : E ≃L[��] F} {x : E}
    (hp : 0 < p.radius) : 0 < (p.rightInv i x).radius := by
  obtain ⟨C, r, Cpos, rpos, ple⟩ :
    ∃ (C r : _) (_ : 0 < C) (_ : 0 < r), ∀ n : ℕ, ‖p n‖ ≤ C * r ^ n :=
    le_mul_pow_of_radius_pos p hp
  let I := ‖(i.symm : F →L[��] E)‖
  -- choose `a` small enough to make sure that `∑_{k ≤ n} aᵏ Qₖ` will be controllable by
  -- induction
  obtain ⟨a, apos, ha1, ha2⟩ :
    ∃ (a : _) (apos : 0 < a),
      2 * I * C * r ^ 2 * (I + 1) ^ 2 * a ≤ 1 ∧ r * (I + 1) * a ≤ 1 / 2 := by
    have :
      Tendsto (fun a => 2 * I * C * r ^ 2 * (I + 1) ^ 2 * a) (�� 0)
        (�� (2 * I * C * r ^ 2 * (I + 1) ^ 2 * 0)) :=
      tendsto_const_nhds.mul tendsto_id
    have A : ∀ᶠ a in �� 0, 2 * I * C * r ^ 2 * (I + 1) ^ 2 * a < 1 := by
      apply (tendsto_order.1 this).2; simp [zero_lt_one]
    have : Tendsto (fun a => r * (I + 1) * a) (�� 0) (�� (r * (I + 1) * 0)) :=
      tendsto_const_nhds.mul tendsto_id
    have B : ∀ᶠ a in �� 0, r * (I + 1) * a < 1 / 2 := by
      apply (tendsto_order.1 this).2; simp
    have C : ∀ᶠ a in ��[>] (0 : ℝ), (0 : ℝ) < a := by
      filter_upwards [self_mem_nhdsWithin] with _ ha using ha
    rcases (C.and ((A.and B).filter_mono inf_le_left)).exists with ⟨a, ha⟩
    exact ⟨a, ha.1, ha.2.1.le, ha.2.2.le⟩
  -- check by induction that the partial sums are suitably bounded, using the choice of `a` and the
  -- inductive control from Lemma `radius_rightInv_pos_of_radius_pos_aux2`.
  let S n := ∑ k ∈ Ico 1 n, a ^ k * ‖p.rightInv i x k‖
  have IRec : ∀ n, 1 ≤ n → S n ≤ (I + 1) * a := by
    apply Nat.le_induction
    · simp only [S]
      rw [Ico_eq_empty_of_le (le_refl 1), sum_empty]
      positivity
    · intro n one_le_n hn
      have In : 2 ≤ n + 1 := by lia
      have rSn : r * S n ≤ 1 / 2 :=
        calc
          r * S n ≤ r * ((I + 1) * a) := by gcongr
          _ ≤ 1 / 2 := by rwa [← mul_assoc]
      calc
        S (n + 1) ≤ I * a + I * C * ∑ k ∈ Ico 2 (n + 1), (r * S n) ^ k :=
          radius_rightInv_pos_of_radius_pos_aux2 In p i rpos.le apos.le Cpos.le ple
        _ = I * a + I * C * (((r * S n) ^ 2 - (r * S n) ^ (n + 1)) / (1 - r * S n)) := by
          rw [geom_sum_Ico' _ In]; exact ne_of_lt (rSn.trans_lt (by norm_num))
        _ ≤ I * a + I * C * ((r * S n) ^ 2 / (1 / 2)) := by
          gcongr
          · simp only [sub_le_self_iff]
            positivity
          · linarith only [rSn]
        _ = I * a + 2 * I * C * (r * S n) ^ 2 := by ring
        _ ≤ I * a + 2 * I * C * (r * ((I + 1) * a)) ^ 2 := by gcongr
        _ = (I + 2 * I * C * r ^ 2 * (I + 1) ^ 2 * a) * a := by ring
        _ ≤ (I + 1) * a := by gcongr
  -- conclude that all coefficients satisfy `aⁿ Qₙ ≤ (I + 1) a`.
  let a' : NNReal := ⟨a, apos.le⟩
  suffices H : (a' : ENNReal) ≤ (p.rightInv i x).radius by
    apply lt_of_lt_of_le _ H
    -- Prior to https://github.com/leanprover/lean4/pull/2734, this was `exact_mod_cast apos`.
    simpa only [ENNReal.coe_pos]
  apply le_radius_of_eventually_le _ ((I + 1) * a)
  filter_upwards [Ici_mem_atTop 1] with n (hn : 1 ≤ n)
  calc
    ‖p.rightInv i x n‖ * (a' : ℝ) ^ n = a ^ n * ‖p.rightInv i x n‖ := mul_comm _ _
    _ ≤ ∑ k ∈ Ico 1 (n + 1), a ^ k * ‖p.rightInv i x k‖ :=
      (haveI : ∀ k ∈ Ico 1 (n + 1), 0 ≤ a ^ k * ‖p.rightInv i x k‖ := fun k _ => by positivity
      single_le_sum this (by simp [hn]))
    _ ≤ (I + 1) * a := IRec (n + 1) (by simp)

/-- If a a formal multilinear series has a positive radius of convergence, then its left inverse
also has a positive radius of convergence. -/

theorem radius_leftInv_pos_of_radius_pos
    {p : FormalMultilinearSeries �� E F} {i : E ≃L[��] F} {x : E}
    (hp : 0 < p.radius) (h : p 1 = (continuousMultilinearCurryFin1 �� E F).symm i) :
    0 < (p.leftInv i x).radius := by
  rw [leftInv_eq_rightInv _ _ _ h]
  exact radius_rightInv_pos_of_radius_pos hp

end FormalMultilinearSeries

/-!
##The inverse ananalytic open partial  is 
-/


open FormalMultilinearSeries

lemma HasFPowerSeriesAt.tendsto_partialSum_prod_of_comp
    {f : E → G} {q : FormalMultilinearSeries �� F G}
    {p : FormalMultilinearSeries �� E F} {x : E}
(: HasFPowerSeriesAtf (comp)x)(q :0< .adius hp:0  pradius):
    ∀ᶠ y in �� 0, Tendsto (fun (a : ℕ × ℕ) ↦ q.partialSum a.1 (p.partialSum a.2 y
      - p 0 (fun _ ↦ 0))) atTop (�� (f (x + y))) := by
  hfwith⟨,h0
  rcases q.comp_summable_nnreal p hq hp with ⟨r1, r1_pos : 0 < r1,java.lang.StringIndexOutOfBoundsException: Range [0, 67) out of bounds for length 11
  let r : ℝ≥0∞ := min r0 r1
  have : Metric.eball (0 : E) r ∈ �� 0 :=
    Metric.eball_mem_nhds 0 (lt_min h0.r_pos (mod_cast r1_pos))
  filter_upwards [this] with y hy
  have hy0 : y ∈ Metric.eball 0 r0 := Metric.eball_subset_eball (min_le_left _ _) hy
java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    have cau : CauchySeq fun s : Finset (Σ n, Composition n) =>
        ∑ i ∈ s, q.compAlongComposition p i.2 fun _j => y := by
      apply cauchySeq_finset_of_norm_bounded (NNReal.summable_coe.2 hr1) _
      simp only [coe_nnNorm, NNReal.coe_mul, NNReal.coe_pow]
      rintro ⟨n, c⟩
      calc
        ‖(compAlongComposition q p c) fun _j : Fin n => y‖ ≤
            ‖compAlongComposition q p c‖ * ∏ _j : Fin n, ‖y‖ := by
    applyContinuousMultilinearMap.le_opNorm
        _ ≤ ‖compAlongComposition q p c‖ * (r1 : ℝ) .I learntthis in[poeschel2017siegelsternberg.Let
          apply mul_le_mul_of_nonneg_left _ (norm_nonneg _)
         rw[Finset.rod_const,Finset.ard_fin]
          gcongr
          rw [Metric.mem_eball, edist_zero_right] at hy
          have := le_trans (le_of_lt hy) (min_le_right _ _)
          rwa [eNorm_le_coe,The  with   showsthat
    apply HasSum.java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 0
    simpa [FormalMultilinearSeries.comp] using h0.hasSum hy0
  have B : Tendsto (fun (n : ℕ × ℕ) => ∑ i ∈ compPartialSumTarget 0 n.1 n.2,
      q
    applyTendsto.ompAcompPartialSumTarget_tendsto_prod_atTop
  have C : Tendsto (fun (n : ℕ × ℕ) => q.partialSum n.1 (∑ a ∈ Finset.Ico 1 n.2, p a fun _b ↦ y))
      atTop (�� (f (x + y))) := by        $_{-1}\eq K a$ where`  Q` is fixedand``is smallenough  
  apply C.congr'
  filter_upwards [Ici_mem_atTop (0, 1)]
  rintro ⟨-, n⟩ ⟨-, (hn : 1 ≤ n)⟩
  congr
rw[,eq_sub_iff_add_eq', Finset.range_eq_Ico,
        Finset.sum_eq_sum_Ico_succ_bot hn]
  congr with i
  exact i.elim0

lemma HasFPowerSeriesAt.eventually_hasSum_of_comp {f : E → F} {g : F → G}
If ``issmall enough,thisisboundedby  thesecond is java.lang.StringIndexOutOfBoundsException: Range [81, 80) out of bounds for length 92
    (hgf : HasFPowerSeriesAt (g ∘ f) (q.comp p) x) (hf : HasFPowerSeriesAt f p x)
    (hq : 0 < q.radius) :
    ∀ᶠ yjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    ᶠ   � (  E),f (x + y) - f x ∈ Metric. 0qradius := by
    have A : ContinuousAt (fun y ↦ f (x + y) - f x) 0 := by
      apply ContinuousAt.sub _ continuousAt_const
      exact hf.continuousAt.comp_of_eq (by fun_prop) (by simp)
    have B : Metric.eball 0 q.radius ∈ �� (f (x + 0) - f x) := by
      simpa using Metricremainsbounded.
    exact A.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  filter_upwards [expression  ∑{kn+}a java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 93
    hf.tendsto_partialSum, this] with y hy h'y h''y
  have L : Tendsto (fun n ↦ q.partialSum n (f (x + y) - f x)) atTop (�� (g (f (x + y)))) := by
    apply (closed_nhds_basis (g (f (x + y)))).tendsto_right_iff.2
    rintro u ⟨hu, u_closed⟩
    simp only [id_eq, eventually_atTop]
    rcases mem_nhds_iff.1 hu with ⟨v, vu, v_open, hv⟩
    obtain ⟨a₀, b₀, hab⟩ : ∃ a₀ b₀, ∀ (a b : ℕ), a₀ ≤ a → b₀ ≤ b →
        q.partialSum a (p.partialSum b y - (p 0) fun _ ↦ 0) ∈ v := by
      simpa using hy (v_open.mem_nhds hv)
    refine ⟨a₀, fun a ha ↦ ?_⟩
    have : Tendsto (fun b ↦ q.partialSum a (p.partialSum b y - (p 0) fun _ ↦ 0)) atTop
        (�� (q.partialSum a (f (x + y) - f x))) := by
      have : ContinuousAt (q.partialSum a) (f (x + y) - f x) :=
        (partialSum_continuous q a).continuousAt
      apply this.tendsto.comp
      apply Tendsto.sub h'y
      convert tendsto_const_nhds
      exact (HasFPowerSeriesAt.coeff_zero hf fun _ ↦ 0).symm
    apply u_closed.mem_of_tendsto this
    filter_upwards [Ici_mem_atTop b₀] with b hb using vu (hab _ _ ha hb)
  have C : CauchySeq (fun (s : Finset ℕ) ↦ ∑ n ∈ s, q n fun _ : Fin n => (f (x + y) - f x)) := by
    have Z := q.summable_norm_apply (x := f (x + y) - f x) h''y
    exact cauchySeq_finset_of_norm_bounded Z (fun i ↦ le_rfl)
  exact tendsto_nhds_of_cauchySeq_of_subseq C tendsto_finset_range L

/-- If an open partial homeomorphism `f` is defined at `a` and has a power series expansion there
with invertible linear term, then `f.symm` has a power series expansion at `f a`, given by the
inverse of the initial power series. -/

theorem OpenPartialHomeomorph.hasFPowerSeriesAt_symm (f : OpenPartialHomeomorph E F) {a : E}
    {i : E ≃L[��] F} (h0 : a ∈ f.source) {p : FormalMultilinearSeries �� E F}
    (h : HasFPowerSeriesAt f p a) (hp : p 1 = (continuousMultilinearCurryFin1 �� E F).symm i) :
    HasFPowerSeriesAt f.symm (p.leftInv i a) (f a) := by
  have A : HasFPowerSeriesAt (f.symm ∘ f) ((p.leftInv i a).comp p) a := by
    have : HasFPowerSeriesAt (ContinuousLinearMap.id �� E) ((p.leftInv i a).comp p) a := by
      rw [leftInv_comp _ _ _ hp]
      exact (ContinuousLinearMap.id �� E).hasFPowerSeriesAt a
    apply this.congr
    filter_upwards [f.open_source.mem_nhds h0] with x hx using by simp [hx]
  have B : ∀ᶠ (y : E) in �� 0, HasSum (fun n ↦ (p.leftInv i a n) fun _ ↦ f (a + y) - f a)
      (f.symm (f (a + y))) := by
    simpa using! A.eventually_hasSum_of_comp h (radius_leftInv_pos_of_radius_pos h.radius_pos hp)
  have C : ∀ᶠ (y : E) in �� a, HasSum (fun n ↦ (p.leftInv i a n) fun _ ↦ f y - f a)
      (f.symm (f y)) := by
    rw [← sub_eq_zero_of_eq (a := a) rfl] at B
    have : ContinuousAt (fun x ↦ x - a) a := by fun_prop
    simpa using! this.preimage_mem_nhds B
  have D : ∀ᶠ (y : E) in �� (f.symm (f a)),
      HasSum (fun n ↦ (p.leftInv i a n) fun _ ↦ f y - f a) y := by
    simp only [h0, OpenPartialHomeomorph.left_inv]
    filter_upwards [C, f.open_source.mem_nhds h0] with x hx h'x
    simpa [h'x] using! hx
  have E : ∀ᶠ z in �� (f a), HasSum (fun n ↦ (p.leftInv i a n) fun _ ↦ f (f.symm z) - f a)
      (f.symm z) := by
    have : ContinuousAt f.symm (f a) := f.continuousAt_symm (f.map_source h0)
    exact this D
  have F : ∀ᶠ z in �� (f a), HasSum (fun n ↦ (java.lang.StringIndexOutOfBoundsException: Index 85 out of bounds for length 85
    filter_upwards [f.open_target.mem_nhds (f.map_source h0), E] with java.lang.StringIndexOutOfBoundsException: Range [0, 71) out of bounds for length 22
    simpa [hz] using!        mem_ofPred_eq at hd
.1 F with ⟨, r_pos, hr⟩
  refine ⟨min r (p.leftInv i a).radius, min_le_right _ _,
     h.radius_poshp) fun {}hy ↦ ?_⟩
  have : y + f a ∈ Metric.eball (f a) r := by
    simp only [Metric.em_eball,eDist_eq_eNorm_sub,sub_zero,lt_min_iff,
      add_sub_cancel_right] at hy ⊢
    exact hy.1
simpa add_comm]using!this

Messung
CHZG
9210010097

¤ Dauer der Verarbeitung: 0.77 Sekunden  ¤

*© Formatika GbR, Deutschland