Skip to content

feat(Combinatorics/Quiver/Path): iterated composition of a loop - #45033

Open
mkaratarakis wants to merge 2 commits into
leanprover-community:masterfrom
mkaratarakis:quiver-path-replicate
Open

mkaratarakis wants to merge 2 commits into
leanprover-community:masterfrom
mkaratarakis:quiver-path-replicate

Conversation

@mkaratarakis

@mkaratarakis mkaratarakis commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Quiver.Path.replicate, the n-fold composition of a loop with itself, and its length.


Split from #39916.

@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

PR summary 80428f5db9

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.Combinatorics.Quiver.Path.Replicate (new file) 209

Declarations diff (regex)

+ length_replicate
+ replicate
+ replicate_succ
+ replicate_succ'
+ replicate_zero

You can run this locally as follows
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci

## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.

Declarations diff (Lean)

✅ Lean-aware diff — post-build, computed from the Lean environment (commit 80428f5).

  • +5 new declarations
  • −0 removed declarations
+Quiver.Path.length_replicate
+Quiver.Path.replicate
+Quiver.Path.replicate_succ
+Quiver.Path.replicate_succ'
+Quiver.Path.replicate_zero

No changes to strong technical debt.

Increase in weak tech debt: (relative, absolute) = (1.00, 0.00)
Current number Change Type (weak)
5102 1 exposed public sections

Current commit 80428f5db9
Reference commit bdece672cb

This script lives in the mathlib-ci repository. To run it locally, from your mathlib4 directory:

git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.py 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).

@github-actions github-actions Bot added the t-combinatorics Combinatorics label Oct 19, 2026
@mkaratarakis
mkaratarakis force-pushed the quiver-path-replicate branch from 9e05a68 to aea5030 Compare October 19, 2026 13:25
@YaelDillies YaelDillies added the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Oct 19, 2026
@YaelDillies YaelDillies self-assigned this Oct 19, 2026
@mkaratarakis

Copy link
Copy Markdown
Contributor Author

-awaiting-author

@github-actions github-actions Bot removed the awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. label Oct 19, 2026

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

@Jun2M, I would like your opinion here too: Will this be subsumed by your generic walk-on-hypergraphs API?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-combinatorics Combinatorics

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants