The areas / V17. Differential calculus in normed spaces
Mathlib.Analysis.Calculus.ContDiff.FaaDiBruno
87 declarations. Mathlib docs · Source
Faa di Bruno formula
The Faa di Bruno formula gives the iterated derivative of g ∘ f in terms of those of
g and f. It is expressed in terms of partitions I of {0, ..., n-1}. For such a
partition, denote by k its number of parts, write the parts as I₀, ..., Iₖ₋₁ ordered so
that max I₀ < ... < max Iₖ₋₁, and let iₘ be the number of elements of Iₘ. Then
D^n (g ∘ f) (x) (v₀, ..., vₙ₋₁) = ∑_{I partition of {0, ..., n-1}} D^k g (f x) (D^{i₀} f (x) (v_{I₀}), ..., D^{iₖ₋₁} f (x) (v_{Iₖ₋₁}))
where by v_{Iₘ} we mean the vectors vᵢ with indices in Iₘ, i.e., the composition of v
with the increasing embedding of Fin iₘ into Fin n with range Iₘ.
For instance, for n = 2, there are 2 partitions of {0, 1}, given by {0}, {1} and {0, 1},
and therefore
D^2(g ∘ f) (x) (v₀, v₁) = D^2 g (f x) (Df (x) v₀, Df (x) v₁) + Dg (f x) (D^2f (x) (v₀, v₁)).
The formula is straightforward to prove by induction, as differentiating
D^k g (f x) (D^{i₀} f (x) (v_{I₀}), ..., D^{iₖ₋₁} f (x) (v_{Iₖ₋₁})) gives a sum
with k + 1 terms where one differentiates either D^k g (f x), or one of the D^{iₘ} f (x),
amounting to adding to the partition I either a new atom {-1} to its left, or extending Iₘ
by adding -1 to it. In this way, one obtains bijectively all partitions of {-1, ..., n},
and the proof can go on (up to relabelling).
The main difficulty is to write things down in a precise language, namely to write
D^k g (f x) (D^{i₀} f (x) (v_{I₀}), ..., D^{iₖ₋₁} f (x) (v_{Iₖ₋₁})) as a continuous multilinear
map of the vᵢ. For this, instead of working with partitions of {0, ..., n-1} and ordering their
parts, we work with partitions in which the ordering is part of the data -- this is equivalent,
but much more convenient to implement. We call these OrderedFinpartition n.
Note that the implementation of OrderedFinpartition is very specific to the Faa di Bruno formula:
as testified by the formula above, what matters is really the embedding of the parts in Fin n,
and moreover the parts have to be ordered by max I₀ < ... < max Iₖ₋₁ for the formula to hold
in the general case where the iterated differential might not be symmetric. The defeqs with respect
to Fin.cons are also important when doing the induction. For this reason, we do not expect this
class to be useful beyond the Faa di Bruno formula, which is why it is in this file instead
of a dedicated file in the Combinatorics folder.
Main results
Given c : OrderedFinpartition n and two formal multilinear series q and p, we
define c.compAlongOrderedFinpartition q p as an n-multilinear map given by the formula above,
i.e., (v₁, ..., vₙ) ↦ qₖ (p_{i₁} (v_{I₁}), ..., p_{iₖ} (v_{Iₖ})).
Then, we define q.taylorComp p as a formal multilinear series whose n-th term is
the sum of c.compAlongOrderedFinpartition q p over all ordered finpartitions of size n.
Finally, we prove in HasFTaylorSeriesUptoOn.comp that, if two functions g and f have Taylor
series up to n given by q and p, then g ∘ f also has a Taylor series,
given by q.taylorComp p.
Implementation
A first technical difficulty is to implement the extension process of OrderedFinpartition
corresponding to adding a new atom, or appending an atom to an existing part, and defining the
associated increasing parameterizations that show up in the definition
of compAlongOrderedFinpartition.
Then, one has to show that the ordered finpartitions thus
obtained give exactly all ordered finpartitions of order n+1. For this, we define the inverse
process (shrinking a finpartition of n+1 by erasing 0, either as an atom or from the part
that contains it), and we show that these processes are inverse to each other, yielding an
equivalence between (c : OrderedFinpartition n) × Option (Fin c.length)
and OrderedFinpartition (n + 1). This equivalence shows up prominently in the inductive proof
of Faa di Bruno formula to identify the sums that show up.
Basic API for ordered finpartitions
Extending and shrinking ordered finpartitions
We show how an ordered finpartition can be extended to the left, either by adding a new atomic
part (in extendLeft) or adding the new element to an existing part (in extendMiddle).
Conversely, one can shrink a finpartition by deleting the element to the left, with a different
behavior if it was an atomic part (in eraseLeft, in which case the number of parts decreases by
one) or if it belonged to a non-atomic part (in eraseMiddle, in which case the number of parts
stays the same).
These operations are inverse to each other, giving rise to an equivalence between
((c : OrderedFinpartition n) × Option (Fin c.length)) and OrderedFinpartition (n + 1)
called OrderedFinPartition.extendEquiv.
Applying ordered finpartitions to multilinear maps
The Faa di Bruno formula
theorem OrderedFinpartition.mk.injEq E0 #
∀ {n : ℕ} (length : ℕ) (partSize : Fin length → ℕ) (partSize_pos : ∀ (m : Fin length), 0 < partSize m)
(emb : (m : Fin length) → Fin (partSize m) → Fin n) (emb_strictMono : ∀ (m : Fin length), StrictMono (emb m))
(parts_strictMono : StrictMono fun m ↦ emb m ⟨partSize m - 1, ⋯⟩)
(disjoint : Set.univ.PairwiseDisjoint fun m ↦ Set.range (emb m)) (cover : ∀ (x : Fin n), ∃ m, x ∈ Set.range (emb m))
(length_1 : ℕ) (partSize_1 : Fin length_1 → ℕ) (partSize_pos_1 : ∀ (m : Fin length_1), 0 < partSize_1 m)
(emb_1 : (m : Fin length_1) → Fin (partSize_1 m) → Fin n)
(emb_strictMono_1 : ∀ (m : Fin length_1), StrictMono (emb_1 m))
(parts_strictMono_1 : StrictMono fun m ↦ emb_1 m ⟨partSize_1 m - 1, ⋯⟩)
(disjoint_1 : Set.univ.PairwiseDisjoint fun m ↦ Set.range (emb_1 m))
(cover_1 : ∀ (x : Fin n), ∃ m, x ∈ Set.range (emb_1 m)),
({ length := length, partSize := partSize, partSize_pos := partSize_pos, emb := emb, emb_strictMono := emb_strictMono,
parts_strictMono := parts_strictMono, disjoint := disjoint, cover := cover } =
{ length := length_1, partSize := partSize_1, partSize_pos := partSize_pos_1, emb := emb_1,
emb_strictMono := emb_strictMono_1, parts_strictMono := parts_strictMono_1, disjoint := disjoint_1,
cover := cover_1 }) =
(length = length_1 ∧ partSize ≍ partSize_1 ∧ emb ≍ emb_1)
theorem OrderedFinpartition.extend.match_1.congr_eq_1 E1 #
∀ {n : ℕ} (c : OrderedFinpartition n) (motive : Option (Fin c.length) → Sort u_1) (i : Option (Fin c.length))
(h_1 : Unit → motive none) (h_2 : (i : Fin c.length) → motive (some i)),
i = none →
(match i with
| none => h_1 ()
| some i => h_2 i) ≍
h_1 ()
def OrderedFinpartition.ctorIdx E1 #
{n : ℕ} → OrderedFinpartition n → ℕ
theorem OrderedFinpartition.mk.inj E1 #
∀ {n length : ℕ} {partSize : Fin length → ℕ} {partSize_pos : ∀ (m : Fin length), 0 < partSize m}
{emb : (m : Fin length) → Fin (partSize m) → Fin n} {emb_strictMono : ∀ (m : Fin length), StrictMono (emb m)}
{parts_strictMono : StrictMono fun m ↦ emb m ⟨partSize m - 1, ⋯⟩}
{disjoint : Set.univ.PairwiseDisjoint fun m ↦ Set.range (emb m)} {cover : ∀ (x : Fin n), ∃ m, x ∈ Set.range (emb m)}
{length_1 : ℕ} {partSize_1 : Fin length_1 → ℕ} {partSize_pos_1 : ∀ (m : Fin length_1), 0 < partSize_1 m}
{emb_1 : (m : Fin length_1) → Fin (partSize_1 m) → Fin n}
{emb_strictMono_1 : ∀ (m : Fin length_1), StrictMono (emb_1 m)}
{parts_strictMono_1 : StrictMono fun m ↦ emb_1 m ⟨partSize_1 m - 1, ⋯⟩}
{disjoint_1 : Set.univ.PairwiseDisjoint fun m ↦ Set.range (emb_1 m)}
{cover_1 : ∀ (x : Fin n), ∃ m, x ∈ Set.range (emb_1 m)},
{ length := length, partSize := partSize, partSize_pos := partSize_pos, emb := emb, emb_strictMono := emb_strictMono,
parts_strictMono := parts_strictMono, disjoint := disjoint, cover := cover } =
{ length := length_1, partSize := partSize_1, partSize_pos := partSize_pos_1, emb := emb_1,
emb_strictMono := emb_strictMono_1, parts_strictMono := parts_strictMono_1, disjoint := disjoint_1,
cover := cover_1 } →
length = length_1 ∧ partSize ≍ partSize_1 ∧ emb ≍ emb_1
theorem OrderedFinpartition.eraseLeft.congr_simp E1 #
∀ {n : ℕ} (c c_1 : OrderedFinpartition (n + 1)) (e_c : c = c_1) (hc : Set.range (c.emb 0) = {0}),
c.eraseLeft hc = c_1.eraseLeft ⋯
theorem OrderedFinpartition.mk.congr_simp E1 #
∀ {n : ℕ} (length : ℕ) (partSize : Fin length → ℕ) (partSize_pos : ∀ (m : Fin length), 0 < partSize m)
(emb emb_1 : (m : Fin length) → Fin (partSize m) → Fin n) (e_emb : emb = emb_1)
(emb_strictMono : ∀ (m : Fin length), StrictMono (emb m))
(parts_strictMono : StrictMono fun m ↦ emb m ⟨partSize m - 1, ⋯⟩)
(disjoint : Set.univ.PairwiseDisjoint fun m ↦ Set.range (emb m)) (cover : ∀ (x : Fin n), ∃ m, x ∈ Set.range (emb m)),
{ length := length, partSize := partSize, partSize_pos := partSize_pos, emb := emb, emb_strictMono := emb_strictMono,
parts_strictMono := parts_strictMono, disjoint := disjoint, cover := cover } =
{ length := length, partSize := partSize, partSize_pos := partSize_pos, emb := emb_1, emb_strictMono := ⋯,
parts_strictMono := ⋯, disjoint := ⋯, cover := ⋯ }
theorem OrderedFinpartition.extend.match_1.congr_eq_2 E1 #
∀ {n : ℕ} (c : OrderedFinpartition n) (motive : Option (Fin c.length) → Sort u_1) (i : Option (Fin c.length))
(h_1 : Unit → motive none) (h_2 : (i : Fin c.length) → motive (some i)) (i_1 : Fin c.length),
i = some i_1 →
(match i with
| none => h_1 ()
| some i => h_2 i) ≍
h_2 i_1
structure OrderedFinpartition E1 #
ℕ → Type
A partition of Fin n into finitely many nonempty subsets, given by the increasing
parameterization of these subsets. We order the subsets by increasing greatest element.
This definition is tailored-made for the Faa di Bruno formula, and probably not useful elsewhere,
because of the specific parameterization by Fin n and the peculiar ordering.
theorem OrderedFinpartition.ext E1 #
∀ {n : ℕ} {x y : OrderedFinpartition n}, x.length = y.length → x.partSize ≍ y.partSize → x.emb ≍ y.emb → x = y
theorem OrderedFinpartition.ext_iff E0 #
∀ {n : ℕ} {x y : OrderedFinpartition n}, x = y ↔ x.length = y.length ∧ x.partSize ≍ y.partSize ∧ x.emb ≍ y.emb
ctor OrderedFinpartition.mk E0 #
{n : ℕ} →
(length : ℕ) →
(partSize : Fin length → ℕ) →
(partSize_pos : ∀ (m : Fin length), 0 < partSize m) →
(emb : (m : Fin length) → Fin (partSize m) → Fin n) →
(∀ (m : Fin length), StrictMono (emb m)) →
(StrictMono fun m ↦ emb m ⟨partSize m - 1, ⋯⟩) →
(Set.univ.PairwiseDisjoint fun m ↦ Set.range (emb m)) →
(∀ (x : Fin n), ∃ m, x ∈ Set.range (emb m)) → OrderedFinpartition n
abbrev OrderedFinpartition.length E1 #
{n : ℕ} → OrderedFinpartition n → ℕ
The number of parts in the partition
abbrev OrderedFinpartition.partSize E1 #
{n : ℕ} → (self : OrderedFinpartition n) → Fin self.length → ℕ
The size of each part
theorem OrderedFinpartition.partSize_pos E1 #
∀ {n : ℕ} (self : OrderedFinpartition n) (m : Fin self.length), 0 < self.partSize m
abbrev OrderedFinpartition.emb E1 #
{n : ℕ} → (self : OrderedFinpartition n) → (m : Fin self.length) → Fin (self.partSize m) → Fin n
The increasing parameterization of each part
theorem OrderedFinpartition.emb_strictMono E1 #
∀ {n : ℕ} (self : OrderedFinpartition n) (m : Fin self.length), StrictMono (self.emb m)
theorem OrderedFinpartition.parts_strictMono E1 #
∀ {n : ℕ} (self : OrderedFinpartition n), StrictMono fun m ↦ self.emb m ⟨self.partSize m - 1, ⋯⟩
The parts are ordered by increasing greatest element.
theorem OrderedFinpartition.disjoint E1 #
∀ {n : ℕ} (self : OrderedFinpartition n), Set.univ.PairwiseDisjoint fun m ↦ Set.range (self.emb m)
The parts are disjoint
theorem OrderedFinpartition.cover E1 #
∀ {n : ℕ} (self : OrderedFinpartition n) (x : Fin n), ∃ m, x ∈ Set.range (self.emb m)
The parts cover everything
def instDecidableEqOrderedFinpartition.decEq E1 #
{n : ℕ} → (x x_1 : OrderedFinpartition n) → Decidable (x = x_1)
instance instDecidableEqOrderedFinpartition E0 #
{n : ℕ} → DecidableEq (OrderedFinpartition n)
def OrderedFinpartition.atomic E1 #
(n : ℕ) → OrderedFinpartition n
The ordered finpartition of Fin n into singletons.
theorem OrderedFinpartition.atomic_length E0 #
∀ (n : ℕ), (OrderedFinpartition.atomic n).length = n
theorem OrderedFinpartition.atomic_emb E0 #
∀ (n : ℕ), (OrderedFinpartition.atomic n).emb = fun m x ↦ m
theorem OrderedFinpartition.atomic_partSize E0 #
∀ (n : ℕ), (OrderedFinpartition.atomic n).partSize = fun x ↦ 1
instance OrderedFinpartition.instInhabited E0 #
{n : ℕ} → Inhabited (OrderedFinpartition n)
theorem OrderedFinpartition.default_eq E0 #
∀ {n : ℕ}, default = OrderedFinpartition.atomic n
theorem OrderedFinpartition.length_le E1 #
∀ {n : ℕ} (c : OrderedFinpartition n), c.length ≤ n
theorem OrderedFinpartition.partSize_le E1 #
∀ {n : ℕ} (c : OrderedFinpartition n) (m : Fin c.length), c.partSize m ≤ n
def OrderedFinpartition.embSigma E1 #
(n : ℕ) → OrderedFinpartition n → (l : Fin (n + 1)) × (p : Fin ↑l → Fin (n + 1)) × ((i : Fin ↑l) → Fin ↑(p i) → Fin n)
Embedding of ordered finpartitions in a sigma type. The sigma type on the right is quite big, but this is enough to get finiteness of ordered finpartitions.
theorem OrderedFinpartition.injective_embSigma E1 #
∀ (n : ℕ), Function.Injective (OrderedFinpartition.embSigma n)
instance OrderedFinpartition.instFintype E0 #
{n : ℕ} → Fintype (OrderedFinpartition n)
The best proof would probably to establish the bijection with Finpartitions, but we opt
for a direct argument, embedding OrderedPartition n in a type which is obviously finite.
instance OrderedFinpartition.instUniqueZero E0 #
Unique (OrderedFinpartition 0)
theorem OrderedFinpartition.exists_inverse E1 #
∀ {n : ℕ} (c : OrderedFinpartition n) (j : Fin n), ∃ p, c.emb p.fst p.snd = j
theorem OrderedFinpartition.emb_injective E1 #
∀ {n : ℕ} (c : OrderedFinpartition n), Function.Injective fun p ↦ c.emb p.fst p.snd
theorem OrderedFinpartition.emb_ne_emb_of_ne E1 #
∀ {n : ℕ} (c : OrderedFinpartition n) {i j : Fin c.length} {a : Fin (c.partSize i)} {b : Fin (c.partSize j)},
i ≠ j → c.emb i a ≠ c.emb j b
def OrderedFinpartition.index E1 #
{n : ℕ} → (c : OrderedFinpartition n) → Fin n → Fin c.length
Given j : Fin n, the index of the part to which it belongs.
def OrderedFinpartition.invEmbedding E1 #
{n : ℕ} → (c : OrderedFinpartition n) → (j : Fin n) → Fin (c.partSize (c.index j))
The inverse of c.emb for c : OrderedFinpartition. It maps j : Fin n to the point in
Fin (c.partSize (c.index j)) which is mapped back to j by c.emb (c.index j).
theorem OrderedFinpartition.emb_invEmbedding E0 #
∀ {n : ℕ} (c : OrderedFinpartition n) (j : Fin n), c.emb (c.index j) (c.invEmbedding j) = j
def OrderedFinpartition.equivSigma E1 #
{n : ℕ} → (c : OrderedFinpartition n) → (i : Fin c.length) × Fin (c.partSize i) ≃ Fin n
An ordered finpartition gives an equivalence between Fin n and the disjoint union of the
parts, each of them parameterized by Fin (c.partSize i).
theorem OrderedFinpartition.prod_sigma_eq_prod E1 #
∀ {n : ℕ} (c : OrderedFinpartition n) {α : Type u_5} [inst : CommMonoid α] (v : Fin n → α),
∏ m, ∏ r, v (c.emb m r) = ∏ i, v i
theorem OrderedFinpartition.sum_sigma_eq_sum E1 #
∀ {n : ℕ} (c : OrderedFinpartition n) {α : Type u_5} [inst : AddCommMonoid α] (v : Fin n → α),
∑ m, ∑ r, v (c.emb m r) = ∑ i, v i
theorem OrderedFinpartition.length_pos E1 #
∀ {n : ℕ} (c : OrderedFinpartition n), 0 < n → 0 < c.length
theorem OrderedFinpartition.neZero_length E1 #
∀ {n : ℕ} [NeZero n] (c : OrderedFinpartition n), NeZero c.length
theorem OrderedFinpartition.neZero_partSize E1 #
∀ {n : ℕ} (c : OrderedFinpartition n) (i : Fin c.length), NeZero (c.partSize i)
instance OrderedFinpartition.instUniqueOne E0 #
Unique (OrderedFinpartition 1)
theorem OrderedFinpartition.emb_zero E1 #
∀ {n : ℕ} (c : OrderedFinpartition n) [inst : NeZero n], c.emb (c.index 0) 0 = 0
theorem OrderedFinpartition.partSize_eq_one_of_range_emb_eq_singleton E1 #
∀ {n : ℕ} (c : OrderedFinpartition n) {i : Fin c.length} {j : Fin n}, Set.range (c.emb i) = {j} → c.partSize i = 1
theorem OrderedFinpartition.one_lt_partSize_index_zero E1 #
∀ {n : ℕ} (c : OrderedFinpartition (n + 1)), Set.range (c.emb 0) ≠ {0} → 1 < c.partSize (c.index 0)
If the left-most part is not {0}, then the part containing 0 has at least two elements:
either because it's the left-most part, and then it's not just 0 by assumption, or because it's
not the left-most part and then, by increasingness of maximal elements in parts, it contains
a positive element.
def OrderedFinpartition.extendLeft E1 #
{n : ℕ} → OrderedFinpartition n → OrderedFinpartition (n + 1)
Extend an ordered partition of n entries, by adding a new singleton part to the left.
theorem OrderedFinpartition.extendLeft_partSize E0 #
∀ {n : ℕ} (c : OrderedFinpartition n), c.extendLeft.partSize = Fin.cons 1 c.partSize
theorem OrderedFinpartition.extendLeft_length E0 #
∀ {n : ℕ} (c : OrderedFinpartition n), c.extendLeft.length = c.length + 1
theorem OrderedFinpartition.range_extendLeft_zero E0 #
∀ {n : ℕ} (c : OrderedFinpartition n), Set.range (c.extendLeft.emb 0) = {0}
def OrderedFinpartition.extendMiddle E1 #
{n : ℕ} → (c : OrderedFinpartition n) → Fin c.length → OrderedFinpartition (n + 1)
Extend an ordered partition of n entries, by adding to the i-th part a new point to the
left.
theorem OrderedFinpartition.extendMiddle_length E0 #
∀ {n : ℕ} (c : OrderedFinpartition n) (k : Fin c.length), (c.extendMiddle k).length = c.length
theorem OrderedFinpartition.extendMiddle_partSize E0 #
∀ {n : ℕ} (c : OrderedFinpartition n) (k : Fin c.length),
(c.extendMiddle k).partSize = Function.update c.partSize k (c.partSize k + 1)
theorem OrderedFinpartition.index_extendMiddle_zero E1 #
∀ {n : ℕ} (c : OrderedFinpartition n) (i : Fin c.length), (c.extendMiddle i).index 0 = i
theorem OrderedFinpartition.range_emb_extendMiddle_ne_singleton_zero E1 #
∀ {n : ℕ} (c : OrderedFinpartition n) (i j : Fin c.length), Set.range ((c.extendMiddle i).emb j) ≠ {0}
def OrderedFinpartition.extend E1 #
{n : ℕ} → (c : OrderedFinpartition n) → Option (Fin c.length) → OrderedFinpartition (n + 1)
Extend an ordered partition of n entries, by adding singleton to the left or appending it
to one of the existing part.
theorem OrderedFinpartition.extend_none E0 #
∀ {n : ℕ} (c : OrderedFinpartition n), c.extend none = c.extendLeft
theorem OrderedFinpartition.extend_some E0 #
∀ {n : ℕ} (c : OrderedFinpartition n) (i : Fin c.length), c.extend (some i) = c.extendMiddle i
def OrderedFinpartition.eraseLeft E1 #
{n : ℕ} → (c : OrderedFinpartition (n + 1)) → Set.range (c.emb 0) = {0} → OrderedFinpartition n
Given an ordered finpartition of n+1, with a leftmost atom equal to {0}, remove this
atom to form an ordered finpartition of n.
def OrderedFinpartition.eraseMiddle E1 #
{n : ℕ} → (c : OrderedFinpartition (n + 1)) → Set.range (c.emb 0) ≠ {0} → OrderedFinpartition n
Given an ordered finpartition of n+1, with a leftmost atom different from {0}, remove {0}
from the atom that contains it, to form an ordered finpartition of n.
def OrderedFinpartition.extendEquiv E1 #
(n : ℕ) → (c : OrderedFinpartition n) × Option (Fin c.length) ≃ OrderedFinpartition (n + 1)
Extending the ordered partitions of Fin n bijects with the ordered partitions
of Fin (n+1).
theorem OrderedFinpartition.extendEquiv_apply E0 #
∀ (n : ℕ) (c : (c : OrderedFinpartition n) × Option (Fin c.length)),
(OrderedFinpartition.extendEquiv n) c = c.fst.extend c.snd
def OrderedFinpartition.applyOrderedFinpartition E1 #
{𝕜 : Type u_1} →
[inst : NontriviallyNormedField 𝕜] →
{E : Type u_2} →
[inst_1 : NormedAddCommGroup E] →
[inst_2 : NormedSpace 𝕜 E] →
{F : Type u_3} →
[inst_3 : NormedAddCommGroup F] →
[inst_4 : NormedSpace 𝕜 F] →
{n : ℕ} →
(c : OrderedFinpartition n) →
((i : Fin c.length) → E [×c.partSize i]→L[𝕜] F) → (Fin n → E) → Fin c.length → F
Given a formal multilinear series p, an ordered partition c of n and the index i of a
block of c, we may define a function on Fin n → E by picking the variables in the i-th block
of n, and applying the corresponding coefficient of p to these variables. This function is
called p.applyOrderedFinpartition c v i for v : Fin n → E and i : Fin c.k.
theorem OrderedFinpartition.applyOrderedFinpartition_apply E0 #
∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {n : ℕ}
(c : OrderedFinpartition n) (p : (i : Fin c.length) → E [×c.partSize i]→L[𝕜] F) (v : Fin n → E),
c.applyOrderedFinpartition p v = fun m ↦ (p m) (v ∘ c.emb m)
theorem OrderedFinpartition.norm_applyOrderedFinpartition_le E1 #
∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {n : ℕ}
(c : OrderedFinpartition n) (p : (i : Fin c.length) → E [×c.partSize i]→L[𝕜] F) (v : Fin n → E) (m : Fin c.length),
‖c.applyOrderedFinpartition p v m‖ ≤ ‖p m‖ * ∏ i, ‖v (c.emb m i)‖
theorem OrderedFinpartition.applyOrderedFinpartition_update_right E2 #
∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {n : ℕ}
(c : OrderedFinpartition n) (p : (i : Fin c.length) → E [×c.partSize i]→L[𝕜] F) (j : Fin n) (v : Fin n → E) (z : E),
c.applyOrderedFinpartition p (Function.update v j z) =
Function.update (c.applyOrderedFinpartition p v) (c.index j)
((p (c.index j)) (Function.update (v ∘ c.emb (c.index j)) (c.invEmbedding j) z))
Technical lemma stating how c.applyOrderedFinpartition commutes with updating variables. This
will be the key point to show that functions constructed from applyOrderedFinpartition retain
multilinearity.
theorem OrderedFinpartition.applyOrderedFinpartition_update_left E1 #
∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {n : ℕ}
(c : OrderedFinpartition n) (p : (i : Fin c.length) → E [×c.partSize i]→L[𝕜] F) (m : Fin c.length) (v : Fin n → E)
(q : E [×c.partSize m]→L[𝕜] F),
c.applyOrderedFinpartition (Function.update p m q) v =
Function.update (c.applyOrderedFinpartition p v) m (q (v ∘ c.emb m))
def OrderedFinpartition.compAlongOrderedFinpartition E1 #
{𝕜 : Type u_1} →
[inst : NontriviallyNormedField 𝕜] →
{E : Type u_2} →
[inst_1 : NormedAddCommGroup E] →
[inst_2 : NormedSpace 𝕜 E] →
{F : Type u_3} →
[inst_3 : NormedAddCommGroup F] →
[inst_4 : NormedSpace 𝕜 F] →
{G : Type u_4} →
[inst_5 : NormedAddCommGroup G] →
[inst_6 : NormedSpace 𝕜 G] →
{n : ℕ} →
(c : OrderedFinpartition n) →
(F [×c.length]→L[𝕜] G) → ((i : Fin c.length) → E [×c.partSize i]→L[𝕜] F) → E [×n]→L[𝕜] G
Given an ordered finite partition c of n, a continuous multilinear map f in c.length
variables, and for each m a continuous multilinear map p m in c.partSize m variables,
one can form a continuous multilinear map in n
variables by applying p m to each part of the partition, and then
applying f to the resulting vector. It is called c.compAlongOrderedFinpartition f p.
theorem OrderedFinpartition.compAlongOrderFinpartition_apply E0 #
∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {G : Type u_4}
[inst_5 : NormedAddCommGroup G] [inst_6 : NormedSpace 𝕜 G] {n : ℕ} (c : OrderedFinpartition n)
(f : F [×c.length]→L[𝕜] G) (p : (i : Fin c.length) → E [×c.partSize i]→L[𝕜] F) (v : Fin n → E),
(c.compAlongOrderedFinpartition f p) v = f (c.applyOrderedFinpartition p v)
theorem OrderedFinpartition.norm_compAlongOrderedFinpartition_le E1 #
∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {G : Type u_4}
[inst_5 : NormedAddCommGroup G] [inst_6 : NormedSpace 𝕜 G] {n : ℕ} (c : OrderedFinpartition n)
(f : F [×c.length]→L[𝕜] G) (p : (i : Fin c.length) → E [×c.partSize i]→L[𝕜] F),
‖c.compAlongOrderedFinpartition f p‖ ≤ ‖f‖ * ∏ i, ‖p i‖
def OrderedFinpartition.compAlongOrderedFinpartitionₗ E1 #
{𝕜 : Type u_1} →
[inst : NontriviallyNormedField 𝕜] →
{E : Type u_2} →
[inst_1 : NormedAddCommGroup E] →
[inst_2 : NormedSpace 𝕜 E] →
{F : Type u_3} →
[inst_3 : NormedAddCommGroup F] →
[inst_4 : NormedSpace 𝕜 F] →
{G : Type u_4} →
[inst_5 : NormedAddCommGroup G] →
[inst_6 : NormedSpace 𝕜 G] →
{n : ℕ} →
(c : OrderedFinpartition n) →
(F [×c.length]→L[𝕜] G) →ₗ[𝕜]
(Π (i : Fin c.length), E [×c.partSize i]→L[𝕜] F) →ₘₗ[𝕜] E [×n]→L[𝕜] G
Bundled version of compAlongOrderedFinpartition, depending linearly on f
and multilinearly on p.
theorem OrderedFinpartition.compAlongOrderedFinpartitionₗ_apply_apply E0 #
∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {G : Type u_4}
[inst_5 : NormedAddCommGroup G] [inst_6 : NormedSpace 𝕜 G] {n : ℕ} (c : OrderedFinpartition n)
(f : F [×c.length]→L[𝕜] G) (p : (i : Fin c.length) → E [×c.partSize i]→L[𝕜] F),
(c.compAlongOrderedFinpartitionₗ f) p = c.compAlongOrderedFinpartition f p
def OrderedFinpartition.compAlongOrderedFinpartitionL E1 #
(𝕜 : Type u_1) →
[inst : NontriviallyNormedField 𝕜] →
(E : Type u_2) →
[inst_1 : NormedAddCommGroup E] →
[inst_2 : NormedSpace 𝕜 E] →
(F : Type u_3) →
[inst_3 : NormedAddCommGroup F] →
[inst_4 : NormedSpace 𝕜 F] →
(G : Type u_4) →
[inst_5 : NormedAddCommGroup G] →
[inst_6 : NormedSpace 𝕜 G] →
{n : ℕ} →
(c : OrderedFinpartition n) →
(F [×c.length]→L[𝕜] G) →L[𝕜] (E [×c.partSize i]→L[𝕜] F) [×c.length]→L[𝕜] E [×n]→L[𝕜] G
Bundled version of compAlongOrderedFinpartition, depending continuously linearly on f
and continuously multilinearly on p.
theorem OrderedFinpartition.compAlongOrderedFinpartitionL_apply E0 #
∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {G : Type u_4}
[inst_5 : NormedAddCommGroup G] [inst_6 : NormedSpace 𝕜 G] {n : ℕ} (c : OrderedFinpartition n)
(f : F [×c.length]→L[𝕜] G) (p : (i : Fin c.length) → E [×c.partSize i]→L[𝕜] F),
((OrderedFinpartition.compAlongOrderedFinpartitionL 𝕜 E F G c) f) p = c.compAlongOrderedFinpartition f p
theorem OrderedFinpartition.norm_compAlongOrderedFinpartitionL_le E1 #
∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {G : Type u_4}
[inst_5 : NormedAddCommGroup G] [inst_6 : NormedSpace 𝕜 G] {n : ℕ} (c : OrderedFinpartition n),
‖OrderedFinpartition.compAlongOrderedFinpartitionL 𝕜 E F G c‖ ≤ 1
theorem OrderedFinpartition.norm_compAlongOrderedFinpartitionL_apply_le E1 #
∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {G : Type u_4}
[inst_5 : NormedAddCommGroup G] [inst_6 : NormedSpace 𝕜 G] {n : ℕ} (c : OrderedFinpartition n)
(f : F [×c.length]→L[𝕜] G), ‖(OrderedFinpartition.compAlongOrderedFinpartitionL 𝕜 E F G c) f‖ ≤ ‖f‖
theorem OrderedFinpartition.norm_compAlongOrderedFinpartition_sub_compAlongOrderedFinpartition_le E1 #
∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {G : Type u_4}
[inst_5 : NormedAddCommGroup G] [inst_6 : NormedSpace 𝕜 G] {n : ℕ} (c : OrderedFinpartition n)
(f₁ f₂ : F [×c.length]→L[𝕜] G) (g₁ g₂ : (i : Fin c.length) → E [×c.partSize i]→L[𝕜] F),
‖c.compAlongOrderedFinpartition f₁ g₁ - c.compAlongOrderedFinpartition f₂ g₂‖ ≤
‖f₁‖ * ↑c.length * max ‖g₁‖ ‖g₂‖ ^ (c.length - 1) * ‖g₁ - g₂‖ + ‖f₁ - f₂‖ * ∏ i, ‖g₂ i‖
def FormalMultilinearSeries.compAlongOrderedFinpartition E1 #
{𝕜 : Type u_1} →
[inst : NontriviallyNormedField 𝕜] →
{E : Type u_2} →
[inst_1 : NormedAddCommGroup E] →
[inst_2 : NormedSpace 𝕜 E] →
{F : Type u_3} →
[inst_3 : NormedAddCommGroup F] →
[inst_4 : NormedSpace 𝕜 F] →
{G : Type u_4} →
[inst_5 : NormedAddCommGroup G] →
[inst_6 : NormedSpace 𝕜 G] →
{n : ℕ} →
FormalMultilinearSeries 𝕜 F G →
FormalMultilinearSeries 𝕜 E F → OrderedFinpartition n → E [×n]→L[𝕜] G
Given two formal multilinear series q and p and a composition c of n, one may
form a continuous multilinear map in n variables by applying the right coefficient of p to each
block of the composition, and then applying q c.length to the resulting vector. It is
called q.compAlongComposition p c.
theorem FormalMultilinearSeries.compAlongOrderedFinpartition_apply E0 #
∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {G : Type u_4}
[inst_5 : NormedAddCommGroup G] [inst_6 : NormedSpace 𝕜 G] {n : ℕ} (q : FormalMultilinearSeries 𝕜 F G)
(p : FormalMultilinearSeries 𝕜 E F) (c : OrderedFinpartition n) (v : Fin n → E),
(q.compAlongOrderedFinpartition p c) v = (q c.length) (c.applyOrderedFinpartition (fun m ↦ p (c.partSize m)) v)
def FormalMultilinearSeries.taylorComp E1 #
{𝕜 : Type u_1} →
[inst : NontriviallyNormedField 𝕜] →
{E : Type u_2} →
[inst_1 : NormedAddCommGroup E] →
[inst_2 : NormedSpace 𝕜 E] →
{F : Type u_3} →
[inst_3 : NormedAddCommGroup F] →
[inst_4 : NormedSpace 𝕜 F] →
{G : Type u_4} →
[inst_5 : NormedAddCommGroup G] →
[inst_6 : NormedSpace 𝕜 G] →
FormalMultilinearSeries 𝕜 F G → FormalMultilinearSeries 𝕜 E F → FormalMultilinearSeries 𝕜 E G
Taylor formal composition of two formal multilinear series. The n-th coefficient in the
composition is defined to be the sum of q.compAlongOrderedFinpartition p c over all
ordered partitions of n.
In other words, this term (as a multilinear function applied to v₀, ..., vₙ₋₁) is
∑'_{k} ∑'_{I₀ ⊔ ... ⊔ Iₖ₋₁ = {0, ..., n-1}} qₖ (p_{i₀} (...), ..., p_{iₖ₋₁} (...)), where
iₘ is the size of Iₘ and one puts all variables of Iₘ as arguments to p_{iₘ}, in
increasing order. The sets I₀, ..., Iₖ₋₁ are ordered so that max I₀ < max I₁ < ... < max Iₖ₋₁.
This definition is chosen so that the n-th derivative of g ∘ f is the Taylor composition of
the iterated derivatives of g and of f.
Not to be confused with another notion of composition for formal multilinear series, called just
FormalMultilinearSeries.comp, appearing in the composition of analytic functions.
theorem FormalMultilinearSeries.taylorComp_sub_taylorComp_isBigO E2 #
∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {G : Type u_4}
[inst_5 : NormedAddCommGroup G] [inst_6 : NormedSpace 𝕜 G] {α : Type u_5} {H : Type u_6}
[inst_7 : NormedAddCommGroup H] {l : Filter α} {p₁ p₂ : α → FormalMultilinearSeries 𝕜 F G}
{q₁ q₂ : α → FormalMultilinearSeries 𝕜 E F} {f : α → H} {n : ℕ},
(∀ k ≤ n, Filter.IsBoundedUnder (fun x1 x2 ↦ x1 ≤ x2) l fun x ↦ ‖p₁ x k‖) →
(∀ k ≤ n, (fun a ↦ p₁ a k - p₂ a k) =O[l] f) →
(∀ k ≤ n, Filter.IsBoundedUnder (fun x1 x2 ↦ x1 ≤ x2) l fun x ↦ ‖q₁ x k‖) →
(∀ k ≤ n, Filter.IsBoundedUnder (fun x1 x2 ↦ x1 ≤ x2) l fun x ↦ ‖q₂ x k‖) →
(∀ k ≤ n, (fun a ↦ q₁ a k - q₂ a k) =O[l] f) →
(fun a ↦ (p₁ a).taylorComp (q₁ a) n - (p₂ a).taylorComp (q₂ a) n) =O[l] f
An upper estimate (in terms of Asymptotics.IsBigO)
on the difference between two compositions of Taylor series.
Let p₁, p₂, q₁, q₂ be four families of formal multilinear series
depending on a parameter a.
Suppose that the norms of (p₁ · k), (q₁ · k), and (q₂ · k) are bounded along a filter l
for all k ≤ n.
Also, suppose that $p₁(a, k) - p₂(a, k) = O(f(a))$, $q₁(a, k) - q₂(a, k) = O(f(a))$
along l for all k ≤ n.
Then the difference between nth terms of (p₁ a).taylorComp (q₁ a) and (p₂ a).taylorComp (q₂ a)
is O(f(a)) too.
This lemma can be used, e.g., to show that the composition of two $C^{k+α}$ functions is a $C^{k+α}$ function.
theorem FormalMultilinearSeries.taylorComp_sub_taylorComp_isLittleO E1 #
∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {G : Type u_4}
[inst_5 : NormedAddCommGroup G] [inst_6 : NormedSpace 𝕜 G] {α : Type u_5} {H : Type u_6}
[inst_7 : NormedAddCommGroup H] {l : Filter α} {p₁ p₂ : α → FormalMultilinearSeries 𝕜 F G}
{q₁ q₂ : α → FormalMultilinearSeries 𝕜 E F} {f : α → H} {n : ℕ},
(∀ k ≤ n, Filter.IsBoundedUnder (fun x1 x2 ↦ x1 ≤ x2) l fun x ↦ ‖p₁ x k‖) →
(∀ k ≤ n, (fun a ↦ p₁ a k - p₂ a k) =o[l] f) →
(∀ k ≤ n, Filter.IsBoundedUnder (fun x1 x2 ↦ x1 ≤ x2) l fun x ↦ ‖q₁ x k‖) →
(∀ k ≤ n, Filter.IsBoundedUnder (fun x1 x2 ↦ x1 ≤ x2) l fun x ↦ ‖q₂ x k‖) →
(∀ k ≤ n, (fun a ↦ q₁ a k - q₂ a k) =o[l] f) →
(fun a ↦ (p₁ a).taylorComp (q₁ a) n - (p₂ a).taylorComp (q₂ a) n) =o[l] f
An upper estimate (in terms of Asymptotics.IsLittleO)
on the difference between two compositions of Taylor series.
Let p₁, p₂, q₁, q₂ be four families of formal multilinear series
depending on a parameter a.
Suppose that the norms of (p₁ · k), (q₁ · k), and (q₂ · k) are bounded along a filter l
for all k ≤ n.
Also, suppose that $p₁(a, k) - p₂(a, k) = o(f(a))$, $q₁(a, k) - q₂(a, k) = o(f(a))$
along l for all k ≤ n.
Then the difference between nth terms of (p₁ a).taylorComp (q₁ a) and (p₂ a).taylorComp (q₂ a)
is o(f(a)) too.
theorem analyticOn_taylorComp E1 #
∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {G : Type u_4}
[inst_5 : NormedAddCommGroup G] [inst_6 : NormedSpace 𝕜 G] {s : Set E} {t : Set F}
{q : F → FormalMultilinearSeries 𝕜 F G} {p : E → FormalMultilinearSeries 𝕜 E F},
(∀ (n : ℕ), AnalyticOn 𝕜 (fun x ↦ q x n) t) →
(∀ (n : ℕ), AnalyticOn 𝕜 (fun x ↦ p x n) s) →
∀ {f : E → F},
AnalyticOn 𝕜 f s → Set.MapsTo f s t → ∀ (n : ℕ), AnalyticOn 𝕜 (fun x ↦ (q (f x)).taylorComp (p x) n) s
theorem HasFTaylorSeriesUpToOn.comp E1 #
∀ {𝕜 : Type u_1} [inst : NontriviallyNormedField 𝕜] {E : Type u_2} [inst_1 : NormedAddCommGroup E]
[inst_2 : NormedSpace 𝕜 E] {F : Type u_3} [inst_3 : NormedAddCommGroup F] [inst_4 : NormedSpace 𝕜 F] {G : Type u_4}
[inst_5 : NormedAddCommGroup G] [inst_6 : NormedSpace 𝕜 G] {s : Set E} {t : Set F}
{q : F → FormalMultilinearSeries 𝕜 F G} {p : E → FormalMultilinearSeries 𝕜 E F} {n : WithTop ℕ∞} {g : F → G}
{f : E → F},
HasFTaylorSeriesUpToOn n g q t →
HasFTaylorSeriesUpToOn n f p s →
Set.MapsTo f s t → HasFTaylorSeriesUpToOn n (g ∘ f) (fun x ↦ (q (f x)).taylorComp (p x)) s
Faa di Bruno formula: If two functions g and f have Taylor series up to n given by
q and p, then g ∘ f also has a Taylor series, given by q.taylorComp p.