The recursive unweighted approximation algorithm

Lax263307.RecursiveAlgorithm · concepts/Lax263307/RecursiveAlgorithm.lean · lax-263307

definition

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

    Definition

    The algorithm uses exhaustive search for small targets and projected round-or-cut search for larger targets. Recursive calls work on canonically labeled balanced parts. A descending target search selects the final set.

    Concept map
    90 concepts; 1 descendant hidden
    100%
    Soundness of exact rational LP certificatesCertificates of infeasibilityLinear programs and their dualsExact polynomial-time linear programmingon a word RAMExact rational solution certificatesBinary-size encoding of rational linearprogramsCertificates of unboundednessTreewidthExplicit integer budgets for the round-or-cutalgorithmTreewidth transfer through analmost-embeddingBalanced closed parts certify a balancedseparatorProtected balls for the rounded ellipsoidmethodInteger coefficients of recursive separatingcutsValid separating inequalities fromindependent-set boundsComputing the recursive answer-or-cutdecisionComputing balanced light separators fromregistered flow-cut outputsConditioning graph routes on uniformendpointsConditioning preserves bounded costs andtotal massJoint distributions for the entropy-decreaseargumentBags meeting a connected vertex setTree-decomposition transfer throughconnected vertex representationsA computable catalog and index for momentcoordinatesA width obstruction from sparse costs andbounded route loadsCoupled route sampling with shared verteximagesA good coupled sample with bounded totalroute sizeRepeated cuts yield a balanced lightseparatorInfinity-distance projection LP and itsseparating dualEdge-sublinear separators implyedge-sublinear decomposition bagsTreewidth loss under edge deletionStrongly edge-sublinear separatorsEntropy and adjacency massEntropy lies between zero and the logarithmof the orderEdge mass bounds the average entropydecreaseExhaustive search for small independent-settargetsFinite product sampling and coordinatemarginalsThe split flow-cut certificate must give acheap separationHereditary graph classesConditioning with a quantitative momentlower boundExact rational search above the conditioningmoment floorRecursive rounding after discarding lightpartsRestricting 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 exacthullThe moment relaxation as an explicitrational linear programThe recursive oracle near the momentrelaxationSparse bounded-load route distributions areimpossibleCollision and length bounds forindependently sampled pathsInteger power bounds on class decompositionbagsThe projected round-or-cut searchRational conditioning and its candidate listRational cut normals preserve protectedcubes after scalingRational LP certificates for distanceprojectionDepth and approximation loss of balancedrecursionThe recursive unweighted approximationalgorithmCombining independent sets on separatedpartsDecoding rational LP certificatesCumulative separator cost over disjointdiscarded shoresA bounded rounded ellipsoid search withanswer-or-cut repliesGraph-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 loadsQuantitative gaps for recursive componentcutsDescending target search in SolveVertex 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

    Lean source view on GitHub

    1import Lax263307.ProjectedOracle
    2import Lax263307.ExhaustiveTargets
    3import Lax263307.RecursionDepth
    4import Lax263307.TargetSearch
    5
    6/-!
    7---
    8title: The recursive unweighted approximation algorithm
    9type: definition
    10---
    11The algorithm uses exhaustive search for small targets and projected
    12round-or-cut search for larger targets. Recursive calls work on canonically
    13labeled balanced parts. A descending target search selects the final set.
    14
    15# Formalization notes
    16
    17The fuel parameter bounds recursion depth. `Correct` records the size
    18guarantee for a returned independent set and the upper bound certified by
    19failure. The accuracy denominator is
    204(depth⁡(n)+1)⌈1/ε⌉4(\operatorname{depth}(n)+1)\lceil1/\varepsilon\rceil.
    21-/
    22
    23namespace Lax263307.RecursiveAlgorithm
    24
    25open ExhaustiveTargets (findIndependentSet)
    26open RecursionDepth (depth)
    27open ComputedSeparators AlgorithmParameters
    28
    29def attempt (lp flow : List ℕ → List ℕ) (a K B D : ℕ) (fuel : ℕ)
    30 {n : ℕ} (G : SimpleGraph (Fin n)) [DecidableRel G.Adj] (k : ℕ) : Option (Finset (Fin n)) :=
    31 if k ≤ cutoff a K B n D ∨ n ≤ 1 then findIndependentSet G k
    32 else if n < k then none
    33 else match fuel with
    34 | 0 => none
    35 | fuel + 1 => ProjectedOracle.search lp flow a K B D G k
    36 (fun C t => (attempt lp flow a K B D fuel (restriction G C) t).map
    37 (fun I => I.image (label C)))
    38termination_by fuel
    39
    40def solve {n : ℕ} (lp flow : List ℕ → List ℕ) (a K B D : ℕ)
    41 (G : SimpleGraph (Fin n)) [DecidableRel G.Adj] : Finset (Fin n) × ℕ :=
    42 TargetSearch.search (attempt lp flow a K B D (depth n) G) n
    43
    44def Correct {n : ℕ} (G : SimpleGraph (Fin n)) (k fuel D : ℕ) : Option (Finset (Fin n)) → Prop
    45 | some I => G.IsIndepSet (I : Set (Fin n)) ∧ (1 - 4*(1/(D:ℝ)))^fuel * (k:ℝ) ≤ I.card
    46 | none => ∀ J : Finset (Fin n), G.IsIndepSet (J : Set (Fin n)) → J.card < k
    47
    48def accuracyDenominator (n : ℕ) (ε : ℚ) : ℕ :=
    49 4 * (depth n + 1) * ⌈ε⁻¹⌉₊
    50
    51def independentSet {n : ℕ} (lp flow : List ℕ → List ℕ) (a K B : ℕ)
    52 (G : SimpleGraph (Fin n)) [DecidableRel G.Adj] (ε : ℚ) : Finset (Fin n) :=
    53 (solve lp flow a K B (accuracyDenominator n ε) G).1
    54
    55end Lax263307.RecursiveAlgorithm
    56
    Formalization notes

    The fuel parameter bounds recursion depth. CorrectCorrect records the size guarantee for a returned independent set and the upper bound certified by failure. The accuracy denominator is 4(depth⁡(n)+1)⌈1/ε⌉4(\operatorname{depth}(n)+1)\lceil1/\varepsilon\rceil.

    Discussion

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

    Loading discussion…