Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

refactor(combinatorics/simple_graph/basic): Review delete_edges API #18257

Closed
wants to merge 1 commit into from

Conversation

YaelDillies
Copy link
Collaborator

Redefine simple_graph.delete_edges as was discussed several times. Refactor proofs to take advantage of the new definition, and drop lemmas that are direct consequences of existing ones in order to make the API more modular.


Open in Gitpod

@YaelDillies YaelDillies requested a review from a team as a code owner January 22, 2023 12:44
@YaelDillies YaelDillies added awaiting-review The author would like community review of the PR t-combinatorics Combinatorics labels Jan 22, 2023
@[simp] lemma from_edge_set_inf (s t : set (sym2 V)) :
from_edge_set s ⊓ from_edge_set t = from_edge_set (s ∩ t) :=
@[simp] lemma from_edge_set_inter (s t : set (sym2 V)) :
from_edge_set (s ∩ t) = from_edge_set s ⊓ from_edge_set t :=
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this is the wrong direction in practice. The reason it undistributes from_edge_set is that I expect most of the time there is more you can say about unions of sets than infima of graphs.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I find distributivity lemmas often more useful because they let the operations distribute further along the chain. simp undistributivity lemmas are very rare for a reason.

In that case, we now have a bunch of lemmas distributing infimum over other graph operations, so this simp lemma is in the way, as it stands.

src/combinatorics/simple_graph/basic.lean Show resolved Hide resolved
@kmill kmill self-assigned this Jan 23, 2023
@kim-em kim-em added the too-late This PR was ready too late for inclusion in mathlib3 label Jul 16, 2023
@YaelDillies
Copy link
Collaborator Author

Ported as #18257.

@YaelDillies YaelDillies deleted the delete_edges_sdiff branch March 23, 2024 17:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
awaiting-review The author would like community review of the PR t-combinatorics Combinatorics too-late This PR was ready too late for inclusion in mathlib3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants