Skip to content

[Merged by Bors] - feat(SimpleGraph): girth-diameter inequality - #25834

Closed
Rida-Hamadani wants to merge 43 commits into
leanprover-community:masterfrom
Rida-Hamadani:rida/girthDiam
Closed

Rida-Hamadani wants to merge 43 commits into
leanprover-community:masterfrom
Rida-Hamadani:rida/girthDiam

Conversation

@Rida-Hamadani

@Rida-Hamadani Rida-Hamadani commented Jun 13, 2025 •

Copy link
Copy Markdown
Collaborator

@Rida-Hamadani Rida-Hamadani added the WIP Work in progress label Jun 13, 2025
@github-actions github-actions Bot added the t-combinatorics Combinatorics label Jun 13, 2025
@github-actions

github-actions Bot commented Jun 13, 2025 •

Copy link
Copy Markdown

PR summary 5c56074fc4

Import changes for modified files

Dependency changes

File Base Count Head Count Change
Mathlib.Combinatorics.SimpleGraph.Girth 1125 1126 +1 (+0.09%)
Import changes for all files
Files Import difference
Mathlib.Combinatorics.SimpleGraph.Girth 1

Declarations diff (regex)

+ egirth_le_two_mul_ediam_add_one
+ girth_le_two_mul_diam_add_one
+ girth_le_two_mul_ediam_add_one
+ natCast_diam_eq_ediam_iff
+ natCast_dist_le_edist
+ natCast_girth_le_egirth

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

  • +6 new declarations
  • −0 removed declarations
+SimpleGraph.egirth_le_two_mul_ediam_add_one
+SimpleGraph.girth_le_two_mul_diam_add_one
+SimpleGraph.girth_le_two_mul_ediam_add_one
+SimpleGraph.natCast_diam_eq_ediam_iff
+SimpleGraph.natCast_dist_le_edist
+SimpleGraph.natCast_girth_le_egirth

No changes to strong technical debt.
No changes to weak technical debt.

Current commit 5c56074fc4
Reference commit 17019dcaaa

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

@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 Jun 24, 2025
@github-actions github-actions 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 Jun 24, 2025
@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 Jun 24, 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 4, 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 Feb 13, 2026
@Rida-Hamadani Rida-Hamadani removed the WIP Work in progress label Feb 14, 2026
@mathlib-merge-conflicts mathlib-merge-conflicts 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 Jun 3, 2026
@mathlib-merge-conflicts

Copy link
Copy Markdown

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

mathlib-bors Bot pushed a commit that referenced this pull request Sep 14, 2026
This is a useful inequality that comes up in proofs related to Moore graphs, cages, SRGs, and so on.

Co-authored-by: Malhar A. Patel <[email protected]>
Co-authored-by: Malhar A. Patel <[email protected]>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Sep 14, 2026
@mathlib-bors

mathlib-bors Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Build failed (retrying...):

@mathlib-bors mathlib-bors Bot removed the bors-staging This PR is currently being built by bors on the staging branch. label Sep 14, 2026
@mathlib-bors

mathlib-bors Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Bors build canceled because the PR branch was pushed to.

This cancels the in-progress bors run; if the push also touched a delegation-restricted path, any affected delegation is revoked in a separate comment. Address comments or fix if necessary, and then someone with permission can re-run bors r+ once the PR is ready.

@mathlib-bors mathlib-bors Bot removed the ready-to-merge This PR has been sent to bors. label Sep 14, 2026
@b-mehta

b-mehta commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

bors d+

@mathlib-bors mathlib-bors Bot added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Sep 14, 2026
@mathlib-bors

mathlib-bors Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

✌️ Rida-Hamadani can now approve this pull request until 2026-09-28 16:41 UTC (in 2 weeks). To approve and merge, reply with bors r+. More detailed instructions are available here.

