Documentation

LeanPool.ViscositySolutionTheory.AleksandrovDifferentiability.Analysis.OneDimConvex

Ported for Lean Pool: imports relocated and code adapted to Lean/Mathlib v4.34.0.

One-dimensional convex analysis #

This file gives project-local names for the one-dimensional slope and one-sided derivative facts used at the start of the convex Aleksandrov proof route.

noncomputable def AleksandrovDifferentiability.rightDeriv (f : ℝ → ℝ) (x : ℝ) :

The right derivative of a real function at x, represented by Mathlib's derivative within the open ray to the right of x.

Equations
Instances For
    noncomputable def AleksandrovDifferentiability.leftDeriv (f : ℝ → ℝ) (x : ℝ) :

    The left derivative of a real function at x, represented by Mathlib's derivative within the open ray to the left of x.

    Equations
    Instances For

      The set where the project-local right derivative is differentiable within the interior of the one-dimensional domain.

      Equations
      Instances For

        The set where the project-local left derivative is differentiable within the interior of the one-dimensional domain.

        Equations
        Instances For

          The set where both project-local one-sided derivative functions are differentiable within the interior of the one-dimensional domain.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For

            The local estimate saying that the affine remainder is asymptotically the average of the endpoint right-derivative increment times the displacement.

            For convex functions this is the one-dimensional averaging ingredient that remains between the currently formalized derivative-good information and the final scalar quadratic Taylor estimate.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For

              A convex function has the project-local right derivative at interior points.

              A convex function has the project-local left derivative at interior points.

              Right derivatives of a one-dimensional convex function are monotone on the interior.

              Left derivatives of a one-dimensional convex function are monotone on the interior.

              The project-local right derivative of a one-dimensional convex function is differentiable almost everywhere on the interior, in implication form.

              The project-local left derivative of a one-dimensional convex function is differentiable almost everywhere on the interior, in implication form.

              Both project-local one-sided derivative functions are differentiable within the interior almost everywhere, in implication form.

              The exceptional set inside the interior where the project-local right derivative is not differentiable has zero Lebesgue measure.

              The exceptional set inside the interior where the project-local left derivative is not differentiable has zero Lebesgue measure.

              The exceptional set inside the interior where one of the one-sided derivative functions is not differentiable has zero Lebesgue measure.

              Short-name alias for the null exceptional set where one of the one-sided derivative functions is not differentiable.

              The left derivative is bounded by the right derivative at an interior point of a convex function.

              theorem AleksandrovDifferentiability.ConvexOn.rightDeriv_le_slope {S : Set ℝ} {f : ℝ → ℝ} {x y : ℝ} (hf : ConvexOn ℝ S f) (hx : x ∈ interior S) (hy : y ∈ S) (hxy : x < y) :
              rightDeriv f x ≤ slope f x y

              At an interior point, the right derivative is bounded above by every forward secant slope.

              theorem AleksandrovDifferentiability.ConvexOn.slope_le_leftDeriv {S : Set ℝ} {f : ℝ → ℝ} {x y : ℝ} (hf : ConvexOn ℝ S f) (hx : x ∈ S) (hy : y ∈ interior S) (hxy : x < y) :
              slope f x y ≤ leftDeriv f y

              At an interior point, every backward secant slope is bounded above by the left derivative.

              The project-local right derivative of a one-dimensional convex function is right-continuous at interior points.

              The left limit of the project-local right derivative of a one-dimensional convex function is the project-local left derivative at interior points.

              Convex secant control by the variation of the project-local right derivative.

              This is a pointwise estimate for the affine remainder with slope rightDeriv f x. It is weaker than the final scalar quadratic Taylor estimate, but it is the basic convex inequality used to turn differentiability of rightDeriv f into local quadratic control of the original function.

              If the right derivative of a one-dimensional convex function is continuous within the interior at x, then the usual convex gap between the left and right derivatives closes from the opposite direction.

              Continuity within the interior of the right derivative identifies the two one-sided derivatives of a one-dimensional convex function.

              At an interior point of a one-dimensional convex function, continuity within the interior of the right derivative upgrades the two one-sided derivative statements to an ordinary derivative.

              Points where the project-local one-sided derivatives are differentiable within the interior are ordinary differentiability points of the original convex function.

              Set-level differentiability consequence of belonging to the one-sided derivative-good set.

              Set-level version of the differentiability consequence for the one-sided derivative-good set.

              At a derivative-good interior point of a one-dimensional convex function, subtracting the tangent line with slope rightDeriv f x leaves a locally quadratically bounded remainder.

              This is a Big-O type consequence of differentiability of the one-sided derivative. The final scalar Aleksandrov estimate still needs the sharper averaged statement with the coefficient (1 / 2) * q.

              theorem AleksandrovDifferentiability.SubgradientOn.le_rightDeriv_of_convex {S : Set ℝ} {f : ℝ → ℝ} {x p : ℝ} (hp : SubgradientOn S f x p) (hf : ConvexOn ℝ S f) (hx : x ∈ interior S) :

              A one-dimensional subgradient at an interior point is bounded above by the right derivative.

              theorem AleksandrovDifferentiability.SubgradientOn.leftDeriv_le_of_convex {S : Set ℝ} {f : ℝ → ℝ} {x p : ℝ} (hp : SubgradientOn S f x p) (hf : ConvexOn ℝ S f) (hx : x ∈ interior S) :

              The left derivative is bounded above by any one-dimensional subgradient at an interior point.

              Conversely, a slope lying between the left and right derivatives of a one-dimensional convex function at an interior point is a subgradient.

              At an interior point of a one-dimensional convex function, being a subgradient is equivalent to lying between the left and right derivatives.

              theorem AleksandrovDifferentiability.ConvexOn.subgradientOn_of_hasDerivAt {S : Set ℝ} {f : ℝ → ℝ} {x p : ℝ} (hf : ConvexOn ℝ S f) (hx : x ∈ interior S) (hd : HasDerivAt f p x) :

              At a differentiability point of a one-dimensional convex function, the ordinary derivative is the subgradient slope.

              theorem AleksandrovDifferentiability.HasUpperContactWithSlopeOn.slope_le_of_lt {S : Set ℝ} {f : ℝ → ℝ} {x y p a : ℝ} (h : HasUpperContactWithSlopeOn S f x p a) (hy : y ∈ S) (hxy : x < y) :
              slope f x y ≤ p + a / 2 * (y - x)

              A one-dimensional upper quadratic contact gives an upper bound on forward secant slopes.

              theorem AleksandrovDifferentiability.HasUpperContactWithSlopeOn.le_slope_of_lt {S : Set ℝ} {f : ℝ → ℝ} {x y p a : ℝ} (h : HasUpperContactWithSlopeOn S f x p a) (hy : y ∈ S) (hyx : y < x) :
              p + a / 2 * (y - x) ≤ slope f x y

              A one-dimensional upper quadratic contact gives a lower bound on backward secant slopes.

              At an interior point of a convex one-dimensional function, an upper quadratic contact bounds the right derivative above by the contact slope.

              At an interior point of a convex one-dimensional function, an upper quadratic contact bounds the contact slope above by the left derivative.

              A convex one-dimensional function with an upper quadratic contact at an interior point has matching one-sided derivatives there, equal to the contact slope.

              For a convex one-dimensional function, the slope of an upper quadratic contact at an interior point is a subgradient.