Replacing each vertex by an odd path
Lax956329.PortPaths · concepts/Lax956329/PortPaths.lean · lax-956329
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Lemma
Replace each vertex by a path on vertices. Attach each inter-path edge to an even index at each end, indexing from . Selecting every even index gains one vertex above the baseline of . The paths attaining this gain correspond to an independent set in the original graph.
Concept map
Lean source view on GitHub
| 1 | import Lax956329.Instances |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Replacing each vertex by an odd path |
| 6 | type: lemma |
| 7 | --- |
| 8 | Replace each vertex by a path on vertices. Attach each inter-path edge |
| 9 | to an even index at each end, indexing from . Selecting every even index |
| 10 | gains one vertex above the baseline of . The paths attaining this gain |
| 11 | correspond to an independent set in the original graph. |
| 12 | -/ |
| 13 | |
| 14 | namespace Lax956329.PortPaths |
| 15 | |
| 16 | variable {V : Type} |
| 17 | abbrev Position (h : ℕ) := Fin (2 * h + 1) |
| 18 | |
| 19 | def graph (J : SimpleGraph V) (h : ℕ) (port : V → V → Fin (h + 1)) : |
| 20 | SimpleGraph (V × Position h) := |
| 21 | SimpleGraph.fromRel fun u v => |
| 22 | (u.1 = v.1 ∧ u.2.val + 1 = v.2.val) ∨ |
| 23 | (J.Adj u.1 v.1 ∧ u.2.val = 2 * (port u.1 v.1).val ∧ v.2.val = 2 * (port v.1 u.1).val) |
| 24 | |
| 25 | axiom independence [Fintype V] (J : SimpleGraph V) (h : ℕ) (port : V → V → Fin (h + 1)) : |
| 26 | (graph J h port).indepNum = h * Fintype.card V + J.indepNum |
| 27 | |
| 28 | end Lax956329.PortPaths |
| 29 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments