Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3.6 -- Fenchel duality (GOAL)

Proved
DiscreteConvex.IntegralConvexityB.theorem_3_6_fenchel_duality

by Shuze Chen · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

convex-optimizationdiscrete-convex-analysisduality

inf⁡{f−h}=sup⁡{h∘−f∙}\inf\{f-h\}=\sup\{h^\circ-f^\bullet\}inf{f−h}=sup{h∘−f∙} under one of four alternative hypotheses, with attainment when the common value is finite.

(Murota, Discrete Convex Analysis, SIAM 2003, DOI 10.1137/1.9780898718508, p.105, Theorem 3.6.)

Preamble
import Mathlib
import Definitions.Def_DiscreteConvex_IntegralConvexityB_IsProperConvex
import Definitions.Def_DiscreteConvex_IntegralConvexityB_IsProperConcave
import Definitions.Def_DiscreteConvex_IntegralConvexityB_IsClosedConvexF
import Definitions.Def_DiscreteConvex_IntegralConvexityB_IsClosedConcaveF
import Definitions.Def_DiscreteConvex_IntegralConvexityB_DomE
import Definitions.Def_DiscreteConvex_IntegralConvexityB_RelInt
import Definitions.Def_DiscreteConvex_IntegralConvexityB_IsPolyhedralConvex
import Definitions.Def_DiscreteConvex_IntegralConvexityB_IsPolyhedralConcave
import Definitions.Def_DiscreteConvex_IntegralConvexityB_ConjF
import Definitions.Def_DiscreteConvex_IntegralConvexityB_ConcConjF
Formal statement
/-!
Murota, *Discrete Convex Analysis*, SIAM 2003, p.105, Theorem 3.6 — the goal of this mission —
in `DiscreteConvex.IntegralConvexityB`.
-/

namespace DiscreteConvex.IntegralConvexityB

/-- **Theorem 3.6** (Fenchel duality, goal). Let `f` be a proper convex function and `h` a
proper concave function, and assume at least one of (a1), (a2), (b1), (b2). Then
`inf{f(x)-h(x)} = sup{h◦(p)-f•(p)}`. Moreover, if this common value is finite, the supremum is
attained under (a1)/(a2) and the infimum is attained under (b1)/(b2). The infimum clause carries
(b1) or (b2) themselves, not merely closedness: `f(x) = e^x` and `h = 0` on `ℝ` are closed, the
infimum of `f - h` is `0` and it is not attained. -/
theorem theorem_3_6_fenchel_duality {V : Type*} [Fintype V] (f h : (V → ℝ) → EReal)
    (hf : IsProperConvex f) (hh : IsProperConcave h)
    (hyp : (RelInt (DomE f) ∩ RelInt (DomE h)).Nonempty ∨
      (IsPolyhedralConvex f ∧ IsPolyhedralConcave h ∧ (DomE f ∩ DomE h).Nonempty) ∨
      (IsClosedConvexF f ∧ IsClosedConcaveF h ∧
        (RelInt (DomE (ConjF f)) ∩ RelInt (DomE (ConcConjF h))).Nonempty) ∨
      (IsPolyhedralConvex f ∧ IsPolyhedralConcave h ∧
        (DomE (ConjF f) ∩ DomE (ConcConjF h)).Nonempty)) :
    (sInf {v : EReal | ∃ x : V → ℝ, v = f x - h x} =
        sSup {v : EReal | ∃ p : V → ℝ, v = ConcConjF h p - ConjF f p}) ∧
      (∀ delta : ℝ,
        sInf {v : EReal | ∃ x : V → ℝ, v = f x - h x} = (delta : EReal) →
          ((RelInt (DomE f) ∩ RelInt (DomE h)).Nonempty ∨
              (IsPolyhedralConvex f ∧ IsPolyhedralConcave h ∧ (DomE f ∩ DomE h).Nonempty) →
            ∃ p ∈ DomE (ConjF f) ∩ DomE (ConcConjF h),
              ConcConjF h p - ConjF f p = (delta : EReal)) ∧
          ((IsClosedConvexF f ∧ IsClosedConcaveF h ∧
                (RelInt (DomE (ConjF f)) ∩ RelInt (DomE (ConcConjF h))).Nonempty) ∨
              (IsPolyhedralConvex f ∧ IsPolyhedralConcave h ∧
                (DomE (ConjF f) ∩ DomE (ConcConjF h)).Nonempty) →
            ∃ x ∈ DomE f ∩ DomE h, f x - h x = (delta : EReal))) := by sorry

end DiscreteConvex.IntegralConvexityB
Source
Murota, Discrete Convex Analysis, SIAM 2003, DOI 10.1137/1.9780898718508, p.105, Theorem 3.6
Human review
  • Endorsed by Community (Bot) · Oct 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Shuze Chen · Oct 1, 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