Graph crawling is NP-complete

lax-117614·formalized by Pierre Senellart @PierreSenellart · Claude (Anthropic)·registered·created ·GitHub @19c18a9·Lean v4.33.0 epoch · mathlib db584cd6d46c

Loading review…

Sign in with ORCID

Community review

Flags

Each flag is tied to a public ORCID identity and explains why this submission may be incorrect.

No flags have been submitted.

    Community review

    Flag this submission

    State precisely what appears incorrect. This explanation will be public under your ORCID name.

    Abstract

    The NP-completeness of graph crawling, the decision problem behind focused Web crawling in Gauquier, Manolescu and Senellart, “Efficient Crawling for Scalable Web Data Acquisition” (EDBT 2026), formalized in the descriptive-complexity library and stated on the archive together with the paper's extended version (arXiv 2602.11874), whose Proposition 4 and its proof are marked. A website is a directed graph of pages and hyperlinks with a root, target pages and a budget; a crawl is a rooted subtree; the problem asks whether some crawl reaches every target within the budget, at unit page costs.

    The concepts state the problem both ways and relate them. On finite structures, in the sense of the NP core registered as lax-904597, a website graph is a structure with the links, the root, the targets and a marked set whose cardinality is the budget, and GraphCrawling is NP-complete: membership by an existential second-order definition, hardness by an ordered first-order reduction from Set Cover, the paper's reduction, with Set Cover's NP-completeness assumed from the catalog registered as lax-799700. On packaged instances, the data a user handles, a computable encoder produces the structure, faithfully and with neither padding nor compression, and a computable decoder reads an instance back off any raw relation table with exactly one root; graph crawling restricted to such well-formed websites is NP-complete too.

    The proofs are those of version 1.2.2 of the library, sliced to what these statements use; they assume the core's closure laws and the catalog's statements for Set Cover, so the archive's proof network shows the reduction. The library and its documentation are at https://github.com/PierreSenellart/descriptive-complexity and https://pierresenellart.github.io/descriptive-complexity/DescriptiveComplexity.html. The Lean code was written with the assistance of several Claude models; the design and the statements are the author's.

    View annotated paper

    32 pages · 5 marked passages

    Concepts

    Concept map
    13 concepts
    100%
    Proven claimDefinitionThis submissionOther submissionA → B: B builds on A

    Proofs

    Proof networkview on GitHub

    100%
    assumptions conclusionProven claimStatement 1, 2, … of a claim with several statementsClaim from this submission / another submissionProof — open large view for details
    Proof list

    Proof code is not displayed; the archive records each proof's checked relationship between claims.

    Related submissions

    Submission map

    100%
    This submissionOther submissionA → B: B's concepts build on A

    Cite this

    This is only the formalizers. The authors of the formalized results may be different (see References).

    @misc{lax-117614,
      author = {Pierre Senellart and Claude (Anthropic)},
      title = {Graph crawling is NP-complete},
      year = {2026},
      howpublished = {Lax Archive, lax-117614},
      url = {https://laxarchive.org/lax-117614/},
    }

    References

    1. Antoine Gauquier, Ioana Manolescu and Pierre Senellart. Efficient Crawling for Scalable Web Data Acquisition. In Proceedings of the 29th International Conference on Extending Database Technology, EDBT 2026, 2026. doi:10.48786/edbt.2026.30
    2. Antoine Gauquier, Ioana Manolescu and Pierre Senellart. Efficient Crawling for Scalable Web Data Acquisition (Extended Version). 2026. arXiv:2602.11874
    3. Pierre Senellart. DescriptiveComplexity: Completeness by First-Order Reductions in Lean. 2026. doi:10.5281/zenodo.21678423 · github.com/PierreSenellart/descriptive-complexity

    Discussion

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

    Loading discussion…