Oracle, Case II: systems (1) and (2) decide the side of or prove infeasibility (corrected direction)
ProvedMegiddoLP.FixedDim.oracle_caseIIConsider the system with at least one row, in variables , and suppose it has no solution with . Let be its infeasibility function. Let with minimize over the hyperplane , and let . Consider the systems of the page,
These are and . Then:
- if (1) is feasible, every with has ;
- if (2) is feasible, every with has ;
- if (1) and (2) are both feasible or both infeasible, then is a global minimum of and the system is infeasible.
So when precisely one of (1), (2) is feasible, the points of smaller infeasibility, and hence any feasible point, lie in one determined open half-space, and the recursion continues there.
Formalization Note (corrected) The page's last sentence reads "if (1) is the feasible one, we proceed into ". The paragraph before it shows the opposite: if (1) is feasible, the answer to Q2 (improvement in ) is negative. Parts 1 and 2 state the direction that argument proves. The rows are indexed by Fin (n + 1), so is a maximum over a nonempty set. The paper's is Fin.last d of Fin (d + 1).
import Mathlib import Definitions.Def_Polyhedron import Definitions.Def_MegiddoLP_FixedDim_Infeasibility
/-!
Megiddo, J. ACM 31 (1984), §4 p. 125, Case II of the oracle. The paper's `x_d` is the last
coordinate `Fin.last d` of `Fin (d + 1)`; the tested hyperplane is `{x_d = 0}`. Systems (1)
and (2) of the page are `∃ y, y_d = 1 ∧ Aᵢ ⬝ᵥ y ≥ 0 (i ∈ I')` and
`∃ z, z_d = -1 ∧ Aᵢ ⬝ᵥ z ≥ 0 (i ∈ I')`. The side is stated in the corrected direction:
(1) feasible puts every point of smaller infeasibility in `{x_d > 0}`.
-/
open Matrix LinearOptimization
namespace MegiddoLP.FixedDim
/-- **Oracle, Case II.** Let the system `Ax ≥ b` (at least one row) have no solution on
`{x_d = 0}`, let `x'` with `x'_d = 0` minimize `f = infeas A b` on `{x_d = 0}`, and let
`I' = {i | f(x') = bᵢ - Aᵢ ⬝ᵥ x'}`. Then
1. if (1) is feasible, every `w` with `f(w) < f(x')` has `w_d > 0`;
2. if (2) is feasible, every `w` with `f(w) < f(x')` has `w_d < 0`;
3. if (1) and (2) are both feasible or both infeasible, `x'` minimizes `f` on all of `ℝ^d`
and `Ax ≥ b` is infeasible. -/
theorem oracle_caseII {n d : ℕ} (A : Matrix (Fin (n + 1)) (Fin (d + 1)) ℝ)
(b : Fin (n + 1) → ℝ) (x' : Fin (d + 1) → ℝ)
(hinf : polyhedron A b ∩ {x | x (Fin.last d) = 0} = ∅)
(hx' : x' (Fin.last d) = 0)
(hmin : ∀ w : Fin (d + 1) → ℝ, w (Fin.last d) = 0 → infeas A b x' ≤ infeas A b w) :
((∃ y : Fin (d + 1) → ℝ, y (Fin.last d) = 1 ∧
∀ i, infeas A b x' = b i - A i ⬝ᵥ x' → 0 ≤ A i ⬝ᵥ y) →
∀ w, infeas A b w < infeas A b x' → 0 < w (Fin.last d)) ∧
((∃ z : Fin (d + 1) → ℝ, z (Fin.last d) = -1 ∧
∀ i, infeas A b x' = b i - A i ⬝ᵥ x' → 0 ≤ A i ⬝ᵥ z) →
∀ w, infeas A b w < infeas A b x' → w (Fin.last d) < 0) ∧
(((∃ y : Fin (d + 1) → ℝ, y (Fin.last d) = 1 ∧
∀ i, infeas A b x' = b i - A i ⬝ᵥ x' → 0 ≤ A i ⬝ᵥ y) ↔
(∃ z : Fin (d + 1) → ℝ, z (Fin.last d) = -1 ∧
∀ i, infeas A b x' = b i - A i ⬝ᵥ x' → 0 ≤ A i ⬝ᵥ z)) →
(∀ w, infeas A b x' ≤ infeas A b w) ∧ polyhedron A b = ∅) := by sorry
end MegiddoLP.FixedDim
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let , let be a real matrix with rows , and let . Let , and write for the last coordinate of a vector.
Notation.
- is the infeasibility function defined earlier.
- comes from an imported file whose text is not included here. Its name suggests .
Hypotheses.
- .
- .
- for every with .
Auxiliary sets. Let , the rows attaining the maximum at . Define
Claim. All three of the following hold:
- If holds, then every with has .
- If holds, then every with has .
- If and are either both true or both false, then:
- for every , and
- .
No objective vector appears in this statement.
Degenerate cases.
- The matrix has at least one row, so is a genuine maximum and is non-empty.
- . There is one row, and .
- . The slice is the single point . Hypotheses 2 and 3 then force , with hypothesis 3 holding trivially.
- Hypothesis 1. It relates to the slice through the unseen definition of only. If the three hypotheses cannot be met together for given and , the statement is vacuous for those data.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.