Slope of a function #
THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.
In this file we define the slope of a function f : k → PE
taking values in an affine space over
k
and prove some basic theorems about slope
. The slope
function naturally appears in the Mean
Value Theorem, and in the proof of the fact that a function with nonnegative second derivative on an
interval is convex on this interval.
Tags #
affine space, slope
slope f a c
is a linear combination of slope f a b
and slope f b c
. This version
explicitly provides coefficients. If a ≠ c
, then the sum of the coefficients is 1
, so it is
actually an affine combination, see line_map_slope_slope_sub_div_sub
.
slope f a c
is an affine combination of slope f a b
and slope f b c
. This version uses
line_map
to express this property.
slope f a b
is an affine combination of slope f a (line_map a b r)
and
slope f (line_map a b r) b
. We use line_map
to express this property.