Repository navigation
Conversation
Co-authored-by: Bryan Gin-ge Chen <[email protected]>
| neither is adjacent to, and then using transitivity. -/ | ||
| theorem is_regular_of_not_exists_politician (hG' : ¬exists_politician G) : | ||
| theorem is_regular_of_not_exists_politician [nonempty V] (hG' : ¬exists_politician G) : | ||
| ∃ (d : ℕ), G.is_regular_of_degree d := |
There was a problem hiding this comment.
I think I'd prefer that [nonempty V] would be declared once, rather than in each decl past this point in the file.
There was a problem hiding this comment.
There are a few lemmas past this point that don't use [nonempty V]. I'm not against someone shuffling things around so that they can be collected in a single variables declaration.
There was a problem hiding this comment.
I did some shuffling; feel free to push more changes, or merge if you're happy as is.
bors d+
|
🎉 Great news! Looks like all the dependencies have been resolved: 💡 To add or remove a dependency please update this issue/PR description. Brought to you by Dependent Issues (:robot: ). Happy coding! |
| ∃ (d : ℕ), G.is_regular_of_degree d := | ||
| begin | ||
| have v := arbitrary V, | ||
| have v : V := classical.choice infer_instance, |
There was a problem hiding this comment.
I think you can use the tactic inhabit V or similar instead of invoking choice, which isn't necessary here.
There was a problem hiding this comment.
| have v : V := classical.choice infer_instance, | |
| inhabit V, | |
| have v := arbitrary V, |
There was a problem hiding this comment.
The by_cases a couple of lines later invokes classical.choice anyway, but your comment led me to classical.arbitrary, which is better that what I'd written.
It might be nice to extend inhabit to have an additional form inhabit V with v, which would automatically write have v := arbitrary V. Even better would be if it could do destructuring like rcases, so maybe it instead it adds rcases arbitrary V with v. (A detail: it should probably do something like rcases inst with v, where inst is the name generated by the inhabit tactic for the inhabited instance.)
|
✌️ kmill can now approve this pull request. To approve and merge a pull request, simply reply with |
|
bors r+ |
Cleaned up some lint and put it in terms of the new `simple_graph.common_neighbors`. Co-authored-by: agusakov <[email protected]> Co-authored-by: Kyle Miller <[email protected]> Co-authored-by: Bryan Gin-ge Chen <[email protected]>
|
Pull request successfully merged into master. Build succeeded: |
Cleaned up some lint and put it in terms of the new `simple_graph.common_neighbors`. Co-authored-by: agusakov <[email protected]> Co-authored-by: Kyle Miller <[email protected]> Co-authored-by: Bryan Gin-ge Chen <[email protected]>
Cleaned up some lint and put it in terms of the new
simple_graph.common_neighbors.