Skip to content

[Merged by Bors] - feat(SimpleGraph): Helper lemmas for Walk.take/drop - #25650

Closed
vlad902 wants to merge 6 commits into
masterfrom
vlad.tsyrklevich/cg5-drop-take
Closed

vlad902 wants to merge 6 commits into
masterfrom
vlad.tsyrklevich/cg5-drop-take

Conversation

@vlad902

@vlad902 vlad902 commented Jun 10, 2025

Copy link
Copy Markdown
Collaborator

Contributing helper lemmas I needed when formalizing Cayley graphs.

Contributing helper lemmas I needed when formalizing Cayley graphs.
@github-actions github-actions Bot added the t-combinatorics Combinatorics label Jun 10, 2025
@github-actions

github-actions Bot commented Jun 10, 2025 •

Copy link
Copy Markdown

PR summary b27d4790e1

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ drop_getVert
+ drop_length
+ take_getVert
+ take_length

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@Rida-Hamadani Rida-Hamadani left a comment

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.

Useful lemmas, I've been using them too in a project that hasn't been PR'd yet. Some notes:

  • unfold is code-smell, avoid when possible.
  • cases n does a better job than by_cases h : n = 0 here.

@Rida-Hamadani Rida-Hamadani added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Jun 11, 2025
@vlad902

vlad902 commented Jun 11, 2025

Copy link
Copy Markdown
Collaborator Author

Using cases here was much cleaner, thanks for showing me!

@vlad902 vlad902 removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Jun 11, 2025
@vlad902
vlad902 requested a review from Rida-Hamadani June 11, 2025 06:07
@vlad902
vlad902 requested a review from Rida-Hamadani June 11, 2025 13:50

@Rida-Hamadani Rida-Hamadani left a comment

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.

LGTM

@b-mehta b-mehta left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Sorry for the delay on this, thanks!

bors merge

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Jul 2, 2025
mathlib-bors Bot pushed a commit that referenced this pull request Jul 2, 2025
Contributing helper lemmas I needed when formalizing Cayley graphs.
@mathlib-bors

mathlib-bors Bot commented Jul 3, 2025

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(SimpleGraph): Helper lemmas for Walk.take/drop [Merged by Bors] - feat(SimpleGraph): Helper lemmas for Walk.take/drop Jul 3, 2025
@mathlib-bors mathlib-bors Bot closed this Jul 3, 2025
@mathlib-bors
mathlib-bors Bot deleted the vlad.tsyrklevich/cg5-drop-take branch July 3, 2025 00:02
joelriou pushed a commit to joelriou/mathlib4 that referenced this pull request Jul 7, 2025
…nity#25650)

Contributing helper lemmas I needed when formalizing Cayley graphs.
callesonne pushed a commit to callesonne/mathlib4 that referenced this pull request Jul 24, 2025
…nity#25650)

Contributing helper lemmas I needed when formalizing Cayley graphs.
hrmacbeth pushed a commit to szqzs/mathlib4 that referenced this pull request Jul 28, 2025
…nity#25650)

Contributing helper lemmas I needed when formalizing Cayley graphs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has been sent to bors. t-combinatorics Combinatorics

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants