[Merged by Bors] - feat(Combinatorics/SimpleGraph): define CompleteEquipartiteSubgraph#27599
Conversation
PR summary 8f07524533Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
|
This pull request has conflicts, please merge |
YaelDillies
left a comment
There was a problem hiding this comment.
What's your use case?
@YaelDillies This definition fell out of golfing #28685 and is similar in concept to #27602. These are the lines that use the definition in that PR. Having this representation allows me to make the handwavy argument I might do on pen-and-paper that "to prove |
But why can't you do this without the structure, by eg simply stating |
Of course I can write that statement without the structure; the structure is for convenience and readability in subsequent statements and proofs. Compare these snippets: |
|
@b-mehta, what do you think? |
completeEquipartiteSubgraphCompleteEquipartiteSubgraph
|
This pull request has conflicts, please merge |
|
It is very annoying to have to comment twice the same thing across two PRs. Could you maybe merge them together? |
@YaelDillies In this case, the structure is far more important for convenience and readability in the use case that keeps track of multiple overlapping complete equipartite subgraphs. (In the PR you are referring to, I could get away with The I cannot play the same games on both PRs. |
…#27599) Define the complete equipartite subgraphs in `r` parts each of size `t` in `G` as the `r` subsets of vertices each of size `t` such that vertices in distinct subsets are adjacent. In this case `Nonempty (G.CompleteEquipartiteSubgraph r t)` is equivalent to `completeEquipartiteGraph r t ⊑ G`, that is, finding `r` subsets of vertices each of size `t` in `G` such that vertices in distinct subsets are adjacent is equivalent to finding an injective homomorphism from `completeEquipartiteGraph r t` to `G`.
|
Pull request successfully merged into master. Build succeeded: |
CompleteEquipartiteSubgraphCompleteEquipartiteSubgraph
…leanprover-community#27599) Define the complete equipartite subgraphs in `r` parts each of size `t` in `G` as the `r` subsets of vertices each of size `t` such that vertices in distinct subsets are adjacent. In this case `Nonempty (G.CompleteEquipartiteSubgraph r t)` is equivalent to `completeEquipartiteGraph r t ⊑ G`, that is, finding `r` subsets of vertices each of size `t` in `G` such that vertices in distinct subsets are adjacent is equivalent to finding an injective homomorphism from `completeEquipartiteGraph r t` to `G`.
…leanprover-community#27599) Define the complete equipartite subgraphs in `r` parts each of size `t` in `G` as the `r` subsets of vertices each of size `t` such that vertices in distinct subsets are adjacent. In this case `Nonempty (G.CompleteEquipartiteSubgraph r t)` is equivalent to `completeEquipartiteGraph r t ⊑ G`, that is, finding `r` subsets of vertices each of size `t` in `G` such that vertices in distinct subsets are adjacent is equivalent to finding an injective homomorphism from `completeEquipartiteGraph r t` to `G`.
…leanprover-community#27599) Define the complete equipartite subgraphs in `r` parts each of size `t` in `G` as the `r` subsets of vertices each of size `t` such that vertices in distinct subsets are adjacent. In this case `Nonempty (G.CompleteEquipartiteSubgraph r t)` is equivalent to `completeEquipartiteGraph r t ⊑ G`, that is, finding `r` subsets of vertices each of size `t` in `G` such that vertices in distinct subsets are adjacent is equivalent to finding an injective homomorphism from `completeEquipartiteGraph r t` to `G`.
Define the complete equipartite subgraphs in
rparts each of sizetinGas thersubsets of vertices each of sizetsuch that vertices in distinct subsets are adjacent.In this case
Nonempty (G.CompleteEquipartiteSubgraph r t)is equivalent tocompleteEquipartiteGraph r t ⊑ G, that is, findingrsubsets of vertices each of sizetinGsuch that vertices in distinct subsets are adjacent is equivalent to finding an injective homomorphism fromcompleteEquipartiteGraph r ttoG.completeEquipartiteGraph#27597IsCompleteBetween#30287