Skip to content

Graph theory def: Maximal/maximum cliques & independent sets #34962

@SnirBroshi

Description

@SnirBroshi

We have SimpleGraph.IsClique and SimpleGraph.IsIndepSet for cliques & independent sets in simple graphs.

We also have SimpleGraph.IsMaximumClique and SimpleGraph.IsMaximumIndepSet for the maximum versions.

The file Mathlib.Combinatorics.SimpleGraph.Clique also proves things about the maximal versions, using Maximal G.IsClique s and Maximal G.IsIndepSet s inline while naming theorems with "isMaximalClique" and "isMaximalIndepSet".

I suggest we're missing the following defs:

open Cardinal

def IsMaximalClique (G : SimpleGraph V) (s : Set V) :=
  Maximal G.IsClique s

def IsMaximumClique (G : SimpleGraph V) (s : Set V) :=
  MaximalFor G.IsClique (#·) s

def IsMaximalIndepSet (G : SimpleGraph V) (s : Set V) :=
  Maximal G.IsIndepSet s

def IsMaximumIndepSet (G : SimpleGraph V) (s : Set V) :=
  MaximalFor G.IsIndepSet (#·) s

where the maximum versions are intended to replace the existing structures with the same name.

I think not having the maximal versions is hurting Loogle-ability, and that we should use Maximal/MaximalFor where possible to gain access to useful API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help-wantedThe author needs attention to resolve issuest-combinatoricsCombinatorics

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions