Documentation

Reconstruction.KellyLemma

Kelly's Lemma (Subgraph Counting) #

Kelly's Lemma is the central counting tool in reconstruction theory. It states that for any graph F with fewer vertices than G, the number of induced copies of F in G is reconstructible from the deck.

Main definitions #

Main results #

References #

def SimpleGraph.copyFinset {W : Type u_1} [Fintype W] {V : Type u_2} [Fintype V] (F : SimpleGraph W) (G : SimpleGraph V) :

The set of Fintype.card W-element subsets S ⊆ V whose induced subgraph G[S] is isomorphic to F.

Equations
Instances For
    def SimpleGraph.subgraphCount {W : Type u_1} [Fintype W] {V : Type u_2} [Fintype V] (F : SimpleGraph W) (G : SimpleGraph V) :

    The number of induced copies of F in G: how many k-element subsets S ⊆ V(G) satisfy G[S] ≅ F.

    Equations
    Instances For
      theorem SimpleGraph.mem_copyFinset {W : Type u_1} [Fintype W] {V : Type u_2} [Fintype V] (F : SimpleGraph W) (G : SimpleGraph V) (S : Finset V) :
      theorem SimpleGraph.copyFinset_card {W : Type u_1} [Fintype W] {V : Type u_2} [Fintype V] (F : SimpleGraph W) (G : SimpleGraph V) {S : Finset V} (hS : S F.copyFinset G) :

      Every set in copyFinset F G has cardinality Fintype.card W.

      theorem SimpleGraph.subgraphCount_eq_of_iso {W : Type u_1} [Fintype W] {V₁ : Type u_3} [Fintype V₁] {V₂ : Type u_4} [Fintype V₂] {G₁ : SimpleGraph V₁} {G₂ : SimpleGraph V₂} (F : SimpleGraph W) (φ : G₁ ≃g G₂) :

      subgraphCount is invariant under graph isomorphism.

      theorem SimpleGraph.subgraphCount_deleteVert {W : Type u_1} [Fintype W] {V : Type u_2} [Fintype V] [DecidableEq V] (F : SimpleGraph W) (G : SimpleGraph V) (v : V) :
      F.subgraphCount (G.deleteVert v) = {SF.copyFinset G | vS}.card

      Bridge lemma: copies of F in G - v biject with copies of F in G that avoid v.

      theorem SimpleGraph.subgraphCount_sum {W : Type u_1} [Fintype W] {V : Type u_2} [Fintype V] (F : SimpleGraph W) (G : SimpleGraph V) [DecidableEq V] (_hcard : Fintype.card W Fintype.card V) :

      Kelly's counting identity (double-counting). For any graph F on k vertices and G on n ≥ k vertices: (n - k) * s(F, G) = ∑ v, s(F, G - v).

      theorem SimpleGraph.SameDeck.subgraphCount_eq {W : Type u_1} [Fintype W] {V : Type u_2} [Fintype V] {G H : SimpleGraph V} (h : G.SameDeck H) (F : SimpleGraph W) (hcard : Fintype.card W < Fintype.card V) :

      Kelly's Lemma (reconstructibility corollary). If two graphs have the same deck and |V(F)| < |V(G)|, then they have the same number of induced copies of F.