feat(SimpleGraph): card of common neighbors equals card of triangles containing edge#37109
Conversation
…containing edge
For adjacent vertices u v, prove that the number of common neighbors
equals the number of 3-cliques containing {u, v}.
Welcome new contributor!Thank you for contributing to Mathlib! If you haven't done so already, please review our contribution guidelines, as well as the style guide and naming conventions. In particular, we kindly remind contributors that we have guidelines regarding the use of AI when making pull requests. We use a review queue to manage reviews. If your PR does not appear there, it is probably because it is not successfully building (i.e., it doesn't have a green checkmark), has the If you haven't already done so, please come to https://leanprover.zulipchat.com/, introduce yourself, and mention your new PR. Thank you again for joining our community. |
PR summary 0587621189Import changes for modified filesNo significant changes to the import graph Import changes for all files
Declarations diff
You can run this locally as follows## summary with just the declaration names:
./scripts/pr_summary/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/pr_summary/declarations_diff.sh long <optional_commit>The doc-module for No changes to technical debt.You can run this locally as
|
|
AI disclosure: Claude (Anthropic) was used as an assistant during the development of this proof. Specifically, it helped with the initial proof structure and tactic suggestions. The proof was reviewed, understood, and validated step by step by the author, who can vouch for all the content. The mathematical idea (bijection between common neighbors and triangles containing an edge) originates from the author's prior Lean 4 work on spectral graph theory (github.com/zeekmartin/topostability-lean4). |
Co-authored-by: Snir Broshi <[email protected]>
Tested, `grind [Adj.symm]` works. Committed! Co-authored-by: Snir Broshi <[email protected]>
Adds
SimpleGraph.card_commonNeighbors_eq_card_triangles_containing_edgeto
Mathlib/Combinatorics/SimpleGraph/Clique.lean.For adjacent vertices
u vin a finite simple graph, establishes the bijectionbetween common neighbors and 3-cliques containing the edge
{u, v}:This connects
commonNeighbors(defined inBasic.lean) withcliqueFinset—a gap not previously covered in
Clique.lean.AI disclosure: Claude (Anthropic) was used as an assistant during the development of this proof. It helped with the initial proof structure and tactic suggestions. The proof was reviewed and validated step by step by the author, who can vouch for all the content. The mathematical idea originates from the author's prior Lean 4 work on spectral graph theory (github.com/zeekmartin/topostability-lean4).