⚠️ This delegation only covers changes within Archive/**, Counterexamples/**, docs/**, DownstreamTest/**, Mathlib/**, MathlibTest/**, Wanted/**, widget/**, Archive.lean, Counterexamples.lean, docs.lean, Mathlib.lean, Wanted.lean; an author commit touching anything else will revoke it. Bors also revokes it if a later push changes too many files for it to check the full list — even if it stays within scope.

@Rida-Hamadani

Copy link
Copy Markdown
Collaborator Author

bors merge

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Sep 14, 2026
@mathlib-bors

mathlib-bors Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Bors build canceled because the PR branch was pushed to.

This cancels the in-progress bors run; if the push also touched a delegation-restricted path, any affected delegation is revoked in a separate comment. Address comments or fix if necessary, and then someone with permission can re-run bors r+ once the PR is ready.

@mathlib-bors mathlib-bors Bot removed the ready-to-merge This PR has been sent to bors. label Sep 14, 2026
@Rida-Hamadani

Copy link
Copy Markdown
Collaborator Author

bors merge

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Sep 14, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Sep 14, 2026
This is a useful inequality that comes up in proofs related to Moore graphs, cages, SRGs, and so on.

Co-authored-by: Malhar A. Patel <[email protected]>
Co-authored-by: Malhar A. Patel <[email protected]>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Sep 14, 2026
@mathlib-bors

mathlib-bors Bot commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title feat(SimpleGraph): girth-diameter inequality [Merged by Bors] - feat(SimpleGraph): girth-diameter inequality Sep 14, 2026
@mathlib-bors mathlib-bors Bot closed this Sep 14, 2026
@mathlib-bors mathlib-bors Bot removed the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Sep 14, 2026
rosborn added a commit to rosborn/mathlib4 that referenced this pull request Sep 15, 2026
* origin/master: (958 commits)
  chore(Combinatorics/SimpleGraph/Trails): golf and cleanup (leanprover-community#41447)
  refactor(Probability/Kernel): remove redundant case split in Invariant.comp (leanprover-community#43805)
  chore: bump toolchain to v4.34.0 (leanprover-community#43798)
  feat(Data/List/SignVariations): add List.signVariations (leanprover-community#43783)
  feat(LinearAlgebra/Span/Basic): add Submodule.prodEquiv (leanprover-community#43664)
  feat(cache): put with native Azure and S3 backends (leanprover-community#43378)
  feat(Combinatorics/SimpleGraph/Walk): more `transfer` API (leanprover-community#41717)
  feat(SimpleGraph): girth-diameter inequality (leanprover-community#25834)
  feat: make `simps?` and `to_dual?`/`to_additive?` more concise (leanprover-community#43775)
  feat(Basic/IsEmpty/Defs): add Fin.isEmpty_iff (leanprover-community#43763)
  feat(Data/ENNReal/Inv): add ENNReal.div_mul_div_cancel (leanprover-community#37954)
  chore(Tactic/Simproc/ExistsAndEq): fix two typos (leanprover-community#43797)
  feat(LinearAlgebra/Matrix/GeneralLinearGroup/Defs): add the proof of the range of toGL to be the ker of the determinant and the induced equivalence (leanprover-community#41786)
  chore(Data/Num/Lemmas): golf `transfer` tactic (leanprover-community#41167)
  refactor(Data/Nat/Choose/Central): move and rename `four_pow_le_two_mul_add_one_mul_central_binom` (leanprover-community#42606)
  feat(Combinatorics/Graph): edge cut of `Graph` (leanprover-community#37865)
  feat(Algebra/QuadraticAlgebra): classify quadratic algebras by their discriminant (leanprover-community#42708)
  fix: use the PR number in the deprecation reminder message (leanprover-community#43786)
  feat(Data/Fintype/Defs): add DecidableLE (∀ a, β a) (leanprover-community#43425)
  chore: redefine `Finsupp.indicator` using `Finsupp.onFinset` (leanprover-community#33434)
  ...

# Conflicts:
#	Mathlib/Tactic/Linter/DirectoryDependency.lean
@Rida-Hamadani
Rida-Hamadani deleted the rida/girthDiam branch September 15, 2026 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bors-staging This PR is currently being built by bors on the staging branch. 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.

6 participants