mathlib documentation

analysis.​calculus.​tangent_cone

analysis.​calculus.​tangent_cone

Tangent cone

In this file, we define two predicates unique_diff_within_at ๐•œ s x and unique_diff_on ๐•œ s ensuring that, if a function has two derivatives, then they have to coincide. As a direct definition of this fact (quantifying on all target types and all functions) would depend on universes, we use a more intrinsic definition: if all the possible tangent directions to the set s at the point x span a dense subset of the whole subset, it is easy to check that the derivative has to be unique.

Therefore, we introduce the set of all tangent directions, named tangent_cone_at, and express unique_diff_within_at and unique_diff_on in terms of it. One should however think of this definition as an implementation detail: the only reason to introduce the predicates unique_diff_within_at and unique_diff_on is to ensure the uniqueness of the derivative. This is why their names reflect their uses, and not how they are defined.

Implementation details

Note that this file is imported by fderiv.lean. Hence, derivatives are not defined yet. The property of uniqueness of the derivative is therefore proved in fderiv.lean, but based on the properties of the tangent cone we prove here.

def tangent_cone_at (๐•œ : Type u_1) [nondiscrete_normed_field ๐•œ] {E : Type u_2} [normed_group E] [normed_space ๐•œ E] :
set E โ†’ E โ†’ set E

The set of all tangent directions to the set s at the point x.

Equations
def unique_diff_within_at (๐•œ : Type u_1) [nondiscrete_normed_field ๐•œ] {E : Type u_2} [normed_group E] [normed_space ๐•œ E] :
set E โ†’ E โ†’ Prop

A property ensuring that the tangent cone to s at x spans a dense subset of the whole space. The main role of this property is to ensure that the differential within s at x is unique, hence this name. The uniqueness it asserts is proved in unique_diff_within_at.eq in fderiv.lean. To avoid pathologies in dimension 0, we also require that x belongs to the closure of s (which is automatic when E is not 0-dimensional).

Equations
def unique_diff_on (๐•œ : Type u_1) [nondiscrete_normed_field ๐•œ] {E : Type u_2} [normed_group E] [normed_space ๐•œ E] :
set E โ†’ Prop

A property ensuring that the tangent cone to s at any of its points spans a dense subset of the whole space. The main role of this property is to ensure that the differential along s is unique, hence this name. The uniqueness it asserts is proved in unique_diff_on.eq in fderiv.lean.

Equations
theorem tangent_cone_univ {๐•œ : Type u_1} [nondiscrete_normed_field ๐•œ] {E : Type u_2} [normed_group E] [normed_space ๐•œ E] {x : E} :

theorem tangent_cone_mono {๐•œ : Type u_1} [nondiscrete_normed_field ๐•œ] {E : Type u_2} [normed_group E] [normed_space ๐•œ E] {x : E} {s t : set E} :
s โŠ† t โ†’ tangent_cone_at ๐•œ s x โŠ† tangent_cone_at ๐•œ t x

theorem tangent_cone_at.​lim_zero {๐•œ : Type u_1} [nondiscrete_normed_field ๐•œ] {E : Type u_2} [normed_group E] [normed_space ๐•œ E] {y : E} {ฮฑ : Type u_3} (l : filter ฮฑ) {c : ฮฑ โ†’ ๐•œ} {d : ฮฑ โ†’ E} :
filter.tendsto (ฮป (n : ฮฑ), โˆฅc nโˆฅ) l filter.at_top โ†’ filter.tendsto (ฮป (n : ฮฑ), c n โ€ข d n) l (nhds y) โ†’ filter.tendsto d l (nhds 0)

Auxiliary lemma ensuring that, under the assumptions defining the tangent cone, the sequence d tends to 0 at infinity.

theorem tangent_cone_mono_nhds {๐•œ : Type u_1} [nondiscrete_normed_field ๐•œ] {E : Type u_2} [normed_group E] [normed_space ๐•œ E] {x : E} {s t : set E} :
nhds_within x s โ‰ค nhds_within x t โ†’ tangent_cone_at ๐•œ s x โŠ† tangent_cone_at ๐•œ t x

