The consistency graph of accepting local views
Lax253009.ConsistencyGraph · concepts/Lax253009/ConsistencyGraph.lean · lax-253009
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
There is a vertex for each pair consisting of a random choice and an accepting local view. Two vertices are adjacent when their random choices differ and their partial assignments agree wherever both are defined. This is the consistency graph used in the PCP-to-clique reduction.
Excluding edges between vertices with the same random choice ensures that a clique contains at most one accepting view for each choice, even when the supplied lists contain overlapping views.
Concept map
Lean source view on GitHub
| 1 | import Lax253009.LocalTests |
| 2 | import Mathlib.Combinatorics.SimpleGraph.Clique |
| 3 | import Mathlib.Data.Fintype.Sigma |
| 4 | |
| 5 | /-! |
| 6 | --- |
| 7 | title: The consistency graph of accepting local views |
| 8 | type: definition |
| 9 | --- |
| 10 | There is a vertex for each pair consisting of a random choice and an |
| 11 | accepting local view. Two vertices are adjacent when their random choices |
| 12 | differ and their partial assignments agree wherever both are defined. |
| 13 | This is the consistency graph used in the PCP-to-clique reduction. |
| 14 | |
| 15 | Excluding edges between vertices with the same random choice ensures that |
| 16 | a clique contains at most one accepting view for each choice, even when |
| 17 | the supplied lists contain overlapping views. |
| 18 | -/ |
| 19 | |
| 20 | namespace Lax253009.ConsistencyGraph |
| 21 | |
| 22 | open LocalTests |
| 23 | |
| 24 | abbrev Vertex {r m : ℕ} (C : System r m) := |
| 25 | (seed : Fin r) × {a // a ∈ C.accepting seed} |
| 26 | |
| 27 | def graph {r m : ℕ} (C : System r m) : SimpleGraph (Vertex C) where |
| 28 | Adj u v := u.1 ≠ v.1 ∧ Compatible u.2.1 v.2.1 |
| 29 | symm := ⟨fun _ _ h ↦ ⟨Ne.symm h.1, |
| 30 | fun i x y hx hy ↦ (h.2 i y x hy hx).symm⟩⟩ |
| 31 | loopless := ⟨fun _ h ↦ h.1 rfl⟩ |
| 32 | |
| 33 | end Lax253009.ConsistencyGraph |
| 34 |
Builds on
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments