Sizes of encodings and the reduction graph
Lax689614.Sizes · concepts/Lax689614/Sizes.lean · lax-689614
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Theorem
The graph encoding has bits. The formula encoding has bits, where and are its variable and clause counts. The reduction graph has exactly vertices. These bounds account explicitly for the unary size prefixes and incidence matrices; they are separate from the running-time proof of the reduction.
Concept map
Evidence
Lean source view on GitHub
| 1 | import Lax689614.Construction |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Sizes of encodings and the reduction graph |
| 6 | type: theorem |
| 7 | --- |
| 8 | The graph encoding has bits. The formula encoding has |
| 9 | bits, where and are its variable and clause counts. |
| 10 | The reduction graph has exactly vertices. |
| 11 | These bounds account explicitly for the unary size prefixes and incidence |
| 12 | matrices; they are separate from the running-time proof of the reduction. |
| 13 | -/ |
| 14 | |
| 15 | namespace Lax689614.Sizes |
| 16 | |
| 17 | axiom graph_length (G : Encoding.Graph) : |
| 18 | (Encoding.graphWord G).length = G.vertices ^ 2 + G.vertices + 1 |
| 19 | |
| 20 | axiom formula_length (φ : PositiveCNF.Formula) : |
| 21 | (Encoding.formulaWord φ).length = |
| 22 | φ.clauses.length * φ.nvars + φ.nvars + φ.clauses.length + 2 |
| 23 | |
| 24 | axiom construction_size (φ : PositiveCNF.Formula) : |
| 25 | Construction.size φ = 13 * φ.nvars + 4 * φ.clauses.length + 18 |
| 26 | |
| 27 | end Lax689614.Sizes |
| 28 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments