The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

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_Ici is the proof that 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.

    This version has the boundary point included in the left-hand function.

    See convexOn_univ_piecewise_Ici_of_monotoneOn_Ici_antitoneOn_Iic for the version with the boundary point included in the right-hand function.

    See concave version(s) concaveOn_univ_piecewise_Iic_of_monotoneOn_Iic_antitoneOn_Ici and concaveOn_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.