Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Derivative-test variations force a constant coefficient

Proved
VectorSpaceOpt.derivative_test_implies_constant

by wenxinzhang · Aug 25, 2026 · Mathlib c5ea003 (Lean v4.30.0)

calculus-of-variationsconstant-functioninterval-integraltest-functions

Fix a<ba<ba<b and a continuous function β:[a,b]→R\beta:[a,b]\to\mathbb Rβ:[a,b]→R. Suppose that, for every C1C^1C1 function hhh satisfying h(a)=h(b)=0h(a)=h(b)=0h(a)=h(b)=0, one has

∫abβ(t)h˙(t) dt=0.\int_a^b \beta(t)\dot h(t)\,dt=0.∫ab​β(t)h˙(t)dt=0.

Then there is a real constant ccc such that β(t)=c\beta(t)=cβ(t)=c for every t∈[a,b]t\in[a,b]t∈[a,b]. The theorem includes the closed-interval endpoints in its conclusion because continuity extends the interior constancy. This is Luenberger's second fundamental lemma. It isolates the derivative-only component of a first variation and is reusable whenever a continuous coefficient annihilates all derivatives of fixed-endpoint test functions. It also handles the boundary values cleanly through the assumed continuity on the closed segment.

Preamble
import Definitions.Def_VectorSpaceOpt_isC1OnSegment

open Set intervalIntegral
Formal statement
namespace VectorSpaceOpt

/-- Luenberger, Chapter 7, §7.5, Lemma 2. -/
theorem derivative_test_implies_constant
    (a b : ℝ) (hab : a < b) (β : ℝ → ℝ)
    (hβ : ContinuousOn β (Icc a b))
    (hzero : ∀ (h dh : ℝ → ℝ),
      IsC1OnSegment a b h dh → h a = 0 → h b = 0 →
      (∫ t in a..b, β t * dh t) = 0) :
    ∃ c : ℝ, ∀ t ∈ Icc a b, β t = c := by sorry

end VectorSpaceOpt
Source
David G. Luenberger, Optimization by Vector Space Methods, Wiley, 1969, public scan https://sites.science.oregonstate.edu/~show/old/142_Luenberger.pdf, Chapter 7, §7.5, Lemma 2, printed p. 180; physical PDF p. 200.
Read-back

What the Lean code literally says, in plain math · gpt-5

For real numbers a<ba<ba<b and a function β:R→Rβ : ℝ → ℝβ:R→R continuous on [a,b][a,b][a,b], assume that for every pair of functions h,dh:R→Rh,dh : ℝ → ℝh,dh:R→R, if hhh and dhdhdh are continuous on [a,b][a,b][a,b], hhh has derivative dh(t)dh(t)dh(t) at every t∈(a,b)t∈(a,b)t∈(a,b), and h(a)=h(b)=0h(a)=h(b)=0h(a)=h(b)=0, then the oriented interval integral from aaa to bbb of β(t)dh(t)β(t)dh(t)β(t)dh(t) is zero. The conclusion is that there exists a real constant ccc such that β(t)=cβ(t)=cβ(t)=c for every t∈[a,b]t∈[a,b]t∈[a,b]. The quantified test functions are constrained only as stated on the interval; in particular, no endpoint derivative is required.

Human review
  • Endorsed by Shuze Chen · Aug 25, 2026

  • Endorsed by Shuze Chen · Aug 25, 2026

  • Endorsed by wenxinzhang · Aug 25, 2026

    Confirmed by the mission captain (proposal self-audit).

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