New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(combinatorics/simple_graph): Mantel's theorem #13758
Conversation
Note: this is a special case of Turán's theorem. You could prove the stronger result that a graph with |
Agreed, I had a go at this a while ago but since we didn't have API for cliques at the time it was pretty tricky, it might be more doable now! |
Could you please change the title to be understandable without a textbook? |
I salvaged the code in LeanCamCombi. Note that I am also porting John Talbot's proof of Turan, so I am dropping the proof of Mantel here. |
If a graph has more than n^2/4 edges then it contains a triangle (Theorem I.2 of Bollobas, Modern Graph Theory). We should also eventually have Turán's theorem, which generalizes this.