-
Notifications
You must be signed in to change notification settings - Fork 297
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
[Merged by Bors] - feat(combinatorics/simple_graph/connectivity): walk.to_subgraph
#17325
Conversation
A construction for the subgraph consisting of the vertices and edges of a given walk.
Maybe lemmas relating the behaviours of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I had this review waiting around for ages.
@YaelDillies Thanks, I somehow missed your review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few more simp suggestions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hopefully final comments!
|
||
@[simp] lemma verts_inf {H H' : G.subgraph} : (H ⊓ H').verts = H.verts ∩ H'.verts := rfl | ||
|
||
lemma neighbor_set_sup {H H' : G.subgraph} (v : V) : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lemma neighbor_set_sup {H H' : G.subgraph} (v : V) : | |
@[simp] lemma neighbor_set_sup {H H' : G.subgraph} (v : V) : |
(H ⊔ H').neighbor_set v = H.neighbor_set v ∪ H'.neighbor_set v := | ||
by { ext w, simp } | ||
|
||
lemma neighbor_set_inf {H H' : G.subgraph} (v : V) : |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lemma neighbor_set_inf {H H' : G.subgraph} (v : V) : | |
@[simp] lemma neighbor_set_inf {H H' : G.subgraph} (v : V) : |
@@ -386,6 +398,23 @@ begin | |||
exact ⟨_, _, h.2 ha, rfl, rfl⟩ } | |||
end | |||
|
|||
lemma map_sup {G : simple_graph V} {G' : simple_graph W} (f : G →g G') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lemma map_sup {G : simple_graph V} {G' : simple_graph W} (f : G →g G') | |
@[simp] lemma map_sup {G : simple_graph V} {G' : simple_graph W} (f : G →g G') |
@YaelDillies I worry about having "non-affine" simp lemmas and usually try to avoid them. By an "affine" lemma I mean that each variable in the RHS appears at most as many times as in the LHS. Non-affine simp lemmas can have exponential term growth. I'm not inclined to include these homomorphism-pushing lemmas as simp lemmas, but I'm sort of ambivalent. If you feel like we should definitely have these as simp lemmas before merging this PR, then I'll defer to you here. We can also decide to make these be simp lemmas later once we have applications of them. (Maybe @b-mehta has any thoughts?) |
I would tag these as simp by virtue of them being distributivity lemmas, for example I don't think we need them to be simp before merging, but it's not very principled to make simp only half the distributivity lemmas you introduce (you are making |
|
I see what you mean, but I don't really buy it. Those lemmas are fine so long as we globally agree on a direction of pushing. At any rate, this is a minor issue. maintainer merge |
🚀 Pull request has been placed on the maintainer queue by YaelDillies. |
Thanks 🎉 bors merge |
…7325) A construction for the subgraph consisting of the vertices and edges of a given walk.
Pull request successfully merged into master. Build succeeded: |
walk.to_subgraph
walk.to_subgraph
A construction for the subgraph consisting of the vertices and edges of a given walk.