Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 2 — invariants and well-definedness of Algorithm 1

Proved
PosetMarginals.Chains.proposition_2

by mikedeng1 · Oct 20, 2026 · Mathlib 0df444a (Lean v4.33.1)

constructive-algorithmsmaximal-chainsp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1posets

Under the finite nonempty poset and standing parameter conditions, every reached state of Algorithm 1 has four properties. First, for every maximal chain CCC, its residual slack is δCk=∑x∈Cρxk−πCk\delta^k_C=\sum_{x\in C}\rho^k_x-\pi^k_CδCk​=∑x∈C​ρxk​−πCk​, and active chains have nonnegative slack. Second, the active chain family remains closed under splices at points of Xk−1X^{k-1}Xk−1. Third, the residual targets satisfy the same conservation equation at each such splice. Fourth, the relation generated by the active zero-slack chains is a partial order on XkX^kXk.

In symbols, the first and third assertions include

δCk=∑x∈Cρxk−πCk,πC1k+πC2k=πC12k+πC21k.\delta^k_C=\sum_{x\in C}\rho^k_x-\pi^k_C,\qquad\pi^k_{C^1}+\pi^k_{C^2}=\pi^k_{C^2_1}+\pi^k_{C^1_2}.δCk​=x∈C∑​ρxk​−πCk​,πC1k​+πC2k​=πC12​k​+πC21​k​.

These invariants justify the algorithm's construction of a subposet and its next update.

Formalization Note Lean state kkk is paper stage k+1k+1k+1, so the theorem requires all earlier supports to be nonempty; this is the paper's stage range ⟦1,n∗+1⟧\llbracket1,n^*+1\rrbracket[[1,n∗+1]]. Every common point of two active chains in the previous support is quantified, as in condition (3).

Preamble
import Mathlib
import Definitions.Def_PosetMarginals_Chains_Algorithm

open Classical
Formal statement
namespace PosetMarginals.Chains

/-- Dahan, Amin and Jaillet, Proposition 2, p. 13. Lean state `k` is paper stage `k+1`. -/
theorem proposition_2 {α : Type*} [PartialOrder α] [Fintype α] [Nonempty α]
    (ρ : α → ℝ) (π : Finset α → ℝ) (h : Standing ρ π)
    (k : ℕ) (hk : ∀ j < k, (iter ρ π j).X.Nonempty) :
    let s := iter ρ π k
    (∀ C ∈ maxChains α, s.δ C = ∑ x ∈ C, s.ρ x - s.π C) ∧
    (∀ C ∈ s.chains, 0 ≤ s.δ C) ∧
    PreservesDecomp s.prevX s.chains ∧
    (∀ C1 ∈ s.chains, ∀ C2 ∈ s.chains, ∀ x ∈ C1 ∩ C2 ∩ s.prevX,
      s.π C1 + s.π C2 = s.π (splice C1 C2 x) + s.π (splice C2 C1 x)) ∧
    IsPosetOn s.X s.tight := by sorry

end PosetMarginals.Chains
Source
Dahan, Amin & Jaillet, arXiv:1811.08516v3, p. 13, Proposition 2, eqs. (10)–(12); proof pp. 14–15
Human review
  • Endorsed by Shuze Chen · Oct 20, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 20, 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