Integer coefficients of recursive separating cuts
Lax263307.ComponentCutEncoding · concepts/Lax263307/ComponentCutEncoding.lean · lax-263307
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
The cut for a part and bound is
Collect repeated coordinates into an integer coefficient vector. Evaluating that vector gives exactly the left-hand side of the component inequality.
Concept map
Lean source view on GitHub
| 1 | import Lax263307.ComponentCuts |
| 2 | import Mathlib.Data.Fintype.Powerset |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Integer coefficients of recursive separating cuts |
| 7 | type: lemma |
| 8 | --- |
| 9 | The cut for a part and bound is |
| 10 | |
| 11 | Collect repeated coordinates into an integer coefficient vector. Evaluating |
| 12 | that vector gives exactly the left-hand side of the component inequality. |
| 13 | -/ |
| 14 | |
| 15 | namespace Lax263307.ComponentCutEncoding |
| 16 | |
| 17 | open LinearRelaxation |
| 18 | |
| 19 | /-- The coefficient at one coordinate, after collecting all repeated terms. -/ |
| 20 | def coefficient {n r : ℕ} (A C : Finset (Fin n)) (u : ℕ) |
| 21 | (B : Coordinate n r) : ℤ := |
| 22 | (∑ v ∈ C, if insert v A = B.val then 1 else 0) - |
| 23 | if A = B.val then (u : ℤ) else 0 |
| 24 | |
| 25 | /-- Evaluate the coefficient vector in the real coordinate space. -/ |
| 26 | noncomputable def evaluate {n r : ℕ} (a : Coordinate n r → ℤ) |
| 27 | (z : MomentVector n r) : ℝ := ∑ B, (a B : ℝ) * z B |
| 28 | |
| 29 | /-- The collected coefficient vector represents exactly the intended cut. -/ |
| 30 | axiom evaluation_identity {n r : ℕ} (A C : Finset (Fin n)) (u : ℕ) |
| 31 | (size : A.card ≤ r) (z : MomentVector n r) : |
| 32 | evaluate (coefficient A C u) z = |
| 33 | (∑ v ∈ C, value z (insert v A)) - (u : ℝ) * value z A |
| 34 | |
| 35 | end Lax263307.ComponentCutEncoding |
| 36 |
Builds on
From Mathlib
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments