[Merged by Bors] - feat(Combinatorics/SimpleGraph/Clique): add clique number#18446
[Merged by Bors] - feat(Combinatorics/SimpleGraph/Clique): add clique number#18446
Conversation
PR summary cc625ef21f
|
| File | Base Count | Head Count | Change |
|---|---|---|---|
| Mathlib.Combinatorics.SimpleGraph.Clique | 562 | 570 | +8 (+1.42%) |
Import changes for all files
| Files | Import difference |
|---|---|
Mathlib.Combinatorics.SimpleGraph.Triangle.Counting Mathlib.Combinatorics.SimpleGraph.Turan |
6 |
Mathlib.Combinatorics.SimpleGraph.Triangle.Basic Mathlib.Combinatorics.SimpleGraph.Triangle.Tripartite |
7 |
Mathlib.Combinatorics.SimpleGraph.Clique |
8 |
Declarations diff
+ IsClique.card_le_cliqueNum
+ IsMaximumClique
+ IsMaximumClique.isMaximalClique
+ cliqueNum
+ exists_isNClique_cliqueNum
+ isMaximalClique_iff
+ isMaximumClique_iff
+ maximumClique_card_eq_cliqueNum
+ maximumClique_exists
You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>The doc-module for script/declarations_diff.sh contains some details about this script.
|
@YaelDillies @kmill We are now defining Besides that, is there anything this PR is missing in terms of fundamental statements that you can think of? |
| /-- A maximal clique in a graph `G` is a clique that cannot be extended by adding more vertices. -/ | ||
| structure IsMaximalClique (G : SimpleGraph α) (s : Finset α) : Prop where | ||
| (clique : G.IsClique s) | ||
| (maximal : ∀ t : Finset α, G.IsClique t → s ⊆ t → t = s) |
There was a problem hiding this comment.
What is the use case of these predicates?
There was a problem hiding this comment.
You mean why define maximal cliques? Seemed sensible to include it when defining maximum cliques, but I don't think we need it for our particular application right now (unless @ooovi disagrees).
There was a problem hiding this comment.
I mean both maximal and maximum cliques
There was a problem hiding this comment.
Right now @ooovi was working on the AM-GM proof of Mantel which needs this notion. We have also in the past needed the clique number when doing some auxiliary stuff for the hypercube / sensitivity conjecture and I want to clean that up as well.
Actually both of these need the independence number (which requires a notion of independence set in the first place), for which we are preparing another PR that's intended to build on this.
There was a problem hiding this comment.
Right now @ooovi was working on the AM-GM proof of Mantel which needs this notion. We have also in the past needed the clique number when doing some auxiliary stuff for the hypercube / sensitivity conjecture and I want to clean that up as well.
How much do you need it? Is it like one lemma or two, or do you a full API about them
There was a problem hiding this comment.
For my specific proof, I need the dual of lemma maximumClique_card_eq_cliqueNum (s : Finset α) (sm : G.IsMaximumClique s) : #s = G.cliqueNum and lemma maximumClique_exists : ∃ (s : Finset α), G.IsMaximumClique s, which are the corresponding statements about maximum independent sets and the coclique number. The dualization is in a seperate PR, #18608.
YaelDillies
left a comment
There was a problem hiding this comment.
I have strain injuries to both wrists, hence must not type much. Please apologise the poor spelling, vague indications and general conciseness.
Thanks for the review and get better! |
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
b-mehta
left a comment
There was a problem hiding this comment.
This is looking in pretty good shape!
|
✌️ ooovi can now approve this pull request. To approve and merge a pull request, simply reply with |
Co-authored-by: Bhavik Mehta <bhavikmehta8@gmail.com>
|
bors r+ |
|
Already running a review |
|
bors merge |
add clique number, maximal and maximum cliques, and theorems about the relationship between clique number and the cardinality of cliques. Co-authored-by: Christoph Spiegel <christophspiegel.berlin@gmail.comm> Co-authored-by: FordUniver <61389961+FordUniver@users.noreply.github.com> Co-authored-by: ooovi <79147175+ooovi@users.noreply.github.com>
|
Pull request successfully merged into master. Build succeeded: |
add clique number, maximal and maximum cliques, and theorems about the relationship between clique number and the cardinality of cliques. Co-authored-by: Christoph Spiegel <christophspiegel.berlin@gmail.comm> Co-authored-by: FordUniver <61389961+FordUniver@users.noreply.github.com> Co-authored-by: ooovi <79147175+ooovi@users.noreply.github.com>
add clique number, maximal and maximum cliques, and theorems about the relationship between clique number and the cardinality of cliques. Co-authored-by: Christoph Spiegel <christophspiegel.berlin@gmail.comm> Co-authored-by: FordUniver <61389961+FordUniver@users.noreply.github.com> Co-authored-by: ooovi <79147175+ooovi@users.noreply.github.com>
add clique number, maximal and maximum cliques, and theorems about the relationship between clique number and the cardinality of cliques.