theorem tangent_cone_congr {๐•œ : Type u_1} [nondiscrete_normed_field ๐•œ] {E : Type u_2} [normed_group E] [normed_space ๐•œ E] {x : E} {s t : set E} :
nhds_within x s = nhds_within x t โ†’ tangent_cone_at ๐•œ s x = tangent_cone_at ๐•œ t x

Tangent cone of s at x depends only on ๐“[s] x.

theorem tangent_cone_inter_nhds {๐•œ : Type u_1} [nondiscrete_normed_field ๐•œ] {E : Type u_2} [normed_group E] [normed_space ๐•œ E] {x : E} {s t : set E} :
t โˆˆ nhds x โ†’ tangent_cone_at ๐•œ (s โˆฉ t) x = tangent_cone_at ๐•œ s x

Intersecting with a neighborhood of the point does not change the tangent cone.

theorem subset_tangent_cone_prod_left {๐•œ : Type u_1} [nondiscrete_normed_field ๐•œ] {E : Type u_2} [normed_group E] [normed_space ๐•œ E] {F : Type u_3} [normed_group F] [normed_space ๐•œ F] {x : E} {s : set E} {t : set F} {y : F} :
y โˆˆ closure t โ†’ โ‡‘(linear_map.inl ๐•œ E F) '' tangent_cone_at ๐•œ s x โŠ† tangent_cone_at ๐•œ (s.prod t) (x, y)

The tangent cone of a product contains the tangent cone of its left factor.

theorem subset_tangent_cone_prod_right {๐•œ : Type u_1} [nondiscrete_normed_field ๐•œ] {E : Type u_2} [normed_group E] [normed_space ๐•œ E] {F : Type u_3} [normed_group F] [normed_space ๐•œ F] {x : E} {s : set E} {t : set F} {y : F} :
x โˆˆ closure s โ†’ โ‡‘(linear_map.inr ๐•œ E F) '' tangent_cone_at ๐•œ t y โŠ† tangent_cone_at ๐•œ (s.prod t) (x, y)

The tangent cone of a product contains the tangent cone of its right factor.

theorem mem_tangent_cone_of_segment_subset {G : Type u_4} [normed_group G] [normed_space โ„ G] {s : set G} {x y : G} :

If a subset of a real vector space contains a segment, then the direction of this segment belongs to the tangent cone at its endpoints.

Properties of unique_diff_within_at and unique_diff_on

This section is devoted to properties of the predicates unique_diff_within_at and unique_diff_on.

theorem unique_diff_on.​unique_diff_within_at {๐•œ : Type u_1} [nondiscrete_normed_field ๐•œ] {E : Type u_2} [normed_group E] [normed_space ๐•œ E] {s : set E} {x : E} :
unique_diff_on ๐•œ s โ†’ x โˆˆ s โ†’ unique_diff_within_at ๐•œ s x

theorem unique_diff_within_at_univ {๐•œ : Type u_1} [nondiscrete_normed_field ๐•œ] {E : Type u_2} [normed_group E] [normed_space ๐•œ E] {x : E} :

theorem unique_diff_on_univ {๐•œ : Type u_1} [nondiscrete_normed_field ๐•œ] {E : Type u_2} [normed_group E] [normed_space ๐•œ E] :

theorem unique_diff_on_empty {๐•œ : Type u_1} [nondiscrete_normed_field ๐•œ] {E : Type u_2} [normed_group E] [normed_space ๐•œ E] :

theorem unique_diff_within_at.​mono_nhds {๐•œ : Type u_1} [nondiscrete_normed_field ๐•œ] {E : Type u_2} [normed_group E] [normed_space ๐•œ E] {x : E} {s t : set E} :
unique_diff_within_at ๐•œ s x โ†’ nhds_within x s โ‰ค nhds_within x t โ†’ unique_diff_within_at ๐•œ t x

theorem unique_diff_within_at.​mono {๐•œ : Type u_1} [nondiscrete_normed_field ๐•œ] {E : Type u_2} [normed_group E] [normed_space ๐•œ E] {x : E} {s t : set E} :
unique_diff_within_at ๐•œ s x โ†’ s โŠ† t โ†’ unique_diff_within_at ๐•œ t x

