Documentation

Mathlib.Analysis.SpecialFunctions.Sigmoid

Sigmoid function #

In this file we define the sigmoid function x : ℝ ↦ (1 + exp (-x))⁻¹ and prove some of its analytic properties.

We then show that the sigmoid function can be seen as an order embedding from to I = [0, 1] and that this embedding is both a topological embedding and a measurable embedding. We also prove that the composition of this embedding with the measurable embedding from a standard Borel space α to is a measurable embedding from α to I.

Main definitions and results #

Sigmoid as a function from to #

Sigmoid as a function from to I #

Sigmoid as an OrderEmbedding from to I #

Tags #

sigmoid, embedding, measurable embedding, topological embedding

noncomputable def Real.sigmoid (x : ) :

The sigmoid function from to .

Instances For
    theorem Real.sigmoid_lt {a b : } :
    a < ba.sigmoid < b.sigmoid
    @[simp]
    theorem Real.sigmoid_inj {a b : } :
    a.sigmoid = b.sigmoid a = b
    theorem AnalyticAt.sigmoid {E : Type u_1} [NormedAddCommGroup E] [NormedSpace E] {f : E} {x : E} (fa : AnalyticAt f x) :
    theorem AnalyticAt.sigmoid' {E : Type u_1} [NormedAddCommGroup E] [NormedSpace E] {f : E} {x : E} (fa : AnalyticAt f x) :
    AnalyticAt (fun (z : E) => (f z).sigmoid) x
    theorem AnalyticOn.sigmoid {E : Type u_1} [NormedAddCommGroup E] [NormedSpace E] {f : E} {s : Set E} (fs : AnalyticOn f s) :
    theorem AnalyticWithinAt.sigmoid {E : Type u_1} [NormedAddCommGroup E] [NormedSpace E] {f : E} {s : Set E} {x : E} (fa : AnalyticWithinAt f s x) :
    noncomputable def unitInterval.sigmoid :

    The sigmoid function from to I.

    Instances For
      @[simp]
      theorem unitInterval.sigmoid_inj {a b : } :
      sigmoid a = sigmoid b a = b

      The Sigmoid function as an OrderEmbedding from to I.

      Instances For