Computing balanced light separators from registered flow-cut outputs

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

    Label each remaining vertex set in increasing order, construct its rational split network, and read the cut membership prefix of the registered Leighton–Rao solver's output. Orient the two projected shores by size. Repeat until the remainder has at most two thirds of the original vertices. The computed list has at most n cuts. Its separator has the stated cost, and its computed pieces form a balanced partition with no cross edges.

    Concept map
    56 concepts; 4 descendants hidden
    100%
    TreewidthTreewidth transfer through analmost-embeddingBalanced closed parts certify a balancedseparatorComputing balanced light separators fromregistered flow-cut outputsConditioning graph routes on uniformendpointsBags meeting a connected vertex setTree-decomposition transfer throughconnected vertex representationsA width obstruction from sparse costs andbounded route loadsCoupled route sampling with shared verteximagesA good coupled sample with bounded totalroute sizeRepeated cuts yield a balanced lightseparatorEdge-sublinear separators implyedge-sublinear decomposition bagsTreewidth loss under edge deletionStrongly edge-sublinear separatorsEntropy and adjacency massFinite product sampling and coordinatemarginalsThe split flow-cut certificate must give acheap separationHereditary graph classesRestricting an induced almost-embedding toits route unionA class width bound obstructs induced routesamplingFew edges in the graph induced by shortroutesAlmost-embedding transfer with isolatedsource verticesThe independent-set relaxation and its exacthullSparse bounded-load route distributions areimpossibleCollision and length bounds forindependently sampled pathsInteger power bounds on class decompositionbagsDepth and approximation loss of balancedrecursionCumulative separator cost over disjointdiscarded shoresGraph-route distributions from high-valuesplit flowsDiscarding long almost-embedding routesUniform endpoint normalization of finitepath flowsAn induced almost-embedding from a goodroute sampleChoosing a collision-free outcome withbounded total path lengthThe components left by deleting a separatorTree decompositions from recursive balancedseparatorsControlled-size subcubic source graphs oflinear treewidthProjecting split paths and preservingendpoint loadsVertex splitting for the directed flow–cutalgorithmWeighted independent setsPolynomial order bound from the sampledwidth inequalityConcurrent fractional flowExact flow–cut output certificatesProduct multicommodity networks andsparsest cutsDeterministic directed uniform flow–cutalgorithmRational flow instances and certificatesBinary encoding of finite wordsPolynomial-time computation by a wordRAMThe word RAMThe Constructor Meets the Requested OrderEdge Expansion and Subcubic GraphsThe Explicit Family Has Linear TreewidthSelecting and Encoding the ConstructedGraphsRotation Map of the Fixed Powered SeedDeterministic Search for a Fixed ExpanderSeedThe Explicit Graphs Are SubcubicExplicit Zig-Zag Family and PathReplacement
    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 Lax263307.EdgeBagBounds
    2import Lax263307.ForcedSeparation
    3import Lax263307.CutTraces
    4import Mathlib.Data.Finset.Sort
    5import Mathlib.Data.List.GetD
    6
    7/-!
    8---
    9title: Computing balanced light separators from registered flow-cut outputs
    10type: lemma
    11---
    12Label each remaining vertex set in increasing order, construct its rational
    13split network, and read the cut membership prefix of the registered
    14Leighton–Rao solver's output. Orient the two projected shores by size.
    15Repeat until the remainder has at most two thirds of the original vertices.
    16The computed list has at most n cuts. Its separator has the stated cost,
    17and its computed pieces form a balanced partition with no cross edges.
    18
    19# Formalization notes
    20
    21All labels, rational capacities, output decoding, shore choices, and the
    22bounded cut-list loop are computable. The solver retains its actual registered
    23RAM polynomial-time guarantee. This statement gives the wrapper's functional correctness.
    24The main theorem also verifies its RAM implementation and running time.
    25-/
    26
    27namespace Lax263307.ComputedSeparators
    28
    29open EdgeSublinearSeparators (IsBalancedSeparator)
    30open Lax759944.RamPolytime (RamPolytime)
    31open SeparatorComponents (Partition)
    32open scoped NNRat
    33open VertexSplitting Lax455465.RationalEncoding
    34
    35def decodeCut (n : ℕ) (words : List ℕ) : Finset (Fin n) :=
    36 Finset.univ.filter fun v => words.getD v.val 0 = 1
    37
    38def label {n : ℕ} (R : Finset (Fin n)) : Fin R.card ↪o Fin n :=
    39 R.orderEmbOfFin rfl
    40
    41def restriction {n : ℕ} (G : SimpleGraph (Fin n)) (R : Finset (Fin n)) :
    42 SimpleGraph (Fin R.card) := G.comap (label R)
    43
    44instance {n : ℕ} (G : SimpleGraph (Fin n)) [DecidableRel G.Adj] (R : Finset (Fin n)) :
    45 DecidableRel (restriction G R).Adj := inferInstanceAs (DecidableRel (G.comap (label R)).Adj)
    46
    47def ratio (B n : ℕ) : ℚ := B * ((Nat.log2 (2 * n) : ℚ) + 1)
    48def scale (n ℓ k : ℕ) : ℚ := (ℓ : ℚ) * n ^ 2 / (3 * k)
    49
    50def largeCapacity (B n r ℓ k : ℕ) : ℚ≥0 :=
    51 (Nat.ceil (ratio B n * (2 * r : ℕ) ^ 2 / scale n ℓ k) + 1 : ℕ)
    52
    53def orient {n : ℕ} (A B : Finset (Fin n)) : Finset (Fin n) × Finset (Fin n) :=
    54 if B.card ≤ A.card then (A, B) else (B, A)
    55
    56def step {n : ℕ} (solve : List ℕ → List ℕ) (G : SimpleGraph (Fin n)) [DecidableRel G.Adj]
    57 (x : Fin n → ℚ≥0) (B ℓ k : ℕ) (R : Finset (Fin n)) :
    58 Finset (Fin n) × Finset (Fin n) :=
    59 let I := splitInstance (restriction G R) (fun v => x (label R v))
    60 (largeCapacity B n R.card ℓ k)
    61 let U := decodeCut (2 * R.card) (solve (encodeInput .directed I))
    62 let shores := orient (leftShore U) (rightShore U)
    63 (shores.1.image (label R), shores.2.image (label R))
    64
    65def cuts {n : ℕ} (cut : Finset (Fin n) → Finset (Fin n) × Finset (Fin n)) :
    66 ℕ → Finset (Fin n) → List (Finset (Fin n) × Finset (Fin n))
    67 | 0, _ => []
    68 | fuel + 1, R =>
    69 if 3 * R.card ≤ 2 * n then []
    70 else let s := cut R
    71 s :: cuts cut fuel (s.1 \ s.2)
    72
    73def separator {n : ℕ} (cs : List (Finset (Fin n) × Finset (Fin n))) : Finset (Fin n) :=
    74 cs.foldr (fun s S => (s.1 ∩ s.2) ∪ S) ∅
    75
    76def remaining {n : ℕ} (start : Finset (Fin n))
    77 (cs : List (Finset (Fin n) × Finset (Fin n))) : Finset (Fin n) :=
    78 if h : cs.length = 0 then start else
    79 let s := cs.get ⟨cs.length - 1, Nat.sub_lt (Nat.pos_of_ne_zero h) Nat.zero_lt_one⟩
    80 s.1 \ s.2
    81
    82def pieces {n : ℕ} (cs : List (Finset (Fin n) × Finset (Fin n))) :
    83 Option (Fin cs.length) → Finset (Fin n)
    84 | none => remaining Finset.univ cs
    85 | some i => (cs.get i).2 \ (cs.get i).1
    86
    87open GraphClasses PowerBagBounds
    88open Entropy RepeatedCutAccounting
    89
    90axiom light_separator (C : GraphClass) (hereditary : IsHereditary C)
    91 (a A : ℕ) (ha : 0 < a) (hA : 0 < A) (class_bound : HasPowerBagBound C a A) :
    92 ∃ (solve : List ℕ → List ℕ) (K B : ℕ), RamPolytime solve ∧
    93 0 < K ∧ 0 < B ∧ ∀ (n : ℕ) (G : SimpleGraph (Fin n)) [DecidableRel G.Adj],
    94 G ∈ C n → 0 < n → ∀ (x : Fin n → ℚ≥0) (k p ℓ : ℕ),
    95 0 < k → 0 < p → 0 < ℓ →
    96 (∀ v, (x v : ℝ) ≤ 1) → (∑ v, (x v : ℝ)) ≤ k →
    97 edgeCost G (fun v => (x v : ℝ)) ≤ (k : ℝ) ^ 2 / p →
    98 (K : ℝ) * ((ℓ : ℝ) + 1) ^ (4 * a + 2) ≤ k →
    99 (2 * K : ℝ) * ((ℓ : ℝ) + 1) ^ (4 * a + 2) ≤ p →
    100 let cs := cuts (step solve G x B ℓ k) n Finset.univ
    101 cs.length ≤ n ∧
    102 IsBalancedSeparator G
    103 (ComputedSeparators.separator cs) ∧
    104 cost (fun v => (x v : ℝ)) (ComputedSeparators.separator cs) ≤
    105 12 * (ratio B n : ℝ) * k / ℓ ∧
    106 ∃ P : Partition G
    107 (ComputedSeparators.separator cs) (Option (Fin cs.length)),
    108 (∀ i, P.vertices i = pieces cs i) ∧ ∀ i, 3 * (P.vertices i).card ≤ 2 * n
    109
    110end Lax263307.ComputedSeparators
    111
    Show Proof
    Formalization notes

    All labels, rational capacities, output decoding, shore choices, and the bounded cut-list loop are computable. The solver retains its actual registered RAM polynomial-time guarantee. This statement gives the wrapper's functional correctness. The main theorem also verifies its RAM implementation and running time.

    Discussion

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

    Loading discussion…