Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Midpoint geometry yields a complementary pair of unit exchanges

Proved
SteinitzExchange.Extension.midpoint_exchange_mem_base

by choi · Oct 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

convex-geometrydiscrete-convex-analysisintegral-base-setsteinitz-exchange

Let VVV be a finite nonempty coordinate set. Let B,A⊆ZVB,A\subseteq\mathbb Z^VB,A⊆ZV be finite integral base sets: each is nonempty, and whenever a,ba,ba,b lie in the set and au>bua_u>b_uau​>bu​, there is a coordinate vvv with av<bva_v<b_vav​<bv​ such that a−eu+eva-e_u+e_va−eu​+ev​ also lies in the set. Here eue_ueu​ denotes the unit vector at uuu.

Suppose x,y∈Bx,y\in Bx,y∈B have lattice distance four and their midpoint lies in the convex hull of AAA:

∑w∈V∣xw−yw∣=4,x+y2∈conv⁡(A).\sum_{w\in V}|x_w-y_w|=4,\qquad \frac{x+y}{2}\in\operatorname{conv}(A).w∈V∑​∣xw​−yw​∣=4,2x+y​∈conv(A).

Then there are u,v∈Vu,v\in Vu,v∈V satisfying

xu>yu,xv<yv,x−eu+ev∈A,y+eu−ev∈A.x_u>y_u,\qquad x_v<y_v,\qquad x-e_u+e_v\in A,\qquad y+e_u-e_v\in A.xu​>yu​,xv​<yv​,x−eu​+ev​∈A,y+eu​−ev​∈A.

This is the local geometric step that turns a midpoint condition into a simultaneous exchange. The two exchanged points may coincide, so the assertion also covers repeated exchange directions. The role of BBB is to ensure that xxx and yyy have the same coordinate sum; no inclusion between AAA and BBB is required.

Preamble
import Mathlib
import Definitions.Def_SteinitzExchange_Extension_IntegralBaseSet
Formal statement
namespace SteinitzExchange.Extension


theorem midpoint_exchange_mem_base {V : Type*} [Fintype V] [DecidableEq V] [Nonempty V]
    (B A : Finset (V → ℤ)) (hB : IsIntegralBaseSet B) (hA : IsIntegralBaseSet A)
    (x y : V → ℤ) (hx : x ∈ B) (hy : y ∈ B) (hxy : ∑ w, |x w - y w| = 4)
    (hm : (1 / 2 : ℝ) • toReal x + (1 / 2 : ℝ) • toReal y ∈ hull A) :
    ∃ u v : V, 0 < (x - y) u ∧ (x - y) v < 0 ∧
      x - chi u + chi v ∈ A ∧ y + chi u - chi v ∈ A := by sorry

end SteinitzExchange.Extension
Source
Kazuo Murota, Convexity and Steinitz's Exchange Property, Advances in Mathematics 124 (1996), 272–311, DOI 10.1006/aima.1996.0084; https://scispace.com/pdf/convexity-and-steinitz-s-exchange-property-1h0w0a22vc.pdf; Section 4.2, proof of Theorem 4.4, midpoint c=(x+y)/2, box intersection after equation (4.8), and four-vertex matching argument, including the repeated-direction case. The statement isolates the unweighted integral-base geometry used in that proof.

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me