Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Strictly decreasing functions extend to a closed right endpoint

Proved
Monotonicity_Theorem.decreasing_extends_to_right_endpoint_closed

by Tamas Fulop · Sep 12, 2026 · Mathlib 0df444a (Lean v4.33.1)

monotonicityo-minimal

Gluing a strictly decreasing function to its closed right endpoint.

Let fff be a function defined on a set III of points of a dense linear order without endpoints, and let x0<sx_0 < sx0​<s be two values. Suppose every point of III lies in the half-open interval [x0,s][x_0, s][x0​,s], in the sense that each coordinate equals x0x_0x0​, lies strictly between x0x_0x0​ and sss, or equals sss. Suppose further that:

  1. fff is strictly decreasing on pairs of points both lying strictly left of sss;
  2. for every point uuu of III at or right of x0x_0x0​ but strictly left of sss, and every point yyy of III at sss, the value f(y)f(y)f(y) lies strictly below f(u)f(u)f(u).

Then

f is strictly decreasing on all of I.f \text{ is strictly decreasing on all of } I.f is strictly decreasing on all of I.

This is the exact mirror of the increasing endpoint-gluing lemma, used for the decreasing case of sup-extension arguments: once boundary comparisons at the endpoint sss are known (in applications, supplied by continuity at sss), strict monotonicity on the approaching interval extends to the closed interval.

Formalization Note The boundary hypothesis quantifies over arbitrary points yyy at sss rather than fixing one, so no choice of coordinates is needed. This version supersedes an earlier draft whose boundary hypothesis missed the left-endpoint pair.

Preamble
import Definitions.Def_Monotonicity_Theorem_Framework
Formal statement
theorem Monotonicity_Theorem.decreasing_extends_to_right_endpoint_closed {R : Type}
    (D : DenseLinearOrderNoEndpoints R)
    {I B : Set (Power R 1)}
    (f : {x : Power R 1 // I x} → {y : Power R 1 // B y})
    (x₀ s : R) (hxs : D.lt x₀ s)
    (hI : ∀ x : Power R 1, I x → Power.coord1 x = x₀ ∨
      (D.lt x₀ (Power.coord1 x) ∧ D.lt (Power.coord1 x) s) ∨ Power.coord1 x = s)
    (hleft : ∀ x y (hx : I x) (hy : I y),
      D.lt (Power.coord1 x) s → D.lt (Power.coord1 y) s →
      Lt1 D x y → Lt1 D (f ⟨y, hy⟩).1 (f ⟨x, hx⟩).1)
    (hbound : ∀ u (hu : I u) y (hy : I y),
      (Power.coord1 u = x₀ ∨ D.lt x₀ (Power.coord1 u)) →
      D.lt (Power.coord1 u) s → Power.coord1 y = s →
      Lt1 D (f ⟨y, hy⟩).1 (f ⟨u, hu⟩).1) :
    StrictlyDecreasingOn D I B f := by sorry
Source
Monotonicity theorem assembly (monotonicity.tex), sup-extension uniformity step: extending decreasing behavior from [x0, s) to s

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me