While this submission is a draft, it cannot be used by other submissions.

Refined near-linear computation of Welzl orders

Lax457868.RefinedWelzlOrders · concepts/Lax457868/RefinedWelzlOrders.lean · lax-457868

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

    Theorem

    For every graph with linear neighborhood complexity bounded by c⋅kc · k, where c≥2c ≥ 2, a randomized word-RAM algorithm computes an order whose crossing number is at most a constant times c5(log2c)2log2nc^5 (log₂ c)^2 log₂ n. Its running time is linear in the encoded input size times lognlog n, and it succeeds with probability at least 2/32/3. For fixed cc, the crossing bound is O(logn)O(log n).

    Concept map
    10 concepts
    100%
    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on A
    Evidence

    Each proof establishes this claim relative to its assumptions.

    Lean source view on GitHub

    1import Lax195003.WelzlOrdersInGraphs
    2import Lax195003.WelzlOrdersComputation
    3import Lax195003.WelzlOrdersNeighborhoodComplexity
    4import Lax195003.WordRamRandomness
    5import Lax11.GraphEncoding
    6import Lax808846.Ram
    7import Mathlib.Data.Nat.Log
    8
    9/-!
    10---
    11title: Refined near-linear computation of Welzl orders
    12type: theorem
    13---
    14For every graph with linear neighborhood complexity bounded by `c · k`,
    15where `c ≥ 2`, a randomized word-RAM algorithm computes an order whose
    16crossing number is at most a constant times
    17`c^5 (log₂ c)^2 log₂ n`. Its running time is linear in the encoded input
    18size times `log n`, and it succeeds with probability at least `2/3`.
    19For fixed `c`, the crossing bound is `O(log n)`.
    20
    21# Formalization notes
    22
    23The graph order and neighborhood-complexity predicates, the compressed-sparse-
    24row input encoding, and the finite-tape randomized word-RAM semantics are
    25imported from Lax195003 and its registered dependencies. The graph statement
    26uses the existing open-neighborhood convention. The paper's set-system result
    27implies this specialization because an undirected graph's open-neighborhood
    28system is self-dual.
    29
    30The paper states expected running time. This statement uses a bounded-time
    31version: truncate an expected-time run at a sufficiently large constant
    32multiple of its expectation and return failure on timeout. Markov's inequality
    33then gives success on at least two thirds of finite tapes, with every tape
    34halting within the displayed bound. Repeating independent attempts until a
    35valid order is returned recovers expected near-linear time. The runtime
    36constant is existential. The displayed crossing bound uses the paper's
    37sampler parameter directly: `k` is rounded up as in Lemma 18, and the
    38reconstruction contributes at most `2k` per round.
    39
    40More explicitly, Lemma 18 sets `s = ceil(64 log₂ c)` and
    41`k = ceil(768 c^5 (s + 1) log₂ c)`, while Theorem 20 bounds crossings by
    42`2k log₂ n`. Replacing each logarithm by its natural-number ceiling yields
    43the displayed bound, with the additive `1` accounting for rounding up `k`.
    44
    45The program is existential and black-box at the concept level. Its concrete
    46instruction sequence and the bridges from the refined sampler to the machine
    47interface belong in the proof package.
    48-/
    49
    50namespace Lax457868.RefinedWelzlOrders
    51
    52open Lax11.GraphEncoding
    53open Lax808846.Ram
    54open Lax195003.WelzlOrdersInGraphs
    55open Lax195003.WelzlOrdersNeighborhoodComplexity
    56open Lax195003.WordRamRandomness
    57
    58/-- A black-box word-RAM program achieves the refined crossing bound within
    59near-linear time, with constant success probability. -/
    60axiom exists_refined_randomized_welzlOrder_program :
    61 ∃ (p : Program) (Ktime : ℕ), 1 ≤ Ktime ∧
    62 ∀ (c n : ℕ) (G : SimpleGraph (Fin n)),
    63 2 ≤ c → 2 ≤ n →
    64 HasLinearNeighborhoodComplexityWithConstant G c →
    65 ∀ (w : ℕ) (x : List ℕ), EncodesGraph x n G →
    66 (∀ v ∈ c :: x, Ktime * (x.length + v + 1) ≤ 2 ^ w) →
    67 let T := Ktime * (x.length + 1) * (Nat.clog 2 n + 1)
    68 SucceedsWithProbabilityAtLeastInTime
    69 (2 / 3 : ℚ) w p (c :: x) T T
    70 (EncodesGraphWelzlOrder G 1
    71 (2 * (768 * c ^ 5 *
    72 (64 * Nat.clog 2 c + 1) * Nat.clog 2 c + 1) *
    73 Nat.clog 2 n))
    74
    75end Lax457868.RefinedWelzlOrders
    76
    Show Proof
    Formalization notes

    The graph order and neighborhood-complexity predicates, the compressed-sparse- row input encoding, and the finite-tape randomized word-RAM semantics are imported from Lax195003 and its registered dependencies. The graph statement uses the existing open-neighborhood convention. The paper's set-system result implies this specialization because an undirected graph's open-neighborhood system is self-dual.

    The paper states expected running time. This statement uses a bounded-time version: truncate an expected-time run at a sufficiently large constant multiple of its expectation and return failure on timeout. Markov's inequality then gives success on at least two thirds of finite tapes, with every tape halting within the displayed bound. Repeating independent attempts until a valid order is returned recovers expected near-linear time. The runtime constant is existential. The displayed crossing bound uses the paper's sampler parameter directly: kk is rounded up as in Lemma 18, and the reconstruction contributes at most 2k2k per round.

    More explicitly, Lemma 18 sets s=ceil(64log2c)s = ceil(64 log₂ c) and k=ceil(768c5(s+1)log2c)k = ceil(768 c^5 (s + 1) log₂ c), while Theorem 20 bounds crossings by 2klog2n2k log₂ n. Replacing each logarithm by its natural-number ceiling yields the displayed bound, with the additive 11 accounting for rounding up kk.

    The program is existential and black-box at the concept level. Its concrete instruction sequence and the bridges from the refined sampler to the machine interface belong in the proof package.

    Discussion

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

    Loading discussion…