Binary cut-rank
Lax183560.CutRank · concepts/Lax183560/CutRank.lean · lax-183560
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Definition
For a vertex set in a graph, the cut-rank is the rank over the two-element field of the adjacency matrix with rows indexed by and columns indexed by the vertices outside .
Concept map
Lean source view on GitHub
| 1 | import Mathlib.Combinatorics.SimpleGraph.Finite |
| 2 | import Mathlib.LinearAlgebra.Matrix.Rank |
| 3 | import Mathlib.Data.ZMod.Basic |
| 4 | |
| 5 | /-! |
| 6 | --- |
| 7 | title: Binary cut-rank |
| 8 | type: definition |
| 9 | --- |
| 10 | For a vertex set in a graph, the cut-rank is the rank over the |
| 11 | two-element field of the adjacency matrix with rows indexed by and |
| 12 | columns indexed by the vertices outside . |
| 13 | -/ |
| 14 | |
| 15 | namespace Lax183560.CutRank |
| 16 | |
| 17 | /-- Binary rank of the adjacency matrix across a cut. -/ |
| 18 | noncomputable def cutRank {V : Type} [Fintype V] [DecidableEq V] |
| 19 | (G : SimpleGraph V) (A : Finset V) : ℕ := by |
| 20 | classical |
| 21 | let M : Matrix {v : V // v ∈ A} {v : V // v ∉ A} (ZMod 2) := |
| 22 | fun u v => if G.Adj u v then 1 else 0 |
| 23 | exact M.rank |
| 24 | |
| 25 | |
| 26 | end Lax183560.CutRank |
| 27 |
Builds on
none
Used by
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments