Rational cut normals preserve protected cubes after scaling
Lax263307.RationalCutBuffer · concepts/Lax263307/RationalCutBuffer.lean · lax-263307
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
Clear all rational normal coefficients by one positive product of denominators. The resulting integer normal defines the same central half-space and is nonzero whenever the original normal is nonzero. A positive query gap, together with a bound on the sum of absolute coefficients, protects a whole coordinate cube about every valid point. Scaling coordinates by 4N and clearing denominators preserve that protected central cut.
Concept map
Evidence
Lean source view on GitHub
| 1 | import Lax263307.BufferedEllipsoid |
| 2 | import Mathlib.Data.Nat.Size |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Rational cut normals preserve protected cubes after scaling |
| 7 | type: lemma |
| 8 | --- |
| 9 | Clear all rational normal coefficients by one positive product of denominators. |
| 10 | The resulting integer normal defines the same central half-space and is |
| 11 | nonzero whenever the original normal is nonzero. |
| 12 | A positive query gap, together with a bound on the sum of absolute coefficients, |
| 13 | protects a whole coordinate cube about every valid point. Scaling coordinates |
| 14 | by 4N and clearing denominators preserve that protected central cut. |
| 15 | |
| 16 | # Formalization notes |
| 17 | |
| 18 | Both clearing operations are computable. Only the correctness argument uses |
| 19 | real casts. The scaled-cube guarantee supplies the cut hypothesis for the |
| 20 | actual rounded ellipsoid loop; it does not assume that the exact hull has |
| 21 | interior. The numerator calculation matches the registered LP size-bound |
| 22 | construction and is proved directly from divisibility of the denominator |
| 23 | product. |
| 24 | -/ |
| 25 | |
| 26 | namespace Lax263307.RationalCutBuffer |
| 27 | |
| 28 | open BufferedEllipsoid (scale) |
| 29 | open Matrix |
| 30 | |
| 31 | def denominator {n : ℕ} (a : Fin n → ℚ) : ℕ := ∏ i, (a i).den |
| 32 | |
| 33 | def integerNormal {n : ℕ} (a : Fin n → ℚ) (i : Fin n) : ℤ := |
| 34 | (a i).num * (denominator a / (a i).den : ℕ) |
| 35 | |
| 36 | axiom denominator_positive {n : ℕ} (a : Fin n → ℚ) : 0 < denominator a |
| 37 | |
| 38 | axiom integer_normal_cast {n : ℕ} (a : Fin n → ℚ) (i : Fin n) : |
| 39 | (integerNormal a i : ℝ) = (denominator a : ℝ) * (a i : ℝ) |
| 40 | |
| 41 | axiom normal_nonzero {n : ℕ} (a : Fin n → ℚ) (x z : Fin n → ℝ) |
| 42 | (gap : (fun i => (a i : ℝ)) ⬝ᵥ z < (fun i => (a i : ℝ)) ⬝ᵥ x) : |
| 43 | ∃ i, integerNormal a i ≠ 0 |
| 44 | |
| 45 | axiom dot_stable {n : ℕ} (a x y : Fin n → ℝ) (ρ L : ℝ) |
| 46 | (nonnegative : 0 ≤ ρ) (norm : (∑ i, |a i|) ≤ L) |
| 47 | (near : ∀ i, |x i - y i| ≤ ρ) : |a ⬝ᵥ x - a ⬝ᵥ y| ≤ L * ρ |
| 48 | |
| 49 | axiom central_buffer {n : ℕ} (a x z perturbed : Fin n → ℝ) (α Δ ρ L : ℝ) |
| 50 | (nonnegative : 0 ≤ ρ) (norm : (∑ i, |a i|) ≤ L) |
| 51 | (valid : a ⬝ᵥ z ≤ α) (gap : α + Δ ≤ a ⬝ᵥ x) |
| 52 | (small : L * ρ ≤ Δ / 2) (near : ∀ i, |perturbed i - z i| ≤ ρ) : |
| 53 | a ⬝ᵥ perturbed ≤ a ⬝ᵥ x - Δ / 2 |
| 54 | |
| 55 | axiom scaled_cleared_cut {n : ℕ} (positive : 0 < n) (a : Fin n → ℚ) |
| 56 | (query z : Fin n → ℝ) (α Δ ρ L : ℝ) |
| 57 | (nonnegative : 0 ≤ ρ) (norm : (∑ i, |(a i : ℝ)|) ≤ L) |
| 58 | (valid : (fun i => (a i : ℝ)) ⬝ᵥ z ≤ α) |
| 59 | (gap : α + Δ ≤ (fun i => (a i : ℝ)) ⬝ᵥ (fun i => 4 * (n : ℝ) * query i)) |
| 60 | (small : L * ρ ≤ Δ / 2) (e : Fin n → ℝ) |
| 61 | (near : ∀ i, |e i| ≤ ρ / (4 * n)) : |
| 62 | (fun i => (integerNormal a i : ℝ)) ⬝ᵥ |
| 63 | (scale z + e - query) ≤ 0 |
| 64 | |
| 65 | end Lax263307.RationalCutBuffer |
| 66 |
Formalization notes
Both clearing operations are computable. Only the correctness argument uses real casts. The scaled-cube guarantee supplies the cut hypothesis for the actual rounded ellipsoid loop; it does not assume that the exact hull has interior. The numerator calculation matches the registered LP size-bound construction and is proved directly from divisibility of the denominator product.
Builds on
Used by
From Mathlib
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments