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

Connected matchings

Lax342547.ConnectedMatching · concepts/Lax342547/ConnectedMatching.lean · lax-342547

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 connected matching is a matching whose distinct edges are joined by an edge. Its maximum size is the connected-matching number cm(G)\mathrm{cm}(G).

    Concept map
    1 concept
    100%
    DefinitionThis conceptDescendants are omitted for concepts with more than 10 descendants.

    Lean source view on GitHub

    1/-
    2Adapted from OpenAI, openai/math, commit
    3adc7f1241b42e322a6451854ab7e4b4c146bf78a (Apache-2.0).
    4Changes: Lax package separation, namespaces, explicit variables, and archive annotations.
    5-/
    6import Mathlib.Combinatorics.SimpleGraph.Clique
    7
    8/-!
    9---
    10title: Connected matchings
    11type: definition
    12---
    13A connected matching is a matching whose distinct edges are joined by an edge.
    14Its maximum size is the connected-matching number cm(G)\mathrm{cm}(G).
    15-/
    16
    17namespace Lax342547.ConnectedMatching
    18
    19universe u
    20variable {V : Type u}
    21
    22/-- A finite matching whose edges are pairwise touching: each member is a
    23two-vertex clique, and distinct members are disjoint and joined by an edge. -/
    24def IsTouchingMatching (G : SimpleGraph V) (M : Finset (Finset V)) : Prop :=
    25 (∀ e ∈ M, e.card = 2 ∧ G.IsClique (e : Set V)) ∧
    26 (∀ e ∈ M, ∀ f ∈ M, e ≠ f → Disjoint e f) ∧
    27 (∀ e ∈ M, ∀ f ∈ M, e ≠ f →
    28 ∃ v ∈ e, ∃ w ∈ f, G.Adj v w)
    29
    30/-- The supremum of the cardinalities of pairwise touching matchings.
    31For finite vertex types, this supremum is attained. -/
    32noncomputable def connectedMatchingNumber (G : SimpleGraph V) : ℕ :=
    33 sSup {n : ℕ | ∃ M : Finset (Finset V), IsTouchingMatching G M ∧ M.card = n}
    34
    35end Lax342547.ConnectedMatching
    36

    Discussion

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

    Loading discussion…