[Merged by Bors] - feat: definition and properties of the Turán graph#9645
Closed
Parcly-Taxel wants to merge 18 commits intomasterfrom
Closed
[Merged by Bors] - feat: definition and properties of the Turán graph#9645Parcly-Taxel wants to merge 18 commits intomasterfrom
Parcly-Taxel wants to merge 18 commits intomasterfrom
Conversation
Parcly-Taxel
commented
Mar 20, 2024
Comment on lines
+88
to
+89
| convert Nat.lt.base _ | ||
| convert G.card_edgeFinset_sup_edge na ne |
Collaborator
Author
There was a problem hiding this comment.
Is there a nicer way to do these steps? rw [G.card_edgeFinset_sup_edge na ne, Nat.lt.base] doesn't work because the inner instances corresponding to the Sup don't match.
Contributor
There was a problem hiding this comment.
I fixed it (by generalising the fintype assumptions appearing on the LHS of earlier lemmas) and then found a golf which made the fix redundant. Here's the fixed ungolfed version for your instruction:
theorem not_cliqueFree_of_isTuranMaximal (hn : r ≤ Fintype.card V) (hG : IsTuranMaximal G r) :
¬G.CliqueFree r := by
by_contra cf
obtain ⟨K, _, rfl⟩ := exists_smaller_set (univ : Finset V) r hn
have := (G.isNClique_iff).not.mp (cf K)
simp_rw [and_true, IsClique, Set.Pairwise, not_forall] at this
obtain ⟨a, _, b, _, ne, na⟩ := this
refine not_not_intro hG ?_
simp_rw [IsTuranMaximal, hG.1, true_and]; push_neg
use G ⊔ edge a b, inferInstance, cf.sup_edge a b
rw [card_edgeFinset_sup_edge]
exacts [lt_add_one _, na, ne]
YaelDillies
reviewed
Mar 21, 2024
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
YaelDillies
reviewed
Mar 22, 2024
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
Contributor
|
Thanks! maintainer merge |
|
🚀 Pull request has been placed on the maintainer queue by YaelDillies. |
mathlib-bors bot
pushed a commit
that referenced
this pull request
Mar 23, 2024
The first part of the main file in #9317. Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
Contributor
|
Build failed (retrying...): |
mathlib-bors bot
pushed a commit
that referenced
this pull request
Mar 23, 2024
The first part of the main file in #9317. Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
Contributor
|
Pull request successfully merged into master. Build succeeded: |
utensil
pushed a commit
that referenced
this pull request
Mar 26, 2024
The first part of the main file in #9317. Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
xgenereux
pushed a commit
that referenced
this pull request
Apr 15, 2024
The first part of the main file in #9317. Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
atarnoam
pushed a commit
that referenced
this pull request
Apr 16, 2024
The first part of the main file in #9317. Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
uniwuni
pushed a commit
that referenced
this pull request
Apr 19, 2024
The first part of the main file in #9317. Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
callesonne
pushed a commit
that referenced
this pull request
Apr 22, 2024
The first part of the main file in #9317. Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The first part of the main file in #9317.