The encoding of crawling instances is faithful and size-honest
Lax117614.CrawlEncoding · concepts/Lax117614/CrawlEncoding.lean · lax-117614
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Theorem
A packaged crawling instance has a crawl within budget exactly when the website graph it encodes is a yes-instance of the graph crawling problem; the encoded website graph has at most as many pages as the size of the instance; and the size of the instance is at most for pages. The encoding neither pads nor compresses.
Concept map
Evidence
Lean source view on GitHub
| 1 | import Lax117614.WebsiteGraphs |
| 2 | import Lax117614.GraphCrawlingProblem |
| 3 | import Lax117614.CrawlInstances |
| 4 | |
| 5 | /-! |
| 6 | --- |
| 7 | title: The encoding of crawling instances is faithful and size-honest |
| 8 | type: theorem |
| 9 | --- |
| 10 | A packaged crawling instance has a crawl within budget exactly when the |
| 11 | website graph it encodes is a yes-instance of the graph crawling problem; |
| 12 | the encoded website graph has at most as many pages as the size of the |
| 13 | instance; and the size of the instance is at most for |
| 14 | pages. The encoding neither pads nor compresses. |
| 15 | -/ |
| 16 | |
| 17 | namespace Lax117614.CrawlEncoding |
| 18 | |
| 19 | open FirstOrder FirstOrder.Language Structure |
| 20 | open Lax117614.WebsiteGraphs Lax117614.GraphCrawlingProblem Lax117614.CrawlInstances |
| 21 | |
| 22 | /-- The encoding is faithful: a packaged instance has a crawl within budget |
| 23 | exactly when the website graph it encodes is a yes-instance of |
| 24 | GraphCrawling. -/ |
| 25 | axiom crawlEncoding_faithful : ∀ i : CrawlInstance, |
| 26 | ConcreteCrawlHolds i ↔ GraphCrawling (Fin (i.n + 1)) |
| 27 | |
| 28 | /-- No padding: the encoded structure has at most as many elements as the |
| 29 | textbook size of the instance. -/ |
| 30 | axiom crawlSize_ge_card : ∀ i : CrawlInstance, i.n + 1 ≤ crawlSize i |
| 31 | |
| 32 | /-- No compression: the textbook size of an instance is polynomial in the |
| 33 | number of elements of the encoded structure. -/ |
| 34 | axiom crawlSize_le_card : ∀ i : CrawlInstance, crawlSize i ≤ 4 * (i.n + 2) ^ 2 |
| 35 | |
| 36 | end Lax117614.CrawlEncoding |
| 37 |
Used by
none
From Mathlib
none
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments