While this submission is a draft, it cannot be used by other submissions.

Binary cut-rank

Lax183560.CutRank · concepts/Lax183560/CutRank.lean · lax-183560

definition

Loading review…

Sign in with ORCID

Community review

Flags

Each flag is tied to a public ORCID identity and explains why this concept may be incorrect.

No flags have been submitted.

    Community review

    Flag this concept

    State precisely what appears incorrect. This explanation will be public under your ORCID name.

    No source line selected.

    Natural Language Statement

    Definition

    For a vertex set AA in a graph, the cut-rank is the rank over the two-element field of the adjacency matrix with rows indexed by AA and columns indexed by the vertices outside AA.

    Concept map
    1 concept; 1 descendant hidden
    100%
    DefinitionThis conceptRelated conceptA → B: B builds on A

    Lean source view on GitHub

    1import Mathlib.Combinatorics.SimpleGraph.Finite
    2import Mathlib.LinearAlgebra.Matrix.Rank
    3import Mathlib.Data.ZMod.Basic
    4
    5/-!
    6---
    7title: Binary cut-rank
    8type: definition
    9---
    10For a vertex set AA in a graph, the cut-rank is the rank over the
    11two-element field of the adjacency matrix with rows indexed by AA and
    12columns indexed by the vertices outside AA.
    13-/
    14
    15namespace Lax183560.CutRank
    16
    17/-- Binary rank of the adjacency matrix across a cut. -/
    18noncomputable 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
    26end Lax183560.CutRank
    27

    Discussion

    Ask a question or add context. Endorsements and structured flags are kept in the review panel above.

    Loading discussion…