Maximal biconnected blocks and their attachment weights

Lax869952.BlockGeometry · concepts/Lax869952/BlockGeometry.lean · lax-869952

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

    A block is a maximal vertex set of size at least three that stays connected after removal of any one vertex. The block graph is induced on that set and retains the ambient vertex type. The attachment of a block vertex vv contains each player with a walk whose first entry into the block is vv. Its weight is the cardinality of that attachment.

    Concept map
    1 concept; 2 descendants hidden
    100%
    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on A

    Lean source view on GitHub

    1import Mathlib.Combinatorics.SimpleGraph.Metric
    2import Mathlib.Data.Finset.Powerset
    3
    4/-!
    5---
    6title: Maximal biconnected blocks and their attachment weights
    7type: definition
    8---
    9A block is a maximal vertex set of size at least three that stays connected
    10after removal of any one vertex. The block graph is induced on that set
    11and retains the ambient vertex type. The attachment of a block vertex vv
    12contains each player with a walk whose first entry into the block is vv.
    13Its weight is the cardinality of that attachment.
    14-/
    15
    16namespace Lax869952.BlockGeometry
    17
    18variable {V : Type*} {G : SimpleGraph V}
    19
    20/-- The induced two-connected vertex set, expressed in ambient walks. -/
    21structure TwoConnectedOn (G : SimpleGraph V) (S : Finset V) : Prop where
    22 card_ge_three : 3 ≤ S.card
    23 walk (z : V) {x y : V} (hx : x ∈ S) (hy : y ∈ S) (hxz : x ≠ z) (hyz : y ≠ z) :
    24 ∃ p : G.Walk x y, (∀ a ∈ p.support, a ∈ S) ∧ z ∉ p.support
    25
    26/-- Maximality excludes bridge blocks. -/
    27structure IsBiconnectedBlock (G : SimpleGraph V) (S : Finset V) : Prop where
    28 twoConnected : TwoConnectedOn G S
    29 maximal (T : Finset V) : S ⊆ T → TwoConnectedOn G T → T ⊆ S
    30
    31def blockGraph (G : SimpleGraph V) (S : Finset V) : SimpleGraph V :=
    32 ((⊤ : G.Subgraph).induce (↑S : Set V)).spanningCoe
    33
    34def FirstEntryInto (S : Finset V) {x y : V} (p : G.Walk x y) : Prop :=
    35 ∀ a ∈ p.support, a ∈ S → a = y
    36
    37noncomputable def blockAttachment {n : ℕ} (G : SimpleGraph (Fin n))
    38 (S : Finset (Fin n)) (v : Fin n) : Finset (Fin n) := by
    39 classical
    40 exact Finset.univ.filter (fun x => ∃ p : G.Walk x v, FirstEntryInto S p)
    41
    42end Lax869952.BlockGeometry
    43

    Discussion

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

    Loading discussion…