Infinity-distance projection LP and its separating dual

Lax263307.DistanceProjection · concepts/Lax263307/DistanceProjection.lean · lax-263307

proven

Loading review…

Sign in with ORCID

Community review

Flags

Each flag is tied to a public ORCID identity and explains why this concept may be incorrect.

No flags have been submitted.

    Community review

    Flag this concept

    State precisely what appears incorrect. This explanation will be public under your ORCID name.

    No source line selected.

    Natural Language Statement

    Lemma

    Append one nonnegative distance variable t to a linear program and impose |y_j-center_j|≤t for every coordinate. Maximizing -t finds a nearest feasible point. A matching dual certificate supplies a separating normal whose sum of absolute coefficients is at most one, and its gap at the queried center is exactly t. Thus a distance threshold yields either a nearby feasible point for round-or-cut or a uniformly strong separation.

    Concept map
    5 concepts; 4 descendants hidden
    100%
    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on A
    Evidence

    This concept declares 5 statements. Each proof establishes one of them relative to its assumptions.

    Lean source view on GitHub

    1import Lax109476.RationalCertificates
    2
    3/-!
    4---
    5title: Infinity-distance projection LP and its separating dual
    6type: lemma
    7---
    8Append one nonnegative distance variable t to a linear program and impose
    9|y_j-center_j|≤t for every coordinate. Maximizing -t finds a nearest feasible
    10point. A matching dual certificate supplies a separating normal whose sum
    11of absolute coefficients is at most one, and its gap at the queried center
    12is exactly t. Thus a distance threshold yields either a nearby feasible
    13point for round-or-cut or a uniformly strong separation.
    14
    15# Formalization notes
    16
    17Rows and variables use computable finite index concatenation. No choice-based
    18coordinate labeling is needed to form the dense rational program. The
    19algebra holds in real variables and applies to exact rational certificates
    20by casting. It makes no full-dimensionality assumption. The proof package
    21implements the matrix construction and registered solver invocation on the RAM.
    22-/
    23
    24namespace Lax263307.DistanceProjection
    25
    26open Lax109476.LinearProgram
    27
    28/-- The distance LP with one additional variable and two rows per coordinate. -/
    29def distanceProgram {K : Type} [Ring K] {m n : ℕ} (P : Program K m n) (center : Fin n → K) :
    30 Program K (m + (n + n)) (n + 1) where
    31 A := Fin.addCases
    32 (fun i => Fin.addCases (P.A i) (fun _ => 0))
    33 (Fin.addCases
    34 (fun i => Fin.addCases (fun j => if i = j then 1 else 0) (fun _ => -1))
    35 (fun i => Fin.addCases (fun j => if i = j then -1 else 0) (fun _ => -1)))
    36 b := Fin.addCases P.b (Fin.addCases center (fun i => -center i))
    37 c := Fin.addCases (fun _ => 0) (fun _ => -1)
    38
    39def point {K : Type} {n : ℕ} (z : Fin (n + 1) → K) (j : Fin n) : K := z (Fin.castAdd 1 j)
    40def distance {K : Type} {n : ℕ} (z : Fin (n + 1) → K) : K := z (Fin.natAdd n (0 : Fin 1))
    41
    42def oldMultipliers {K : Type} {m n : ℕ} (dual : Fin (m + (n + n)) → K) (i : Fin m) : K :=
    43 dual (Fin.castAdd (n + n) i)
    44def plusMultipliers {K : Type} {m n : ℕ} (dual : Fin (m + (n + n)) → K) (i : Fin n) : K :=
    45 dual (Fin.natAdd m (Fin.castAdd n i))
    46def minusMultipliers {K : Type} {m n : ℕ} (dual : Fin (m + (n + n)) → K) (i : Fin n) : K :=
    47 dual (Fin.natAdd m (Fin.natAdd n i))
    48def normal {K : Type} [Sub K] {m n : ℕ} (dual : Fin (m + (n + n)) → K) (i : Fin n) : K :=
    49 minusMultipliers dual i - plusMultipliers dual i
    50
    51axiom primal_characterization {m n : ℕ} (P : Program ℝ m n) (center : Fin n → ℝ)
    52 (z : Fin (n + 1) → ℝ) :
    53 PrimalFeasible (distanceProgram P center) z ↔
    54 PrimalFeasible P (point z) ∧ 0 ≤ distance z ∧
    55 ∀ j, |point z j - center j| ≤ distance z
    56
    57axiom objective_bounded {m n : ℕ} (P : Program ℝ m n) (center : Fin n → ℝ) :
    58 IsBoundedAbove (distanceProgram P center)
    59
    60axiom projection_feasible_iff {m n : ℕ} (P : Program ℝ m n) (center : Fin n → ℝ) :
    61 IsFeasible (distanceProgram P center) ↔ IsFeasible P
    62
    63axiom dual_normal {m n : ℕ} (P : Program ℝ m n) (center : Fin n → ℝ)
    64 (dual : Fin (m + (n + n)) → ℝ) (feasible : DualFeasible (distanceProgram P center) dual) :
    65 (∑ j, |normal dual j|) ≤ 1 ∧
    66 ∀ z, PrimalFeasible P z → (∑ j, normal dual j * z j) ≤ dualValue P (oldMultipliers dual)
    67
    68axiom optimal_gap {m n : ℕ} (P : Program ℝ m n) (center : Fin n → ℝ)
    69 (z : Fin (n + 1) → ℝ) (dual : Fin (m + (n + n)) → ℝ)
    70 (primal : PrimalFeasible (distanceProgram P center) z)
    71 (dual_feasible : DualFeasible (distanceProgram P center) dual)
    72 (matching : primalValue (distanceProgram P center) z = dualValue (distanceProgram P center) dual) :
    73 PrimalFeasible P (point z) ∧ 0 ≤ distance z ∧
    74 (∀ j, |point z j - center j| ≤ distance z) ∧
    75 (∑ j, |normal dual j|) ≤ 1 ∧
    76 (∀ y, PrimalFeasible P y → (∑ j, normal dual j * y j) ≤ dualValue P (oldMultipliers dual)) ∧
    77 (∑ j, normal dual j * center j) - dualValue P (oldMultipliers dual) = distance z
    78
    79end Lax263307.DistanceProjection
    80
    Show ProofShow ProofShow ProofShow ProofShow Proof
    Formalization notes

    Rows and variables use computable finite index concatenation. No choice-based coordinate labeling is needed to form the dense rational program. The algebra holds in real variables and applies to exact rational certificates by casting. It makes no full-dimensionality assumption. The proof package implements the matrix construction and registered solver invocation on the RAM.

    Discussion

    Ask a question or add context. Endorsements and structured flags are kept in the review panel above.

    Loading discussion…