Rational cut normals preserve protected cubes after scaling

Lax263307.RationalCutBuffer · concepts/Lax263307/RationalCutBuffer.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

    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
    2 concepts; 3 descendants hidden
    100%
    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on A
    Evidence

    Lean source view on GitHub

    1import Lax263307.BufferedEllipsoid
    2import Mathlib.Data.Nat.Size
    3
    4/-!
    5---
    6title: Rational cut normals preserve protected cubes after scaling
    7type: lemma
    8---
    9Clear all rational normal coefficients by one positive product of denominators.
    10The resulting integer normal defines the same central half-space and is
    11nonzero whenever the original normal is nonzero.
    12A positive query gap, together with a bound on the sum of absolute coefficients,
    13protects a whole coordinate cube about every valid point. Scaling coordinates
    14by 4N and clearing denominators preserve that protected central cut.
    15
    16# Formalization notes
    17
    18Both clearing operations are computable. Only the correctness argument uses
    19real casts. The scaled-cube guarantee supplies the cut hypothesis for the
    20actual rounded ellipsoid loop; it does not assume that the exact hull has
    21interior. The numerator calculation matches the registered LP size-bound
    22construction and is proved directly from divisibility of the denominator
    23product.
    24-/
    25
    26namespace Lax263307.RationalCutBuffer
    27
    28open BufferedEllipsoid (scale)
    29open Matrix
    30
    31def denominator {n : ℕ} (a : Fin n → ℚ) : ℕ := ∏ i, (a i).den
    32
    33def integerNormal {n : ℕ} (a : Fin n → ℚ) (i : Fin n) : ℤ :=
    34 (a i).num * (denominator a / (a i).den : ℕ)
    35
    36axiom denominator_positive {n : ℕ} (a : Fin n → ℚ) : 0 < denominator a
    37
    38axiom integer_normal_cast {n : ℕ} (a : Fin n → ℚ) (i : Fin n) :
    39 (integerNormal a i : ℝ) = (denominator a : ℝ) * (a i : ℝ)
    40
    41axiom 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
    45axiom 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
    49axiom 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
    55axiom 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
    65end Lax263307.RationalCutBuffer
    66
    Show ProofShow ProofShow ProofShow ProofShow ProofShow Proof
    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.

    Discussion

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

    Loading discussion…