Maximal biconnected blocks and their attachment weights
Lax869952.BlockGeometry · concepts/Lax869952/BlockGeometry.lean · lax-869952
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural 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 contains each player with a walk whose first entry into the block is . Its weight is the cardinality of that attachment.
Concept map
Lean source view on GitHub
| 1 | import Mathlib.Combinatorics.SimpleGraph.Metric |
| 2 | import Mathlib.Data.Finset.Powerset |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Maximal biconnected blocks and their attachment weights |
| 7 | type: definition |
| 8 | --- |
| 9 | A block is a maximal vertex set of size at least three that stays connected |
| 10 | after removal of any one vertex. The block graph is induced on that set |
| 11 | and retains the ambient vertex type. The attachment of a block vertex |
| 12 | contains each player with a walk whose first entry into the block is . |
| 13 | Its weight is the cardinality of that attachment. |
| 14 | -/ |
| 15 | |
| 16 | namespace Lax869952.BlockGeometry |
| 17 | |
| 18 | variable {V : Type*} {G : SimpleGraph V} |
| 19 | |
| 20 | /-- The induced two-connected vertex set, expressed in ambient walks. -/ |
| 21 | structure 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. -/ |
| 27 | structure 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 | |
| 31 | def blockGraph (G : SimpleGraph V) (S : Finset V) : SimpleGraph V := |
| 32 | ((⊤ : G.Subgraph).induce (↑S : Set V)).spanningCoe |
| 33 | |
| 34 | def FirstEntryInto (S : Finset V) {x y : V} (p : G.Walk x y) : Prop := |
| 35 | ∀ a ∈ p.support, a ∈ S → a = y |
| 36 | |
| 37 | noncomputable 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 | |
| 42 | end Lax869952.BlockGeometry |
| 43 |
Builds on
none
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments