Refined near-linear computation of Welzl orders
Lax457868.RefinedWelzlOrders · concepts/Lax457868/RefinedWelzlOrders.lean · lax-457868
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Theorem
For every graph with linear neighborhood complexity bounded by , where , a randomized word-RAM algorithm computes an order whose crossing number is at most a constant times . Its running time is linear in the encoded input size times , and it succeeds with probability at least . For fixed , the crossing bound is .
Concept map
Evidence
Each proof establishes this claim relative to its assumptions.
No proof in the archive yet — this claim is open.
Lean source view on GitHub
| 1 | import Lax195003.WelzlOrdersInGraphs |
| 2 | import Lax195003.WelzlOrdersComputation |
| 3 | import Lax195003.WelzlOrdersNeighborhoodComplexity |
| 4 | import Lax195003.WordRamRandomness |
| 5 | import Lax11.GraphEncoding |
| 6 | import Lax808846.Ram |
| 7 | import Mathlib.Data.Nat.Log |
| 8 | |
| 9 | /-! |
| 10 | --- |
| 11 | title: Refined near-linear computation of Welzl orders |
| 12 | type: theorem |
| 13 | --- |
| 14 | For every graph with linear neighborhood complexity bounded by `c · k`, |
| 15 | where `c ≥ 2`, a randomized word-RAM algorithm computes an order whose |
| 16 | crossing number is at most a constant times |
| 17 | `c^5 (log₂ c)^2 log₂ n`. Its running time is linear in the encoded input |
| 18 | size times `log n`, and it succeeds with probability at least `2/3`. |
| 19 | For fixed `c`, the crossing bound is `O(log n)`. |
| 20 | |
| 21 | # Formalization notes |
| 22 | |
| 23 | The graph order and neighborhood-complexity predicates, the compressed-sparse- |
| 24 | row input encoding, and the finite-tape randomized word-RAM semantics are |
| 25 | imported from Lax195003 and its registered dependencies. The graph statement |
| 26 | uses the existing open-neighborhood convention. The paper's set-system result |
| 27 | implies this specialization because an undirected graph's open-neighborhood |
| 28 | system is self-dual. |
| 29 | |
| 30 | The paper states expected running time. This statement uses a bounded-time |
| 31 | version: truncate an expected-time run at a sufficiently large constant |
| 32 | multiple of its expectation and return failure on timeout. Markov's inequality |
| 33 | then gives success on at least two thirds of finite tapes, with every tape |
| 34 | halting within the displayed bound. Repeating independent attempts until a |
| 35 | valid order is returned recovers expected near-linear time. The runtime |
| 36 | constant is existential; the displayed crossing constant is an explicit |
| 37 | rounding-up of the paper's sampler parameters. |
| 38 | |
| 39 | The program is existential and black-box at the concept level. Its concrete |
| 40 | instruction sequence and the bridges from the refined sampler to the machine |
| 41 | interface belong in the proof package. |
| 42 | -/ |
| 43 | |
| 44 | namespace Lax457868.RefinedWelzlOrders |
| 45 | |
| 46 | open Lax11.GraphEncoding |
| 47 | open Lax808846.Ram |
| 48 | open Lax195003.WelzlOrdersInGraphs |
| 49 | open Lax195003.WelzlOrdersNeighborhoodComplexity |
| 50 | open Lax195003.WordRamRandomness |
| 51 | |
| 52 | /-- A black-box word-RAM program achieves the refined crossing bound within |
| 53 | near-linear time, with constant success probability. -/ |
| 54 | axiom exists_refined_randomized_welzlOrder_program : |
| 55 | ∃ (p : Program) (Ktime : ℕ), 1 ≤ Ktime ∧ |
| 56 | ∀ (c n : ℕ) (G : SimpleGraph (Fin n)), |
| 57 | 2 ≤ c → 2 ≤ n → |
| 58 | HasLinearNeighborhoodComplexityWithConstant G c → |
| 59 | ∀ (w : ℕ) (x : List ℕ), EncodesGraph x n G → |
| 60 | (∀ v ∈ c :: x, Ktime * (x.length + v + 1) ≤ 2 ^ w) → |
| 61 | let T := Ktime * (x.length + 1) * (Nat.clog 2 n + 1) |
| 62 | SucceedsWithProbabilityAtLeastInTime |
| 63 | (2 / 3 : ℚ) w p (c :: x) T T |
| 64 | (EncodesGraphWelzlOrder G 1 |
| 65 | (100000 * c ^ 5 * (Nat.clog 2 c + 1) ^ 2 * |
| 66 | (Nat.clog 2 n + 1))) |
| 67 | |
| 68 | end Lax457868.RefinedWelzlOrders |
| 69 |
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 constant is an explicit rounding-up of the paper's sampler parameters.
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.
0 comments