Documentation

CslibFrontier.Computability.Circuit.Clique

The clique function #

A Boolean function of the possible edges of a graph on n vertices, the unordered pairs of distinct vertices (Cslib.BitString.Graph.Edge), reads its input as a graph (Cslib.BitString.Graph.graph). The k-clique function Cslib.Circuits.clique n k says whether that graph has a clique of k vertices.

Two families of inputs are used to prove lower bounds for it: the complete graph on a set of k vertices (Cslib.Circuits.Clique.ofFinset), which has a k-clique, and the complete multipartite graph of a colouring with fewer than k colours (Cslib.Circuits.Clique.ofColoring), which has none. A Boolean function separates the graphs with a k-clique from the r-colourable graphs (Cslib.Circuits.Clique.Separates) when it is true on the former and false on the latter, as k-clique does for r < k. The test inputs lie in these two classes, so the method of approximations, which reads a circuit only on the test inputs, bounds the size of every monotone circuit computing a separating function, not only of those computing k-clique.

Main definitions #

Main results #

The input x contains all edges between the vertices of s.

Instances For
    @[instance_reducible]

    Decidability of Contains x s.

    theorem Cslib.Circuits.Clique.Contains.mono {n : ℕ} {x : Fin (BitString.Graph.edgeCount n) → Bool} {s t : Finset (Fin n)} (hst : s ⊆ t) (h : Contains x t) :

    Containing all edges inside a vertex set is antitone in the vertex set.

    Containing all edges inside s is being a clique of the graph.

    The complete graph on s, as an input.

    @[simp]

    ofFinset s sets an edge to true exactly when both of its endpoints lie in s.

    The complete graph on s contains all edges between vertices of s.

    theorem Cslib.Circuits.Clique.subset_of_contains_ofFinset {n : ℕ} {s t : Finset (Fin n)} (ht : 2 ≤ t.card) (h : Contains (ofFinset s) t) :
    t ⊆ s

    In the complete graph on s, the sets of at least two vertices with all edges inside are the subsets of s.

    noncomputable def Cslib.Circuits.Clique.ofColoring {n r : ℕ} (c : Fin n → Fin r) :

    The complete multipartite graph of a colouring, as an input: two vertices are adjacent when they have different colours.

    theorem Cslib.Circuits.Clique.contains_ofColoring_iff {n r : ℕ} {c : Fin n → Fin r} {s : Finset (Fin n)} :

    In the graph of a colouring, the sets with all edges inside are those coloured injectively.

    The graph of a colouring with r colours is r-colourable.

    theorem Cslib.Circuits.Clique.card_le_of_contains_ofColoring {n r : ℕ} {c : Fin n → Fin r} {s : Finset (Fin n)} (h : Contains (ofColoring c) s) :
    s.card ≤ r

    A set with all edges inside in the graph of a colouring with r colours has at most r vertices.

    @[reducible, inline]

    The sets of k vertices.

    @[reducible, inline]

    The colourings of n vertices with r colours.

    The k-clique function on graphs with n vertices: whether the graph of the input has a clique of k vertices.

    clique n k x is true if and only if graph x has a k-clique.

    theorem Cslib.Circuits.clique_ofFinset {n k : ℕ} {s : Finset (Fin n)} (hs : s.card = k) :

    The complete graph on k vertices has a k-clique.

    theorem Cslib.Circuits.clique_ofColoring {n k r : ℕ} (hr : r < k) (c : Fin n → Fin r) :

    The complete multipartite graph of a colouring with fewer than k colours has no k-clique.

    A Boolean function of the possible edges separates the graphs with a k-clique from the r-colourable graphs when it is true on the former and false on the latter.

    A function separating the graphs with a k-clique from the r-colourable graphs is true on the complete graph on a k-set.

    A function separating the graphs with a k-clique from the r-colourable graphs is false on the complete multipartite graph of a colouring with r colours.

    theorem Cslib.Circuits.Clique.separates_clique {n k r : ℕ} (hr : r < k) :
    Separates k r (clique n k)

    For r < k, k-clique separates the graphs with a k-clique from the r-colourable graphs: an r-colouring is injective on every clique.

    theorem Cslib.Circuits.clique_le_clique {n k : ℕ} {x y : Fin (BitString.Graph.edgeCount n) → Bool} (h : ∀ (i : Fin (BitString.Graph.edgeCount n)), x i ≤ y i) :
    clique n k x ≤ clique n k y

    The clique function is monotone.