Numbering finite graphs and the size of their encoding
Lax253009.GraphEncoding · concepts/Lax253009/GraphEncoding.lean · lax-253009
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Theorem
A bijective numbering of the vertices of a finite simple graph gives a Boolean adjacency matrix on with the same clique number. Its binary encoding has exactly bits. These facts connect abstract consistency graphs to the input representation used by approximation algorithms.
Concept map
Evidence
Lean source view on GitHub
| 1 | import Lax253009.Graphs |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Numbering finite graphs and the size of their encoding |
| 6 | type: theorem |
| 7 | --- |
| 8 | A bijective numbering of the vertices of a finite simple graph gives a |
| 9 | Boolean adjacency matrix on with the same clique number. |
| 10 | Its binary encoding has exactly bits. These facts connect abstract |
| 11 | consistency graphs to the input representation used by approximation |
| 12 | algorithms. |
| 13 | -/ |
| 14 | |
| 15 | namespace Lax253009.GraphEncoding |
| 16 | |
| 17 | open Graphs |
| 18 | |
| 19 | def numbered {α : Type} {n : ℕ} (G : SimpleGraph α) [DecidableRel G.Adj] |
| 20 | (e : Fin n ≃ α) : Graph n where |
| 21 | adjacent u v := decide (G.Adj (e u) (e v)) |
| 22 | loopless v := by simp |
| 23 | symmetric u v := by simp only [G.adj_comm] |
| 24 | |
| 25 | axiom cliqueNumber_numbered {α : Type} [Fintype α] {n : ℕ} |
| 26 | (G : SimpleGraph α) [DecidableRel G.Adj] (e : Fin n ≃ α) : |
| 27 | (numbered G e).cliqueNumber = G.cliqueNum |
| 28 | |
| 29 | axiom encoding_length {n : ℕ} (G : Graph n) : |
| 30 | G.encode.length = n + 1 + n * n |
| 31 | |
| 32 | end Lax253009.GraphEncoding |
| 33 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments