Lemma 3.2 — the two-swap bound under (EXC)
ProvedSteinitzExchange.Extension.two_swap_boundLet be a finite integral base set and let satisfy the local exchange property (EXC). Let and with be such that
and let . Write and , with when . Then
The cases or are allowed.
This bound is the local step behind Theorem 3.1 (local exchange implies global exchange).
Formalization Note. With the convention, (3.3) says exactly: either and both lie in and , or and both lie in and . The Lean statement is this disjunction. The hypothesis (EXC) is on , not on .
import Mathlib import Definitions.Def_SteinitzExchange_Extension_IntegralBaseSet import Definitions.Def_SteinitzExchange_Extension_Exchange
namespace SteinitzExchange.Extension
/-- Murota 1996, p. 282, Lemma 3.2. With the paper's convention `ω_p(x, u, v) = −∞` when
`x − χ_u + χ_v ∉ B`, the bound `ω_p(y) − ω_p(x) ≤ max(π₀₀ + π₁₁, π₀₁ + π₁₀)` says: for one of the
two pairings, both exchanged points lie in `B` and the bound holds with that pairing. -/
theorem two_swap_bound {V : Type*} [Fintype V] [DecidableEq V] [Nonempty V]
(B : Finset (V → ℤ)) (hB : IsIntegralBaseSet B) (ω : (V → ℤ) → ℝ)
(hloc : SatisfiesEXCLoc B ω) (x : V → ℤ) (hx : x ∈ B) (u₀ u₁ v₀ v₁ : V)
(hy : x - chi u₀ - chi u₁ + chi v₀ + chi v₁ ∈ B)
(h00 : u₀ ≠ v₀) (h01 : u₀ ≠ v₁) (h10 : u₁ ≠ v₀) (h11 : u₁ ≠ v₁) (p : V → ℝ) :
let y := x - chi u₀ - chi u₁ + chi v₀ + chi v₁
let π : V → V → ℝ := fun u v => perturb ω p (x - chi u + chi v) - perturb ω p x
(x - chi u₀ + chi v₀ ∈ B ∧ x - chi u₁ + chi v₁ ∈ B ∧
perturb ω p y - perturb ω p x ≤ π u₀ v₀ + π u₁ v₁) ∨
(x - chi u₀ + chi v₁ ∈ B ∧ x - chi u₁ + chi v₀ ∈ B ∧
perturb ω p y - perturb ω p x ≤ π u₀ v₁ + π u₁ v₀) := by sorry
end SteinitzExchange.Extension
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. is a finite, nonempty type with decidable equality. The symbols used are:
- is the indicator vector of .
- reads integer vectors in .
- .
Hypotheses.
- is a finite integral base set. That is, is nonempty, and for all and every with there is some with and .
- is defined on all of and satisfies (EXC) on . That is, for all with , there exist with , , , and
- .
- satisfy , , and . However, and are allowed.
- The point
lies in .
- is arbitrary.
Write for all . Define
which is evaluated even at points outside .
Conclusion. At least one of the following holds:
- and , and
- and , and
In whichever alternative holds, all points where is evaluated lie in .
Degenerate cases.
- If has exactly one element, then is forced, so the hypotheses cannot be satisfied and the statement is vacuous.
- If and , the two alternatives are identical. The claim is then that and .
- is allowed, in which case .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.