# mathlibdocumentation

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) {E : Type u_2} [normed_group E] [ E] (s : set E) (x : 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) {E : Type u_2} [normed_group E] [ E] (s : set E) (x : 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) {E : Type u_2} [normed_group E] [ E] (s : 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
• = ∀ (x : E), x s
theorem tangent_cone_univ {𝕜 : Type u_1} {E : Type u_2} [normed_group E] [ E] {x : E} :

theorem tangent_cone_mono {𝕜 : Type u_1} {E : Type u_2} [normed_group E] [ E] {x : E} {s t : set E} (h : s t) :
x x

theorem tangent_cone_at.lim_zero {𝕜 : Type u_1} {E : Type u_2} [normed_group E] [ E] {y : E} {α : Type u_3} (l : filter α) {c : α → 𝕜} {d : α → E} (hc : filter.tendsto (λ (n : α), c n) l filter.at_top) (hd : filter.tendsto (λ (n : α), c n d n) l (𝓝 y)) :
(𝓝 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} {E : Type u_2} [normed_group E] [ E] {x : E} {s t : set E} (h : 𝓝[s] x 𝓝[t] x) :
x x

theorem tangent_cone_congr {𝕜 : Type u_1} {E : Type u_2} [normed_group E] [ E] {x : E} {s t : set E} (h : 𝓝[s] x = 𝓝[t] x) :
x = x

Tangent cone of s at x depends only on 𝓝[s] x.

theorem tangent_cone_inter_nhds {𝕜 : Type u_1} {E : Type u_2} [normed_group E] [ E] {x : E} {s t : set E} (ht : t 𝓝 x) :
(s t) x = x

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

theorem subset_tangent_cone_prod_left {𝕜 : Type u_1} {E : Type u_2} [normed_group E] [ E] {F : Type u_3} [normed_group F] [ F] {x : E} {s : set E} {t : set F} {y : F} (ht : y ) :
E F) '' x (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} {E : Type u_2} [normed_group E] [ E] {F : Type u_3} [normed_group F] [ F] {x : E} {s : set E} {t : set F} {y : F} (hs : x ) :
E F) '' y (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] [ G] {s : set G} {x y : G} (h : y s) :
y - x x

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} {E : Type u_2} [normed_group E] [ E] {s : set E} {x : E} (hs : s) (h : x s) :

theorem unique_diff_within_at_univ {𝕜 : Type u_1} {E : Type u_2} [normed_group E] [ E] {x : E} :

theorem unique_diff_on_univ {𝕜 : Type u_1} {E : Type u_2} [normed_group E] [ E] :

theorem unique_diff_on_empty {𝕜 : Type u_1} {E : Type u_2} [normed_group E] [ E] :

theorem unique_diff_within_at.mono_nhds {𝕜 : Type u_1} {E : Type u_2} [normed_group E] [ E] {x : E} {s t : set E} (h : x) (st : 𝓝[s] x 𝓝[t] x) :

theorem unique_diff_within_at.mono {𝕜 : Type u_1} {E : Type u_2} [normed_group E] [ E] {x : E} {s t : set E} (h : x) (st : s t) :

theorem unique_diff_within_at_congr {𝕜 : Type u_1} {E : Type u_2} [normed_group E] [ E] {x : E} {s t : set E} (st : 𝓝[s] x = 𝓝[t] x) :

theorem unique_diff_within_at_inter {𝕜 : Type u_1} {E : Type u_2} [normed_group E] [ E] {x : E} {s t : set E} (ht : t 𝓝 x) :
(s t) x

theorem unique_diff_within_at.inter {𝕜 : Type u_1} {E : Type u_2} [normed_group E] [ E] {x : E} {s t : set E} (hs : x) (ht : t 𝓝 x) :
(s t) x

theorem unique_diff_within_at_inter' {𝕜 : Type u_1} {E : Type u_2} [normed_group E] [ E] {x : E} {s t : set E} (ht : t 𝓝[s] x) :
(s t) x

theorem unique_diff_within_at.inter' {𝕜 : Type u_1} {E : Type u_2} [normed_group E] [ E] {x : E} {s t : set E} (hs : x) (ht : t 𝓝[s] x) :
(s t) x

theorem unique_diff_within_at_of_mem_nhds {𝕜 : Type u_1} {E : Type u_2} [normed_group E] [ E] {x : E} {s : set E} (h : s 𝓝 x) :

theorem is_open.unique_diff_within_at {𝕜 : Type u_1} {E : Type u_2} [normed_group E] [ E] {x : E} {s : set E} (hs : is_open s) (xs : x s) :

theorem unique_diff_on.inter {𝕜 : Type u_1} {E : Type u_2} [normed_group E] [ E] {s t : set E} (hs : s) (ht : is_open t) :
(s t)

theorem is_open.unique_diff_on {𝕜 : Type u_1} {E : Type u_2} [normed_group E] [ E] {s : set E} (hs : is_open s) :

theorem unique_diff_within_at.prod {𝕜 : Type u_1} {E : Type u_2} [normed_group E] [ E] {F : Type u_3} [normed_group F] [ F] {x : E} {s : set E} {t : set F} {y : F} (hs : x) (ht : y) :
(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} {E : Type u_2} [normed_group E] [ E] {F : Type u_3} [normed_group F] [ F] {s : set E} {t : set F} (hs : s) (ht : t) :
(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] [ G] {s : set G} (conv : convex s) (hs : (interior s).nonempty) :

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

theorem unique_diff_on_Ici (a : ) :

theorem unique_diff_on_Iic (a : ) :

theorem unique_diff_on_Ioi (a : ) :

theorem unique_diff_on_Iio (a : ) :

theorem unique_diff_on_Icc {a b : } (hab : a < b) :
(set.Icc a b)

theorem unique_diff_on_Ico (a b : ) :
(set.Ico a b)

theorem unique_diff_on_Ioc (a b : ) :
(set.Ioc a b)

theorem unique_diff_on_Ioo (a b : ) :
(set.Ioo a b)

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