Counting all independent sets and vertex covers is one-call #P-complete
Lax859101.AllSetsComplete · concepts/Lax859101/AllSetsComplete.lean · lax-859101
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Theorem
Counting all the independent sets of a graph is one-call #P-complete, by a one-call reduction from #Independent Set, and so is counting all the vertex covers, which are the complements of the independent sets.
Concept map
Evidence
Lean source view on GitHub
| 1 | import Lax904597.Problems |
| 2 | import Lax904597.Sat |
| 3 | import Mathlib.ModelTheory.Graph |
| 4 | import Lax799700.SetFamily |
| 5 | import Lax366625.CountingProblems |
| 6 | import Lax366625.CountingClasses |
| 7 | import Lax366625.WitnessCounting |
| 8 | import Lax366625.CountingSat |
| 9 | import Lax859101.OneCallReductions |
| 10 | import Lax859101.SubtractiveReductions |
| 11 | import Lax859101.CountingDnf |
| 12 | import Lax859101.CountingNaeSat |
| 13 | import Lax859101.CountingRestrictedSat |
| 14 | import Lax859101.CountingAllSets |
| 15 | import Lax859101.CountingBipartite |
| 16 | |
| 17 | /-! |
| 18 | --- |
| 19 | title: Counting all independent sets and vertex covers is one-call #P-complete |
| 20 | type: theorem |
| 21 | --- |
| 22 | Counting all the independent sets of a graph is one-call #P-complete, by a |
| 23 | one-call reduction from #Independent Set, and so is counting all the vertex |
| 24 | covers, which are the complements of the independent sets. |
| 25 | -/ |
| 26 | |
| 27 | namespace Lax859101.AllSetsComplete |
| 28 | |
| 29 | open FirstOrder FirstOrder.Language FirstOrder.Language.Structure |
| 30 | open Lax904597.Problems Lax904597.Sat Lax799700.SetFamily |
| 31 | open Lax366625.CountingProblems Lax366625.CountingClasses Lax366625.WitnessCounting |
| 32 | Lax366625.CountingSat |
| 33 | open Lax859101.OneCallReductions Lax859101.SubtractiveReductions Lax859101.CountingDnf |
| 34 | Lax859101.CountingNaeSat Lax859101.CountingRestrictedSat Lax859101.CountingAllSets |
| 35 | Lax859101.CountingBipartite |
| 36 | |
| 37 | /-- Counting all independent sets is one-call #P-complete. -/ |
| 38 | axiom sharpAllIndependentSets_sharpP_oneCallComplete : |
| 39 | OneCallComplete SharpP SharpAllIndependentSets |
| 40 | |
| 41 | /-- Counting all vertex covers is one-call #P-complete. -/ |
| 42 | axiom sharpAllVertexCovers_sharpP_oneCallComplete : |
| 43 | OneCallComplete SharpP SharpAllVertexCovers |
| 44 | |
| 45 | end Lax859101.AllSetsComplete |
| 46 |
Builds on
Lax366625.CountingClassesLax366625.CountingProblemsLax366625.CountingSatLax366625.WitnessCountingLax799700.SetFamilyLax859101.CountingAllSetsLax859101.CountingBipartiteLax859101.CountingDnfLax859101.CountingNaeSatLax859101.CountingRestrictedSatLax859101.OneCallReductionsLax859101.SubtractiveReductionsLax904597.ProblemsLax904597.Sat
Used by
none
From Mathlib
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments