Skip to content

[Merged by Bors] - feat(SimpleGraph): add more API for take/drop - #26614

Closed
Rida-Hamadani wants to merge 18 commits into
leanprover-community:masterfrom
Rida-Hamadani:takeSupport
Closed

Rida-Hamadani wants to merge 18 commits into
leanprover-community:masterfrom
Rida-Hamadani:takeSupport

Conversation

@Rida-Hamadani

@Rida-Hamadani Rida-Hamadani commented Jul 2, 2025 •

Copy link
Copy Markdown
Collaborator

The main lemma proves that taking n vertices of a walk results in a sub-walk of taking k vertices when n is less than or equal to k, alongside a similar lemma for dropping vertices.


Open in Gitpod

@github-actions github-actions Bot added the t-combinatorics Combinatorics label Jul 2, 2025
@github-actions

github-actions Bot commented Jul 2, 2025 •

Copy link
Copy Markdown

PR summary 2255913443

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+ IsSubwalk.copy
+ Nil.eq_copy_nil
+ drop_isSubwalk_drop
+ drop_of_length_le
+ nil_drop_of_length_le
+ take_isSubwalk_take
+ take_of_length_le

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

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

LGTM! A few small comments, otherwise looks pretty good to go.

@leanprover-community-bot-assistant leanprover-community-bot-assistant added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jul 5, 2025
@leanprover-community-bot-assistant

Copy link
Copy Markdown
Contributor

This pull request has conflicts, please merge master and resolve them.

@github-actions github-actions Bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jul 5, 2025
@b-mehta b-mehta added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Jul 6, 2025
@Rida-Hamadani Rida-Hamadani removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Jul 11, 2025
@mathlib4-dependent-issues-bot mathlib4-dependent-issues-bot added the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Jul 11, 2025
@mathlib4-dependent-issues-bot mathlib4-dependent-issues-bot removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Aug 19, 2025
@mathlib4-dependent-issues-bot

Copy link
Copy Markdown

This PR/issue depends on:

@b-mehta b-mehta added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Aug 19, 2025
@mathlib4-merge-conflict-bot mathlib4-merge-conflict-bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Sep 8, 2025
@mathlib4-merge-conflict-bot

Copy link
Copy Markdown

This pull request has conflicts, please merge master and resolve them.

@github-actions github-actions Bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Sep 9, 2025
@mathlib4-merge-conflict-bot mathlib4-merge-conflict-bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Nov 25, 2025
@mathlib4-merge-conflict-bot

Copy link
Copy Markdown

This pull request has conflicts, please merge master and resolve them.

@github-actions github-actions Bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Dec 23, 2025
@Rida-Hamadani Rida-Hamadani removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Dec 23, 2025
@mathlib4-merge-conflict-bot mathlib4-merge-conflict-bot added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jan 29, 2026
@mathlib4-merge-conflict-bot

Copy link
Copy Markdown

This pull request has conflicts, please merge master and resolve them.

@b-mehta b-mehta added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Jan 30, 2026
@b-mehta b-mehta assigned b-mehta and unassigned kmill Jan 30, 2026
@Rida-Hamadani Rida-Hamadani removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Jan 30, 2026
@github-actions github-actions Bot removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jan 30, 2026

@SnirBroshi SnirBroshi 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.

Naming convention suggestions

@Rida-Hamadani
Rida-Hamadani requested a review from b-mehta February 7, 2026 05:10

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

Thanks!

bors merge

@mathlib-triage mathlib-triage Bot added the ready-to-merge This PR has been sent to bors. label Feb 7, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Feb 7, 2026
The main lemma proves that taking `n` vertices of a walk results in a sub-walk of taking `k` vertices when `n` is less than or equal to `k`, alongside a similar lemma for dropping vertices.
@mathlib-bors

mathlib-bors Bot commented Feb 7, 2026

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(SimpleGraph): add more API for take/drop [Merged by Bors] - feat(SimpleGraph): add more API for take/drop Feb 7, 2026
@mathlib-bors mathlib-bors Bot closed this Feb 7, 2026
justus-springer pushed a commit to justus-springer/mathlib4 that referenced this pull request Feb 10, 2026
…ty#26614)

The main lemma proves that taking `n` vertices of a walk results in a sub-walk of taking `k` vertices when `n` is less than or equal to `k`, alongside a similar lemma for dropping vertices.
michaellee94 pushed a commit to michaellee94/mathlib4 that referenced this pull request Feb 15, 2026
…ty#26614)

The main lemma proves that taking `n` vertices of a walk results in a sub-walk of taking `k` vertices when `n` is less than or equal to `k`, alongside a similar lemma for dropping vertices.
rao107 pushed a commit to rao107/mathlib4 that referenced this pull request Feb 18, 2026
…ty#26614)

The main lemma proves that taking `n` vertices of a walk results in a sub-walk of taking `k` vertices when `n` is less than or equal to `k`, alongside a similar lemma for dropping vertices.
Maldooor pushed a commit to Maldooor/mathlib4 that referenced this pull request Feb 25, 2026
…ty#26614)

The main lemma proves that taking `n` vertices of a walk results in a sub-walk of taking `k` vertices when `n` is less than or equal to `k`, alongside a similar lemma for dropping vertices.
pfaffelh pushed a commit to pfaffelh/mathlib4 that referenced this pull request Mar 2, 2026
…ty#26614)

The main lemma proves that taking `n` vertices of a walk results in a sub-walk of taking `k` vertices when `n` is less than or equal to `k`, alongside a similar lemma for dropping vertices.
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.

7 participants