Documentation

Mathlib.Analysis.Convex.Piecewise

Convex and concave piecewise functions #

This file proves convex and concave theorems for piecewise functions.

Main statements #

theorem convexOn_univ_piecewise_Iic_of_antitoneOn_Iic_monotoneOn_Ici {π•œ : Type u_1} {E : Type u_2} {Ξ² : Type u_3} [Semiring π•œ] [PartialOrder π•œ] [AddCommMonoid E] [LinearOrder E] [IsOrderedAddMonoid E] [Module π•œ E] [PosSMulMono π•œ E] [AddCommGroup Ξ²] [PartialOrder Ξ²] [IsOrderedAddMonoid Ξ²] [Module π•œ Ξ²] [PosSMulMono π•œ Ξ²] {e : E} {f g : E β†’ Ξ²} (hf : ConvexOn π•œ (Set.Iic e) f) (hg : ConvexOn π•œ (Set.Ici e) g) (h_anti : AntitoneOn f (Set.Iic e)) (h_mono : MonotoneOn g (Set.Ici e)) (h_eq : 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 {π•œ : Type u_1} {E : Type u_2} {Ξ² : Type u_3} [Semiring π•œ] [PartialOrder π•œ] [AddCommMonoid E] [LinearOrder E] [IsOrderedAddMonoid E] [Module π•œ E] [PosSMulMono π•œ E] [AddCommGroup Ξ²] [PartialOrder Ξ²] [IsOrderedAddMonoid Ξ²] [Module π•œ Ξ²] [PosSMulMono π•œ Ξ²] {e : E} {f g : E β†’ Ξ²} (hf : ConvexOn π•œ (Set.Ici e) f) (hg : ConvexOn π•œ (Set.Iic e) g) (h_mono : MonotoneOn f (Set.Ici e)) (h_anti : AntitoneOn g (Set.Iic e)) (h_eq : 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 {π•œ : Type u_1} {E : Type u_2} {Ξ² : Type u_3} [Semiring π•œ] [PartialOrder π•œ] [AddCommMonoid E] [LinearOrder E] [IsOrderedAddMonoid E] [Module π•œ E] [PosSMulMono π•œ E] [AddCommGroup Ξ²] [PartialOrder Ξ²] [IsOrderedAddMonoid Ξ²] [Module π•œ Ξ²] [PosSMulMono π•œ Ξ²] {e : E} {f g : E β†’ Ξ²} (hf : ConcaveOn π•œ (Set.Iic e) f) (hg : ConcaveOn π•œ (Set.Ici e) g) (h_mono : MonotoneOn f (Set.Iic e)) (h_anti : AntitoneOn g (Set.Ici e)) (h_eq : 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 {π•œ : Type u_1} {E : Type u_2} {Ξ² : Type u_3} [Semiring π•œ] [PartialOrder π•œ] [AddCommMonoid E] [LinearOrder E] [IsOrderedAddMonoid E] [Module π•œ E] [PosSMulMono π•œ E] [AddCommGroup Ξ²] [PartialOrder Ξ²] [IsOrderedAddMonoid Ξ²] [Module π•œ Ξ²] [PosSMulMono π•œ Ξ²] {e : E} {f g : E β†’ Ξ²} (hf : ConcaveOn π•œ (Set.Ici e) f) (hg : ConcaveOn π•œ (Set.Iic e) g) (h_anti : AntitoneOn f (Set.Ici e)) (h_mono : MonotoneOn g (Set.Iic e)) (h_eq : 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.