The areas / V16. Normed spaces and functional analysis
Mathlib.Analysis.Convex.Piecewise
4 declarations. Mathlib docs ยท Source
Convex and concave piecewise functions
This file proves convex and concave theorems for piecewise functions.
Main statements
-
convexOn_univ_piecewise_Iic_of_antitoneOn_Iic_monotoneOn_Iciis the proof that the piecewise function(Set.Iic e).piecewise f gof a functionfdecreasing and convex onSet.Iic eand a functiongincreasing and convex onSet.Ici e, such thatf e = g e, is convex on the universal set.This version has the boundary point included in the left-hand function.
See
convexOn_univ_piecewise_Ici_of_monotoneOn_Ici_antitoneOn_Iicfor the version with the boundary point included in the right-hand function.See concave version(s)
concaveOn_univ_piecewise_Iic_of_monotoneOn_Iic_antitoneOn_IciandconcaveOn_univ_piecewise_Ici_of_antitoneOn_Ici_monotoneOn_Iic.
theorem convexOn_univ_piecewise_Iic_of_antitoneOn_Iic_monotoneOn_Ici E3 #
โ {๐ : Type u_1} {E : Type u_2} {ฮฒ : Type u_3} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : LinearOrder E] [IsOrderedAddMonoid E] [inst_5 : Module ๐ E] [PosSMulMono ๐ E] [inst_7 : AddCommGroup ฮฒ]
[inst_8 : PartialOrder ฮฒ] [IsOrderedAddMonoid ฮฒ] [inst_10 : Module ๐ ฮฒ] [PosSMulMono ๐ ฮฒ] {e : E} {f g : E โ ฮฒ},
ConvexOn ๐ (Set.Iic e) f โ
ConvexOn ๐ (Set.Ici e) g โ
AntitoneOn f (Set.Iic e) โ MonotoneOn g (Set.Ici e) โ f e = g e โ ConvexOn ๐ Set.univ ((Set.Iic e).piecewise f g)
The piecewise function (Set.Iic e).piecewise f g of a function f decreasing and convex on
Set.Iic e and a function g increasing and convex on Set.Ici e, such that f e = g e, is
convex on the universal set.
theorem convexOn_univ_piecewise_Ici_of_monotoneOn_Ici_antitoneOn_Iic E3 #
โ {๐ : Type u_1} {E : Type u_2} {ฮฒ : Type u_3} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : LinearOrder E] [IsOrderedAddMonoid E] [inst_5 : Module ๐ E] [PosSMulMono ๐ E] [inst_7 : AddCommGroup ฮฒ]
[inst_8 : PartialOrder ฮฒ] [IsOrderedAddMonoid ฮฒ] [inst_10 : Module ๐ ฮฒ] [PosSMulMono ๐ ฮฒ] {e : E} {f g : E โ ฮฒ},
ConvexOn ๐ (Set.Ici e) f โ
ConvexOn ๐ (Set.Iic e) g โ
MonotoneOn f (Set.Ici e) โ AntitoneOn g (Set.Iic e) โ f e = g e โ ConvexOn ๐ Set.univ ((Set.Ici e).piecewise f g)
The piecewise function (Set.Ici e).piecewise f g of a function f increasing and convex on
Set.Ici e and a function g decreasing and convex on Set.Iic e, such that f e = g e, is
convex on the universal set.
theorem concaveOn_univ_piecewise_Iic_of_monotoneOn_Iic_antitoneOn_Ici E3 #
โ {๐ : Type u_1} {E : Type u_2} {ฮฒ : Type u_3} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : LinearOrder E] [IsOrderedAddMonoid E] [inst_5 : Module ๐ E] [PosSMulMono ๐ E] [inst_7 : AddCommGroup ฮฒ]
[inst_8 : PartialOrder ฮฒ] [IsOrderedAddMonoid ฮฒ] [inst_10 : Module ๐ ฮฒ] [PosSMulMono ๐ ฮฒ] {e : E} {f g : E โ ฮฒ},
ConcaveOn ๐ (Set.Iic e) f โ
ConcaveOn ๐ (Set.Ici e) g โ
MonotoneOn f (Set.Iic e) โ AntitoneOn g (Set.Ici e) โ f e = g e โ ConcaveOn ๐ Set.univ ((Set.Iic e).piecewise f g)
The piecewise function (Set.Iic e).piecewise f g of a function f increasing and concave on
Set.Iic e and a function g decreasing and concave on Set.Ici e, such that f e = g e, is
concave on the universal set.
theorem concaveOn_univ_piecewise_Ici_of_antitoneOn_Ici_monotoneOn_Iic E3 #
โ {๐ : Type u_1} {E : Type u_2} {ฮฒ : Type u_3} [inst : Semiring ๐] [inst_1 : PartialOrder ๐] [inst_2 : AddCommMonoid E]
[inst_3 : LinearOrder E] [IsOrderedAddMonoid E] [inst_5 : Module ๐ E] [PosSMulMono ๐ E] [inst_7 : AddCommGroup ฮฒ]
[inst_8 : PartialOrder ฮฒ] [IsOrderedAddMonoid ฮฒ] [inst_10 : Module ๐ ฮฒ] [PosSMulMono ๐ ฮฒ] {e : E} {f g : E โ ฮฒ},
ConcaveOn ๐ (Set.Ici e) f โ
ConcaveOn ๐ (Set.Iic e) g โ
AntitoneOn f (Set.Ici e) โ MonotoneOn g (Set.Iic e) โ f e = g e โ ConcaveOn ๐ Set.univ ((Set.Ici e).piecewise f g)
The piecewise function (Set.Ici e).piecewise f g of a function f decreasing and concave on
Set.Ici e and a function g increasing and concave on Set.Iic e, such that f e = g e, is
concave on the universal set.