Skip to content

[Merged by Bors] - chore(Combinatorics/SimpleGraph/Acyclic): golf IsAcyclic.path_unique - #40818

Closed
SnirBroshi wants to merge 1 commit into
leanprover-community:masterfrom
SnirBroshi:golf/simple-graph/acyclic-path-unique
Closed

SnirBroshi wants to merge 1 commit into
leanprover-community:masterfrom
SnirBroshi:golf/simple-graph/acyclic-path-unique

Conversation

@SnirBroshi

Copy link
Copy Markdown
Collaborator

using #33506


Open in Gitpod

@SnirBroshi SnirBroshi added the easy < 20s of review time. See the lifecycle page for guidelines. label Jun 19, 2026
@github-actions github-actions Bot added the t-combinatorics Combinatorics label Jun 19, 2026
@github-actions

github-actions Bot commented Jun 19, 2026 •

Copy link
Copy Markdown

PR summary a787a18043

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff (regex)

No declarations were harmed in the making of this PR! 🐙

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

  • +0 new declarations
  • −0 removed declarations

No declaration differences.


No changes to strong technical debt.

No changes to weak technical debt.

Current commit a787a18043
Reference commit e72c92ce6f

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

@ocfnash

ocfnash commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

Thanks, this is obviously a great win in its own right.

Looking at this API, there's room for a little more tidy up. Specifically of the four lemmas:

  • IsAcyclic.path_unique
  • isAcyclic_of_path_unique
  • isAcyclic_iff_path_unique
  • isAcyclic_iff_subsingleton_path

probably only isAcyclic_iff_subsingleton_path should exist. Possibly for dot notation convenience we could also have IsAcyclic.subsingleton_Path but I think that's it.

In any case, for now:

bors merge

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Jun 30, 2026
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Jun 30, 2026
@mathlib-bors

mathlib-bors Bot commented Jun 30, 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 Jun 30, 2026
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Jun 30, 2026
@mathlib-bors

mathlib-bors Bot commented Jun 30, 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 Jun 30, 2026
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Jun 30, 2026
@mathlib-bors

mathlib-bors Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title chore(Combinatorics/SimpleGraph/Acyclic): golf IsAcyclic.path_unique [Merged by Bors] - chore(Combinatorics/SimpleGraph/Acyclic): golf IsAcyclic.path_unique Jun 30, 2026
@mathlib-bors mathlib-bors Bot closed this Jun 30, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Jul 14, 2026
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. easy < 20s of review time. See the lifecycle page for guidelines. 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.

2 participants