theorem unique_diff_within_at_congr {๐•œ : Type u_1} [nondiscrete_normed_field ๐•œ] {E : Type u_2} [normed_group E] [normed_space ๐•œ E] {x : E} {s t : set E} :
nhds_within x s = nhds_within x t โ†’ (unique_diff_within_at ๐•œ s x โ†” unique_diff_within_at ๐•œ t x)

theorem unique_diff_within_at_inter {๐•œ : Type u_1} [nondiscrete_normed_field ๐•œ] {E : Type u_2} [normed_group E] [normed_space ๐•œ E] {x : E} {s t : set E} :
t โˆˆ nhds x โ†’ (unique_diff_within_at ๐•œ (s โˆฉ t) x โ†” unique_diff_within_at ๐•œ s x)

theorem unique_diff_within_at.​inter {๐•œ : Type u_1} [nondiscrete_normed_field ๐•œ] {E : Type u_2} [normed_group E] [normed_space ๐•œ E] {x : E} {s t : set E} :
unique_diff_within_at ๐•œ s x โ†’ t โˆˆ nhds x โ†’ unique_diff_within_at ๐•œ (s โˆฉ t) x

theorem unique_diff_within_at_inter' {๐•œ : Type u_1} [nondiscrete_normed_field ๐•œ] {E : Type u_2} [normed_group E] [normed_space ๐•œ E] {x : E} {s t : set E} :
t โˆˆ nhds_within x s โ†’ (unique_diff_within_at ๐•œ (s โˆฉ t) x โ†” unique_diff_within_at ๐•œ s x)

theorem unique_diff_within_at.​inter' {๐•œ : Type u_1} [nondiscrete_normed_field ๐•œ] {E : Type u_2} [normed_group E] [normed_space ๐•œ E] {x : E} {s t : set E} :
unique_diff_within_at ๐•œ s x โ†’ t โˆˆ nhds_within x s โ†’ unique_diff_within_at ๐•œ (s โˆฉ t) x

theorem is_open.​unique_diff_within_at {๐•œ : Type u_1} [nondiscrete_normed_field ๐•œ] {E : Type u_2} [normed_group E] [normed_space ๐•œ E] {x : E} {s : set E} :
is_open s โ†’ x โˆˆ s โ†’ unique_diff_within_at ๐•œ s x

theorem unique_diff_on.​inter {๐•œ : Type u_1} [nondiscrete_normed_field ๐•œ] {E : Type u_2} [normed_group E] [normed_space ๐•œ E] {s t : set E} :
unique_diff_on ๐•œ s โ†’ is_open t โ†’ unique_diff_on ๐•œ (s โˆฉ t)

theorem is_open.​unique_diff_on {๐•œ : Type u_1} [nondiscrete_normed_field ๐•œ] {E : Type u_2} [normed_group E] [normed_space ๐•œ E] {s : set E} :
is_open s โ†’ unique_diff_on ๐•œ s

theorem unique_diff_within_at.​prod {๐•œ : Type u_1} [nondiscrete_normed_field ๐•œ] {E : Type u_2} [normed_group E] [normed_space ๐•œ E] {F : Type u_3} [normed_group F] [normed_space ๐•œ F] {x : E} {s : set E} {t : set F} {y : F} :
unique_diff_within_at ๐•œ s x โ†’ unique_diff_within_at ๐•œ t y โ†’ unique_diff_within_at ๐•œ (s.prod t) (x, y)

The product of two sets of unique differentiability at points x and y has unique differentiability at (x, y).

theorem unique_diff_on.​prod {๐•œ : Type u_1} [nondiscrete_normed_field ๐•œ] {E : Type u_2} [normed_group E] [normed_space ๐•œ E] {F : Type u_3} [normed_group F] [normed_space ๐•œ F] {s : set E} {t : set F} :
unique_diff_on ๐•œ s โ†’ unique_diff_on ๐•œ t โ†’ unique_diff_on ๐•œ (s.prod t)

The product of two sets of unique differentiability is a set of unique differentiability.

theorem unique_diff_on_convex {G : Type u_4} [normed_group G] [normed_space โ„ G] {s : set G} :

In a real vector space, a convex set with nonempty interior is a set of unique differentiability.

theorem unique_diff_on_Icc {a b : โ„} :
a < b โ†’ unique_diff_on โ„ (set.Icc a b)

The real interval [0, 1] is a set of unique differentiability.