Skip to content
This repository was archived by the owner on Nov 6, 2026. It is now read-only.

[Merged by Bors] - chore(archive/100-theorems-list): 83_friendship_graphs - #5727

Closed
kmill wants to merge 10 commits into
masterfrom
83_friendship_graphs
Closed

kmill wants to merge 10 commits into
masterfrom
83_friendship_graphs

Conversation

@kmill

@kmill kmill commented Jan 13, 2021 •

Copy link
Copy Markdown
Collaborator

Cleaned up some lint and put it in terms of the new simple_graph.common_neighbors.


@github-actions github-actions Bot added the blocked-by-other-PR This PR depends on another PR which is still in the queue. A bot manages this label via PR comment. label Jan 13, 2021
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 :=

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I'd prefer that [nonempty V] would be declared once, rather than in each decl past this point in the file.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did some shuffling; feel free to push more changes, or merge if you're happy as is.
bors d+

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@github-actions github-actions Bot added merge-conflict Please `git merge origin/master` then a bot will remove this label. and removed blocked-by-other-PR This PR depends on another PR which is still in the queue. A bot manages this label via PR comment. labels Jan 13, 2021
@github-actions

Copy link
Copy Markdown

🎉 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!

@github-actions github-actions Bot removed the merge-conflict Please `git merge origin/master` then a bot will remove this label. label Jan 13, 2021
∃ (d : ℕ), G.is_regular_of_degree d :=
begin
have v := arbitrary V,
have v : V := classical.choice infer_instance,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can use the tactic inhabit V or similar instead of invoking choice, which isn't necessary here.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
have v : V := classical.choice infer_instance,
inhabit V,
have v := arbitrary V,

@kmill kmill Jan 13, 2021 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.)

@bors

bors Bot commented Jan 14, 2021

Copy link
Copy Markdown

✌️ kmill can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@bryangingechen bryangingechen added awaiting-author A reviewer has asked the author a question or requested changes delegated The PR author may merge after reviewing final suggestions. labels Jan 14, 2021
@kmill

kmill commented Jan 14, 2021

Copy link
Copy Markdown
Collaborator Author

bors r+

bors Bot pushed a commit that referenced this pull request Jan 14, 2021
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]>
@bors

bors Bot commented Jan 14, 2021

Copy link
Copy Markdown

Pull request successfully merged into master.

Build succeeded:

@bors bors Bot changed the title chore(archive/100-theorems-list): 83_friendship_graphs [Merged by Bors] - chore(archive/100-theorems-list): 83_friendship_graphs Jan 14, 2021
@bors bors Bot closed this Jan 14, 2021
@bors
bors Bot deleted the 83_friendship_graphs branch January 14, 2021 08:39
b-mehta pushed a commit that referenced this pull request Jan 16, 2021
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]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

awaiting-author A reviewer has asked the author a question or requested changes delegated The PR author may merge after reviewing final suggestions.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants